You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by israel martinez <im...@yahoo.ca> on 2006/08/09 06:29:02 UTC

Components

Hello there:

I would like to known if there is any chance to do something like these:

#macro(myTable $data)    
        <table style="text-align: left; width: 100%;" border="1"
 cellpadding="2" cellspacing="2">
        #foreach($choice in $data $prop)
            <tr>
                <td>
                    #set( $count = $velocityCount - 1 )
                    $count
                </td>
                <td>
                    #springBind( "$data[count].$prop" )
                    <input type="checkbox"
                    name="${status.expression}" 
                        value="true"         #if( ${status.value} )  checked="checked"     #end >                    
                </td>
            <td>
            $choice 
            </td>            
            
            </tr>
        #end
        
        </table>
    
#end



#myTable($command.datos "checked")

In order to develop some "web components" 

Thanks

 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com