Hi, Well, you do not tell a much about the issue...
So, several possible answers are: - You cannot add the listview in the target as it is a repeater, you should add its (or one of its) parent. - If you change the list, is your list a model ? (userTypeDomainList) Regards, Sebastien. On Sat, Jun 2, 2012 at 8:31 PM, kshitiz <k.agarw...@gmail.com> wrote: > Hi, > > I have a scenario like this: > > ListView<UserTypeDomain> userTypeDomainListView = new > ListView<UserTypeDomain>( > "userType", userTypeDomainList) { > > protected void populateItem(final > ListItem<UserTypeDomain> listItem) { > > listItem.add(new > SubmitPostPanel("submitPostPanel", > pageParameters, listItem, > userDomain)); > > } > } > > In SubmitPostPanel, I have a ajax button for submitting post. What I want > is > to refresh that listItem only which is passed in the Panel after submitting > post. I have tried out: > > *listItem.setOutputMarkupId(true);* > *listItem.setOutputMarkupPlaceholderTag(true);* > AjaxFallbackButton ajaxPostSubmitButton = new AjaxFallbackButton( > "postSubmitButton", postForm) { > > @Override > public void onSubmit(AjaxRequestTarget target, > final Form<?> form) { > *target.add(listItem);* > } > > But the item is not getting refreshed. How can I achieve my purpose? > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Refresh-listItem-only-of-listView-tp4649676.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 > >