Thanks, now it works.
Ole-Harald
igor.vaynberg wrote:
>
> change that to new propertymodel(getmodel(), "name")
>
> -igor
>
>
> On Thu, Mar 13, 2008 at 1:26 AM, deletethisprofile
> <[EMAIL PROTECTED]> wrote:
>>
>> Running Panel.detach from onselectionchanged in the radiogroup didn't
>> help.
>>
>> It seems like the panels is updated, but labels in the panel is not.
>> The labels are added like this: add(new Label("name", new
>> PropertyModel(getModelObject(), "name")));
>>
>> Ole-Harald
>>
>>
>>
>>
>>
>>
>> igor.vaynberg wrote:
>> >
>> > sounds like your model is not detachable or being cached somewhere
>> >
>> > perhaps you are loading the panel's model somewhere before it is
>> > updated. like panel { isvisible() { return getmodelobject().isempty();
>> > }
>> >
>> > try calling panel.detach() <== which will also detach the panel's
>> model
>> >
>> > -igor
>> >
>> >
>> > On Wed, Mar 12, 2008 at 10:29 AM, deletethisprofile
>> > <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Non-ajax.
>> >>
>> >> Ole-Harald
>> >>
>> >>
>> >>
>> >>
>> >> Eelco Hillenius wrote:
>> >> >
>> >> > Ajax or non-ajax?
>> >> >
>> >> > Eelco
>> >> >
>> >> > On Wed, Mar 12, 2008 at 9:40 AM, deletethisprofile
>> >> > <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >> Hi
>> >> >>
>> >> >> I have a panel with an AbstractReadOnlyModel that i want to
>> change
>> >> when
>> >> >> i
>> >> >> select an radiobutton on another panel. The radiobuttons are in
>> a
>> >> >> radiogroup
>> >> >> with a properymodel to the same object that I have in the
>> >> >> AbstractReadOnlyModel. But when I select the radiobuttons the
>> >> >> modelobject is
>> >> >> changed but panel is not updated. I have have tried triggering
>> an
>> >> >> modeupdate
>> >> >> on the panel when when a radiobutten is selected but the panel
>> is
>> >> not
>> >> >> updated. If I go to another page on the selection of a
>> radiobutton
>> >> the
>> >> >> panel
>> >> >> updates correctly, But I want i to update even the page dont
>> change.
>> >> >> Any Ideas on how can I make that happend?
>> >> >>
>> >> >>
>> >> >> Ole-Harald
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/Panel-not-updated-on-modelchange-tp16007420p16007420.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/Panel-not-updated-on-modelchange-tp16007420p16009871.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/Panel-not-updated-on-modelchange-tp16007420p16023202.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/Panel-not-updated-on-modelchange-tp16007420p16032288.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]