Hi,
I have built a page that is stateless (bookmarkable) that accepts
PageParameters.
Now, this page inherits from a page that accepts PageParameters AND another
parameter.

public final class UserBrowserPage extends EntityBrowserPage {
  public UserBrowserPage(PageParameters pageParameters) {
    super(pageParameters, Const.LOCALIZATION_USER_PREFIX, "personId");
    ...
  }
}

And:
public abstract class EntityBrowserPage extends StyledSecuredBasePage {
  public EntityBrowserPage(PageParameters pageParameters, String
localizationPrefix,
            String localizationPostfix) {
     ...
  }
}

Now, the prefix and postfix are not used for class members.
They're used to create a Panel in the constructor and that's all.

To my understanding, the UserBrowserPage is stateless.
I even do in the Application a mounting: mount(new
QueryStringUrlCodingStrategy("/userBrowser", UserBrowserPage.class));
Which implies that it is stateless page.

Am I correct?

what happens if a sub class is a stateless page (has no parameters
constructor or only with PageParameters), but the parent page is stateful
(gets in the constructor parameters and stores them in class members)?

Hope I was clear :)

Thanks

-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

Reply via email to