Re: [T5.0.18] @InjectedPage does not have access to it's own layout

2010-01-10 Thread lebenski
Hi, Sorry I've been away for a few days hence the lack of reply. Inge, I tried to explain my problem carefully and precisely as Igor indicated that he didn't understand it. Of course my problem doesn't make sense, if it made sense I could solve it and it wouldn't be a problem! Feel free to hit

Re: [T5.0.18] @InjectedPage does not have access to it's own layout

2010-01-05 Thread Robert Zeigler
No way to find out the triggering component that I'm aware of. Incidentally, the original poster is incorrect regarding changing onSuccessFromXXX to onSuccess. In T5, events only ever bubble up, never back down. So it's true that onSuccess within the layout component will handle any forms

Re: [T5.0.18] @InjectedPage does not have access to it's own layout

2010-01-05 Thread Inge Solvoll
I don't know. What I DO know is this: Trying hard to explain why your problem doesn't make sense is not a very good way of solving it. I do that very often, and I'm always corrected by someone who asks the obvious questions ;) The best way is to "binary search" your way through this, by modifying

Re: [T5.0.18] @InjectedPage does not have access to it's own layout

2010-01-05 Thread lebenski
Ok I think I'm missing something because I don't understand why this would happen. If I have two pages: Page1.tml Page 1 Goes Here Page2.tml Page 2 Goes Here And a layout... Layout.tml (simplified) ...form content Layout.java ... void onSuccessFromHelloForm() { System

Re: [T5.0.18] @InjectedPage does not have access to it's own layout

2010-01-05 Thread Inge Solvoll
I only suggested it for testing to see if it gets called. If it gets called, it means that the origin changed, and your "FromXXX" must be changed. On Tue, Jan 5, 2010 at 11:23 AM, lebenski wrote: > > This isn't the form I'm having trouble with. The "Submit a Question" form > works fine. > > The

Re: [T5.0.18] @InjectedPage does not have access to it's own layout

2010-01-05 Thread lebenski
This isn't the form I'm having trouble with. The "Submit a Question" form works fine. The form that is not working is the LoginForm in the layout. Using onSuccessFromLoginForm works in all other pages except the confirmation page. Are you suggesting that I should change the method in my layo

Re: [T5.0.18] @InjectedPage does not have access to it's own layout

2010-01-05 Thread Inge Solvoll
I think what Howard said was that your "FromQuestionForm" part won't work, since the origin changes when the event bubbles up. Change the name to "onSuccess" and see if gets called then. On Tue, Jan 5, 2010 at 10:47 AM, lebenski wrote: > > Hi Igor, > > I thought i'd spelled out this issue fairly

Re: [T5.0.18] @InjectedPage does not have access to it's own layout

2010-01-05 Thread lebenski
Hi Igor, I thought i'd spelled out this issue fairly clearly, but here goes again. All of my pages use a layout along these lines: http://tapestry.apache.org/tapestry5/guide/layout.html Inside this component I have a login form. This login form works on all pages, except for a specific page c

Re: [T5.0.18] @InjectedPage does not have access to it's own layout

2010-01-05 Thread lebenski
Thanks for your reply Howard. Are you suggesting that I need to add this onSuccess method to my confirmation page as well as keeping it in the layout? Howard Lewis Ship wrote: > > When an event bubbles up, the origin of the event changes. > > Initially, the success event occurs from the form

Re: [T5.0.18] @InjectedPage does not have access to it's own layout

2010-01-04 Thread Howard Lewis Ship
When an event bubbles up, the origin of the event changes. Initially, the success event occurs from the form inside the layout component. If the event is not handled there, it becomes a success event *from the layout component* (at the page). On Mon, Jan 4, 2010 at 12:11 PM, Igor Drobiazko wrot

Re: [T5.0.18] @InjectedPage does not have access to it's own layout

2010-01-04 Thread Igor Drobiazko
Your explanation is unclear. This way you never get an answer. Please be more precise and post more of your code. On Mon, Jan 4, 2010 at 11:07 AM, lebenski wrote: > > I have a layout component that contains a login form: > > > height="30"/> > > > > > Page Class: > > Obj

[T5.0.18] @InjectedPage does not have access to it's own layout

2010-01-04 Thread lebenski
I have a layout component that contains a login form: Page Class: Object onSuccessFromLoginForm() { try{ loggedInMember = loginManager.logUserIn(new Login(memberName, password)); } catch(LoginException e) { //Login Error Proce