The spring service is what it is complaining about not being serializable.
private void build(final String ahId, final int tab) {
List tabs=new ArrayList();
tabs.add(new AbstractTab(new ResourceModel("common.summary")){
private static final long serialVersionUID = 1L;
public Panel getPanel(String panelId)
{
return new SummaryPanel(panelId, AHBasePage.getASM
().getRequest(ahId));
}
}); // this is tab 0 // getASM() is a spring service
Credentials creds =
((INLWebSession)getSession()).getCredentials((WebRequest)getRequest());
UserPrivileges userPrivs = creds.getPrivileges();
if (userPrivs.hasPrivilege(
CredentialsConstants.PRIV_CATG_AUTOMATED_REQUESTS ,
CredentialsConstants.ACTION_PRIV_UPDATE)){
tabs.add(new AbstractTab(new ResourceModel("common.details")) {
private static final long serialVersionUID = 1L;
public Panel getPanel(String panelId)
{
return new DetailPanel(panelId, AHBasePage.getASM
().getRequest(ahId));
}
}); // this is tab 1 // getASM() is a spring service
}
TabbedPanel tPanel = new TabbedPanel("tabs", tabs);
tPanel.setOutputMarkupId(true);
tPanel.setSelectedTab(tab);
add(tPanel);
Thanks for the assistance,
-Shawn
On 6/11/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
how are you creating your itab/abstracttab objects? can we see that code?
mainly what model do you pass in for the title.
and what object does it say is not serializable?
-igor
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user