my hive file:
grant
{
permission ${ComponentPermission} "wm.wicket.pages.HomePage", "inherit,
render";
permission ${ComponentPermission} "wm.wicket.pages.HomePage", "enable";
permission ${ComponentPermission} "wm.wicket.pages.ManageCenterPage",
"inherit, render";
permission ${ComponentPermission} "wm.wicket.pages.ManageCenterPage",
"enable";
permission ${ComponentPermission} "wm.wicket.pages.UserAccountFormPage",
"inherit, render";
permission ${ComponentPermission} "wm.wicket.pages.UserAccountFormPage",
"enable";
};
BaseSecurePage extend SecureWebPage:
public class BaseSecurePage extends SecureWebPage {
private static final long serialVersionUID = 1L;
protected static final Logger logger =
LoggerFactory.getLogger(BaseSecurePage.class);
public BaseSecurePage() {
final HeaderPanel headerPanel = new HeaderPanel();
headerPanel.setRenderBodyOnly(true);
add(headerPanel);
}
...
}
when i add link to headerPanel, the link(both wicket's Link and swarm
SecurePageLink) will not render(not visible), but when i change my
BaseSecurePage extend WebPage, the link will visible.
my link create code in HeaderPanel as follow:
public class HeaderPanel extends BasePanel {
public HeaderPanel() {
//general link
Link logoff = new Link("logoff")
{
private static final long serialVersionUID = 1L;
public void onClick()
{
WaspSession waspSession =
((WaspSession)getSession());
LoginContext loginContext =
((wm.wicket.Application)getApplication()).getLogoffContext();
if (waspSession.logoff(loginContext))
{
// homepage is not allowed anymore so
we end up at the loginpage
setResponsePage(Application.get().getHomePage());
waspSession.invalidate();
} else {
error("A problem occured during the
logoff process, please try again or
contact support");
}
}
};
add(logoff);
//Swarm Secure Link
final SecurePageLink lnkCreateUserAccount = new
SecurePageLink("toCreateUserAccount", UserAccountFormPage.class);
lnkCreateUserAccount.setAutoEnable(true);
add(lnkCreateUserAccount);
....
}
}
I want to know why link not render, if my hive file has some problem, how to
change hive config file for can show link
--
View this message in context:
http://www.nabble.com/why-swarm-not-render-link-tp17041821p17041821.html
Sent from the Wicket - User mailing list archive at Nabble.com.