When submitting a form that has a multi-select, I'm noticing that 
@RequestParameter is only ever getting the first value of the multi-select.

For example, let's say I have the following html snippet...


  School 1
  School 2
  ...
  ...
  ...


And the following SLSB...

@Stateless
@Name("infozapAction")
@Interceptors(SeamInterceptor.class)
public class InfozapActionImpl implements InfozapAction
{
    @RequestParameter
    private String[] schoolList;
    
    @Out
    private InfoZapDTO izdto;
    
    public void createInfoZapDTO()
    {
        System.out.println("Length = " + schoolList.length);
        izdto = new InfoZapDTO(schoolList);
    }
}

In the console I get something like...

08:23:51,101 INFO  [STDOUT] Length = 1

And the array only contains the first "shoolList" parameter in the request. Is 
there a way around this?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954349#3954349

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954349

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to