Hello Johan,
Sorry, i forgot to add something in the code snippet, anyway, i finally got
it working...here is the scenario: the Listview is being targeted from a
dropdownchoice when "onchange" since the listview is generated only on
runtime due to the dropdownchoice.When new values get it, does not have the
AjaxFormChoiceComponentUpdatingBehavior (javascript or somethin..)
to solve my problem...here the code snippet i've made
//select what type to be displayed
chkTypeChoice.add(new
AjaxFormComponentUpdatingBehavior("onchange"){
@Override
protected void onUpdate(AjaxRequestTarget target) {
if(null != chkTypeChoice.getModelObject()){
......................
list.setModelObject(listChk);
target.addComponent(container);
target.addComponent(chkGrp); //refresh
chkgrp to get
AjaxFormChoiceComponentUpdatingBehavior working
............................................
}
}
});
...Thanks a lot..Cheers
Johan Compagner 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 ArrayList<Chk>());
>>
>> 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]
>
>
>
--
View this message in context:
http://www.nabble.com/How-to-use-AjaxFormChoiceComponentUpdatingBehavior-in-Check-CheckGroup-tp17184651p17199233.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]