[richfaces-issues] [JBoss JIRA] Created: (RF-1565) Messages not updated on Ajax requests unless message tag is after the Ajax component.

Lou Bell (JIRA) jira-events at lists.jboss.org
Fri Dec 7 13:29:51 EST 2007


Messages not updated on Ajax requests unless message tag is after the Ajax component.
-------------------------------------------------------------------------------------

                 Key: RF-1565
                 URL: http://jira.jboss.com/jira/browse/RF-1565
             Project: RichFaces
          Issue Type: Bug
            Reporter: Lou Bell


One issue we've found with suggestion box that Max asked us to report, since they were found as known issues during the support case.

Any messages added to the faces context are not updated on ajax requests in the suggestionbox unless the message tag is defined AFTER 
the suggestion box.  Anything declared before it on the page fails to get updated. This is problematic for us since we usually report error messages at the top under the tab rather than below the field where it happened.

See example below, a4j:outputPanel first doesn't work, but move it after the suggestion box and it functions correctly: 

<a4j:outputPanel 
                        ajaxRendered="true" 
                        id="componentGeneralInfoMessagesPanel"> 
            <t:messages 
                                    id="componentOverviewMessages" 
                                    replaceIdWithLabel="true" 
                                    tooltip="true" 
                                    showDetail="true" 
                                    showSummary="false" 
                                    errorClass="errorText" 
                                    infoClass="infoText" 
                                    layout="table" /> 
</a4j:outputPanel> 

<a4j:region renderRegionOnly="false"> 

<h:inputText id="softwareTitle" size="35" value="#{ComponentFormController.currentRequest.name}" 
                        required="true" style="background-color: #ffffd1"> 
                                    <f:attribute name="#{OSBundle['ui.validation.fieldref']}" 
                                    value="Software Title" /> 
            </h:inputText> 

            <rich:suggestionbox 
                                    for="softwareTitle" 
                                    var="suggestedSoftware" 
 suggestionAction="#{ComponentFormController.suggestSoftwareName}" 
                                    frequency="0" 
                                    frame="border" 
                                    cellpadding="0" 
                                    cellspacing="1" 
                                    minChars="3" 
                                    height="250" 
                                    rows="100" 
                                    status="loadingStatus" 
                                    title="Components found in 
knowledgebase"> 

                        <h:column> 
                                    <h:outputText value="#{suggestedSoftware}"/> 
                        </h:column> 

                        <a4j:support event="onselect" action="#{ComponentFormController.fillOnProjectSuggestion}" 
reRender="otherComponents,inHere" /> 
            </rich:suggestionbox> 
            <a4j:status id="loadingStatus"> 
                        <f:facet name="start"> 
                                    <t:div id="componentSuggestWaitDiv" 
                                                style="width:88%;border:3px #DAD9BB outset;background-color: #FFFFFF;"> 
                                                <t:panelGrid columns="2" cellpadding="2" cellspacing="2" style="background-color: #FFFFFF;"> 

<h:graphicImage url="/resources/images/circle_wait.gif" /> 
                                                            <t:htmlTag value="h6" style="#position:relative;#top:25%"> 
<h:outputText style="white-space:nowrap;" value="Retrieving Results..." /> 
                                                            </t:htmlTag> 
                                                </t:panelGrid> 
                                    </t:div> 
                        </f:facet> 
            </a4j:status> 
</a4j:region> 




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list