RE: problem with page service incoder

2006-07-24 Thread Firas A.
Hi, About the 'naked' html: Make sure you have this mapping in your web.xml YourTapestryServletName *.html -Original Message- From: xVik [mailto:[EMAIL PROTECTED] Sent: den 24 juli 2006 17:18 To: users@tapestry.apache.org Subject: prob

RE: Explicitly setting the locale

2006-07-24 Thread Firas A.
Hi Daniel, You would probably need to use an DirectLink on your page template: Click here for German In your page class: public void setNewLocale(String localeString) { Locale newLocale = getLocale(localeString); // Must be defined somewhere getEngine().setLocale(newLocale);

RE: Keeping the original url after submit

2006-07-17 Thread Firas A.
I got it! But the solution is rather low-level. First, I had to modify my form listener to return an ILink: public ILink onSubmit() Then, I had to create the ILink using LinkFactoryImpl: @InjectObject("service:tapestry.globals.WebRequest") public abstract WebRequest getWebRequest(); @Inje

Keeping the original url after submit

2006-07-17 Thread Firas A.
Hello, I have a page which is requested through a DirectLink. This page contains a form listener: public void onSubmit(). The problem: When the form is successfully submitted, the URL for the newly reloaded page lacks the service/listener parameters that were present in the originall request to

RE: Stale link, reloaded

2006-07-07 Thread Firas A.
Sorry about the first incomlete posting. Didn't mean to send it. Damn keyboard shortcust!:-) Hello, I've read several postings on this subject, but none of them was of any help. So I realy hope someone coul

Stale link, reloaded

2006-07-07 Thread Firas A.
Hello, I've read several postings on this subject, but none of them was of any help. So I realy hope some could provide some insight into this matter. Technically: Thanks for your time!

RE: ValidationDelegate doesn't decorate (RESOLVED)

2006-07-06 Thread Firas A.
Christian, Your reply was of greate help. Indeed, since I was using a redirect-after-post the delegate never had a chance to do its work. Thank you! -Original Message- From: Christian Dutaret [mailto:[EMAIL PROTECTED] Sent: den 6 juli 2006 12:10 To: Tapestry users Subject: Re: Validati

ValidationDelegate doesn't decorate

2006-07-06 Thread Firas A.
Hello, I'm using a custom validator (implements Validator) and the ValidationDelegate. I've verified that the custom validator I'm using is working correctly - the getHasErrors() of the delegate returns true. But ValidationDelegate doesn't decorate anything (no asterics, no red labels). I then

RE: ClassCastException when using intValidator

2006-07-05 Thread Firas A.
Your suggestion helped me get pass the exception. I had to do other adjustments too, like this: Note: removed the 'int' and changed 'maximum' to max. Thanks Shing! -Original Message- From: Shing Hing Man [ mailto:[EMAIL PROTECTED] Sent: den 4 juli 2006 1

ClassCastException when using intValidator

2006-07-04 Thread Firas A.
Hello, I get ClassCastException (org.apache.tapestry.valid.IntValidator) when trying to validate a field. Below is the code I'm using. Page class: @Bean public abstract ValidationDelegate getValidationDelegate(); Page spec: ... Thnaks for your time!

Overriding Locale detection in T4

2006-06-28 Thread Firas A.
Hello, The application I'm working on needs to be fully localized, which means correct display of language, currency, date and number formats. In my application specification I have the following setting: meta key="org.apache.tapestry.accepted-locales" value="en,sv" which gives english speaking a

RE: Make your voice heard! Tapestry 4.1 "wish list"

2006-06-23 Thread Firas A.
Hello Henri, everybody I've read your list and I'd subscribe to your opinion on the following issues (from a newbie's perspective): * Better Documentation Yes, please! That would include hivedoc too. * Rename the template page from *.page to *.xml or *.page.xml or perhaps to *.spec.xml * Fa

RE: RESOLVED Persistence misbehavior in T4

2006-05-20 Thread Firas A.
eally don't think you need to synchronize on it, either. You may, however, need to clear it out between requests. Maybe others can clarify: does Tapestry pool bean instances? P On May 19, 2006, at 2:48 AM, Firas A. wrote: > > Paul: "You should generally not need to synchroni

RE: Persistence misbehavior in T4

2006-05-19 Thread Firas A.
ke you simply forgot "CategoryBrowser implements PageDetachListener". Tapestry would then not understand that you want it to call pageDetached(...). Martin On Thursday 18 May 2006 19:26, Firas A. wrote: > Hello Everyone! > > I have a class, CategoryBrowser of type BasePage which has a t

RE: Persistence misbehavior in T4

2006-05-19 Thread Firas A.
eused. Cheers, Paul On May 18, 2006, at 12:26 PM, Firas A. wrote: > Hello Everyone! > > I have a class, CategoryBrowser of type BasePage which has a transient > property, a JavaBean called ProductCategory. ProductCategory makes use > of an instance field: > private List subCategori

Persistence misbehavior in T4

2006-05-18 Thread Firas A.
Hello Everyone! I have a class, CategoryBrowser of type BasePage which has a transient property, a JavaBean called ProductCategory. ProductCategory makes use of an instance field: private List subCategories = null; This list is initialized in CategoryBrowser upon every request. Every access to