Re: Passing hibernate session from one page to the next in a wizard form

2015-03-30 Thread George Christman
Thanks Ilya, that's another good idea I never gave a thought. On Sun, Mar 29, 2015 at 5:11 AM, Ilya Obshadko wrote: > Another solution to that is loading all lazy collections when you retrieve > your object and before starting using in in a session. You can force it > using Hibernate Criteria me

Re: Passing hibernate session from one page to the next in a wizard form

2015-03-29 Thread Ilya Obshadko
Another solution to that is loading all lazy collections when you retrieve your object and before starting using in in a session. You can force it using Hibernate Criteria method setFetchMode ( "collectionName", FetchMode.JOIN ). On Fri, Mar 27, 2015 at 10:44 PM, George Christman wrote: > You ar

Re: Passing hibernate session from one page to the next in a wizard form

2015-03-27 Thread George Christman
You are the man, been struggling with this all day ugh. Thanks a lot. On Fri, Mar 27, 2015 at 3:17 PM, Kalle Korhonen wrote: > On Fri, Mar 27, 2015 at 11:50 AM, George Christman < > gchrist...@cardaddy.com> > wrote: > > > Hi guys, I'm trying to pass my object from one page to the next without >

Re: Passing hibernate session from one page to the next in a wizard form

2015-03-27 Thread Kalle Korhonen
On Fri, Mar 27, 2015 at 11:50 AM, George Christman wrote: > Hi guys, I'm trying to pass my object from one page to the next without > actually saving it. I tried putting the object in a sessionstate, but I'm > getting lazy loading exceptions on my second page, any idea how to do this? > It's gen

Passing hibernate session from one page to the next in a wizard form

2015-03-27 Thread George Christman
Hi guys, I'm trying to pass my object from one page to the next without actually saving it. I tried putting the object in a sessionstate, but I'm getting lazy loading exceptions on my second page, any idea how to do this?

Re: Wizard Component

2013-03-26 Thread Lance Java
've had good luck with thexe > examples from the Jumpstart: > > > http://jumpstart.doublenegative.com.au/jumpstart/examples/wizard/usingformfragments/$N/$N > > http://jumpstart.doublenegative.com.au/jumpstart/examples/wizard/usingpages1 > > > On Tue, Mar 26, 2013 at 6:

Re: Wizard Component

2013-03-26 Thread Chris Cureau
To follow up on what Thiago has said... I've had good luck with thexe examples from the Jumpstart: http://jumpstart.doublenegative.com.au/jumpstart/examples/wizard/usingformfragments/$N/$N http://jumpstart.doublenegative.com.au/jumpstart/examples/wizard/usingpages1 On Tue, Mar 26, 2013 at

Re: Wizard Component

2013-03-26 Thread Thiago H de Paula Figueiredo
On Tue, 26 Mar 2013 08:38:24 -0300, Guillaume Bodet wrote: Hi all, Hi! I'm looking for a wizard component for Tapestry 5.3. By "wizard", I mean a conversational set of pages that can manage state and transition rules (previous-next-cancel). If no such component exists,

Wizard Component

2013-03-26 Thread Guillaume Bodet
Hi all, I'm looking for a wizard component for Tapestry 5.3. By "wizard", I mean a conversational set of pages that can manage state and transition rules (previous-next-cancel). If no such component exists, does any of you have ideas about the right design of such a component?

Re: Building object through wizard.

2012-05-25 Thread George Christman
Hi Thiago, when making updates to an existing object, at the start of the wizard I'm initially populating it with a criteria query, then on submit to page2 from page1, I populate the SessionState and rebuild my object in page 2 with the SessionState rather than the criteria query. I'

Re: Building object through wizard.

2012-05-25 Thread George Christman
Thanks Guys, for your input. All very helpful. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Building-object-through-wizard-tp5713417p5713420.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: Building object through wizard.

2012-05-25 Thread Thiago H. de Paula Figueiredo
ate? Unless you need the same user using the same wizard for editing two different objects in two different threads, there's no reason to avoid it. When the wizard is finished, send the object to the database and set the @SessionState field to null (so it isn't stored in the session

Re: Building object through wizard.

2012-05-25 Thread Arno Haase
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi George, using some sort of conversation (i.e. HTTP session) state is one way to go - you would either detach the entities or use some sort of specialized Transfer Objects. Another way to go is to put the wizard into a single Tapestry page and use

Re: Building object through wizard.

2012-05-25 Thread Chris Cureau
Hi George! What I am doing for this is following the Jumpstart example...I store all of my entities in the Conversation, and on the last page of the Wizard I write them to the database. It's worked out very well so far. Check out http://jumpstart.doublenegative.com.au/jumpstart/examples/w

Building object through wizard.

2012-05-25 Thread George Christman
Hello, I'm building a small little wizard that consist of a few pages. The wizard allows for updates as well. I'm a hibernate user with a fairly complex data structure consisting of many joined entities. I do not want to save/update the data until the last page of the wizard which has ca

Re: Zone refresh in form fragment 'wizard'

2012-05-09 Thread Chris Cureau
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" wrote: > I've looked at the form fragments in firebug. It doesn't appear tha

Re: Zone refresh in form fragment 'wizard'

2012-05-08 Thread Chris Cureau
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: That's all we need! Please verify the following information: To complete this employee,

Re: Zone refresh in form fragment 'wizard'

2012-05-08 Thread Thiago H. de Paula Figueiredo
On Tue, 08 May 2012 11:19:02 -0300, Chris Cureau 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 frag

Re: Zone refresh in form fragment 'wizard'

2012-05-08 Thread Chris Cureau
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 s

Re: Zone refresh in form fragment 'wizard'

2012-05-08 Thread Thiago H. de Paula Figueiredo
On Tue, 08 May 2012 10:48:38 -0300, Chris Cureau 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 onSucces

Re: Zone refresh in form fragment 'wizard'

2012-05-07 Thread Thiago H. de Paula Figueiredo
On Mon, 07 May 2012 23:15:43 -0300, Chris Cureau 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 a

Zone refresh in form fragment 'wizard'

2012-05-07 Thread Chris Cureau
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

Re: Scalability of T5 : Form Wizard options

2008-10-08 Thread John Jimmy Dondapati
Hi Renat, First thanks for the detailed discussion. On Wed, Oct 8, 2008 at 2:16 AM, Renat Zubairov <[EMAIL PROTECTED]>wrote: > Hello John, > > > >> > >> In this case, you wouldn't use the page activation context, as you're > >> filling the page properties yourself. As Tapestry uses > redirect-a

Re: Scalability of T5 : Form Wizard options

2008-10-07 Thread Renat Zubairov
Hello John, >> >> In this case, you wouldn't use the page activation context, as you're >> filling the page properties yourself. As Tapestry uses redirect-after-post >> by default (and not using it can lead to several problems), you would need >> to @Persist("flash") the property in all pages. Th

Re: Scalability of T5 : Form Wizard options

2008-10-07 Thread John Jimmy Dondapati
>> OnPassivate() e.g. String or Long ? >> > > You can use String[] and List as well. > Cool. didnt know that. > > > We dont know if any of these would work for us coz we are looking at min >> 10k concurrent users for this form wizard when it goes up. Are we mi

Re: Scalability of T5 : Form Wizard options

2008-10-07 Thread Thiago H. de Paula Figueiredo
l. We dont know if any of these would work for us coz we are looking at min 10k concurrent users for this form wizard when it goes up. Are we missing some other approach. Please advise. Thanks! Could you use the middle ground solution of storing a temporary object in a database at each

Scalability of T5 : Form Wizard options

2008-10-07 Thread John Jimmy Dondapati
form wizard that populates part of a requestObject in each page and finally persists it to a database. The user should be able to fill the form in parts whenever he feels like - page 1,2 today and page 3,4 next week or something like that. Here are the options with T5 (from what we could dig up

Re: How to create simple wizard with tapestry

2008-09-07 Thread Thiago H. de Paula Figueiredo
Em Sat, 06 Sep 2008 19:52:40 -0300, Filip S. Adamsen <[EMAIL PROTECTED]> escreveu: Shouldn't that be @InjectPage? Yes! Thanks for pointing my mistake! :) @InjectPage private User userPage; public Object onSuccess() { userPage.setAluno(classmate); retu

Re: How to create simple wizard with tapestry

2008-09-06 Thread Filip S. Adamsen
Shouldn't that be @InjectPage? -Filip On 2008-09-05 15:15, Thiago H. de Paula Figueiredo wrote: Em Fri, 05 Sep 2008 09:17:09 -0300, Alex Florentino <[EMAIL PROTECTED]> escreveu: public Object onSuccess() { my.package.tranc.pages.User userPage = new my.package.tranc.pages.User();

Re: How to create simple wizard with tapestry

2008-09-05 Thread Alex Kotchnev
Also, note that you will probably have to mark the "aluno" attribute in the User page as persistent (e.g. with @Persist annotation), or set it as the page's activation context. Otherwise, whatever you set in setAluno will get wiped out when T5 redirects to the @User page. Cheers, Alex K On Fri,

Re: How to create simple wizard with tapestry

2008-09-05 Thread Thiago H. de Paula Figueiredo
Em Fri, 05 Sep 2008 09:17:09 -0300, Alex Florentino <[EMAIL PROTECTED]> escreveu: public Object onSuccess() { my.package.tranc.pages.User userPage = new my.package.tranc.pages.User(); userPage.setAluno(classmate); return userPage; } @Inject private User userPage;

Re: How to create simple wizard with tapestry

2008-09-05 Thread Alex Florentino
ge that user type some informations and if the information is > ok > > the user is redirect for finish the wizard, but I need that information > user > > fill at first step. > > > > sample flow: > > > > user prefe

Re: How to create simple wizard with tapestry

2008-09-04 Thread Martijn Brinkers
see http://202.177.217.122:8080/jumpstart/ On Thu, 2008-09-04 at 16:14 -0300, Alex Florentino wrote: > Hi all, > > I have an page that user type some informations and if the information is ok > the user is redirect for finish the wizard, but I need that information user > fil

Re: How to create simple wizard with tapestry

2008-09-04 Thread Thiago H. de Paula Figueiredo
Em Thu, 04 Sep 2008 16:14:22 -0300, Alex Florentino <[EMAIL PROTECTED]> escreveu: Hi all, I have an page that user type some informations and if the information is ok the user is redirect for finish the wizard, but I need that information user fill at first step. I would put a

How to create simple wizard with tapestry

2008-09-04 Thread Alex Florentino
Hi all, I have an page that user type some informations and if the information is ok the user is redirect for finish the wizard, but I need that information user fill at first step. sample flow: user preferences -> user settings(here I need user preferences data). thanks, Alex

Re: T5: a strategy for a multi-page/multi-form wizard

2007-08-18 Thread Chris Lewis
ccurred to me: 1) Have each page that is part of the process explicitly check for completion of the previous step, and redirect back if incomplete. This is easy to implement for a small case, but not at all scalable. 2) Have some base interfaces/classes that the pages composing the wizard implem

Re: T5: a strategy for a multi-page/multi-form wizard

2007-08-17 Thread Chris Lewis
onActivate(). Cheers, Nick. Chris Lewis-5 wrote: Hello, I'm redeveloping an application in T5 that will have several wizard-like form sequences. Basically a few forms on a few pages that must be followed in order, with the ability to revisit/jump around in steps already completed.

Re: T5: a strategy for a multi-page/multi-form wizard

2007-08-17 Thread Nick Westgate (Work)
Read the docs for onActivate(). Cheers, Nick. Chris Lewis-5 wrote: > > Hello, > > I'm redeveloping an application in T5 that will have several wizard-like > form sequences. Basically a few forms on a few pages that must be > followed in order, with the ability to

T5: a strategy for a multi-page/multi-form wizard

2007-08-17 Thread Chris Lewis
Hello, I'm redeveloping an application in T5 that will have several wizard-like form sequences. Basically a few forms on a few pages that must be followed in order, with the ability to revisit/jump around in steps already completed. A wizard should prevent steps (pages) from being acc

Re: Tapestry Wizard Component

2007-03-14 Thread Andrea Chiumenti
e a couple of components not yet posted to jfly that are for example a menu engine that works ioc way, and a scheduler that works like unix chrontab (with the same syntax) and other compos. Anyway I think that the wizard is a great idea and should be developed asap. Have a good day, kiuma On 3/

Re: Tapestry Wizard Component

2007-03-14 Thread Ken nashua
Andrea, Additionally... to make this thing commercial grade... It would be nice to have a 100% width header bar at the top of the wizard with the contigious linear layout of all states connected to each other by arrows --> across the top whereby the current state is highlighted in bri

Re: Tapestry Wizard Component

2007-03-14 Thread Ken nashua
tion { public boolean onTransition(Step step); } package common.wizard; import common.wizard.Step; public interface IWizard { //public Wizard getInstance(); public Step getInitialStep(); public Step getCurrentStep(); public Step getLastStep(); public void setCurrentStep (Step value); public

Re: Tapestry Wizard Component

2007-03-14 Thread Andrea Chiumenti
Ken, You have just given to me a very nice idea for the next web component I'll add to jfly as soon as I'll finish the JFlyEditTable. Thx for the idea, kiuma On 3/14/07, Ken nashua <[EMAIL PROTECTED]> wrote: Folks, Does there exist a Wizard component anywhere. I am hop

Tapestry Wizard Component

2007-03-14 Thread Ken nashua
Folks, Does there exist a Wizard component anywhere. I am hoping tapestry can accomodate a better widget model for this kind of component. Struts turned out to be disorderly and sprawled. The wizard I would like is a wizard that can operate it's states off of a database so that in the

RE: Wizard...

2006-07-05 Thread Jonathan Barker
cript so I just trigger a form submit and handle display in the usual Tapestry way. Jonathan -Original Message- From: James Carman [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 05, 2006 9:11 AM To: 'Tapestry users' Subject: Wizard... All, I am trying to develop a &qu

Wizard...

2006-07-05 Thread James Carman
All, I am trying to develop a "wizard" for a page I'm working on. Basically, the user needs to select something to be a property of the object they're editing on the current page. The object they need to select is a child in a parent/child relationship and there are *way*