Re: [ANN] JumpStart upgraded to Tapestry 5.3.6

2012-10-22 Thread Massimo Lusetti
On Tue, Oct 23, 2012 at 5:25 AM, Geoff Callender wrote: > 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

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 pages

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 th

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 no

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 documentation.

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 > wrote: >> Hi all, >> >> JumpStart 6.3 is out. It features: >> >>* Upgraded to use Tapestry 5.3.6. >>* Up

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 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 "create a fresh project" featu

[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: http://jumpstart.doublenegative.com.au/jumpst

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 thin

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 currently

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: http://tapestry.1045711.n5.nabble.com

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 wrote: > I agree, but still it is better then the alternative. > > Tapestry5-jquery

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 th

Re: JSONLiteral breks zone refresh

2012-10-22 Thread Thiago H de Paula Figueiredo
On Mon, 22 Oct 2012 14:48:13 -0200, bhorvat 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 selects something form 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 Howard Lewis Ship
On Mon, Oct 22, 2012 at 4:39 AM, bhorvat 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 function. > Here is what ha

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" : "ma

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 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 should be very

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 wrote: > Does anyone have an example of using

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

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 s

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 F

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 wrote: I keep on trying a way to get this working. In a previous discussion (see the end of Christian's answer here

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 here), a workaround for the null id could be the use of a HeartBeat to defer the evaluation of the c

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 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 continue to run until i

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. --

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 to

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

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 wrote: I have one compone

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 i

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 return

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 Tapes

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 de

[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 : Yes No (I don't have included the button that refresh the zone the first time)

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

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 an