You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Jan Lühr (JIRA)" <ji...@apache.org> on 2016/07/15 14:39:20 UTC
[jira] [Updated] (WICKET-6202) 26.1 Page storing -
HttpSessionDataStore incorrect
[ https://issues.apache.org/jira/browse/WICKET-6202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Lühr updated WICKET-6202:
-----------------------------
Description:
Is:
The example does not compile
- new DefaultPageManagerProvider() does not exist. The application is needed as an attribute.
- pageManagerContext is not visible. A getter must be used.
Proposal / working example:
{code:title=Example.java|borderStyle=solid}
@Override
public void init(){
super.init();
setPageManagerProvider(new DefaultPageManagerProvider(this){
@Override
protected IDataStore newDataStore() {
return new HttpSessionDataStore(getPageManagerContext(), new PageNumberEvictionStrategy(20));
}
});
}
{code}
was:
Is:
The example does not compile
- new DefaultPageManagerProvider() does not exist. The application is needed as an attribute.
- pageManagerContext is not visible. A getter must be used.
Proposal / working example:
{code:title=Example.java|borderStyle=solid}
@Override
public void init(){
super.init();
setPageManagerProvider(new DefaultPageManagerProvider(this){
@Override
protected IDataStore newDataStore() {
return new HttpSessionDataStore(getPageManagerContext(), new PageNumberEvictionStrategy(20));
}
});
}
{code}
> 26.1 Page storing - HttpSessionDataStore incorrect
> --------------------------------------------------
>
> Key: WICKET-6202
> URL: https://issues.apache.org/jira/browse/WICKET-6202
> Project: Wicket
> Issue Type: Bug
> Components: guide
> Affects Versions: 7.3.0
> Reporter: Jan Lühr
> Assignee: Andrea Del Bene
> Priority: Trivial
>
> Is:
> The example does not compile
> - new DefaultPageManagerProvider() does not exist. The application is needed as an attribute.
> - pageManagerContext is not visible. A getter must be used.
> Proposal / working example:
> {code:title=Example.java|borderStyle=solid}
> @Override
> public void init(){
> super.init();
> setPageManagerProvider(new DefaultPageManagerProvider(this){
> @Override
> protected IDataStore newDataStore() {
> return new HttpSessionDataStore(getPageManagerContext(), new PageNumberEvictionStrategy(20));
> }
> });
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)