This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem With the "action" Attribute

 
zohreh talebi
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to edit some of my table data. I have put <h:commandButton> around my <hutputText ...> so that if I click on the button, the changes would be saved to database. The action of the button is : "tableData.saveEditedRow".
The problem is that when I click on the button nothing happens.
These are some part of my code (please kindly help me) :

edit.jsp :




TableData.java :




My bean class (Name.java) :

 
zohreh talebi
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please somebody guide me...
 
Tak Ng
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On the line
<h:commandButton action="tableData.saveEditedRow" value="save">

you must surround "tableData.saveEditedRow" with #{} so it becomes

<h:commandButton action="#{tableData.saveEditedRow}" value="save">
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic