On 29.06.2004 18:52, Peter Velychko wrote:

Hello Johnson,

Thank you for your reply.
Could you please describe your advice?

And requirements are the following:
- default (and minimal) qty of rows in repeater is 1
- user is able to add new row to repeater
- user is able to remove any of repeater's row when qty of rows is
  more than 1
- user cannot remove repeater's row when qty == 1

As I understand theoretically I can set up <fi:styling type='hidden'/>
for my repeater-action in JX template but I don't understand how.

Setting it in the template would be statically and not what you want I guess. And even if it is hidden or not in the HTML code at all it would be possible to hack the URL to remove the last item.


What you probably need is fd:union:
http://wiki.cocoondev.org/Wiki.jsp?page=TimLarson
Form model GUI sample.
Though I can not imagine how to express the dependency on the repeater size at the moment (it's just to late ;-). Maybe Tim can help here.


Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to