Re: information about trapping exception

2006-12-04 Thread Renat Zubairov
You can also catch exceptions on higher level than only a page and then decide which page to show, I mean wherever you would like to show a usual page or your page. It is reasonable in case you still want to see very nice internal exception page in case of unexpected exceptions, and you can see yo

Re: Tapestry 4.1.1, Problems with IE and AJAX [update]

2006-12-04 Thread Patrick Klein
Hi! Last fridays SVN-Snapshot gives me the following error using firefox when changing one of the components an eventlistener is attached to: ERROR: 10:43:16: Error evaluating script: // SyntaxError : missing ; before statement : http://localhost:8080/HelloWorld/app?service=asset&path=%2Ftap

Re: Tapestry 4.1.1 and url rewriting

2006-12-04 Thread Patrick Klein
Hi! I'm using the following Context in tomcat: path="/HelloWorld" reloadable="true" cookies="false"/> Even if i reject cookies from the application, url-rewriting doesn't work here. With Tapestry 4.0.2 everything works fine that way. Used Versions are: tomcat 5.5.20 tapestry 4.1.1 svn (last

Selecting a form listener:

2006-12-04 Thread Andrea Chiumenti
Hello, I've nearly finished my JFlyEditGrid, now I'm thinking to make it work with tapestry 4.1.x (currently is for 4.0.x). I've seen then Submit action performs like this: A listener that is notified if this component is triggered [[just before the form's listener]], after all components enclosed

Customized Form.js?

2006-12-04 Thread Firas Adiler
Hello, Is it possible to use a customized Form.js (org/apache/tapestry/form/Form.js)? Thanks for your time! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Problem with Euro symbol

2006-12-04 Thread Ron Piterman
Hi all, I am using the currency format is a java standard currency format, but the Euro symbol is not inserted properly so one gets a ¤ instead of € - any idea why and how to change that? the page includes the standard which is generated by the Shell component. Cheers, Ron

RE: Customized Form.js?

2006-12-04 Thread Firas Adiler
It seems that "classpath hack" is the only way to go, i.e placing a copy of org/apache/tapestry/form/Form.js somewhere in the classpath before Tapestry's original Form.js. Regards, -Original Message- From: Firas Adiler [mailto:[EMAIL PROTECTED] Sent: Monday, December 04, 2006 11:59 AM

Re: Problem with Euro symbol

2006-12-04 Thread Andrea Chiumenti
try ISO-8859-15, what happen ? and is fomrat really what you have on src ? If so correct with format kiuma On 12/4/06, Ron Piterman <[EMAIL PROTECTED]> wrote: Hi all, I am using the currency format is a java standard currency format, but the Euro symbol is not inserted properly so one gets

Re: Problem with Euro symbol

2006-12-04 Thread Ron Piterman
Andrea Chiumenti wrote: try ISO-8859-15, what happen ? nothing changes :( and is fomrat really what you have on src ? If so correct with format no, fomrat was just a typo in the posting. kiuma On 12/4/06, Ron Piterman <[EMAIL PROTECTED]> wrote: Hi all, I am using the currency form

Re: Problem with Euro symbol

2006-12-04 Thread Andrea Chiumenti
is your java src in UTF-8 ? What if you hardcode € into your teplate ? does it correctly display ? and what if you put into java src public String getEuro() {return "€";} and then into ? On 12/4/06, Ron Piterman <[EMAIL PROTECTED]> wrote: Andrea Chiumenti wrote: > try ISO-8859-15, what happen

Re: a component to set language (setLocale)

2006-12-04 Thread Marilen Corciovei
In the past I have done this just by using a form and in the form handler: getPage().getEngine().setLocale(newLocale); cycle.cleanup(); cycle.activate(getPage().getPageName()); Don't know if this applies anymore. Best regards, Len www.len.ro On Sun, 2006-12-03 at 18:48 +0100, Cyrille37 wrote:

wrong rendering of non-ascii characters in ajax response

2006-12-04 Thread Christian Dutaret
Hi all, I have a property selection that contains a string with accented characters, which is created from a java string literal such as "Mod\u00E8le" (\u00E8 is unicode for character 'è'). When the property selection is first rendered, it displays fine, but if I update the property selection fro

Re: Problem with Euro symbol

2006-12-04 Thread Ron Piterman
The € is comming from the java currency format object: NumebrFormat.getCurrencyInstance(); Cheers, Ron Andrea Chiumenti wrote: is your java src in UTF-8 ? What if you hardcode € into your teplate ? does it correctly display ? and what if you put into java src public String getEuro() {return "€";

Re: Problem with Euro symbol

2006-12-04 Thread Ron Piterman
When inside the template, the € symbol is rendered fine. strange thing... any idea ? Cheers, Ron Andrea Chiumenti wrote: is your java src in UTF-8 ? What if you hardcode € into your teplate ? does it correctly display ? and what if you put into java src public String getEuro() {return "€";}

Re: Problem with Euro symbol

2006-12-04 Thread Andrea Chiumenti
mmm... NumebrFormat.getCurrencyInstance() Locale defaultLocale = new Locale("fr", "FR", "EURO"); NumberFormat nf = NumberFormat.getCurrencyInstance(defaultLocale); String formattedValue = nf.format(value); System.out.println(formattedValue); Try then . new String(formattedValue.getByt

Re: Problem with Euro symbol

2006-12-04 Thread Christian Haselbach
Zitat von Ron Piterman <[EMAIL PROTECTED]>: > The € is comming from the java currency format object: > NumebrFormat.getCurrencyInstance(); Just a guess. You are using a number format without specifying the locale. Hence, the default locale for your platform is used which propably includes the enc

Re: Tapestry 4.1.1, Problems with IE and AJAX [update]

2006-12-04 Thread Jesse Kuhnert
The var = error is something I fixed over the weekend. On 12/4/06, Patrick Klein <[EMAIL PROTECTED]> wrote: Hi! Last fridays SVN-Snapshot gives me the following error using firefox when changing one of the components an eventlistener is attached to: ERROR: 10:43:16: Error evaluating script: //

Re: wrong rendering of non-ascii characters in ajax response

2006-12-04 Thread Jesse Kuhnert
This may be my fault somehow. I'll look into it today and get back to you with an answer. (still waking up right now) On 12/4/06, Christian Dutaret <[EMAIL PROTECTED]> wrote: Hi all, I have a property selection that contains a string with accented characters, which is created from a java string

Re: Tapestry 4.1.1 and url rewriting

2006-12-04 Thread Jesse Kuhnert
Right. Same answer as in the other thread. Fixed sometime last week. On 12/4/06, Patrick Klein <[EMAIL PROTECTED]> wrote: Hi! I'm using the following Context in tomcat: Even if i reject cookies from the application, url-rewriting doesn't work here. With Tapestry 4.0.2 everything works fine t

Re: Problem with Euro symbol

2006-12-04 Thread Ron Piterman
Thanx, but I am using: public Format getCurrencyFormat() { Locale l = getPage().getEngine().getLocale(); return new NumberTranslatorFormat( NumberFormat.getCurrencyInstance( l ) ); } the NumberTranslatorFormat is a custom format which devides or multiplies the numbers, but is delegating for

playing movie (.mpeg) in tapestry app ?

2006-12-04 Thread Dwi Ardi Irawan
i have a campus project does anybody knows how to play mpeg file in tapestry app? thnx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: playing movie (.mpeg) in tapestry app ?

2006-12-04 Thread Andrea Chiumenti
do you mean downloading a mpg file ? On 12/4/06, Dwi Ardi Irawan <[EMAIL PROTECTED]> wrote: i have a campus project does anybody knows how to play mpeg file in tapestry app? thnx - To unsubscribe, e-mail: [EMAIL PROTE

Re: playing movie (.mpeg) in tapestry app ?

2006-12-04 Thread Dwi Ardi Irawan
not, downloading but...i just want to play a movie (.mpeg file)...inside the browser ? is there any such component like that in tapestry just like playing wmp (windows media player) in the browser... CMIIW Andrea Chiumenti wrote: do you mean downloading a mpg file ? On 12/4/06, Dwi

Re: playing movie (.mpeg) in tapestry app ?

2006-12-04 Thread Jesse Kuhnert
I think you want to use the html "embed" object don't you? Been a long time since I played with anything like that but I think that's how it's done. On 12/4/06, Dwi Ardi Irawan <[EMAIL PROTECTED]> wrote: not, downloading but...i just want to play a movie (.mpeg file)...inside the browser ? i

Re: Problem with Euro symbol

2006-12-04 Thread Jesse Kuhnert
Not sure if you were bitten by the same encoding of ajax/json bug that others were from this weekends changes but a new release was just published that should fix any issues related to that. On 12/4/06, Ron Piterman <[EMAIL PROTECTED]> wrote: Thanx, but I am using: public Format getCurrencyForm

Re: wrong rendering of non-ascii characters in ajax response

2006-12-04 Thread Jesse Kuhnert
Ok. Changes related to ajax/json responses have been reverted and should work for you now. Sorry for any issues. (obviously I have some new test cases to create) On 12/4/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: This may be my fault somehow. I'll look into it today and get back to you with an

Re: playing movie (.mpeg) in tapestry app ?

2006-12-04 Thread Dwi Ardi Irawan
could you give me a little example (code) ... if you don't mind thnx very much Jesse Kuhnert wrote: I think you want to use the html "embed" object don't you? Been a long time since I played with anything like that but I think that's how it's done. On 12/4/06, Dwi Ardi Irawan <[EMAIL PROTEC

Re: playing movie (.mpeg) in tapestry app ?

2006-12-04 Thread Jesse Kuhnert
Isn't that partially the point of the "class" you are taking? ;) (I don't remember the specifics, I'd probably do a simple google search for an answer. ) On 12/4/06, Dwi Ardi Irawan <[EMAIL PROTECTED]> wrote: could you give me a little example (code) ... if you don't mind thnx very much Jes

Re: wrong rendering of non-ascii characters in ajax response

2006-12-04 Thread Christian Dutaret
Fixed. Thanks a lot for the quick reaction (and thanks to maven2 for the immediate availability ;-) Ch. 2006/12/4, Jesse Kuhnert <[EMAIL PROTECTED]>: Ok. Changes related to ajax/json responses have been reverted and should work for you now. Sorry for any issues. (obviously I have some new test

Re: playing movie (.mpeg) in tapestry app ?

2006-12-04 Thread Daniel Jue
AFAIK, this has nothing to do with Tapestry. It has to do with embedding the link to the video in plain old html. For instance, you could just use the HTML embed tags in a Tapestry Hello World program. Now if you want to store things in the WEB-INF directory, you might have to define the file as

Re: playing movie (.mpeg) in tapestry app ?

2006-12-04 Thread Dwi Ardi Irawan
hi3x...thnx for the answer... in my mind i thought there is a tapestry component... so we just put out movie in that component hi3x... sorry for bothering Daniel Jue wrote: AFAIK, this has nothing to do with Tapestry. It has to do with embedding the link to the video in plain old html.

Re: Problem with Euro symbol

2006-12-04 Thread Ron Piterman
not yet - there is no ajax/json involved :( but I will update and see... Cheers, Ron Jesse Kuhnert wrote: Not sure if you were bitten by the same encoding of ajax/json bug that others were from this weekends changes but a new release was just published that should fix any issues related to tha

Re: Problem with Euro symbol

2006-12-04 Thread Jesse Kuhnert
If you get to something more definitive let me know. I should probably take i18n issues very seriously considering the percentage of users/developers coming from countries not using english as the default native language. On 12/4/06, Ron Piterman <[EMAIL PROTECTED]> wrote: not yet - there is no

Re: using Tapestry to send mails

2006-12-04 Thread Chris Chiappone
Take a look at this package: http://mail-archives.apache.org/mod_mbox/tapestry-users/200605.mbox/[EMAIL PROTECTED] On 12/2/06, Bill Holloway <[EMAIL PROTECTED]> wrote: I've used JavaMail (http://java.sun.com/products/javamail) successfully in a few projects. One thought is to inject the java

Re: using Tapestry to send mails

2006-12-04 Thread Cyrille37
Bill Holloway a écrit : I've used JavaMail (http://java.sun.com/products/javamail) successfully in a few projects. One thought is to inject the javax.mail.Session object into an application state object for easier access via Tapestry. Hello, Ok, but how do you render the mail content (page) wi

Is there a searchable mailing list archive ?

2006-12-04 Thread Cyrille37
Hello, The mailing list at http://mail-archives.apache.org/mod_mbox/tapestry-users/ is not searchable. Is there a searchable archive somewhere ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: Is there a searchable mailing list archive ?

2006-12-04 Thread Jason Dyer
Try Nabble. http://www.nabble.com/Tapestry---User-f340.html On Monday 04 December 2006 13:27, Cyrille37 wrote: > Hello, > > The mailing list at > http://mail-archives.apache.org/mod_mbox/tapestry-users/ is not searchable. > Is there a searchable archive somewhere ? > > Thanks > cyrille > > -

Re: Custom validator not called when value is empty?

2006-12-04 Thread Malin Ljungh
Thank you guys! You've been very helpful. I now make the validation in submit but it's not pretty; in the submit listener I have this: if(!validateFieldX()) { setFieldXValid(false); return null; } and in the html I have an @If to display validation message if validation has failed. Is there

Re: Custom validator not called when value is empty?

2006-12-04 Thread fdegrassi
I think you can add custom validation messages to your ValidationDelegate and display them along with your validators errors. It should work more or less like this. public void doRegister() { if (getStart() > getStop()) { getDelegate().record(getStartField(), "Start should be less tha

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

2006-12-04 Thread Skorpien126
Hmm yeah ... it´s doing something like this but I found no other way to make the data persistent. My preparePage() looks like this... public void prepareForRender(IRequestCycle request) { super.prepareForRender(request); getPersistItem().reInit(this.getItem()

Select component

2006-12-04 Thread Helen Zaks
Hello, I'm having an issue with the tapestry Select component. According to the Select component example for Tapestry 4.0, 'selected' binding of the Option Component should be bound to a boolean array. Everything works fine when the component first loads on the page. I initialize the boolean arr

Re: Re: Re: Number translator message in 4.1

2006-12-04 Thread Patrick Moore
Hi Sam -- Well, I don't type nearly as fast. :-) This whole thread started off with a message change. Changing an error message is not changing an API! I return to the original statement that the user of the framework is the developer. And the developer should always control the output to their

Re: Number translator message in 4.1

2006-12-04 Thread Cyrille37
" must be a numeric value." And now is: " must be a numeric value. Format is #." Hello, my 2 cents in that this long long subject is that there are messages for developper and messages for user. I don't know enough Tapestry at the moment, I'm just learning it but my opinion is that :

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

2006-12-04 Thread Sam Gendler
Well, I have never used prepareForRender(). I tend to have my pages implement the pageBeginRenderListener interface or the pageAttachListener interface. The former will cause a method called pageBeginRender(IRequestCycle) to be called at the start of each rendering of the page, much like prepa

Re: Re: Custom validator not called when value is empty?

2006-12-04 Thread Sam Gendler
Yes, even if you can't get your validator itself to work (and you should be able to), you should definitely just add an error message to your existing validation delegate, rather than making a custom method for each field you want to validate. That will allow your standard error handling mechanis

Re: Re: Problem with Euro symbol

2006-12-04 Thread Sam Gendler
The symbol you are seeing is the symbol used to denote 'locale specific currency symbol' in a format pattern. What is strange is that if you don't have a symbol for that currency in your current locale, you should get the ISO 3-letter code (EUR, in this case) rather than a euro symbol. Is it pos

Re: Selecting a form listener:

2006-12-04 Thread Sam Gendler
_instead_ of the listener? Are you sure you want a component which could prevent a form's listener from firing? You could add a listener to your component which would fire when the component rewinds, and even set a parameter which you could then check from within your form's listener to see if the

Tapestry 5 Maven Stuff

2006-12-04 Thread Bill Holloway
Can anyone give me a pointer about setting up the maven2 repositories in my eclipse project for Tapestry 5? I can't seem to get the repository definition into the right place in order to see the tapestry-core and tapestry-ioc entries in Eclipse's "Add Dependency" dialog. Thanks, Bill -- "Budge

please, some help with Hivemind

2006-12-04 Thread Cyrille37
Hello, step by step, I'm learning Tapestry 4.0.2 with Netbeans 5.5 ... With that Netbeans version it's really easy to create persistence stuff. It makes pojo class and persistence unit with a wizard. Great. I've test the persistence in a page property, by a very dirty fashion. But I know that