Re: T5: recordError on BeanEditForm
... an interesting side effect. I believe this bug is already fixed in SVN trunk though I was going at it for another reason. I'll add some tests to check. I'll have to think about this one; the basic issue is a complex component that handles events from an embedded component, and they both have the same simple id. On 3/4/07, Olivier Jacquet <[EMAIL PROTECTED]> wrote: Hi Filip, I was just putting id="form". I've changed it to t:id="form" per your recommendation and am now getting a java.lang.StackOverflowError Stack trace java.lang.String.equalsIgnoreCase(String.java:950) o.a.t.internal.services.ComponentEventImpl.matchesByEventType(ComponentEventImpl.java:81) o.a.t.corelib.components.BeanEditForm.handleComponentEvent(BeanEditForm.java) o.a.t.internal.structure.ComponentPageElementImpl.handleEvent(ComponentPageElementImpl.java:893) o.a.t.internal.structure.ComponentPageElementImpl.triggerEvent(ComponentPageElementImpl.java:1002) o.a.t.internal.structure.InternalComponentResourcesImpl.triggerEvent(InternalComponentResourcesImpl.java:141) o.a.t.corelib.components.BeanEditForm.onPrepareFromForm(BeanEditForm.java:196) o.a.t.corelib.components.BeanEditForm.handleComponentEvent(BeanEditForm.java) o.a.t.internal.structure.ComponentPageElementImpl.handleEvent(ComponentPageElementImpl.java:893) o.a.t.internal.structure.ComponentPageElementImpl.triggerEvent(ComponentPageElementImpl.java:1002) o.a.t.internal.structure.InternalComponentResourcesImpl.triggerEvent(InternalComponentResourcesImpl.java:141) o.a.t.corelib.components.BeanEditForm.onPrepareFromForm(BeanEditForm.java:196) o.a.t.corelib.components.BeanEditForm.handleComponentEvent(BeanEditForm.java) the keeps on going o.a.t = org.apache.tapestry. Thank Filip S. Adamsen wrote: > Hi Olivier, > > Try this in your page class: > > @Component(id = "form") > private BeanEditForm _form; > > And this in your page template: > > > > Hope this helps. > > -Filip > > Olivier Jacquet skrev: >> >> Yet even with this clue I cannot get it to work. How do I access the >> BeanEditForm with my page class? >> >> With: >> @Component >> private BeanEditForm _form; >> >> >> I'm sill getting the exception: >> Component org.example.hilo.pages.Login does not contain an embedded >> component with id 'form'. >> >> >> So now the question becomes: "How do I get access to the BeanEditForm >> component from within my pages class?". > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: recordError on BeanEditForm
Solved it. If I put t:id="foo" it works. With t:id="form" it throws the exception. I'm quite a beginner at this tapestry thing. I'll try to put those problems I encounter and hopefully solve online to help other beginners like me. Thanks for all the help, Olivier Olivier Jacquet wrote: Hi Filip, I was just putting id="form". I've changed it to t:id="form" per your recommendation and am now getting a java.lang.StackOverflowError Stack trace java.lang.String.equalsIgnoreCase(String.java:950) o.a.t.internal.services.ComponentEventImpl.matchesByEventType(ComponentEventImpl.java:81) o.a.t.corelib.components.BeanEditForm.handleComponentEvent(BeanEditForm.java) o.a.t.internal.structure.ComponentPageElementImpl.handleEvent(ComponentPageElementImpl.java:893) o.a.t.internal.structure.ComponentPageElementImpl.triggerEvent(ComponentPageElementImpl.java:1002) o.a.t.internal.structure.InternalComponentResourcesImpl.triggerEvent(InternalComponentResourcesImpl.java:141) o.a.t.corelib.components.BeanEditForm.onPrepareFromForm(BeanEditForm.java:196) o.a.t.corelib.components.BeanEditForm.handleComponentEvent(BeanEditForm.java) o.a.t.internal.structure.ComponentPageElementImpl.handleEvent(ComponentPageElementImpl.java:893) o.a.t.internal.structure.ComponentPageElementImpl.triggerEvent(ComponentPageElementImpl.java:1002) o.a.t.internal.structure.InternalComponentResourcesImpl.triggerEvent(InternalComponentResourcesImpl.java:141) o.a.t.corelib.components.BeanEditForm.onPrepareFromForm(BeanEditForm.java:196) o.a.t.corelib.components.BeanEditForm.handleComponentEvent(BeanEditForm.java) the keeps on going o.a.t = org.apache.tapestry. Thank Filip S. Adamsen wrote: Hi Olivier, Try this in your page class: @Component(id = "form") private BeanEditForm _form; And this in your page template: Hope this helps. -Filip Olivier Jacquet skrev: Yet even with this clue I cannot get it to work. How do I access the BeanEditForm with my page class? With: @Component private BeanEditForm _form; I'm sill getting the exception: Component org.example.hilo.pages.Login does not contain an embedded component with id 'form'. So now the question becomes: "How do I get access to the BeanEditForm component from within my pages class?". - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: recordError on BeanEditForm
Hi Filip, I was just putting id="form". I've changed it to t:id="form" per your recommendation and am now getting a java.lang.StackOverflowError Stack trace java.lang.String.equalsIgnoreCase(String.java:950) o.a.t.internal.services.ComponentEventImpl.matchesByEventType(ComponentEventImpl.java:81) o.a.t.corelib.components.BeanEditForm.handleComponentEvent(BeanEditForm.java) o.a.t.internal.structure.ComponentPageElementImpl.handleEvent(ComponentPageElementImpl.java:893) o.a.t.internal.structure.ComponentPageElementImpl.triggerEvent(ComponentPageElementImpl.java:1002) o.a.t.internal.structure.InternalComponentResourcesImpl.triggerEvent(InternalComponentResourcesImpl.java:141) o.a.t.corelib.components.BeanEditForm.onPrepareFromForm(BeanEditForm.java:196) o.a.t.corelib.components.BeanEditForm.handleComponentEvent(BeanEditForm.java) o.a.t.internal.structure.ComponentPageElementImpl.handleEvent(ComponentPageElementImpl.java:893) o.a.t.internal.structure.ComponentPageElementImpl.triggerEvent(ComponentPageElementImpl.java:1002) o.a.t.internal.structure.InternalComponentResourcesImpl.triggerEvent(InternalComponentResourcesImpl.java:141) o.a.t.corelib.components.BeanEditForm.onPrepareFromForm(BeanEditForm.java:196) o.a.t.corelib.components.BeanEditForm.handleComponentEvent(BeanEditForm.java) the keeps on going o.a.t = org.apache.tapestry. Thank Filip S. Adamsen wrote: Hi Olivier, Try this in your page class: @Component(id = "form") private BeanEditForm _form; And this in your page template: Hope this helps. -Filip Olivier Jacquet skrev: Yet even with this clue I cannot get it to work. How do I access the BeanEditForm with my page class? With: @Component private BeanEditForm _form; I'm sill getting the exception: Component org.example.hilo.pages.Login does not contain an embedded component with id 'form'. So now the question becomes: "How do I get access to the BeanEditForm component from within my pages class?". - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [WARNING] T5: recordError on BeanEditForm
Hi Olivier, Try this in your page class: @Component(id = "form") private BeanEditForm _form; And this in your page template: Hope this helps. -Filip Olivier Jacquet skrev: Yet even with this clue I cannot get it to work. How do I access the BeanEditForm with my page class? With: @Component private BeanEditForm _form; I'm sill getting the exception: Component org.example.hilo.pages.Login does not contain an embedded component with id 'form'. So now the question becomes: "How do I get access to the BeanEditForm component from within my pages class?". - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [WARNING] T5: recordError on BeanEditForm
Yet even with this clue I cannot get it to work. How do I access the BeanEditForm with my page class? With: @Component private BeanEditForm _form; I'm sill getting the exception: Component org.example.hilo.pages.Login does not contain an embedded component with id 'form'. So now the question becomes: "How do I get access to the BeanEditForm component from within my pages class?". SergeEby wrote: Hi, You can access the form from the BeanEditForm component: http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/org/apache/tapestry/corelib/components/BeanEditForm.html /Serge Massimo Lusetti wrote: On 3/4/07, Olivier Jacquet <[EMAIL PROTECTED]> wrote: How can I record additional errors on BeanEditForm. I cannot get access to the form with: @Component private Form _form; Does the BeanEditForm's form has form id of "form" or something else? -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [WARNING] T5: recordError on BeanEditForm
I've been thinking that the BeanEditForm should implement a few of the methods of Form (maybe, split out into an interface) and delegate them to it's emebedded Form instance. On 3/4/07, Massimo Lusetti <[EMAIL PROTECTED]> wrote: On 3/4/07, SergeEby <[EMAIL PROTECTED]> wrote: > > Hi, > > You can access the form from the BeanEditForm component: > http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/org/apache/tapestry/corelib/components/BeanEditForm.html That's better. -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [WARNING] T5: recordError on BeanEditForm
On 3/4/07, SergeEby <[EMAIL PROTECTED]> wrote: Hi, You can access the form from the BeanEditForm component: http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/org/apache/tapestry/corelib/components/BeanEditForm.html That's better. -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [WARNING] T5: recordError on BeanEditForm
Hi, You can access the form from the BeanEditForm component: http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/org/apache/tapestry/corelib/components/BeanEditForm.html /Serge Massimo Lusetti wrote: > > On 3/4/07, Olivier Jacquet <[EMAIL PROTECTED]> wrote: > >> How can I record additional errors on BeanEditForm. I cannot get access >> to the form with: >> >> @Component >> private Form _form; > > Does the BeanEditForm's form has form id of "form" or something else? > > -- > Massimo > http://meridio.blogspot.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/T5%3A-recordError-on-BeanEditForm-tf3342827.html#a9297261 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: recordError on BeanEditForm
.html: becomes: name="form"> I've tried manually setting an id to form or something else but that doesn't seem to work either. I keep getting an Exception: Component org.example.hilo.pages.Login does not contain an embedded component with id 'form'. The documentation also doesn't specify a parameter "id" for the beaneditform component. Massimo Lusetti wrote: On 3/4/07, Olivier Jacquet <[EMAIL PROTECTED]> wrote: How can I record additional errors on BeanEditForm. I cannot get access to the form with: @Component private Form _form; Does the BeanEditForm's form has form id of "form" or something else? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: recordError on BeanEditForm
On 3/4/07, Olivier Jacquet <[EMAIL PROTECTED]> wrote: How can I record additional errors on BeanEditForm. I cannot get access to the form with: @Component private Form _form; Does the BeanEditForm's form has form id of "form" or something else? -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5: recordError on BeanEditForm
How can I record additional errors on BeanEditForm. I cannot get access to the form with: @Component private Form _form; Does anyone have an example? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]