-
1. Re: rich:suggestionbox How to get selected value
marmalis Mar 2, 2009 4:02 AM (in response to sirghost)Hello, SirGhost
Please post full page code (RF). -
2. Re: rich:suggestionbox How to get selected value
sirghost Mar 2, 2009 4:34 AM (in response to sirghost)<h:inputText value="#{bean.fullname}" id="fullname" >
<a4j:support event="onchange" actionListener="#{bean.getInfo}" reRender="fullname" />
</h:inputText>
<rich:suggestionbox id="suggestionBoxId" for="fullname"
suggestionAction="#{bean.autocomplete}" var="result"
fetchValue="#{result.fullname}"
width="200" height="150" reRender="InputDoc">
<h:column>
<h:outputText value="#{result}"/>
</h:column>
</rich:suggestionbox>
I'm using RichFaces 3.3.0 GA
that's right? plz :( -
3. Re: rich:suggestionbox How to get selected value
marmalis Mar 2, 2009 6:13 AM (in response to sirghost):O) i try to understand, but just can't..
Please post full page code (what is "InputDoc"?)
and code of bean functions.
thanx -
4. Re: rich:suggestionbox How to get selected value
nbelaevski Mar 2, 2009 9:18 AM (in response to sirghost)Hello,
Please take a look here: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=149783 -
5. Re: rich:suggestionbox How to get selected value
sirghost Mar 2, 2009 10:20 AM (in response to sirghost)<h:inputText value="#{bean.fullname}" id="fullname" >
<a4j:support event="onchange" actionListener="#{bean.getInfo}" reRender="fullname" />
</h:inputText>
<rich:suggestionbox id="suggestionBoxId" for="fullname"
suggestionAction="#{bean.autocomplete}" var="result"
fetchValue="#{result.fullname}"
width="200" height="150" reRender="InputDoc">
<h:column>
<h:outputText value="#{result.fullname}"/>
</h:column>
<a4j:support ajaxSingle="true" event="onselect">
<f:setPropertyActionListener value="#{result.nombreCompleto}" target="#{bean.fullname}" />
</a4j:support>
</rich:suggestionbox>
Thx a lot!!! :D my bean has the full name now. really thx :D -
6. Re: rich:suggestionbox How to get selected value
cibermon Mar 2, 2009 11:04 AM (in response to sirghost)Try this code:
<h:inputText value="#{bean.fullname}" id="fullname" />
<rich:suggestionbox id="suggestionBoxId" for="fullname"
suggestionAction="#{bean.autocomplete}" var="result"
fetchValue="#{result.fullname}"
width="200" height="150">
<h:column>
<h:outputText value="#{result.fullname}"/>
</h:column>
</rich:suggestionbox>"SirGhost" wrote:
<h:inputText value="#{bean.fullname}" id="fullname" >
<a4j:support event="onchange" actionListener="#{bean.getInfo}" reRender="fullname" />
</h:inputText>
<rich:suggestionbox id="suggestionBoxId" for="fullname"
suggestionAction="#{bean.autocomplete}" var="result"
fetchValue="#{result.fullname}"
width="200" height="150" reRender="InputDoc">
<h:column>
<h:outputText value="#{result}"/>
</h:column>
</rich:suggestionbox>
I'm using RichFaces 3.3.0 GA
that's right? plz :(