nested object in beaneditform component

2009-09-04 Thread Navier Stokes
Hi: Is it possible to ask the beaneditform to display the fields for an object with nested object? For example: I have a customer class with address field as an object: public class Customer { private String firstName; private String lastName; private Address address; } public

Re: Why does this fail???

2009-09-04 Thread Alfonso Quiroga
I'm from a Spanish language country and I want to correct something: /* Now, the destiny page*/is: /* Now, the TARGET page*/ On Fri, Sep 4, 2009 at 9:26 PM, Madtyn wrote: >  Hello. I keep trying to use the EventContext and made some advances. > As Joshua said the enums can be sent b

Why does this fail???

2009-09-04 Thread Madtyn
Hello. I keep trying to use the EventContext and made some advances. As Joshua said the enums can be sent between the onPassivate and onActivate methods (Thank you Joshua :). But the problem is that I keep finding very strange problems. I have isolated the piece of code that is giving me hel

Re: Good news about Tapestry 5 in Google App Engine

2009-09-04 Thread Howard Lewis Ship
No promises, but I'd think 5.2 is quite reasonable. I'd love to straighten this out and reduce the external dependencies that Tapestry brings in. On Fri, Sep 4, 2009 at 2:32 PM, Alex Kotchnev wrote: > Howard, > thanks for the quick response. Do you think that these changes would be > coming i

Re: Good news about Tapestry 5 in Google App Engine

2009-09-04 Thread Alex Kotchnev
Howard, thanks for the quick response. Do you think that these changes would be coming into the next point release (e.g. 5.2) or are they more likely to happen further out in the future ? Cheers, Alex K On Fri, Sep 4, 2009 at 3:24 PM, Howard Lewis Ship wrote: > My intention is to remove the

Re: Good news about Tapestry 5 in Google App Engine

2009-09-04 Thread Howard Lewis Ship
My intention is to remove the dependencies on javax.stream and revert to a SAX parser. For reasonably sized documents such as Tapestry templates, there's no reason not to use SAX to read the whole document into a stream of tokens similar to what STAX gives you. Fortunately, the tests in this area

Re: [t5] upgrade to java 6 and javassist

2009-09-04 Thread Howard Lewis Ship
What I need to do is, over time, replace the APIs that are "thin wrappers" on Javassist with a different high-level set of operations that can be implemented on top of ASM (likely) instead, then deprecate the Javassist versions, then eliminate them. See you in Tapestry 5.5 or so! :-) On Fri, Sep 4

Re: newbie question about loop

2009-09-04 Thread Alfonso Quiroga
Thiago, thanks, so I make no change to the code, but internally I'm happy ;) And about moving logic... maybe I can... ${ getViewPosition(position) } and in .java I do: getViewPosition(int aNumber) { return aNumber + 1; } I mean... maybe it's better because I don't override getter of a propert

Re: Good news about Tapestry 5 in Google App Engine

2009-09-04 Thread Alex Kotchnev
A quick question for the commiters : I do recall seeing some messages about an option to remove woodstox and using plain java.xml.stream APIs. Is there a plan to integrate any of these changes into the standard build or would they remain an external module (if that's even needed w/ the GAE issue r

Re: newbie question about loop

2009-09-04 Thread Thiago H. de Paula Figueiredo
Em Fri, 04 Sep 2009 14:33:16 -0300, Alfonso Quiroga escreveu: public int getPosition() { return position + 1; } This is not a hack: it's moving logic from the template to a class, and that's a Good Thing. :) -- Thiago H. de Paula Figueiredo Independent Java consul

newbie question about loop

2009-09-04 Thread Alfonso Quiroga
Hi! I am looping and I need the "index" position, but index starts in 0, and I want to show it in screen starting in 1, so... I have: ${position} That works but starts in 0 I tried ${position + 1} but didn't work The only hack I found, is de

Re: [t5] upgrade to java 6 and javassist

2009-09-04 Thread Joost Schouten (ml)
Thanks for the quick response, Howard Lewis Ship wrote: Look for any large methods that are annotated or are event listeners and refactor them to be smaller; too often Javassist gets confused with large methods. That is all a bit too uncertain for me. I'll revert back to java 5 as I have no

Re: [t5] upgrade to java 6 and javassist

2009-09-04 Thread Howard Lewis Ship
Look for any large methods that are annotated or are event listeners and refactor them to be smaller; too often Javassist gets confused with large methods. My biggest regret for Tapestry 5: Should have ditched Javassist, much as I like it. On Fri, Sep 4, 2009 at 7:51 AM, Joost Schouten (ml) wrote

[ANN] JumpStart 4.5.2 released

2009-09-04 Thread Geoff Callender
JumpStart 4.5.2 has been released with the changes I described below. The functionality is the same, only the implementation has changed. It's running on the site for everyone to try out and I'd welcome comments on the changes: http://jumpstart.doublenegative.com.au:8080/jumpstart/

[t5] upgrade to java 6 and javassist

2009-09-04 Thread Joost Schouten (ml)
I've been struggling the last few days to upgrade to java 6 and get my tapestry 5 app to work. Everything starts up nicely but when accessing a page I get the below listed exception. It seems to have to do something with javassist as also some internet resources suggest, but I didn't find any s

Re: Security issue with access control documentation in Wiki

2009-09-04 Thread P . Stavrinides
This is an issue that has appeared many times on this list, you should search for old posts on this, the gist of it is these examples were provided before newer functionality (such as ComponentClassResolver and ComponentSource etc..) were added to Tapestry that can handle this problem better.

Re: T5: Email-Component to send me current web page

2009-09-04 Thread Michael Capper
Michael Capper wrote: > > The other is by an Action-Link on the email-icon, the onAction method then > fiddles around with the Request and lets a Handler render the request into > a ResponseWrapper (exposing the byte[] of the Response). This also gives > me the HTML source, and would be usable p

Re: T5: ServletRequestFilter and dependency injection

2009-09-04 Thread neo anderson
It looks like if an non-default constructor defined in such class. it request to bind interface for that argument as well. For instance, if in MyFilter class which implements HttpServletRequestFilter interface, an argument is provided as below: public MyFilter(RealmSecurityManager securityMana

Testify NullPointerException?

2009-09-04 Thread Mats Henricson
Hi! I'm getting pretty close now. I've managed to get to the renderPage() function, where I get a NPE: Caused by: java.lang.NullPointerException at org.apache.tapestry5.internal.renderers.RequestRenderer.render(RequestRenderer.java:48) What happens on that line is: String contextPat

Re: Substitution for Switch/Case/Block to embed components really dynamic ?

2009-09-04 Thread Ulrich Stärk
No. That's the drawback of the caching of pages and their component structure done by Tapestry. Uli On 04.09.2009 13:56 schrieb Stefan: I think Its the right direction, but there is always the main problem: How to get and add a component which is not defined/bound in any page template? Is th

Re: Substitution for Switch/Case/Block to embed components really dynamic ?

2009-09-04 Thread Stefan
I think Its the right direction, but there is always the main problem: How to get and add a component which is not defined/bound in any page template? Is that possible at all? Am 04.09.2009 um 01:43 schrieb Thiago H. de Paula Figueiredo: BeanEditor and BeanEditForm use blocks from different

Re: Can't get Testify & JUnit 4 & Mockito working

2009-09-04 Thread Mats Henricson
It seems like Testify can't handle that I have my page in a subdirectory of pages! If I have my class in com.acme.web.pages.games, then I get the exception below. If I put the class directly under pages (com.acme.web.pages), then it works. Anyone have an idea why this is the case? Well, it doesn'

Re: Marker for required fields on bean editor

2009-09-04 Thread Juan E. Maya
Awesome :) Thanks a lot! On Fri, Sep 4, 2009 at 3:04 AM, DH wrote: > I've finished something like that before. > First create a mixin 'FieldDecorator', then need contribute to the > BeanBlockOverrideSource. > Here is the sample code: > 1. > @MixinAfter > public class FieldDecorator { > > �...@inj

Re: T5: ServletRequestFilter and dependency injection

2009-09-04 Thread neo anderson
Now this method looks working (without no service implements ... error). But the constructor arg FilterConfig is still null. Looks like the constructor doesn't get called. Is there any additional setting I need to configure so that HttpServletRequestFilter impl class can obtain the desire in

T5.1 (Event)Context in a grid with additional column of checkboxes

2009-09-04 Thread Oliver Bauer
Hi, i would like to to pass a context to a pagelink like but this only works if the returned values of myContext does not change after the page has loaded. More precisely i want to do something like jumpstarts "Grid With Delete Column" without a huge onSuccess method that passes values to a l

Re: Can't get Testify & JUnit 4 & Mockito working

2009-09-04 Thread Mats Henricson
Hm... it seems to be related to the fact that I had forgotten to have a contributeComponentClassResolver() in my PageTestModule class. So now my copied MessagePage test works! Woohoo! But I still get this exception for my real page: Request was not handled: 'GamesLauncher' may not be a

Re: Can't get Testify & JUnit 4 & Mockito working

2009-09-04 Thread Mats Henricson
Hi! Yes, this did indeed get me further down the road. Thanks a lot! Now, when I run, I get a RunTimeException: Request was not handled: 'MessagePage' may not be a valid page name. at org.apache.tapestry5.test.PageTester.renderPage(PageTester.java:177) I'm looking into this, but haven

Re: [ANN] JumpStart 4.4 released

2009-09-04 Thread P . Stavrinides
Hi Geoff, Great post, some good points made, I agree with most of your comments, there is only one thing I prefer to do differently... while onActivate should only be used to set context variables for a page, I feel setupRender() is not the place for context checking. Why? two reasons: 1. The

Re: Good news about Tapestry 5 in Google App Engine

2009-09-04 Thread Jun Tsai
I had manually fixed the problem.Remove some empty method body in PropertyExpressionLexer.java maked by antlr. // $ANTLR start "INTEGER" public final void mINTEGER() throws RecognitionException { } // $ANTLR end "INTEGER" // $ANTLR start "DEREF" public final void mDEREF() thr