I pasted your code in a 1.2.5 quickstart, and it works.

Can you create a quickstart that exhibits this behavior?

Martijn

On 4/13/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> Actually, it works in my quickstart 1.3.
>
> But I'll see what happens in 1.2.5
>
> Martijn
>
> On 4/13/07, David Snowsill <[EMAIL PROTECTED]> wrote:
> > I have been trying to get some code working and after struggling for a while
> > I have narrowed it down to the following:
> >
> > public class Home2 extends WebPage {
> >     private String resultSize = "100";
> >
> >     private List letters=Arrays.asList(new String[] { "10", "100", "1000"
> > });
> >
> >     public Home2() {
> >         final Form form = new Form("filterForm");
> >         add(form);
> >
> >         DropDownChoice resultSizes = new DropDownChoice("resultSize", new
> > PropertyModel(this, "resultSize"),
> >                 letters);
> >
> >         form.add(resultSizes);
> >     }
> >
> >     public String getResultSize() {
> >         return resultSize;
> >     }
> >
> >     public void setResultSize(String resultSize) {
> >         this.resultSize = resultSize;
> >     }
> >
> >
> > }
> >
> >
> >  <html>
> > <title>Welcome...</title>
> >     <body>
> >
> >
> >         <form wicket:id="filterForm">
> >         Result Size : <select wicket:id="resultSize">
> >              <option>5</option>
> >         </select>
> >         <input type="submit" value="Update"/>
> >         </form>
> >     </body>
> > </html>
> >
> >
> > When I change the drop down list box and then submit the setResultSize
> > method is always passed null and not the selected number. Any ideas what I
> > am missing? I am using wicket 1.2.5
> >
> > Regards
> >
> > David
> >
> > --
> > David Snowsill
> > Calibre Financial Technology
> > Ph: +61 (2) 9212 0527
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share your
> > opinions on IT & business topics through brief surveys-and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Wicket-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
>
> --
> Learn Wicket at ApacheCon Europe: http://apachecon.com
> Join the wicket community at irc.freenode.net: ##wicket
> Wicket 1.2.5 will keep your server alive. Download Wicket now!
> http://wicketframework.org
>


-- 
Learn Wicket at ApacheCon Europe: http://apachecon.com
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.5 will keep your server alive. Download Wicket now!
http://wicketframework.org

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to