Re: Passing a URL in ajax request to onEvent handler

2011-01-04 Thread Taha Hafeez
Hi Richard There are two ways of doing it... 1. after you have applied encodeURIComponent() replace '%' by '$00' (ensure that the converted number is 4 digit) 2. Use ?name=value instead of '/' and use request.getParameter() or @RequestParameter regards Taha On Tue, Jan 4, 2011 at 11:26 PM, Ric

Re: Tapestry 5 and W3C HTML Validation

2011-01-04 Thread Angelo C.
Something related: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> InteliiJ's IDE will flag t:remove as 'can not resolve symbol t:remove', but not t:pagelink, of course this does not

Re: Tapestry 5 and W3C HTML Validation

2011-01-04 Thread Rich M
I see some of your points. The W3C one is supposed to be an XHTML validator.. I've run both XHTML 1.0 Strict and XHTML 1.0 Transitional, but I think you're right in saying it doesn't pick up the Tapestry XML namespace. I am, however, validating the final HTML output. I point the url to the pa

Re: MarkupWriter element and IE8

2011-01-04 Thread Thiago H. de Paula Figueiredo
On Tue, 04 Jan 2011 19:44:34 -0200, Rich M wrote: Hi, Hi! The issue here being that in IE8 the ' characters got written out as &' This isn't a problem with Tapestry. IE doesn't handle HTML entities as it should. In addition, use JavaScript event observers instead of adding them as on

MarkupWriter element and IE8

2011-01-04 Thread Rich M
Hi, I noticed strange behavior with Internet Explorer 8 and some MarkupWriter output into HTML using the element method. I have the following in my page class: writer.element("a","href",formEvent,"id","submitPrefs","onclick", "javascript:setupSubmit(this,'"+(overridePar

Re: [T5.2] How to add JS-Stacks to components?

2011-01-04 Thread Christian Riedel
Hum... did that already for the general js-stuff: https://github.com/criedel/tapestry5-jquery/blob/master/src/main/java/org/got5/tapestry5/jquery/services/javascript/JQueryJavaScriptStack.java So that's the only way? How about an improvement for Tapestry 5.3 that allows to add resources as neede

Re: [T5.2] How to add JS-Stacks to components?

2011-01-04 Thread Howard Lewis Ship
You could just replace the entire "core" JavaScriptStack with your own set, following the default implementation's rules about what comes from where, but add in the jQuery stuff as well as any monkey-patching of content inside tapestry.js. On Tue, Jan 4, 2011 at 7:29 AM, Christian Riedel wrote:

Arrays in a @RequestParameter

2011-01-04 Thread raulmt
Hi, I've been trying to receive an array from client side JavaScript (specifcally a sortable serialization, like the one in Scriptaculous) with the @RequestParameter annotation, but apparently it cannot handle arrays yet? I can retrieve these params with String positions = request.getParameter

Re: Passing a URL in ajax request to onEvent handler

2011-01-04 Thread Richard Hill
Ah, apologies - I thought the threading was based on the subject line. R. On Tue, 2011-01-04 at 15:52 -0200, Thiago H. de Paula Figueiredo wrote: > Hi! > > Please post new discussions as new messages instead of replying to > existing ones. Every threaded visualization of the mailing list wi

Re: Passing a URL in ajax request to onEvent handler

2011-01-04 Thread Thiago H. de Paula Figueiredo
Hi! Please post new discussions as new messages instead of replying to existing ones. Every threaded visualization of the mailing list will show your message in the wrong place. ;) On Tue, 04 Jan 2011 15:24:28 -0200, Richard Hill wrote: Happy New Year All, I'm attempting to pass an

Re: Tapestry 5 and W3C HTML Validation

2011-01-04 Thread Thiago H. de Paula Figueiredo
On Tue, 04 Jan 2011 15:14:00 -0200, Rich M wrote: Hi, Hi! I searched through the mailing list and the last thread on this topic seems to date back to 2006. First, I'd like to know what the expected doctype is, is it XHTML 1.0 Transitional, XHTML 1.0 Strict, or something else? Tapestr

Passing a URL in ajax request to onEvent handler

2011-01-04 Thread Richard Hill
Happy New Year All, I'm attempting to pass an url in an ajax request to an onEvent handler. So I'm making a request like: GET /MyPage.MyComponent:event/http://blah.com/ MyComponent.java: public StreamResponse onEvent(String url) { } The problem is that what's being passe

Tapestry 5 and W3C HTML Validation

2011-01-04 Thread Rich M
Hi, I searched through the mailing list and the last thread on this topic seems to date back to 2006. First, I'd like to know what the expected doctype is, is it XHTML 1.0 Transitional, XHTML 1.0 Strict, or something else? Also, the best reference I've seen for using Layout components to st

[T5.2] How to add JS-Stacks to components?

2011-01-04 Thread Christian Riedel
Hi list, I'm working on some improvements for tapestry5-jquery[1]. One of the things I want to improve / adjust to the T5.2-way is the dynamic integration of resources for core-components. "Form", "Zone" and others need some js-contributions to work with jquery. The original approach by the got

Re: How To Use Service in External Thread?

2011-01-04 Thread Taha Hafeez
Hi Did you try ObjectLocator ? you can then use getService() methods regards Taha On Sun, Jan 2, 2011 at 10:27 PM, matt2 wrote: > > Hello, > In my AppModule It is starting External Thread, and i need to use service > in > this thread: > > AppModule{ > > ... > >public static void bind(Ser

No service implements the interface org.springframework.context.ApplicationContext.

2011-01-04 Thread Joel Halbert
Hi & Happy New Year, I'm trying to replicate the following example, to generate an HTML email using the tapestry tapx Template extension. https://github.com/hlship/tapx/blob/master/tapx-templating/src/test/java/com/howardlewisship/tapx/templating/integration/SendMail.java When I run the example

Re: [ANNOUNCE] Tapestry Service Cache

2011-01-04 Thread Borut BolĨina
Great, this deserves a test drive! 2011/1/4 Ciaran Wood > Hi All, > > I'm pleased to announce the release of my first Tapestry project: > tapestry-service-cache. It's an annotations based caching library that makes > it really easy to cache your Services without any boilerplate code! Here's a >

[ANNOUNCE] Tapestry Service Cache

2011-01-04 Thread Ciaran Wood
Hi All, I'm pleased to announce the release of my first Tapestry project: tapestry-service-cache. It's an annotations based caching library that makes it really easy to cache your Services without any boilerplate code! Here's a simple example: public class CachedService implements Service {