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 Cocoon form/ajax problem
Date Wed, 31 May 2006 15:30:33 GMT
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


Mime
View raw message