html labels

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

html labels

koenvdk
Hi I'd like to be able to add a simple text control to the builder, which can have markup in its label (if we use this now, it gets escaped and shows literally).

Would this be possible? (in 3.9.1.PE)



Sincerely,



Koen Vanderkimpen
Research/Recherche/Onderzoek

Connect: Twitter

"there are two hard things in computer science: cache invalidation, naming things, and off-by-one errors" (Phil Karlton et al)








Overeenkomstig de bepalingen inzake de vertegenwoordiging van de vzw in haar statuten, kan enkel de gedelegeerde bestuurder, de algemeen directeur of zijn uitdrukkelijke lasthebber verbintenissen aangaan namens Smals.
Indien dit bericht niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden en het bericht te vernietigen.

Conformément aux dispositions relatives à la représentation de l'asbl dans ses statuts, seul l'administrateur délégué, le directeur général ou son mandataire exprès est habilité à souscrire des engagements au nom de Smals.
Si ce message ne vous est pas destiné, nous vous prions de nous le signaler immédiatement et de détruire le message.

According to the provisions regarding representation of the non profit association in its bylaws, only the chief executive officer, the general manager or his explicit agent can enter into engagements on behalf of Smals.
If you are not the addressee of this message, we kindly ask you to signal this to us immediately and to delete the message.





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: html labels

Erik Bruchez
Administrator
Koen,

What the builder does when editing labels is simply modifying resources in the fr-resources instance. Right now, if you insert the text output control, you get:

<xforms:output id="control-2-control" bind="control-2-bind">
    <xforms:label ref="$form-resources/control-2/label"/>
</xforms:output>

If instead you have a component which generates:

<xforms:output id="control-2-control" bind="control-2-bind">
    <xforms:label><xforms:output mediatype="text/html" ref="$form-resources/control-2/label"/></xforms:label>
</xforms:output>

Things should work (except the HTML markup won't work in the builder with 3.9, but it should with 4.0).

-Erik

On Mon, Oct 15, 2012 at 5:15 AM, <[hidden email]> wrote:
Hi I'd like to be able to add a simple text control to the builder, which can have markup in its label (if we use this now, it gets escaped and shows literally).

Would this be possible? (in 3.9.1.PE)



Sincerely,



Koen Vanderkimpen
Research/Recherche/Onderzoek

Connect: Twitter

"there are two hard things in computer science: cache invalidation, naming things, and off-by-one errors" (Phil Karlton et al)








Overeenkomstig de bepalingen inzake de vertegenwoordiging van de vzw in haar statuten, kan enkel de gedelegeerde bestuurder, de algemeen directeur of zijn uitdrukkelijke lasthebber verbintenissen aangaan namens Smals.
Indien dit bericht niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden en het bericht te vernietigen.

Conformément aux dispositions relatives à la représentation de l'asbl dans ses statuts, seul l'administrateur délégué, le directeur général ou son mandataire exprès est habilité à souscrire des engagements au nom de Smals.
Si ce message ne vous est pas destiné, nous vous prions de nous le signaler immédiatement et de détruire le message.

According to the provisions regarding representation of the non profit association in its bylaws, only the chief executive officer, the general manager or his explicit agent can enter into engagements on behalf of Smals.
If you are not the addressee of this message, we kindly ask you to signal this to us immediately and to delete the message.






--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws