Re: [T5] Manipulating response after page is rendered

2008-08-21 Thread 9902468
Anyone? 9902468 wrote: Hi again list, I'm trying to implement features that need to modify response with a filter. Currently my biggest (and only as far as I can tell) problem is that T5 flushes the response in PageResponseRendererImpl. Thus the response is sent to client before my

Does T4 @TextField accept mandarin (big-5) ?

2008-08-21 Thread learner
i tried keyed in big-5 mandarin in textfield and submit the form, after form submiited i do print out, i get ???.. do i need to do any configuration ? in order to make textfield support mandarin? - To unsubscribe, e-mail:

[t5] Use messages from app.properties in java classes

2008-08-21 Thread Daniel Alonso Sanchez
Hi again to everybody, sorry for dsiturbing again, but i have spent at least two hours reading the docs, wiki, Tapestry in Action book, but... i can't solve my actual problem. The thing is that i'm trying to create a MessagesComponent: a component that let's to add aliases, and before insert

Re: [t5] Use messages from app.properties in java classes

2008-08-21 Thread Andy Pahne
First of all you inject ComponentResources: @Inject private ComponentResources resources; Then, you can do this: String message = resources.getMessages().get(some-message); I am not aware if you can inject Messages directly, but I would not be surprised if you could somehow.

Re: [t5] Use messages from app.properties in java classes

2008-08-21 Thread Daniel Alonso Sanchez
Andy Pahne-3 wrote: First of all you inject ComponentResources: @Inject private ComponentResources resources; Then, you can do this: String message = resources.getMessages().get(some-message); I am not aware if you can inject Messages directly, but I would not

Re: [t5] Use messages from app.properties in java classes

2008-08-21 Thread Sven Homburg
the MessagesBean class dont looks like a tapestry component, if so, you cant inject via the @Inject annotation 2008/8/21 Daniel Alonso Sanchez [EMAIL PROTECTED] Hi again to everybody, sorry for dsiturbing again, but i have spent at least two hours reading the docs, wiki, Tapestry in Action

Re: Why you should consider T5

2008-08-21 Thread Davor Hrg
nice post, i don't see mention of automatic template and class reloading.. :) Davor Hrg On Thu, Aug 21, 2008 at 7:13 AM, Partogi, Joshua [EMAIL PROTECTED]wrote: Dear all, I written a small blog post to evangelize people about T5 here:

Re: [t5] Use messages from app.properties in java classes

2008-08-21 Thread Sven Homburg
Basicly in all your applications classes that get enhanced by Tapestry IOC. thats not right the @Inject annotation only works in components, pages and mixins 2008/8/21 Andy Pahne [EMAIL PROTECTED] Thanks a lot for your response, but the problem still remains :-((. I have insert this code

Re: [t5] Use messages from app.properties in java classes

2008-08-21 Thread Daniel Alonso Sanchez
Andy Pahne-3 wrote: Thanks a lot for your response, but the problem still remains :-((. I have insert this code - @Inject private ComponentResources resources; and - resources.getMessages().get(hibernateexception); but i

Re: [t5] Use messages from app.properties in java classes

2008-08-21 Thread Sven Homburg
look for that, that should helps you http://pastebin.com/f2a26b195 2008/8/21 Daniel Alonso Sanchez [EMAIL PROTECTED] Andy Pahne-3 wrote: Thanks a lot for your response, but the problem still remains :-((. I have insert this code - @Inject private

Re: [t5] Use messages from app.properties in java classes

2008-08-21 Thread Daniel Alonso Sanchez
Sven Homburg wrote: look for that, that should helps you http://pastebin.com/f2a26b195 - best regards Sven Thanks a lot again, Sven. Your help is very much aprecciated ;D. The Proxy in my lan is deniying me of accessing to that link, so i will check it when i arrive at home. --

Re: loom, a tiny eclipse-plugin for tapestry5

2008-08-21 Thread Christian Scheid
hey list, just thought i let you guys know that i released a new (beta) version of the loom plugin. See http://loom-t5.googlecode.com for release notes. cheers, christian On Tue, Jun 17, 2008 at 5:10 PM, Christian Scheid [EMAIL PROTECTED]wrote: hey dave, not a problem at all. I only used

Re: loom, a tiny eclipse-plugin for tapestry5

2008-08-21 Thread Tobias Wehrum
Hi Christian, after installing, I cannot switch from .java to .tml using Ctrl+Alt+X, other way works. - Tobias Christian Scheid schrieb: hey list, just thought i let you guys know that i released a new (beta) version of the loom plugin. See http://loom-t5.googlecode.com for release notes.

RE: Trying to Implement RedirectException in Tapestry 5

2008-08-21 Thread Ben Wong
Chris, Thanks for the interesting feedback. I agree that with whatever authentication system, you will need to have some sort of way to tell which pages need to be secured etc. However, what I was trying to say is using the dispatcher approach, I will have to do a lot more work to get there.

Re: [T5] Manipulating response after page is rendered

2008-08-21 Thread Fernando Padilla
Tapestry is not the problem here. If you write a filter (either j2ee filter or tapestry filter), it is your job to capture and buffer the output if you don't want it to go out to the client before you're ready. I'm sorry but that is just the way things are ( I can get into technical reasons

Re: loom, a tiny eclipse-plugin for tapestry5

2008-08-21 Thread Martijn Brinkers (List)
I have the same problem with the new Beta. I can switch from .tml to .java but not from .java to .tml. I have tried all kinds of Template fragment root variants but it does not work. Martijn On Thu, 2008-08-21 at 14:31 +0200, Tobias Wehrum wrote: Hi Christian, after installing, I cannot

Re: Pattern or strategy to sanitize input for cross-site scripting characters.

2008-08-21 Thread Eric Rogers
Hello Howard, Thanks for the information. Thanks, Eric On Tue, Aug 19, 2008 at 1:18 PM, Howard Lewis Ship [EMAIL PROTECTED] wrote: Tapestry mostly captures this on the output side; that is, when you output a string (using, say ${property} expansion), the output is filtered; the key HTML

Re: Pattern or strategy to sanitize input for cross-site scripting characters.

2008-08-21 Thread Eric Rogers
Hello Howard, Does Tapestry provide any way to do this on input, even if it is just for all form data that is submitted? Perhaps being able to wire an interceptor of some form in? Thanks, Eric On Thu, Aug 21, 2008 at 11:57 AM, Eric Rogers [EMAIL PROTECTED] wrote: Hello Howard, Thanks for

Re: Does T4 @TextField accept mandarin (big-5) ?

2008-08-21 Thread learner
i post my configuration web.xml --- filter filter-nameredirect/filter-name filter-classorg.apache.tapestry.RedirectFilter/filter-class /filter filter-mapping filter-nameredirect/filter-name url-pattern//url-pattern /filter-mapping servlet

Re: Pattern or strategy to sanitize input for cross-site scripting characters.

2008-08-21 Thread Martijn Brinkers (List)
It's not typical to html escape input. HTML is about presentation and most input is just input. In other words, you want to HTML escape just before presenting the input to the user but not store the input escaped (at least I think that's what most applications use). Tapestry does already HTML

Re: Pattern or strategy to sanitize input for cross-site scripting characters.

2008-08-21 Thread Eric Rogers
Thanks, greatly appreciated. Eric On Thu, Aug 21, 2008 at 12:27 PM, Martijn Brinkers (List) [EMAIL PROTECTED] wrote: It's not typical to html escape input. HTML is about presentation and most input is just input. In other words, you want to HTML escape just before presenting the input to

Re: t:errors in a zone

2008-08-21 Thread Markus Joschko
Thanks. Now I got the zone handling straight. That means at least I see something in the response. However it is not rendered. And despite mentioned in the response, the init method of the tapestry script is never called (I set a firebug breakpoint there). Is that a bug? See the response body

Question about null environmental object

2008-08-21 Thread Toby Hobson
I have a two components: TabSet and Tab. TabSet retrieves the user who is currently logged in (if the user has logged in) from acegi, does some processing and makes it available to nested components via the environmental service: void beginRender() { if (loggedUser == null) return; // process

Re: [T5.0.14] Problem with ANSI codification in .properties files

2008-08-21 Thread Marcelo Lotif
No one is having this kind of problem? I tested in other situations and this is still happening... I'll try to change my eclipse's default configuration, maybe will help for now... On Wed, Aug 20, 2008 at 9:42 AM, Marcelo Lotif [EMAIL PROTECTED] wrote: Hi all, I'm experiencing a little problem

Re: [T5.0.14] Problem with ANSI codification in .properties files

2008-08-21 Thread Martijn Brinkers (List)
So what you are saying is that when you save your property file as UTF-8 the 'special' characters are shown correctly but not when you save your propery file as a ANSI file? If so why don't you save it as UTF-8 and leave it this way? Or am I missing something? Martijn On Thu, 2008-08-21 at

Re: [T5.0.14] Problem with ANSI codification in .properties files

2008-08-21 Thread Filip S. Adamsen
Hi, Tapestry 5.0.14 changes the way .properties files are read so they are read in a way that works with UTF-8 encoded files, at least on Java 6. Now, my guess is that they were being read correctly before because Java read the .properties files using the default encoding, which would

Re: [T5.0.14] Problem with ANSI codification in .properties files

2008-08-21 Thread Marcelo Lotif
This is what I'm already doing :) I just thought strange because nobody noticed yet. I had to go through all my .properties files changing the encoding. But fortunately, as I see, it's just me. Thanks. On Thu, Aug 21, 2008 at 5:32 PM, Martijn Brinkers (List) [EMAIL PROTECTED] wrote: So what you

Testing pages

2008-08-21 Thread Alex Kotchnev
Is there a way to test a page without having to go through the xml that the page generates through PageTester ( http://tapestry.apache.org/tapestry5/guide/unit-testing-pages.html) ? Here's the situation : I want to write a couple of tests that test the proper validation in the submission of a

Re: [T5.0.14] Problem with ANSI codification in .properties files

2008-08-21 Thread Martijn Brinkers
Strict US-ASCII character set is afaik made up of characters = 127. Your special characters were therefore not pure ASCII. I think that in your case the machine your are coding on defaulted to a charset that could handle your special characters as you intended them to be. If you would have loaded

Re: [T5.0.14] Problem with ANSI codification in .properties files

2008-08-21 Thread Howard Lewis Ship
On Thu, Aug 21, 2008 at 1:50 PM, Filip S. Adamsen [EMAIL PROTECTED] wrote: Hi, Tapestry 5.0.14 changes the way .properties files are read so they are read in a way that works with UTF-8 encoded files, at least on Java 6. JDK 1.5 and 1.6. Now, my guess is that they were being read correctly

Unable to process form submission

2008-08-21 Thread Kevin Crenshaw
I have a page that contains a component that contains a form component. The page places a user object on the environment in its SetupRender phase that is used by the page's components. The User object is obtained using the userId that is passed in the page context. When I submit the form I

Re: loom, a tiny eclipse-plugin for tapestry5

2008-08-21 Thread Christian Scheid
Thanks to Martijn, the issue is resolved now. His fix is available in version 1.0.4 which is now available through the usual update-site http://digitalsoul.org/loom/update-site If you have problems updating to this version (like me here at work), uninstall the plugin and afterwards delete loom

Re: Tapestry5Chin aforum(中文 论坛欢迎 大家加入) and some words to Howard Lewis Ship

2008-08-21 Thread 孟凡振
sorry!!! here is the link: http://groups.google.com/group/tapestry5chinaforum welcome to join! -- View this message in context:

Re: Unable to process form submission

2008-08-21 Thread Kevin Crenshaw
Adam, Thanks for responding (again :-) ) . However, as you can see in my question, I'm not trying to use the environment during an event phase - sorry if I misspoke before. The user object is placed on the environment in the SetupRender phase. The problem is that after I submit the form I

Re: Unable to process form submission

2008-08-21 Thread Martijn Brinkers (List)
Why don't you store the user ID as an application state object (aso)? Martijn On Thu, 2008-08-21 at 22:07 -0400, Kevin Crenshaw wrote: Adam, Thanks for responding (again :-) ) . However, as you can see in my question, I'm not trying to use the environment during an event phase - sorry if

RE: Unable to process form submission

2008-08-21 Thread Adam Ayres
No, I understood what you are saying, when you put something on the environment in the page and then try to access it in a component, you are using the environment (via the Environmental annotation). What you are missing is that the forms event phases do not have access to the environment that is

pageValidate and PageEndRender cannot output foreign language

2008-08-21 Thread learner
Hi, here is my test result. please comment. is it a bug? public void pageEndRender(PageEvent event) { String abc=志志志; System.out.println(inside page end render+abc); //i get ??? on print out } public void pageValidate(PageEvent event) { String yoyo2=志;

About the ApplicationState??

2008-08-21 Thread Donyee
I tried to implement a ApplicationStatePersistenceStrategy using Memcached. but in my page Start.java: @ApplicationState private AppState appState; @ApplicationState private SessionAppState session; @Inject private Logger log; void onActivate() { log.info(cache