[
https://issues.jboss.org/browse/RF-12645?page=com.atlassian.jira.plugin.s...
]
Brian Leathem edited comment on RF-12645 at 12/17/12 12:12 PM:
---------------------------------------------------------------
Thanks for reply. I appreciate your comments and the component start to work, but, I still
have some problems with it I didn't have when I used to use it on Richfaces 3.3.x.
Follow my questions:
- Is there a way the 'selectitem' event to be fired by the TAB key?
- How could I send some parameters to the backing bean when I select the item? I've
been trying to use the jsFunction, but it doens't work, not even a4j:param.
This is my code snippet:
{code}
<h:form>
<a4j:jsFunction action="#{autoCompleteController.ajaxMethod}"
name="ajaxSend">
<a4j:param name="param1"
assignTo="#{autoCompleteController.code}" />
</a4j:jsFunction>
<h:panelGrid columns="2">
<h:outputText value="Name:" />
<rich:autocomplete id="auto" mode="ajax"
autocompleteMethod="#{autoCompleteController.autoComplete()}"
var="person" fetchValue="#{person.name}"
layout="table" onselectitem="ajaxSend(#{person.code})"
value="#{autoCompleteController.name}">
<rich:column>
<h:outputText value="#{person.name}" />
</rich:column>
<rich:column>
<h:outputText value="#{person.code}" />
</rich:column>
</rich:autocomplete>
</h:panelGrid>
</h:form>
{code}
I want to send the value 'person.code' to the managed bean when I select the
item.
Thank for your attention and time
Junior
was (Author: junior.mendes):
Thanks for reply. I appreciate your comments and the component start to work, but, I
still have some problems with it I didn't have when I used to use it on Richfaces
3.3.x. Follow my questions:
- Is there a way the 'selectitem' event to be fired by the TAB key?
- How could I send some parameters to the backing bean when I select the item? I've
been trying to use the jsFunction, but it doens't work, not even a4j:param.
This is my code snippet:
<h:form>
<a4j:jsFunction action="#{autoCompleteController.ajaxMethod}"
name="ajaxSend">
<a4j:param name="param1"
assignTo="#{autoCompleteController.code}" />
</a4j:jsFunction>
<h:panelGrid columns="2">
<h:outputText value="Name:" />
<rich:autocomplete id="auto" mode="ajax"
autocompleteMethod="#{autoCompleteController.autoComplete()}"
var="person" fetchValue="#{person.name}"
layout="table" onselectitem="ajaxSend(#{person.code})"
value="#{autoCompleteController.name}">
<rich:column>
<h:outputText value="#{person.name}" />
</rich:column>
<rich:column>
<h:outputText value="#{person.code}" />
</rich:column>
</rich:autocomplete>
</h:panelGrid>
</h:form>
I want to send the value 'person.code' to the managed bean when I select the
item.
Thank for your attention and time
Junior
rich:autoComplete's valueChangeListener property doesn't
fire
-------------------------------------------------------------
Key: RF-12645
URL:
https://issues.jboss.org/browse/RF-12645
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-input
Affects Versions: 4.2.2.Final
Environment: Google Chrome Version 21.0.1180.89;
Debian wheezy/sid
Richfaces 4.2.2
Reporter: Valdir Mendes Junior
Labels: valueChangeListener, waiting_on_user
After made the search, I select the option and expected the valueChangeListener method to
be called, but it' doesn't.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira