mercredi 18 mars 2015

I need to put a link next to a checkbox in XPages

I am trying to use a link instead of the checkbox label because I want the checkbox to be ticked when I click the checkbox and something else to happen when I click the link.


I have tried to put the link after the checkbox and inside the checkbox but the checkbox seem to be wrapped in a div causing it to be misaligned


Here is my code



<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://ift.tt/18dEJrC">
<xp:panel style="margin:20px">
<xp:checkBox id="checkBox2"></xp:checkBox>
<xp:link escape="true" text="Link2" id="link2"></xp:link>
<xp:checkBox id="checkBox1">
<xp:link escape="true" text="Link1" id="link1"></xp:link>
</xp:checkBox>
</xp:panel>
</xp:view>


This is the resulting HTML


enter image description here


This is the web page result


enter image description here


Is there a way I can add an xp:link next to my checkbox?





Aucun commentaire:

Enregistrer un commentaire