tcm team commented on Apr 13, 2016

Re: How can I use native html tags inside XPages?

Oh drat, this forum allows html... Again:

If you want to use the same custom control in a repeat, or twice on the same page, and you want your element to have a unique id, you can use this:

<xp:panel id="fooPanel">

<xp:repeat var="entry" indexVar="index" value="#{fooView}" id="fooRepeat">

<input type="checkbox" name="#{id:fooPanel}:myCheckbox" value="#{javascript:row.id}" onclick="doSomething()">

</input>

...

</xp:repeat>

</xp:panel>

The advantage is that you create ONE logical checkbox, which can be spread over multiple lines. The disadvantage is that you cannot bind it to any XPages element.

tcm team commented on Apr 13, 2016

Re: How can I use native html tags inside XPages?

If you want to use the same custom control in a repeat, or twice on the same page, and you want your element to have a unique id, you can use this:

...

The advantage is that you create ONE logical checkbox, which can be spread over multiple lines. The disadvantage is that you cannot bind it to any XPages element.