Hi !

I use FeedbackPanel.anyMessage() method.
This method doesn't work perfectly with version 7.0.0-M6 and 7.0.0 (from 1.4
to 7.0.0-M5 were correct).
So I use my project with 7.0.0-M5 version :( 
This is my code:

package aa;
import org.apache.wicket.AttributeModifier;
import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.markup.html.panel.FeedbackPanel;
import org.apache.wicket.markup.html.panel.Panel;
public class MyFeedback extends Panel {
  // -----
  FeedbackPanel feedback;
  // -----
  public MyFeedback(String id, String width) {
    super(id);
    // border
    WebMarkupContainer border = new WebMarkupContainer("border"){
      @Override
      public boolean isVisible() {
        return feedback.anyMessage(); // !!! BUG !!!
      }
    };
    add(border);
    String style = "display: inline-block;";
    if (width != null) style += " width: " + width + ";";
    border.add(new AttributeModifier("style", style));
    border.add(feedback = new FeedbackPanel("feedback"));
  }
  // -----
}

Bye, xesj

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Bug-in-Wicket-7-0-0-M6-and-7-0-0-tp4671890.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to