[
https://issues.apache.org/jira/browse/WICKET-6202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15380629#comment-15380629
]
ASF subversion and git services commented on WICKET-6202:
---------------------------------------------------------
Commit a361d2f406fce748afc81ce109894f42310f2b2c in wicket's branch
refs/heads/master from [~mgrigorov]
[ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=a361d2f ]
WICKET-6202 Guide: 26.1 Page storing, section HttpSessionDataStore - example
code is not correct
> Guide: 26.1 Page storing, section HttpSessionDataStore - example code is not
> correct
> ------------------------------------------------------------------------------------
>
> 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: Martin Grigorov
> Priority: Trivial
> Fix For: 7.4.0, 6.24.0, 8.0.0-M2
>
>
> 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)