Try adding the following line to that delteBtnClick method (as the last line):

   target.addComponent(tabPanel);

Linda

Gajo Csaba wrote:
This is what the link does in Wicket's source code:

new Link(linkId) {
           private static final long serialVersionUID = 1L;

           @Override
           public void onClick() {
               setSelectedTab(index);   // <-----
           }
       };


This is my code:
   /** Click on the Delete button */
   private void deleteBtnClick(AjaxRequestTarget target, Form<?> form) {
       TabbedPanel tabPanel = ((HomePage)getWebPage()).getTabbedPanel();
       tabPanel.setSelectedTab(0);      // <-------
   }

Wicket's code works, mine doesn't. I've tried with a button and an ajaxfallbacklink... Maybe I really should redirect to the same page with another parameter, like you did.




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to