Take a look on that code

        Form oneForm = new Form("form");
        final Label label = new Label("label");

        LikeItMessage likeItMessage = new LikeItMessage("booo");
        PropertyModel propertyModel = new PropertyModel(likeItMessage,
"message");

        chatOpinionLabel.setModel(propertyModel);
        propertyModel.attach();




        oneForm.add(chatOpinionLabel);



        AjaxSubmitButton button =     new AjaxSubmitButton("button",
oneForm){
            protected void onSubmit(AjaxRequestTarget target, Form form) {
 
                LikeItMessage likeItMessage = new LikeItMessage("booo");
                likeItMessage.setMessage("I like wicket");
                PropertyModel propertyModel = new
PropertyModel(likeItMessage, "message");

                label.setModel(propertyModel);
                label.modelChanged();
                

            }
        };


igor.vaynberg wrote:
> 
> you mean via ajax?
> 
> why dont you describe what you are trying to do
> 
> -igor
> 
> 
> On 12/13/06, Roman Mandeleil <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>> No I wan't to know where the code should begin to render components that
>> changed,
>> without change the whole page
>>
>>
>> igor.vaynberg wrote:
>> >
>> > add(new Label("time", new AbstractReadOnlyModel() { Object
>> > getObject(Component c) { return new Date().toString(); }}));
>> >
>> > is that what you mean?
>> >
>> > -igor
>> >
>> >
>> > On 12/13/06, Roman Mandeleil <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> I had read all the posts about changing label dynamicly ,
>> >> but I still have a hard time to do that ,
>> >> can somebody send me a place inside a framework that is responsibale
>> >> for components update.
>> >>
>> >> Thanks in advance
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/Change-label-dynamicly-tf2816858.html#a7861932
>> >> 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.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
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Change-label-dynamicly-tf2816858.html#a7863974
>> 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.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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Change-label-dynamicly-tf2816858.html#a7864070
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.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to