-
1. Re: Unable to conditionally render s:selectItems
damianharvey.damianharvey.gmail.com Mar 25, 2008 12:17 PM (in response to mvastrad)You need to specify rendered="#{type.displayable}" or is that a typo in the post?
Alternately, you can always filter the actionTypes list before you display it.
Cheers,
Damian.
-
2. Re: Unable to conditionally render s:selectItems
mvastrad Mar 25, 2008 12:39 PM (in response to mvastrad)Thanks Damien. Yes that was a typo, sorry about that. Yes i can filter the list, but was hoping I would be able to do it this way. Thanks
-
3. Re: Unable to conditionally render s:selectItems
kahliburke.kahli.burke.wintermutesys.com Mar 25, 2008 8:32 PM (in response to mvastrad)That seems like a decent feature request. You could always subclass UISelectItems and hook that up using Facelets, you'd have to reimplement getValue because asSelectItems is private ... so a bit of copy/paste would be needed.
-
4. Re: Unable to conditionally render s:selectItems
pmuir Mar 28, 2008 4:32 PM (in response to mvastrad)Unfortunately the JSF spec doesn't define that a select item should obey the rendered attribute, so setting it on UISelectItems would have no effect.
I guess you could file a feature request for an attribute that would cause it not to be added to the generated list...