T5: Tapestry-upload and Safari

2007-10-21 Thread Angelo Chen
Hi, It's common to fail in file uploading in Safari, however it seems the failing depends on the web page, I tried Tapestry-upload, it works with Firefox/Opera, but cause an exception in Safari, upgrading to Safari 3 does not solve the problem: org.apache.tapestry.ioc.internal.util.TapestryExcep

[T5] external Assets.

2007-10-21 Thread Fernando Padilla
How do I create an Asset that is like: URL url = new URL( blah ); Asset urlAsset = new UrlAsset( url ); Looking through the code, it doesn't look like it's well supported, but I hope that I'm wrong. Maybe someone can whip up support for this.. or give me a patch.. :) -

Re: [t5] Localisation

2007-10-21 Thread Christoph Jaeger
Thanks, this was what I was looking for. Best Regards, Christoph Imants Firsts wrote: > How about this? > > @Inject private PersistentLocale persistentLocale; > @Inject private RequestGlobals requestGlobals; > > public Locale getCurrentLocale() { > Locale locale = persistentLocale.get()

Re: [t5] Localisation

2007-10-21 Thread Imants Firsts
How about this? @Inject private PersistentLocale persistentLocale; @Inject private RequestGlobals requestGlobals; public Locale getCurrentLocale() { Locale locale = persistentLocale.get(); return locale != null ? locale : requestGlobals.getRequest().getLocale(); } Quoting Christ

Double processing of @Insert

2007-10-21 Thread [EMAIL PROTECTED]
I have a within a @For. The input value is something like which renders as an input tag correctly. What Id like to do is something like an input value of: [t5] Localisation
Hi, I use PersistentLocale to switch my pages to different languages. It works great. I have several links on the top of the page, each one switching to a different language. When a user clicks "DE", he will get the German version. I also want to show the user which language is currently selected

Re: Can BeanEditForm be Readonly?

On 10/21/07, Eko S.W. <[EMAIL PROTECTED]> wrote: > Hi All, > Can we make BeanEditForm be Readonly? > I need it to do quick Show Details of an item. Check out the new BeanDisplay in 5.0.6-SNAPSHOT. > Default behaviour of BeanEditForm is to render Create/Update button > How to not render it? No id

How to handle errors in Ajax From? (Tap4.1.2)

I have a normal form with an users email address on it. Users can change thier email if they choose. I do all the client side validation i can but when it comes to validating another user doesn't already have claim to that email address, i validate that server side. I am recording my error in

Re: [t5] decoding utf-8 in form submissions

Actually I am using upload on the same form. Is there a way to get UTF-8 working on a form with upload or should I divide textual data and file upload to two separate pages? I have verified that contributeRequestHandler() is not the problem. Lauri Nick Westgate wrote: > > If you are using fil

Re: [t5] decoding utf-8 in form submissions

If you are using file upload there may be an incompatibility. Otherwise, are you sure you added this line to contributeRequestHandler()? configuration.add("Utf8Filter", utf8Filter); // handle UTF-8 Cheers, Nick. Lauri Benno wrote: Hi, I'm totally lost on this. I'm using UTF-8 on my applic

[t5] decoding utf-8 in form submissions

Hi, I'm totally lost on this. I'm using UTF-8 on my application and output is working fine. I followed instructions on http://wiki.apache.org/tapestry/Tapestry5Utf8Encoding and added UTF-8 filter to AppModule but I'm still receiving gibberish in my page class when I try to submit a form that has c

Can BeanEditForm be Readonly?

Hi All, Can we make BeanEditForm be Readonly? I need it to do quick Show Details of an item. Default behaviour of BeanEditForm is to render Create/Update button How to not render it? And again, in BeanEditForm, can we make TextArea as String field input editor? So, not using the limited TextField

[t5] decoding utf-8 in form submissions

Hi, I'm totally lost on this. I'm using UTF-8 on my application and output is working fine. I followed instructions on http://wiki.apache.org/tapestry/Tapestry5Utf8Encoding and added UTF-8 filter to AppModule but I'm still receiving gibberish in my page class when I try to submit a form that has c

Re: T5: Editing of form

Don't forget that Tapestry has docs: http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html#orgapachetapestrycorelibcomponentssubmit Use onSelectedFromSubmitButtonName(). Cheers, Nick. Angelo Chen wrote: Hi Jonathan, That's a good idea, two buttons, 'save' and 'save & f

Re: T5: file uploader

just ad it to your pom.xml org.apache.tapestry tapestry-upload ${tapestry-release-version} Hrg davor On 10/21/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > > > Hi, > > where can I find tapestry-upload jar files? any sample code how to use it > it? Thanks. > A.C. > -- >

T5: file uploader

Hi, where can I find tapestry-upload jar files? any sample code how to use it it? Thanks. A.C. -- View this message in context: http://www.nabble.com/T5%3A-file-uploader-tf4665692.html#a13328004 Sent from the Tapestry - User mailing list archive at Nabble.com.

RE: T5: Editing of form

Hi Jonathan, That's a good idea, two buttons, 'save' and 'save & finish', how you detect two buttons in a form? A.C. Jonathan Barker wrote: > > > It depends. In one case where there are a lot of things to fill out and I > expect incremental saves, I have Save (that goes right back to the ed

Re: T5: Grid component with SQL-based paging/sorting

Thank you Howard, that's exactly what I needed! Andy On Sat, 2007-10-20 at 23:26 -0700, Howard Lewis Ship wrote: > It's interface GridDataSource. > > What you may be missing is that Tapestry convieniently coerces > java.util.List to GridDataSource for you. However if you connect the source > pa