You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Simone Gianni <s....@thebug.it> on 2006/06/01 05:31:32 UTC

Re: Cocoon form/ajax problem

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
>
>  
>
-- 
Simone Gianni

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


Re: Cocoon form/ajax problem

Posted by Duncan McLean <du...@blueyonder.co.uk>.
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