You use the compound property model wrong:

public ThankYouPage(FormModel filledForm) {
    setModel(new CompoundPropertyModel(filledForm));
    add(new Label("carModel"));
    add(new Label("carYear"));
    add(new Label("carMillage"));
    add(new MultiLineLabel("carFailureText"));
}

Martijn

On 1/15/07, Nino Wael <[EMAIL PROTECTED]> wrote:
> Hi
>
> Im trying to use a component model and som labels to display contents of the 
> model.. It does not work why?
>
>
> See pastebin :
>
> http://pastebin.ca/317148
>
>
> or here for code:
>
> package wicketDemo;
>
> import wicket.markup.html.WebPage;
> import wicket.markup.html.basic.Label;
> import wicket.markup.html.basic.MultiLineLabel;
> import wicket.model.CompoundPropertyModel;
>
> public class ThankYouPage extends WebPage {
>
>         public ThankYouPage(FormModel filledForm) {
>
>                 CompoundPropertyModel model = new 
> CompoundPropertyModel(filledForm);
>
>                 add(new Label("carModel", model));
>                 add(new Label("carYear", model));
>                 add(new Label("carMillage", model));
>                 add(new MultiLineLabel("carFailureText", model));
>
>         }
>
> }
>
> regards Nino
>
> -------------------------------------------------------------------------
> 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
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

-------------------------------------------------------------------------
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to