[
https://issues.jboss.org/browse/RF-10948?page=com.atlassian.jira.plugin.s...
]
Brian Leathem commented on RF-10948:
------------------------------------
This indeed seems wrong:
{code}
if (this.focusValue != this.selValueInput.val()) {
this.invokeEvent.call(this, "selectitem",
document.getElementById(this.id));
}
{code}
If the select list is rendered with "item 3" selected, then I select "item
5", then select "item 3", no event is fired when I select item
"3". This is wrong.
I propose firing the "selectitem" value regardless of the current focus value.
If the user is interested in whether or not the value has changed compared to the focus
value, they should be observing the "change" event.
component select: instable behaviour in conjunction with a standard
jsf-tag ajax (event selectitem, probably more)
------------------------------------------------------------------------------------------------------------------
Key: RF-10948
URL:
https://issues.jboss.org/browse/RF-10948
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-selects
Affects Versions: 4.0.0.Final
Environment: Webcontainer: Tomcat 6
JSF 2.0 implementation: mojarra 2.0.4-b9
Richfaces 4 Final
Reporter: Sergej Becker
Assignee: Brian Leathem
Fix For: 4.1.0.Milestone2
The durable usage of the sample below can reproduce an inconsistent behavior of the
component 'select' in conjunction with a standard jsf-tag 'ajax':
on event 'selectitem' (it probably effects more events) the ajax-request
doesn't work consistent. Occurs sporadically! It usually affects the first selected
value.
<h:form id="formid">
<rich:select value="#{...}" label="...">
<f:ajax event="selectitem" render=":formid:tableid" />
<f:selectItem itemValue="0" itemLabel="0..n" />
<f:selectItem itemValue="20" itemLabel="20..n" />
<f:selectItem itemValue="40" itemLabel="40..n" />
</rich:select>
<h:dataTable value="..." id="tableid" var="...">
<h:column>
<h:outputText value="..."/>
</h:column>
<h:column>
<h:outputText value="..."/>
</h:column>
<h:column>
<h:outputText value="..."/>
</h:column>
</h:dataTable>
</h:form>
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira