Re: [T4] Adding body of a sub-component w/o using a template
On Sun, Mar 04, 2007 at 03:29:04AM +0200, andyhot wrote: You can't dynamically change the component structure Well, I do not really want to change it dynamically, so this is not the problem. Now, i still can't understand your use case, so i can't offer any help there (what's the meaning of influence its body w/o using a template), but Let me refrase this: When using a template I can give a subcomponent a body. How can I do it w/o using a template? I have a LinkSubmit subcomponent, which I want to have render its content with a certain body. While I can define this body using a template, the template looks ugly (in this case, not in general). It is better understandable when written programmatically. perhaps you can build a custom component and pass parameters to it... Sure, but that would be mostly a rewriting of LinkSubmit. I rather hoped I could reuse LinkSubmit. The use case is pretty simple: A specialized LinkSubmit component. Regards, Christian -- Christian Haselbach - [EMAIL PROTECTED] - +49 176 2082 5804 TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring Geschäftsführer: Henrik Klagges, Gerhard Müller, Eike Reinel Amtsgericht München, HRB 135082 - 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]
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]
Re: T5: recordError on BeanEditForm
.html: form t:type=beaneditform object=loginData/form becomes: form action=/hilo/login.beaneditform.form id=form method=post 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: [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: [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
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
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
Hi Olivier, Try this in your page class: @Component(id = form) private BeanEditForm _form; And this in your page template: form t:type=beaneditform t:id=form object=loginData/form 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: 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: form t:type=beaneditform t:id=form object=loginData/form 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
... 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: form t:type=beaneditform t:id=form object=loginData/form 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 OutOfMemoryError
Found your problem. Inside SearchForm.html: t:comp type=SearchForm xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; The first thing your SearchForm says is that another SearchForm is nested inside it. There's your infinite recursion. This has already been identified as a bug: https://issues.apache.org/jira/browse/TAPESTRY-1275 I think you want to recode it as: div id=searchFormContainer xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; form t:type=Form fieldset legendSearch Form/legend div id=searchStringContainer label t:type=Label t:for=searchStringSearch Text/label input t:type=TextField t:id=searchString type=text / /div div id=searchFormControlsContainer input id=submitSearch type=submit value=Search / /div /fieldset /form /div On 3/3/07, Todd Orr [EMAIL PROTECTED] wrote: 1. start jboss or tomcat 2. deploy war (using mvn tomcat:deploy, for example) 3. attempt to resolve url 4. OOME Seems to be something about this particular component. I created a simple Border component that uses no dynamic data, property access, etc. It seemed to work. However, this component that is included in the project is trouble. Is there some specific information I could provide that would be more useful? Is the exception not reproducible? On 3/4/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: That's nice but please identify what led up to the OOME. On 3/3/07, Todd Orr [EMAIL PROTECTED] wrote: It seems that even a simple component causes an OutOfMemoryError exception to be thrown. This happens with both JBoss4.0.4GA and Tomcat 5.5. I've attached a simple sample project. - 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] - 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 Annotations Question
Good answer :-) Thanks Howard! Tim. On Sunday 04 March 2007 07:12, Howard Lewis Ship wrote: Don't mistake the convenience of the annotations for an annotations-only approach. Tapestry can automatically build the necessary BeanModel (used by BeanEditForm and Grid), or you can provide the BeanModel in code (say, from a reusable service), or mix and match the two. I'm not saying its perfect (yet :-), I'm just saying look a little deeper. On 3/3/07, Tim Sawyer [EMAIL PROTECTED] wrote: Hi Folks, The new Tapestry 5 stuff relies heavily on annotations of the model, rather than XML files, and it looks good. However, our model is fixed and used for many applications for multiple customers - we therefore can't make application specific annotations in the model. Is there some way being considered for T5 to handle this situation? Cheers, Tim. - 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]
No filter for AJAX responses in T4.1
Hi! I've just bumped into this error while trying some AJAX fancy stuff in Tapestry 4.1: 04/03/2007 22:50:41 org.apache.tapestry.markup.MarkupWriterSourceImpl findFilter SEVERE: No markup filter could be found for content type 'text/xml;charset=UTF-8'; a default filter has been used. Then, using Firebug, I've found that the response sent is empty. :( What can I do? It looks like some missing contribution to the MarkupFilters configuration-id in tapestry.markup.xml, but I'm not sure. This error seems strange to me as I already implemented some working AJAX stuff with T4.1. Could it be the different JARs I used? At my work, I used the JARs downloaded from the download page. Here, at home, I'm using the JARs from Ibiblio, downloaded via Maven2. Since I once found a difference between the documentation and the JARs (some missing component attribute I can't recall now), so I'm a little suspicious of an outdated jar at Ibiblio. :) Thanks in advance. Thiago - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 OutOfMemoryError
I think I looked at this so long I got tunnel vision. Thank you very much. On 3/4/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: Found your problem. Inside SearchForm.html: t:comp type=SearchForm xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; The first thing your SearchForm says is that another SearchForm is nested inside it. There's your infinite recursion. This has already been identified as a bug: https://issues.apache.org/jira/browse/TAPESTRY-1275 I think you want to recode it as: div id=searchFormContainer xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; form t:type=Form fieldset legendSearch Form/legend div id=searchStringContainer label t:type=Label t:for=searchStringSearch Text/label input t:type=TextField t:id=searchString type=text / /div div id=searchFormControlsContainer input id=submitSearch type=submit value=Search / /div /fieldset /form /div On 3/3/07, Todd Orr [EMAIL PROTECTED] wrote: 1. start jboss or tomcat 2. deploy war (using mvn tomcat:deploy, for example) 3. attempt to resolve url 4. OOME Seems to be something about this particular component. I created a simple Border component that uses no dynamic data, property access, etc. It seemed to work. However, this component that is included in the project is trouble. Is there some specific information I could provide that would be more useful? Is the exception not reproducible? On 3/4/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: That's nice but please identify what led up to the OOME. On 3/3/07, Todd Orr [EMAIL PROTECTED] wrote: It seems that even a simple component causes an OutOfMemoryError exception to be thrown. This happens with both JBoss4.0.4GA and Tomcat 5.5. I've attached a simple sample project. - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]