Re: [T5] Application Message Catalog not read

2008-12-10 Thread Borut Bolčina
Just a follow up for those who don't read the jira thread. The problem is in BOM (Byte Order Mark). If a property file is made with BOM included, then the localization fails. A cite from wikipedia (http://en.wikipedia.org/wiki/Byte-order_mark): "While UTF-8 do

Re: Redirect before page render

2008-12-10 Thread Allex Juang
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ NOD

Entities referencing domain style Entities

2008-12-10 Thread Luther Baker
I have an entity that contains another entity - but this time, the contained entity table is quite finite - say, 10 rows. public class Category { private String name; } public class User { private String firstName; private String lastName; private Category category; } and in this case

Rendering Nested Entities

2008-12-10 Thread Luther Baker
Is there a relatively clean way to use a BeanEditForm and get a nested Entities properties to show up as inputs. public class Address { private String street; ... } public class User { private String firstName; private String lastName; private Address address; ... } Where

Re: [T5] 5.0.17 URLEncoderImpl.decode error

2008-12-10 Thread Martijn Brinkers
> >> > >> I didn't had this problem in tapestry 5.0.14. > >> I searched in the changes, but couldn't find a change that would cause > >> this error. > >> > >> Any ideas? > >> > >> Leon > >> > >> ---

Re: [T5] 5.0.17 URLEncoderImpl.decode error

2008-12-10 Thread Leon Derks
For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ NOD32 3682 (20081210) Informatie __ Dit bericht is gecontroleerd doo

Re: [T5] 5.0.17 URLEncoderImpl.decode error

2008-12-10 Thread Martijn Brinkers
The URL encoder has been changed. @ for example is now encoded as $0040 See https://issues.apache.org/jira/browse/TAP5-302 Search the archive for what and why things have changed http://tapestry.markmail.org Martijn Brinkers On Wed, 2008-12-10 at 23:19 +0100, Leon Derks wrote: > Hello > Th

Re: [T5] 5.0.17 URLEncoderImpl.decode error

2008-12-10 Thread Thiago H. de Paula Figueiredo
Em Wed, 10 Dec 2008 19:19:44 -0300, Leon Derks <[EMAIL PROTECTED]> escreveu: Hello Hi! I do get an java.lang.IllegalArgumentException It says: "Input string '[EMAIL PROTECTED]' is not valid; the character '@' at position 5 is not valid." I didn't had this problem in tapestry 5.0.14. I s

[T5] 5.0.17 URLEncoderImpl.decode error

2008-12-10 Thread Leon Derks
Hello This evening I tried tapestry 5.0.17 When I type in the following url in my application: http://localhost:8090/tapestry/test/user/[EMAIL PROTECTED] I do get an java.lang.IllegalArgumentException It says: "Input string '[EMAIL PROTECTED]' is not valid; the character '@' at position 5 is no

Weird T5 behaviour with forms

2008-12-10 Thread superoverdrive
I have placed a form with a text-input and submit button on a page and it all worked. Then I have added a second form with another text-input and a submit button on the same page. When I click on the second textfield to enter a value, the form is submitted on the "onfocus" event. The methods

Re: [T5] Application Message Catalog not read

2008-12-10 Thread Borut Bolčina
I just found out why the translation does not work. If all property files are in ANSI (ISO-8859-1) encoding then everything works as advertised. If default file, for example app.properties is in ANSI and the app_sl_SI.properties is in utf8, then the localization breaks. If all property files are in

Re: How can my RequestExceptionHandler distinguish event requests from page requests?

2008-12-10 Thread Franz Amador
Thanks, Peter. I do know about request.isXHR(), but it's actually more important to me to know whether the request is an event request (as opposed to a page request) than if it's an Ajax request. Also, can a service inject the request object? Franz From:

Re: ValueEncoder stopped working in 5.017

2008-12-10 Thread yosemite
Hello, I have resolved by rebuilding the project using Maven, probably was a classpath issue, no sure, glad it works now :-) Karel yosemite wrote: > > Hello, > the attached code worked fine in 5.011 but in 5.017 it blows up saying: > Render queue error in BeforeRenderTemplate[Index:select]: Fai

[T5] Problem with custom control not changing position when sorted

2008-12-10 Thread Charles Mason
Hi All, I am having a strange problem with Tapestry's Grid component. Basically its a set of data from a DB with one column overridden with a custom select control on it. It all works fine until the user sorts it. Then all the conventional cells are drawn in the correct order but the custom one wi

Re: What's the easiest way to implement two dependent select lists ?

2008-12-10 Thread Hugo Palma
; >>>>> input. This does work but i feel that there should be a simpler way of >>>>> >>>>> >>>> doing >>>> >>>> >>>>> this, maybe using zones. >>>>> >>>>> thermus wrote: >>>>

Re: What's the easiest way to implement two dependent select lists ?

2008-12-10 Thread Leon Derks
red accordingly. As the Select component doesn't support ajax out-of.the-box i see myself forced to implement a lot of plumbing and javascript stuff. Still, i feel that this kind of use case should be much easier to implement. Maybe i'm missing something. I'd like to hear some id

AW: Very strange problem with expansion of ${name}

2008-12-10 Thread Maximilian Weißböck
Oh, I see... yes, its Maven... Thanks, Max > -Ursprüngliche Nachricht- > Von: Andreas Andreou [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 10. Dezember 2008 13:51 > An: Tapestry users > Betreff: Re: Very strange problem with expansion of ${name} > > are you running this with maven? If

Re: Very strange problem with expansion of ${name}

2008-12-10 Thread Joakim Olsson
> Is there a special meaning to the expansion of ${name} ? > > Cause I have a very strange problem. > > If I use ${getNode().getName()} in my template, all is ok. > If I use ${node.getName()} in my template, all is ok. > > If I use ${node.name} I do not get the expected value, instead > the name of

[T5.1] Doctype disappearing when deployed on production server

2008-12-10 Thread Joost Schouten (mailing lists)
Hi, I've got the strange problem of my DOCTYPE disappearing when I depoly my war (using T5.1.0.0-SNAPSHOT) on a Fedora Core box running resin. Locally all is fine on OSX and jetty. They both run with tapestry.production-mode=false. The component defining the doctype (HtmlHeadBody.tml) is as follow

Re: Very strange problem with expansion of ${name}

2008-12-10 Thread Andreas Andreou
are you running this with maven? If you've set it to filter the resources, that may be the cause. On Wed, Dec 10, 2008 at 2:28 PM, Maximilian Weißböck <[EMAIL PROTECTED]> wrote: > Is there a special meaning to the expansion of ${name} ? > > Cause I have a very strange problem. > > If I use ${getNo

Very strange problem with expansion of ${name}

2008-12-10 Thread Maximilian Weißböck
Is there a special meaning to the expansion of ${name} ? Cause I have a very strange problem. If I use ${getNode().getName()} in my template, all is ok. If I use ${node.getName()} in my template, all is ok. If I use ${node.name} I do not get the expected value, instead the name of the applicati

Re: [T5] Application Message Catalog not read

2008-12-10 Thread SergeEby
Hi, I have a sample application supporting multiple languages which doesn't exhibit this behavior: http://code.google.com/p/tapestry5-appfuse/ You may have something else going on. /Serge bbcooper wrote: > > I found a bug. First entry in properties file is never used. I tried > reordering en

Re: [T5] Application Message Catalog not read

2008-12-10 Thread Borut Bolčina
I found a bug. First entry in properties file is never used. I tried reordering entries and the first entry never gets "translated". I used T 5.0.15, 5.0.16 and 5.0.17. This applies not only for application wide catalog but also for page catalogs. I am filing a bug report at https://issues.apache.

Re: How can my RequestExceptionHandler distinguish event requests from page requests?

2008-12-10 Thread Peter Stavrinides
You can use: request.isXHR() which checks against a header "X-Requested-With" set by the prototype library for AJAX calls. If you write your own AJAX stuff then request.isXHR() probably won't be set so you will have to set it yourself. Cheers Peter -- If you are not an intended recipient of t

Re: Redirect before page render

2008-12-10 Thread Peter Stavrinides
Use an application state object (it is session scoped), so on your login page you could have: @ApplicationState private UserStateTracker stateTracker; @InjectPage private Home homePage; Object onActivate(){ if(stateTracker.isSignedIn()){ //user is already signed in so redirect return homeP