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

Erik Sjölund skrev:
>
> On the FormFaces help forum I was suggested to send this use case to 
> this list.
>
> http://sourceforge.net/forum/forum.php?thread_id=1696000&forum_id=458081
>
> "Suppose, you have an instance containing a list
>
> <list>
> <item link="http://www.example.com" linktext="Example site"/>
> <item link="http://www.wikipedia.org" linktext="A really nice
> dictionary"/>
> </list>
>
> and you want to use the <xforms:repeat> element to iterate over the
> list to produce something like this xhtml output,
>
> <a href="http://www.example.com">Example site</a>
> <a href="http://www.wikipedia.org">A really nice dictionary</a>
>
> Could this be done with the <xforms:output> element somehow?
> "
>
> I've got the answer that it isn't possible and I also found out that
> the same question has been asked before on this list:
>
> question:
> http://lists.w3.org/Archives/Public/www-forms/2004Jun/0036.html
> answer:
> http://lists.w3.org/Archives/Public/www-forms/2004Jul/0028.html
>
> My interest would be to have a SOAP-based bioinformatics web service
> that could serve both machines and humans ( through xforms ) at the
> same time. Right now it seems that I'd better generate some
> xhtml-tables on the server side for the human interaction part. But if
> I would be able to set attribute values inside xforms:repeats, the
> server wouldn't need to bother with GUI details.
>
> This ought to be a quite common use case. How do you solve it right now?
>
> cheers,
> Erik Sjölund
>
>

Received on Tuesday, 20 March 2007 12:01:22 UTC