Reading HTTP headers

2012-04-11 Thread Markus Grell
Greetings! Depending on a value of a custom HTTP header field I need to sent out different output from my page. Any hints how I can read HTTP headers? Markus Grell - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.o

Re: Reading HTTP headers

2012-04-11 Thread Emmanuel DEMEY
Hi Did you have a look to the RequestGlobals service ? RequestGlobals.getRequest().getHeader("the desired header"); Manu 2012/4/11 Markus Grell > Greetings! > > Depending on a value of a custom HTTP header field I need to sent out > different output from my page. > > Any hints how I can read

Re: Reading HTTP headers

2012-04-11 Thread Lance Java
I think the preferred way is to @Inject the Request (or HTTPServletRequest in rare cases)

Re: Tynamo Resteasy / JPA Integration

2012-04-11 Thread Alejandro Scandroli
Hi Thilo There is three different things here: 1) To use the @CommitAfter annotation you are *always* going to need a separate interface. 2) Even tough you do need an interface the @CommitAfter annotation could be in the implementation. This is the issue Thiago is talking about. 3) The JAX-RS ann

RE: tapestry.apache.org down / slow

2012-04-11 Thread Wechsung, Wulf
Thanks for your reply. Yeah, the problem seems to be definitely on my end. When I go to the site via a webproxy it loads just fine. When I go via my local browser it tries to load "svn.apache.org" for whatever reason. Probably a DNS problem somewhere here in the network. -Original Message--

Do multiple forms cause rewind issues - stale link errors

2012-04-11 Thread nazarhussain_s
Hi Currently I am having a html wherein i have two forms and in one form i am getting stale link error. It is coming as I am clicking on submit button present in component1 in the html after unchecking the checkbox which is present in the component2. main html ... component 1

Do multiple forms cause rewind issues - stale link errors

2012-04-11 Thread nazarhussain_s
Hi Currently I am having a html wherein i have two forms and in one form i am getting stale link error. It is coming as I am clicking on submit button present in component1 in the html after unchecking the checkbox which is present in the component2. main html ... component 1

Re: Tynamo Resteasy / JPA Integration

2012-04-11 Thread Thiago H. de Paula Figueiredo
On Wed, 11 Apr 2012 05:02:25 -0300, Alejandro Scandroli wrote: Hi Thilo Hi, guys! 2) Even tough you do need an interface the @CommitAfter annotation could be in the implementation. This is the issue Thiago is talking about. Correct. :) 3) The JAX-RS annotations need to be on the inter

Re: Zone refresh image uplaod

2012-04-11 Thread François Facon
Hi Boris, AjaxUpload works fine with christian sample https://github.com/got5/tapestry5-jquery/blob/master/src/test/resources/org/got5/tapestry5/jquery/pages/AjaxUploadTest.tml on jetty Could you give us more details regarding your dependencies - tapestry-upload, - commons-fileupload - tapestry-j

Re: Zone refresh image uplaod

2012-04-11 Thread Taha Hafeez Siddiqi
I did face this issue once. I think the issue is with upload.js in tapestry-upload.js Tapestry.Initializer.injectedUpload = function(element) { var form = $(element).form; form.enctype = "multipart/form-data"; form.encoding = "multipart/form-data"; } $(element).form returns null for

setting japanese locale in a service

2012-04-11 Thread angelochen
hi, in tapestry 5.3, i enabled the 'jp' and it works, but in a service if i do a locale.setLocale(Locale.JAPANESE) in a PageLinkTransformer, it does not work in the page, still shows English, but if i did Locale.CHINESE, it works. any idea why? simplified code as follow: public class SampleTransf

Re: setting japanese locale in a service

2012-04-11 Thread Lance Java
Have you added jp to the list of supported locales? http://tapestry.apache.org/configuration.html#Configuration-tapestry.supportedlocales

Re: setting japanese locale in a service

2012-04-11 Thread angelochen
i did: configuration.add("tapestry.supported-locales", "en,zh,ru,jp"); a little confusion is, the doc says 'ja' not 'jp', but even 'ja' does not work. to clear this question a little bit, i supply an app_jp.properties, and when i do a localhost:8080/jp, it works. the place it is not working is

HTTP header modification for Cache-Control in Browser

2012-04-11 Thread Juan Germán Castañeda Echevarria
Hi everyone, I want to be able to disable the browsers cache in some pages programmatically by adding the necessary HTTP headers to the response. I found the following recipe where it is shown how to do something similar with an annotation and a MarkupRenderFilter http://tapestry.apache.org/meta-p

Re: HTTP header modification for Cache-Control in Browser

2012-04-11 Thread Thiago H. de Paula Figueiredo
On Wed, 11 Apr 2012 19:05:20 -0300, Juan Germán Castañeda Echevarria wrote: Hi everyone, Hi! I want to be able to disable the browsers cache in some pages programmatically by adding the necessary HTTP headers to the response. I found the following recipe where it is shown how to do someth

Re: Zone refresh image uplaod

2012-04-11 Thread bhorvat
Hi. Ok so the basic scenario is like this (I have striped some code naturally) so once this zone is refreshed I get the javascript exception which messes everything on the page. For example the auto complete no longer works. If I dont h

Re: Zone refresh image uplaod

2012-04-11 Thread bhorvat
Hi Taha, glad to see that there are others with problem :D any suggestion how to solve this. I am stuck :( -- View this message in context: http://tapestry.1045711.n5.nabble.com/Zone-refresh-image-uplaod-tp5631622p5634387.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: Zone refresh image uplaod

2012-04-11 Thread Taha Hafeez Siddiqi
Sorry I ended up using a non-ajax method because of other reasons. I think it is a bug so you can file a jira. Meanwhile you can override the upload.js script by copying Upload.java from tapestry-upload along with the corresponding js and replace the contents by Tapestry.Initializer.injectedUpl

Re: Zone refresh image uplaod

2012-04-11 Thread bhorvat
Hi Taha, Strangely I can not find the upload.js anywhere. Any ideas where is it? Thank you for help regards boris -- View this message in context: http://tapestry.1045711.n5.nabble.com/Zone-refresh-image-uplaod-tp5631622p5634428.html Sent from the Tapestry - User mailing list archive at Nabble

Re: Zone refresh image uplaod

2012-04-11 Thread Taha Hafeez Siddiqi
https://github.com/apache/tapestry5/blob/trunk/tapestry-upload/src/main/resources/org/apache/tapestry5/upload/components/upload.js On Apr 12, 2012, at 6:54 AM, bhorvat wrote: > Hi Taha, > > Strangely I can not find the upload.js anywhere. Any ideas where is it? > > Thank you for help > > regar

Re: Zone refresh image uplaod

2012-04-11 Thread bhorvat
Sorry to bother you with something so minor but tnx :D That file is not in my javascript files that are included so I can not be sure where to replace it with Tapestry.Initializer.injectedUpload = function(element) { var form = $(element).form; if(form){ form.enctype = "multipar

Re: HTTP header modification for Cache-Control in Browser

2012-04-11 Thread Thiago H. de Paula Figueiredo
On Wed, 11 Apr 2012 20:03:46 -0300, Juan Germán Castañeda Echevarria wrote: Yes, I think that too. Though it may look like that because of all the configuration they are doing for mapping the annotation to use MetaDataLocator. That would be needed in order to control the addition or not of

Re: Zone refresh image uplaod

2012-04-11 Thread Taha Hafeez Siddiqi
Hi It is only added on ajax update. regards Taha On Apr 12, 2012, at 7:12 AM, bhorvat wrote: > Sorry to bother you with something so minor but tnx :D > > That file is not in my javascript files that are included so I can not be > sure where to replace it with > > Tapestry.Initializer.injecte

Re: Zone refresh image uplaod

2012-04-11 Thread bhorvat
Yea but when I have included it like this, and do the ajax update I still get the same error. So I am either not including it right or it is not working as it should :S thnx -- View this message in context: http://tapestry.1045711.n5.nabble.com/Zone-refresh-image-uplaod-tp5631622p5634484.html Se

Re: Zone refresh image uplaod

2012-04-11 Thread bhorvat
This is really strange. I have spent the last hour trying to figure out how the exception is thrown and then I found the upload.js file, the only problem is that at one point the script run into it. But the file wasn't named upload.js. It didnt have a name, and in chrome I can see that the "name"

Accessing protected instrumented fields

2012-04-11 Thread Steve Eynon
Hello, Directly accessing instrumented fields (@Parameter etc...) from subclasses does not work. This is fine, but I do wish T5 complained bitterly when it finds a instrumented field marked as non-public. Olaf found similar problems here (TAP5-1860): http://tapestry.1045711.n5.nabble.com/Protecte

Re: Zone refresh image uplaod

2012-04-11 Thread bhorvat
Ok. So I have been able to figure it out (after several hours of staring in javascript). The tapestry sends the scirpts in the ajax response and that it loads the old version of the file. Which is why you suggested to override Upload.java, right? So now I understand it all except how exactly to c

Re: Zone refresh image uplaod

2012-04-11 Thread bhorvat
Figured it out. Thanks for help and sorry for spam :) I will submit a JIRA tomorrow cheers -- View this message in context: http://tapestry.1045711.n5.nabble.com/Zone-refresh-image-uplaod-tp5631622p5634634.html Sent from the Tapestry - User mailing list archive at Nabble.com. -