I have a s:decorate like this
| <a4j:region id="#{fieldId}Field" selfRendered="true"
regionRenderOnly="true">
| <ui:insert/>
| <div id="#{fieldId}Label" class="formlabel
#{invalid?'errlabel':''}">
| <ui:insert name="label"/>
| </div>
|
| <div id="#{fieldId}Input" class="formfield
#{invalid?'flderr':''}">
| <ui:insert name="field"/>
| <a4j:status for="#{fieldId}Field">
| <f:facet name="start">
| <h:graphicImage value="/img/ajax_process.gif"/>
| </f:facet>
| </a4j:status>
| </div>
| <a4j:outputPanel id="#{fieldId}MessageBlock" layout="block"
styleClass="errorMsg" ajaxRendered="true"
rendered="#{invalid}">
| <s:message for="#{fieldId}" globalOnly="false"/>
| </a4j:outputPanel>
| </a4j:region>
|
I just want to set the label and field styleClass based on the invalid status,but seems it
not work after the ajax request.The server side told me
there is a invalid field,but message is just queued and may not be displayed.I think the
reason is the invalid not be changed after the ajax request.any suggestion is appreciate!
thanks in advance!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088660#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...