In Javascript (FlowScript)
There're several rows in the repeater, I can get the itemno wigdet with
repeaterList.getRow(i).getChild("itemno")
But I can't get the url widget in the 01 group.
johnson
Jason Johnston 提到:
> 許議中 wrote:
>
>>Hi!
>>
>>I've a form, the def is like.
>>
>><fd:form
>> xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"
>> xmlns:i18n="http://apache.org/cocoon/i18n/2.1">
>>
>><fd:widgets>
>>.....
>> <fd:repeater id="repeaterList" orderable="true">
>> <fd:widgets>
>> <fd:output id="itemno">
>> <fd:label><i18n:text>itemno</i18n:text></fd:label>
>> <fd:hint><i18n:text>itemno</i18n:text></fd:hint>
>> <fd:datatype base="integer"/>
>> </fd:output>
>>
>> <fd:field id="itemtype">
>> <fd:datatype base="string"/>
>> <fd:selection-list>
>> <fd:item value=""/>
>> <fd:item value =
>>"01"><fd:label><i18n:text>item01</i18n:text></fd:label></fd:item>
>>
>> <fd:item value =
>>"02"><fd:label><i18n:text>item02</i18n:text></fd:label></fd:item>
>>
>> <fd:item value =
>>"03"><fd:label><i18n:text>item03</i18n:text></fd:label></fd:item>
>>
>> <fd:item value =
>>"04"><fd:label><i18n:text>item04</i18n:text></fd:label></fd:item>
>>
>> </fd:selection-list>
>> </fd:field>
>>
>> <fd:union id="item" case="itemtype">
>> <fd:widgets>
>>
>> <fd:group id="01">
>> <fd:widgets>
>> <fd:field id="url">
>> <fd:label><i18n:text>url</i18n:text></fd:label>
>> <fd:hint><i18n:text>url</i18n:text></fd:hint>
>> <fd:datatype base="string"/>
>> </fd:field>
>>....
>> </fd:widgets>
>> </fd:group>
>>
>> </fd:widgets>
>> </fd:union>
>>.....
>>
>>How to get the url widget in repeater group id = "01"
>
>
>
> Get it using what? JavaScript? From what context?
>
> Also, since it's in a repeater there will be multiple instances of the
> widget depending on the size of the repeater, correct? So are you
> trying to target a single instance, or something else?
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]