Re: Validation with preloading form fields

2010-10-08 Thread Dave Newton
No sweat :)

On Friday, October 8, 2010, Joshua Tennent  wrote:
>  That was it, thanks! I forgot to implement Preparable.
>
> On 10/8/2010 7:45 PM, Dave Newton wrote:
>
> Are you implementing Preparable, or overriding the input() method?
>
> Dave
>
> On Friday, October 8, 2010, Joshua Tennent  wrote:
>
>   I am having trouble validating a form where it requires preloading lists 
> for some of the fields. I'm not sure how to configure the struts.xml entry 
> for the INPUT return type.
>
> I am getting this error, which is indicating it's not getting to the prepare 
> method of createCharacterAction:
> tag 'radio', field 'list', name 'gender': The requested list key 'genders' 
> could not be resolved as a collection/array/map/enumeration/iterator type. 
> Example: people or people.{name} - [unknown location]
>
> The form will load properly when I call the action directly or from my 
> redirectAction below in the doLogin action. I have tried various values for 
> the input type but nothing seems to work. Any suggestions?
>
> 
> /login
> /login
> /welcome
>  type="redirectAction">prepareCreateCharacter
> 
>
> 
> /pages/createcharacter.jsp
> /pages/createcharacter.jsp
> /pages/createcharacter.jsp
> /welcome
> 
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
>
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

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



Re: Validation with preloading form fields

2010-10-08 Thread Joshua Tennent

 That was it, thanks! I forgot to implement Preparable.

On 10/8/2010 7:45 PM, Dave Newton wrote:

Are you implementing Preparable, or overriding the input() method?

Dave

On Friday, October 8, 2010, Joshua Tennent  wrote:

  I am having trouble validating a form where it requires preloading lists for 
some of the fields. I'm not sure how to configure the struts.xml entry for the 
INPUT return type.

I am getting this error, which is indicating it's not getting to the prepare 
method of createCharacterAction:
tag 'radio', field 'list', name 'gender': The requested list key 'genders' 
could not be resolved as a collection/array/map/enumeration/iterator type. 
Example: people or people.{name} - [unknown location]

The form will load properly when I call the action directly or from my 
redirectAction below in the doLogin action. I have tried various values for the 
input type but nothing seems to work. Any suggestions?


/login
/login
/welcome
prepareCreateCharacter



/pages/createcharacter.jsp
/pages/createcharacter.jsp
/pages/createcharacter.jsp
/welcome



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



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





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



Re: Validation with preloading form fields

2010-10-08 Thread Dave Newton
Are you implementing Preparable, or overriding the input() method?

Dave

On Friday, October 8, 2010, Joshua Tennent  wrote:
>  I am having trouble validating a form where it requires preloading lists for 
> some of the fields. I'm not sure how to configure the struts.xml entry for 
> the INPUT return type.
>
> I am getting this error, which is indicating it's not getting to the prepare 
> method of createCharacterAction:
> tag 'radio', field 'list', name 'gender': The requested list key 'genders' 
> could not be resolved as a collection/array/map/enumeration/iterator type. 
> Example: people or people.{name} - [unknown location]
>
> The form will load properly when I call the action directly or from my 
> redirectAction below in the doLogin action. I have tried various values for 
> the input type but nothing seems to work. Any suggestions?
>
> 
> /login
> /login
> /welcome
>  type="redirectAction">prepareCreateCharacter
> 
>
> 
> /pages/createcharacter.jsp
> /pages/createcharacter.jsp
> /pages/createcharacter.jsp
> /welcome
> 
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

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



Validation with preloading form fields

2010-10-08 Thread Joshua Tennent
 I am having trouble validating a form where it requires preloading 
lists for some of the fields. I'm not sure how to configure the 
struts.xml entry for the INPUT return type.


I am getting this error, which is indicating it's not getting to the 
prepare method of createCharacterAction:
tag 'radio', field 'list', name 'gender': The requested list key 
'genders' could not be resolved as a 
collection/array/map/enumeration/iterator type. Example: people or 
people.{name} - [unknown location]


The form will load properly when I call the action directly or from my 
redirectAction below in the doLogin action. I have tried various values 
for the input type but nothing seems to work. Any suggestions?



/login
/login
/welcome
type="redirectAction">prepareCreateCharacter




/pages/createcharacter.jsp
/pages/createcharacter.jsp
/pages/createcharacter.jsp
/welcome



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