Re: Several Advices on same service

2012-10-04 Thread Lance Java
> Yes I thought about that But anyway it should work but my approach... I don't agree. Tapestry doesn't have enough information to know which order to apply the advices. There are possibly other bytecode manipulation issues to consider too. > I actually hope to have Modules developped by 3rd

Re: arithmetic calculations

2012-10-04 Thread Lance Java
1. The html label is for labelling an input, not for arbitrary text. As has been mentioned on this list, use a span or similar for arbitrary text. http://www.w3schools.com/tags/tag_label.asp 2. Instead of ${a} + b, I think you mean ${a + b} (see http://tapestry.apache.org/property-expressions.html

Re: Lightweight TapestryTools update site

2012-10-04 Thread Davor Hrg
Hi, I've just installed the TapestryTools but have no autocomplete in template and CTRL+R is not working ... actually CTRL+R is the only feature I' am really interested in for now. waht can I do to check what is wrong ? On Sun, Aug 19, 2012 at 4:30 PM, Gavin Lei wrote: > Hi all, > > I have

RE: Change textfield focus on zone update

2012-10-04 Thread Poder, Jacob
After the zone update, the id is probably no longer simply "transactionText". Try injecting the field and using the clientId, something like this: @Component private TextField transactionText; public void onSetFocus() { javaScriptSupport.autofocus(FieldFocusPriority.OVERRIDE, transactionText

Re: Several Advices on same service

2012-10-04 Thread Lance Java
A bit of further reading shows that you can specify an ordering using the Order annotation. Perhaps this is why tapestry is not allowing the sercond advice? http://tapestry.apache.org/service-advisors.html Matching And Ordering Each service advice method gets a unique id, obtained by stripping th

Re: Several Advices on same service

2012-10-04 Thread kheldar666
Actually in my case, the Order in which the Advices are not important. What I don't understand is why 1 Advice is simply ignored (apparently because the Advice creates a second ServiceMenu with the same id... ) That being said, I will look into the Advice declaration if there is anything wrong.

Re: Several Advices on same service

2012-10-04 Thread Lance Java
>From the docs: "Each service advice method gets a unique id, obtained by stripping the "advise" prefix from the method name. Advice ids must be unique across all modules." Are you using the same method name in the two modules? -- View this message in context: http://tapestry.1045711.n5.nabble

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

2012-10-04 Thread Lance Java
For a non-ajax request, tapestry should always be able to handle a return type of java.net.URL. Things to debug: 1. Are you sure it's page request that's returning the URL (a non-ajax request) 2. Have you made any contributions to the ComponentEventResultProcessor? 3. Any wierd classpath issues tha

Re: Several Advices on same service

2012-10-04 Thread kheldar666
Hi, I find out the root cause thanks to your idea Lance. Actually when you use the @Advise twice, matching the same Interface... then you MUST use the id parameter in the @Advice Annotation. If not Tapestry try to create Advice ids based on the Interface name... in that case you end up with 2 Adv

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

2012-10-04 Thread wout86
Hi Lance, Thanks for the quick reply. 2) nope 3) I think not; my code which returns URLs typically works, but only sometimes I get the error that a returned URL cannot be handled. 1) Can you clarify this? I don't really understand this question... -- View this message in context: http://tape

Why is AssetPathConverter not called for javascript stacks

2012-10-04 Thread Bård Magnus Kvalheim
Hi good people. We were looking into serving assets from aws cloudfront and could quite easily make a AssetPathConverter to support that thanks to previous mailinglist discussions and examples. The only issue now is that stacks (js) don't seem to go through the AssetPathConverter. Applies to both

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

2012-10-04 Thread Lance Java
> Can you clarify this? I suspect that you are returning a URL from an ajax request. -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-6-When-can-a-java-net-URL-be-returned-from-an-event-handler-tp5716618p5716630.html Sent from the Tapestry - User mailing list archive

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

2012-10-04 Thread wout86
That's possible; I do however perform the test to make sure the URL is only returned when !request.isXHR() (where request is an instance of org.apache.tapestry5.services.Request). Is there any other check that I should perform? -- View this message in context: http://tapestry.1045711.n5.nabble.

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

2012-10-04 Thread Lance Java
> I do however perform the test Yes, the code you provided looks bullet-proof. But is this code the source of the problem? -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-6-When-can-a-java-net-URL-be-returned-from-an-event-handler-tp5716618p5716633.html Sent from the

Re: arithmetic calculations

2012-10-04 Thread Thiago H de Paula Figueiredo
On Thu, 04 Oct 2012 01:38:03 -0300, Ken in Nashua wrote: Folks, Hi! And I am using arithmetic operations as specified above. I know Thiago is going to slam me for not putting this in the JAVA module... I'm not slamming you: I'm just saying that you're ignoring over and over our adv

Re: Change textfield focus on zone update

2012-10-04 Thread Thomas Jensen
Hi, Great, that fixed the problem. Thank you very much. /Thomas Den 04/10/2012 kl. 10.44 skrev "Poder, Jacob" : > After the zone update, the id is probably no longer simply "transactionText". > Try injecting the field and using the clientId, something like this: > > @Component > private Text

Re: Why is AssetPathConverter not called for javascript stacks

2012-10-04 Thread Howard Lewis Ship
Looks like an oversight. I'm not familiar with CloudFront; can you give me a thumbnail overview of how your CDN hooks work? On Thu, Oct 4, 2012 at 3:54 AM, Bård Magnus Kvalheim wrote: > Hi good people. > > We were looking into serving assets from aws cloudfront and could quite > easily make a As

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

2012-10-04 Thread wout86
It should be... No other piece of event handler code returns URLs. -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-6-When-can-a-java-net-URL-be-returned-from-an-event-handler-tp5716618p5716638.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Change textfield focus on zone update

2012-10-04 Thread Thomas Jensen
Hi, It didn't quite work anyway. It only works if the zone is visible, when I set visible=false zone2 does not receive focus, but if i submit twice from zone 1, zone 2 receives focus on the second submit. - First submit (from zone 1) - Zone 2 is set to visible and rendered - No focus on zone 2

Re: Tapestry 5.3.5 BACK OUT Prototype 1.7.1?

2012-10-04 Thread Lenny Primak
Voted. On Oct 4, 2012, at 4:59 PM, Geoff Callender wrote: > Please vote for > https://issues.apache.org/jira/browse/TAP5-1989#comment-13469684 . > > On 04/10/2012, at 9:01 PM, AndyB wrote: > >> Is this happening? >> >> >> >> -- >> View this message in context: >> http://tapestry.1045711

Re: Tapestry 5.3.5 BACK OUT Prototype 1.7.1?

2012-10-04 Thread Howard Lewis Ship
Your wish is my command: https://issues.apache.org/jira/browse/TAP5-2009 On Thu, Oct 4, 2012 at 2:03 PM, Lenny Primak wrote: > Voted. > > On Oct 4, 2012, at 4:59 PM, Geoff Callender > wrote: > >> Please vote for >> https://issues.apache.org/jira/browse/TAP5-1989#comment-13469684 . >> >> On 04

Re: Tapestry 5.3.5 BACK OUT Prototype 1.7.1?

2012-10-04 Thread Lenny Primak
I don't understand. It says fix version 5.3.5, but wouldn't be a 5.3.6 or later with this backout? Thanks for the fix! On Oct 4, 2012, at 5:35 PM, Howard Lewis Ship wrote: > Your wish is my command: > > https://issues.apache.org/jira/browse/TAP5-2009 > > On Thu, Oct 4, 2012 at 2:03 PM, Lenny

Re: Tapestry 5.3.5 BACK OUT Prototype 1.7.1?

2012-10-04 Thread Howard Lewis Ship
Thanks! I had entered the wrong value. Fixed now. On Thu, Oct 4, 2012 at 3:01 PM, Lenny Primak wrote: > I don't understand. It says fix version 5.3.5, but wouldn't be a 5.3.6 or > later with this backout? > Thanks for the fix! > > On Oct 4, 2012, at 5:35 PM, Howard Lewis Ship wrote: > >> Your

Posting from multiple submits

2012-10-04 Thread Henrik von Schlanbusch
Hi. I have problems understanding multiple submits. I am running T5.3.5. I have the following tml: And javacode: @Component private Submit setSelectedGroup; @Component private Submit sendUserRegistration; public void on

Re: Why is AssetPathConverter not called for javascript stacks

2012-10-04 Thread Magnus Kvalheim
Hi Howard - thanks for your reply. Looks like an oversight. I'm not familiar with CloudFront; can you > give me a thumbnail overview of how your CDN hooks work? > > Sure. Well Cloudfront is at heart a CDN. It has many features, but how it works is that it delivers content from edges that are clo

Re: Why is AssetPathConverter not called for javascript stacks

2012-10-04 Thread Bård Magnus Kvalheim
Hi Howard - thanks for your reply. Looks like an oversight. I'm not familiar with CloudFront; can you > give me a thumbnail overview of how your CDN hooks work? > > Sure. Well Cloudfront is at heart a CDN. It has many features, but how it works is that it delivers content from edges that are clo