Hello Craig,

thank you very much, I didn't know that the action method is not executed when a validation error occurs. That seems to be the problem, because all of my form input fields are required fields and the messages get filled. Is there a way to skip validation on some actions? I would like to validate the form when submitting it, but not when I select one item in a list to fill the form with. Or is it standard behaviour to extract such data tables to an extra form in the .jsp?
Thank you very much, what I wrote so far in this group is really excellent!

Good night!

Peter

Craig McClanahan wrote:
One thing to double check is whether some validation rules are failing,
which would cause the action method call to get bypassed.  The simplest way
to verify this is to add an <h:messages> component to your page, which will
display any validation messages that exist, or nothing if there were no
messages.

It's also possible that an exception is getting eaten somewhere along the
way ... check the log file of your servlet container as well for any stack
traces.

Craig


On 2/10/06, Peter Goetz <[EMAIL PROTECTED]> wrote:

Hi there!

I'm new to Struts, to Shale and to this list, so excuse if I'm asking
dumb questions.
I have a simple .jsp (personmaintenance.jsp), backed by a backing bean
(PersonMaintenance.class.
In the jsp I have buttons with actions "save", "edit", "delete",
"create", for which I defined the corresponding methods in the backing
bean. The backing bean has two attributes, a person (for the form to
edit) and a persons Collection for an overview table. When calling the
jsp (personmaintenance.faces), everything is fine. The Collection gets
filled from the database, the person attribute is null.
Unfortunately if I hit one of the buttons "edit" or "delete", the
corresponding method is not being called. If the person attribute is
filled from the start, everything works fine.
Can somebody tell me what to do to get the methods executed when I hit
the button and the argument is null? Or am I missing something elementary?
Thanks a lot!

Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to