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
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
I think the preferred way is to @Inject the Request (or HTTPServletRequest
in rare cases)
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
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--
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
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
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
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
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
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
Have you added jp to the list of supported locales?
http://tapestry.apache.org/configuration.html#Configuration-tapestry.supportedlocales
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
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
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
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
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.
-
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
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
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
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
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
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
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
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"
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
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
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.
-
28 matches
Mail list logo