5.? to 5.1 JavaScript validation changed?

2009-08-06 Thread Sebastian Hennebrueder
Hello, the wiki page http://wiki.apache.org/tapestry/Tapestry5HowToAddValidators describes for Tapestry 5 JavaScript code that doesn't work on my 5.1.0.5 Tapestry with Firefox 3.5 But the following works. When did the API change? I would like to note it in the WIKI. Tapestry.Validator.foo =

Re: [Tapestry IOC] Interfaces could be more complete - MethodAdviceReceiver and Invocation

2009-08-06 Thread Thiago H. de Paula Figueiredo
Em Thu, 06 Aug 2009 04:32:04 -0300, Sebastian Hennebrueder escreveu: Hmm, in that case a getDelegate method could return null or the Proxy or ask the proxy for getDelegate. +1 to that. Annotation-driven decoration/advising is severely impaired without getting access to the service imple

Re: Problem writing a custom BeanBlockEditor (solved)

2009-08-06 Thread Sebastian Hennebrueder
I solved the problem. Translators are registered like this public static void contributeTranslatorSource(Configuration configuration,

Re: Link encoded twice (thanks)

2009-08-06 Thread Sebastian Hennebrueder
Thank you to all of you. Howard Lewis Ship schrieb: Object onActionFromUrlresponse() throws Exception { return new URL("http", "www.lailuna.de", ""); } Tapestry can capture the exception, if any, and wrap it as a RuntimeException. On Thu, Aug 6, 2009 at 7:08 AM, Sebastian Hennebrueder wrote:

Re: Intermittent Stax Exception

2009-08-06 Thread Felix Gonschorek
Did you check that you don't have any dependencies which override tapestry dependencies? i had several time problems with woodstox and javassist when there where wrong (mostly older) versions resolved (versions differing from tapestry's (transitive) dependencies). the maven tree dependencies vie

Problem writing a custom BeanBlockEditor

2009-08-06 Thread Sebastian Hennebrueder
Hello, I got stuck writing my own editor. I have a Phone class with three String fields countryPrefix, prefix, code. I would like to render a simple text input field and translate the input to a Phone class object. But I get the following exception. org.apache.tapestry5.internal.services.Render

Re: Link encoded twice

2009-08-06 Thread Howard Lewis Ship
Object onActionFromUrlresponse() throws Exception { return new URL("http", "www.lailuna.de", ""); } Tapestry can capture the exception, if any, and wrap it as a RuntimeException. On Thu, Aug 6, 2009 at 7:08 AM, Sebastian Hennebrueder wrote: > Thiago H. de Paula Figueiredo schrieb: >> >> Em Thu,

Re: Intermittent Stax Exception

2009-08-06 Thread zack1403
Hey guys this has actually become a big issue as it is breaking a substantial part of our app. There is not a single line of my code in the trace. Ive tried upgrading to the most recent snapshot with the same results. It really looks like its a problem with woodstox. Can anyone help me out? Z

Re: TextField Setting Text

2009-08-06 Thread Joshua Martin
This works almost perfectly, but I have one small problem with this method of redirecting... I understand why the page is located at /pageRedirectedFrom/pageRedirectedTo instead of just /pageRedirectedTo but this is a problem because my images in the page are getting pointed to a non existent URL

Custom validation for @Validate

2009-08-06 Thread Sebastian Hennebrueder
Hello, while describing the validation mechanism of Tapestry in my article, I used my findings to update the Wiki. http://wiki.apache.org/tapestry/CreatingCustomValidators Could someone please review it, as I am not experienced with Tapestry. Is it correct that the AppModule methods are stati

Re: Link encoded twice

2009-08-06 Thread Sebastian Hennebrueder
Thiago H. de Paula Figueiredo schrieb: Em Thu, 06 Aug 2009 07:35:17 -0300, Sebastian Hennebrueder escreveu: Hello, Hi! To redirect to an external URL, all you need to do is to return a java.net.URL instance from an event handler method. Hello, I found this solution as well but the cod

Re: Link encoded twice

2009-08-06 Thread Thiago H. de Paula Figueiredo
Em Thu, 06 Aug 2009 07:35:17 -0300, Sebastian Hennebrueder escreveu: Hello, Hi! To redirect to an external URL, all you need to do is to return a java.net.URL instance from an event handler method. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor

Re: Link encoded twice

2009-08-06 Thread Otho
You read that? http://wiki.apache.org/tapestry/Tapestry5LinkingToNonTapestryURIs 2009/8/6 Sebastian Hennebrueder > Hello, > > I supect if the Link doesn't get encoded twice. > > Once in LinkImp > public String toRedirectURI() > { > return appendAnchor(response.encodeRedirectURL(buildURI

Re: Portlets?

2009-08-06 Thread spaway
liferay supports tapestry - meaning you can develop liferay's portlet in tapestry as a plugin - I suppose! check liferay's wiki/blog very well! 2009/8/6 Christine > > A friend told me that Tapestry will support portlets at some point. Is that > true? One of my clients is switching to Liferay an

Portlets?

2009-08-06 Thread Christine
A friend told me that Tapestry will support portlets at some point. Is that true? One of my clients is switching to Liferay and I'd like to develop the portlets with Tapestry dagdag Christine -- dagdag is just a two-character rotation of byebye.

Link encoded twice

2009-08-06 Thread Sebastian Hennebrueder
Hello, I supect if the Link doesn't get encoded twice. Once in LinkImp public String toRedirectURI() { return appendAnchor(response.encodeRedirectURL(buildURI())); } and once in ResponseImpl public void sendRedirect(Link link) throws IOException { Defense.notNull(link, "l

Re: [Announce] ioko-tapestry-commons-1.4.0

2009-08-06 Thread Otho
There are some typos on http://tapestry.formos.com/projects/ioko-tapestry-commons/ . In all dependencies the starting slash of the closing is missing. 2009/8/5 Inge Solvoll > Excellent. I love the convenient javascript and jquery jars! > > On Tue, Aug 4, 2009 at 3:04 PM, Ben Gidley wrote: > >

Re: TextField Setting Text

2009-08-06 Thread Peter Stavrinides
Or another valid way: @InjectPage private PageToCreate page; Object onAction() { String textToSet = "Me the text"; page.initialize(textToSet); return page; } Note: page.initialize(textToSet); is obviously the method setting the property, but that property may need at least flash per

Re: ZoneUpdater is Great

2009-08-06 Thread Inge Solvoll
Thanks for the very nice feedback, Levi! :) First of all, I must mention that this is a generalization/reworking of concepts created by equanda, I hope the equanda guys are ok with it being published like this. I strongly agree with you that the concept demonstrated in this mixin should be integr

Re: [Tapestry IOC] Interfaces could be more complete - MethodAdviceReceiver and Invocation

2009-08-06 Thread Sebastian Hennebrueder
Hmm, in that case a getDelegate method could return null or the Proxy or ask the proxy for getDelegate. Howard Lewis Ship schrieb: It might be possible to advise the interface. When advising, you may be layering advice upon a proxy to the service, in which case the service interface is the bes