Re: WildCard URL strategy for E-Commerce Products

2014-03-17 Thread Martin Grigorov
Hi, Thanks for sharing your solution! If you use Wicket 1.5+ it will be a bit easier - with your own impl of IRequestMapper you can read the passed request's url. This Url has #getSegments() method that returns a list of all path parameters. If the last segment is "productDetails" then you have t

Re: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

2014-03-17 Thread Martin Grigorov
Hi, On Sun, Mar 16, 2014 at 1:58 AM, lumo wrote: > I cant get rid of the message, nor can I log to a file. > > > Im my pom.xml I have the following dependency: > > > org.slf4j > slf4j-log4j12 > 1.7.6 >

Re: Can't access to the resources bundled in external jar files

2014-03-17 Thread Martin Grigorov
Hi, Put a breakpoint at org.apache.wicket.core.request.mapper.BasicResourceReferenceMapper#mapRequest(Request) and see what happens. If you are able to reproduce it with a quickstart application then please attach it to a ticket in Jira and we will check it. Martin Grigorov Wicket Training and Co

Re: Link to Wicket page from Javascript

2014-03-17 Thread Martin Grigorov
Hi, On Fri, Mar 14, 2014 at 9:25 PM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Hi, > > I would implement this as.. > > 1- A JS function that counts how much time has passed since last AJAX > request. Once a certain threshold is passed an AJAX request is sent to the > page. > 2- An

Re: Link to Wicket page from Javascript

2014-03-17 Thread Ernesto Reinaldo Barreiro
Martin, What I mean is something that triggers the sign out before serve side session expires... and trigger this expire event. https://github.com/reiern70/antilia-bits/blob/master/client-sign-out-parent/client-sign-out/src/main/java/com/antilia/signout/InactivitySignOutPanel.java https://github.

Re: Link to Wicket page from Javascript

2014-03-17 Thread Ernesto Reinaldo Barreiro
You can see it at work here http://107.170.4.97:9080/client-sign-out-demo/ On Mon, Mar 17, 2014 at 9:18 AM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Martin, > > What I mean is something that triggers the sign out before serve side > session expires... and trigger this expire eve

Testing a panel in isolation (component id not found).

2014-03-17 Thread Jens Jahnke
Hi, I'm trying to test a panel in isolation using `startComponentInPage(C)`. The test goes as follows: MyDataModel d = ... Panel p = new MyCustomPanel("id", new LoadableDataModel(d)); tester.startComponentInPage(p); Upon execution I get this output: Unable to find component with id 'id' in [MyC

Re: Testing a panel in isolation (component id not found).

2014-03-17 Thread Martin Grigorov
Hi, This is the right way. Can you show us the code that causes this error ? #startComponentInPage() should not fail with such error ... Martin Grigorov Wicket Training and Consulting On Mon, Mar 17, 2014 at 1:00 PM, Jens Jahnke wrote: > Hi, > > I'm trying to test a panel in isolation using `

Re: Testing a panel in isolation (component id not found).

2014-03-17 Thread Jens Jahnke
Hi, On Mon, 17 Mar 2014 13:05:57 +0200 Martin Grigorov wrote: MG> This is the right way. MG> Can you show us the code that causes this error ? MG> #startComponentInPage() should not fail with such error ... the exception is thrown at the line with tester.startComponentInPage, but here is the c

Re: Testing a panel in isolation (component id not found).

2014-03-17 Thread Martin Grigorov
Hi, I meant the test code that leads to the exception. On Mon, Mar 17, 2014 at 1:31 PM, Jens Jahnke wrote: > Hi, > > On Mon, 17 Mar 2014 13:05:57 +0200 > Martin Grigorov wrote: > > MG> This is the right way. > MG> Can you show us the code that causes this error ? > MG> #startComponentInPage()

Re: Testing a panel in isolation (component id not found).

2014-03-17 Thread Jens Jahnke
On Mon, 17 Mar 2014 13:38:29 +0200 Martin Grigorov wrote: MG> I meant the test code that leads to the exception. Okay, here it is: private WicketTester tester; @Before public void setUp() throws Exception { tester = new WicketTester(new MyApplication()); } @Test public void testRenderPane

Re: Testing a panel in isolation (component id not found).

2014-03-17 Thread Martin Grigorov
OK, I think I understand now. Martin Grigorov Wicket Training and Consulting On Mon, Mar 17, 2014 at 1:31 PM, Jens Jahnke wrote: > Hi, > > On Mon, 17 Mar 2014 13:05:57 +0200 > Martin Grigorov wrote: > > MG> This is the right way. > MG> Can you show us the code that causes this error ? > MG>

Re: Testing a panel in isolation (component id not found).

2014-03-17 Thread Jens Jahnke
On Mon, 17 Mar 2014 13:58:59 +0200 Martin Grigorov wrote: MG> This method doesn't add the children components. MG> So trying to render this panel (via #startComponentInPag(panelInstance)) MG> will fail because there are HTML elements with wicket:id in the markup MG> which have no Java counterpart

Re: Link to Wicket page from Javascript

2014-03-17 Thread Bruce Lombardi
Thanks, tis is very helpful. Bruce Sent from my iPad > On Mar 17, 2014, at 4:52 AM, Ernesto Reinaldo Barreiro > wrote: > > You can see it at work here > > http://107.170.4.97:9080/client-sign-out-demo/ > > > On Mon, Mar 17, 2014 at 9:18 AM, Ernesto Reinaldo Barreiro < > reier...@gmail.com>

Re: Close Browser Behavior

2014-03-17 Thread Daniela L
Hi, I have solved the problem, overriding valueUnbound in my custom session and updating the database with my @SpringBeans works when the session is expiring. My problem was that I was using data from my session in the @Repository Dao impl class like this: MyCustomSession.get() and that issued the