Thanks a bunch, I was actually looking at the screen cast on Ajax and Zones as I suspected this would be accomplished with zones.
Ideally what I would like to do is create this but have it just output the value with a small edit button and a hidden text field. When you click the edit button it shows the text field and then submits the form much like the T5Component InPlaceEditor but this would allow validation if the hide/show part does not mess that up. I believe it's possible but to turn it into a component may be really tricky. --James -----Original Message----- From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] Sent: January-21-09 1:49 PM To: Tapestry users Subject: Re: T5: Component Suggestion/Question Em Wed, 21 Jan 2009 12:20:33 -0300, James Sherwood <jsherw...@rgisolutions.com> escreveu: > I need this page to be dynamic whereby and admin can change fields > without refreshing the page. Not refreshing a page => AJAX! Put your Form inside a Zone and submit the form through AJAX. Something like: <div t:type="Zone t:id="zone"> <form t:type="form" t:zone="zone" t:id="form"> <div t:type="Errors/> .. your fields here. </form> </div> @InjectComponent private Zone zone; @OnEvent(value = EventConstants.VALIDATE_FORM, component="form"> public Object validate() { if (form has validation errors) { return zone; } else { return null; // let the form submission process continue } } @OnEvent(value = EventConstants.SUCCESS, component="form"> public Object sucess() { // do whatever you want return zone; } -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org