Re: How to dynamic add links to WebMarkupContainer
Hi, Peter, happy to meet you here. Label, Sounds good, but How can I get the html String generated by Link class with onClicked method override? On Wed, Sep 23, 2009 at 5:45 PM, Peter Thomas wrote: > On Wed, Sep 23, 2009 at 3:09 PM, Martin Grigorov >wrote: > > > El mié, 23-09-2009 a las 17:21 +0800, Haulyn R. Jason escribió: > > > Hi, all > > > I have a WebMarkupContainer in my page, and I need to create some links > > to > > > this WebMarkupContainer.But I do not have markup like > > >foo, because I do not know how many links I need to create, but I > do > > > not know how to create links without markup. > > > > > > Can anyone help me? Thanks very much! > > > > > Use RepeatingView, ListView or something like them. > > > > > > > Sound like you want to create a bookmark kind of link e.g. href="#foo">Click Me! will take you to Blah > > You can use a Label, put any HTML you want as the String / Model and have > it > rendered, just do setEscapeModelStrings(false) > > - Peter > -- -- Enjoy. Thanks! Haulyn Microproduction Mobile: +086-15864011231 email: saharab...@gmail.com, hmp.hau...@foxmail.com website: http://haulynjason.net gtalk: saharab...@gmail.com yahoo: jia_hao...@yahoo.com msn: saharab...@gmail.com skype: saharabear QQ: 378606292 Haulyn Jason
Re: How to dynamic add links to WebMarkupContainer
On Wed, Sep 23, 2009 at 3:09 PM, Martin Grigorov wrote: > El mié, 23-09-2009 a las 17:21 +0800, Haulyn R. Jason escribió: > > Hi, all > > I have a WebMarkupContainer in my page, and I need to create some links > to > > this WebMarkupContainer.But I do not have markup like > >foo, because I do not know how many links I need to create, but I do > > not know how to create links without markup. > > > > Can anyone help me? Thanks very much! > > > Use RepeatingView, ListView or something like them. > > > Sound like you want to create a bookmark kind of link e.g. Click Me! will take you to Blah You can use a Label, put any HTML you want as the String / Model and have it rendered, just do setEscapeModelStrings(false) - Peter
Re: How to dynamic add links to WebMarkupContainer
El mié, 23-09-2009 a las 17:21 +0800, Haulyn R. Jason escribió: > Hi, all > I have a WebMarkupContainer in my page, and I need to create some links to > this WebMarkupContainer.But I do not have markup like >foo, because I do not know how many links I need to create, but I do > not know how to create links without markup. > > Can anyone help me? Thanks very much! > Use RepeatingView, ListView or something like them. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to dynamic add links to WebMarkupContainer
Hi, all I have a WebMarkupContainer in my page, and I need to create some links to this WebMarkupContainer.But I do not have markup like foo, because I do not know how many links I need to create, but I do not know how to create links without markup. Can anyone help me? Thanks very much! -- -- Enjoy. Thanks! Haulyn Microproduction Mobile: +086-15864011231 email: saharab...@gmail.com, hmp.hau...@foxmail.com website: http://haulynjason.net gtalk: saharab...@gmail.com yahoo: jia_hao...@yahoo.com msn: saharab...@gmail.com skype: saharabear QQ: 378606292 Haulyn Jason