You are correct that HTML doesn't allow two elements with the same markup id.

However, if you don't assign it an ID, the browser will automagically
generate one, hidden for all. So you can have as many <a href>'s
without a specific markup id as you wish.

The Wicket identifier is different, as it is scoped: a Wicket
identifier has to be unique within its scope level. So:

<span wicketid="id1">
    <span wicket:id="id1">
        <span wicket:id="id1"></span>
    </span>
</span>

are perfectly legal. The following is not legal:

<span wicket:id="id1">
    <span wicket:id="id2"></span>
    <span wicket:id="id2"></span>            <--- violates the unique
id in scope level
</span>

As for generating the same component twice, you'll have to create two
markup spots and add two instances of the component to your page.

Martijn

On 2/7/06, Tim Johnson <[EMAIL PROTECTED]> wrote:
> Does anyone have any suggestions on how to display the same element on a
> page more then once?  For example, providing paging links at the top and
> bottom of a given page.
>
> My understanding is that basic HTML doesn't allow 2 elements to exist with
> the same ID attribute.
>
> Thanks
>
> Tim
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


--
Living a wicket life...

Martijn Dashorst - http://www.jroller.com/page/dashorst

Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to