Re: Can't access HTML files in classpath resouce

2009-05-05 Thread Peter Stavrinides
Are you using Tomcat behind Apache? If yes, this can be the source of your problem, as it consider theses URLs as static ones, when actually they're handled by Tapestry. I am using Apache in front of Tomcat, running on Linux, and I have never encountered this. Peter - Original Message

Re: Problem using BeanEditForm with a POJO

2009-05-05 Thread Otho
Hi, 1) Turn production mode to false in AppModule.java. You get much better exception reporting then. The exception you mentioned is caused by: org.apache.tapestry5.internal.services.TransformationExceptionUnable to add new method public final void setFrom(java.lang.String) as it already

t5: embed a variable in a javascript in a tml?

2009-05-05 Thread Angelo Chen
Hi, I'd like to get myid from the page, but following code will not work, the line: var google_conversion_id = ${myid} will be rendered as it is, it is not as what I expected var google_conversion_id = 12345678 any idea how to embed a variable in a javascript in the template? thanks Anelo

Genreal question on remote authentication with tapestry web applications

2009-05-05 Thread Peter Stavrinides
Hi everyone, Basically my question is a very broad one about integrating Tapestry with remote authentication and authorization protocols, if this question is a little off topic I apologize in advance... I have an upcoming project to think about, and thought I should get some expert opinions

Re: t5: embed a variable in a javascript in a tml?

2009-05-05 Thread Kristian Marinkovic
never did this myself, but i think this should work somehow if there is a myid property... instead... you could use the RenderSupport service to render your script programmatically g, kris Angelo Chen angelochen...@yahoo.com.hk 05.05.2009 09:22 Bitte antworten an Tapestry users

Re: [T5] How to listen/trigger event in componentA from component B ?

2009-05-05 Thread Peter Stavrinides
In my understanding, there should be no way. Perhaps its not recommended, but if you have the ComponentResources for that component then you should be able to trigger the event you want. Look at this service: @Inject private ComponentSource componentSource_; It allows you to look up any

t5:odd response with gzip compress

2009-05-05 Thread luna_guo
I have a page includes a lot of javascript.And i use Tapestry 5.1.0.4,set compress and combine javascript on.It works well almost time.But i have received odd response serveral times when i use ie.It's not a character encoding problem,because the is even no html in the response.Is this a bug

Re: T5 Override/Replace DefaultHibernateConfigurer

2009-05-05 Thread Kristian Marinkovic
hi Kalle, since 5.0.18 (or before, :)) the DefaultHibernateConfigurer is an own service, therefore it is easy to override it with an alias contribution. if you don't want to override the service you can set the HibernateConstants. DEFAULT_CONFIGURATION symbol to false to prevent the service

t5:tomcat url enconding for non english character

2009-05-05 Thread luna_guo
In jetty it works well to send non english parameter with ajax get method,but in tomcat i have to switch to ajax post.If i need to use get,what should i do? -- View this message in context: http://www.nabble.com/t5%3Atomcat-url-enconding-for-non-english-character-tp23384139p23384139.html Sent

Re: Can't access HTML files in classpath resouce

2009-05-05 Thread Felix Gonschorek
i encounterd a similar problem when working with both win and linux machines. .tml files and their corresponding java classes had a different upper/lower case. e.g. page.tml and Page.java. under windows this works, under linux not. felix Pisit schrieb: I'm using Tapestry 5.0.18+Tomcat

Re: t5: embed a variable in a javascript in a tml?

2009-05-05 Thread Felix Gonschorek
it does not work becaus the variable is in !-- xxx -- html comments - tapestry does not evaluate markup in html/xml comments. felix Kristian Marinkovic schrieb: never did this myself, but i think this should work somehow if there is a myid property... instead... you could use the

Re: t5:tomcat url enconding for non english character

2009-05-05 Thread Ulrich Stärk
Am 05.05.2009 11:41 schrieb luna_guo: In jetty it works well to send non english parameter with ajax get method,but in tomcat i have to switch to ajax post.If i need to use get,what should i do? Use a UTF-8 enabled http connector.

Re: Can't access HTML files in classpath resouce

2009-05-05 Thread Kristian Marinkovic
this is because the windows filesystem is case insensitive! unix is case sensitive therefore your templates must have the same case as the corresponding page g, kris Felix Gonschorek fe...@gg-media.biz 05.05.2009 12:02 Bitte antworten an Tapestry users users@tapestry.apache.org An

Re: Can't access HTML files in classpath resouce

2009-05-05 Thread Kristian Marinkovic
;) Felix Gonschorek fe...@gg-media.biz 05.05.2009 14:24 Bitte antworten an Tapestry users users@tapestry.apache.org An Tapestry users users@tapestry.apache.org Kopie Thema Re: Can't access HTML files in classpath resouce hi kris, thank you for your advice - with my previous mail i

Re: t5: embed a variable in a javascript in a tml?

2009-05-05 Thread Ville Virtanen
The ugly way out of this is to output the comments using t:outputraw value=commentStart and in java public String getCommentStart(){ return !--; } and the same to the comment ending. This also applies to different [CDATA etc. things. If someone knows more elegant way please share...

Re: t5: embed a variable in a javascript in a tml?

2009-05-05 Thread Ville Virtanen
Ofcourse one could write simple component that encapsulates the JS and outputs required script tags and comment etc. things... - Ville Ville Virtanen wrote: The ugly way out of this is to output the comments using t:outputraw value=commentStart and in java public String

Re: t5: embed a variable in a javascript in a tml?

2009-05-05 Thread roubaozi
Why not just do: script language=JavaScript type=text/javascript var google_conversion_id = ${myid}; !-- var google_conversion_language = en_US; var google_conversion_format = 3; var google_conversion_color = ff //-- /script Angelo Chen wrote: Hi, I'd like to get myid from the page,

Re: t5: embed a variable in a javascript in a tml?

2009-05-05 Thread Peter Stavrinides
Why not just do: script language=JavaScript type=text/javascript var google_conversion_id = ${myid}; Are you being serious? The html comment !-- is used supposedly to prevent scripts being read by browsers too old to understand them, though there are no browsers that old in operation any more.

Re: t5: embed a variable in a javascript in a tml?

2009-05-05 Thread Peter Stavrinides
See this old thread: http://www.nabble.com/RenderSupport-addScript-old-browsers-td23039476.html - Original Message - From: Peter Stavrinides p.stavrini...@albourne.com To: Tapestry users users@tapestry.apache.org Sent: Tuesday, 5 May, 2009 16:36:14 GMT +02:00 Athens, Beirut, Bucharest,

RE: T5: What is NOT beautiful about Tapestry?

2009-05-05 Thread Newham, Cameron
3) Documentation - Good solid reference examples of how to do do simple apps, explained in detail. Most developers want a framework to be like lego building blocks. I do A, B, C and D and I get E. I assemble a dozen different pieces and I have my app. Really how complicated are most web apps? They

Re: What is beautiful about Tapestry?

2009-05-05 Thread Massimo Lusetti
On Fri, May 1, 2009 at 4:57 AM, Howard Lewis Ship hls...@gmail.com wrote: I think that are some of the main ones. That's very very nice Howard! -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail:

Loop in javascript?

2009-05-05 Thread Christine
Hi, I'd like to iterate an ArrayList() in my java file from within javascript in the tpl file. It seems that Loop only works as part of an html tag. Is there a way I can have javascript loop over an ArrayList() ? dagdag Christine -- dagdag is just a two-character rotation of byebye.

Re: Loop in javascript?

2009-05-05 Thread Thiago H. de Paula Figueiredo
One way of doing it: in your page or component class, @Inject RenderSupport and generate Javascript through RenderSupport.addScript(). -- Thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional

Re: T5 Override/Replace DefaultHibernateConfigurer

2009-05-05 Thread Kalle Korhonen
Yes, I know. The point I was making - why should it be needed to override the default service if you just want to load from some other configuration file? Rather than a boolean symbol value you could pass the default service a file name, right? Kalle On Tue, May 5, 2009 at 2:25 AM, Kristian

Re: Can't access HTML files in classpath resouce

2009-05-05 Thread Pisit
Pisit wrote: I'm using Tapestry 5.0.18+Tomcat 6.0+FCKEditor (from T5Components) For Windows server, it's work perfectly but for Linux has encounter HTTP 404 error i've found that it unable to access /assets/org/apache/tapestry/commons/jslibs/scripts/fckeditor/editor/fckeditor.html and

Re: Can't access HTML files in classpath resouce

2009-05-05 Thread Thiago H. de Paula Figueiredo
Em Tue, 05 May 2009 14:08:07 -0300, Pisit pi...@megadict.com escreveu: it may be relate to tomcat security configuration issue? or UnprotectedAssets topic? I still think it is an Apache configuration issue. Try to configure it to allow /asset/* to be handled by Tomcat or just use Tomcat

t5: strategy for caching html output of component

2009-05-05 Thread Britske
currently I'm working on a page with a lot of components. part of these components are lists with contents related to the visitor viewing the page (i.e: last viewed products, product in wishlist) but most of these components display lists which are related to context of the page only (and are

automatic zone update

2009-05-05 Thread Michael Dukaczewski
I'm trying to create a zone which automatically updates itself after some time. Any suggestions? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

[T5.1] How do you advise ClassNameLocator?

2009-05-05 Thread Steve Eynon
How do I advise the ClassNameLocator service? If I add the following advice method to my AppModule ... @Match(*) public static void adviseEverything(MethodAdviceReceiver receiver) { System.out.println(receiver.getInterface()); } Only the following interfaces are advised ... interface

Re: [T5.1] How do you advise ClassNameLocator?

2009-05-05 Thread Thiago H. de Paula Figueiredo
Em Tue, 05 May 2009 19:23:14 -0300, Steve Eynon steve.ey...@alienfactory.co.uk escreveu: How do I advise the ClassNameLocator service? Have you tried decoration instead of method advising? The resulting code would be very similar. -- Thiago H. de Paula Figueiredo Independent Java

Re: t5: strategy for caching html output of component

2009-05-05 Thread Britske
ok, tried a couple of things, but none of them work: 1. in the container component keep track of the element that is created by the container component. in the afterRender fetch the html as element.toString() and put to cache. in the beginrender method check the cache and if found -- write

Re: automatic zone update

2009-05-05 Thread Julian Wood
I would check out Tapestry.activateZone (https://issues.apache.org/jira/browse/TAP5-569 ) and javascript's setInterval method (or prototype's PeriodicalExector). J On May 5, 2009, at 1:54 PM, Michael Dukaczewski wrote: I'm trying to create a zone which automatically updates itself after

Re: t5: strategy for caching html output of component

2009-05-05 Thread Britske
ok solved (don't know why I didn't see this earlier ;-) simply tested in template if cached html existed. if false -- render component if true -- use OutputRaw to output cached html of component. cheers, Britske Britske wrote: currently I'm working on a page with a lot of components.

Re: t5: strategy for caching html output of component

2009-05-05 Thread Andreas Andreou
As a note, one sideeffect i can think of would occur if the first user (when cache doesn't yet exist) has cookies disabled (and thus url-rewriting takes place)... in that case, the cache would be filled in with urls containing his specific JSESSIONID, e.t.c. On Wed, May 6, 2009 at 2:16 AM,

Re: [T5.1] How do you advise ClassNameLocator?

2009-05-05 Thread Steve Eynon
Thanks. The following gives me the same list of interfaces as advising: @Match(*) public static T T decorateEverything(ClassT serviceInterface, T delegate, String serviceId) { System.out.println(serviceInterface.getName()); return delegate; } ClassNameLocator not being one of

Re: [T5.1] How do you advise ClassNameLocator?

2009-05-05 Thread Thiago H. de Paula Figueiredo
Em Wed, 06 May 2009 00:33:34 -0300, Steve Eynon steve.ey...@alienfactory.co.uk escreveu: The whole TapestryIOCModule is annotated with @PreventServiceDecoration so that explains why I can't override it. Might it be an idea to just annotate individual dangerous services rather than a blanket