No, that's why you can give it an empty list, you just can't give it null. You may be able to specify list="%{{}}" which should be OGNL syntax for an empty list. (*Chris*)
On Fri, Aug 2, 2013 at 11:06 AM, Sreekanth S. Nair < sreekanth.n...@egovernments.org> wrote: > I understood your point chris, > This _multiselect_xyz parameter is created by a struts multiselect tag , > does it playing any role? > Not for a debate but as a question, does struts2 select tag is going to > loose anything if it renders an empty select ? > > -- > Thanks & Regards > Srikanth > > On Fri, Aug 2, 2013 at 11:26 PM, Chris Pratt <thechrispr...@gmail.com > >wrote: > > > There's no real advantage to using the <s:select> tag if you already no > > there's no data to be displayed (remember, the struts tags are for > display > > only, they play absolutely no part in processing the posted form). What > > you need is an empty <select> tag with a name that matches a mutator in > > your action. Struts (and your jQuery) will do the rest. > > (*Chris*) > > > > > > On Fri, Aug 2, 2013 at 9:55 AM, Sreekanth S. Nair < > > sreekanth.n...@egovernments.org> wrote: > > > > > That i know Chris. are you getting away from the question, i was > talking > > > about struts select tag. Apart from tht, I got problem with normal html > > > select with struts2, its not generating _multiselect_xyz > > > > > > -- > > > Thanks & Regards > > > Srikanth > > > > > > On Fri, Aug 2, 2013 at 9:41 PM, Chris Pratt <thechrispr...@gmail.com> > > > wrote: > > > > > > > It can, just use a regular <select>, instead of the <s:select> > > > > (*Chris*) > > > > > > > > > > > > On Fri, Aug 2, 2013 at 12:36 AM, Sreekanth S. Nair < > > > > sreekanth.n...@egovernments.org> wrote: > > > > > > > > > Hi, > > > > > Sometimes we need to provide an empty select tag which will be > > > > > populated later depending on some value in form using ajax. Now its > > > > > mandatory to provide at least an empty list to make select to work. > > Why > > > > > can't struts2 select tag can handle this case, where we can render > > the > > > > > select tag even we dont provide a prepopulated list? > > > > > > > > > > > > > > > -- > > > > > Thanks & Regards > > > > > Srikanth > > > > > > > > > > > > > > >