Hi Martin,
thanks so much for the replies... almost done, some little questions still
there.. I got it working, could you verify that its right what I made? :)

*//Had Error: Wrong number of type arguments, required 2 - It works when I
do  IVisitor<Component,Void> ;-) 
public class ShinyFormVisitor implements IVisitor<Component>,Serializable {*

    Set visited = new HashSet();

    public void component(final Component c, final IVisit<Void> visit
/*[2]*/) {
        if (!visited.contains(c)) {
            c.add(new RequiredBorder());
            c.add(new ValidationMsgBehavior());
            c.add(new ErrorHighlightBehavior());


    private class ValidationMsgBehavior extends Behavior {

        public void onRendered(Component c) {
            FormComponent fc = (FormComponent) c;
            if (!fc.isValid()) {
                String error;
                if (fc.hasFeedbackMessage()) {
                  * //Had error, now working with this.. thats right?
                    error =
                } else {
                    error = "Your input is invalid.";
                        "<div class=\"validationMsg\">" + error + "</div>");

2) Do you know any good wicket tutorials/example where I can learn how to
work with customized FeedbackMessages?


View this message in context: 
Sent from the Users forum 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

Reply via email to