GeeCON Prague 2014*
The moose likes JSF and the fly likes jsf ajax question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "jsf ajax question" Watch "jsf ajax question" New topic
Author

jsf ajax question

jim li
Ranch Hand

Joined: May 20, 2008
Posts: 180
Hi Everyone,

I got ajax problem and i have been stuck for days.

this is my ajax method:
<h:commandButton image="/resources/images/icons/add.png" alt="Add isotope" immediate="true" action="#{experimentSessionBean.addnewitem}">
<f:ajax render="check-isotopes-add click-to-add-isotope" execute="click-to-add-isotope"/>
</h:commandButton>

<h:panelGrid id="click-to-add-isotope" rendered = "#{experimentSessionBean.currentReport.infoType eq 'cc'}" columns = "1">
<ui:repeat value="#{experimentSessionBean.list}" var="isotope">

<tr>
<td ><h: outputLabel value = "Isotope" for="secIsotope"/></td>
<td ><h:inputText id="secIsotope" value = "#{isotope.isotopeName}" validator="experimentTitleValidator"/>
<h:message for="secIsotope" styleClass="warningMessage" /></td>
</tr>
</table>

</ui:repeat>
</h:panelGrid>
the problem is , when i enter new value for input textfield (h:inputText id="secIsotope" value = "#{isotope.isotopeName}" validator="experimentTitleValidator"/>)

and then click the add method (which is my ajax call above), the value does not goes into my bean value, and it is still empty.

please help

thank you
 
GeeCON Prague 2014
 
subject: jsf ajax question