Re: drop down list not working after using validation.xml

2009-06-21 Thread Yanto
Hi,

After used prepare the method we could see the dropdown values. But
s:fielderror tag still displaying error messages even I selected the value
from the dropdown. So that its not invoking my action class. Because
assuming still one more selection not happened in the form. Why this
behavior ?  Any other way to handle this?


   
   Please select the Entity














Regards
Yanto

On Fri, Jun 19, 2009 at 11:33 PM, Yanto  wrote:

> Hi Greg,
> thanks for the link...seem this faq entry explain the problem that we face
> now...will try it...
>
> Thanks
> Yanto
>
>
> On Fri, Jun 19, 2009 at 11:15 PM, Greg Lindholm 
> wrote:
>
>> Did you look at this FAQ entry?
>>
>>
>> http://struts.apache.org/2.1.6/docs/how-do-we-repopulate-controls-when-validation-fails.html
>>
>>
>> On Fri, Jun 19, 2009 at 10:43 AM, Girish Naik 
>> wrote:
>>
>> > One of my colleague had done it in some project. But dont know if its
>> the
>> > correct way. :(
>> >
>> >
>> > Regards,
>> > -
>> > Girish Naik
>> > Mobile:-+91-09740091638
>> > girish.n...@gmail.com
>> > Samuel Goldwyn<
>> > http://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html>
>> > - "I'm willing to admit that I may not always be right, but I am never
>> > wrong."
>> >
>> > On Fri, Jun 19, 2009 at 5:24 PM, Yanto  wrote:
>> >
>> > > Hi Girish,
>> > >
>> > > Is this mean we can load the list again in Action's Preparable method
>> ?
>> > > currently, we are trying looking at the sample in internet.
>> > >
>> > > Thanks & Regards
>> > > Yanto
>> > >
>> > > On Thu, Jun 18, 2009 at 10:23 PM, Girish Naik 
>> > > wrote:
>> > >
>> > > > After validation, Action's Preparable method is called, you can load
>> > the
>> > > > required list in request again.
>> > > >
>> > > >
>> > > > Regards,
>> > > > -
>> > > > Girish Naik
>> > > > Mobile:-+91-09740091638
>> > > > girish.n...@gmail.com
>> > > > Samuel Goldwyn<
>> > > > http://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html>
>> > > > - "I'm willing to admit that I may not always be right, but I am
>> never
>> > > > wrong."
>> > > >
>> > > > On Thu, Jun 18, 2009 at 5:08 PM, Dave Newton > >
>> > > > wrote:
>> > > >
>> > > > > Please consider copying your code snippets into a plain-text
>> editor
>> > > > before
>> > > > > including them in an email message: we're getting a blank line
>> > between
>> > > > each
>> > > > > line and a lot of spurious asterisks.
>> > > > >
>> > > > > Yanto wrote:
>> > > > >
>> > > > >> *org.apache.jasper.JasperException: tag 'select', field 'list',
>> name
>> > > > >> 'entityInternalId': The requested list key 'entities' could not
>> be
>> > > > >> resolved
>> > > > >> as a collection/array/map/enumeration/iterator type. Example:
>> people
>> > > or
>> > > > >> people.{name} - [unknown location]*
>> > > > >>
>> > > > >>  without validation xml and application page showing dropdown
>> coming
>> > > > >> properly.
>> > > > >>
>> > > > >>  > > > > >>name=*"entityInternalId"*
>> > > > >>list=*"entities"*
>> > > > >>headerKey=*""*
>> > > > >>headerValue=*""*
>> > > > >>listKey=*"internalId"*
>> > > > >>listValue=*"entityName"*
>> > > > >> />
>> > > > >>
>> > > > >> Any one help on this ?
>> > > > >>
>> > > > >
>> > > > > Do you load the "entities" list? Recall that actions are
>> instantiated
>> > > > > per-request.
>> > > > >
>> > > > > Dave
>> > > > >
>> > > > >
>> -
>> > > > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> > > > > For additional commands, e-mail: user-h...@struts.apache.org
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>>
>
>


Re: drop down list not working after using validation.xml

2009-06-19 Thread Yanto
Hi Greg,
thanks for the link...seem this faq entry explain the problem that we face
now...will try it...

Thanks
Yanto

On Fri, Jun 19, 2009 at 11:15 PM, Greg Lindholm wrote:

> Did you look at this FAQ entry?
>
>
> http://struts.apache.org/2.1.6/docs/how-do-we-repopulate-controls-when-validation-fails.html
>
>
> On Fri, Jun 19, 2009 at 10:43 AM, Girish Naik 
> wrote:
>
> > One of my colleague had done it in some project. But dont know if its the
> > correct way. :(
> >
> >
> > Regards,
> > -
> > Girish Naik
> > Mobile:-+91-09740091638
> > girish.n...@gmail.com
> > Samuel Goldwyn<
> > http://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html>
> > - "I'm willing to admit that I may not always be right, but I am never
> > wrong."
> >
> > On Fri, Jun 19, 2009 at 5:24 PM, Yanto  wrote:
> >
> > > Hi Girish,
> > >
> > > Is this mean we can load the list again in Action's Preparable method ?
> > > currently, we are trying looking at the sample in internet.
> > >
> > > Thanks & Regards
> > > Yanto
> > >
> > > On Thu, Jun 18, 2009 at 10:23 PM, Girish Naik 
> > > wrote:
> > >
> > > > After validation, Action's Preparable method is called, you can load
> > the
> > > > required list in request again.
> > > >
> > > >
> > > > Regards,
> > > > -
> > > > Girish Naik
> > > > Mobile:-+91-09740091638
> > > > girish.n...@gmail.com
> > > > Samuel Goldwyn<
> > > > http://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html>
> > > > - "I'm willing to admit that I may not always be right, but I am
> never
> > > > wrong."
> > > >
> > > > On Thu, Jun 18, 2009 at 5:08 PM, Dave Newton 
> > > > wrote:
> > > >
> > > > > Please consider copying your code snippets into a plain-text editor
> > > > before
> > > > > including them in an email message: we're getting a blank line
> > between
> > > > each
> > > > > line and a lot of spurious asterisks.
> > > > >
> > > > > Yanto wrote:
> > > > >
> > > > >> *org.apache.jasper.JasperException: tag 'select', field 'list',
> name
> > > > >> 'entityInternalId': The requested list key 'entities' could not be
> > > > >> resolved
> > > > >> as a collection/array/map/enumeration/iterator type. Example:
> people
> > > or
> > > > >> people.{name} - [unknown location]*
> > > > >>
> > > > >>  without validation xml and application page showing dropdown
> coming
> > > > >> properly.
> > > > >>
> > > > >>   > > > >>name=*"entityInternalId"*
> > > > >>list=*"entities"*
> > > > >>headerKey=*""*
> > > > >>headerValue=*""*
> > > > >>listKey=*"internalId"*
> > > > >>listValue=*"entityName"*
> > > > >> />
> > > > >>
> > > > >> Any one help on this ?
> > > > >>
> > > > >
> > > > > Do you load the "entities" list? Recall that actions are
> instantiated
> > > > > per-request.
> > > > >
> > > > > Dave
> > > > >
> > > > >
> -
> > > > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > > > > For additional commands, e-mail: user-h...@struts.apache.org
> > > > >
> > > > >
> > > >
> > >
> >
>


Re: drop down list not working after using validation.xml

2009-06-19 Thread Greg Lindholm
Did you look at this FAQ entry?

http://struts.apache.org/2.1.6/docs/how-do-we-repopulate-controls-when-validation-fails.html


On Fri, Jun 19, 2009 at 10:43 AM, Girish Naik  wrote:

> One of my colleague had done it in some project. But dont know if its the
> correct way. :(
>
>
> Regards,
> -
> Girish Naik
> Mobile:-+91-09740091638
> girish.n...@gmail.com
> Samuel Goldwyn<
> http://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html>
> - "I'm willing to admit that I may not always be right, but I am never
> wrong."
>
> On Fri, Jun 19, 2009 at 5:24 PM, Yanto  wrote:
>
> > Hi Girish,
> >
> > Is this mean we can load the list again in Action's Preparable method ?
> > currently, we are trying looking at the sample in internet.
> >
> > Thanks & Regards
> > Yanto
> >
> > On Thu, Jun 18, 2009 at 10:23 PM, Girish Naik 
> > wrote:
> >
> > > After validation, Action's Preparable method is called, you can load
> the
> > > required list in request again.
> > >
> > >
> > > Regards,
> > > -
> > > Girish Naik
> > > Mobile:-+91-09740091638
> > > girish.n...@gmail.com
> > > Samuel Goldwyn<
> > > http://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html>
> > > - "I'm willing to admit that I may not always be right, but I am never
> > > wrong."
> > >
> > > On Thu, Jun 18, 2009 at 5:08 PM, Dave Newton 
> > > wrote:
> > >
> > > > Please consider copying your code snippets into a plain-text editor
> > > before
> > > > including them in an email message: we're getting a blank line
> between
> > > each
> > > > line and a lot of spurious asterisks.
> > > >
> > > > Yanto wrote:
> > > >
> > > >> *org.apache.jasper.JasperException: tag 'select', field 'list', name
> > > >> 'entityInternalId': The requested list key 'entities' could not be
> > > >> resolved
> > > >> as a collection/array/map/enumeration/iterator type. Example: people
> > or
> > > >> people.{name} - [unknown location]*
> > > >>
> > > >>  without validation xml and application page showing dropdown coming
> > > >> properly.
> > > >>
> > > >>   > > >>name=*"entityInternalId"*
> > > >>list=*"entities"*
> > > >>headerKey=*""*
> > > >>headerValue=*""*
> > > >>listKey=*"internalId"*
> > > >>listValue=*"entityName"*
> > > >> />
> > > >>
> > > >> Any one help on this ?
> > > >>
> > > >
> > > > Do you load the "entities" list? Recall that actions are instantiated
> > > > per-request.
> > > >
> > > > Dave
> > > >
> > > > -
> > > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > > > For additional commands, e-mail: user-h...@struts.apache.org
> > > >
> > > >
> > >
> >
>


Re: drop down list not working after using validation.xml

2009-06-19 Thread Girish Naik
One of my colleague had done it in some project. But dont know if its the
correct way. :(


Regards,
-
Girish Naik
Mobile:-+91-09740091638
girish.n...@gmail.com
Samuel Goldwyn
- "I'm willing to admit that I may not always be right, but I am never
wrong."

On Fri, Jun 19, 2009 at 5:24 PM, Yanto  wrote:

> Hi Girish,
>
> Is this mean we can load the list again in Action's Preparable method ?
> currently, we are trying looking at the sample in internet.
>
> Thanks & Regards
> Yanto
>
> On Thu, Jun 18, 2009 at 10:23 PM, Girish Naik 
> wrote:
>
> > After validation, Action's Preparable method is called, you can load the
> > required list in request again.
> >
> >
> > Regards,
> > -
> > Girish Naik
> > Mobile:-+91-09740091638
> > girish.n...@gmail.com
> > Samuel Goldwyn<
> > http://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html>
> > - "I'm willing to admit that I may not always be right, but I am never
> > wrong."
> >
> > On Thu, Jun 18, 2009 at 5:08 PM, Dave Newton 
> > wrote:
> >
> > > Please consider copying your code snippets into a plain-text editor
> > before
> > > including them in an email message: we're getting a blank line between
> > each
> > > line and a lot of spurious asterisks.
> > >
> > > Yanto wrote:
> > >
> > >> *org.apache.jasper.JasperException: tag 'select', field 'list', name
> > >> 'entityInternalId': The requested list key 'entities' could not be
> > >> resolved
> > >> as a collection/array/map/enumeration/iterator type. Example: people
> or
> > >> people.{name} - [unknown location]*
> > >>
> > >>  without validation xml and application page showing dropdown coming
> > >> properly.
> > >>
> > >>   > >>name=*"entityInternalId"*
> > >>list=*"entities"*
> > >>headerKey=*""*
> > >>headerValue=*""*
> > >>listKey=*"internalId"*
> > >>listValue=*"entityName"*
> > >> />
> > >>
> > >> Any one help on this ?
> > >>
> > >
> > > Do you load the "entities" list? Recall that actions are instantiated
> > > per-request.
> > >
> > > Dave
> > >
> > > -
> > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > > For additional commands, e-mail: user-h...@struts.apache.org
> > >
> > >
> >
>


Re: drop down list not working after using validation.xml

2009-06-19 Thread Yanto
Hi Girish,

Is this mean we can load the list again in Action's Preparable method ?
currently, we are trying looking at the sample in internet.

Thanks & Regards
Yanto

On Thu, Jun 18, 2009 at 10:23 PM, Girish Naik  wrote:

> After validation, Action's Preparable method is called, you can load the
> required list in request again.
>
>
> Regards,
> -
> Girish Naik
> Mobile:-+91-09740091638
> girish.n...@gmail.com
> Samuel Goldwyn<
> http://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html>
> - "I'm willing to admit that I may not always be right, but I am never
> wrong."
>
> On Thu, Jun 18, 2009 at 5:08 PM, Dave Newton 
> wrote:
>
> > Please consider copying your code snippets into a plain-text editor
> before
> > including them in an email message: we're getting a blank line between
> each
> > line and a lot of spurious asterisks.
> >
> > Yanto wrote:
> >
> >> *org.apache.jasper.JasperException: tag 'select', field 'list', name
> >> 'entityInternalId': The requested list key 'entities' could not be
> >> resolved
> >> as a collection/array/map/enumeration/iterator type. Example: people or
> >> people.{name} - [unknown location]*
> >>
> >>  without validation xml and application page showing dropdown coming
> >> properly.
> >>
> >>   >>name=*"entityInternalId"*
> >>list=*"entities"*
> >>headerKey=*""*
> >>headerValue=*""*
> >>listKey=*"internalId"*
> >>listValue=*"entityName"*
> >> />
> >>
> >> Any one help on this ?
> >>
> >
> > Do you load the "entities" list? Recall that actions are instantiated
> > per-request.
> >
> > Dave
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
>


Re: drop down list not working after using validation.xml

2009-06-19 Thread Yanto
Hi Dave,

>>Please consider copying your code snippets into a plain-text editor before
including them in an email message: we're getting a blank line between each
line >>and a lot of spurious asterisks.
 noted :)

Yes, we are loading the list with 10 values from database and struts
creating the instance per request ok.

Any problem in the above approach ?

Regards
Yanto


On Thu, Jun 18, 2009 at 7:38 PM, Dave Newton  wrote:

> Please consider copying your code snippets into a plain-text editor before
> including them in an email message: we're getting a blank line between each
> line and a lot of spurious asterisks.
>
> Yanto wrote:
>
>> *org.apache.jasper.JasperException: tag 'select', field 'list', name
>> 'entityInternalId': The requested list key 'entities' could not be
>> resolved
>> as a collection/array/map/enumeration/iterator type. Example: people or
>> people.{name} - [unknown location]*
>>
>>  without validation xml and application page showing dropdown coming
>> properly.
>>
>>  >name=*"entityInternalId"*
>>list=*"entities"*
>>headerKey=*""*
>>headerValue=*""*
>>listKey=*"internalId"*
>>listValue=*"entityName"*
>> />
>>
>> Any one help on this ?
>>
>
> Do you load the "entities" list? Recall that actions are instantiated
> per-request.
>
> Dave
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: drop down list not working after using validation.xml

2009-06-18 Thread Girish Naik
After validation, Action's Preparable method is called, you can load the
required list in request again.


Regards,
-
Girish Naik
Mobile:-+91-09740091638
girish.n...@gmail.com
Samuel Goldwyn
- "I'm willing to admit that I may not always be right, but I am never
wrong."

On Thu, Jun 18, 2009 at 5:08 PM, Dave Newton  wrote:

> Please consider copying your code snippets into a plain-text editor before
> including them in an email message: we're getting a blank line between each
> line and a lot of spurious asterisks.
>
> Yanto wrote:
>
>> *org.apache.jasper.JasperException: tag 'select', field 'list', name
>> 'entityInternalId': The requested list key 'entities' could not be
>> resolved
>> as a collection/array/map/enumeration/iterator type. Example: people or
>> people.{name} - [unknown location]*
>>
>>  without validation xml and application page showing dropdown coming
>> properly.
>>
>>  >name=*"entityInternalId"*
>>list=*"entities"*
>>headerKey=*""*
>>headerValue=*""*
>>listKey=*"internalId"*
>>listValue=*"entityName"*
>> />
>>
>> Any one help on this ?
>>
>
> Do you load the "entities" list? Recall that actions are instantiated
> per-request.
>
> Dave
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: drop down list not working after using validation.xml

2009-06-18 Thread Dave Newton
Please consider copying your code snippets into a plain-text editor 
before including them in an email message: we're getting a blank line 
between each line and a lot of spurious asterisks.


Yanto wrote:

*org.apache.jasper.JasperException: tag 'select', field 'list', name
'entityInternalId': The requested list key 'entities' could not be resolved
as a collection/array/map/enumeration/iterator type. Example: people or
people.{name} - [unknown location]*

 without validation xml and application page showing dropdown coming
properly.

  

Any one help on this ?


Do you load the "entities" list? Recall that actions are instantiated 
per-request.


Dave

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