[Petal] option select in petal - ideas?
    Jean-Michel Hiver 
    jhiver at mkdoc.com
       
    Mon Apr 12 23:21:00 BST 2004
    
    
  
Hi Christopher,
Christopher Heschong wrote:
> Lets say you have a select statement:
> 
> <select name="foo">
>  <option tal:repeat="foo bar"
>          tal:contents="foo/content"
>          tal:attributes="selected foo/selected">option</option>
> </select>
> 
> The problem is that there is no way for Petal to eliminate the selected
> attribute if foo/selected returns false.
Petal should remove the attribute if foo/selected returns undef.
Cheers,
Jean-Michel.
    
    
More information about the Petal
mailing list