what i did was to override ValidationAware.hasErrors(). according to
the docs, the workflow interceptor calls this method, if there are
validation errors, it returns "input" and stops further execution of
the action. i tried this...
public boolean hasErrors() {
boolean result = super.hasErrors();
That sounds like a classic 'prepare' problem. Take a look at the
documentation on implementing Preparable in your action. You will want
to initialize your backing beans inside the Prepare method in your
action. That when 'input' is needed, your backing beans will be
loaded.
On 7/10/10, Jake Vang
pter aucune responsabilité
pour le contenu fourni.
> Date: Sat, 10 Jul 2010 18:10:32 -0400
> Subject: validation and form display problem
> From: vangj...@googlemail.com
> To: user@struts.apache.org
>
> i have a form that i display. but to display that form, i have to
> fetch some d
i have a form that i display. but to display that form, i have to
fetch some data from the database and then place that data on the
valuestack (via backing beans). when the form is displayed, it expects
that those backing beans should be populated. the form then posts to a
save action.
i have a --
Isaac Mosquera [mailto:[EMAIL PROTECTED]
Sent: 20 July 2004 15:51
To: Struts Users Mailing List
Subject: form display
In my form i have an integer, which cannot be initialized to null, however,
it shows up in the html:text box as a "0", and i would prefer that it shows
up blank when a use
In my form i have an integer, which cannot be initialized to null, however,
it shows up in the html:text box as a "0", and i would prefer that it shows
up blank when a user FIRST reaches the page. After that, i would like the
variable to retain the value which the user has entered.
-isaac
---
6 matches
Mail list logo