Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsf ajax question

 
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: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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic