Re: textfield escapes name attribute

2010-07-24 Thread Michal Ciasnocha
Hi Björn, I think it is general problem with naming attributes in local languages. Best practice for Java (and other programming languages) is use only some characters (that means a - z, numbers and underscore). Why didnt use for attribute "stra*ß*e" its equivalent like "strasse"? It saves y

Re: Display GregorianCalendar Objects

2010-07-27 Thread Michal Ciasnocha
Why don't use Struts tag s:date for date formatting? in Action: public GregorianCalendar getMyDate() { return new GregorianCalendar(); } in jsp: Michal Hi all, i do it like that: in my POJO GregorianCalendar field, on my jsp text field + jquery calendar. If You want to create date i

Re: Display GregorianCalendar Objects

2010-07-28 Thread Michal Ciasnocha
In that case you must use own converter like this: public class DateTimeConverter extends StrutsTypeConverter { @Override public Object convertFromString(Map context, String[] values, Class toClass) { try { return DateUtil.getConvertedDate(values[0], DateUt

Re: getting label from property

2010-07-28 Thread Michal Ciasnocha
Hi Ryan, for getting translated text as label of select tag (and other tags) use "key" attribute. Usage is same as . Best regards, Michal Ryan Beckes wrote on 28.7.2010 20:16: Hi All, I'm working my way through properties and I'm kind of stuck. I have a properties file (package.propertie

Re: Get i18n text problem

2010-08-09 Thread Michal Ciasnocha
Hi Franz, you can use tag for text translation (where "title" is name of your variable). Best regards, Michal Franz Wong wrote on 9.8.2010 5:14: Hi group, In the jsp page, I have a page scope variable "title". This variable stores the key of the resource bundle. I can print the value by

Re: I cant load Select Box dynamically

2010-08-27 Thread Michal Ciasnocha
Hi, in class CountryAction you need assign retreived values from database to countryList attribute, not list (you have in jsp ... list="countryList" ...). vinodh r wrote on 27.8.2010 7:04: Hi,I cant load Select box dynamically. I am new to struts2, but i can do it statically in action page

Re: I cant load Select Box dynamically

2010-08-27 Thread Michal Ciasnocha
eply. Thanks in advance. Vinodh .R--- On Fri, 8/27/10, Michal Ciasnocha wrote: From: Michal Ciasnocha Subject: Re: I cant load Select Box dynamically To: "Struts Users Mailing List" Date: Friday, August 27, 2010, 3:14 AM Hi, in class CountryAction you need assign retreived value

Re: org.xml.sax.SAXParseException: The content of element type "package" must match

2010-09-02 Thread Michal Ciasnocha
Check this, it can help you http://struts.apache.org/2.1.8/docs/strutsxml-examples.html Satheesh Kannan A B wrote on 2.9.2010 16:50: Hi, I think it's a existing and resolved issues in struts 2.1.8, since I have googled and searched here but am not able to resolve this. Currently am config

Re: Cancel in a form re: bypass Validation

2010-12-09 Thread Michal Ciasnocha
Hi Greg, I use in my code @SkipValidation annotation for method which I don't want to validate. For me it is easier than use interceptors. @SkipValidation public String cancel() { return SUCCESS; } The second part - redirect - I hope is correct. Regards, Michal. Greg Akins wrote on 9.1

Re: Struts2 and Validation issue

2011-02-16 Thread Michal Ciasnocha
Hi, the problem of validation through annotations is they are applied every time the action is called. You can try use method which you call from your form. For example, if you want to validate only execute method, write your own method with name validateExecute(). The principle is same for a

Re: Struts2 json plugin problem with jpa entity

2011-03-31 Thread Michal Ciasnocha
Hi Massimo, it might be similar problem with combination JPA and GWT. Read something about this on google code http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html (section Why Hibernate Objects ...). One solution is use own Data Transfer Objects. Regards, Michal Mass