Include feedback messages description on "alt" Image property
Hi again to everybody. After looking tons of examples related to wicket 1.2 I have no idea of how i can do the next: At this moment I cant show an error icon next to an erroneus field after submitting a form. The thing is that i must include the message feedback string as part of the "alt" property description. At this moment, i have a MyFormComponentFeedbackIndicator attached to the field i want to check, and when the error happens, the image is showed... but i have no idea of how a can manage the problem of the "alt" image attribute. If you don't mind I'm going to attach some code: MyFormComponentFeedbackIndicator -- public class MyFormComponentFeedbackIndicator extends FormComponentFeedbackIndicator { /** * */ private static final long serialVersionUID = 1L; private static final ResourceReference RESOURCE_REF = new ResourceReference(Page2.class, "error.png"); private FeedbackMessagesmessages = null; public MyFormComponentFeedbackIndicator(String id) { super(id); String prueba=null; prueba=""; FeedbackMessage message=null; Image imagen=new Image("imageModelResourceReference", new Model(RESOURCE_REF)); messages = Session.get().getFeedbackMessages(); Iterator it=messages.iterator(); while (it.hasNext()){ message=(FeedbackMessage)it.next(); prueba=message.getMessage().toString(); } imagen.add(new SimpleAttributeModifier("alt", prueba)); add(imagen); } } - MyFormComponentFeedbackIndicator.html piece of webpage class MyFormComponentFeedbackIndicator panelErrorSfid=null; sfid = new TextField("sfid"); sfid.setRequired(true); sfid.add(StringValidator.maximumLength(15)); sfid.setLabel(new Model("sfid")); panelErrorSfid=new MyFormComponentFeedbackIndicator("errorsSfid"); panelErrorSfid.setIndicatorFor(sfid); Is there any solution?Thanks so much in advance. -- View this message in context: http://www.nabble.com/Include-feedback-messages-description-on-%22alt%22-Image-property-tp16001976p16001976.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]
Ajax form validation... i can't get it work!
Sorry to disturb you again, guys, but i'm on a great problem. I have to delivered a prototype of a brand new application at my work, and we try to defense the idea of doing with wicket. The thing is that I must do a validation form like this (exactly, the same). http://wicketstuff.org/wicketdojo13/?wicket:bookmarkablePage=%3Aorg.wicketstuff.dojo.examples.validation.ValidationTestPageDisplayer Example I have been testing this example, but the problem is that there is a bug associated with my environment (wicket 1.3 and wicketDojo) and i can't get this example working, because I get a java.util.ConcurrentModificationException May anybody give a short example of how to do the same, but in another way? I'm in a hurry and it would be very appreciated... Thanks in advance and sorry again. -- View this message in context: http://www.nabble.com/Ajax-form-validation...-i-can%27t-get-it-work%21-tp15999612p15999612.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]
Re: FeedbackMessages per field
Thank you so mucho for your help. It works very well :D -- View this message in context: http://www.nabble.com/FeedbackMessages-per-field-tp15950642p15975736.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]
FeedbackMessages per field
Hello everybody! I’m a newbie with wicket and during my first examples I have had a problem that I don’t know how to solve. The fact is that I have the typical login form, and I want to notify the users possible errors by showing an icon error next to each input field, just like showed in the image attached. http://www.nabble.com/file/p15950642/sample.jpg Is there an easy way to do it, because I have been googleing, looking the wiki, reading the ajax examples… but nothing suits at all. I'm developing with wicket 1.3.1 Thanks in advance for your kindness ;D -- View this message in context: http://www.nabble.com/FeedbackMessages-per-field-tp15950642p15950642.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]