yeah. default impl. of isStateless should do this instead of return false
Johan Compagner wrote:
a page knows if it has statefull components.
Then the Page.urlFor(Component,interface) is called.
Or do i not see something here? IF that is not called then there is no
callback from the page.
If that is called somehow then it could be some kind of interface from
a component (Link click, Form submit or any interface)
and then the page is statefull because a callback can happen.
I think we just record that for a page. (IF
urlFor(Component,interface) is called) If not then a page is stateless
and it is not stored
in the page map. If it is called it has to be added to the pagemap.
johan
On 1/4/06, *Jonathan Locke* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
maybe when the component check flag is on we could look for any
stateful
components on the page.
Johan Compagner wrote:
> 'what happens if someone says isStateless == true but he does add a
> none bookmarkable link to it? Or a form?
>
> Can't we somehow know that a page is stateless? When no non
> bookmarkable links to the page itself are requested/made
> for that page a page could be stateless.
>
> I guess if Page.urlFor (final Component component, final Class
> listenerInterface) is never called for a page the page is stateless.
>
> johan
>
>
> On 1/1/06, *Jonathan Locke* < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
> <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>> wrote:
>
>
> I've implemented this for now as public boolean
Page.isStateless()
> (which returns false by default). There's no good reason
for an
> interface because IPageMapEntry's that are not Pages will
always be
> stateful. This provides a really easy way to mark any page.
>
> We could just remove BookmarkableWebPage or we could comment on
> how it's
> probably useless to most "real" applications (any
application where
> you've got your own base page, as you point out). In most cases
> you'll
> probably just have to create your own such class. I've done
this
> and it
> works nicely. I've got VoicetribeWebPage and
> VoicetribeBookmarkableWebPage extends VoicetribeWebPage.
> BookmarkableWebPage is useful if you are writing something
fairly
> trivial. In all other cases, it just gets in the way. Please
> remove if
> you don't like... or comment with a warning/explanation...
>
> jon
>
> Martijn Dashorst wrote:
> > It would most certainly help the communication... I
remember the
> > discussions concerning bookmarkable pages and bookmarkable
page
> links
> > all too good ;-)
> >
> > Would this mean that in order to be bookmarkable, a page
should
> > /always/ derive from BookmarkablePage?
> >
> > Shouldn't an interface be a much better solution?
> >
> > interface IBookmarkable {
> > public boolean isStateless();
> > }
> >
> > Or a better name should be ImNotInThePageMapEver?
> >
> > My reluctance for introducing a base page /class/ is that
it gets
> > really ugly when implementing application wide base pages.
In our
> > current web app we have AbstractBasePage,
AbstractSecureBasePage
> > (authenticated), and when you have both stateless pages and
> statefull
> > pages, you probably end up with a myriad of base page
classes, not
> > helping the maintenance. Marking pages for exclusion of
the pagemap
> > seems more flexible.
> >
> > Martijn
> >
> > On 1/1/06, SourceForge.net <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
> <mailto: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>>> wrote:
> >
> >> Bugs item #1394722, was opened at 2005-12-31 23:41
> >> Message generated for change (Tracker Item Submitted)
made by
> Item Submitter
> >> You can respond by visiting:
> >>
>
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1394722&group_id=119783
<https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1394722&group_id=119783>
>
<https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1394722&group_id=119783
<https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1394722&group_id=119783>>
> >>
> >> Please note that this message will contain a full copy of the
> comment thread,
> >> including the initial issue submission, for this request,
> >> not just the latest update.
> >> Category: core
> >> Group: 1.2
> >> Status: Open
> >> Resolution: None
> >> Priority: 9
> >> Submitted By: Jonathan Locke (jonathanlocke)
> >> Assigned to: Nobody/Anonymous (nobody)
> >> Summary: BookmarkableWebPage class
> >>
> >> Initial Comment:
> >> We should consider making a base class like this for
> >> bookmarkable pages. One advantage is that we could
> >> easily keep them out of the session entirely (since
> >> they are stateless). We could add Page.isStateless()
> >> and override this is BookmarkableWebPage to return
> >> true. Any stateless web page would not be added to
> >> PageMap. I could do this in about 15 minutes. I'd
> >> just like to discuss a little first. On the face of
> >> it, it seems like a good idea.
> >>
> >>
> >>
>
----------------------------------------------------------------------
>
> >>
> >> You can respond by visiting:
> >>
>
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1394722&group_id=119783
<https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1394722&group_id=119783>
>
<https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1394722&group_id=119783
<https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1394722&group_id=119783>>
> >>
> >>
> >> -------------------------------------------------------
> >> This SF.net email is sponsored by: Splunk Inc. Do you grep
> through log files
> >> for problems? Stop! Download the new AJAX search engine
that
> makes
> >> searching your log files as easy as surfing
the web. DOWNLOAD
> SPLUNK!
> >> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
<http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click>
> < http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
<http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click>>
> >> _______________________________________________
> >> Wicket-develop mailing list
> >> [email protected]
<mailto:[email protected]>
> <mailto:[email protected]
<mailto:[email protected]>>
> >> https://lists.sourceforge.net/lists/listinfo/wicket-develop
> >>
> >>
> >
> >
> > --
> > Living a wicket life...
> >
> > Martijn Dashorst - http://www.jroller.com/page/dashorst
> >
> > Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1
> <http://wicket.sourceforge.net/wicket-1.1>
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep
> through log files
> > for problems? Stop! Download the new AJAX search engine that
> makes
> > searching your log files as easy as surfing
the web. DOWNLOAD
> SPLUNK!
> > http://ads.osdn.com/?ad_idv37&alloc_id865&op
<http://ads.osdn.com/?ad_idv37&alloc_id%16865&op>
> < http://ads.osdn.com/?ad_idv37&alloc_id%16865&op
<http://ads.osdn.com/?ad_idv37&alloc_id%16865&op>>Ìk
> > _______________________________________________
> > Wicket-develop mailing list
> > [email protected]
<mailto:[email protected]>
> <mailto:[email protected]
<mailto:[email protected]>>
> > https://lists.sourceforge.net/lists/listinfo/wicket-develop
> <https://lists.sourceforge.net/lists/listinfo/wicket-develop>
> >
> >
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep
through
> log files
> for problems? Stop! Download the new AJAX search engine
that makes
> searching your log files as easy as surfing the web. DOWNLOAD
> SPLUNK!
> http://ads.osdn.com/?ad_idv37&alloc_id865&opclick
<http://ads.osdn.com/?ad_idv37&alloc_id%16865&opclick>
> <http://ads.osdn.com/?ad_idv37&alloc_id%16865&opclick
<http://ads.osdn.com/?ad_idv37&alloc_id%16865&opclick>>
> _______________________________________________
> Wicket-develop mailing list
> [email protected]
<mailto:[email protected]>
> <mailto: [email protected]
<mailto:[email protected]>>
> https://lists.sourceforge.net/lists/listinfo/wicket-develop
> < https://lists.sourceforge.net/lists/listinfo/wicket-develop>
>
>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through
log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD
SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&opclick
<http://ads.osdn.com/?ad_idv37&alloc_id%16865&opclick>
_______________________________________________
Wicket-develop mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/wicket-develop
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop