Re: Passing parameters to nested components

2011-08-16 Thread Marek Matus
Thanks for your response. If I use PageAttached and PageDetached like this: @PageAttached void onPageAttached() { environment.push(IPageParams.class, this.pageParams); } @PageDetached void onPageDetached() { environment.pop(IPageParams.class); } Then I receiv

Re: Jumping to a new page

2011-08-16 Thread ixcoatl
Everything worked as you said, t:pagelink instead of t:actionlink, and @InjectPage instead of @Inject. The silly part is that I had used both techniques before, but I got confused up with the names and usages of each one. Regarding to Thiago's questions, "I guess you're using a structure that

Re: Supporting @EJB annotation in Tapestry classes

2011-08-16 Thread Chris Mylonas
I know what you mean :) On 17/08/2011, at 1:36 PM, Lenny Primak wrote: > This kind of method is what I am currently using. > My application is a big integration project and code bloat using the method > is becoming nasty. > I want an elegant method to do this, i.e. @EJB annotation. > > On Aug 1

Re: Supporting @EJB annotation in Tapestry classes

2011-08-16 Thread Lenny Primak
This kind of method is what I am currently using. My application is a big integration project and code bloat using the method is becoming nasty. I want an elegant method to do this, i.e. @EJB annotation. On Aug 16, 2011, at 11:33 PM, Chris Mylonas wrote: > I'm using ejb3.1/jee6 on a new project

Re: Supporting @EJB annotation in Tapestry classes

2011-08-16 Thread Chris Mylonas
I'm using ejb3.1/jee6 on a new project - on jee5 i used the jumpstart method of integration - works a treat! http://jumpstart.doublenegative.com.au/jumpstart/examples/state/ejb3 sorry if it's been pointed out before On 17/08/2011, at 1:28 PM, Lenny Primak wrote: > I just took a look at that p

Re: Supporting @EJB annotation in Tapestry classes

2011-08-16 Thread Lenny Primak
I just took a look at that post, but it leaves a lot of unanswered questions, actually more questions than answers. I know tapestry-jpa made @PersistenceContext work within Tapestry, which is similar. I am going to look at that. Perhaps Igor can shed some light on this. Thanks again. On Aug 14,

Re: Jumping to a new page

2011-08-16 Thread Chris Mylonas
I've been a newbie a couple of times with tapestry because of project work etc.. I think you will also find the first chapter (free download) of this book a great read on the overview of tapestry: http://www.manning.com/drobiazko/ Jumpstart is a great living-example of tapestry This video http:/

Re: Tapestry 5.3 exception reporting

2011-08-16 Thread Thiago H. de Paula Figueiredo
On Tue, 16 Aug 2011 16:00:43 -0300, Howard Lewis Ship wrote: I just blogged a screencast about something that's going to make your life a LOT easier: http://tapestry.apache.org/2011/08/16/tapestry-53-exception-reporting.html Tapestry 5.3 now gives you the full exception treatment even for A

Re: Jumping to a new page

2011-08-16 Thread Thiago H. de Paula Figueiredo
On Tue, 16 Aug 2011 21:06:05 -0300, ixcoatl wrote: Hi, Hi! I'm having some trouble shifting from the conventional event-driven model to the way Tapestry works. Tapestry is event-driven too, but Is there a newbie forum where I can ask the most basic questions? This is the place for

Re: Mixins can not get the parameter's clientid

2011-08-16 Thread dick_hu
Taha Hafeez wrote: > > Hi > > Have you considered using a Heartbeat. > > BTW what is the scenario ? > I am a new tapestryer, no kidding, I have not fully understand the Heartbeat, Have you any component or mixins use the Heartbeat give my reference,heihei. -- View this message in context: ht

Re: Jumping to a new page

2011-08-16 Thread Robert Zeigler
So, an actionlink doesn't have a page parameter. :) Cf: http://tapestry.apache.org/current/tapestry-core/ref/org/apache/tapestry5/corelib/components/ActionLink.html So you can either supply an "onActionFromEditarUsario" event handler method in your listing page that sets up the editing page and

Jumping to a new page

2011-08-16 Thread ixcoatl
Hi, I'm having some trouble shifting from the conventional event-driven model to the way Tapestry works. Is there a newbie forum where I can ask the most basic questions? Right now I'm stuck trying to jump from one page in charge to create users to others in charge of editing and deleting them.

Fwd: Question about FieldValidator

2011-08-16 Thread Robert Zeigler
Forwarding this on to the user list, where it belongs. Original question: "Hi all, I am new to T5, and I am trying to compare a server-side variable to the data input from the client side. So is there a way to have something like ? I tried this but it throws an exception as "Could not find a

Re: Passing parameters to nested components

2011-08-16 Thread Taha Hafeez
Hi Marek setupRender -- beginRender afterRender are rendering phases i.e. these events occur during rendering of components/pages. When an event is triggered, event handling phases occur like onEventFromComponent() or in case of a form submission, onPrepare(), onPrepareForSubmit(), onV

Re: Tapestry 5.3 exception reporting

2011-08-16 Thread Massimo Lusetti
On Tue, Aug 16, 2011 at 9:00 PM, Howard Lewis Ship wrote: > I just blogged a screencast about something that's going to make your > life a LOT easier: > > http://tapestry.apache.org/2011/08/16/tapestry-53-exception-reporting.html > > Tapestry 5.3 now gives you the full exception treatment even fo

Passing parameters to nested components

2011-08-16 Thread Marek Matus
Hi, I'm using Environmental to passing parameters to nested components. In my page there is: @SetupRender void onSetupRenderer() { environment.push(IPageParams.class, this.pageParams); } @AfterRender void afterRender() { environment.pop(IPageParams.class);

Re: Tapestry 5.3 exception reporting

2011-08-16 Thread Howard Lewis Ship
I so wish I had done this earlier. I just didn't realize until maybe a year ago that you could just create the and populate its content via JavaScript. Even so, I should have done this much earlier because it would have saved me a lot of time on some existing projects I'm working on. On Tue, Au

Re: Tapestry 5.3 exception reporting

2011-08-16 Thread Robert Zeigler
Very nice! Robert On Aug 16, 2011, at 8/162:00 PM , Howard Lewis Ship wrote: > I just blogged a screencast about something that's going to make your > life a LOT easier: > > http://tapestry.apache.org/2011/08/16/tapestry-53-exception-reporting.html > > Tapestry 5.3 now gives you the full excep

Re: Tapestry 5.3 exception reporting

2011-08-16 Thread Howard Lewis Ship
Also, this is in the 5.3-alpha-13 (lucky 13!) preview release, available from the Apache Staging Maven Repository: https://repository.apache.org/content/groups/staging On Tue, Aug 16, 2011 at 12:00 PM, Howard Lewis Ship wrote: > I just blogged a screencast about something that's going to make yo

Tapestry 5.3 exception reporting

2011-08-16 Thread Howard Lewis Ship
I just blogged a screencast about something that's going to make your life a LOT easier: http://tapestry.apache.org/2011/08/16/tapestry-53-exception-reporting.html Tapestry 5.3 now gives you the full exception treatment even for Ajax request exceptions! For an Ajax request, a popup iframe contai

Re: Tapestry & GWT Integration - how to tell Tapestry to ignore a servlet?

2011-08-16 Thread Lenny Primak
Thank you François! This did the trick. Here's the code so that others may learn from this: @Match("AssetPathConverter") @SuppressWarnings("unchecked") public void adviseJsPathMethod(MethodAdviceReceiver receiver) throws SecurityException, NoSuchMethodException {

Re: Null LifeCycleState

2011-08-16 Thread Robert Zeigler
You might consider asking the JDO folks. You're hitting a JDO problem rather than a specific tapestry problem. GATAATGCTATTTCTTTAACGAA On Aug 16, 2011, at 7:32 AM, TG wrote: > Any one know how to resolve this issue? > > location > classpath:org/apache/tapestry5/corelib/pages/PropertyDi

Null LifeCycleState

2011-08-16 Thread TG
Any one know how to resolve this issue? location classpath:org/apache/tapestry5/corelib/pages/PropertyDisplayBlocks.tml, line 8 javax.jdo.JDOFatalInternalException Null LifeCycleState Hide uninteresting stack frames Stack trace org.datanucleus.state.JDOStateManagerImpl.replacingStateManager(

Re: Mixins can not get the parameter's clientid

2011-08-16 Thread Taha Hafeez
Hi Have you considered using a Heartbeat. BTW what is the scenario ? On Tue, Aug 16, 2011 at 2:55 PM, dick_hu wrote: > My tml is like this: > > > > > > > Mixins "A" > > @Parameter > private AbstractField input; > > void afterRender(){ >  //print the input is not null >  System.out.println(in

Mixins can not get the parameter's clientid

2011-08-16 Thread dick_hu
My tml is like this: Mixins "A" @Parameter private AbstractField input; void afterRender(){ //print the input is not null System.out.println(input); //print the input.getClient() is null System.out.println(input.getClient()); } Is the TextField is loaded after the mixins so I can no

Re: Tapestry & GWT Integration - how to tell Tapestry to ignore a servlet?

2011-08-16 Thread françois facon
Hi Lenny, Did you try to advise the method convertAssetPath of AssetPathConverter service? public class AppModule { @Match("AssetPathConverter") public void adviseJsPathMethod(MethodAdviceReceiver receiver) throws SecurityException, NoSuchMothodException{ MethodAdvice advice = new