Orbeon Forms community mailing list
Search
everywhere
only in this topic
Advanced Search
link not rendered on dialog
Classic
List
Threaded
♦
♦
Locked
6 messages
Henk Visser
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
link not rendered on dialog
Hi there,
I would like to have a link rendered on a dialog. Therefore I try to use the following code:
<xxforms:dialog id="my-dialog" appearance="full" level="modeless" close="true">
<xforms:label>Dialog title</xforms:label>
<xforms:trigger>
<xforms:label>OK</xforms:label>
</xforms:trigger>
</xxforms:dialog>
The dialog appears without the link using the code above. What could be wrong?
Thanks and kind regards,
Henk
Henk Visser
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: link not rendered on dialog
Looking at the generated html, it appears that the xforms:label was not rendered. So the button is there, but without a label.
Alessandro Vernet
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: link not rendered on dialog
Administrator
Hi Henk,
By default, a trigger is rendered as a button. So your dialog shows as:
If you'd like it to show as a link, add the attribute appearance="minimal".
Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Henk Visser
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: link not rendered on dialog
Hi Alex,
I'm afraid I've not been clear enough when stating the problem. Thing is that the trigger is rendered without the label, see html below:
<button id="trigger-id--c" type="button" class="btn"></button>
In other parts of the forms I created it works fine. Only triggers in dialogs are rendered without a label.
Best regards,
Rienk
Henk Visser
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: link not rendered on dialog
Hi Alex,
Turns that some xsl rule were using in our project accidentally effects the rendering of button labels in dialogs. So we've found the problem. My apologies for bothering you with it.
Best regards,
Rienk
Alessandro Vernet
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: link not rendered on dialog
Administrator
Hi Rienk,
Very good then; I'm glad you figured this one out, and thanks for the update.
Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Free forum by Nabble
Edit this page