Re: NPE with ajax form loop

2009-02-19 Thread Yunhua Sang
I got this NPE too, but seems at different place: Request time: 16 ms [ERROR] RequestExceptionHandler Processing of request failed with uncaught exception: java.lang.NullPointerException java.lang.NullPointerException at org.apache.tapestry5.dom.Element.createNamespaceURIToPrefix(Element.

Re: [OT] By boss decided

2009-02-19 Thread Daniel Honig
Ok, I'm sure the tapestry list will still be here to help in two years when they get to phase 3 and have to start from scratch ;) -dh On Thu, Feb 19, 2009 at 4:38 PM, Borut Bolčina wrote: > Today the official winner was announced. The corporate mind decided we will > use PHP Zend. The deciding

Re: [OT] By boss decided

2009-02-19 Thread Borut Bolčina
Today the official winner was announced. The corporate mind decided we will use PHP Zend. The deciding factor was http://www.zend.com/en/products/platform/customers Nonetheless, I hope I will post a better news in a few of months which will go directly into success stories. -Borut 2009/2/18 Boru

Re: Dependent implemented with @OnEvent mixin + AjaxFormLoop

2009-02-19 Thread Thiago H. de Paula Figueiredo
Em Thu, 19 Feb 2009 17:44:54 -0300, Elmer Smith escreveu: I first thought of somehow using getClientId(). The problem is that I need the id in the JavaScript function (the onCompleteCallback one) to then try and determine which select put values into. I have also needed to know what compon

RE: Dependent implemented with @OnEvent mixin + AjaxFormLoop

2009-02-19 Thread Elmer Smith
I first thought of somehow using getClientId(). The problem is that I need the id in the JavaScript function (the onCompleteCallback one) to then try and determine which select put values into. If I could call getClientId() when in the Java @OnEvent method, then I could sneak it in as the first e

Re: Dependent implemented with @OnEvent mixin + AjaxFormLoop

2009-02-19 Thread Thiago H. de Paula Figueiredo
Em Thu, 19 Feb 2009 17:28:16 -0300, gladstone escreveu: Once this is placed inside an AjaxFormLoop, the client id for the select elements are made unique by having a unique number appended to it. Inside the JavaScript function, it can no longer find the select element to update as it doesn

Dependent implemented with @OnEvent mixin + AjaxFormLoop

2009-02-19 Thread gladstone
I am desperately looking for a solution to get a select element that is dependent on another select element to work inside an AjaxFormLoop. Outside of an AjaxFormLoop, I can use @OnEvent mixin from T5Components to implement the dependent select (i.e. the value selected in the first select is used

Re: Displaying the source of an event

2009-02-19 Thread gladstone
I am actually completely stuck on a problem that would be solved by being able to get the component id in this fashion. I am implementing a form. The form uses an ajaxformloop to add/remove fields. The fields are elements. What's more, I am using the @OnEvent mixin + javascript to make one se

Re: [T5.0.18] Bug? : Null property problem with the custom component inside a grid

2009-02-19 Thread Howard Lewis Ship
It's very simple. When the Grid component renders, it is keeping the book property up-to date as the components in its body render. Thus, if you look at the rendered output, you'll see an element and a URL that references the component and the displayImage custom event. Now what happens when th

Why Grid component fetches data one more time in form submit

2009-02-19 Thread dh ning
Hi, When Grid is in a form, even though 'volatile' parameter is set to 'false' (by default), I can see the datasource provider method is called during form submit. My understanding is that, if 'volatile' is false, it should not be called in form submitted, am I missing something? Object setupRen

Re: [T5.0.18] Bug? : Null property problem with the custom component inside a grid

2009-02-19 Thread Iren Tuna
If there are no other ideas, whether it should work or not (and why), the way I have done it, aside from the alternative solution hints, maybe I should try to create a bug issue in T5 jira. For me it is still not clear, why it does not work. Any other ideas? -- iren Thiago H. de Paula Figueire

Re: T5:Cannot create a session after the response has been committed

2009-02-19 Thread Angelo Chen
Hi Thiago, Thanks for the reply, I have modified the code as you sugested, looks neat. the problem seems having to do with @ApplicationState, I have this for the same class in two places, also create it in a service, in one page, I have A @ApplicationState SessionDat _dat, in the same time I cal

T5: Passivate, forms and environmentals

2009-02-19 Thread Carl Crowder
Hi all, I have a page class, which in "beginRender" pushes a class into the environment. Then a component uses that environmental value. This works fine, and I use it in the page activation and passivation methods and all is well. In the component, I have a form which sets some values. When

Re: Migrated from t5componets 0.5.18 to chenillekit-tapestry 1.0.0

2009-02-19 Thread Massimo Lusetti
On Tue, Feb 10, 2009 at 2:11 PM, Petros Petrou wrote: > > I just changed my dependencies from t5components 0.5.18 to > chenillekit-tapestry 1.0.0 and the following code that used to work fine now > throws the exception shown below. Switching back to t5components 0.5.18 > fixes the problem Chenil

Re: If component

2009-02-19 Thread Thiago H. de Paula Figueiredo
On Thu, Feb 19, 2009 at 10:45 AM, Davor Miku wrote: > Are you sure this is going to work? Ooops, I've found an error: it should be , not test="isInstanceOfA" > If Foo is B, and I'm: > > B doesn't have isInstanceOfA(). > Is it going to false that or to throw exception? False, the If

Re: If component

2009-02-19 Thread Davor Miku
Thank you both very much, both solutions work fine! On Thu, Feb 19, 2009 at 8:45 AM, Davor Miku wrote: > Are you sure this is going to work? > > If Foo is B, and I'm: > > > > B doesn't have isInstanceOfA(). > > Is it going to false that or to throw exception? > > > > On Thu, Feb 19, 200

Re: If component

2009-02-19 Thread Davor Miku
Are you sure this is going to work? If Foo is B, and I'm: B doesn't have isInstanceOfA(). Is it going to false that or to throw exception? On Thu, Feb 19, 2009 at 8:41 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, Feb 19, 2009 at 10:37 AM, Davor Miku wrote:

Re: If component

2009-02-19 Thread Ulrich Stärk
With a delegate component. in your template: and in your page class: @InjectComponent private Block compAblock; @InjectComponent private Block compBblock; @InjectComponent private Block compCblock; public Block getRenderBlock() { if(item instanceof A) return compAb

Re: If component

2009-02-19 Thread Thiago H. de Paula Figueiredo
On Thu, Feb 19, 2009 at 10:37 AM, Davor Miku wrote: > So, how could I accomplish this? Add methods to your page or component class: public boolean isInstanceOfA() { return item instanceof A; } public boolean isInstanceOfB() { return item instanceof B; } -- Thiago --

If component

2009-02-19 Thread Davor Miku
Hi! Let's say I have: public interface Foo { getId(); } public class A implements Foo { } public class B implements Foo { } public class C implements Foo { } public class Index { private Map foos = new TreeMap(); } Let there be components for classes A,B,C, also etc. I want in In

Re: T5:Cannot create a session after the response has been committed

2009-02-19 Thread Thiago H. de Paula Figueiredo
Please post the class that contains the snippet you posted here. By the way, you don't need to asm.set(MySession.class, null), as you're invalidating the session. You can also inject HttpServletRequest directly and instead of getting it from RequestGlobals. Better yet, inject Tapestry's Request and

T5:Cannot create a session after the response has been committed

2009-02-19 Thread Angelo Chen
Hi, I have following code used to logout a user: asm.set(MySession.class, null); global.getHTTPServletRequest().getSession().invalidate(); cookies.removeCookieValue("my.login"); but I'm getting this error with a Tomcat 5.25,but not all, any idea why? Thanks, Angelo [ERROR] [

Re: Migrated from t5componets 0.5.18 to chenillekit-tapestry 1.0.0

2009-02-19 Thread Petros Petrou
Hi, Has anyone seen this problem? I am still not able to fix it? Petros Petros Petrou wrote: > > I just changed my dependencies from t5components 0.5.18 to > chenillekit-tapestry 1.0.0 and the following code that used to work fine > now throws the exception shown below. Switching back to t5c