[Wicket-user] Session timeout listener
Is there a way to call some method each time a session expires or is invalidated? I need to implement a cache for non-serializable objects. This cache must be separate for different users and objects must stay in this cache until the user logs out or session expires. I store these objects in a cache linked to the application object and keep numeric references to them in session. When session expires, I need some way to remove objects that were referenced by that session from the cache. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] getValue(), getInput(), and defaultFormProcessing
I have two questions. First one is what is the difference between getValue and getInput? Second one is how can I retrieve the value entered to the form component if defaultFormProcessing is set to false? These questions have arisen when I was trying to implement an editable multi-page table that was remembering changes while user navigates across the pages. I created page navigation links as SubmitLinks with defaultFormProcessing set to false. After each navigation values are read from inputs (although I'm not sure if I do read them in a right way) and models are updated manually. This was necessary because the table's form has lots of validation on it and this validation shouldn't pop up when navigationg between pages. Maybe, there is an easier way to do this? - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Buttons and Forms
By the way, the current implementation of default button ruins design sometimes (I do not exactly remember the case right now, but I can try to reproduce if necessary). I was forced to rewrite the appendDefaultButtonField to add position: absolute to the default pseudo-button. @Overrideprotected void appendDefaultButtonField(final MarkupStream markupStream, final ComponentTag openTag){final AppendingStringBuffer buffer = new AppendingStringBuffer();// get the value, first seeing whether the value attribute is set by a model String value = this.getDefaultButton().getModelObjectAsString(); if (value == null || .equals(value)) { // nope it isn't; try to read from the attributes // note that we're only trying lower case here value = this.getDefaultButton().getMarkupAttributes().getString(value); } // append the button final String userAgent = ((WebClientInfo)this.getSession().getClientInfo()).getUserAgent(); buffer .append(input type=\submit\ value=\).append(value).append(\ name=\) .append(this.getDefaultButton().getInputName()).append(\); if (userAgent != null userAgent.indexOf(MSIE) != -1) { buffer.append(style=\width: 0px; height: 0px; position: absolute;\); } else { buffer.append( style=\display: none\); } buffer.append(/); this.getResponse().write(buffer);} - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Form submission and model updating
Thanks, the framework really works the most convenient way, even if it is not always obvious :) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Form submission and model updating
Is it possible to update models even if form validation failed? I have a large form and I don't want user to lose all entered data just because of one mistake. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Turning logging off
I would like to turn off some loggers (especially the one in the CryptedUrlWebRequestCodingStrategy). How can I do it? Thanks in advance. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Proxessing uncaught exceptions
If you want to get hold on the actual exception that has been thrown you need to override the ExceptionResponseStrategy in DefaultWebRequestCycleProcessor. Thanks, it's exactly what I wanted :) - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Proxessing uncaught exceptions
Is it possible to override standard Wicket exception page? I would like to throw exceptions on lower levels and have a generic error page that will display messages from custom exceptions and something like internal error for system exception. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user