RE: [s2] Date format in TextField

2008-02-26 Thread Petzsch, Martin
Many thanks for your response. To clarify, our exact problem is as follows. We have multiple fields where we are displaying a date in an editable textfield, this date has come from some service, not necessarily from a db. When the date comes up from the service layer it is the correct date; e.g

[s2] Date format in TextField

2008-02-26 Thread Petzsch, Martin
Hi, I want to display editable dates in textfields. I cannot use JavaScript, so datetimepicker isn't an option. Currently the date is displayed as dd/mm/yy if there is a value. How can I change this to be dd/mm/? Many thanks, Martin Capgemini is a trading name used by the Capgem

RE: [s2] @ConversionErrorFieldValidator and Collections

2007-08-28 Thread Petzsch, Martin
Does anyone know what the release date for 2.0.11 is? This bug is now scheduled to be fixed in that release. Kind regards, Martin -Original Message- From: Petzsch, Martin Sent: 14 August 2007 16:53 To: Struts Users Mailing List Subject: RE: [s2] @ConversionErrorFieldValidator and

RE: [s2] @ConversionErrorFieldValidator and Collections

2007-08-14 Thread Petzsch, Martin
I have now posted this as a bug on JIRA. https://issues.apache.org/struts/browse/WW-2112 Kind regards, Martin -Original Message- From: Petzsch, Martin [mailto:[EMAIL PROTECTED] Sent: 09 August 2007 15:40 To: Struts Users Mailing List Subject: [s2] @ConversionErrorFieldValidator and

[s2] @ConversionErrorFieldValidator and Collections

2007-08-09 Thread Petzsch, Martin
Hi, I posted this a few days ago but have had no response as yet. I will probably raise this as an issue/bug soon unless it is obvious to someone on here that I have a mistake in my approach. I have a data bean which a jsp links into through an action. This bean contains a da

RE: [S2] Error Message display

2007-08-08 Thread Petzsch, Martin
Thanks for that. This is what I have ended up doing. It was more straightforward than I thought it would be anyway. Kind regards, Martin -Original Message- From: Zoran Avtarovski [mailto:[EMAIL PROTECTED] Sent: 08 August 2007 06:16 To: Struts Users Mailing List Subject: Re: [S2] Erro

[S2] Error Message display

2007-08-07 Thread Petzsch, Martin
Hi, Short of modifying the template for s:fielderror is there a way to retrieve just the text of the error message on a JSP? Even with the theme set to simple I get the following on my jsp: An Error Message What I want is just the message: An Error Message And then I am free to decorate it as

@ConversionErrorFieldValidator and Collections

2007-08-06 Thread Petzsch, Martin
Hi, I have a data bean which contains a date field. I annotate the set method with: @ConversionErrorFieldValidator(message="aDate: Conversion Error") @RequiredFieldValidator(message="aDate: Required Field") public void setADate(Date date) { aDate = date;

Cross Field Validation

2007-07-02 Thread Petzsch, Martin
Hi, I'm looking for an example of cross-field validation; preferably using annotations. I have the following on my action: @Validations( expressions={ @ExpressionValidator(expression="data.key eq 'd'",message="DNE") }

Validation of @SessionScoped Actions

2007-07-02 Thread Petzsch, Martin
Hi, I have an action which is annotated with @SessionScoped (using Guice as the object factory). When I attach validation to the fields, a validation message is added to the action each time I submit which means that I end up with multiple error messages appearing for each field. I unders

RE: Struts2

2007-06-28 Thread Petzsch, Martin
I filed this bug: https://issues.apache.org/struts/browse/WW-2015 I think this is a valid feature but agree it should be forced evaluation as I have in my example. Definitely think it needs to be fixed though. Kind regards, Martin -Original Message- From: Dave Newton [mailto:[EMAIL P

Struts2

2007-06-28 Thread Petzsch, Martin
Hi, I have the following: This is rendered on the page as: /ContactPointWeb/Home!%{leftMenuLinks[#stat.index].actionMethod} Which is fine - except; why is the OGNL in the method attribute not processed? If I move the expression in method into action it works fine but if I move t