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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "jsf ajax question" Watch "jsf ajax question" New topic

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

<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>

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
I agree. Here's the link:
subject: jsf ajax question
jQuery in Action, 3rd edition