This content has been marked as final.
Show 4 replies
-
1. Re: AjaxListener
ilya_shaikovsky Dec 12, 2008 9:22 AM (in response to losintikfos)Check out latest version of richfaces-demo from trunk. deploy run and open ajax support sample. There is new tab (second one) where the sample you need.
-
2. Re: AjaxListener
losintikfos Dec 12, 2008 10:11 AM (in response to losintikfos)Thanks!
Do anyone know how to retrieve the value send via the form in the bean in the EventListener?
I am doing something like this;public void processRoom(AjaxEvent arg0) { //Here arg0 don't seem to have signature to retrieve the value sent }
-
3. Re: AjaxListener
losintikfos Dec 12, 2008 11:04 AM (in response to losintikfos)Hi Guys,
I am using AjaxListener to pass value name like this<a4j:commandLink id="cLink" value="James Brown" reRender="output" actionListener="#{bean.process}"/> <a4j:outputPanel id="output"> <h:outputText value="#{bean.message1}" style="display:block"/> </a4j:outputPanel>
Bean:public void process(AjaxEvent arg0) { //Extract the value sent via the request }
My question is! i dont seem to get any method signature to retrieve the value sent. Do anyone know how to extract the value? -
4. Re: AjaxListener
losintikfos Dec 12, 2008 11:20 AM (in response to losintikfos)The value is coming from this instead! sorry for using link
<h:selectOneMenu id="loc" value="#{ServiceRequest.loca}" label="Location" required="true">
<f:selectItems value="#{ServiceRequest.location}"/>
<a4j:support reRender="output" actionListener="#{ServiceRequest.process}" event="onchange"> </a4j:support>
</h:selectOneMenu>