Hi, I want to recover the maxlength value of the year field rather than ...append("', 4, '")... as in the code below (4 is the maxlength value) :
final TextField year = new TextField("year"); myForm.add(year); year.setOutputMarkupId(true); final TextField month = new TextField("month"); month.setOutputMarkupId(true); myForm.add(month); year.add(new AttributeModifier("OnKeyUp", true, new Model() { @Override public Object getObject() { StringBuffer st = new StringBuffer(); st.append("Autotab('").append(year.getMarkupId()).append("', 4, '"). append(month.getMarkupId()).append("')"); return st.toString(); } })); -- View this message in context: http://www.nabble.com/how-to-recover-the-maxlength-value-tp16761987p16761987.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]