velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From israel martinez <imartinez1...@yahoo.ca>
Subject Components
Date Wed, 09 Aug 2006 04:29:02 GMT
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 
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message