This content has been marked as final.
Show 4 replies
-
1. Re: list tag with rendered-attribute
swd847 Mar 19, 2009 8:35 AM (in response to sw_bpel)Wrap it it in a s:fragement and set rendered on the fragement
-
2. Re: list tag with rendered-attribute
sw_bpel Mar 19, 2009 8:39 AM (in response to sw_bpel)thanks a lot! works exactly as expected :)
-
3. Re: list tag with rendered-attribute
sw_bpel Mar 19, 2009 11:14 AM (in response to sw_bpel)now i'm having another problem. i want to set the action attribute of a s:link tag dynamically, if a variable var1 is true, else i don't want to set an action.
for dynamically rendering element this works:
<s:fragment rendered="#{param_element1}">
or for dynamically set the syleClass this worsk:
<s:link id="link1" view="view1" value="ViewLink" styleClass="#{var1?'opened':''}" />
but if i set the action attribute the same way, i got an "Not a Valid Method Expression" exception on page load.
thanks a lot! -
4. Re: list tag with rendered-attribute
swd847 Mar 19, 2009 11:39 AM (in response to sw_bpel)Use two s:link's and put the logic in the rendered expression so only the correct one gets shown