Re: Easy fast question, properties ´file for valida tion....
On Tue, Jun 15, 2010 at 4:03 PM, Victor_Trapiello vic...@trapiello.netwrote: I do not know wghy is not rendering my property field, I was doing a king prove of concept, and I ahve this 2 files: ( I do not have border and nothing, can you see a anything¿? **Home.java*** */ public class HomePage extends WebPage { private static final long serialVersionUID = 1L; */ public HomePage(final PageParameters parameters) { // Add the simplest type of label add(new Label(message, If you see this message wicket is properly configured and running)); FeedbackPanel fbp=new FeedbackPanel(fbp); Model campoModel=new Model(); TextField campo =new TextField(campo, campoModel); campo.setRequired(true); Form formulario=new Form(formulario); formulario.add(campo); add(formulario); add(fbp); // TODO Add your page's components here } } ***Home.properties*** at the same level as the other one Required=my custom messages ${label} formulario.campo.Required=my custome message for my form!!! thank you very much guy -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Easy-fast-question-properties-file-for-validation-tp2256542p2256542.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Are you asking why your Required strings are not being rendered? If so, please check that your properties file has the same name as your java file. There are some inconsistencies in your email - not sure if this is just a typo in the email or what -- Jeremy Thomerson http://www.wickettraining.com
Re: Easy fast question, properties ´file for valida tion....
On Tue, Jun 15, 2010 at 4:25 PM, Victor_Trapiello vic...@trapiello.netwrote: Hello mate, thank you very much for your fast reply I´m asking why my messages (the ones that I put in my property file are not appearing), as you can see I have put the same name in both files, Home.java and Home.properties I´m doing somethiong wrong... I know but.. what¿? cheersss -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Easy-fast-question-properties-file-for-validation-tp2256542p2256573.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org What I'm saying is that somewhere you have an error in naming - either in your code, or in the email. You say that your file is named Home.java, but the code is for the HomePage class. This would create a compile error. So, it seems possible that your file is actually HomePage.java, in which case your properties file should be HomePage.properties. -- Jeremy Thomerson http://www.wickettraining.com