Re: CSS in Database

2010-10-27 Thread Inge Solvoll
Quick thought: You could copy the code for that from T5.1 RenderSupport, and recreate it as your own environmental? On Thu, Oct 28, 2010 at 4:34 AM, Mark wrote: > Ok I found that I can @Inject RenderSupport and call it like: > > @SetupRender >public void setupRender() { > renderSupport

Re: CSS in Database

2010-10-27 Thread Mark
Ok I found that I can @Inject RenderSupport and call it like: @SetupRender public void setupRender() { renderSupport.addStylesheetLink("CustomCSS", null); } This works, but RenderSupport has been deprecated and "replaced" by JavaScriptSupport. Unfortunately JavaScriptSupport only

Re: CSS in Database

2010-10-27 Thread Mark
Ok, I'll assume it is a bug (https://issues.apache.org/jira/browse/TAP5-1330 ) Is there anyway to use the @Import annotation to add a stylesheet that isn't a local asset--as in a page that is rendering as css instead of HTML. If there is a way to @Import a stylesheet that is on a remote server, it

Re: jQuery Integration for 5.2

2010-10-27 Thread iberck
Thank you for your time and your response more or less on what time we will have that javascript stacks ? Thanks in advance -- View this message in context: http://tapestry.1045711.n5.nabble.com/jQuery-Integration-for-5-2-tp2834002p3239781.html Sent from the Tapestry - User mailing list archi

Re: CSS in Database

2010-10-27 Thread Thiago H. de Paula Figueiredo
On Wed, 27 Oct 2010 19:32:29 -0200, Mark wrote: This is on 5.2.2-SNAPSHOT and on 5.2.1. Has it behaved differently in the past? I haven't tried any 5.2, unfortunately, but I have one T5.1.0.5 website (www.cristilenesalomao.com.br) doing exactly what you've done and the

Re: Live-Class reloading for rest services.

2010-10-27 Thread Howard Lewis Ship
Response.java: /** * Invoked to indicate that the response content is either already compressed, or is not compressable. * * @since 5.2.1 */ void disableCompression(); On Wed, Oct 27, 2010 at 2:31 AM, Moritz Gmelin wrote: > Thanks > > http://jira.codehaus.org/browse/

T5.1 How to prevent uniquifying client ID

2010-10-27 Thread Daniel Henze
Hi there, I have two actionlinks with different t:id, but still Tapestry sets a unique id at the end and therefore caters the actionlink useless: instead of I do get . It's worth mentioning that after refreshing the page I do get the desired result (non uniquified id) and therefore all wo

Re: Using T5 and T3 side by side

2010-10-27 Thread Andreas Bohnert
Thanks for getting into details, Robert! That helps a lot! Andreas Robert Zeigler wrote: I also had a reasonably large T3 application that I considered porting to T5. I wound up adding some new functionality via T5 and running them side-by-side without issues. Since T5 is a servlet filter

Re: CSS in Database

2010-10-27 Thread Mark
On Wed, Oct 27, 2010 at 4:05 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > > That seems strange, as any resource included by Tapestry (CSS and > JavaScript) is put before anything you add in your template inside . > > Hm. That does not seem to be happening: Layout.tml:

Re: Form submit conditionally opening new window

2010-10-27 Thread Rich M
Whoops, just a quick comment, the DateFields are the Tapestry Core components, not the ChenilleKit DateTimeFields, forgot to edit that after double checking.-Rich On 10/27/2010 04:59 PM, Rich M wrote: Ah okay. I'm trying to decide where is best to hook up some AJAX request to achieve this. The

Re: CSS in Database

2010-10-27 Thread Thiago H. de Paula Figueiredo
On Wed, 27 Oct 2010 18:36:54 -0200, Mark wrote: It seems to work, but it is rendering after the other stylesheets, so they are overriding it. Is there a way to tell it to render after the other stylesheets instead of before? That seems strange, as any resource included by Tapestry (CSS a

Re: Form submit conditionally opening new window

2010-10-27 Thread Rich M
Ah okay. I'm trying to decide where is best to hook up some AJAX request to achieve this. The fields I need to validate are two DateFields (I believe the ChenilleKit components). I'm finding it hard, however to find the proper Prototype DOM event to bind the listener to. I tried change, but th

Re: CSS in Database

2010-10-27 Thread Mark
Ok that seems to work in most browsers, but I'm pretty sure that isn't valid HTML. I tried Thiago's suggestion of creating a page that renders a TextStreamResponse. That works, but I can't find a way to import it using: @Import(stylesheet = {"context:layout/layout.css","CustomCSS"}) because it is

Re: CSS in Database

2010-10-27 Thread Michael Gentry
Hi Mark, Try moving: to be inside the body instead of the head and see if that helps. mrg On Wed, Oct 27, 2010 at 4:36 PM, Mark wrote: >> >> >>> 1) Use the OutputRaw to output the CSS content. >> 2) Create a page that returns a StreamResponse (in th

Re: CSS in Database

2010-10-27 Thread Mark
> > >> 1) Use the OutputRaw to output the CSS content. > 2) Create a page that returns a StreamResponse (in this case, you can use > TextStreamResponse) containing your CSS. > > Thanks Michael and Thiago. I'm trying the output raw method first like this: Re: jQuery Integration for 5.2
On Wed, 27 Oct 2010 17:30:16 -0200, iberck wrote: Here there are more reasons to create the base components with jquery 46% of the applications on the web are made in jquery http://trends.builtwith.com/javascript/JQuery It's not just a matter of replacing Prototype with jQuery. Most of the

Re: jQuery Integration for 5.2

Here there are more reasons to create the base components with jquery 46% of the applications on the web are made in jquery http://trends.builtwith.com/javascript/JQuery Regards -- View this message in context: http://tapestry.1045711.n5.nabble.com/jQuery-Integration-for-5-2-tp2834002p3239343

Re: CSS in Database

On Wed, 27 Oct 2010 16:51:32 -0200, Mark wrote: I'm looking for a way to make it easy for a designer to tweak some of the visual attributes of an application without giving them access to the filesystem. My thought was to let them put text into the database that will be pulled out as a CSS s

Re: CSS in Database

In your .tml: On Wed, Oct 27, 2010 at 2:51 PM, Mark wrote: > I'm looking for a way to make it easy for a designer to tweak some of the > visual attributes of an application without giving them access to the > filesystem.  My thought was to let th

CSS in Database

I'm looking for a way to make it easy for a designer to tweak some of the visual attributes of an application without giving them access to the filesystem. My thought was to let them put text into the database that will be pulled out as a CSS stylesheet so they can override anything they want. Ho

[5.1.0.5] - SSL, @Secure annotation, Jetty

Hi, so I need to get my application running happily in SSL and I'm encountering some issues. I am trying to figure out where exactly my problem lies. I run Jetty as the servlet container for my Tapestry application, and previously had it working nicely on port 8080 in HTTP. Now I need to b

RE: Tapestry 5.2 + Hibernate + Spring ..

Hello, You can take inspiration from this simple demo application : http://github.com/lguerin/tapestwitter This application is build on the following stack : - Tapestry 5.2.0 - Spring (IoC and Spring Security) - JPA (with Hibernate implementation) - Unitils for Unit tests - Selenium for Integrati

Re: Tapestry 5.2 - page pooling replacement

That's great news ... thanks for being a guinea pig on this. I suspect you'll see a bit more PermGen usage, the same amount of thrash in the eden space (mostly DOM nodes and temporary strings), but a lot less in the long-lived heap. On Wed, Oct 27, 2010 at 4:14 AM, Blower, Andy wrote: > First in

Tapestry 5.2 + Hibernate + Spring ..

Hi ! I am starting a new project based on Tapestry 5.2. Hibernate will be used as ORM. I would also like to use some Spring beans for mailing etc etc. Is there any guidelines for how to integrate these three. I.e. which versions of Spring / Hibernate to be used ... I would like to use annota

Re: Tapestry 5.2 - page pooling replacement

Only if you enable the pool again. It is deisabled by default. On Wed, Oct 27, 2010 at 1:14 PM, Blower, Andy wrote: > First indications show that the move away from page pooling has > dramatically decreased the memory required by our Tapestry app. Thank you > Howard. I've not been able to spend l

Tapestry 5.2 - page pooling replacement

First indications show that the move away from page pooling has dramatically decreased the memory required by our Tapestry app. Thank you Howard. I've not been able to spend long profiling the differences unfortunately, so I have no concrete numbers. I do have one question however, do the tapes

Re: Live-Class reloading for rest services.

Thanks http://jira.codehaus.org/browse/TYNAMO-64 Regards Moritz Am 27.10.2010 um 10:57 schrieb Alejandro Scandroli: > Hi Moritz > > If you have GZIP disabled > (configuration.add(SymbolConstants.GZIP_COMPRESSION_ENABLED, > "false");) you can definitively use it as a RequestFilter. It will > w

Re: Live-Class reloading for rest services.

Hi Moritz If you have GZIP disabled (configuration.add(SymbolConstants.GZIP_COMPRESSION_ENABLED, "false");) you can definitively use it as a RequestFilter. It will work fine and it will reload your classes. If you file a JIRA issue I can provide you with a patch to try. Alejandro. On Wed, Oct 27

Re: Live-Class reloading for rest services.

I don't know whether this is a bug or not. I've seen that you explicitly moved your RequestFilter before GZIP. Probably for a reason. I had no problem changeing the filter to be a RequestFilter (instead of a ServletRequestFilter) and push it further down the request queue. GZIP is disabled in o