Hi, I have 2 FeedbackPanels on my screen and whenever i try to set error it
gets added to both the FeedbackPanels.
final FeedbackPanel panel1 = new FeedbackPanel("panel1");
final FeedbackPanel panel2 = new FeedbackPanel("panel2");
//vdp & gdp are some dataproviders i have
if (vdp.hasError()){
toonMeer.setVisible(false);
vertegenwoordigdeMelding.error(this.funcMeldingen.getMessage(vdp.getErrorcode()));
vertegenwoordigdeMelding.add(new
AttributeModifier("style",
"color:red"));
vertegenwoordigdeMelding.setVisible(true);
}else if((int)vdp.size() == 0){
vertegenwoordigdeMelding.info("U bent door niemand
vertegenwoordigde");
vertegenwoordigdeMelding.add(new
AttributeModifier("style", ""));
vertegenwoordigdeMelding.setVisible(true);
}
if (gdp.hasError()){
toonMeer2.setVisible(false);
gemachtigdeMelding.error(this.funcMeldingen.getMessage(gdp.getErrorcode()));
gemachtigdeMelding.add(new AttributeModifier("style",
"color:red"));
gemachtigdeMelding.setVisible(true);
}else if((int)gdp.size() == 0){
gemachtigdeMelding.info("U bent door niemand
gemachtigd");
gemachtigdeMelding.add(new AttributeModifier("style",
""));
gemachtigdeMelding.setVisible(true);
}
I have a listView as well which sets the error in certain scenarios:
if(this.panel.equalsIgnoreCase("panel1")){
this.getParent().getParent().get("panel1").error("some message");
this.getParent().getParent().get("panel1").setVisible(true);
}else{
this.getParent().getParent().get("panel2").error("some message");
this.getParent().getParent().get("panel2").setVisible(true);
}
The code works but the messages are displayed in both the FeedbackPanels.
Could you please guide me in right direction?
Thanks.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Issues-with-multiple-FeedbackPanels-tp4670087.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]