Hmm this does not difference, still not working.. Heres the markup before 
processing:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="da" lang="da">
        <head>
                <title>this is my Wicket page</title>
        </head>
        <body>
                This is my Wicket page.
                <br>
                        Thank you for the information 
                <br>
                <div wicket:id="carModel" />
                <br>
                <div wicket:id="carYear" />
                <br>
                <div wicket:id="carMillage" />
                <br>
                <div wicket:id="carFailureText" />


        </body>
</html>

And heres it after:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="da" lang="da">
        <head>
                <title>this is my Wicket page</title>
        <script type="text/javascript" ><!--/*--><![CDATA[/*><!--*/
if (window.name=='') { 
window.location="/wicketDemo/wicketdemo?wicket:interface=:2::INewBrowserWindowListener";
 }
/*-->]]>*/</script>

</head>
        <body>
                This is my Wicket page.
                <br>
                        Thank you for the information 
                <br>
                <div wicket:id="carModel"/>
                <br>
                <div wicket:id="carYear"/>
                <br>
                <div wicket:id="carMillage"/>
                <br>
                <div wicket:id="carFailureText"/>


        </body>
</html>

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martijn Dashorst
Sent: 15. januar 2007 11:00
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] ComponentModel

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

-------------------------------------------------------------------------
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