cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Duncan McLean <duncan_mcl...@blueyonder.co.uk>
Subject Re: Cocoon form/ajax problem
Date Thu, 01 Jun 2006 15:43:47 GMT
Thanks Simone

Will give it a try!

Cheers

Duncan

Simone Gianni wrote:
> Hi Duncan,
> I think you should use the <fd:widgets> element :
>
> <fd:group>
>   <fd:widgets>
>     <fd:submit .....
>
> If not, the definition builder simply ignores your submit button.
>
> Hope this helps!
>
> Simone
>
> Duncan McLean wrote:
>
>   
>> Hi
>>
>> Is it possible to put a submit widget within a group and then ajax enable
>> a form? i've tried putting a widget into a group and i am getting a
>> "cannot convert null to an object" when i try to load the form.
>>
>> form definition:
>>
>> <fd:group id="submitBottomFunds">
>> 	<fd:submit id="funds" state="invisible" validate="true">
>> 		<fd:label>Funds ARF</fd:label>
>> 	</fd:submit>
>> </fd:group>
>>
>> form template:
>>
>> <ft:group id="submitBottomFunds">
>> 	<ft:widget id="funds">
>> 		<fi:styling type="link"/>
>> 	</ft:widget>
>> </ft:group>
>>
>> flowscript
>>
>> fundsLinkBottom =
>> forms["funds_amrf"].getChild("submitBottomFunds").getChild("funds");
>> fundsLinkBottom.setState(Packages.org.apache.cocoon.forms.formmodel.WidgetState.INVISIBLE);
>>
>> it is this last line which is causing the error. any help would be much
>> appreciated.
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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


Mime
View raw message