Re: [Wicket-user] Newbie Question : DropDownChoice

2007-04-14 Thread djsnowsill

Hi Martin,

Thanks for your prompt help.

I had originally started with quickstart but upon your suggestion I
recreated the scenario and it worked as you correctly mentioned. Working
through the existing code I realised that I had changed the url-pattern in
the web.xml file from /app/* to /* which caused the DropDownChoice to fail
to update the model. Would you have any idea why this causes my problem?

Regards

David


Martijn Dashorst wrote:
 
 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
  titleWelcome.../title
  body
 
 
  form wicket:id=filterForm
  Result Size : select wicket:id=resultSize
   option5/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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Newbie-Question-%3A-DropDownChoice-tf3571562.html#a9992048
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Newbie Question : DropDownChoice

2007-04-14 Thread Igor Vaynberg

in 1.2.x the recommended mapping is /app/*. in 1.3 where we offer a filter
instead of a servlet you are free to use /*

-igor


On 4/14/07, djsnowsill [EMAIL PROTECTED] wrote:



Hi Martin,

Thanks for your prompt help.

I had originally started with quickstart but upon your suggestion I
recreated the scenario and it worked as you correctly mentioned. Working
through the existing code I realised that I had changed the url-pattern in
the web.xml file from /app/* to /* which caused the DropDownChoice to fail
to update the model. Would you have any idea why this causes my problem?

Regards

David


Martijn Dashorst wrote:

 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
  titleWelcome.../title
  body
 
 
  form wicket:id=filterForm
  Result Size : select wicket:id=resultSize
   option5/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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/wicket-user



--
View this message in context:
http://www.nabble.com/Newbie-Question-%3A-DropDownChoice-tf3571562.html#a9992048
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Newbie Question : DropDownChoice

2007-04-13 Thread Martijn Dashorst
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
 titleWelcome.../title
 body


 form wicket:id=filterForm
 Result Size : select wicket:id=resultSize
  option5/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.phpp=sourceforgeCID=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

-
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Newbie Question : DropDownChoice

2007-04-13 Thread Martijn Dashorst
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
  titleWelcome.../title
  body
 
 
  form wicket:id=filterForm
  Result Size : select wicket:id=resultSize
   option5/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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user