[Wicket-user] Re: Page expiration

2006-02-04 Thread Johan Compagner
first areyou sure that the sidebar uses cookies so that we know the session?

does the ajax work in a normal tab main webpage?
that opening looks like a thing of firefox

dont know about 3 need to see some example for that

On 2/4/06, Mark Derricutt [EMAIL PROTECTED] wrote:
 Hey all,

 I've started playing with AjaxSelfUpdatingTimerBehavior's in my simple
 wicket application (CVS snapshot of Wicket ~1day old) and noticed some odd
 behaviour:


1. The moment the AJAX update occurs, if I submit any forms on the
page, I get redirected to a Page Expired page.  Is this configurable?
 I
can imagine a page being expired if a session timed out, but this is only
like after 5 seconds.
2. I'm running my application from the Firefox sidebar, the default
Page Expired page has a link to Return to home page which loads the
 home
page in tthe first firefox tab, not the side bar.  There doesn't seem to
 be
any target's on the HREF so I'm not sure why its opening in the main page
:(  Any ideas?
3. If I add an AjaxSelfUpdatingTimerBehavior behaviour to a Label
thats part of a ListView, wicket crashes out, I tried adding a
MarkupIdSetter.INSTANCE behaviour like I've seen in the Ajax clock
example but no joy.

wicket.WicketRuntimeException: Unable to determine markup for
 component: [Component id = activityTime, page =
 wicket.quickstart.Index, path = 0:activities:0:activityTime.Label,
 isVisible = true, isVersioned = true]
 at wicket.Component.getMarkupId(Component.java:690)
 at
 wicket.ajax.AjaxSelfUpdatingTimerBehavior.onComponentTag(AjaxSelfUpdatingTimerBehavior.java:50)
 at
 wicket.behavior.AbstractAjaxBehavior.onComponentTag(AbstractAjaxBehavior.java:146)



 Any one got any ideas?

 PS: Loving the simplicity of the AJAX behaviors - very nice.

 --
 i like my video games - mamma said they are gonna melt my brains
 i like my video games - i don't care what daddy said; they're my reality
   - henning pauly




---
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://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: Page expiration

2006-02-04 Thread Mark Derricutt
On 2/5/06, Johan Compagner [EMAIL PROTECTED] wrote:
dont know about 3 need to see some example for thatIt seems to add the first component but dies on subsequent ones. Looking at the generated markup I see:
span wicket:id=totalTime id=totalTime
848/spanHere the id is being set to the wicket id, and doesn't include any path information such as 1:totalTime which is mentioned in the wicketAjaxGet() call.
Inside a ListView I'd expect something akin to:span wicket:id
=totalTime id=1:totalTime848/span
span wicket:id=totalTime 
id=2:totalTime848/spanWhich uniquely identifies each of the elements.The way I have my ListView setup is:
 private class ActivityListView extends ListView { public ActivityListView(String component, List list) { super(component, list); } public void populateItem(final ListItem listItem) {
 final Activity activity = (Activity) listItem.getModelObject(); listItem.add(new Label(name, activity.getName())); Label label = new Label(description, 
activity.getDescription()); label.setEscapeModelStrings(false); listItem.add(label); listItem.add(new WorkItemsListView(workItems, activity.getWorkItems()));
 Label labelTime = new Label(activityTime, new MyAbstractReadOnlyModel(activity)); listItem.add(labelTime); labelTime.add(new AjaxSelfUpdatingTimerBehavior(60 * 1024));
 ..-- i like my video games - mamma said they are gonna melt my brainsi like my video games - i don't care what daddy said; they're my reality- henning pauly


Re: [Wicket-user] Re: Page Expiration

2005-11-02 Thread Eelco Hillenius
I wasn't too impressed by WADI's progress to be honest. Seems to be
yet another dead project.

Eelco


On 11/1/05, Dan Gould [EMAIL PROTECTED] wrote:
 Thanks Eelco--

 For anyone else who is looking, the param in web.xml is
 session-config
 session-timeoutTIME_IN_MINUTES/session-timeout
 /session-config

 if you set it to 0, it will never expire session, but I assume that
 memory will quickly become an issue.

 In Tomcat, it looks like there's an optional Store called
 org.apache.catalina.session.PersistentManager
 that will let you persist sessions to a file ot JDBC database.  This might
 let you keep sessions around forever.  It is not designed for clusters,
 however.

 WADI (wadi.codehaus.org) may solve this for clusters.

 In the meantime, I'll convert a lot of my links to
 BookmarkablePageLinks...

 Thanks again,
 Dan


 ---
 SF.Net email is sponsored by:
 Tame your development challenges with Apache's Geronimo App Server. Download
 it for free - -and be entered to win a 42 plasma tv or your very own
 Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user