This content has been marked as final.
Show 2 replies
-
1. Re: a4j breaks JSTL?!
nbelaevski Feb 18, 2009 6:17 PM (in response to stephen.friedrich)Hello,
This:<h:form> <style type="text/css"> .error { color: red; } </style> <rich:messages /> <c:set var="labelClass" value=""/> <c:if test="#{facesContext.maximumSeverity != null}"> <c:set var="labelClass" value="error"/> </c:if> <a4j:outputPanel id="panel"> <h:outputLabel value="Label" for="input" styleClass="#{labelClass}" /> <h:inputText value="" id="input" required="true" /> </a4j:outputPanel> <a4j:commandLink reRender="panel" value="reRender" /> <h:commandLink value="Submit" /> </h:form>
doesn't work me at all, either by h:commandLink or a4j:commandLink. #{labelClass} expression uses the value of variable it had when it's been first created. So probably the problem is not in RF. -
2. Re: a4j breaks JSTL?!
stephen.friedrich Feb 20, 2009 3:57 AM (in response to stephen.friedrich)Thanks, you are right. With that example I can't reproduce the problem either.
After some more reading, I understand that the problem is that c:if only gets evaluated when the tree is built (at which point there still is no faces message).
I'll try and dig some more.