Thanks, it is working but some wierd thing is happening. I have checked the values in the object also it is getting populated but just one component is visible otherwise none.
PriceVO priceVO if(priceVO.getOnSalePrice()!=null) add(new Label("onSalePrice", " " + priceVO.getOnSalePrice())).setVisible(true); else add(new Label("onSalePrice", "")).setVisible(false); if(priceVO.getRegularPrice()!=null) add(new Label("regularPrice", "Reg. Price : " + priceVO.getRegularPrice())).setVisible(true); else add(new Label("regularPrice", "")).setVisible(false); if(priceVO.getSavePrice()!=null) add( new Label("youSave", "You Save :" + priceVO.getSavePrice())).setVisible(true); else add( new Label("youSave", "")).setVisible(false); if(priceVO.getPlanPrice()!=null) add(new Label("planPrice", " " + priceVO.getPlanPrice()+ " per month")).setVisible(true); else add(new Label("planPrice", "")).setVisible(false); if the planPrice is getting populated then everything should be invisible that is working fine but in some scenarios only regular price is getting populated at that time nothing is displayed. Please Advise. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/enabling-and-disabling-the-components-tp4651107p4651188.html 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