You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "Haulyn R. Jason" <sa...@gmail.com> on 2009/09/23 11:21:09 UTC

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 <a wicket:id=""
>foo</a>, 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: saharabear@gmail.com,
         hmp.haulyn@foxmail.com
website: http://haulynjason.net
gtalk: saharabear@gmail.com
yahoo: jia_haolin@yahoo.com
msn: saharabear@gmail.com
skype: saharabear
QQ: 378606292

Haulyn Jason

Re: How to dynamic add links to WebMarkupContainer

Posted by "Haulyn R. Jason" <sa...@gmail.com>.
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 <pt...@gmail.com> wrote:

> On Wed, Sep 23, 2009 at 3:09 PM, Martin Grigorov <mcgregory@e-card.bg
> >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 <a wicket:id=""
> > > >foo</a>, 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. <a
> href="#foo">Click Me!</a> will take you to <a name="foo">Blah</a>
>
> 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: saharabear@gmail.com,
         hmp.haulyn@foxmail.com
website: http://haulynjason.net
gtalk: saharabear@gmail.com
yahoo: jia_haolin@yahoo.com
msn: saharabear@gmail.com
skype: saharabear
QQ: 378606292

Haulyn Jason

Re: How to dynamic add links to WebMarkupContainer

Posted by Peter Thomas <pt...@gmail.com>.
On Wed, Sep 23, 2009 at 3:09 PM, Martin Grigorov <mc...@e-card.bg>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 <a wicket:id=""
> > >foo</a>, 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. <a
href="#foo">Click Me!</a> will take you to <a name="foo">Blah</a>

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

Posted by Martin Grigorov <mc...@e-card.bg>.
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 <a wicket:id=""
> >foo</a>, 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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org