Re: How to use AjaxFormChoiceComponentUpdatingBehavior in Check/CheckGroup

2008-05-12 Thread Johan Compagner
Code seems fine. What is the hrml output?

On 5/12/08, freak182 [EMAIL PROTECTED] wrote:

 Hello,
 I having problem integrating AjaxFormChoiceComponentUpdatingBehavior. my
 code snippet:

 final WebMarkupContainer container = new WebMarkupContainer(wmc);
 final CheckGroup chkGrp = new CheckGroup(chkGrp,new ArrayListChk());

 final ListView list = new ListView(listBcs,listChk){
   @Override
   protected void populateItem(ListItem item) {
 
   item.add(new Check(fltId,item.getModel()));
   ...
   }   
   };

 chkGrp.add(new AjaxFormChoiceComponentUpdatingBehavior(){
   @Override
   protected void onUpdate(AjaxRequestTarget target) {
   System.out.println(here 
 AjaxFormChoiceComponentUpdatingBehavior);

   target.addComponent(amtChk);
   target.addComponent(cntChk);
   }
   });

 ...it not getting hit inside the onUpdate method..any idea..
 Thanks a lot..Cheers


 --
 View this message in context:
 http://www.nabble.com/How-to-use-AjaxFormChoiceComponentUpdatingBehavior-in-Check-CheckGroup-tp17184651p17184651.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to use AjaxFormChoiceComponentUpdatingBehavior in Check/CheckGroup

2008-05-12 Thread Ryan Gravener
Is void onError(AjaxRequestTarget target, RuntimeException e) being called?

On Mon, May 12, 2008 at 11:42 AM, Johan Compagner [EMAIL PROTECTED]
wrote:

 Code seems fine. What is the hrml output?

 On 5/12/08, freak182 [EMAIL PROTECTED] wrote:
 
  Hello,
  I having problem integrating AjaxFormChoiceComponentUpdatingBehavior. my
  code snippet:
 
  final WebMarkupContainer container = new WebMarkupContainer(wmc);
  final CheckGroup chkGrp = new CheckGroup(chkGrp,new ArrayListChk());
 
  final ListView list = new ListView(listBcs,listChk){
@Override
protected void populateItem(ListItem item) {
item.add(new
 Check(fltId,item.getModel()));
...
}
};
 
  chkGrp.add(new AjaxFormChoiceComponentUpdatingBehavior(){
@Override
protected void onUpdate(AjaxRequestTarget target)
 {
System.out.println(here
 AjaxFormChoiceComponentUpdatingBehavior);
 
target.addComponent(amtChk);
target.addComponent(cntChk);
}
});
 
  ...it not getting hit inside the onUpdate method..any idea..
  Thanks a lot..Cheers
 
 
  --
  View this message in context:
 
 http://www.nabble.com/How-to-use-AjaxFormChoiceComponentUpdatingBehavior-in-Check-CheckGroup-tp17184651p17184651.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Ryan Gravener
http://twitter.com/ryangravener