link not rendered on dialog

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

link not rendered on dialog

Henk Visser
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
Reply | Threaded
Open this post in threaded view
|

Re: link not rendered on dialog

Henk Visser
Looking at the generated html, it appears that the xforms:label was not rendered. So the button is there, but without a label.
Reply | Threaded
Open this post in threaded view
|

Re: link not rendered on dialog

Alessandro  Vernet
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
Reply | Threaded
Open this post in threaded view
|

Re: link not rendered on dialog

Henk Visser
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
Reply | Threaded
Open this post in threaded view
|

Re: link not rendered on dialog

Henk Visser
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
Reply | Threaded
Open this post in threaded view
|

Re: link not rendered on dialog

Alessandro  Vernet
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