Re: Zone refresh in form fragment 'wizard'
No takers? Ah well...I'll break it into separate pages. I just wish I knew what I was doing wrong. Maybe a renderobject in the template would help? Igor, can't wait for your book! On May 8, 2012 10:25 AM, Chris Cureau cmcur...@gmail.com wrote: I've looked at the form fragments in firebug. It doesn't appear that the form fragment is being changed at all except the visible attribute. I've pasted the output from firebug below: Before fragment 3: div id=formfragment_1 class=t-invisible tapestry-formfragment input id=formfragment_1-hidden type=hidden name=t:formdata value=H4sIAFvzloG1XI5BJjElNzNPPzW3ICe/MjVVPyS1uMSquDQpN7Mk3rC4iMEhvyhdL7EgMTkjVa8ksQAoW1RpqpecX5Sak5kEpHML8vNS80qK9YLBelQCivKTU4uLwbzi4sz8vJnBnyS3bmlxZmJg8mHgSM7JBKr2TClhEPLJSixL1M9JzEvXDy4pysxLt/Zh4E7NSc0FKvBLzE0tZKhjYKwoKGHggDrHCIkJAH81VIC+ h2That's all we need!/h2 p/p Please verify the following information: p/p div id=summaryZone class=t-zone tapestry-zone/div p/p To complete this employee, press the emFinish/em button. p/p On fragment 3: div id=formfragment_1 class=tapestry-formfragment input id=formfragment_1-hidden type=hidden name=t:formdata value=H4sIAFvzloG1XI5BJjElNzNPPzW3ICe/MjVVPyS1uMSquDQpN7Mk3rC4iMEhvyhdL7EgMTkjVa8ksQAoW1RpqpecX5Sak5kEpHML8vNS80qK9YLBelQCivKTU4uLwbzi4sz8vJnBnyS3bmlxZmJg8mHgSM7JBKr2TClhEPLJSixL1M9JzEvXDy4pysxLt/Zh4E7NSc0FKvBLzE0tZKhjYKwoKGHggDrHCIkJAH81VIC+ h2That's all we need!/h2 p/p Please verify the following information: p/p div id=summaryZone class=t-zone tapestry-zone/div p/p To complete this employee, press the emFinish/em button. p/p On May 8, 2012 10:15 AM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Tue, 08 May 2012 11:19:02 -0300, Chris Cureau cmcur...@gmail.com wrote: I've just added a few more debugging statements... isInSubmit() is getting called before each fragment rendering phase. It returns false on the first two fragments and true on the last. What I see is this: The first and second fragments work as expected...the first just presenting text, and the second accepting input with beaneditor. The third fragment (submit) shows everything EXCEPT for the zone that is set in it. I am returning the block in onSuccess() when I change the fragment from General to Submit (fragment 2 to 3). No exceptions are shown. It is almost as if Tapestry is ignoring the block altogether. Have you checked what Tapestry is returning in Firebug or some similar tool? Are you sure you're returning a non-null block? -- 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-unsubscribe@tapestry.**apache.orgusers-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Zone refresh in form fragment 'wizard'
On Tue, 08 May 2012 10:48:38 -0300, Chris Cureau cmcur...@gmail.com wrote: Hi Thiago! Hi! Thanks for the quick response. I put together a smaller version of my page to save some space. It exhibits the same problems. No exceptions are thrown in the console, but I can see my page going through onSuccess properly because of a printf I put in there. What exactly is happening? Are you sure the isInSubmit() returns true when you're rendering the FormFragment? -- 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
Re: Zone refresh in form fragment 'wizard'
I've just added a few more debugging statements... isInSubmit() is getting called before each fragment rendering phase. It returns false on the first two fragments and true on the last. What I see is this: The first and second fragments work as expected...the first just presenting text, and the second accepting input with beaneditor. The third fragment (submit) shows everything EXCEPT for the zone that is set in it. I am returning the block in onSuccess() when I change the fragment from General to Submit (fragment 2 to 3). No exceptions are shown. It is almost as if Tapestry is ignoring the block altogether. On Tue, May 8, 2012 at 8:57 AM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Tue, 08 May 2012 10:48:38 -0300, Chris Cureau cmcur...@gmail.com wrote: Hi Thiago! Hi! Thanks for the quick response. I put together a smaller version of my page to save some space. It exhibits the same problems. No exceptions are thrown in the console, but I can see my page going through onSuccess properly because of a printf I put in there. What exactly is happening? Are you sure the isInSubmit() returns true when you're rendering the FormFragment? -- 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
Re: Zone refresh in form fragment 'wizard'
On Tue, 08 May 2012 11:19:02 -0300, Chris Cureau cmcur...@gmail.com wrote: I've just added a few more debugging statements... isInSubmit() is getting called before each fragment rendering phase. It returns false on the first two fragments and true on the last. What I see is this: The first and second fragments work as expected...the first just presenting text, and the second accepting input with beaneditor. The third fragment (submit) shows everything EXCEPT for the zone that is set in it. I am returning the block in onSuccess() when I change the fragment from General to Submit (fragment 2 to 3). No exceptions are shown. It is almost as if Tapestry is ignoring the block altogether. Have you checked what Tapestry is returning in Firebug or some similar tool? Are you sure you're returning a non-null block? -- 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
Re: Zone refresh in form fragment 'wizard'
I've looked at the form fragments in firebug. It doesn't appear that the form fragment is being changed at all except the visible attribute. I've pasted the output from firebug below: Before fragment 3: div id=formfragment_1 class=t-invisible tapestry-formfragment input id=formfragment_1-hidden type=hidden name=t:formdata value=H4sIAFvzloG1XI5BJjElNzNPPzW3ICe/MjVVPyS1uMSquDQpN7Mk3rC4iMEhvyhdL7EgMTkjVa8ksQAoW1RpqpecX5Sak5kEpHML8vNS80qK9YLBelQCivKTU4uLwbzi4sz8vJnBnyS3bmlxZmJg8mHgSM7JBKr2TClhEPLJSixL1M9JzEvXDy4pysxLt/Zh4E7NSc0FKvBLzE0tZKhjYKwoKGHggDrHCIkJAH81VIC+ h2That's all we need!/h2 p/p Please verify the following information: p/p div id=summaryZone class=t-zone tapestry-zone/div p/p To complete this employee, press the emFinish/em button. p/p On fragment 3: div id=formfragment_1 class=tapestry-formfragment input id=formfragment_1-hidden type=hidden name=t:formdata value=H4sIAFvzloG1XI5BJjElNzNPPzW3ICe/MjVVPyS1uMSquDQpN7Mk3rC4iMEhvyhdL7EgMTkjVa8ksQAoW1RpqpecX5Sak5kEpHML8vNS80qK9YLBelQCivKTU4uLwbzi4sz8vJnBnyS3bmlxZmJg8mHgSM7JBKr2TClhEPLJSixL1M9JzEvXDy4pysxLt/Zh4E7NSc0FKvBLzE0tZKhjYKwoKGHggDrHCIkJAH81VIC+ h2That's all we need!/h2 p/p Please verify the following information: p/p div id=summaryZone class=t-zone tapestry-zone/div p/p To complete this employee, press the emFinish/em button. p/p On May 8, 2012 10:15 AM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Tue, 08 May 2012 11:19:02 -0300, Chris Cureau cmcur...@gmail.com wrote: I've just added a few more debugging statements... isInSubmit() is getting called before each fragment rendering phase. It returns false on the first two fragments and true on the last. What I see is this: The first and second fragments work as expected...the first just presenting text, and the second accepting input with beaneditor. The third fragment (submit) shows everything EXCEPT for the zone that is set in it. I am returning the block in onSuccess() when I change the fragment from General to Submit (fragment 2 to 3). No exceptions are shown. It is almost as if Tapestry is ignoring the block altogether. Have you checked what Tapestry is returning in Firebug or some similar tool? Are you sure you're returning a non-null block? -- 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-unsubscribe@tapestry.**apache.orgusers-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Zone refresh in form fragment 'wizard'
Hi there! I'm following Geoff's excellent jumpstart on creating a wizard using form fragments. I've got it all working so far, but I want to create a summary form fragment that displays a table with the text that was entered on the previous form fragment panel. The final page has a zone defined and delegated to a block which appears at the bottom of the tml file. Just before I move on to the last panel, the onSuccess() routine sets some page parameters that are defined in the tml file. It then returns the block to the page. Problem is, the block never gets rendered. I've looked through the zone examples I've found posted, but none of them seems to do what I am asking it to do. Do I have to have a non-visible submit on the page to trigger the zone update? Or is there some magic that I'm missing? Thanks in advance!
Re: Zone refresh in form fragment 'wizard'
On Mon, 07 May 2012 23:15:43 -0300, Chris Cureau cmcur...@gmail.com wrote: Hi there! Hi! Please post the template and code please, at least the relevant parts (events, form submissions, links, etc). In addition, some exception or error should have been raised. Please take a look at the console output and check for exceptions. -- 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