Re: t5 How to use renderInformals together with t:body

2009-03-13 Thread ningdh
Hi, I don't think ComponentResources.renderInformals would affect . In my project I can use them together: In beginRender to renderInformals and put in template. Thanks, DH - Original Message - From: "luna_guo" To: Sent: Saturday, March 14, 2009 9:31 AM Subject: t5 How to use render

Re: [T5.1] generator meta screws up xml response

2009-03-13 Thread Joost Schouten (mailing lists)
I see your point. Maybe you should check if the root element is or not. If not, don't add the and . If you agree, I could build a patch for this. Cheers, Joost On Fri, Mar 13, 2009 at 9:44 AM, Howard Lewis Ship wrote: > How would you distinguish between an XML response and an XHTML response? >

t5 How to use renderInformals together with t:body

2009-03-13 Thread luna_guo
In the template i need .It doesn't work when i use ComponentResources.renderInformals.Is there any way to render body in component class ? thanks in advance luna -- View this message in context: http://www.nabble.com/t5--How-to-use-renderInformals-together-with-t%3Abody-tp22508231p22508231.ht

Re: T5 ConcurrentBarrier / Deadlock

2009-03-13 Thread Alex Kotchnev
Jens, once again, I'm not the right person to respond to the question of whether it's possible to move the reloading to a different thread if changes exist - probably a queston for one of the core devs. Although, if you say that the root of the issue is a bug in the 64 bit JVM (that may be fixed

Re: Template in Overlay WAR

2009-03-13 Thread Geoffrey Wiseman
On Fri, Mar 13, 2009 at 5:43 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Fri, 13 Mar 2009 18:13:03 -0300, Geoffrey Wiseman < > geoffrey.wise...@gmail.com> escreveu: > > I've got a template (.tml) in a WAR overlay coming from another project >> > > Are you templates in the

Re: Template in Overlay WAR

2009-03-13 Thread Thiago H. de Paula Figueiredo
Em Fri, 13 Mar 2009 18:13:03 -0300, Geoffrey Wiseman escreveu: I've got a template (.tml) in a WAR overlay coming from another project Are you templates in the classpath or under the webapp root? Putting them in the classpath saves a lot of trouble and makes you have a single place to p

Re: jetty and intellij

2009-03-13 Thread Luther Baker
Hey Howard, > I know I must be missing a setting in IntelliJ - thoughts? Who's complaining? My original post asked for thoughts ... The majority of my second post was was in brackets. Don't take that too too seriously - your response to my original question - with another question was essential

Template in Overlay WAR

2009-03-13 Thread Geoffrey Wiseman
I've got a template (.tml) in a WAR overlay coming from another project -- (generated HTML from a Flex project). In the final WAR, it'll be mixed in to the same folder as everything else, but in development mode, the template is being loaded by Jetty from a dependency WAR. This seems to piss off

Re: jetty and intellij

2009-03-13 Thread Howard Lewis Ship
Ok, then, why are you then complaining on the Tapestry mailing list about your Maven stuff not working correctly? I don't mean to be insulting ... I'm just saying that the myth of Maven seems to far outdistance the reality. It's always just one more little tweak, one more refactoring, one more up

Re: T5: How to set generated component id

2009-03-13 Thread Thiago H. de Paula Figueiredo
Em Fri, 13 Mar 2009 16:59:36 -0300, Peter Kanze escreveu: Hello, Hi! I want to add some blocks with a generated id. like this: Why exactly do you want blocks? Your example doesn't give any hints. Couldn't you just use s instead? How can I give my block an id based on the current th

T5: How to set generated component id

2009-03-13 Thread Peter Kanze
Hello, I want to add some blocks with a generated id. like this: But I get the following error message: Block id 'image${thumbIndex}' is not valid; block ids must be valid Java identifiers: start with a letter, and consist of letters, numbers and underscores. How can

Re: jetty and intellij

2009-03-13 Thread Luther Baker
Thanks Richard. That helps and I'll take a look ... One build process. Cross platform. IDE agnostic. That is our motto. Our continuous integration / build process is IDE agnostic. Maven builds, runs and tests the app on Unix servers, windows boxes and Macs. Additionally, NetBeans has native supp

Re: T5: How to load image Asset from filesystem?

2009-03-13 Thread Daniel Jones
Thanks for pointing that out Luther. I copied it from a project using an older version of tapestry. luther.baker wrote: > > Great example - similar to an example on the Wiki ... > > Note that 'createActionLink' was deprecated ... > > http://tapestry.apache.org/tapestry5/apidocs/org/apache/ta

Re: jetty and intellij

2009-03-13 Thread Richard Clark
P.S. http://wiki.apache.org/tapestry/Tapestry5_Run_Jetty_From_IDEA (5 minutes and 2 page loads later) - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: jetty and intellij

2009-03-13 Thread Richard Clark
On Fri, Mar 13, 2009 at 10:43 AM, Howard Lewis Ship wrote: > Why do people use jetty:run in IDEA when there's a very good IntelliJ > plugin that runs Jetty perfectly for Tapestry applications? Simplicity, I suspect. (There are setup instructions for the Jetty plugin on the wiki, however.) BTW, d

Re: [T5.1] generator meta screws up xml response

2009-03-13 Thread Howard Lewis Ship
How would you distinguish between an XML response and an XHTML response? On Thu, Mar 12, 2009 at 8:49 PM, Joost Schouten (mailing lists) wrote: > Hi, > > I have Tapestry generate an XML igoogle gadget file and have set the > @Meta("tapestry.response-content-type=text/xml") Recently however my > x

Re: jetty and intellij

2009-03-13 Thread Howard Lewis Ship
Why do people use jetty:run in IDEA when there's a very good IntelliJ plugin that runs Jetty perfectly for Tapestry applications? On Fri, Mar 13, 2009 at 8:45 AM, Luther Baker wrote: > I just fired up a new download of IntelliJ 8.1. Haven't used it much - so > pulled an existing Maven/Tapestry pr

jetty and intellij

2009-03-13 Thread Luther Baker
I just fired up a new download of IntelliJ 8.1. Haven't used it much - so pulled an existing Maven/Tapestry project and created a "configuration" for jetty:run. That works great. Through the settings, I also associated *.tml files with an html filetype. Now, if I start the app all is well - but i

Re: [t5.0.18] Is it possible to use a filter name other than "app"?

2009-03-13 Thread Howard Lewis Ship
On Thu, Mar 12, 2009 at 7:51 PM, Thiago H. de Paula Figueiredo wrote: > Em Thu, 12 Mar 2009 23:46:13 -0300, Jiang Hua > escreveu: > >> It seems that the module builder classes are ignored (non method of these >> methods are executed), when the web app is started, if a filter name >> different fro

Re: [t5.0.18] Is it possible to use a filter name other than "app"?

2009-03-13 Thread Thiago H. de Paula Figueiredo
On Fri, Mar 13, 2009 at 1:41 AM, Jiang Hua wrote: > Thank you, Thiago. And what if there are spaces in the filter name? Why would you have spaces in the filter name? Maybe it's not even correct according to the servlet spec.s > Where can > I find a full document about all the tapestry naming co

Re: t5: multiple implementation of a service

2009-03-13 Thread Thiago H. de Paula Figueiredo
Read http://tapestry.apache.org/tapestry5/tapestry-ioc/service.html from the "Service Ids" section to the end. -- Thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...

t5: multiple implementation of a service

2009-03-13 Thread Angelo Chen
Hi, I have a Service with ServiceImp, it works, now I have a ServiceImp2 that implents Service as well, as I understand, I can't register ServiceImp2 in the AppModule, but I'd like to use ServiceImp2 in a specific page, is this possible? Thanks -- View this message in context: http://www.nabb

Re: [t5.0.18] Is it possible to nested normal jsp/html content into one layout component region?

2009-03-13 Thread Jonathan O'Connor
Zenberg, I added Tap5 pages to an existing struts 1 application. The trick is to reimplement a login page (I presume you have a login page) as a T5 page, and then you can initialize the JSP session variables you need for working together. You will also have to be careful generating links from

Re: T5.1 + JSONArray

2009-03-13 Thread Peter Kanze
Thank you Patrick, I use Firefox 3 on Windows and had the same problem as described in the jira issue TAP5-469. The workaround described there (Adding the code below to my appmodule) solved the problem public static void contributeResponseCompressionAnalyzer(Configuration configuration) {

Re: T5.1 + JSONArray

2009-03-13 Thread Patrick Moriarty
I've also seen this behaviour and ended up turning off GZip compression for "application/json" mime type. See https://issues.apache.org/jira/browse/TAP5-469. Patrick 2009/3/12 Howard Lewis Ship > It's possible that XmlHttpRequest may not handle GZIPed responses > correctly; I'm looking into it