cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Velychko <v_pe...@ukr.net>
Subject Re: fd:repeater-action
Date Tue, 29 Jun 2004 16:52:50 GMT
Hello Johnson,

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

My flowscript is like the following:

var form3 = new Form("forms/form_definition-3.xml");
var bindObj3 = loadDocument("cocoon:/auxiliary/form-binding_3-data.xml");
form3.createBinding("forms/form-binding-3.xml");
form3.load(bindObj3);
form3.showForm("screens/forms/"+lang+"/form-3.flow");
form3.save(bindObj3);

My sitemap snippet:
<map:match pattern="screens/forms/*/form-doc_*.flow">
  <map:generate type="file" src="xml/doc_{2}.xml"/>
    <map:transform type="cinclude"/>
  <map:transform type="xslt" src="stylesheets/doc.xsl"/>
  <map:transform type="forms"/>
  <map:transform type="i18n">
    <map:parameter name="locale" value="{1}"/>
  </map:transform>
  <map:transform type="jx"/>
  <map:transform type="xslt" src="resources/forms/forms-samples-styling.xsl"/>
  <map:transform type="omitns">
    <parameter name="omit-plain-xmlns" value="true"/>
  </map:transform>
  <map:serialize type="html"/>
</map:match>

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.

Tuesday, June 29, 2004, 7:03:09 PM, you wrote:

> Try use fi:styling type='hidden' in template

> Johnson
> ----- Original Message ----- 
> From: "Peter Velychko" <v_peter@ukr.net>
> To: <users@cocoon.apache.org>
> Sent: Tuesday, June 29, 2004 6:29 PM
> Subject: fd:repeater-action


>> Hello users,
>> 
>> Is any way to hide repeater-action button?
>> For instance when a repeater contains only one row it need hide the
>> button "Delete row".
>> 
>> Many thanks in advance.
>> 
>> -- 
>> Best regards,
>> Peter Velychko                         
>> v_peter@ukr.net
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>> 

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org

-- 
Best regards,
Peter Velychko                            
v_peter@ukr.net


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message