-
1. Re: noSelectionLabel doesn`t change on reRender
mars1412 Mar 26, 2008 9:48 AM (in response to barbacena)you first need to understand what c:if really does.
this may help c:foreach-vs-ui:repeat-in-facelets -
2. Re: noSelectionLabel doesn`t change on reRender
barbacena Mar 26, 2008 9:03 PM (in response to barbacena)Hi Martin,
The problem is nt that. I changed my code to:
<s:decorate id="#{name}"> <c:if test="#{empty noSelectionLabel}"> <c:set var="noSelectionLabel" value="----" /> </c:if> <c:if test="#{defautSelectItems and items.size eq 1}"> <c:set var="noSelectionLabel" value="" /> </c:if> Label: #{noSelectionLabel} <h:selectOneMenu ... > <s:selectItems ... noSelectionLabel="#{noSelectionLabel}" /> </h:selectOneMenu> </s:decorate>
End after the reRender, the displey of noSelectionLabel changes to the value I expect but inside the selectOneMenu it doesn't. I think it is a cache problem. Any ideia?
-
3. Re: noSelectionLabel doesn`t change on reRender
mars1412 Mar 27, 2008 9:57 AM (in response to barbacena)upps - sorry, I was wrong here
yes, c:if should work in this case
-
4. Re: noSelectionLabel doesn`t change on reRender
pmuir Mar 29, 2008 12:51 PM (in response to barbacena)Probably this
-
5. Re: noSelectionLabel doesn`t change on reRender
barbacena Mar 29, 2008 2:30 PM (in response to barbacena)I thought so (and even point to the João Paulo) but the jira issue is about the hideNoSelectionLabel functionality which is to hide after a option is selected.
Should I raise another issue or add a comment at this pointing this problem?
Is there a work around already?
ps.: We discussed here and we think the problem is the same as the issue points: caching.
-
6. Re: noSelectionLabel doesn`t change on reRender
pmuir Mar 29, 2008 2:39 PM (in response to barbacena)I think it is the same issue.
-
7. Re: noSelectionLabel doesn`t change on reRender
barbacena Mar 29, 2008 2:55 PM (in response to barbacena)Tnx. Voted and now wathing :).