Re: AW: adjust my web application for smartphone like iPhone

2011-12-27 Thread David Legg
Both excellent suggestions - thanks! The thought had struck me that this problem is similar to localisation. Perhaps I could extend certain components to accept a style as well as a locale where necessary. David Legg -

Re: AW: adjust my web application for smartphone like iPhone

2011-12-27 Thread Serban Balamaci
Hi, The way I do this is to use the style attribute in the wicket session. Wicket's default ResourceStreamLocator looks for files with the pattern filename_style_locale.html and falls back to filename.html So I have a RequestCycleListener that decides based on headers what type of a request it

Re: handling session expiration feedback when clicking on bookmarkablepagelink

2011-12-27 Thread Ernesto Reinaldo Barreiro
Manuel, I don't know right now if there is a pure Wicket solution but you can always use a session listener [1] to record remotes IPs of destroyed sessions and use that info decide whether to show a message or not. Cheers, Ernesto 1-

Re: handling session expiration feedback when clicking on bookmarkablepagelink

2011-12-27 Thread manuelbarzi
it implies recording that user information somewhere. would prefer to avoid that. no chance to override or replace some piece of wicket api to handle this situation? . On Tue, Dec 27, 2011 at 4:10 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Manuel, I don't know right now if

handling session expiration feedback when clicking on bookmarkablepagelink

2011-12-27 Thread manuelbarzi
hi, this is wicket 1.4.19 ( cannot upgrade to 1.5). the scenary is: [1] when user is logged in [2] after inactive long time session expires [3] user clicks on bookmarkablepagelink [4] request handling automatically brings the user to homepage (default) if possible, what's the recommended way

Re: Using proxy server

2011-12-27 Thread Niranjan Rao
Anyone? It seems like getApplicationSettings does not have setContextPath method anymore. Relative paths also don't work properly as there are cross references between packages, so there is a scenario where relative paths fail. Based on the answer I got from this DL, I am now generating

Using JNDI from Jetty/Start.java

2011-12-27 Thread armhold
Has anyone got a JNDI config that works with Start.java under Wicket 1.5 (and therefore Jetty 7.5)? I've got JNDI working fine for my production Tomcat deployment, but can't seem to figure out which incantations are needed to get it working with Jetty for development/testing (I use Start.java to

Re: Using JNDI from Jetty/Start.java

2011-12-27 Thread Christian Huber
The server complains about a missing value for jndi context factory. Where do you define that value? The Sanity Resort http://sanityresort.blogspot.com/ Am 27.12.2011 19:41, schrieb armhold: Has anyone got a JNDI config that works with Start.java under Wicket 1.5 (and therefore Jetty 7.5)?

Dataview TextField problem

2011-12-27 Thread lang
I made a dataview with a textfield. Whatever I do, the screen value is never read. I looked for hours on the internet and it drives me crazy.. .. please help. br dataView = new DataViewOpdrachtVO(pageable, new OpdrachtVOProvider()){ private static final long

Re: handling session expiration feedback when clicking on bookmarkablepagelink

2011-12-27 Thread Igor Vaynberg
record their last access time in a cookie. then when your auth strategy descides to redirect to homepage it can check the cookie and decide to redirect to the expired error page instead. -igor On Tue, Dec 27, 2011 at 7:54 AM, manuelbarzi manuelba...@gmail.com wrote: it implies recording that

Re: Dataview TextField problem

2011-12-27 Thread Igor Vaynberg
instead of new PropertyModel(opdrachtVO,opdrachtBod ))); do new PropertyModel(item.getModel(),opdrachtBod ))); further, set the item reuse strategy on your dataview so if there is a form error you do not lose the state of the textfields. also show us your dataprovider#model() impl -igor

Re: Using JNDI from Jetty/Start.java

2011-12-27 Thread armhold
Thanks to a hint from Christian Huber I got it working. System.setProperty(java.naming.factory.url.pkgs, org.eclipse.jetty.jndi); System.setProperty(java.naming.factory.initial, org.eclipse.jetty.jndi.InitialContextFactory); EnvConfiguration envConfiguration = new EnvConfiguration();