Re: Tapestry5SelectObject problem with Tomcat - selection is not persisted

2009-09-14 Thread Vangel V. Ajanovski
On 15.09.2009 03:35, Vangel V. Ajanovski wrote: In fact after lot's of debugging it turned out that the problem is again the same as in my other post - bad UTF received from browser after selecting an option. The selection boxes were in fact coded with cyrillic character codes which were receiv

Re: How to create analog of Spring FactoryBean?

2009-09-14 Thread Peter Niederwieser
I'd be interested to see a ServiceLifecycle implementation for prototype scope. I recently tried to come up with one, but it didn't seem to be doable. Cheers, Peter Thiago H. de Paula Figueiredo wrote: > > Then you can create a new Tapestry-IoC scope (ServiceLifecycle > implementation) that

Re: How to .tml template access a class's static variable

2009-09-14 Thread Xuan Tran Le
Your StaticWrapper is very helpfull. Thank you. On Sun, Sep 13, 2009 at 5:16 AM, Howard Lewis Ship wrote: > public class StaticWrapper{ > public String getConstantA() return { StaticClass.A; } > > public int getConstantB() return { OtherClass.B; } > > ... etc. > } > > public class MyPage > {

Re: Tapestry5SelectObject problem with Tomcat - selection is not persisted

2009-09-14 Thread Thiago H. de Paula Figueiredo
Em Mon, 14 Sep 2009 22:35:32 -0300, Vangel V. Ajanovski escreveu: Never initialize a Tapestry page field. Use some event handler method to do that. This was not the problem because I had several different cases. It could not be the cause of your specific problem now, but initializing fie

Re: Tapestry5SelectObject problem with Tomcat - selection is not persisted

2009-09-14 Thread Vangel V. Ajanovski
On 14.09.2009 22:13, Thiago H. de Paula Figueiredo wrote: Em Mon, 14 Sep 2009 17:11:31 -0300, Vangel V. Ajanovski escreveu: private List planList = new ArrayList(); Never initialize a Tapestry page field. Use some event handler method to do that. This was not the problem because I had se

Re: Problem with ZoneUpdater in a component

2009-09-14 Thread Josh Canfield
I took a quick look at the page and it looked like it was getting trimmed. Entering "something" would result in "something" I checked firebug and the response is: {"content":"something"} So I poked around a bit then just did a wide search for String.trim usage. I found what looks like the culprit

Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC)

2009-09-14 Thread Dave Greggory
I created a ComponentLoader component (below) based off of PropertyEditor component and I got it working for the top most of layer of my ubercomponent-stack. It uses PropertyEditBlock page and the existing BeanBlockSource to provide the right Block containing my layouts / components. Does it lo

Re: Tapestry5SelectObject problem with Tomcat - selection is not persisted

2009-09-14 Thread Thiago H. de Paula Figueiredo
Em Mon, 14 Sep 2009 17:11:31 -0300, Vangel V. Ajanovski escreveu: private List planList = new ArrayList(); Never initialize a Tapestry page field. Use some event handler method to do that. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http:

Re: Tapestry5SelectObject problem with Tomcat - selection is not persisted

2009-09-14 Thread Vangel V. Ajanovski
On 14.09.2009 14:33, Thiago H. de Paula Figueiredo wrote: Em Mon, 14 Sep 2009 00:02:44 -0300, Vangel V. Ajanovski escreveu: Then it might be related to how the filter works. The object selectedPlan stays to null after selection and refresh. Anyone any ideas? This kind of error is typically caus

Re: Website preview - update

2009-09-14 Thread Sergey Didenko
Documentation menu has a scrollbar. I think it's better to get rid of it. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: New Tapestry tutorial -> documentation structure

2009-09-14 Thread Sergey Didenko
I think it's important to show reusability of a custom component in this tutorial. It's better to be something practical. For example "ShortUserInfo" - a component that shows a user avatar, his name and date of registration. It can be used in the end of every forum post and every user article. >

Re: Website preview - update

2009-09-14 Thread Sergey Didenko
Sebastian, first of all thanks for your efforts! Grouping links into categories (menus) is a very good thing. I have a few suggestions: 1. "http://tapestry.laliluna.de/"; : 1.1 "Apache Tapestry is an open-source framework" - add "component-oriented" . As for me it's a very important feature to

Re: Accessing page context from a component

2009-09-14 Thread Howard Lewis Ship
Otho is exactly right here. Each piece of Tapestry has its purpose, and pages act as a bridge between the client and the components within the page. On Mon, Sep 14, 2009 at 4:13 AM, Otho wrote: > I wouldn't couple a component so tightly to a specific page. If you need to > pass certain bits of

Re: First try with chenilleKit.

2009-09-14 Thread jose luis sanchez
There's a lib dependency problem between chenillekit and tapestry. You should add and exclussion in the chenillekit tapestry dependency. Add this to your pom.xml file org.chenillekit chenillekit-tapestry 1.1.0 * j

Re: First try with chenilleKit.

2009-09-14 Thread Madtyn
I have mended the issue and it works! I made a change in the Eclipse build path and added the jar file. About the WEB-INF/lib it seems empty. I don't have much experience with webapps, as it's obvious. But I'm running it with Maven and it must be locating the libs in another place. I don't underst

Re: First try with chenilleKit.

2009-09-14 Thread Sven Homburg
Are you sure, that the chenillekit libs are resists in you WEB-INF/lib ? with regards Sven Homburg Founder of the Chenille Kit Project http://www.chenillekit.org 2009/9/14 Madtyn > I tried for the first time to use a chenilleKit component, so I was > reading about, and I only included a Date

First try with chenilleKit.

2009-09-14 Thread Madtyn
I tried for the first time to use a chenilleKit component, so I was reading about, and I only included a DateTimeField component. 1.- I added the repository and the dependencies to the pom xml of the parent multiproject. 2.- I added the next code on the Java class: import org.chenillekit.tape

Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC)

2009-09-14 Thread Thiago H. de Paula Figueiredo
Em Mon, 14 Sep 2009 10:49:15 -0300, Stefan escreveu: I think the best, or most common and stable solution would be to extend the always existing infrastructure to be able to register own datatypes and their view/edit components. But is that possible? And how? Yes. Take a look at DataTypeAnaly

Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC)

2009-09-14 Thread Stefan
I'm working on the same problem. (as i mentioned in some posts before) I think the best, or most common and stable solution would be to extend the always existing infrastructure to be able to register own datatypes and their view/edit components. But is that possible? And how? All involved sour

Re: Tapestry5SelectObject problem with Tomcat - selection is not persisted

2009-09-14 Thread Thiago H. de Paula Figueiredo
Em Mon, 14 Sep 2009 00:02:44 -0300, Vangel V. Ajanovski escreveu: Then it might be related to how the filter works. The object selectedPlan stays to null after selection and refresh. Anyone any ideas? This kind of error is typically cause by lack of proper equals() and hashcode() methods

Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC)

2009-09-14 Thread Jack Nuzbit
I mean too much component nesting like what's been described in this thread. On Mon, Sep 14, 2009 at 12:56 PM, Ivano Luberti wrote: > Jack, what "Uber component pattern" stands for ? > > Jack Nuzbit ha scritto: > > I'm concerned I may be falling foul of the Uber-component pattern as > well. > >

Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC)

2009-09-14 Thread Ivano Luberti
Jack, what "Uber component pattern" stands for ? Jack Nuzbit ha scritto: > I'm concerned I may be falling foul of the Uber-component pattern as well. > I'm regularly building container components that dynamically render > different sub-components. > Is there any chance somebody could document the

Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC)

2009-09-14 Thread Jack Nuzbit
I'm concerned I may be falling foul of the Uber-component pattern as well. I'm regularly building container components that dynamically render different sub-components. Is there any chance somebody could document the recommended approach here. Many thanks, Jack On Fri, Sep 11, 2009 at 8:23 PM,

Re: Accessing page context from a component

2009-09-14 Thread Otho
I wouldn't couple a component so tightly to a specific page. If you need to pass certain bits of information you can also use component parameters from within the page. 2009/9/14 chakra > > thanks for the responses. > Is there any plan in future releases of tapestry, to add support for > onActiv

Re: Accessing page context from a component

2009-09-14 Thread chakra
thanks for the responses. Is there any plan in future releases of tapestry, to add support for onActivate method in components also,to get the page context? That will make life much easier. Chakra -- View this message in context: http://www.nabble.com/Accessing-page-context-from-a-component-t