Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-17 Thread wicket21
I was looking for a "wicket" solution, but this is not a bad idea. I will try this later on today and see how it goes (it does seem straightforward enough...) Konstantinos Harald Gruber wrote: > > > you could write a HttpSessionListener: > > in your WEB-INF: > > > co

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-17 Thread wicket21
Eelco Hillenius wrote: > > On 6/17/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: >> thats not entirely correct. while the event cannot be pushed to you, you >> can >> pull for it. you can set a cookie with expiration null - such a cookie is >> destroyed when the window is closed. so you can poll

Re: [Wicket-user] 1) PropertyResolver and Lists 2) Page expiration in 1.3

2007-06-17 Thread Juha Alatalo
Eelco Hillenius wrote: >> Thanks. I had blocked cookies on my test site for some reason. Why >> cookies are needed in 1.3? In 1.2 that wasn't the case, was it? > > It shouldn't be the case now either; links should always be rewritten > so that it includes the jsessionid if the cookie is not availa

Re: [Wicket-user] noob question about wicket

2007-06-17 Thread Eelco Hillenius
> Yeah, you're right. I just found a similar entry in our pom. Gawd, why > don't they just do that automatically. our == Teachscape - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of

Re: [Wicket-user] noob question about wicket

2007-06-17 Thread Eelco Hillenius
Yeah, you're right. I just found a similar entry in our pom. Gawd, why don't they just do that automatically. Eelco On 6/17/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > If you look at the settings for the eclipse project in our parent > pom.xml you will see a setting that is responsible for

Re: [Wicket-user] noob question about wicket

2007-06-17 Thread Martijn Dashorst
If you look at the settings for the eclipse project in our parent pom.xml you will see a setting that is responsible for downloading the sources: org.apache.maven.plugins maven-eclipse-plugin 2.3 true Martijn On 6/18/07, Eelco Hillenius

Re: [Wicket-user] noob question about wicket

2007-06-17 Thread Eelco Hillenius
Just tested it and found an entry on their mailing list. In maven 2, at least the current version mvn eclipse:eclipse tries to download sources and javadocs automatically. Eelco On 6/14/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > I'm guessing it includes the source jars if they are in your

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-17 Thread Harald Gruber
you could write a HttpSessionListener: in your WEB-INF: com.my.SessionObserver class: public class SessionObserver implements HttpSessionListener { private static final Log LOG = LogFactory.getLog(SessionObserver.class); public void sessionCr

Re: [Wicket-user] Javascript Error using submit link in 1.3 that didn't happen in 1.2.5

2007-06-17 Thread Al Maw
oliver.henlich wrote: > I'm still having this problem on 1.3 snapshot. > > Interesting point about the markup (html id attribute). My markup looks like > this: > > > > And the generated javascript looks like this: > > [a onclick="var e=document.getElementById('formTransaction_hf_0'); > e.name=

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-17 Thread Al Maw
Eelco Hillenius wrote: >> well, I have a project where the requirement is to do some things when user >> logs out, otherwise the same user can't use the application for the next 30 >> minutes. It works fine when user uses the logout link, but I want the same >> behavior when the user closes the win

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-17 Thread Eelco Hillenius
On 6/17/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > thats not entirely correct. while the event cannot be pushed to you, you can > pull for it. you can set a cookie with expiration null - such a cookie is > destroyed when the window is closed. so you can poll for it ad if its gone > you know its

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-17 Thread Igor Vaynberg
thats not entirely correct. while the event cannot be pushed to you, you can pull for it. you can set a cookie with expiration null - such a cookie is destroyed when the window is closed. so you can poll for it ad if its gone you know its a new window being opened. in the same manner you can use w

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-17 Thread Eelco Hillenius
> well, I have a project where the requirement is to do some things when user > logs out, otherwise the same user can't use the application for the next 30 > minutes. It works fine when user uses the logout link, but I want the same > behavior when the user closes the window. Any hints how to do th

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-17 Thread wicket21
well, I have a project where the requirement is to do some things when user logs out, otherwise the same user can't use the application for the next 30 minutes. It works fine when user uses the logout link, but I want the same behavior when the user closes the window. Any hints how to do this? K

Re: [Wicket-user] [wicket-datetime] fire onchange() after date was selected with datepicker

2007-06-17 Thread Gerolf Seitz
done checkout https://issues.apache.org/jira/browse/WICKET-661 gerolf On 6/17/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > hi, > sometimes i'd like the datepicker to fire the onchange event of the > component it's bound to. > it doesn't seem to do it ootb. > > the main fix would probably o

Re: [Wicket-user] infinite loop

2007-06-17 Thread Eelco Hillenius
> could it be this code that's not logging the whole exception? > > protected void logRuntimeException(RuntimeException e) > { > log.error(e.getMessage(), e); > } That should typically print the stack trace if your logging configuration is set up properly.

Re: [Wicket-user] Javascript Error using submit link in 1.3 that didn't happen in 1.2.5

2007-06-17 Thread oliver.henlich
I'm still having this problem on 1.3 snapshot. Interesting point about the markup (html id attribute). My markup looks like this: And the generated javascript looks like this: [a onclick="var e=document.getElementById('formTransaction_hf_0'); e.name='linkAddEntry'; e.value='x';var f=document.

Re: [Wicket-user] infinite loop

2007-06-17 Thread Jonathan Locke
could it be this code that's not logging the whole exception? protected void logRuntimeException(RuntimeException e) { log.error(e.getMessage(), e); } Jonathan Locke wrote: > > > aha. we might have two of these bugs, but i'm getting this trace now. >

Re: [Wicket-user] infinite loop

2007-06-17 Thread Jonathan Locke
aha. we might have two of these bugs, but i'm getting this trace now. does anyone have any idea what line of code it is that is failing to print the stack trace for this NPE into the log? it looks like an NPE is causing the processing step to restart over and over again. would be a good fix t

Re: [Wicket-user] infinite loop

2007-06-17 Thread Jonathan Locke
this is not it. the server with the problem is not even running a proxy. any other ideas anyone? Al Maw wrote: > > I've seen this happen if you run behind a mod_proxy and fail to set up > the ProxyPassReverse setting properly. Make sure you have > ProxyPassReverseCookiePath, too. See the wik

Re: [Wicket-user] how to update component on parent page.

2007-06-17 Thread ravi.gidwani
Got the answer Just for the reference for others: http://www.nabble.com/Help%3A-modalwindow-question-tf3920367.html thanks & Regards, Ravi Gidwani. ravi.gidwani wrote: > > Hi all: > I have scenario: > > 1) I have a page (say Page1) with a link A and a Image (say img1) > 2) On clic

[Wicket-user] how to update component on parent page.

2007-06-17 Thread ravi.gidwani
Hi all: I have scenario: 1) I have a page (say Page1) with a link A and a Image (say img1) 2) On clicking link A, I open a ModalDialog (as a separate page). Say C. 3) There is a AjaxLink on this Page C (ModalDialog), on clicking this link, I do some processing and close the dialog. Now the

Re: [Wicket-user] AjaxLink not updating Image

2007-06-17 Thread ravi.gidwani
Also dont forget to : ajaxRequestTarget.add(label); ~Ravi Gidwani. ravi.gidwani wrote: > > Hey Jeremy, > You can try the attribute modifier. Try this: > > final Label label = new Label("image"); > > > AjaxLink someLink = new AjaxLink("

Re: [Wicket-user] AjaxLink not updating Image

2007-06-17 Thread ravi.gidwani
Hey Jeremy, You can try the attribute modifier. Try this: final Label label = new Label("image"); AjaxLink someLink = new AjaxLink(".") { public void onClick(AjaxRequestTarget ajaxRequestTarget) {

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-17 Thread Eelco Hillenius
> will this work when the user clicks the browser's close button as well? I'm afraid not. There is no way to detect that. It's a limitation of any web application. Eelco - This SF.net email is sponsored by DB2 Express Downlo

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-17 Thread wicket21
hi, will this work when the user clicks the browser's close button as well? Konstantinos Ken Leung-2 wrote: > > yes, looks like it does. thx, i 'll give it a try. > > > > > On 6/15/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: >> >> Not sure from the top of my head (don't have the pro

Re: [Wicket-user] Automatic page history discovery...need direction

2007-06-17 Thread Eelco Hillenius
> I would like to build my own breadcrumb type of navigation widget and I'm > looking for some direction as to what I might use to "discover" what page is > currently being served RequestCycle#getResponsePage does a best effort guess for getting the 'current' page. You can only use that method aft

Re: [Wicket-user] [wicket-datetime] fire onchange() after date was selected with datepicker

2007-06-17 Thread Eelco Hillenius
> hi, > sometimes i'd like the datepicker to fire the onchange event of the > component it's bound to. > it doesn't seem to do it ootb. > > the main fix would probably only meen to call the onchange() method of the > targetcomponent after the call to cal.hide() (line 236 in DatePicker.java) > > i c

Re: [Wicket-user] HomePage url changes when user returns from a second wicket page

2007-06-17 Thread Al Maw
howzat wrote: > Page A has this code in its constructor: > Link b = new Link("b"){ > public void onClick(){ > setResponsePage(B.class); > } > }; > add(b); This will always create a

[Wicket-user] AjaxLink works in FF2,IE7, Page Expired in IE6

2007-06-17 Thread Thies Edeling
AjaxLink works in FF2 and IE7, however in IE6 I get a Page Expired immediately. I saw some previous threads about the jsessionid not set but I doubt this is the same problem as it works in ff2/ie7. Any ideas? gr, Thies - T

Re: [Wicket-user] No parent in Panel ?

2007-06-17 Thread Thies Edeling
Ah, I did a target.addComponent on the replaced component. The parent of that component was set to null after the replaceWith, changing the addComponent to the newly created Panel works. Thies Edeling wrote: > Some extra info, the No Page found for component happens when I try to > replace the

Re: [Wicket-user] No parent in Panel ?

2007-06-17 Thread Thies Edeling
Some extra info, the No Page found for component happens when I try to replace the Panel in the onClick of an AjaxLink: public void onClick(AjaxRequestTarget target) { CalendarPanel panel = new CalendarPanel("sidePanel"); getParent().replaceWith(panel);

Re: [Wicket-user] No parent in Panel ?

2007-06-17 Thread Martijn Dashorst
If you look closely (or using a debugger) you can see that when you do: page.add(new MyPanel(...)); First the constructor is called, and only then the add method. At construction time the parent is not known yet. The example can be rewritten to make this more clear like: Panel p = new MyPanel(..

Re: [Wicket-user] TreeTable with nodes that are not links + rows with alternate background colours

2007-06-17 Thread howzat
Does any body have any ideas re the below from a few weeks ago? wicket: 1.2.6 wicket-extensions: 1.2.6 A couple of questions re TreeTable Is it possible to configure a TreeTable so its nodes are not links? So far, I have only found/tried tree.setLinkType(null) without achieving the desired

Re: [Wicket-user] HomePage url changes when user returns from a second wicket page

2007-06-17 Thread howzat
Page A has this code in its constructor: Link b = new Link("b"){ public void onClick(){ setResponsePage(B.class); } }; add(b); Page B has a no-args constructor. It has a li

[Wicket-user] No parent in Panel ?

2007-06-17 Thread Thies Edeling
I've got a panel extending the Panel class. When I add that panel to a Page, getPage can't seem to the find the parent and throws me a java.lang.IllegalStateException: No Page found for component [MarkupContainer [Component id = projectOverviewPanel, page = , path = projectOverviewPanel.Project

Re: [Wicket-user] [Question] wicket.markup.html.form.Radio

2007-06-17 Thread Alex Objelean
Thank you Tong, interesting approach. I make it work for me by adding AjaxFormSubmitingBehavior to the Radio component, just to keep in synch the model with the RadioGroup state. But your solution is more elegant. Kent Tong wrote: > > Alex Objelean isdc.ro> writes: > >> Thank you Jan! Sad

Re: [Wicket-user] Palette problem with latest snapshot

2007-06-17 Thread shumbola
Ok, here are new details for this. I was using following form: On Fri, 15 Jun 2007, shumbola wrote: >> A few days ago I've upgraded my project to the 1.3 snapshot from June 12. >> Before I was using a one from May 10. Today I noticed that my page which >> uses the Palette component stopped

Re: [Wicket-user] Palette problem with latest snapshot

2007-06-17 Thread shumbola
Ok, here are new details for this. I was using following form: palette and java source EditRoleForm(String str, Role role) { super(str, new CompoundPropertyMode(role)); *** add(new RequiredTextField("roleName"); add(new Palette(...); } and class Role { private int roleId; private S