Try setOutputMarkupPlaceholderTag(true)

2012/7/1 kshitiz <k.agarw...@gmail.com>:
> Hi,
>
> I am using a panel with setVisible false on a condition. But it is not
> getting rendered when its visibility becomes true. Here is  the code :
>
> *final ShowCommentPanel showCommentPanel = new ShowCommentPanel(
>                                 "showCommentPanel", postDomain, userDomain, 
> 3);
>                 showCommentPanel.setOutputMarkupPlaceholderTag(true);
>                 showCommentPanel.setVisible(!commentDomainList().isEmpty());
>         *
>
> AjaxFallbackButton ajaxCommentSubmitButton = new AjaxFallbackButton(
>                                 "commentSubmitButton", commentForm) {
>
>         @Override
>                         public void onSubmit(AjaxRequestTarget target, final 
> Form<?> form) {
>
>
>                                 if (target != null) {
>
>                                         try {
>                                 // some processing
>                                         } catch (Exception exception) {
>                                                 error(exception.getMessage());
>                                         }
>                                         *target.add(showCommentPanel);*
>                                 }
>                         }
>
>
>
>                 };
>
> what can be the problem?
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/setOutputMarkupPlaceholderTag-not-working-to-render-panel-with-setvisible-false-tp4650313.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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to