cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Atherton <br...@callenish.com>
Subject Re: Accessing repeaterLoop variable from Cocoon Forms
Date Sat, 22 Oct 2005 18:14:42 GMT
Sylvain Wallez wrote:

> Bruce Atherton wrote:
>
>> I am trying to use repeaters in my application. I have a "More" and 
>> "Less" button to add and remove rows, and a hidden boolean widget to 
>> indicate the last row. For this purpose, I am trying to set the value 
>> using "repeaterLoop.last". Trouble is, that value was never set to 
>> anything. So then I simplified my form to hold this:
>>
>>        <ft:repeater-size id="searchDropDowns" />
>>        <ft:repeater-widget id="searchDropDowns">
>>           Row: <b>${repeaterLoop.index}</b>
>>        </ft:repeater-widget>
>>
>> Early in the pipeline it looks like this:
>>        <fi:repeater-size id="searchDropDowns" size="1"/>
>>          Row:
>>    <b>${repeaterLoop.index}</b>
>>
>> After it goes through the JX Transform, it looks like this:
>>
>>    Row: <b></b>
>>
>> So it looks like I am not getting access the the repeaterLoop object 
>> at all. Any ideas what I am doing wrong or how to fix the problem?
>
>
> Dumb question maybe, but have you imported jx-macro.xml in your JX 
> template?
>
>
More likely to be dumb user. No, I don't have 'jx-macro.xml" imported. 
In fact, I don't see that file anywhere in my cocoon 2.1.7 build.

Should I have it somewhere?


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


Mime
View raw message