Re: information about trapping exception

2006-12-03 Thread Jesse Kuhnert
I believe that also gets covered on the website: http://tapestry.apache.org/tapestry4.1/developmentguide/exceptionpages.html On 12/3/06, Sam Gendler <[EMAIL PROTECTED]> wrote: In hivmind.xml: In your template for the custom exception: will render the exception if you ha

Re: information about trapping exception

2006-12-03 Thread Sam Gendler
In hivmind.xml: In your template for the custom exception: will render the exception if you have the following in your .page file: You can also use the following to render the request My class looks like this: public abstract class CustomExceptionPage extends S

Re: Why propertys were not updated, when Form "hasErrors"??

2006-12-03 Thread Sam Gendler
I've never had this problem. When a form fails validation in my apps, I always see the content that was posted displayed back in the fields. Is it possible that the class which backs your page is initializing the bean back to default values after the rewind cycle completes with an error? --sam

Re: Re: Re: Number translator message in 4.1

2006-12-03 Thread Sam Gendler
The discussion isn't really about the message changes. It was just sparked by them. The discussion is about the general philosophy of framework design, developer vs end-user support, versioning and backwards compatibility, documentation, and the direction of tapestry development into the future.

Why propertys were not updated, when Form "hasErrors"??

2006-12-03 Thread Skorpien126
Ok... maybe I start nerving but I can´t belive that´s it not possible. The Situation: I have maybe 20 Textareas in a form... each one using the "required" validator. The textareas are BOUND to a bean which has lifecycle=Page. Reading and writing still works... but when I fill data in first 19 Tex

Re: a component to set language (setLocale)

2006-12-03 Thread Jesse Kuhnert
Not sure if it helps, but there is always ye old workbench demo : http://opencomponentry.com:8080/workbench/Home,$Border.pageLink.sdirect?sp=Slocalization%2FLocalization On 12/3/06, Cyrille37 <[EMAIL PROTECTED]> wrote: Hello, Before trying to write one, I come here to ask if some one has done

a component to set language (setLocale)

2006-12-03 Thread Cyrille37
Hello, Before trying to write one, I come here to ask if some one has done a component which give the web user the possibility to choice his language (locale) in a list of available language (ex: fr,en,de,pt...). I've had a look at Tassel and google but found only explanation, no ready to use

Re: Number translator message in 4.1

2006-12-03 Thread Jesse Kuhnert
Sure, I can see the validity in the particular case of a simple number format for numeric values. (except of course what will happen when they input 3.14 ?) As I've run out of time to really properly play with these for 4.1.1 I may have to just revert to the old messages for now, but this is defi

RE: Number translator message in 4.1

2006-12-03 Thread Kevin Menard
Thanks for the reply, Jesse. > I think my original intention was to change some of the default error > messages to give more specific information about the format that we > want the input to be in. Rather than just saying "your input sucks, > try again" and having them randomly type stuff in unti

uncaught exception: [object Object] when using EventListener

2006-12-03 Thread kit
I encountered a problem with the new snapshot, well it was working previously in the older snapshots. I am trying to use this EventListener annotation... I am pretty sure it work very well in the 2 snapshots back code snippet as follow @EventListener(targets="chapterChooser",events="onch

Re: Re: Number translator message in 4.1

2006-12-03 Thread Jesse Kuhnert
There certainly is a lot of discussion going on for what my naive mind sees as only 2-3 validation strings. (which I'd be happy to revert back to the old way) If there are other more specific grievances people have I'd love to hear them. More so than the typical "unsocial nerd" I have an especial

information about trapping exception

2006-12-03 Thread Cyrille37
Hello, I'm still learning Tapestry, and generally Java Web Application ... Now I can understand a beat about Tapestry and create little working project. Here is the time for me to learn how to manage errors, like trapping an underground exception in the view layer. The following example is fro

Tapestry 4. Class ExternalService Javadoc mistake

2006-12-03 Thread Cyrille37
Hi, I think there is a mistake in the Tapestry 4's JavaDoc for org.apache.tapestry.engine.ExternalService. The example: http://localhost/myapp?service=external&context=ViewCustomer&sp=5056&sp=302 is not working. To works I've to replace "context" by "page" like : http://localhost/myapp?servic

Re: replace @InjectPage by a page specification

2006-12-03 Thread Cyrille37
Sam Gendler a écrit : I don't know for sure, but I'd try using 'IPage' as the type, which would hopefully tell hivemind to resolve the object as a page name. You might also try looking at the source for the InjectPage annotation, see how it resolves the page, presumably via a hivemind service of

Re: replace @InjectPage by a page specification

2006-12-03 Thread Sam Gendler
I don't know for sure, but I'd try using 'IPage' as the type, which would hopefully tell hivemind to resolve the object as a page name. You might also try looking at the source for the InjectPage annotation, see how it resolves the page, presumably via a hivemind service of some kind, and then i

Re: tapestry4.1.1 ajax issue

2006-12-03 Thread Sam Gendler
I don't know the page you edited to get this, as I don't know the TimeTracker app, but there has always been a problem with components that are in loops, since the id in the html file will not match the id of the html element, since it may have '_x' (where x is an integer) appended to it. Other c

Re: Re: Popup window with parameter

2006-12-03 Thread Sam Gendler
In general, if you want to construct a URL in Tapestry, it is best to create an instance of ILink and then get the URL from that. Assuming the service for which you have instantiated the iLink takes parameters, it should be fairly self explanatory how to get the Link to include those parameters i

Re: Custom validator not called when value is empty?

2006-12-03 Thread Sam Gendler
Why not just build the set of validators for the field dynamically? Assuming you can determine whether the field should be required by the time the field rewinds (rather than being dependant on something not yet rewound), then you can include the required validator in the list only if it is actual

Re: Re: Number translator message in 4.1

2006-12-03 Thread Sam Gendler
I disagree with your points regarding validation errors targeting a developer audience rather than end user. First, validation errors are not likely to be the result of a programmer error, although yes, if you do supply the wrong mask, it might prove useful. More importantly, previous versions o

Re: Tapestry HiveDoc generation

2006-12-03 Thread Norbert Sándor
There is a non-official maven plugin as well: http://issues.apache.org/jira/browse/HIVEMIND-164 Although I haven't tried it yet... BR: Norbi Jesse Kuhnert írta: I did sit down and figure this out finally. Hivemind has an ant task you can use to read in registry files and output them into one m

Re: Popup window with parameter

2006-12-03 Thread Cyrille37
Istvan Szucs a écrit : The question is wrong. The problem is solved. I found this: http://lombok.demon.co.uk/tapestry4Demo/TestPopupSource.html Hi, I don't know it it can help, but there are some components on Tassel : http://equalitylearning.org/Tassel/app?service=external/ViewComponent&sp

Re: wysiwyg editor

2006-12-03 Thread Cyrille37
Karthik N a écrit : http://lombok.demon.co.uk/tapestry4Demo/TestFCKeditor2.html http://lombok.demon.co.uk/tapestry4Demo/TestFCKeditor1.html There is FCKeditorTA on Tassel, which I didn't try yet. http://equalitylearning.org/Tassel/app?service=external/ViewComponent&sp=SFCKeditorTA Cyrille. O