Hi all jus seen topics on problems with editable graids and im having a
problem, the problem is not in getting the editable grid but in saving the
data entered into the field.

My Code:

tml:

                
                
                
                        
                                
                                Player points:
                                ${player.points}
                        
                
                
         


java:

@Property
        private Player player;
        @Property
        private String player_id;
        @Property
        private String points;
        @Component
        private Form update;

public String onSuccess() throws Exception {
       // create db creates connection with the database
                createDb();
                String statement = "UPDATE squad SET weekly_points =? where 
player_id=?";
                prep = conn.prepareStatement(statement);
                prep.setString(1, points);
                prep.setString(2, player_id);
                prep.executeUpdate();
                return "index";         
        }


The problem is points and player_id are null. Any idea's?


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Saving-from-an-editable-grid-tp3412259p3412259.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to