You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by petros <pe...@cypoz.com> on 2008/03/24 05:36:50 UTC

LayoutCmpnt and Form submition

I have a LayoutCmpnt called AddUpdateLayout the contains the following form 


AddUpdateLayout.tml
<form t:id="addUpdateForm" clientValidation="true">  
</form>

AddUpdateLayout.java
......
	@Component(id="addUpdateForm")
	private Form addUpdateForm;
......

Then I use this Layout for XYZAddUpdate.tml page like this
<div t:type="AddUpdateLayoutCmpnt"
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
</div>

Now I want to handle the form submition 
in XYZAddUpdate.java and not in AddUpdateLayout.java

Is what I am trying to do even possible ?

Thanks, 
Petros
-- 
View this message in context: http://www.nabble.com/LayoutCmpnt-and-Form-submition-tp16245373p16245373.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: LayoutCmpnt and Form submition

Posted by Howard Lewis Ship <hl...@gmail.com>.
Sure, it's just that the prepare, validateForm, failure, success and
submit events will appear to originate inside the AddUpdateLayout
component when handled inside the XYZAddUpdate page.

On Sun, Mar 23, 2008 at 9:36 PM, petros <pe...@cypoz.com> wrote:
>
>  I have a LayoutCmpnt called AddUpdateLayout the contains the following form
>
>
>  AddUpdateLayout.tml
>  <form t:id="addUpdateForm" clientValidation="true">
>  </form>
>
>  AddUpdateLayout.java
>  ......
>         @Component(id="addUpdateForm")
>         private Form addUpdateForm;
>  ......
>
>  Then I use this Layout for XYZAddUpdate.tml page like this
>  <div t:type="AddUpdateLayoutCmpnt"
>  xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
>  </div>
>
>  Now I want to handle the form submition
>  in XYZAddUpdate.java and not in AddUpdateLayout.java
>
>  Is what I am trying to do even possible ?
>
>  Thanks,
>  Petros
>  --
>  View this message in context: http://www.nabble.com/LayoutCmpnt-and-Form-submition-tp16245373p16245373.html
>  Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>  For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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