RE: how to get xforms:output into an attribute?

David,

FormFaces does indeed implement @appearance="minimal" on <xf:trigger> as you say. I didn't even think of that solution. I got caught up in wondering about a general solution for having dynamic attributes.

John

-----Original Message-----
From: www-forms-request@w3.org [mailto:www-forms-request@w3.org] On Behalf Of David Landwehr
Sent: Tuesday, March 20, 2007 5:01 AM
To: Erik Sjölund
Cc: www-forms@w3.org
Subject: Re: how to get xforms:output into an attribute?


Hi Erik,

This use case are commonly solved by using XForms actions and UI 
elements. Most implementations support an appearance on trigger of 
minimal and then shows the trigger as an anchor. So your use case could 
be solved with the following markup:
<xf:repeat nodeset="/list/item">
  <xf:trigger appearance="minimal">
    <xf:label ref="@linktext"/>
    <xf:load ref="@link"/>
  </xf:trigger>
</xf:repeat>

I have no idea if FormFaces implemented something like that, so I'm not 
sure if it helps you in your application development. Maybe FormFaces 
has some way to let you chose which rendering you would like for the 
trigger in another way (this is also what I believe  Mark Birbeck 
describes in his answer to the other mail, e.g. using XBL to attach 
custom renderings into the host language).

Best regards,
David

Received on Tuesday, 20 March 2007 17:08:27 UTC