This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes Action Event Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Action Event" Watch "Action Event" New topic
Author

Action Event

Sunder Ganapathy
Ranch Hand

Joined: Apr 01, 2003
Posts: 120
While using 'form.jsp', after pressing 'ADD', I do not find,
'listing.jsp' being loaded. The codes are as follows.

form.jsp:



listing.jsp:



ContactController.java :

Joe Matthew
Ranch Hand

Joined: Jun 10, 2008
Posts: 66
I dont find the ADD button in your first JSP. Is it button which calls the "persist()"?

What seems to be the problem? The second JSP is not loaded? Or the JSP is loaded but the values are not being displayed? I am confused

Any Exception in the console?
[ July 10, 2008: Message edited by: Joe Mathew ]

Regards,<br />Joe<br /> <br />"Always program as if the person who will be maintaining your program is a violent psychopath that knows where you live."<br />--Martin Golding
Sunder Ganapathy
Ranch Hand

Joined: Apr 01, 2003
Posts: 120


The above code displays "ADD RESET and CANCEL" buttons.

The following code should be called when 'ADD' button is pressed.
I find it is not happening, since, there is no message on the console.



The original contacts.jsp which calls both form.jsp and listing.jsp is as
follows.

 
Consider Paul's rocket mass heater.
 
subject: Action Event
 
Similar Threads
creating a table component dynamically
Unable to call Action Methof
how to set and get h:selectBooleanCheckbox value in h:datatabel
Passing parameters with h: link
JSF(managed) beans, can not work with JPA