[JBoss JIRA] Created: (RF-1252) rich:tree nodeSelectListener is invoked twice while used with a4j:support onselected
by Yurii (JIRA)
rich:tree nodeSelectListener is invoked twice while used with a4j:support onselected
------------------------------------------------------------------------------------
Key: RF-1252
URL: http://jira.jboss.com/jira/browse/RF-1252
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.2
Environment: JBoss 4.2.0 GA
JSF 1.2
Facelets
Mozilla Firefox as browser
Reporter: Yurii
Having rich:tree with nodeSelectListener specified, and a4j:support for event "onselected", without any actionListeners, my nodeSelectListener is invoked twice when I click on a tree node. When I remove a4j:support, everything works fine and nodeSelectListener is invoked once while I click on a node.
Notice: I've tested the situation for some time and found out that nodeSelectListener is not always invoked twice. I can't find any regularity(rule), but it definitely can be invoked as twice, as once. Sometimes when I click on a node it's invoked once, sometimes - twice. But twice - is the majority.
--
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
18 years
[JBoss JIRA] Created: (RF-1565) Messages not updated on Ajax requests unless message tag is after the Ajax component.
by Lou Bell (JIRA)
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
18 years