[rich:suggestionBox][aj4:suport] get paramId and display paramName

View: New views
2 Messages — Rating Filter:   Alert me  

[rich:suggestionBox][aj4:suport] get paramId and display paramName

by lmk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hellooo;

Im using suggestion box, with a4j:support, to update form values on the suggestion select event..

<rich:suggestionbox id="suggestionCompanyId" for="textCompany" tokens=",[" rules="none"
suggestionAction="#{queryBean.autocompleteCompany}"
var="result" fetchValue="#{result.name}" rows="0" first="0"
minChars="2" shadowOpacity="5" border="1" width="200"
height="150" shadowDepth="0" cellpadding="5"
style="background-color:yellow">
<h:column>
<h:outputText value="#{result.name}" />
</h:column>
<h:messages />
<a4j:support event="onselect"
        reRender="client"  action="#{queryBean.findClientOf}" ajaxSingle="false" />
</rich:suggestionbox>

how to get the result.id on the support action ??
Id like to display the result.name and recover result id ..

thanks!!!
       

Re: [rich:suggestionBox][aj4:suport] get paramId and display paramName

by Adrian Mitev-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This mailing list is deprecated use the forum at jboss.org

2007/9/20, lmk <lotfi65@...>:

Hellooo;

Im using suggestion box, with a4j:support, to update form values on the
suggestion select event..

<rich:suggestionbox id="suggestionCompanyId" for="textCompany" tokens=",["
rules="none"
suggestionAction="#{queryBean.autocompleteCompany}"
var="result" fetchValue="#{result.name}" rows="0" first="0"
minChars="2" shadowOpacity="5" border="1" width="200"
height="150" shadowDepth="0" cellpadding="5"
style="background-color:yellow">
<h:column>
<h:outputText value="#{result.name}" />
</h:column>
<h:messages />
<a4j:support event="onselect"
        reRender="client"  action="#{ queryBean.findClientOf}" ajaxSingle="false" />
</rich:suggestionbox>

how to get the result.id on the support action ??
Id like to display the result.name and recover result id ..

thanks!!!

--
View this message in context: http://www.nabble.com/-rich%3AsuggestionBox--aj4%3Asuport--get-paramId-and-display-paramName-tf4487816.html#a12798010
Sent from the Ajax4jsf users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


LightInTheBox - Buy quality products at wholesale price!