Re: [T5.2.6] When can a java.net.URL be returned from an event handler?

2012-10-22 Thread wout86
Ok, I'll add some more context here. The event handling code I'm talking about is actually invoked in a component's /dispatchComponentEvent/ function. It is added as 'before' advice on this function through a Tapestry Class Transformation. Basically, the event handling code verifies a boolean

Can not get annotation instance on advised methods

2012-10-22 Thread Rural Hunter
Hi, I have an annotation: @Documented @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface Audit { String operate() default ; String desc() default ; int type(); int idParamIndex() default 0; } I put on some methods of my DAO services and advised

[T5.3]Zone parameter of a form null after ajax rendering?

2012-10-22 Thread Thomas Cucchietti
Hello, Is the following behavior intended, as it may be a bug ? With this structure : t:zone t:id=zoneToRefresh id=zoneToRefresh t:delegate to=activeBlock/ /t:zone t:block t:id=empty !-- empty block -- /t:block t:block t:id=manageBlock t:form t:id=manageForm zone=zoneToRefresh

Re: Can not get annotation instance on advised methods

2012-10-22 Thread Taha Siddiqi
Did you try invocation.getInstance().getAnnotation() ? On Oct 22, 2012, at 1:15 PM, Rural Hunter wrote: Hi, I have an annotation: @Documented @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface Audit { String operate() default ; String desc()

Re: [T5.3]Zone parameter of a form null after ajax rendering?

2012-10-22 Thread Thomas Cucchietti
I tried to manually link the zone to the form, but with no success. @BeginRender void fixZoneAjaxSupport() { Link link = resources.createEventLink(manualLinkToZone, null); clientBehaviorSupport.linkZone(manageForm, zoneToRefresh, link); } The linkzone in

Re: Can not get annotation instance on advised methods

2012-10-22 Thread Rural Hunter
于 2012/10/22 17:02, Taha Siddiqi 写道: Did you try invocation.getInstance().getAnnotation() ? What is that for? I read the API and seems it's not what I needed. My annotation is on methods being advised, not on the class instance. I also tried invocation.getMethod().getAnnotations() and it

Re: Can not get annotation instance on advised methods

2012-10-22 Thread Taha Siddiqi
May be get the annotation in the advisor implementation using MethodAdviceReceiver#getMethodAnnotation On Oct 22, 2012, at 3:11 PM, Rural Hunter wrote: 于 2012/10/22 17:02, Taha Siddiqi 写道: Did you try invocation.getInstance().getAnnotation() ? What is that for? I read the API and seems it's

Re: Mixing parameters from component and page

2012-10-22 Thread Thiago H de Paula Figueiredo
In Tapestry, components and pages are supposed to be a black box, so doing something that involves a field from one page and a field from one component is bad practice. I would put the calculation inside the component. On Sat, 20 Oct 2012 16:12:49 -0300, o1550762 o1550...@rtrtr.com wrote:

Re: JSONLiteral breks zone refresh

2012-10-22 Thread bhorvat
Howard Lewis Ship wrote What if the function already existed on some global object? The function should not exist anywhere before my code. Here is what happens. The page is loaded, I click a link which refreshes a zone and then it reveals a textfield with autocomponent mixin. I am passing that

Tree and Form submission to Zone problem

2012-10-22 Thread Nicolas Bouillon
Hi, We have got a problem with the Tree component. In our tree element, we want to have a form included to allow to add a new child to the current element. We have used the p:label attribute to customize the rendering of the element, and we have included a form inside, which must submit in XHR

Re: Calling specific object

2012-10-22 Thread o1550762
Thank you mr. Howard. :) It worked exactly how I wanted it to work. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Calling-specific-object-tp5717114p5717130.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: What happens when browser close or type new url from client side?

2012-10-22 Thread Thiago H de Paula Figueiredo
On Mon, 22 Oct 2012 11:30:14 -0200, dinesh707 dinesh...@gmail.com wrote: Hi, i need to catch the page unload event and i need to work that with all the browsers. I wonder what really happens for the application server side when some one close the client. If i'm running a thread will it

Re: [T5.3]Zone parameter of a form null after ajax rendering?

2012-10-22 Thread Thomas Cucchietti
I keep on trying a way to get this working. In a previous discussion (see the end of Christian's answer herehttp://markmail.org/thread/w6s3jtmwwfw6vfnx#query:+page:1+mid:jbwboaocfw4lkjqj+state:results), a workaround for the null id could be the use of a HeartBeat to defer the evaluation of the

Re: [T5.3]Zone parameter of a form null after ajax rendering?

2012-10-22 Thread Thiago H de Paula Figueiredo
Or provide explicit static ids instead of letting them be autogenerated by Tapestry. On Mon, 22 Oct 2012 11:45:18 -0200, Thomas Cucchietti thomas.cucchie...@gmail.com wrote: I keep on trying a way to get this working. In a previous discussion (see the end of Christian's answer

Re: [T5.3]Zone parameter of a form null after ajax rendering?

2012-10-22 Thread Thomas Cucchietti
Hello Thiago, I did it by setting explicitely the id (on top of the t:id) parameter of the form to manageForm, but it keeps adding some random value at the end of this (for example manageForm_13a88baf8ea). Something is missing for the clientid to be static? 2012/10/22 Thiago H de Paula

Using Spock Mocks with PageTester

2012-10-22 Thread Tony Nelson
Does anyone have an example of using Spock Mocks with PageTester? I'd like to substitute Mocks for @Injected resources and I can't seem to find a way to make it happen. Has anyone figured out a good way to do this? Thanks in advance -Tony Since 1982, Starpoint Solutions has been a trusted

Re: Can not get annotation instance on advised methods

2012-10-22 Thread Rural Hunter
hmm...I think it won't work in any way trying to get the annotation from the method where plastic already removes the annotation... 于 2012/10/22 18:34, Taha Siddiqi 写道: May be get the annotation in the advisor implementation using MethodAdviceReceiver#getMethodAnnotation On Oct 22, 2012, at

Re: Using Spock Mocks with PageTester

2012-10-22 Thread Alex Kotchnev
Tony, I use Testify to accomplish what you describe ( http://tapestrytestify.sourceforge.net/junit4.html) . I used it w/ EasyMock mocks, but I assume it should be very similar to that. Cheers - Alex K On Mon, Oct 22, 2012 at 10:27 AM, Tony Nelson tnel...@starpoint.com wrote: Does anyone have

Re: Using Spock Mocks with PageTester

2012-10-22 Thread Tony Nelson
I'll take a look at that. Thank you very much for the suggestion. On Oct 22, 2012, at 11:10 AM, Alex Kotchnev akoch...@gmail.com wrote: Tony, I use Testify to accomplish what you describe ( http://tapestrytestify.sourceforge.net/junit4.html) . I used it w/ EasyMock mocks, but I assume it

Re: [T5.3]Zone parameter of a form null after ajax rendering?

2012-10-22 Thread Thomas Cucchietti
Still impossible to manage to have this zone update using the form inside the zone. From the browser console, I can see that the content of the partial render response contains what is needed for the zone to be updated : (...) inits : [{ formEventManager : [{ formId :

Re: JSONLiteral breks zone refresh

2012-10-22 Thread Howard Lewis Ship
On Mon, Oct 22, 2012 at 4:39 AM, bhorvat horvat.z.bo...@gmail.com wrote: Howard Lewis Ship wrote What if the function already existed on some global object? The function should not exist anywhere before my code. Well, change that. Have you Ajax response load a library containing the

Re: JSONLiteral breks zone refresh

2012-10-22 Thread bhorvat
Howard Lewis Ship wrote Well, change that. Have you Ajax response load a library containing the function. yea that is what I have done at the moment, I have added the code that needs to be executed when a user selects something form the list. But this is hack as I have overridden the original

Re: JSONLiteral breks zone refresh

2012-10-22 Thread Thiago H de Paula Figueiredo
On Mon, 22 Oct 2012 14:48:13 -0200, bhorvat horvat.z.bo...@gmail.com wrote: Howard Lewis Ship wrote Well, change that. Have you Ajax response load a library containing the function. yea that is what I have done at the moment, I have added the code that needs to be executed when a user

Re: JSONLiteral breks zone refresh

2012-10-22 Thread bhorvat
I agree, but still it is better then the alternative. Tapestry5-jquery team is providing the js file and if I override it then I will have to make sure that next release from them is not broken in my project as I have override one of their files. What I want to do is just pass the function in

Re: JSONLiteral breks zone refresh

2012-10-22 Thread Chris Poulsen
Hi, You could take this up with the tapestry5-jquery people in their google group, i guess it is not impossible to provide a patch and get it accepted by them. -- Chris On Mon, Oct 22, 2012 at 7:18 PM, bhorvat horvat.z.bo...@gmail.com wrote: I agree, but still it is better then the

Re: JSONLiteral breks zone refresh

2012-10-22 Thread bhorvat
Yea I have submitted an issue and will see what they say about it. If however anyone has any idea how to implement this so that it is not related to the passing the function from the server code I would appreciate. cheers -- View this message in context:

Seeking Developers in Israel for Tapestry B2C application

2012-10-22 Thread Howard Lewis Ship
One of my clients is an Israeli start-up by the name of 5oosh (pronounced five-oosh). Together we've been developing an innovative and extensive B2C web app that, once launched, will introduce a set of revolutionary new services to consumers of entertainment all across the world. I cannot

Re: Can not get annotation instance on advised methods

2012-10-22 Thread Taha Siddiqi
May be I didn't get you but may be JpaTransactionAdvisorImpl can help. It uses @CommitAfter and checks the PersistenceContext using @PersistenceContext on the same method to get the context for which the method has to be advised. On Oct 22, 2012, at 8:22 PM, Rural Hunter wrote: hmm...I

[ANN] JumpStart upgraded to Tapestry 5.3.6

2012-10-22 Thread Geoff Callender
Hi all, JumpStart 6.3 is out. It features: * Upgraded to use Tapestry 5.3.6. * Upgraded to use tapestry5-jQuery 5.3.3. * Fixes the create a fresh project feature (see the Tips page). It's running in the usual place:

Re: [ANN] JumpStart upgraded to Tapestry 5.3.6

2012-10-22 Thread Howard Lewis Ship
Thanks, as always, for the terrific work! On Mon, Oct 22, 2012 at 3:37 PM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: Hi all, JumpStart 6.3 is out. It features: * Upgraded to use Tapestry 5.3.6. * Upgraded to use tapestry5-jQuery 5.3.3. * Fixes the

Re: [ANN] JumpStart upgraded to Tapestry 5.3.6

2012-10-22 Thread Geoff Callender
All for a good cause. On 23/10/2012, at 9:52 AM, Howard Lewis Ship wrote: Thanks, as always, for the terrific work! On Mon, Oct 22, 2012 at 3:37 PM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: Hi all, JumpStart 6.3 is out. It features: * Upgraded to use Tapestry

Re: [ANN] JumpStart upgraded to Tapestry 5.3.6

2012-10-22 Thread Bob Harner
Geoff, thanks for all your many improvements over the last several versions. Month by month JumpStart becomes ever more valuable to the Tapestry community. One of the things I hope to do over the upcoming months is to provide many more links to JumpStart within the official Tapestry

Re: [ANN] JumpStart upgraded to Tapestry 5.3.6

2012-10-22 Thread Geoff Callender
Well, that sounds like a vote of confidence. Thanks! You're welcome to copy any example you like into the documentation - I see no harm in having duplication - but in cases where augmenting the doco with a live example would add value then by all means feel free to link to it. BTW, Bob, your

Re: Can not get annotation instance on advised methods

2012-10-22 Thread Rural Hunter
No, it does not seems what I wanted. It's a pity that the annotation is lost in plastic class transformation. I have to find other ways. thanks anyway. 于 2012/10/23 2:16, Taha Siddiqi 写道: May be I didn't get you but may be JpaTransactionAdvisorImpl can help. It uses @CommitAfter and checks

How onActivate () will be called automatically

2012-10-22 Thread yaswanthbs
Hi All, I have gone through a lot of portals, on how onActivate() will be called automatically and how it takes the arguments. I found one i.e., *It allows the page to restore its internal state from data encoded into the URL* But I am not clear about this. I have one scenario If I have two