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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>
-- 
Simone Gianni

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to