Re: Back button

2010-04-24 Thread Igor Vaynberg
the exception might have caused your page to not be serialized
properly into the pagestore

-igor

On Sat, Apr 24, 2010 at 6:06 PM, Douglas Ferguson
 wrote:
> I just saw the issue again, but this time it happened right after an 
> exception. I got an except. Hit back and then it complained that the link 
> didn't exist.
>
> D?
>
> On Apr 24, 2010, at 6:58 PM, Douglas Ferguson wrote:
>
>> Ah yes..
>>
>> I am definitely seeing the "component not found on page" error.
>>
>> Any tips on how to get a quick start for this? Anybody got any example 
>> quickstarts that deal with back button issues?
>>
>> D/
>>
>> On Apr 24, 2010, at 6:41 PM, Igor Vaynberg wrote:
>>
>>> then you would get a page-expired error
>>>
>>> -igor
>>>
>>> On Sat, Apr 24, 2010 at 3:34 PM, Douglas Ferguson
>>>  wrote:
 Well something is happening, because I see it in the production logs and 
 from time to time on my dev machine.

 What if the server is restarted?

 D/

 On Apr 24, 2010, at 11:09 AM, Igor Vaynberg wrote:

> that doesnt matter because the url of the link you click contains the
> version number of the page
>
> -igor
>
> On Sat, Apr 24, 2010 at 2:35 AM, Pointbreak
>  wrote:
>> In firefox it doesn't. Firefox reads the page back from it's in memory
>> cache, which is the state before you clicked the ajax link. The headers
>> should be changed to force firefox to request the page from the server
>> (wicket). There are other threads on this subject, and frankly I do not
>> understand why the headers are not changed in wicket core.
>>
>> On Fri, 23 Apr 2010 21:45 -0700, "Igor Vaynberg"
>>  wrote:
>>> the back button should roll the page back to the state that contained 
>>> the
>>> item
>>>
>>> -igor
>>>
>>> On Fri, Apr 23, 2010 at 9:28 PM, Douglas Ferguson
>>>  wrote:
 Could this possibly happen if the following occurred.

 1) Load a page with a repeater on it
 2) Click on an ajax link that would remove an item from the repeater
 3) Click the back button. Click on the link for the item you removed.

 D/


 On Apr 23, 2010, at 10:32 AM, Martin Asenov wrote:

> Would someone assist me on this?
>
> Thank you in advance!
>
> -Original Message-
> From: Martin Asenov [mailto:mase...@velti.com]
> Sent: Friday, April 23, 2010 9:38 AM
> To: users@wicket.apache.org
> Subject: Back button
>
> Hello, everyone!
>
> I've got a page with a repeater with cells - every single cell has a 
> link in it. However, when you go to another page and afterwards press 
> the Back button and click one of the links, the following exc is 
> thrown:
>
> WicketMessage: org.apache.wicket.WicketRuntimeException: component 
> view_holder:view:25:cols:30:trigger_ref not found on page 
> com.company.project.ui.calendar.Calendar[id = 46], listener interface 
> = [RequestListenerInterface name=IBehaviorListener, method=public 
> abstract void 
> org.apache.wicket.behavior.IBehaviorListener.onRequest()]
>
> Wicket was supposed to support the Back button, wasn't it? Or maybe 
> I'm missing something.
>
> Please advice...
>
> Thank you,
> Martin
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


>>>
>>> -
>>> 

Re: WicketTester fails with a custom WebRequestCodingStrategy

2010-04-24 Thread Kent Tong
Hi Martin,

You may take a look at http://wicketpagetest.sourceforge.net/ which will work
for your case.




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Back button

2010-04-24 Thread Douglas Ferguson
I just saw the issue again, but this time it happened right after an exception. 
I got an except. Hit back and then it complained that the link didn't exist.

D?

On Apr 24, 2010, at 6:58 PM, Douglas Ferguson wrote:

> Ah yes.. 
> 
> I am definitely seeing the "component not found on page" error.
> 
> Any tips on how to get a quick start for this? Anybody got any example 
> quickstarts that deal with back button issues?
> 
> D/
> 
> On Apr 24, 2010, at 6:41 PM, Igor Vaynberg wrote:
> 
>> then you would get a page-expired error
>> 
>> -igor
>> 
>> On Sat, Apr 24, 2010 at 3:34 PM, Douglas Ferguson
>>  wrote:
>>> Well something is happening, because I see it in the production logs and 
>>> from time to time on my dev machine.
>>> 
>>> What if the server is restarted?
>>> 
>>> D/
>>> 
>>> On Apr 24, 2010, at 11:09 AM, Igor Vaynberg wrote:
>>> 
 that doesnt matter because the url of the link you click contains the
 version number of the page
 
 -igor
 
 On Sat, Apr 24, 2010 at 2:35 AM, Pointbreak
  wrote:
> In firefox it doesn't. Firefox reads the page back from it's in memory
> cache, which is the state before you clicked the ajax link. The headers
> should be changed to force firefox to request the page from the server
> (wicket). There are other threads on this subject, and frankly I do not
> understand why the headers are not changed in wicket core.
> 
> On Fri, 23 Apr 2010 21:45 -0700, "Igor Vaynberg"
>  wrote:
>> the back button should roll the page back to the state that contained the
>> item
>> 
>> -igor
>> 
>> On Fri, Apr 23, 2010 at 9:28 PM, Douglas Ferguson
>>  wrote:
>>> Could this possibly happen if the following occurred.
>>> 
>>> 1) Load a page with a repeater on it
>>> 2) Click on an ajax link that would remove an item from the repeater
>>> 3) Click the back button. Click on the link for the item you removed.
>>> 
>>> D/
>>> 
>>> 
>>> On Apr 23, 2010, at 10:32 AM, Martin Asenov wrote:
>>> 
 Would someone assist me on this?
 
 Thank you in advance!
 
 -Original Message-
 From: Martin Asenov [mailto:mase...@velti.com]
 Sent: Friday, April 23, 2010 9:38 AM
 To: users@wicket.apache.org
 Subject: Back button
 
 Hello, everyone!
 
 I've got a page with a repeater with cells - every single cell has a 
 link in it. However, when you go to another page and afterwards press 
 the Back button and click one of the links, the following exc is 
 thrown:
 
 WicketMessage: org.apache.wicket.WicketRuntimeException: component 
 view_holder:view:25:cols:30:trigger_ref not found on page 
 com.company.project.ui.calendar.Calendar[id = 46], listener interface 
 = [RequestListenerInterface name=IBehaviorListener, method=public 
 abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
 
 Wicket was supposed to support the Back button, wasn't it? Or maybe 
 I'm missing something.
 
 Please advice...
 
 Thank you,
 Martin
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
>>> 
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>> 
>>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
>>> 
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>> 
>>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>

Re: Back button

2010-04-24 Thread Douglas Ferguson
Ah yes.. 

I am definitely seeing the "component not found on page" error.

Any tips on how to get a quick start for this? Anybody got any example 
quickstarts that deal with back button issues?

D/

On Apr 24, 2010, at 6:41 PM, Igor Vaynberg wrote:

> then you would get a page-expired error
> 
> -igor
> 
> On Sat, Apr 24, 2010 at 3:34 PM, Douglas Ferguson
>  wrote:
>> Well something is happening, because I see it in the production logs and 
>> from time to time on my dev machine.
>> 
>> What if the server is restarted?
>> 
>> D/
>> 
>> On Apr 24, 2010, at 11:09 AM, Igor Vaynberg wrote:
>> 
>>> that doesnt matter because the url of the link you click contains the
>>> version number of the page
>>> 
>>> -igor
>>> 
>>> On Sat, Apr 24, 2010 at 2:35 AM, Pointbreak
>>>  wrote:
 In firefox it doesn't. Firefox reads the page back from it's in memory
 cache, which is the state before you clicked the ajax link. The headers
 should be changed to force firefox to request the page from the server
 (wicket). There are other threads on this subject, and frankly I do not
 understand why the headers are not changed in wicket core.
 
 On Fri, 23 Apr 2010 21:45 -0700, "Igor Vaynberg"
  wrote:
> the back button should roll the page back to the state that contained the
> item
> 
> -igor
> 
> On Fri, Apr 23, 2010 at 9:28 PM, Douglas Ferguson
>  wrote:
>> Could this possibly happen if the following occurred.
>> 
>> 1) Load a page with a repeater on it
>> 2) Click on an ajax link that would remove an item from the repeater
>> 3) Click the back button. Click on the link for the item you removed.
>> 
>> D/
>> 
>> 
>> On Apr 23, 2010, at 10:32 AM, Martin Asenov wrote:
>> 
>>> Would someone assist me on this?
>>> 
>>> Thank you in advance!
>>> 
>>> -Original Message-
>>> From: Martin Asenov [mailto:mase...@velti.com]
>>> Sent: Friday, April 23, 2010 9:38 AM
>>> To: users@wicket.apache.org
>>> Subject: Back button
>>> 
>>> Hello, everyone!
>>> 
>>> I've got a page with a repeater with cells - every single cell has a 
>>> link in it. However, when you go to another page and afterwards press 
>>> the Back button and click one of the links, the following exc is thrown:
>>> 
>>> WicketMessage: org.apache.wicket.WicketRuntimeException: component 
>>> view_holder:view:25:cols:30:trigger_ref not found on page 
>>> com.company.project.ui.calendar.Calendar[id = 46], listener interface = 
>>> [RequestListenerInterface name=IBehaviorListener, method=public 
>>> abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
>>> 
>>> Wicket was supposed to support the Back button, wasn't it? Or maybe I'm 
>>> missing something.
>>> 
>>> Please advice...
>>> 
>>> Thank you,
>>> Martin
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>> 
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>> 
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>> 
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>> 
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Back button

2010-04-24 Thread Igor Vaynberg
then you would get a page-expired error

-igor

On Sat, Apr 24, 2010 at 3:34 PM, Douglas Ferguson
 wrote:
> Well something is happening, because I see it in the production logs and from 
> time to time on my dev machine.
>
> What if the server is restarted?
>
> D/
>
> On Apr 24, 2010, at 11:09 AM, Igor Vaynberg wrote:
>
>> that doesnt matter because the url of the link you click contains the
>> version number of the page
>>
>> -igor
>>
>> On Sat, Apr 24, 2010 at 2:35 AM, Pointbreak
>>  wrote:
>>> In firefox it doesn't. Firefox reads the page back from it's in memory
>>> cache, which is the state before you clicked the ajax link. The headers
>>> should be changed to force firefox to request the page from the server
>>> (wicket). There are other threads on this subject, and frankly I do not
>>> understand why the headers are not changed in wicket core.
>>>
>>> On Fri, 23 Apr 2010 21:45 -0700, "Igor Vaynberg"
>>>  wrote:
 the back button should roll the page back to the state that contained the
 item

 -igor

 On Fri, Apr 23, 2010 at 9:28 PM, Douglas Ferguson
  wrote:
> Could this possibly happen if the following occurred.
>
> 1) Load a page with a repeater on it
> 2) Click on an ajax link that would remove an item from the repeater
> 3) Click the back button. Click on the link for the item you removed.
>
> D/
>
>
> On Apr 23, 2010, at 10:32 AM, Martin Asenov wrote:
>
>> Would someone assist me on this?
>>
>> Thank you in advance!
>>
>> -Original Message-
>> From: Martin Asenov [mailto:mase...@velti.com]
>> Sent: Friday, April 23, 2010 9:38 AM
>> To: users@wicket.apache.org
>> Subject: Back button
>>
>> Hello, everyone!
>>
>> I've got a page with a repeater with cells - every single cell has a 
>> link in it. However, when you go to another page and afterwards press 
>> the Back button and click one of the links, the following exc is thrown:
>>
>> WicketMessage: org.apache.wicket.WicketRuntimeException: component 
>> view_holder:view:25:cols:30:trigger_ref not found on page 
>> com.company.project.ui.calendar.Calendar[id = 46], listener interface = 
>> [RequestListenerInterface name=IBehaviorListener, method=public abstract 
>> void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
>>
>> Wicket was supposed to support the Back button, wasn't it? Or maybe I'm 
>> missing something.
>>
>> Please advice...
>>
>> Thank you,
>> Martin
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org

>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: WicketTester fails with a custom WebRequestCodingStrategy

2010-04-24 Thread Martin Grotzke
Hi,

no feedback so far. It would be really nice if s.o. familiar with
WicketTester could a look at this.

Thanx && cheers,
Martin


On Thu, 2010-04-22 at 21:21 +0200, Martin Grotzke wrote:
> Hi,
> 
> I have an issue with a simple app working fine when run in the app
> server, but where the test (using WicketTester) that simulates the
> performed behaviour fails.
> 
> Here are the details:
> 
> I have a custom RequestCycleProcessor with a custom
> WebRequestCodingStrategy that mounts a page (for e.g. a shopping cart
> item) to a url like
>   /myapp/myitem-id42.html
> and knows according to the url pattern ( + "-id" +  +
> ".html") that the item details page is to be resolved.
> 
> This item details page also contains a stateless form with a button that
> adds the item to the shopping basket.
> 
> This works fine when it's run within the app: I can submit the form, the
> item is added to the basket and I'm shown the details page again.
> (the urls requested are shown at the end of the email [2])
> 
> Unfortunately, when I test this behaviour using WicketTester this fails,
> as it cannot create the item details page when the form is submitted.
> 
> This is my test (it can also be found at github [1]):
> 
> private WicketTester _tester;
> 
> @BeforeMethod
> public void setUp() {
> _tester = new WicketTester( new WicketApplication() );
> }
> 
> @Test
> public void testSubmitChoice() {
> _tester.startPage( DetailsPage.class, DetailsPage.pageParametersFor( 
> WicketApplication.MAKES_DB.get( 0 ) ) );
> _tester.assertRenderedPage( DetailsPage.class );
> final FormTester formTester = _tester.newFormTester( "form", false );
> formTester.submit( "submit" ); // --> this fails
> _tester.assertRenderedPage( DetailsPage.class );
> }
> 
> The test fails with an assertion on valid, provided page params in the
> items detail page:
> 
> ...
> Caused by: java.lang.NullPointerException: No valid make provided!
> (params: :submit = "marked")
> at 
> de.javakaffee.misc.wicket.ccs.DetailsPage.(DetailsPage.java:58)
> 
> (remember that this does not happen when run in the app server!)
> 
> 
> The complete example project can be found at github:
> http://github.com/magro/misc/tree/master/wicket-tester-custom-coding-strategy/
> the short link to the relevant classes (is actually a long link :-)):
> http://github.com/magro/misc/tree/master/wicket-tester-custom-coding-strategy/src/main/java/de/javakaffee/misc/wicket/ccs
> 
> 
> Can anyone help with this? Is this an issue of the request cycle
> processor / coding strategy (in combination with WicketTester), or is
> this an issue of WicketTester?
> 
> Thanx in advance,
> cheers,
> Martin
> 
> 
> [1] 
> http://github.com/magro/misc/blob/master/wicket-tester-custom-coding-strategy/src/test/java/de/javakaffee/misc/wicket/ccs/TestDetailsPage.java
> [2] -- urls requested:
> 
> 1) GET item details page:
>   - GET http://localhost:8080/Cadillac-i1.html
> -> 200 OK
> 2) Submit form, add item to basket
>   - POST 
> http://localhost:8080/Cadillac-i1.html?wicket:interface=:0:form::IFormSubmitListener::
> -> 302 Found (Location ...)
>   - GET http://localhost:8080/Cadillac-i1.html
> 
> 



signature.asc
Description: This is a digitally signed message part


Re: Wicket and Guice / legup / warp persist?

2010-04-24 Thread Douglas Ferguson
I'm curious about how this would work with serialization/deserialization.

For instance, with a data provider where would you actually put this:

> InjectorHolder.getInjector().inject(this)

To make sure it gets called at the appropriate times? Is it ok to put it in the 
constructor of the data provider?

Sounds like this won't be available until 1.4.8, any idea when that might 
surface?

D/

On Apr 24, 2010, at 5:33 PM, Douglas Ferguson wrote:

> Interesting...
> 
> I've been curious about how to properly use injection in data provider as 
> this does not subclass component.
> 
> Any tips on how to get this to work?
> 
> D/
> 
> On Apr 24, 2010, at 12:32 PM, nino martinez wael wrote:
> 
>> BTW if anyone has trouble with this until 1.4.8 comes out then just
>> write your own injectorholder class and in your guice module call
>> requeststatic injection on that.. Works like a charm..
>> 
>> 2010/4/8 nino martinez wael :
>>> Ahh typical :) And thanks for the update.
>>> 
>>> 2010/4/8 Martin Grigorov :
 The ticket for this is https://issues.apache.org/jira/browse/WICKET-2761
 The fix is applied to 1.4.x at 13/03 by Juergen.
 1.4.7 was released at 03/03.
 
 So, it will be included in next release - probably 1.4.8.
 
 On Thu, 2010-04-08 at 11:08 +0200, nino martinez wael wrote:
> Hi
> 
> I revived my old wicket talk yesterday and since we are using guice at
> the company where Im at now the people attending the talk wanted to
> see my examples in guice / wicket instead of spring / wicket. So I
> used the legup archetype. Which worked nicely until I did a ldm which
> I had to inject a dao into. With spring I would add the ldm to the
> component instantiation listener, but if I do it the "spring" way
> (InjectorHolder.getInjector().inject(this);) I get this error:
> 
> WicketMessage: Can't instantiate page using constructor public
> com.netdesign.blog.ViewPostPage(org.apache.wicket.PageParameters) and
> argument postid = "[3]"
> 
> Root cause:
> 
> java.lang.IllegalStateException: InjectorHolder has not been assigned
> an injector. Use InjectorHolder.setInjector() to assign an injector.
> In most cases this should be done once inside SpringWebApplication
> subclass's init() method.
> at 
> org.apache.wicket.injection.web.InjectorHolder.getInjector(InjectorHolder.java:70)
> 
> Now there are several things I wonder about, first of all, why are
> spring mentioned at all? Does wicket package DI specific classes in a
> common distribution, and if so should'nt it be called something
> specific towards the targetet DI framework. And second and more
> important how can I achieve the same thing with guice? Or this could
> also be a "bug" with legup or something. But I actually checked the
> init method and  InjectorHolder.setInjector does not take the guice
> component injector as argument.
> 
> 
> 
> regards Nino
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
>>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Back button

2010-04-24 Thread Douglas Ferguson
Well something is happening, because I see it in the production logs and from 
time to time on my dev machine.

What if the server is restarted?

D/

On Apr 24, 2010, at 11:09 AM, Igor Vaynberg wrote:

> that doesnt matter because the url of the link you click contains the
> version number of the page
> 
> -igor
> 
> On Sat, Apr 24, 2010 at 2:35 AM, Pointbreak
>  wrote:
>> In firefox it doesn't. Firefox reads the page back from it's in memory
>> cache, which is the state before you clicked the ajax link. The headers
>> should be changed to force firefox to request the page from the server
>> (wicket). There are other threads on this subject, and frankly I do not
>> understand why the headers are not changed in wicket core.
>> 
>> On Fri, 23 Apr 2010 21:45 -0700, "Igor Vaynberg"
>>  wrote:
>>> the back button should roll the page back to the state that contained the
>>> item
>>> 
>>> -igor
>>> 
>>> On Fri, Apr 23, 2010 at 9:28 PM, Douglas Ferguson
>>>  wrote:
 Could this possibly happen if the following occurred.
 
 1) Load a page with a repeater on it
 2) Click on an ajax link that would remove an item from the repeater
 3) Click the back button. Click on the link for the item you removed.
 
 D/
 
 
 On Apr 23, 2010, at 10:32 AM, Martin Asenov wrote:
 
> Would someone assist me on this?
> 
> Thank you in advance!
> 
> -Original Message-
> From: Martin Asenov [mailto:mase...@velti.com]
> Sent: Friday, April 23, 2010 9:38 AM
> To: users@wicket.apache.org
> Subject: Back button
> 
> Hello, everyone!
> 
> I've got a page with a repeater with cells - every single cell has a link 
> in it. However, when you go to another page and afterwards press the Back 
> button and click one of the links, the following exc is thrown:
> 
> WicketMessage: org.apache.wicket.WicketRuntimeException: component 
> view_holder:view:25:cols:30:trigger_ref not found on page 
> com.company.project.ui.calendar.Calendar[id = 46], listener interface = 
> [RequestListenerInterface name=IBehaviorListener, method=public abstract 
> void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
> 
> Wicket was supposed to support the Back button, wasn't it? Or maybe I'm 
> missing something.
> 
> Please advice...
> 
> Thank you,
> Martin
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>> 
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket and Guice / legup / warp persist?

2010-04-24 Thread Douglas Ferguson
Interesting...

I've been curious about how to properly use injection in data provider as this 
does not subclass component.

Any tips on how to get this to work?

D/

On Apr 24, 2010, at 12:32 PM, nino martinez wael wrote:

> BTW if anyone has trouble with this until 1.4.8 comes out then just
> write your own injectorholder class and in your guice module call
> requeststatic injection on that.. Works like a charm..
> 
> 2010/4/8 nino martinez wael :
>> Ahh typical :) And thanks for the update.
>> 
>> 2010/4/8 Martin Grigorov :
>>> The ticket for this is https://issues.apache.org/jira/browse/WICKET-2761
>>> The fix is applied to 1.4.x at 13/03 by Juergen.
>>> 1.4.7 was released at 03/03.
>>> 
>>> So, it will be included in next release - probably 1.4.8.
>>> 
>>> On Thu, 2010-04-08 at 11:08 +0200, nino martinez wael wrote:
 Hi
 
 I revived my old wicket talk yesterday and since we are using guice at
 the company where Im at now the people attending the talk wanted to
 see my examples in guice / wicket instead of spring / wicket. So I
 used the legup archetype. Which worked nicely until I did a ldm which
 I had to inject a dao into. With spring I would add the ldm to the
 component instantiation listener, but if I do it the "spring" way
 (InjectorHolder.getInjector().inject(this);) I get this error:
 
 WicketMessage: Can't instantiate page using constructor public
 com.netdesign.blog.ViewPostPage(org.apache.wicket.PageParameters) and
 argument postid = "[3]"
 
 Root cause:
 
 java.lang.IllegalStateException: InjectorHolder has not been assigned
 an injector. Use InjectorHolder.setInjector() to assign an injector.
 In most cases this should be done once inside SpringWebApplication
 subclass's init() method.
 at 
 org.apache.wicket.injection.web.InjectorHolder.getInjector(InjectorHolder.java:70)
 
 Now there are several things I wonder about, first of all, why are
 spring mentioned at all? Does wicket package DI specific classes in a
 common distribution, and if so should'nt it be called something
 specific towards the targetet DI framework. And second and more
 important how can I achieve the same thing with guice? Or this could
 also be a "bug" with legup or something. But I actually checked the
 init method and  InjectorHolder.setInjector does not take the guice
 component injector as argument.
 
 
 
 regards Nino
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
>>> 
>>> 
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>> 
>>> 
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



SignInPage as panel in an AuthenticatedWebApplication?

2010-04-24 Thread Thomas Götz
Is there an easy way to use a panel for signing in when using an application 
class that extends AuthenticatedWebApplication? The normal Wicket behaviour is 
that the user gets forwarded to a dedicated signin-page. I'd prefer to use a 
modal window (displaying a login panel), but 
AuthenticatedWebApplication.getSignInPageClass() needs to return a class that 
extends Webpage ...

Anyone can give me a hint on this?

   -Tom


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket and Guice / legup / warp persist?

2010-04-24 Thread nino martinez wael
BTW if anyone has trouble with this until 1.4.8 comes out then just
write your own injectorholder class and in your guice module call
requeststatic injection on that.. Works like a charm..

2010/4/8 nino martinez wael :
> Ahh typical :) And thanks for the update.
>
> 2010/4/8 Martin Grigorov :
>> The ticket for this is https://issues.apache.org/jira/browse/WICKET-2761
>> The fix is applied to 1.4.x at 13/03 by Juergen.
>> 1.4.7 was released at 03/03.
>>
>> So, it will be included in next release - probably 1.4.8.
>>
>> On Thu, 2010-04-08 at 11:08 +0200, nino martinez wael wrote:
>>> Hi
>>>
>>> I revived my old wicket talk yesterday and since we are using guice at
>>> the company where Im at now the people attending the talk wanted to
>>> see my examples in guice / wicket instead of spring / wicket. So I
>>> used the legup archetype. Which worked nicely until I did a ldm which
>>> I had to inject a dao into. With spring I would add the ldm to the
>>> component instantiation listener, but if I do it the "spring" way
>>> (InjectorHolder.getInjector().inject(this);) I get this error:
>>>
>>> WicketMessage: Can't instantiate page using constructor public
>>> com.netdesign.blog.ViewPostPage(org.apache.wicket.PageParameters) and
>>> argument postid = "[3]"
>>>
>>> Root cause:
>>>
>>> java.lang.IllegalStateException: InjectorHolder has not been assigned
>>> an injector. Use InjectorHolder.setInjector() to assign an injector.
>>> In most cases this should be done once inside SpringWebApplication
>>> subclass's init() method.
>>> at 
>>> org.apache.wicket.injection.web.InjectorHolder.getInjector(InjectorHolder.java:70)
>>>
>>> Now there are several things I wonder about, first of all, why are
>>> spring mentioned at all? Does wicket package DI specific classes in a
>>> common distribution, and if so should'nt it be called something
>>> specific towards the targetet DI framework. And second and more
>>> important how can I achieve the same thing with guice? Or this could
>>> also be a "bug" with legup or something. But I actually checked the
>>> init method and  InjectorHolder.setInjector does not take the guice
>>> component injector as argument.
>>>
>>>
>>>
>>> regards Nino
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: Persistence.xml problem

2010-04-24 Thread Matias Pansa

Ok thanks , i'm still searching.

> From: igor.vaynb...@gmail.com
> Date: Sat, 24 Apr 2010 09:10:15 -0700
> Subject: Re: Persistence.xml problem
> To: users@wicket.apache.org
> 
> wicket has nothing to do with it. maybe your IDE is not updating your
> persistence.xml in the target directory.
> 
> -igor
> 
> On Sat, Apr 24, 2010 at 7:02 AM, Matias Pansa  wrote:
> >
> >
> > Hi , i'm developing an app under netbeans + wicket + tomcat + 
> > wicket-contrib-javaee +eclipselink .
> > The problem is that i run the app the first time and everything works fine 
> > , but i change the data source in persistence.xml and the app stop working 
> > , i change again to the original source and nothing ,  not working , there 
> > is no error ,exception , nothing , the app runs on tomcat like everything 
> > is ok , but there's no connection to the database , any data is persisted 
> > .I just delete persistence.xml and app stil working! ... clean tomcat 
> > install and still working without persistence.xml! , i deployed the app war 
> > file within netbeans and manually on tomcat's web manager without any 
> > persistence and the same result.So i want to know if maybe wicket has 
> > something to do with this problem because i try almost everything else , 
> > even running the app locally and in the server but nothing happens , i 
> > apreciate any help on this.
> >
> > _
> > Organizá una reunión con Hotmail: podés enviar un email a tus amigos y con 
> > el Calendario agendar la fecha. Descubrí más.
> > http://www.microsoft.com/latam/windows/windowslive/products/calendar.aspx
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
  
_
Con Hotmail y Calendario organizar reuniones es muy fácil: enviá invitaciones y 
recibí confirmaciones de asistencia.
http://www.microsoft.com/latam/windows/windowslive/products/calendar.aspx

Re: Beginner: Pre-select value on RadioChoice component using compound model

2010-04-24 Thread Igor Vaynberg
your profile object is null

-igor

On Sat, Apr 24, 2010 at 8:08 AM, Alexandros Karypidis  wrote:
> Hi,
>
> I'm using the RadioChoice component on a form with a CompoundPropertyModel.
> I'd like the form to come up witn a specific radio option selected. So I
> try:
>
>        RadioChoice sexRadio = new RadioChoice("profile.sex",
> Arrays
>                .asList(Sex.values()));
>        sexRadio.setChoiceRenderer(new SexChoiceRenderer());
>        sexRadio.setDefaultModelObject(Sex.FEMALE);
>
> But I get:
>
> Caused by: java.lang.IllegalStateException: Attempt to set model object on
> null model of component: profile.sex
>    at org.apache.wicket.Component.setDefaultModelObject(Component.java:3033)
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Persistence.xml problem

2010-04-24 Thread Igor Vaynberg
wicket has nothing to do with it. maybe your IDE is not updating your
persistence.xml in the target directory.

-igor

On Sat, Apr 24, 2010 at 7:02 AM, Matias Pansa  wrote:
>
>
> Hi , i'm developing an app under netbeans + wicket + tomcat + 
> wicket-contrib-javaee +eclipselink .
> The problem is that i run the app the first time and everything works fine , 
> but i change the data source in persistence.xml and the app stop working , i 
> change again to the original source and nothing ,  not working , there is no 
> error ,exception , nothing , the app runs on tomcat like everything is ok , 
> but there's no connection to the database , any data is persisted .I just 
> delete persistence.xml and app stil working! ... clean tomcat install and 
> still working without persistence.xml! , i deployed the app war file within 
> netbeans and manually on tomcat's web manager without any persistence and the 
> same result.So i want to know if maybe wicket has something to do with this 
> problem because i try almost everything else , even running the app locally 
> and in the server but nothing happens , i apreciate any help on this.
>
> _
> Organizá una reunión con Hotmail: podés enviar un email a tus amigos y con el 
> Calendario agendar la fecha. Descubrí más.
> http://www.microsoft.com/latam/windows/windowslive/products/calendar.aspx

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Back button

2010-04-24 Thread Igor Vaynberg
that doesnt matter because the url of the link you click contains the
version number of the page

-igor

On Sat, Apr 24, 2010 at 2:35 AM, Pointbreak
 wrote:
> In firefox it doesn't. Firefox reads the page back from it's in memory
> cache, which is the state before you clicked the ajax link. The headers
> should be changed to force firefox to request the page from the server
> (wicket). There are other threads on this subject, and frankly I do not
> understand why the headers are not changed in wicket core.
>
> On Fri, 23 Apr 2010 21:45 -0700, "Igor Vaynberg"
>  wrote:
>> the back button should roll the page back to the state that contained the
>> item
>>
>> -igor
>>
>> On Fri, Apr 23, 2010 at 9:28 PM, Douglas Ferguson
>>  wrote:
>> > Could this possibly happen if the following occurred.
>> >
>> > 1) Load a page with a repeater on it
>> > 2) Click on an ajax link that would remove an item from the repeater
>> > 3) Click the back button. Click on the link for the item you removed.
>> >
>> > D/
>> >
>> >
>> > On Apr 23, 2010, at 10:32 AM, Martin Asenov wrote:
>> >
>> >> Would someone assist me on this?
>> >>
>> >> Thank you in advance!
>> >>
>> >> -Original Message-
>> >> From: Martin Asenov [mailto:mase...@velti.com]
>> >> Sent: Friday, April 23, 2010 9:38 AM
>> >> To: users@wicket.apache.org
>> >> Subject: Back button
>> >>
>> >> Hello, everyone!
>> >>
>> >> I've got a page with a repeater with cells - every single cell has a link 
>> >> in it. However, when you go to another page and afterwards press the Back 
>> >> button and click one of the links, the following exc is thrown:
>> >>
>> >> WicketMessage: org.apache.wicket.WicketRuntimeException: component 
>> >> view_holder:view:25:cols:30:trigger_ref not found on page 
>> >> com.company.project.ui.calendar.Calendar[id = 46], listener interface = 
>> >> [RequestListenerInterface name=IBehaviorListener, method=public abstract 
>> >> void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
>> >>
>> >> Wicket was supposed to support the Back button, wasn't it? Or maybe I'm 
>> >> missing something.
>> >>
>> >> Please advice...
>> >>
>> >> Thank you,
>> >> Martin
>> >>
>> >> -
>> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> >> For additional commands, e-mail: users-h...@wicket.apache.org
>> >>
>> >
>> >
>> > -
>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket Cayenne

2010-04-24 Thread Igor Vaynberg
see how wicket-spring works, maybe you can write a small module like
that to inject the datacontext into a page.

-igor

On Sat, Apr 24, 2010 at 1:24 AM, Arnaud Garcia  wrote:
> Hello,
>
> Does anyone knows how to set up Cayenne for wicket ?
> In my WicketPage I have :
>  private DataContext ctxt = (DataContext)
> DataContext.getThreadObjectContext();
>
> but, I don't think it is the good way, since I suppose wicket will
> serialized the full DataContext... (maybe I can put the
> getThreadObjectContext() in a method or constructor to avoid the
> serialization...)
> -> Well, I don't know how what is the good way  ;-)
>
>
>
> thanks,
>
> Arnaud
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Beginner: Pre-select value on RadioChoice component using compound model

2010-04-24 Thread Alexandros Karypidis

Hi,

I'm using the RadioChoice component on a form with a 
CompoundPropertyModel. I'd like the form to come up witn a specific 
radio option selected. So I try:


RadioChoice sexRadio = new RadioChoice("profile.sex", 
Arrays

.asList(Sex.values()));
sexRadio.setChoiceRenderer(new SexChoiceRenderer());
sexRadio.setDefaultModelObject(Sex.FEMALE);

But I get:

Caused by: java.lang.IllegalStateException: Attempt to set model object 
on null model of component: profile.sex
at 
org.apache.wicket.Component.setDefaultModelObject(Component.java:3033)



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: HttpsRequestCycleProcessor goes back to http on form failure

2010-04-24 Thread Istvan Soos
Further analysis showed that this problem is somehow related to the
apache + mod-proxy + mod-headers environment, because pure jetty or
pure glassfish didn't have any issue.

Regards,
   Istvan

On Fri, Apr 23, 2010 at 4:12 PM, Istvan Soos  wrote:
> Hi,
>
> I'm using HttpsRequestCycleProcessor and it works in most of the
> cases. However...
>
> My login form is https protected.
> My non-bookmarkable urls are encrypted.
>
> On my login form, if the user misses the password, it will get
> notified (part of the form gets red) and it has the chance to start
> over. However this time the url is like http://example.com/?x= so
> it got redirected back to http.
>
> How could I remain on https in such cases?
>
> Regards,
>   Istvan
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Persistence.xml problem

2010-04-24 Thread Matias Pansa


Hi , i'm developing an app under netbeans + wicket + tomcat + 
wicket-contrib-javaee +eclipselink .
The problem is that i run the app the first time and everything works fine , 
but i change the data source in persistence.xml and the app stop working , i 
change again to the original source and nothing ,  not working , there is no 
error ,exception , nothing , the app runs on tomcat like everything is ok , but 
there's no connection to the database , any data is persisted .I just delete 
persistence.xml and app stil working! ... clean tomcat install and still 
working without persistence.xml! , i deployed the app war file within netbeans 
and manually on tomcat's web manager without any persistence and the same 
result.So i want to know if maybe wicket has something to do with this problem 
because i try almost everything else , even running the app locally and in the 
server but nothing happens , i apreciate any help on this.
  
_
Organizá una reunión con Hotmail: podés enviar un email a tus amigos y con el 
Calendario agendar la fecha. Descubrí más.
http://www.microsoft.com/latam/windows/windowslive/products/calendar.aspx

Re: Back button

2010-04-24 Thread Pointbreak
In firefox it doesn't. Firefox reads the page back from it's in memory
cache, which is the state before you clicked the ajax link. The headers
should be changed to force firefox to request the page from the server
(wicket). There are other threads on this subject, and frankly I do not
understand why the headers are not changed in wicket core.

On Fri, 23 Apr 2010 21:45 -0700, "Igor Vaynberg"
 wrote:
> the back button should roll the page back to the state that contained the
> item
> 
> -igor
> 
> On Fri, Apr 23, 2010 at 9:28 PM, Douglas Ferguson
>  wrote:
> > Could this possibly happen if the following occurred.
> >
> > 1) Load a page with a repeater on it
> > 2) Click on an ajax link that would remove an item from the repeater
> > 3) Click the back button. Click on the link for the item you removed.
> >
> > D/
> >
> >
> > On Apr 23, 2010, at 10:32 AM, Martin Asenov wrote:
> >
> >> Would someone assist me on this?
> >>
> >> Thank you in advance!
> >>
> >> -Original Message-
> >> From: Martin Asenov [mailto:mase...@velti.com]
> >> Sent: Friday, April 23, 2010 9:38 AM
> >> To: users@wicket.apache.org
> >> Subject: Back button
> >>
> >> Hello, everyone!
> >>
> >> I've got a page with a repeater with cells - every single cell has a link 
> >> in it. However, when you go to another page and afterwards press the Back 
> >> button and click one of the links, the following exc is thrown:
> >>
> >> WicketMessage: org.apache.wicket.WicketRuntimeException: component 
> >> view_holder:view:25:cols:30:trigger_ref not found on page 
> >> com.company.project.ui.calendar.Calendar[id = 46], listener interface = 
> >> [RequestListenerInterface name=IBehaviorListener, method=public abstract 
> >> void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
> >>
> >> Wicket was supposed to support the Back button, wasn't it? Or maybe I'm 
> >> missing something.
> >>
> >> Please advice...
> >>
> >> Thank you,
> >> Martin
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wicket Cayenne

2010-04-24 Thread Arnaud Garcia
Hello,

Does anyone knows how to set up Cayenne for wicket ?
In my WicketPage I have :
 private DataContext ctxt = (DataContext)
DataContext.getThreadObjectContext();

but, I don't think it is the good way, since I suppose wicket will
serialized the full DataContext... (maybe I can put the
getThreadObjectContext() in a method or constructor to avoid the
serialization...)
-> Well, I don't know how what is the good way  ;-)



thanks,

Arnaud