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: [email protected]
For additional commands, e-mail: [email protected]