Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsf ajax question  RSS feed

jim li
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!