Dear,

Thanks for your help, now I use getModelObject and it works quiet good

Vincent



On Tue, 2006-11-21 at 08:35 -0800, Igor Vaynberg wrote:
> the value is populated into the model ... since you havent bound your
> model to any property you have to access the model directly ...
> onupdate() { Object choice=getModelObject(); }
> 
> -igor
> 
> 
> On 11/20/06, Vincent Renaville <[EMAIL PROTECTED]
> distribution.com> wrote:
>         Dear,
>         
>         I use a DropDownChoice to select a item in the list.
>         I use Ajax to prevent Form reload and lose of data.
>         But if I use Ajax how can I take the value selected ?
>         
>         My code
>            IModel extentions = new Model(); 
>            List PROTOCOL = Arrays.asList(new String[] {"SIP","IAX"});
>            protocol = new DropDownChoice
>         ("protocol",extentions,PROTOCOL)
>                 {
>                         protected boolean
>         wantOnSelectionChangedNotifications() 
>                                 {
>                                         return false;
>                                 }
>                 };
>                 protocol.add(new AjaxFormComponentUpdatingBehavior
>         ("onchange") {
>                   protected void onUpdate(AjaxRequestTarget target) 
>                   {
>                           System.out.println(target.toString);
>         
>                   }
>              });
>         
>         
>         Can you help me ?
>         
>         Vincent
>         
>         
>         
> ------------------------------------------------------------------------- 
>         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
> 
> -------------------------------------------------------------------------
> 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


-------------------------------------------------------------------------
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