Re: Minimum Heap Size to run basic Tapestry 5 archetype example smoothly

2013-05-23 Thread Dmitry Gusev
Hi, This happened to me several times. You will get 404 errors in OpenShift if there were any errors during application start. You should check your logs for errors one more time. On Fri, May 24, 2013 at 1:35 AM, Jon Williams wrote: > Hi Dmitry, > > I've been pretty happy running my Tapestry ap

Re: Minimum Heap Size to run basic Tapestry 5 archetype example smoothly

2013-05-23 Thread Jon Williams
Hi Dmitry, I've been pretty happy running my Tapestry apps on GAE until this morning when I realized GAE does not support Threads very well (or not in a way that is to my liking anyhow). So... I got set up at OpenShift today and I've run in to a spot of trouble. Judging by the logs my app is happi

Re: Tapestry Jquery Bind

2013-05-23 Thread Boris Horvat
This seems to have fixed the problem. Thanks On Thu, May 23, 2013 at 10:01 AM, Emmanuel DEMEY wrote: > Hi, > you can use the last snapshot I have deployed. 3.3.7-SNAPSHOT I think. > > Manu > > > 2013/5/22 Boris Horvat > > > Hi Manu, > > > > Is this pushed somewhere so I can just use maven or sh

Re: Why is AssetPathConverter not called for javascript stacks

2013-05-23 Thread Bård Magnus Kvalheim
> I did try to implement my own proposed solution with Advice > > That's a lot of messy byte code manipulation for a single method interface. > Yes, I have to agree. Delegate is probably a better choice in this case. Cleaner and also typesafe. Tried your suggestion - and it works just as well as

Re: Why is AssetPathConverter not called for javascript stacks

2013-05-23 Thread Lance Java
> I would then get 'cdn' urls for the different scripts that make up the stack, and not the stack url itself Oops, I think you're right > I did try to implement my own proposed solution with Advice That's a lot of messy byte code manipulation for a single method interface. I'm a bit old fashio

Re: Tapestry template encoding and GAE

2013-05-23 Thread Andreas Fink
wow, i didn't know that! i had problems with encoding of properties in recent t5 projects but maybe maven got in the way or this service did not get used. cheers, andi. On May 23, 2013, at 10:26 , Lance Java wrote: > You underestimate tapestry :) > > Tapestry's PropertiesFileParserImpl assumes

Publisher API -- simple publish/subscribe implementation for Tapestry5 pages and components

2013-05-23 Thread Dmitry Gusev
FYI: https://github.com/anjlab/anjlab-tapestry-commons/wiki/Publisher-API -- Dmitry Gusev AnjLab Team http://anjlab.com

Re: Why is AssetPathConverter not called for javascript stacks

2013-05-23 Thread Bård Magnus Kvalheim
Hi. On Thu, May 23, 2013 at 11:31 AM, Lance Java wrote: > I think the easiest way would be to decorate the JavaScriptStackSource > service. Wrap the default implementation with a version which decorates > getStack(String name) to return a custom JavaScriptStack implementation. > > The custom JavaS

Re: Sort functionality in custom Grid headers

2013-05-23 Thread Lance Java
That's a bit more difficult. By providing a header block, you are overriding the default header which contains the sorting logic. I see 2 options: 1. Include the sort link / image in your custom header block (see GridColumns component for inspiration) 2. Decorate the default header with a mixin.

Re: Sort functionality in custom Grid headers

2013-05-23 Thread Ollie Glass
Sorry, should have added that when I do this, the sorting is lost. Removing the text from the header, like this, just results in an empty title (although the tooltip component is shown). I'd like the component, title and sorting to all appear. Thanks, Ollie On 23 May 2013, at

Re: validate regexp=^[A-Za-z0-9 ']+$ in template problem

2013-05-23 Thread Lance Java
Ah, so use ' in place of '

Re: validate regexp=^[A-Za-z0-9 ']+$ in template problem

2013-05-23 Thread John
I believe it's the apostrophe cos its a valid deliminator in HTML, thanks for your suggestion (I bet it works!) - Original Message - From: Lance Java To: Tapestry users Sent: Thursday, May 23, 2013 2:04 PM Subject: Re: validate regexp=^[A-Za-z0-9 ']+$ in template problem Y

Re: Sort functionality in custom Grid headers

2013-05-23 Thread Ollie Glass
Thank you, that works. Is it possible to put a custom component into the header too, like this: Custom header Best, Ollie On 23 May 2013, at 11:31, Lance Java wrote: > Put your header labels in a messages prop file with key propertyName-label > > http://tapestry.apache.org/loc

Re: validate regexp=^[A-Za-z0-9 ']+$ in template problem

2013-05-23 Thread Lance Java
Your regex looks fine to me, perhaps tapestry is having troubles parsing the string to a list of validators. I wonder if the space character is the cause? Tapestry allows you to specify regexes in prop files. Try this: template: prop file: firstname-regexp=^[A-Za-z0-9 ']+$ On 23 May 2013 13:50,

Re: JQuery tab widget - page in tab - setupRender not being called

2013-05-23 Thread Lance Java
> call the other pages setupRender() methods directly. What you are doing sounds really dodgy to me and against the tapestry principles. Why aren't you using a component?

Re: Image can't be seen inside a zone

2013-05-23 Thread Thiago H de Paula Figueiredo
On Thu, 23 May 2013 06:17:35 -0300, Nomen Nomanum wrote: I have images listing wrapped inside a zone, however I am unable to see them. What may cause such behavior? From the code itself, everything is OK, since the same code I have applied already on other spot, and it works great. Hav

Re: JQuery tab widget - page in tab - setupRender not being called

2013-05-23 Thread Thiago H de Paula Figueiredo
On Thu, 23 May 2013 00:03:02 -0300, Ken in Nashua wrote: Thanks Thiago... yes I am rendering Home.tml But it is rigged up with a two level nesting of tabs housing at least 6+ pages each. What do I do ? You're probably @InjectPage'ing the other pages already, so, in the Home setupRen

Re: Tawus AjaxUpload can't be built.

2013-05-23 Thread Dmitry Gusev
Try something like this: compile ('com.googlecode.tawus:tapz-core:0.2-SNAPSHOT') { exclude group: "org.apache.tapestry" exclude group: "org.apache.tapestry5" } On Thu, May 23, 2013 at 3:24 PM, Lance Java wrote: > Looks like the library is referencing a nonexiste

Re: Tawus AjaxUpload can't be built.

2013-05-23 Thread Lance Java
Looks like the library is referencing a nonexistent version of tapestry. I'm no Gradle guru but in maven, this can be resolved by specifying a different version of the tapestry dependencies in your pom and the "nearest resolution wins" strategy comes into play. If the equivalent doesn't work in Gr

Tawus AjaxUpload can't be built.

2013-05-23 Thread Nomen Nomanum
Hi! I want to implement in my app mr. Siddiqi AjaxUpload library, however I can't do so cause I am constantly getting this error: Dynamic properties are deprecated: http://gradle.org/docs/current/dsl/org.gradle.api.plugins.ExtraPropertiesExtension.html Deprecated dynamic property: "tapestryVersi

Re: Sort functionality in custom Grid headers

2013-05-23 Thread Lance Java
Put your header labels in a messages prop file with key propertyName-label http://tapestry.apache.org/localization.html

Sort functionality in custom Grid headers

2013-05-23 Thread Ollie Glass
Hello, I need to customise the header text on a Tapestry Grid column. This code does just that, but it removes the sort functionality: Custom header How can I restore the sort functionality to this custom header? Thanks, Ollie Ollie Glass peerindex.com +44 7776 307 432 @ollieglass

Re: dwr java chat demo in t5

2013-05-23 Thread Lance Java
The supported browsers section on the atmosphere page can be ignored as this refers to atmosphere.js which is not used by the cometd integration. Only the supported servers section is relevant. Best to check the cometd docs for supported browsers at www.cometd.org

Re: Why is AssetPathConverter not called for javascript stacks

2013-05-23 Thread Lance Java
I think the easiest way would be to decorate the JavaScriptStackSource service. Wrap the default implementation with a version which decorates getStack(String name) to return a custom JavaScriptStack implementation. The custom JavaScriptStack will provide wrappers for: List getJavaScriptLibraries(

Image can't be seen inside a zone

2013-05-23 Thread Nomen Nomanum
I have images listing wrapped inside a zone, however I am unable to see them. What may cause such behavior? From the code itself, everything is OK, since the same code I have applied already on other spot, and it works great.

Re: Tapestry template encoding and GAE

2013-05-23 Thread Lance Java
You underestimate tapestry :) Tapestry's PropertiesFileParserImpl assumes UTF-8 properties files and performs a native2ascii transformation on the fly http://tapestry.apache.org/current/apidocs/src-html/org/apache/tapestry5/internal/services/messages/PropertiesFileParserImpl.html#line.79

Re: Why is AssetPathConverter not called for javascript stacks

2013-05-23 Thread Bård Magnus Kvalheim
Hi guys. Sorry for keep asking for this, but I've still got no good solution for it. Would like to serve stack javascript assets from cdn. I think I'll try to patch tapestry internals, but would like to know if you have pointers to where the best place would be. I'm looking at JavaScriptStackPat

Re: Tapestry Jquery Bind

2013-05-23 Thread Emmanuel DEMEY
Hi, you can use the last snapshot I have deployed. 3.3.7-SNAPSHOT I think. Manu 2013/5/22 Boris Horvat > Hi Manu, > > Is this pushed somewhere so I can just use maven or should I download the > code and build it? > > Cheers > > > On Wed, May 22, 2013 at 9:47 AM, Emmanuel DEMEY >wrote: > > > b

Re: dwr java chat demo in t5

2013-05-23 Thread Lance Java
tapestry-cometd is built using the cometd integration in atmosphere. Atmosphere supports a variety of push mechanisms including WebSockets, Server Side Events (SSE), Long-Polling, HTTP Streaming (Forever frame) and JSONP. Out of the box, tapestry-cometd is configured to use org.cometd.websocket.se

Re: Tapestry template encoding and GAE

2013-05-23 Thread Andreas Fink
Hi Lance. Unfortunately this is not the case. Property files are treated ISO 8859-1 while reading/writing. If you want to have special chars, you have to run the file through native2ascii first. http://docs.oracle.com/javase/6/docs/api/java/util/Properties.html On May 22, 2013, at 9:49 , Lance