you can specify the model on the label directly instead of always using the compound property model, that way you dont need to reuse the name.

-Igor


On 8/30/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
Che,

Best thing is to post these questions to
wicket-user@lists.sourceforge.net, as you don't have questions
regarding developing Wicket itself, but building applications using
Wicket.

Martijn

On 8/30/06, Che Schneider <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> While we are on it, I've got another question! :)
>
> How would I solve the following problem in wicket:
>
> On a page I have the entity 'company' (from my previous post).
> I want to display it in the following way:
> [snip]
> <div id="content">
>    <h4><span wicket:id="company.name">My Company</span></h4>
>    <div>
>       <span>Company name</span>&nbsp;<span wicket:id=" company.name">My
> Company</span>
>    </div>
> </div>
> [snip]
>
> This is very simplified but it shows the problem: of course I cannot
> reuse the name but I want to (have to) anyways. How would I best model
> this?
>
> Thanks a lot,
> Che
>
> ______________________________
> DISCLAIMER: This e-mail message is intended for the addressee(s) or authorized recipient only. If you are not the addressee, or an authorized recipient, you are specifically advised that any use, distribution, publication, copying or repetition of this information is prohibited. If you have received this information in error, please notify us immediately (+31 (0)20 50 25 800) and destroy this message.
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Wicket-develop mailing list
> Wicket-develop@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-develop
>


--
Download Wicket 1.2.2 now! New Ajax components: Tree, TreeTable and ModalWindow
-- http://wicketframework.org

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to