Please help me ....I am really not able to understand why it is
happening....The form is really simple now:
public Search(final PageParameters pageParameters) {
super(pageParameters);
Form<SearchDomain> searchForm = new
Form<SearchDomain>("searchForm",
new
CompoundPropertyModel<SearchDomain>(searchDomain));
* final SearchResultPanel searchResultPanel = new
SearchResultPanel(
"searchResultPanel", searchDomain);
searchResultPanel.setOutputMarkupId(true);
searchResultPanel.setOutputMarkupPlaceholderTag(true);
*
searchForm.setModelObject(searchDomain);
// defining text field for user to search
final RequiredTextField<String> searchTextField = new
RequiredTextField<String>(
"search", Model.of(searchDomain.getSearch()));
AjaxFallbackButton ajaxSearchButton = new AjaxFallbackButton(
"searchButton", searchForm) {
@Override
public void onSubmit(AjaxRequestTarget target, final
Form<?> form) {
if (target != null) {
try {
* target.add(searchResultPanel);*
} catch (Exception exception) {
error(exception.getMessage());
}
}
}
};
* searchForm.add(searchTextField);
searchForm.add(searchResultPanel);
searchForm.add(ajaxSearchButton);
add(searchForm);
* }
And SearchResultPanel is:
*public SearchResultPanel(String id, final SearchDomain searchDomain) {
super(id);
Label label = new Label("temp", new
LoadableDetachableModel() { @Override
protected Object load() { return
searchDomain.getSearch(); }});
add(label);
}
*
/But still, resultPanel is not displaying search text after being
refreshed..that is the panel is not getting refreshed...!!! In every example
I have seen in forums, it is done in the same manner...then why it is not
happening..!!!!!!! I am using wicket 1.5...
/
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Panel-not-getting-refreshed-tp4649807p4649857.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]