SuggestionBox: nested support missing var
-----------------------------------------
Key: RF-923
URL:
http://jira.jboss.com/jira/browse/RF-923
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.0
Reporter: Nick Belaevski
Assigned To: Andrey Izobov
Fix For: 3.2.0
Hi.
I'm trying to set a backingbean property from a property's POJO when the user
selects an item from the suggestionBox..
I tryed to use a4j:support binded to "onselect" event... and the
f:setPropertyActionListener, inside do a4j:suport, was executed.
But, the property of the POJO always came null to backingbean.
Is it normal?
follow the code:
<h:inputText value="#{bean.letter}" styleClass="txt"
style="width:190px;" id="grupoNome" />
<rich:suggestionbox id="grupos" for="grupoNome"
var="grupo" suggestionAction="#{bean.grupos}"
requestDelay="500" >
<h:column>
<h:outputText value="#{grupo.nome}" />
</h:column>
<a4j:support event="onselect" reRender="grupoNome">
<f:setPropertyActionListener target="#{bean.idGrupo}"
value="#{grupo.id}"/>
</a4j:support>
</rich:suggestionbox>
--------------------------
--------------------------
--------------------------
the action <f:setPropertyActionListener target="#{bean.idGrupo}"
value="#{grupo.id}"/> execute. But I think the component don't mantain
the state to "var" (grupo, in this case), because it always came null to
#{bean.idGrupo} in the target..
Tks
[ Show » ]
Daniel Badawi [27/Aug/07 05:04 PM] Hi. I'm trying to set a backingbean property from a
property's POJO when the user selects an item from the suggestionBox.. I tryed to use
a4j:support binded to "onselect" event... and the f:setPropertyActionListener,
inside do a4j:suport, was executed. But, the property of the POJO always came null to
backingbean. Is it normal? follow the code: <h:inputText
value="#{bean.letter}" styleClass="txt" style="width:190px;"
id="grupoNome" /> <rich:suggestionbox id="grupos"
for="grupoNome" var="grupo"
suggestionAction="#{bean.grupos}" requestDelay="500" >
<h:column> <h:outputText value="#{grupo.nome}" /> </h:column>
<a4j:support event="onselect" reRender="grupoNome">
<f:setPropertyActionListener target="#{bean.idGrupo}"
value="#{grupo.id}"/> </a4j:support> </rich:suggestionbox>
-------------------------- -------------------------- -------------------------- the
action <f:setPropertyActionListener target="#{bean.idGrupo}"
value="#{grupo.id}"/> execute. But I think the component don't mantain
the state to "var" (grupo, in this case), because it always came null to
#{bean.idGrupo} in the target.. Tks
--
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