On Thu, 16 Feb 2012 08:58:30 -0200, stipenovi <stipenovok...@gmail.com>
wrote:
I will post here...
This is my simple code:
*<t:form</b> t:inPlace="false" t:id="multiBeanForm"
t:zone="editorZone">
*<t:beaneditform</b> t:id="createForm" t:object="nodeTop"
t:zone="editorZone"
t:exclude="id, version, nodeLevel, level,
dateCreated"/>
*<t:beaneditform</b> t:id="createDescriptionForm"
t:object="descriptionText" t:zone="editorZone" />
*<t:errors/>*
*<input</b> t:type="Submit" t:id="done" value="Save"/>
*</t:form>*
Error is: */Form components may not be placed inside other Form
components.
The error message describes exactly what the problem is: you can put a
Form inside another Form. BeanEditForm uses a Form inside it. Use
BeanEditor instead of BeanEditForm.
/*
In page class I have 3 components:
@Component(id = "createForm")
private BeanEditForm createForm;
@Component(id = "createDescriptionForm")
private BeanEditForm createDescriptionForm;
@Component(id = "multiBeanForm")
private Form multiBeanForm;
I have read one Lewis's replay where he said that is Ok to use two
BeanEditForms in one Form.
It isn't.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org