On Sat, May 9, 2009 at 00:49, Dave Newton <newton.d...@yahoo.com> wrote:

> Stefano Tranquillini wrote:
>
>> i've a form. i've some field that are double type. if i put a string
>> inside
>> these fileds struts automatically check the incorrectness of the type. ok!
>> but, inside this form i've a select that is created by a list.
>> when the error comes out from struts, sruts goes back to the input page,
>> the list become empty and in the page no item is display.
>>
>> how can i store the list in order to have its inside my page after the
>> error?
>>
>
> You could store it in session, you could implement Preparable and load the
> list. There are probably a few other reasonable solutions--those are what
> popped in to my head first.
>

a ok, i ** thought about the same solution.


>
>
>  PS: if i set required="true" at a field, struts doesn't check if this
>> value
>> is present or not? what meaning has this property?
>>
>
> From the documentation:
>
> "If set to true, the rendered element will indicate that
> input is required"
>
> It displays a required indicator.
>
so only display a * near the label

>
> Dave
>

ciaociao



-- 
Stefano

Reply via email to