How to display icons next to a select1 control with xxforms:tree appearance
Posted
by
user557060
on Stack Overflow
See other posts from Stack Overflow
or by user557060
Published on 2011-03-07T16:08:52Z
Indexed on
2011/03/07
16:10 UTC
Read the original article
Hit count: 172
orbeon
Hi,
I display a list of items via select1 control using xxforms:tree appearance. They are displayed via a code block like:
<xforms:itemset nodeset="instance('dataInstance')/*">
<xforms:label ref="fn:concat(./NAME,', ','ID: ',./ID)"/>
<xforms:value ref="./ID"/>
</xforms:itemset>
</xforms:select1>
I want to display two icons for each item on the same row as the item: one icon for deleting and one for editing that item, which would all invoke XPL with the item ID as the parameter.
The question, how do I render those icons - does itemset support nested trigger elements? If not, how do I go about achieving it (clicking on the item results in an action other than edit or delete, so cannot use that; can show delete/edit on the page shown when user clicks on the item, but want to save that one click if the user just wants to delete the item for example).
Thanks.
© Stack Overflow or respective owner