Re: NullPointerException in Page constructor

2013-03-26 Thread Thomas Götz
Please post the code of MasterPage and HomePage, or at least 
MasterPage#isProtectedComponentAction.

   -Tom


On 26.03.2013, at 15:04, jchappelle jchappe...@4redi.com wrote:

 Sure thing. Obviously the last two methods are getting in to my code but this
 will let you see how it gets there.
 
 
 Message: Can't instantiate page using constructor 'public
 com.mycompany.ui.HomePage()'. Might be it doesn't exist, may be it is not
 visible (public).
 Root cause:
 java.lang.NullPointerException
 at
 com.mycompany.ui.MasterPage.isProtectedComponentAction(MasterPage.java:58)
 at
 com.mycompany.ui.AbstractRiskAuthorizationStrategy.isActionAuthorized(AbstractRiskAuthorizationStrategy.java:39)
 at org.apache.wicket.Component.isActionAuthorized(Component.java:2037)
 at org.apache.wicket.Component.isEnableAllowed(Component.java:2047)
 at org.apache.wicket.Component.isEnabledInHierarchy(Component.java:4420)
 at org.apache.wicket.Component.isStateless(Component.java:2082)
 at org.apache.wicket.Page.isPageStateless(Page.java:485)
 at
 org.apache.wicket.page.AbstractPageManager.touchPage(AbstractPageManager.java:123)
 at
 org.apache.wicket.page.PageManagerDecorator.touchPage(PageManagerDecorator.java:56)
 at
 org.apache.wicket.page.PageAccessSynchronizer$2.touchPage(PageAccessSynchronizer.java:273)
 at org.apache.wicket.Page.dirty(Page.java:324)
 at org.apache.wicket.markup.html.WebPage.dirty(WebPage.java:321)
 at org.apache.wicket.Page.init(Page.java:740)
 at org.apache.wicket.Page.init(Page.java:215)
 at org.apache.wicket.Page.init(Page.java:194)
 at org.apache.wicket.markup.html.WebPage.init(WebPage.java:104)
 at com.mycompany.ui.BasePage.init(BasePage.java:27)
 at com.mycompany.ui.MasterPage.init(MasterPage.java:41)
 at com.mycompany.ui.MasterPage.init(MasterPage.java:36)
 at com.mycompany.ui.MasterPage.init(MasterPage.java:31)
 at com.mycompany.ui.HomePage.init(HomePage.java:9)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
 at
 org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:174)
 at
 org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:67)
 at
 org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:46)
 at
 org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:103)
 at
 org.apache.wicket.request.handler.PageProvider.resolvePageInstance(PageProvider.java:274)
 at
 org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:165)
 at
 org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
 at
 org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:96)
 at
 org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:246)
 at
 org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:167)
 at
 org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:784)
 at
 org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
 at
 org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:255)
 at
 org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
 at
 org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283)
 at
 org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
 at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:244)
 at
 org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
 at
 org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
 at
 org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
 at
 org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
 at
 org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479)
 at
 org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
 at
 org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
 at
 org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
 at
 org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:940)
 at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
 at
 org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
 at
 org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:874)
 at
 org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
 at
 org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
 at
 org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
 at
 org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
 at 

Re: Question about name suffix that wicket appends to ResourceReferences

2013-03-22 Thread Thomas Götz
Please have a look at FilenameWithVersionResourceCachingStrategy.

   -Tom


On 22.03.2013, at 14:01, Pointbreak pointbreak+wicketst...@ml1.net wrote:

 When rendering the header items for packeded resource references, wicket
 appends a suffix like -ver-1363953702887 to the name of the resource.
 Can somebody point me add the place in the code where this suffix is
 generated and/or document if/how this could be disabled (preferably on a
 case by case basis)?
 
 Thanks!


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



Re: Style question: onInitialize() vs. onBeforeRender()

2013-02-20 Thread Thomas Götz
Note the difference between onInitialize() and onBeforeRender() as stated in 
the JavaDoc:

onInitialize()  : ...This method is invoked once per component's lifecycle …
onBeforeRender(): Called just before a component is rendered.

Meaning: onBeforeRender() is called upon *each* request whereas onInitialize() 
is called only *once* for each component. So, my recommandation: put all 
(static) initalization code into onInitialize().
If you need to do something per request, also have a look at onConfigure(), 
which is guaranteed to be called only *once* per request (in contrast to 
onBeforeRender, which might get called multiple times per request AFAIK).

   -Tom


On 20.02.2013, at 15:12, Martin Dietze d...@fh-wedel.de wrote:

 While porting my project from 1.4.x to 6.6.0, I've stumbled
 across the onInitialize() method which is now recommended for
 initializing components which need access to the page instance
 etc. In my project this had so far been done in onBeforeRender()
 (and this seems to still work fairly well). 
 
 Is moving that code to onInitialize() in such cases generally
 advisable, if yes, should this be done immediately? 
 
 Cheers,
 
 M'bert
 
 -- 
 --- / http://herbert.the-little-red-haired-girl.org / -
 =+= 
 That's right, yelled Vroomfondel, we demand rigidly defined areas of 
 doubt and uncertainty!  -- Douglas Adams
 
 -
 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: Eclipse or IntelliJ

2013-02-19 Thread Thomas Götz
IntelliJ currently costs €179 (personal license). It allows me to work *way* 
more effectively (on a Mac) than with Eclipse, which I find cluttered, slow, 
non-intuitive and simply not supporting my work style/flow.

Say you gain 10 minutes per day when using IntelliJ and say you charge 60€/h:
10min - 10€ (per day), i.e. in ~3 weeks the initial cost is amortised.

Only my $0.02,
   -Tom


On 19.02.2013, at 23:28, Tim Urberg t...@urberg.net wrote:

 Here's the thing, Intellij is great, but it costs like five zillion dollars! 
 (slight exaggeration).  So I use Eclipse since its FREE! and it works great 
 for me (even on a Mac).  The nice thing about Wicket is that you don't need 
 any special IDE plugins to use it.  As long as your IDE knows how to do Java 
 (I hope), HTML, CSS and JavaScript (which most have built in editors for out 
 of the box).  Then you're good.
 
 On 2/19/13 4:09 PM, Francois Meillet wrote:
 You have a mac ?
 Choose the best tool !
 Choose Intellij !
 
 
 
 François Meillet
 Formation Wicket - Développement Wicket
 
 
 
 
 
 Le 19 févr. 2013 à 23:06, Stephen Walsh step...@connectwithawalsh.com a 
 écrit :
 
 That's what I'm hoping for.  IntelliJ looks a lot more polished especially
 for the Mac.
 
 Eclipse is crippling at times because it is so slow.  Just sort of getting
 a feel for the Wicket community and what people like best.
 
 
 ___
 Stephen Walsh | http://connectwithawalsh.com
 
 
 On Tue, Feb 19, 2013 at 4:03 PM, Josh Kamau joshnet2...@gmail.com wrote:
 
 Hi;
 
 You use one of them and you feel like you are missing something? No you are
 not. The one you are most familiar with is the best.
 
 I use intellij ...
 
 This discussion might also give you what you are looking for.
 
 
 http://www.linkedin.com/groups/Which-IDE-you-use-develop-80181.S.125932453?qid=98abd743-9a14-4eee-91e5-dbd6854bbf52trk=group_most_popular-0-b-ttlgoback=%2Egmp_80181
 
 Josh
 
 
 On Wed, Feb 20, 2013 at 1:00 AM, Cedric Gatay gata...@gmail.com wrote:
 
 At SRMvision we use exclusively IntelliJ for developping. Its excellent
 Maven support, smart completion and robustness made us forget eclipse
 very
 quickly.
 Le 19 févr. 2013 22:18, Stephen Walsh step...@connectwithawalsh.com
 a
 écrit :
 
 Who uses what and why?
 
 I've only ever used Eclipse, but I discovered IntelliJ earlier this
 week
 and it's so different.  Just wondering pros and cons on each.
 
 Thanks!
 ___
 Stephen Walsh | http://connectwithawalsh.com
 
 
 
 
 -
 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



Obervation with ajax links and multible tabs

2013-01-30 Thread Thomas Götz
I observed a the following phenomenon:

- I have a blank WebPage with just a single AjaxLink on it
- I load this page in two browser tabs
- I click on link in tab1: fine - ajax call triggered
- I change to tab2 and click link - no ajax call, instead the whole page is 
reloaded,
   if I click the link a second time, the ajax call is triggered
- this can be reproduced on every tab change

I recorded the requests as following:


Open page in tab 1:

http://localhost:8080/  302 GET localhost:8080  /301 ms 680 
bytes   Complete
http://localhost:8080/?0200 GET localhost:8080  /?0  10 ms  
1,93 KB Complete
http://localhost:8080/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-event-jquery-ver-1359027215000.js
200 GET localhost:8080  
/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-event-jquery-ver-1359027215000.js
  20 ms  6,32 KB Complete
http://localhost:8080/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-ver-1359027215000.js
 200 GET localhost:8080  
/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-ver-1359027215000.js
   22 ms  262,24 KB   Complete
http://localhost:8080/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-ver-1359027215000.js
 200 GET localhost:8080  
/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-ver-1359027215000.js
   21 ms  74,70 KBComplete
http://localhost:8080/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-debug-ver-1359027215000.js
   200 GET localhost:8080  
/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-debug-ver-1359027215000.js
 26 ms  9,45 KB Complete


Open page in tab 2:

http://localhost:8080/  302 GET localhost:8080  /15 ms  623 
bytes   Complete
http://localhost:8080/?1200 GET localhost:8080  /?1  5 ms   
1,93 KB Complete
http://localhost:8080/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-event-jquery-ver-1359027215000.js
200 GET localhost:8080  
/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-event-jquery-ver-1359027215000.js
  11 ms  6,32 KB Complete
http://localhost:8080/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-ver-1359027215000.js
 200 GET localhost:8080  
/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-ver-1359027215000.js
   12 ms  74,70 KBComplete
http://localhost:8080/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-ver-1359027215000.js
 200 GET localhost:8080  
/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-ver-1359027215000.js
   16 ms  262,24 KB   Complete
http://localhost:8080/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-debug-ver-1359027215000.js
   200 GET localhost:8080  
/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-debug-ver-1359027215000.js
 9 ms   9,45 KB Complete

Change to tab 1, click link:

http://localhost:8080/?0-1.IBehaviorListener.0-link_=1359542764426 200 
GET localhost:8080  /?0-1.IBehaviorListener.0-link_=1359542764426   8 ms   
956 bytes   Complete
http://localhost:8080/?0200 GET localhost:8080  /?0  18 ms  
1,96 KB Complete
http://localhost:8080/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-ver-1359027215000.js
 200 GET localhost:8080  
/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-ver-1359027215000.js
   17 ms  262,24 KB   Complete
http://localhost:8080/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-event-jquery-ver-1359027215000.js
200 GET localhost:8080  
/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-event-jquery-ver-1359027215000.js
  8 ms   6,32 KB Complete
http://localhost:8080/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-ver-1359027215000.js
 200 GET localhost:8080  
/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-ver-1359027215000.js
   9 ms   74,70 KBComplete
http://localhost:8080/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-debug-ver-1359027215000.js
   200 GET 

Re: Obervation with ajax links and multible tabs

2013-01-30 Thread Thomas Götz
Ok thanks for that info!

   -Tom


On 30.01.2013, at 12:05, Martin Grigorov mgrigo...@apache.org wrote:

 Hi,
 
 Yes, this is expected behavior.
 Each page has render counter (
 https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/Page.java#L123)
 that is used to detect that a page is not stale.
 
 I'll move this documentation to the getter method because I see it is not
 visible at the moment in our javadocs.
 


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



Re: Obervation with ajax links and multible tabs

2013-01-30 Thread Thomas Götz
My problem with this currently is:

- user opens same page in two different tabs
- user opene a modal dialog on that page in both tabs
- modal dialog has some logic bound to it's close() method
- user closes modal dialog in tab 1: logic gets executed - fine
- user changes to tab 2 and tries to close modal dialog - page reload - 
onclose() not trigger - not happy …

   -Tom



On 30.01.2013, at 12:05, Martin Grigorov mgrigo...@apache.org wrote:

 Hi,
 
 Yes, this is expected behavior.
 Each page has render counter (
 https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/Page.java#L123)
 that is used to detect that a page is not stale.
 
 I'll move this documentation to the getter method because I see it is not
 visible at the moment in our javadocs.
 
 
 On Wed, Jan 30, 2013 at 11:53 AM, Thomas Götz t...@decoded.de wrote:
 
 I observed a the following phenomenon:
 
 - I have a blank WebPage with just a single AjaxLink on it
 - I load this page in two browser tabs
 - I click on link in tab1: fine - ajax call triggered
 - I change to tab2 and click link - no ajax call, instead the whole page
 is reloaded,
   if I click the link a second time, the ajax call is triggered
 - this can be reproduced on every tab change
 
 I recorded the requests as following:
 
 
 Open page in tab 1:
 
 http://localhost:8080/  302 GET localhost:8080  /301 ms
 680 bytes   Complete
 http://localhost:8080/?0200 GET localhost:8080  /?0
 10 ms  1,93 KB Complete
 
 http://localhost:8080/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-event-jquery-ver-1359027215000.js
200 GET localhost:8080
 /wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-event-jquery-ver-1359027215000.js
 20 ms  6,32 KB Complete
 
 http://localhost:8080/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-ver-1359027215000.js
 200 GET localhost:8080
 /wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-ver-1359027215000.js
  22 ms  262,24 KB   Complete
 
 http://localhost:8080/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-ver-1359027215000.js200
  GET localhost:8080
 /wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-ver-1359027215000.js
  21 ms  74,70 KBComplete
 
 http://localhost:8080/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-debug-ver-1359027215000.js
   200 GET localhost:8080
 /wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-debug-ver-1359027215000.js
26 ms  9,45 KB Complete
 
 
 Open page in tab 2:
 
 http://localhost:8080/  302 GET localhost:8080  /15 ms
 623 bytes   Complete
 http://localhost:8080/?1200 GET localhost:8080  /?1
 5 ms   1,93 KB Complete
 
 http://localhost:8080/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-event-jquery-ver-1359027215000.js
200 GET localhost:8080
 /wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-event-jquery-ver-1359027215000.js
 11 ms  6,32 KB Complete
 
 http://localhost:8080/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-ver-1359027215000.js200
  GET localhost:8080
 /wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-ver-1359027215000.js
  12 ms  74,70 KBComplete
 
 http://localhost:8080/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-ver-1359027215000.js
 200 GET localhost:8080
 /wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-ver-1359027215000.js
  16 ms  262,24 KB   Complete
 
 http://localhost:8080/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-debug-ver-1359027215000.js
   200 GET localhost:8080
 /wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-debug-ver-1359027215000.js
9 ms   9,45 KB Complete
 
 Change to tab 1, click link:
 
 http://localhost:8080/?0-1.IBehaviorListener.0-link_=1359542764426
 200 GET localhost:8080
 /?0-1.IBehaviorListener.0-link_=1359542764426   8 ms   956 bytes
 Complete
 http://localhost:8080/?0200 GET localhost:8080  /?0
 18 ms  1,96 KB Complete
 
 http://localhost:8080/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-ver-1359027215000.js
 200 GET localhost:8080
 /wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-ver-1359027215000.js
  17 ms  262,24 KB   Complete
 
 http://localhost:8080/wicket/resource

Re: Obervation with ajax links and multible tabs

2013-01-30 Thread Thomas Götz
On 30.01.2013, at 12:55, Martin Grigorov mgrigo...@apache.org wrote:


 I can see how this causes you problems.
 But renderCount protection is only per page instance, i.e. only when you
 copy the url of a stateful page (including ?pageId) and use it open the
 very same page instance in a second tab.

Yes, exactly. Using different page versions is no problem. But I'm expecting 
the users to simply cut  paste the url (including ?pageId), so I guess I need 
to find another solution for this …


 Without this protection you will have many other problems. For example you
 may change the hierarchy of the page and clicking on the close button will
 lead to ComponentNotFoundException.
 
 A (complex) idea how to solve this: use Atmopshre/Native WebSocket to
 update all tabs with the latest state per page, so whenever the user
 switches to a tab she will see the same content. Closing Modal in tab1 will
 close it in tab2 as well.

Ahm, well … yes! Interesting, but some folks might call this overengineering, 
not that I know somebody of those guys personally ;-)

   -Tom


 
 
 On Wed, Jan 30, 2013 at 12:30 PM, Thomas Götz t...@decoded.de wrote:
 
 My problem with this currently is:
 
 - user opens same page in two different tabs
 - user opene a modal dialog on that page in both tabs
 - modal dialog has some logic bound to it's close() method
 - user closes modal dialog in tab 1: logic gets executed - fine
 - user changes to tab 2 and tries to close modal dialog - page reload -
 onclose() not trigger - not happy …
 
   -Tom
 
 
 
 On 30.01.2013, at 12:05, Martin Grigorov mgrigo...@apache.org wrote:
 
 Hi,
 
 Yes, this is expected behavior.
 Each page has render counter (
 
 https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/Page.java#L123
 )
 that is used to detect that a page is not stale.
 
 I'll move this documentation to the getter method because I see it is not
 visible at the moment in our javadocs.
 
 
 On Wed, Jan 30, 2013 at 11:53 AM, Thomas Götz t...@decoded.de wrote:
 
 I observed a the following phenomenon:
 
 - I have a blank WebPage with just a single AjaxLink on it
 - I load this page in two browser tabs
 - I click on link in tab1: fine - ajax call triggered
 - I change to tab2 and click link - no ajax call, instead the whole
 page
 is reloaded,
  if I click the link a second time, the ajax call is triggered
 - this can be reproduced on every tab change
 
 I recorded the requests as following:
 
 
 Open page in tab 1:
 
 http://localhost:8080/  302 GET localhost:8080  /301 ms
 680 bytes   Complete
 http://localhost:8080/?0200 GET localhost:8080  /?0
 10 ms  1,93 KB Complete
 
 
 http://localhost:8080/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-event-jquery-ver-1359027215000.js
   200 GET localhost:8080
 
 /wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-event-jquery-ver-1359027215000.js
20 ms  6,32 KB Complete
 
 
 http://localhost:8080/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-ver-1359027215000.js
200 GET localhost:8080
 
 /wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-ver-1359027215000.js
 22 ms  262,24 KB   Complete
 
 
 http://localhost:8080/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-ver-1359027215000.js200
 GET localhost:8080
 
 /wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-ver-1359027215000.js
 21 ms  74,70 KBComplete
 
 
 http://localhost:8080/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-debug-ver-1359027215000.js
  200 GET localhost:8080
 
 /wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-debug-ver-1359027215000.js
   26 ms  9,45 KB Complete
 
 
 Open page in tab 2:
 
 http://localhost:8080/  302 GET localhost:8080  /15 ms
 623 bytes   Complete
 http://localhost:8080/?1200 GET localhost:8080  /?1
 5 ms   1,93 KB Complete
 
 
 http://localhost:8080/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-event-jquery-ver-1359027215000.js
   200 GET localhost:8080
 
 /wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-event-jquery-ver-1359027215000.js
11 ms  6,32 KB Complete
 
 
 http://localhost:8080/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-ver-1359027215000.js200
 GET localhost:8080
 
 /wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-ver-1359027215000.js
 12 ms  74,70 KBComplete
 
 
 http://localhost:8080/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-ver-1359027215000.js

Re: Obervation with ajax links and multible tabs

2013-01-30 Thread Thomas Götz
On 30.01.2013, at 13:25, Martin Grigorov mgrigo...@apache.org wrote:

 OK, you didn't buy it. I'm just looking for testers for Native WebSocket ;-)

I nearly did! At least, I thought about it for some minutes ;-)
 

 Simpler solution: use AjaxNewWindowNotifiyingBehavior and when
 onNewWindow() is called just do: setResponsePage(getPage().getClass(),
 getPage().getPageParameters())
 
 This will redirect to a new instance of this page.

This sounds promising, I'll give it a try, thanks! And if this does not solve 
my problem, I still have the WebSocket option ;-)

   -Tom


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



Re: Configure AjaxRequestAttributes globally?

2013-01-09 Thread Thomas Götz
Done: https://issues.apache.org/jira/browse/WICKET-4958

Any hint/idea how this could be implemented, maybe I'll have a look at this …?!

   -Tom


On 09.01.2013, at 08:58, Martin Grigorov mgrigo...@apache.org wrote:

 Hi Thomas,
 
 No, there is no way to do what you need at the momemt.
 Please file a ticket for improvement.
 
 
 On Wed, Jan 9, 2013 at 1:13 AM, Thomas Götz t...@decoded.de wrote:
 
 Is there a way to manipulate/configure AjaxRequestAttributes globally (in
 Wicket 6.x)? My usecase: in every AJAX request I want to include some
 dynamicExtraParameters, i.e. client side information. Or is the only way to
 do this to hook into one of the global ajax channels (e.g.
 /ajax/call/before) and manipulate the attributes object directly? I'd
 prefer if there was a Java API for this, but maybe I just haven't found it
 yet!? ;-)
 
   -Tom
 
 -- 
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com http://jweekend.com/


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



Configure AjaxRequestAttributes globally?

2013-01-08 Thread Thomas Götz
Is there a way to manipulate/configure AjaxRequestAttributes globally (in 
Wicket 6.x)? My usecase: in every AJAX request I want to include some 
dynamicExtraParameters, i.e. client side information. Or is the only way to do 
this to hook into one of the global ajax channels (e.g. /ajax/call/before) 
and manipulate the attributes object directly? I'd prefer if there was a Java 
API for this, but maybe I just haven't found it yet!? ;-)

   -Tom



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



Re: Select2Choice dropdown box is not appeared in correct position

2013-01-02 Thread Thomas Götz
Currently analyzing. I found out that if you do not add the datepicker then the 
select2 component is displayed correctly …

   -Tom


On 21.12.2012, at 03:36, Madasamy mcruncher madas...@mcruncher.com wrote:

 Here i am attached quickstart project.
 
 To recreate problem to follow steps
 
 1. Downloaded select2.zip from here.
 2. Unpack that zip file.
 3  Directory called select2 will be created.
 4. To run the project type mvn clean package jetty:run
 5. Then type localhost:7070 in your browser.
 select2.zip


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



Re: Select2Choice dropdown box is not appeared in correct position

2013-01-02 Thread Thomas Götz
Everything works fine if you use the current version of wiquery-jquery-ui 
(6.2.0) …

   -Tom




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



Re: Select2Choice dropdown box is not appeared in correct position

2012-12-10 Thread Thomas Götz
You need to show us some more code if we should help you. As everything is fine 
in your quickstart - as you mentioned - the problem presumably seems to be 
somewhere in you application, either some css or javascript issue as I suppose. 
Try to reproduce and isolate it or show us some more.

   -Tom

On 10.12.2012, at 01:19, Madasamy mcruncher madas...@mcruncher.com wrote:

 No, I did not get any Java scripts errors.


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



Re: Select2Choice dropdown box is not appeared in correct position

2012-12-06 Thread Thomas Götz
Strange, the select2-with-searchbox class is added by select2.js whenever the 
search input is shown:

//add select2-with-searchbox to the container if search box is shown
$(this.dropdown, this.container)[showSearchInput ? addClass : 
removeClass](select2-with-searchbox);

Do you get any Javascript errors?

   -Tom


On 06.12.2012, at 03:07, Madasamy mcruncher madas...@mcruncher.com wrote:

   we are using wicket-select2 2.0 in our application. A form
 having a Select2Choice field when click this field the search
 dropdown box is not appeared in correct position. But this is
 work fine on my quick start. our application is depending on
 bootstrap css and js.
 
 My observation , select2choice field html code look like in
 
 * myQuickstart
 
  div id=s2id_foo2 class=select2-container style=width: 300px
  a class=select2-choice onclick=return false; href=# tabindex=-1
  div class=select2-drop *select2-with-searchbox* select2-drop-active
 select2-offscreen style=display: block;
  /div
  input id=foo2 type=hidden name=foo value= style=width: 300px;
 display: none; wicket:id=foo
 
 * our application,
 
  div id=s2id_typed class=select2-container style=width: 300px
  a class=select2-choice onclick=return false; href=# tabindex=-1
  div class=select2-drop select2-offscreen style=display: block;
  /div
  input id=typed class=select2-choice-text type=hidden name=type
 value= wicket:id=type style=display: none;
 
 The Css class  *select2-with-searchbox* is not added in our application
 html code.
 
 can you give suggestion to solve this problem?


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



Re: Read Twitter tweets

2012-12-04 Thread Thomas Götz
Ahm, sure: just go to http://twitter.com or use 
INSERT_YOUR_FAVORITE_TWITTER_CLIENT_HERE ;-)

SCNR,
   -Tom


On 04.12.2012, at 15:57, ronny.v...@consult.nordea.com wrote:

 Hi People
 
 Any experience/recommendation on subject?
 
 Thanks in advance
 
 Regards
 /Ronny
 


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



Re: select2 integration -Duplicate(selected) value are appear in drop down box

2012-12-03 Thread Thomas Götz
I can't detect anything wrong with your implementation on first sight. Is it 
possible that you can reproduce the described behavior in a Quickstart?

  -Tom


On 01.12.2012, at 03:09, Madasamy mcruncher madas...@mcruncher.com wrote:

 FooProvider implementation is
 
public class FooProvider extends TextChoiceProviderFoo
{
 
   FooService fooService=new FooService();
   @Override
protected String getDisplayText(Foo fooChoice) {
return fooChoice.getName();
}
 
@Override
protected Object getId(Foo fooChoice) {
return fooChoice.getName;
}
 
@Override
public void query(String term, int page, ResponseFoo response) {
response.addAll(queryMatches(term, page, 10));
response.setHasMore(response.size() == 10);
 
}
 
@Override
public CollectionFoo toChoices(CollectionString ids) {
ArrayListFoo foos = new ArrayListFoo();
for (String id : ids) {
foos.add(fooService.findFooByName(id));
}
return foos;
}
}
 
 private ListFoo queryMatches(String term, int page, int pageSize) {
 
ListFoo result = new ArrayListFoo();
term = term.toUpperCase();
final int offset = page * pageSize;
int matched = 0;
for ( Foo foo : getAllFoos()) {
if (result.size() == pageSize) {
break;
}
 
if (foo.getName().toUpperCase().contains(term)) {
matched++;
if (matched  offset) {
result.add(foo);
}
}
}
return result;
}
 
public ListFoo getAllFoos()
{
//return all foos
return fooService.findAll();
}


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



Re: Setting focus in a form in a ModalWindow

2012-12-03 Thread Thomas Götz
What about this:

Form myForm = new Form(form);
add(myForm);
final Component myComponentToFocus = ...;
myForm.add(myComponentToFocus);

final ModalWindow modalWindow = new ModalWindow(modal) {
@Override
public void show(AjaxRequestTarget target) {
super.show(target);
target.focusComponent(myComponentToFocus);
}
};
add(modalWindow);
modalWindow.setContent(myForm);

AjaxLink opener = new AjaxLink(link) {
@Override
public void onClick(AjaxRequestTarget target) {
modalWindow.show(target);
}
};
add(opener);

   -Tom


 When you have a form in a standard page you can trap the 'onload' event
 to set the focus but I couldn't find any useful event to trap when a
 form is opened up in a Modal Window - the 'onload' applies to the page
 loading, not the ModalWindow (I'm pretty sure).
 
 The 'least worst' solution I have found is to trap the 'onmouseover' and
 set the focus in that, after the focus is set I set a flag to stop it
 re-setting the focus every time the mouse re-enters the form. It's still
 not perfect but it's a lot better than 'no focus'. I've included the
 code below if anyone is interested.
 
 Is there a better event to be trapping to set the focus?
 
 class PanelWithAForm extends Panel
 {
...
 
protected boolean focusSet = false;
 
@Override
protected void onBeforeRender()
{
// Need to reset the focusSet at each re-render
 - onInitialize is only called once regardless of how many times the
 modal is opened from the hosting page instance 
super.onBeforeRender();
focusSet = false;
}
 
protected void onInitialize()
{
super.onInitialize();
 
add(new AjaxEventBehavior(onmouseover)
{
protected void
 onEvent(AjaxRequestTarget target)
{
if ( !focusSet )
{
 
 target.focusComponent(fieldToFocusOn);
focusSet =
 true;
}
}
});
}
 
...
 }


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



Re: select2 integration -Duplicate(selected) value are appear in drop down box

2012-11-29 Thread Thomas Götz
Can you please post your FooProvider implementation?

   -Tom

On 30.11.2012, at 05:31, Madasamy mcruncher madas...@mcruncher.com wrote:

 we are using select2 version 2.0  in our application.
 Select2MultiChoice field are using for select a multiple value. here we set
 the
 maximumselectionsize is 20. and set minimuminputlength is 1.when we
 give input in that field the relevant value are appear in drop down box
 correctly,
 if selection count reach  15 or 16, hence we give input in that field the
 duplicated
 (selected) value are appear in the drop down box.
 
 but i could not recreate this problem in Myquickstart.
 
 the sample code is
 
Select2MultiChoiceFoo fooField = new
 Select2MultiChoiceFoo(message,
  new PropertyModelCollectionFoo(this, foo), new
 FooProvider);
fooField.getSettings().setMinimumInputLength(1);
fooField.getSettings().setMaximumSelectionSize(20);
fooField.setRequired(true);
return fooField;


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



View and edit panel

2012-11-28 Thread Thomas Götz
Hi there,

I'm currently implementing a panel that is used for viewing and editing of some 
entity. I wonder if there is an elegant solution for this.

The situation:
all my view/edit panels have a common abstract parent class (Panel), providing 
some general markup, i.e. I'm using wicket:extend in my concrete Panel 
implementation. Not every component is editable, only some. Currently I have a 
solution where I'm using a flag (isEditMode) and some if/else constructs to 
create either a label or e.g. a TextField. I keep the markup for the 
FormComponents as Fragments or separate Panels. Any more sophisticated ideas on 
how to implement this? ;-)

Cheers,
   -Tom



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



Re: Force Ajax onClick event on empty a

2012-11-23 Thread Thomas Götz
Ajax works also with empty tags, but your link does not receive click events 
because of the surrounding span (which gets the click events).

Try this:

a wicket:id=link class=myIcon/a

.myIcon {
background: url(...);
display: inline-block;
height: XXXpx;
width:  YYYpx;
}


Cheers,
   -Tom


On 23.11.2012, at 12:41, ronny.v...@consult.nordea.com wrote:

 Hi all
 
 I seem to struggle more than expected on this scenario: An empty A tag wont 
 trigger Ajax
 
 HTML is pretty simple
 span class=myIcon  id=id3192
 a 
 href=../page?3-2.ILinkListener-navigation-navigation_body-wmc-left-4-comp-content-tabs-panel-body-rows-5-cells-2-cell-3-link
  id=link17a
 /a
 /span
 
 myIcon {
background: url(../img/myImg.png);
 
 Whats the trick? should I use some transparent text approach or? any 
 experiences here to share?
 
 Thanks in advance!
 
 /Ronny


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



Re: how to get the listview's dropdownchoice value

2012-11-19 Thread Thomas Götz
ddlmodel.getObject()?

   -Tom


On 20.11.2012, at 05:24, david.li lxw_fi...@hotmail.com wrote:

 the code like this:
 ListString selection = Arrays.asList(A, B);
 form.add(new ListView(lis, selection) {
 
   @Override
   protected void populateItem(ListItem item) {
   List list;
   if (item.getModelObject().equals(A)) {
   list = Arrays.asList(a1, a2);
   } else {
   list = Arrays.asList(b1, b2);
   }
   DropDownChoice ddl = new DropDownChoice(ddltest, ddlmodel, 
 list);
   item.add(ddl);
   }
 
 });


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



Re: Distinguish AjaxButton from Button in Final HTML

2012-10-31 Thread Thomas Götz
What is your usecase, why do you need to know this by looking at the generated 
HTML?

   -Tom


On 31.10.2012, at 18:24, eugenebalt eugeneb...@yahoo.com wrote:

 Is there a way to tell, just by looking at the rendered HTML, whether the
 component was a Wicket AjaxButton or a Wicket Button?
 
 (All buttons may have various JavaScript appended to them, so you can't just
 see if onClick is empty or not. For instance, a Button might have a Confirm
 popup appended to it.)
 
 But is there some kind of naming convention or a flag that could be reliably
 used to tell the difference?


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



Re: captcha show different strings

2012-10-09 Thread Thomas Götz
The string is only equal within the same session, meaning: upon simple page 
reload it stays the same. If you start a new session (either be opening a new 
browser or by simply deleting the '?1' from the url) you will get a fresh new 
string.

Cheers,
   -Tom


On 09.10.2012, at 18:47, Anna Simbirtsev asimbirt...@gmail.com wrote:

 Hi
 
 I am looking at the captcha example and it always produces the same string.
 How do I make it to produce different strings?
 
 http://www.wicket-library.com/wicket-examples/captcha/?0
 
 Thanks
 Anna


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



Re: sicket 6 beta3 - wicket 6

2012-09-27 Thread Thomas Götz
Please show us some code or create a Quickstart that demonstrates the problem, 
else it will be very hard to help you.


On 27.09.2012, at 14:23, Douglas Ferguson the...@gmail.com wrote:

 I just tried to upgrade from beta3 to wicket 6 and one of my main pages blows 
 up with a vengeance.
 
 It's the typical error indicating that something is in the code but now the 
 markup and it lists out almost every field!
 You guys have any idea what might cause this? 
 
 Works fine under beta3...
 
 Douglas



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



Re: Auto PageParameters from a POJO?

2012-09-18 Thread Thomas Götz
Roll your own, e.g. using commons BeanUtils:


import junit.framework.Assert;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.wicket.request.mapper.parameter.INamedParameters;
import org.apache.wicket.request.mapper.parameter.PageParameters;
import org.junit.Test;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class PageParametersTest {

@Test
public void testPageParameters() {
// toPageParameters
MyBean bean = new MyBean(foo, bar);
final PageParameters pageParameters = toPageParameters(bean);
Assert.assertEquals(2, pageParameters.getNamedKeys().size());
Assert.assertEquals(foo, pageParameters.get(foo).toString());
Assert.assertEquals(bar, pageParameters.get(bar).toString());
// repopulate   
MyBean newBean = new MyBean();
populate(newBean, pageParameters);
Assert.assertEquals(foo, newBean.getFoo());
Assert.assertEquals(bar, newBean.getBar());
}

public static PageParameters toPageParameters(Object object) {
final PageParameters params = new PageParameters();
try {
final Map map = BeanUtils.describe(object);
for (Object key : map.keySet()) {
if (!class.equals(key))   // We don't want the result of 
getClass()
params.set((String) key, map.get(key));
}
} catch (Exception e) {
e.printStackTrace();
}
return params;
}

public static void populate(Object bean, PageParameters parameters) {
final MapString, Object map = new HashMapString, Object();
for (INamedParameters.NamedPair namedPair : parameters.getAllNamed()) {
map.put(namedPair.getKey(), namedPair.getValue());
}
try {
BeanUtils.populate(bean, map);
} catch (Exception e) {
e.printStackTrace();
}
}


public class MyBean implements Serializable {
private String foo;
private String bar;

public MyBean() {
}

public MyBean(String foo, String bar) {
this.foo = foo;
this.bar = bar;
}

public String getBar() { return bar; }
public void setBar(String bar) { this.bar = bar; }
public String getFoo() { return foo; }
public void setFoo(String foo) { this.foo = foo; }
}

}

   -Tom


On 18.09.2012, at 04:09, Ondrej Zizka ozi...@redhat.com wrote:

 And I was thinking - is there some mechanism to automatically create the
 params from the domain object, using properties matching against mount()
 string?



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



Re: Is dataview/table with multiple rows possible?

2012-09-17 Thread Thomas Götz
Please have a look at http://www.wicket-library.com/wicket-examples/repeater

   -Tom


On 17.09.2012, at 20:37, Delange delan...@telfort.nl wrote:

 Hi, I need a dataview/table with multipe rows
 One row is no problem, so who can help me with an example with 2 rows?


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



wicket-select2 as AutoCompleteTextField replacement

2012-09-12 Thread Thomas Götz
I want to use wicket-select2 as a replacement for Wicket's 
AutoCompleteTextField. Is it somehow possible to accept user input that is not 
contained in the list of choices? Say, my choices list returns [A, B, C] but 
user may also enter D in the textfield. How can I achieve this?

   -Tom


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



Re: wicket-select2 as AutoCompleteTextField replacement

2012-09-12 Thread Thomas Götz
Ok, will try that, thanks!

   -Tom

On 12.09.2012, at 17:23, Igor Vaynberg igor.vaynb...@gmail.com wrote:

 you need to define your own createSearchChoice function and pass it to
 the config. see the docs on the demo site.
 
 -igor
 
 On Wed, Sep 12, 2012 at 2:33 AM, Thomas Götz t...@decoded.de wrote:
 I want to use wicket-select2 as a replacement for Wicket's 
 AutoCompleteTextField. Is it somehow possible to accept user input that is 
 not contained in the list of choices? Say, my choices list returns [A, B, C] 
 but user may also enter D in the textfield. How can I achieve this?
 
   -Tom


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



Re: Wicket 1.5 migration questions

2012-09-04 Thread Thomas Götz
Take a look at the migration guide, this will answer some (if not all) of your 
questions:
https://cwiki.apache.org/WICKET/migration-to-wicket-15.html

   -Tom

On 04.09.2012, at 02:36, Alec Swan alecs...@gmail.com wrote:

 Hello,
 
 I finally decided to bite the bullet and migrate to Wicket 1.5. It
 turned out a lot harder than I expected. Here are some of the issues I
 ran into:
 
 * How to implement HybridUrlCodingStrategy in 1.5?
 
 * I saw a ticket related to putClassAlias, but I couldn't figure out
 how to port this one line to 1.5:
getSharedResources().putClassAlias(GlobalResourceScope.class, global);
 
 * How do I modify the following line to use HTTP in DEVELOPMENT mode?
setRootRequestMapper(new HttpsMapper(getRootRequestMapper(), new
 HttpsConfig(80, 443)));
 
 * WicketTester#setupRequestAndResponse() - what should be used instead?
 
 * How do I integrate WicketTester and Spring? I used the following
 code in 1.4.x:
 InjectorHolder.setInjector(new AnnotSpringInjector(new
 MockContextLocator(myAppContext)));
 InjectorHolder.getInjector().inject(this);
 
 Thanks,
 
 Alec


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



Re: Wicket 1.5 migration questions

2012-09-04 Thread Thomas Götz
Please see my inline comments.

Cheers,
   -Tom



 On 04.09.2012, at 02:36, Alec Swan alecs...@gmail.com wrote:
 
 * How to implement HybridUrlCodingStrategy in 1.5?

Please have a look at 
http://wicketinaction.com/2011/07/wicket-1-5-mounting-pages/


 * I saw a ticket related to putClassAlias, but I couldn't figure out
 how to port this one line to 1.5:
   getSharedResources().putClassAlias(GlobalResourceScope.class, global);

Please have a look at 
http://alexandros-karypidis.blogspot.de/2011/01/migrating-from-wicket-14-to-15.html


 * How do I modify the following line to use HTTP in DEVELOPMENT mode?
   setRootRequestMapper(new HttpsMapper(getRootRequestMapper(), new
 HttpsConfig(80, 443)));

if (Application.get().getConfigurationType() != 
RuntimeConfigurationType.DEVELOPMENT) {
setRootRequestMapper(new HttpsMapper(getRootRequestMapper(), new 
HttpsConfig(80, 443)));
}


 * WicketTester#setupRequestAndResponse() - what should be used instead?

Nothing, simply do:
WicketTester tester = new WicketTester(new MyApplication());


 * How do I integrate WicketTester and Spring? I used the following
 code in 1.4.x:
InjectorHolder.setInjector(new AnnotSpringInjector(new
 MockContextLocator(myAppContext)));
InjectorHolder.getInjector().inject(this);

See 1.5 Migration guide, chapter Wicket-IOC changes:

InjectorHolder.getInjector().inject(Object object) is replaced with 
org.apache.wicket.injection.Injector.get().inject(Object object).
This is valid for both Wicket-Spring and Wicket-Guice.



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



Re: Wicket 1.5 migration questions

2012-09-04 Thread Thomas Götz
I didn't get your usecase exactly yet, but maybe this will help you:
http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/

Cheers,
   -Tom


On 04.09.2012, at 17:33, Alec Swan alecs...@gmail.com wrote:

 I saw the link explaining how to migrate
 SharedResources#putClassAlias(GlobalResourceScope.class, global)
 before but was found it confusing because global and images
 aliases 1.4 version were replaced with imgres in 1.5 example.
 
 All I need to do is use global in place of GlobalResourceScope.class
 in the URLs. How do I do this in 1.5?


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



Re: Performance tuning Wicket[1.5]...

2012-08-31 Thread Thomas Götz
Hm, Java leap second bug? 
http://blog.wpkg.org/2012/07/01/java-leap-second-bug-30-june-1-july-2012-fix/

   -Tom


On 31.08.2012, at 12:19, nino martinez wael nino.martinez.w...@gmail.com 
wrote:

 No what I meant was that the system er performing as good as it can,
 without clustering etc. There weren't much stuff to optimize on.
 
 2012/8/31 Alex Shubert alex.shub...@gmail.com
 
 Maybe bottleneck is somewhere else? SQL request maybe? Some eager
 loading...
 
 On 29 August 2012 10:31, nino martinez wael
 nino.martinez.w...@gmail.com wrote:
 A little feedback. First I tried visualVM (did not provide enough detail
 for this extreme optimization), then jprofiler (had trouble getting it
 to
 work), but yourkit gave the best result. However there was little I could
 do, other than removing an unnecessary filter (character encoding fix for
 tomcat/wicket).. Other than that there werent many hotspots.
 
 regards Nino
 
 2012/8/27 nino martinez wael nino.martinez.w...@gmail.com
 
 Yup, I'll do that another round.. Although I'll use visualvm...
 
 
 2012/8/27 Martin Grigorov mgrigo...@apache.org
 
 Fire Yourkit/JProfiler and see what they say.
 
 On Mon, Aug 27, 2012 at 2:45 PM, nino martinez wael
 nino.martinez.w...@gmail.com wrote:
 Hi
 
 Im seeing a load on our server.
 
 Tried these settings in wicketapplication:
 
 getPageSettings().setVersionPagesByDefault(false);
 getStoreSettings().setInmemoryCacheSize(200);
 And in our MainPage:
 setVersioned(false);
 
 All of our services are being cached, so it's not the backend thats
 the
 problem.. Im using LDM's everywhere.
 
 Our main page are using ajax to refresh itself. And load
 turns linearly bad, until max load on somewhere around 100 sessions.
 
 Memory are not a problem, wicket app uses very little around 100 mb
 and
 server has 4gb. CPU are a AMD opteron 2.2 ghz.
 
 
 --
 Best regards / Med venlig hilsen
 Nino Martinez
 
 
 
 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 --
 Best regards / Med venlig hilsen
 Nino Martinez
 
 
 
 
 --
 Best regards / Med venlig hilsen
 Nino Martinez
 
 
 
 --
 Best regards
 Alexandr
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 -- 
 Best regards / Med venlig hilsen
 Nino Martinez


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



Re: ObjectAutoCompleteBuilder in wicket 1.5.7 get is not a valid Serializable error.

2012-08-30 Thread Thomas Götz
Are all properties (fields) of HomePage$SearchOptions also Serializable?

   -Tom


On 30.08.2012, at 03:17, Vignesh Palanisamy vign...@mcruncher.com wrote:

 while implementing Serializable also the same error came martin!
 
 
 On Wed, Aug 29, 2012 at 6:17 PM, Martin Grigorov mgrigo...@apache.orgwrote:
 
 This line says it all:
 
 private java.lang.Object
 org.apache.wicket.model.CompoundPropertyModel.target
 [class=org.apache.wicket.quickstart.HomePage$SearchOptions] -
 field that is not serializable
 
 
 HomePage$SearchOptions is not Serializable


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



Re: override wicket mark up

2012-08-30 Thread Thomas Götz
If you extend a Component/Page and want to provide a different markup you 
cannot change the component hierarchy, so it's not possible to insert some 
container (in your case adminGroupTabs) into the tree.

   -Tom


On 30.08.2012, at 05:05, ramlael grambab...@gmail.com wrote:

 Hi Friends, 
 
 I would like to override wicket page, will have same wicket id's with
 different parent ids. 
 Is it possible in wicket please help me... 
 
 http://apache-wicket.1842946.n4.nabble.com/file/n4651624/wikcet-problem.png 
 
 Regards,
 Rambabu


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



Re: Read POST based request from external site

2012-08-16 Thread Thomas Götz
This normally means that there *are* no POST parameters. Are you sure you're 
doing a POST request to your page, and not a GET?

   -Tom


On 16.08.2012, at 12:16, tmaus loum...@yahoo.com wrote:

 
 I was looking up all available threads, but did not find an answer. 
 
 I have an app deployed to a mobile device that should communicate with my
 service via REST. 
 
 As part of the flow the user can upload a new picture to the service. 
 
 My page is able to read GET based requests, but no POST based onces. 
 
 Im using wicket 1.5.7
 
 RequestCycle.get().getRequest().getPostParameters() is empty 
 
 My page extends WebPage
 
 Tried to use constructor with and without PageParameters without any
 success.
 
 I mounted my page (mountPage(/upload,UploadPage.class)) with
 WebApplication. 
 
 Any ideas ?
 
 Any hints ?
 
 Regards
 
 Thorsten 


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



Re: JGrowlBehavior

2012-08-16 Thread Thomas Götz
You could use Wicket's default ajax event (using the inter-component event API):
https://cwiki.apache.org/WICKET/migration-to-wicket-15.html#MigrationtoWicket1.5-Defaultajaxevent

If you don't want to react upon *each* ajax event you need to explicitly 
trigger an event, put some playload (e.g. a marker class MyEvent), check for 
that payload in onEvent and trigger your update respectively.

   -Tom



On 16.08.2012, at 23:18, Tom Norton tomwnorton.mailing.li...@gmail.com wrote:

 We use JGrowl on our website, and now that we've moved to wicket, I've been
 trying to create a JGrowlBehavior.  The only time we want this behavior to
 run is AFTER the ajax events of other behaviors and components.  Because of
 this, I cannot use AbstractAjaxBehavior or AbstractDefaultAjaxBehavior,
 since they require round trips.  Does anyone have any ideas?  We use wicket
 1.5.4.
 
 Thanks,
 Tom


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



Re: How to force a page to re-render

2012-07-10 Thread Thomas Götz
What about this?

Link link = new Link(link) {
@Override
public void onClick() {
setResponsePage(new MyPage());
}
};

   -Tom



On 10.07.2012, at 11:36, Anna Hunecke wrote:

 Hi,
 
 I'm trying to force a page to re-render everytime the user clicks the refresh 
 button. Wicket sees the page as a stateful page, but I'm not interested at 
 all in keeping this state.
 
 What I would like to do is to get the newest data from the database on 
 refresh and display it. I tried to use LoadableDetachableModels for this, but 
 ran into trouble pretty soon. The main reason is that the data also 
 determines visibility and styling of individual elements in the page which 
 makes the code very complicated with lots of LoadableDetachableModels and 
 Behaviors (The page is not exactly small). Also, the page size increases, and 
 I want to avoid that.
 
 So, I ended up in overwriting the renderPage() method in my page, throwing 
 away all content and drawing it again. But I don't like this solution. Can I 
 somehow force wicket to throw away the complete page and create a new one?
 
 Regards,
 Anna


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



Re: How to read message properties that has parameters into a program

2012-07-08 Thread Thomas Götz
Have a look at org.apache.wicket.model.StringResourceModel.

   -Tom


On 08.07.2012, at 22:44, lang wrote:

 I have a program that's gonna send an  email  confirmation  to a customer.
 The email text is stored in a property file. 
 How can I read these values with substitution parameters? 
 I'm aware of getString(key) but that has has parameters
 
 Example of one property:
 mail01=Dear {customer}, we confirm ... blablabla
 What Java code do I need to use?


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



Re: java pojo/Bean to generate html (textfield, dropdown,radio buttons)

2012-07-04 Thread Thomas Götz
Nothing easier than that!

MyBean bean = new MyBean();
System.out.println(bean.toHtmlWithFieldsAndValidationAndEverything());

Seriously: if you want us to help you should ask serious questions. Nobody will 
be able to explain how to automatically generate a HTML page from a POJO. You 
might as well ask: I have some sugar, 2 eggs and and pound of flour, how to 
automatically bake a cake out of this?!


SCNR,
   -Tom


On 04.07.2012, at 15:13, venkatnsm wrote:

 hi,
 
 how to generate html page from java POJO.
 
 Suppose in pogo i have name  age, for these fields i want to generate text
 field automatically  in HTML with validations.
 
 Thanks in advance.


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



Re: Wicket panel not getting refreshed completely

2012-06-21 Thread Thomas Götz
… e.g. your Label ('numberOfCommentLabel') uses a static model (a String), but 
should use an IModelString in order to be refreshable.

   -Tom


On 21.06.2012, at 13:44, kshitiz wrote:

 Hi,
 
 I have a panel with ajax button (i.e. form) inside it. When I submit the
 form, not all of the components of that panel are being refreshed. Here is
 the code:
 
 [...]


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



Re: Wicket panel not getting refreshed completely

2012-06-21 Thread Thomas Götz
Could you provide a Quickstart that demonstrates the problem? This will make it 
much easier for us to help you, thanks!

   -Tom


On 21.06.2012, at 14:54, kshitiz wrote:

 Hi,
 
 I have tried out this:
 
 *Integer numberOfComments = commentDomainList.size();
   Label numberOfCommentLabel = new Label(numberOfCommentLabel,
   new ModelInteger(numberOfComments));*
 
 But again nothing happens..I think the above statement is right...what do
 you suggest?


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



Re: Sync up sessions

2012-06-20 Thread Thomas Götz
Great! And what would be your question, please? ;) 

   -Tom 




Am Mittwoch, 20. Juni 2012 um 18:25 schrieb wicket user:

 Hi,
 
 we are using Wicket as a Presentation layer, so we need to sync up with the
 Session of the Business Layer framework, we kept this in the same WAR. 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Sync-up-sessions-tp4650134.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 




Re: Determine session size for Wicket 1.5

2012-06-19 Thread Thomas Götz
Session.get().getSizeInBytes();

   -Tom


On 19.06.2012 at 13:03 Walter Rugora wrote:

 Hi there,
 
 for Wicket 1.3 I determine session size like this:
 RequestCycle.get().getSession().getSizeInBytes()
 
 But the RequestCycle underwent some changes and I cannot figure out how
 to do it for Wicket 1.5?
 
 Appreciate your help!
 Walter

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



Re: Wicket 1.4 Remember Login WIth Cookie

2012-06-18 Thread Thomas Götz
Have a look at org.apache.wicket.util.cookies.CookieUtils#load(final String 
key).

Cheers,
   -Tom


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



Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

2012-06-14 Thread Thomas Götz
Maybe you should think about an asynchronous approach, i.e. poll the state of 
your long-time-backend-operation e.g. by using an AjaxSelfUpdatingTimerBehavior.

   -Tom



On 14.06.2012 at 15:51 fachhoch wrote:

 if my dboperation is  pending and taking long time, there is now way I can 
 call another resource ? 


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



Re: Detach Model Objects when user leaves page

2012-06-14 Thread Thomas Götz
How would you notice if the user leaves the page? If you have only Wicket 
controlled Links on your page then you could null your Repository data in 
their onclick() implementation (if you do a setResponsePage(someOtherPage).
If there's also non-Wicket links on your page, well, you would probably have to 
use some JS magic (+ AJAX) to react upon page leave event. I don't like either 
of those solutions but would prefer a cache including expiry strategy instead. 
About how much data are we talking here? Isn't it possible to do some kind of 
paging or do you need to fetch the whole dataset?

   -Tom



On 14.06.2012 at 16:57 brazz wrote:

 Hi,
 
 i have a list view with content from a Repository that is input to a
 wicket DataProvider with ModelObject. 
 I get the content of the repository from a webservice. 
 I don't want to load the data from the webservice after each request, but
 the model gets detached after each request and accordingly my Repository
 (which is connected to the webservice) is empty after each request (because
 its objects are set to null in the detachment process).
 
 Now, is there a way to influence a LoadableDetachableModel in a way that it
 gets detached after the user leaves the page/accesses another page. I tried
 to overwrite the detach-method but without success.
 
 As a workaround i'm using the session to store my repository but then i
 don't have an indication when the data isn't needed any more. I think about
 time based expiration of session data (time based cache mechanism like in
 guava library), but i think this is rather cumbersome. Detaching the model
 object after the user leaves the page would be more elegant.
 
 Thanks for any suggestions or hints how you fixed this scenario.


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



Re: on click on a label in a listview - onClicke method never used localy

2012-06-14 Thread Thomas Götz
Label does not have an onClick() method, so nobody will be calling your 
onClick() ;)
If you want to attach AJAX behavior to the label you should do the following:

final Label label = new Label(label, item.getModel());
label.add(new AjaxEventBehavior(click) {
@Override
protected void onEvent(AjaxRequestTarget target) {
// do something
}
});
item.add(label);


On 14.06.2012 at 17:27 oliver.stef wrote:

 Hi,
 
 i want to use a label inside listView and i want the user will press on the
 label - and the
 onClick method will work. but what i get is this msg.: 
 
 The method onClick() from the type new Label(){} is never used locally. 
 I don't know why?!?!?!?!?!
 
 this is my implement:
 
 List list = Arrays.asList(new String[] { a, b, c });
   
   @SuppressWarnings(unchecked)
   ListView listview = new ListView(listview, list) {

 
   protected void populateItem(ListItem item) {
   
   String s = (String)item.getModelObject();
   item.add(new Label(label, item.getModel())
   {   
   private static final long   
 serialVersionUID= 1L;
 
   private void onClick()
   {
   System.out.println(Hello);
 
   }
   }
   );
   }
   };
   add(listview);
 
 thanks!


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



Re: CompoundPropertyModel problem.. the values are not refreshing

2012-06-14 Thread Thomas Götz
Could you please provide a Quickstart that describes your problem? This will 
make it much easier for us to help you.

   -Tom


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



Re: on click on a label in a listview - onClicke method never used localy

2012-06-14 Thread Thomas Götz
What exactly is not working? If you could provide a Quickstart it would be 
easier to help you.

   -Tom


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



Re: add a component (submitLink) multiple times?

2012-06-13 Thread Thomas Götz
I don't know exactly what you are trying to do, but you could have a look at 
RepeatingView.

   -Tom


On 13.06.2012 at 19:23 oliver.stef wrote:

 How can I add a component (submitLink) multiple times? 
 
 like this: 
 
 ListString categories = Arrays.asList(English, Japanese, );   
 
 for (String str : language) 
 { 
 form.add(new SubmitLink(Name,str) 
{ 
@Override 
public void onSubmit() { ...} 
   } 
 } 
 
 and HTML: 
 # 
 
 
 Any ideas? 


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



Re: Conditional validation without overriding isRequired

2012-06-05 Thread Thomas Götz
Yes, you can also push the state instead of pulling it, which besides is 
preferrable in terms of efficiency (as onConfigure() is only called once per 
request whereas isVisible() is potentially called many time):

TextFieldString textField = new TextFieldString(textField) {
@Override
protected void onConfigure() {
super.onConfigure();
setVisible(condition);
}
};

You can also call textField.setVisible(...) in the Page's or Panel's 
onConfigure(), but then you need a reference to the textField (property of the 
page or panel). Or - if possible - you can group your FormComponents into a 
WebMarkupContainer an set the visibility there.

   -Tom



On 05.06.2012 at 16:51 Bob Schlärmann wrote:

 Hello,
 
 A question about form processing: is it possible to do conditional form 
 validation without overriding FormComponent#isRequired?
 
 I have a form with about 5 different form components (e.g. textfields, 
 dropdown, radiobutton). These fields are only required if a RadioGroup has a 
 certain value.
 
 I've read the solution given in 
 https://cwiki.apache.org/WICKET/conditional-validation.html. But this means I 
 have to subclass all form components  and override isRequired. Is there an 
 easier solution?
 
 Currently I'm using an Ajax call and disable the container of the optional 
 components, however that doesn't work if Javascript is disabled (also not 
 safe presumably).
 
 Best regards,
 
 Bob


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



Re: Conditional validation without overriding isRequired

2012-06-05 Thread Thomas Götz
Argh, confused setVisible() with setRequired, my bad ;-)
But nevertheless: call setRequiered(condition) in onConfigure().

   -Tom 


Thomas Götz wrote:

 Yes, you can also push the state instead of pulling it, which besides is 
 preferrable in terms of efficiency (as onConfigure() is only called once per 
 request whereas isVisible() is potentially called many time):
 
 TextFieldString textField = new TextFieldString(textField) {
@Override
protected void onConfigure() {
super.onConfigure();
setVisible(condition);
}
 };
 
 You can also call textField.setVisible(...) in the Page's or Panel's 
 onConfigure(), but then you need a reference to the textField (property of 
 the page or panel). Or - if possible - you can group your FormComponents into 
 a WebMarkupContainer an set the visibility there.
 
   -Tom


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



Re: Conditional Popup

2012-06-04 Thread Thomas Götz
What about the AjaxLink alternative I already suggested?

   -Tom


On 04.06.2012 at 09:35 hfriederichs wrote:

 No suggestions? Anyone?


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



Re: Conditional Popup

2012-06-04 Thread Thomas Götz
On 04.06.2012 at 13:21 hfriederichs wrote:

 
 Thomas Götz-2 wrote
 
 As an alternative, you could use an AjaxLink and push the popup-opener JS
 to teh frontend, then you could have your decision logic (wether to open
 it or not) in the backend (Wicket layer).
 
 
 
 But, how would you do that?
 
 if  (condition) {
   info(Do this first);
 } else {
   activate JS-popup-opener 
 }

Yes, this would be a possible solution, maybe something like that:

AjaxLink link = new AjaxLink(link) {
@Override
public void onClick(AjaxRequestTarget target) {
if (condition) {
info(...);
// target.add(feedbackPanel);
} else {
target.appendJavaScript(Wicket.$(' + myPopup.getMarkupId() + 
').open(););
}
}
};
add(link);


 And furthermore, I need to pass data to the popup-page, so I would have to
 stick that in the Session?

You could also pass a model to the Page's constructor e.g.

Cheers,
   -Tom


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



Re: Component-specific javascript in Ajax-Calls

2012-06-04 Thread Thomas Götz
What about this?


public class MyComponent extends Panel {

public MyComponent(String id) {
super(id);
setOutputMarkupId(true);
}

@Override
public void renderHead(IHeaderResponse response) {
response.renderOnDomReadyJavaScript(
$('# + getMarkupId() +  .ttr').tipTip({defaultPosition: 
'right'}););
}

}

   -Tom


On 04.06.2012, 19:21 Jürgen Lind wrote:

 […]
  wicket:script
 $(document).ready(function() {
   $(#markupId .ttr).tipTip({defaultPosition: right});
 });
  /wicket:script
 […]


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



Re: Component-specific javascript in Ajax-Calls

2012-06-04 Thread Thomas Götz
… or you could put your Javascript code into a template, e.g. like that:


MyComponent.js.tmpl:

$('#${markupId} .ttr').tipTip({defaultPosition: 'right'});

// ... some long Javascript block ….


and in MyComponent.java you'd have:
---
public class MyComponent extends Panel {

public MyComponent(String id) {
super(id);
setOutputMarkupId(true);
}

@Override
public void renderHead(IHeaderResponse response) {
final TextTemplate template = new PackageTextTemplate(
MyComponent.class, MyComponent.js.tmpl);
final MapString, Object variables = new HashMapString, Object();
variables.put(markupId, getMarkupId());
// variables.put(foo, bar);  etc.
response.renderOnDomReadyJavaScript(template.asString(variables));
}

}


   -Tom


On 04.06.2012, 21:10 Martin Grigorov wrote:

 For longer scripts you can create JS helpers like:
 
 in some.js:
 var helper = function(selector) {
  // something longer here
 }
 
 is Some.java:
 
 response.renderOnDomReadyJavaScript(helper($('# + getMarkupId() +'););


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



Re: Conditional Popup

2012-06-01 Thread Thomas Götz
Could you please provide a quickstart or post the interesting HTML and Java 
snippets?

   -Tom


On 01.06.2012 at 15:24 hfriederichs wrote:

 Hello,
 
 I have a wicket PopupPage that answers a wicket link, but I don't want it to
 popup when certain conditions are not met. In that case I want an
 info-message.
 
 So I tried something like:
 final LinkString theLink = new LinkString(...) {
   
 public void onClick() {
 if (condition) {
   info(Do this first);
 } else {
  setPopupSettings(thePopupSettings);  
  setResponsePage(thePopupPage);
 }
 };
 
 But no matter what I try, the popuppage always comes.
 
 
   
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Conditional-Popup-tp4649649.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 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: Conditional Popup

2012-06-01 Thread Thomas Götz
To create a quickstart normally costs me around 5-7 seconds (copy/paste is my 
friend) ;-)
Isolating the problem is another question, right. But in your case this sound 
rather trivial. In my experience a lot of problems are solved easyly by 
creating a quickstart, in most cases because then I realize that I did 
something wrong ;-)

   -Tom


On 01.06.2012 at 16:06 hfriederichs wrote:

 A quick-start costs me one or two hours; in the end, maybe I will. But I
 think this is a reasonably simple question, so I'll await some
 straightforward suggestions first.


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



Re: Conditional Popup

2012-06-01 Thread Thomas Götz
As an alternative, you could use an AjaxLink and push the popup-opener JS to 
teh frontend, then you could have your decision logic (wether to open it or 
not) in the backend (Wicket layer).

   -Tom




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



Re: Conditional Popup

2012-06-01 Thread Thomas Götz
I thought you might have some condition that you could evaluate in JS. This is 
the reason I asked for a short quickstart, it simply eases discussion.

   -Tom


On 01.06.2012 at 19:19 hfriederichs wrote:

 I'm sorry, but I don't understand your code. My condition is in the
 Java/Wicket-layer, how can you put that between double quotes?


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



Re: Wicket page has a redirect loop

2012-06-01 Thread Thomas Götz
Hm, put a breakpoint in FragmentMarkupSourcingStrategy.java:143 and see what 
causes the NullPointerException.

   -Tom


On 01.06.2012 at 19:08 paulstar wrote:

 Caused by: java.lang.NullPointerException
at
 org.apache.wicket.markup.html.panel.FragmentMarkupSourcingStrategy.getMarkup(FragmentMarkupSourcingStrategy.java:143)
at
 org.apache.wicket.MarkupContainer.getMarkup(MarkupContainer.java:448)
at org.apache.wicket.Component.getMarkup(Component.java:737)
at
 org.apache.wicket.markup.html.list.ListView.getMarkup(ListView.java:662)
at org.apache.wicket.Component.getMarkup(Component.java:737)
at
 org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.getMarkup(DefaultMarkupSourcingStrategy.java:83)
at
 org.apache.wicket.MarkupContainer.getMarkup(MarkupContainer.java:448)
at org.apache.wicket.Component.getMarkup(Component.java:737)
at org.apache.wicket.Component.getMarkupTag(Component.java:1422)
at
 org.apache.wicket.Component.getMarkupIdFromMarkup(Component.java:777)
at org.apache.wicket.Component.getMarkupIdImpl(Component.java:1479)
at org.apache.wicket.Component.getMarkupId(Component.java:1525)
at org.apache.wicket.Component.getMarkupId(Component.java:1587)
at
 org.apache.wicket.markup.html.form.Form.appendDefaultButtonField(Form.java:1096)
at
 org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:1575)
at
 org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:72)
at
 org.apache.wicket.Component.internalRenderComponent(Component.java:2551)
... 51 more

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



Re: Loop.populateItem() while migrating from Wicket 1.4 to 1.5

2012-05-31 Thread Thomas Götz
Could you please provide a quickstart?

   -Tom



On 31.05.2012, 00:32 paulstar wrote:

 in Wicket 1.4, this works fine:
 
   this.form.add(new Loop(ccformfields, ccformfields.size())
   {
   @Override
   protected void populateItem(LoopItem item)
   {
   int index = item.getIteration();
   final CcFormPanel.FormField frag =
 ccformfields.get(index);
   item.add(new TableRow(frag));
   }
   });
 
 
 Now I am upgrading to Wicket 1.5 as such:
 
   this.form.add(new Loop(ccformfields, ccformfields.size())
   {
   @Override
   protected void populateItem(LoopItem item)
   {
   int index = item.getIndex();
   final CcFormPanel.FormField frag =
 ccformfields.get(index);
   item.add(new TableRow(frag));
   }
   });
 
 Here are the exception:
 
 Caused by: java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
   at java.util.ArrayList.RangeCheck(Unknown Source)
   at java.util.ArrayList.get(Unknown Source)
   at
 com.xxx.cc.components.CcFormPanel$1.populateItem(CcFormPanel.java:202)
   at org.apache.wicket.markup.html.list.Loop.onPopulate(Loop.java:100)
   at
 org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:119)
   at
 org.apache.wicket.Component.internalBeforeRender(Component.java:993)
   at org.apache.wicket.Component.beforeRender(Component.java:1027)
   at
 org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1743)
   ... 49 more
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Loop-populateItem-while-migrating-from-Wicket-1-4-to-1-5-tp4649598.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 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: Is there a quick way to deselect all radio buttons in a group via an AJAX event?

2012-05-31 Thread Thomas Götz
What about using Javascript? e.g. jQuery:

$('input:radio').attr('checked', false);

or

$('input[name=myRadio]:radio').attr('checked', false);


   -Tom



On 31.05.2012 at 08:20 Chris Colman wrote:

 We have a button that, when clicked, should deselect ALL radio buttons in a 
 separate radio group.
  
 Can this be done in Wicket?
  
 Yours sincerely,
  
 Chris Colman



Re: decorating html with wicket

2012-05-29 Thread Thomas Götz
I'm not convinced yet that this is really a good idea (how to deal with 
constructor arguments for validators? What is the advantage of having all in 
html effectively?) but as a starting point you could look at 
AbstractMarkupFilter (e.g. see how WicketRemoveTagHandler and other 
implementations work).

To add your own MarkupFilter implementation, do the following:


public class MyMarkupFactory extends MarkupFactory {

@Override
public MarkupParser newMarkupParser(MarkupResourceStream resource) {
final MarkupParser markupParser = super.newMarkupParser(resource);
markupParser.add(new MyMarkupFilter());
return markupParser;
}

}

and register MyMarkupFactory in your Application class:

@Override
public void init() {
super.init();
getMarkupSettings().setMarkupFactory(new MyMarkupFactory());
}


Cheers,
   -Tom



On 28.05.2012, 21:25h Fernando Wermus wrote:

 Hi all,
 I was wondering if there is some solution already done like this:
 
 input type=text wicket:id=txtMyTextField  *
 wicket:fieldtype=java.lang.String*
 *wicket:validators=com.mycompany.MyValidator1,
 com.mycompany.MyValidator2* /
 
 The idea is that HTML is allright for rendering, but It lacks  some
 behaviors. Therefore , instead of making up another markup, there is the
 chance to decorate with wicket behaviors and validators.
 
 This is flexible enough to have differents specifications and
 implementation to rich HTML.
 
 The idea we have at my work is to allow junior programmers to design mockup
 pages for funcitonal analyst without adding a line of code. We were mocking
 up pages with Adobe Flex and would like to have this behaviour with wicket.
 
 thanks in advance
 
 Fernando Wermus.
 
 www.linkedin.com/in/fernandowermus


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



Re: decorating html with wicket

2012-05-29 Thread Thomas Götz
If I understand you correctly, your aim is to be able to rapidly prototype 
processes to be reviewed by customers/POs etc. Wouldn't a tool like Balsamiq 
Mockups or some other wireframing tool be more suitable for that purpose?

You also mentioned that the prototype should be created by some one who do not 
know how to program, with your solution this person at least needs to have 
knowledge about Wicket Validators (including der Java package + class name + 
parameters).

In my experience it is best to create a throw-away wireframe Mockup, and after 
the customer agreed to it, you start coding this in HTML/JS/Java. I don't like 
the idea too much to introduce additional complex logic into Wicket just fore 
wireframing/mockup purposes (as mentioned, a person without Wicket knowledge 
can't use this anyway).

Just my $0.02,
   -Tom


On 29.05.2012, 15:03h Fernando Wermus wrote:

 Tom,
Something else. I experienced the advantages to have mock up pages
 working in another company with Adobe Flex. These pages are added to the
 analysis and the clients could have in advance a vivid experience.
 
 
 Fernando Wermus.
 
 www.linkedin.com/in/fernandowermus
 
 
 
 On Tue, May 29, 2012 at 10:00 AM, Fernando Wermus fernando.wer...@gmail.com
 wrote:
 
 Tom,
 Thanks you for the review.
 
 The idea is that some pages are not implemented, tough they are declared
 by some one who do not know how to program. A page implemented by us read
 the form  and instance all the components. We have wizards and they can
 show the mock up to third workers. When they are accepted, the programmers
 finish the work.
 
 
 Fernando Wermus.
 
 www.linkedin.com/in/fernandowermus
 
 
 
 
 On Tue, May 29, 2012 at 4:01 AM, Thomas Götz t...@decoded.de wrote:
 
 I'm not convinced yet that this is really a good idea (how to deal with
 constructor arguments for validators? What is the advantage of having all
 in html effectively?) but as a starting point you could look at
 AbstractMarkupFilter (e.g. see how WicketRemoveTagHandler and other
 implementations work).
 
 To add your own MarkupFilter implementation, do the following:
 
 
 public class MyMarkupFactory extends MarkupFactory {
 
   @Override
   public MarkupParser newMarkupParser(MarkupResourceStream resource) {
   final MarkupParser markupParser = super.newMarkupParser(resource);
   markupParser.add(new MyMarkupFilter());
   return markupParser;
   }
 
 }
 
 and register MyMarkupFactory in your Application class:
 
 @Override
 public void init() {
   super.init();
   getMarkupSettings().setMarkupFactory(new MyMarkupFactory());
 }
 
 
 Cheers,
  -Tom
 
 
 
 On 28.05.2012, 21:25h Fernando Wermus wrote:
 
 Hi all,
I was wondering if there is some solution already done like this:
 
 input type=text wicket:id=txtMyTextField  *
 wicket:fieldtype=java.lang.String*
 *wicket:validators=com.mycompany.MyValidator1,
 com.mycompany.MyValidator2* /
 
 The idea is that HTML is allright for rendering, but It lacks  some
 behaviors. Therefore , instead of making up another markup, there is the
 chance to decorate with wicket behaviors and validators.
 
 This is flexible enough to have differents specifications and
 implementation to rich HTML.
 
 The idea we have at my work is to allow junior programmers to design
 mockup
 pages for funcitonal analyst without adding a line of code. We were
 mocking
 up pages with Adobe Flex and would like to have this behaviour with
 wicket.
 
 thanks in advance
 
 Fernando Wermus.
 
 www.linkedin.com/in/fernandowermus
 
 
 -
 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: Make additional actions on click on external links

2012-05-28 Thread Thomas Götz
You could use e.g. jQuery event registration:

$(#target).click(function() {
  alert(Handler for .click() called.);
});

See http://api.jquery.com/click for more details.

   -Tom


on 28.05.2012 at 11:09 cosmindumy wrote:

 Hello,
 How can I make additional actions on click event on external link? It
 doesn't implement onClick method.
 Thanks.


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



Re: wicket 6 setting response page with page object and session expired error

2012-05-22 Thread Thomas Götz
On 22.05.2012 at 06:01 kamiseq wrote:

 step to reproduce
 1. go to http://localhost:8080 and type any valid email (ie l...@oa.pl)
 and submit form
 2. press accept and it will take you to third page
 3. this should fail and show expire page error

No, it doesn't. 3. works in your example, there is no exception thrown.


 1. go to http://localhost:8080/user/email/l...@oa.pl
 2. press accept
 3. third page is loaded as expected

Confirmed, but I can see no difference in the behavior of that two processes, 
both work for me in your provided quickstart.

   -Tom



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



Re: DataTable and PagingNavigator problem

2012-05-22 Thread Thomas Götz
Could you please provide a quickstart that demonstrates your implementation?

   -Tom


On 22.05.2012 at 17:54 Viliam Repan wrote:

 Hi,
 
 I probably found a bug in DataTable and PagingNavigator, or more likely
 I don't understand it correctly...
 I have page with one data table and two paging navigators in form, html
 part looks like this:
 
 form wicket:id=mainForm
 
div wicket:id=pTop/
 
div wicket:id=table/
 
div wicket:id=pBottom/
 
 /form
 
 
 Java code - constructor:
 
 public PageTest() {
 
Form mainForm = new Form(mainForm);
 
add(mainForm);
 
DataTableUserType table = new DataTableUserType(table, initColumns(),
 
new ObjectDataProvider(PageTest.this, UserType.class), 10);
 
table.setOutputMarkupId(true);
 
mainForm.add(table);
 
PagingNavigator pTop = new PagingNavigator(pTop, table);
 
mainForm.add(pTop);
 
PagingNavigator pBottom = new PagingNavigator(pBottom, table);
 
mainForm.add(pBottom);
 
 }
 
 
 After first page load, I can see in logs:
 
 2012-05-22 17:45:11,049 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 begin::size()
 2012-05-22 17:45:12,081 TRACE (c.e.m.w.c.d.ObjectDataProvider): end::size()
 2012-05-22 17:45:12,081 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 begin::iterator() from 0 count 10.
 2012-05-22 17:45:12,546 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 end::iterator()
 
 After click on next page, I see in logs:
 2012-05-22 17:45:19,620 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 begin::size()
 2012-05-22 17:45:20,693 TRACE (c.e.m.w.c.d.ObjectDataProvider): end::size()
 2012-05-22 17:45:20,696 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 begin::size()
 2012-05-22 17:45:21,722 TRACE (c.e.m.w.c.d.ObjectDataProvider): end::size()
 2012-05-22 17:45:21,722 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 begin::iterator() from 10 count 10.
 2012-05-22 17:45:22,164 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 end::iterator()
 
 size() method in data provider is called twice, that's probably a bug. I
 have many objects in db (up to 500k),
 so it's a 1s-2s difference in response time. I'm suspecting that it's
 caused by AbstractPageableView.getCurrentPage(),
 because there is a check which calls getPageCount() which calls
 getItemCount(). There is some caching mechanism for count,
 but it's not working in this case...
 
 Can somebody help please, any ideas?
 
 
 Vilo
 
 -
 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 6 setting response page with page object and session expired error

2012-05-22 Thread Thomas Götz
I tested your quickstart from within the IDE by running Start.java.

Models are meant to be passed around, so there's nothing wrong with it in 
general. And it's always (at least in 95% of cases I'd dare to say) preferable 
to passing Objects (beans).


   -Tom


On 22.05.2012 at 18:55 kamiseq wrote:

 anyway there is nothing wrong to my code, in your opnion?
 I just have bad feeling about passing model from one page to another
 in constructor. on the other hand model are serialised into session so
 maybe it is a better idea to pass them around rather than object they
 are wrapping
 
 pozdrawiam
 Paweł Kamiński
 
 kami...@gmail.com
 pkaminski@gmail.com
 __
 
 
 On 22 May 2012 18:13, kamiseq kami...@gmail.com wrote:
 huh, then something is wrong with my environment,
 im running it with jetty invoking simple mvn clean install jetty:run
 
 pozdrawiam
 Paweł Kamiński
 
 kami...@gmail.com
 pkaminski@gmail.com
 __
 
 -
 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: DataTable and PagingNavigator problem

2012-05-22 Thread Thomas Götz
This looks indeed like a bug to me. I opened a ticket for this: 
https://issues.apache.org/jira/browse/WICKET-4568

   -Tom


On 22.05.2012 at 21:10 Viliam Repan wrote:

 Hi,
 
 I've create sample mvn project, after build and deploy you can see
 sysouts like this:
 
 size() 100
 iterator() 0 10
 size() 100
 iterator() 0 10   after tomcat start and page loading
 size() 100
 size() 100
 iterator() 10 10after click on next in navigation paging
 size() 100
 size() 100
 iterator() 20 10after click on some page in navigation
 paging
 
 thank you for your help.
 
 
 vilo
 
 On 05/22/2012 06:15 PM, Thomas Götz wrote:
 Could you please provide a quickstart that demonstrates your implementation?
 
   -Tom
 
 
 On 22.05.2012 at 17:54 Viliam Repan wrote:
 
 Hi,
 
 I probably found a bug in DataTable and PagingNavigator, or more likely
 I don't understand it correctly...
 I have page with one data table and two paging navigators in form, html
 part looks like this:
 
 form wicket:id=mainForm
 
   div wicket:id=pTop/
 
   div wicket:id=table/
 
   div wicket:id=pBottom/
 
 /form
 
 
 Java code - constructor:
 
 public PageTest() {
 
   Form mainForm = new Form(mainForm);
 
   add(mainForm);
 
   DataTableUserType table = new DataTableUserType(table, 
 initColumns(),
 
   new ObjectDataProvider(PageTest.this, UserType.class), 10);
 
   table.setOutputMarkupId(true);
 
   mainForm.add(table);
 
   PagingNavigator pTop = new PagingNavigator(pTop, table);
 
   mainForm.add(pTop);
 
   PagingNavigator pBottom = new PagingNavigator(pBottom, table);
 
   mainForm.add(pBottom);
 
 }
 
 
 After first page load, I can see in logs:
 
 2012-05-22 17:45:11,049 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 begin::size()
 2012-05-22 17:45:12,081 TRACE (c.e.m.w.c.d.ObjectDataProvider): end::size()
 2012-05-22 17:45:12,081 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 begin::iterator() from 0 count 10.
 2012-05-22 17:45:12,546 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 end::iterator()
 
 After click on next page, I see in logs:
 2012-05-22 17:45:19,620 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 begin::size()
 2012-05-22 17:45:20,693 TRACE (c.e.m.w.c.d.ObjectDataProvider): end::size()
 2012-05-22 17:45:20,696 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 begin::size()
 2012-05-22 17:45:21,722 TRACE (c.e.m.w.c.d.ObjectDataProvider): end::size()
 2012-05-22 17:45:21,722 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 begin::iterator() from 10 count 10.
 2012-05-22 17:45:22,164 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 end::iterator()
 
 size() method in data provider is called twice, that's probably a bug. I
 have many objects in db (up to 500k),
 so it's a 1s-2s difference in response time. I'm suspecting that it's
 caused by AbstractPageableView.getCurrentPage(),
 because there is a check which calls getPageCount() which calls
 getItemCount(). There is some caching mechanism for count,
 but it's not working in this case...
 
 Can somebody help please, any ideas?
 
 
 Vilo
 
 -
 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
 
 
 datatable-sample.zip
 -
 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: DataTable and PagingNavigator problem

2012-05-22 Thread Thomas Götz
The patch is yet only a proposal by me on how this might be fixed. Any of the 
committers might want to look at it before maybe ;-)

As for the release date of the next version: I guess when it is ready ;-)

   -Tom


On 22.05.2012 at 22:49 Viliam Repan wrote:

 Hi,
 
 I saw a patch already prepared to fix this bug. Does wicket have some
 release plan/calendar -
 I mean when could I expect next version of wicket (and this to be
 inserted in)? :)
 Thank you.
 
 vilo


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



Re: wicket 6 setting response page with page object and session expired error

2012-05-21 Thread Thomas Götz
Could you provide a quickstart that demonstrates this behavior?

   -Tom


On 21.05.2012 at 09:56 kamiseq wrote:

 hej,
 I have a strange error.
 
 I have stateless page (A) with form on it. form contains email input.
 inside form's onSelect handler I create page (B) and pass email to its
 constructor.
  Application nextPage = new
 Application(getModelObject().getEmail());// form model object
  setResponsePage(nextPage);
 
 page B is also mounted so someone can access page by passing email as 
 parameter.
  super(parameters);
  StringValue email = parameters.get(email);
  if (email.isEmpty())
throw new RuntimeException(ups no email);
 
 page B displays users data if available.
 page B creates LoadableDetachableModel and uses email as id, I also
 pass Injected service object by giuce to the model
 page B has link to go to page C
 add(new LinkVoid(accept)
 {
@Override
public void onClick() {
SignIn signInPage = new SignIn(model); // model is created on
 the begging of the constructor
setResponsePage(signInPage);
}
 });
 
 pages B and C are state-full.
 now when I go from page A and pass page B object and then call the
 link which creates page C object then I get page expired message.
 BUT if I go directly to page B using mounted url and then I click on
 link I am redirected to page C without a problem.
 
 maybe I miss something obvious here but I cannot explain it why this
 is happening.
 there is no errors in log from wicket, the SignIn (C) page is created
 as expected.
 
 thanks for any hint.
 
 pozdrawiam
 Paweł Kamiński
 
 kami...@gmail.com
 pkaminski@gmail.com
 __
 
 -
 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 6 setting response page with page object and session expired error

2012-05-21 Thread Thomas Götz
Either this or upload it somewhere and post the link here.

   -Tom


On 21.05.2012 at 16:25 kamiseq wrote:

 yes,
 can I send it directly to you in case userlist rejects attachment?
 
 pozdrawiam
 Paweł Kamiński
 
 kami...@gmail.com
 pkaminski@gmail.com
 __


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



Re: How to change the properties file location in Wicket

2012-05-20 Thread Thomas Götz
Why do you need to change that? What is your usecase?

   -Tom



On 20.05.2012 at 18:47 oliver.stef wrote:

 Hi Martin,
 
 Thank you for your help, but my problem is that i need to put my properties
 file in folder that is not next to the HTML and Java files.
 
 i need to change the look-up algorithm of wicket. 
 
 Any body know how to do it?
 
 Thanks! 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/How-to-change-the-properties-file-location-in-Wicket-tp4642901p4647014.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 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: pageablelistview is giving out of memory exception while loading more than 70000 records wicket example

2012-05-14 Thread Thomas Götz
https://cwiki.apache.org/WICKET/detachable-models.html

   -Tom


raju.ch wrote:

 - Can you please provide a sample of LoadableDetachModel?


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



Re: Wicket 6.0.0-beta1: RangeValidator Issue (NPE)

2012-05-10 Thread Thomas Götz
I can confirm this, see this quickstart: http://decoded.de/wicket-quickstart.zip
The NPE only occurs if there is a FeedbackPanel on the page. If you take it out 
- no exception. Besides, there is no WARN log if you are missing a 
FeedbackPanel and there are messages to be rendered, bug or feature?!

Cheers,
   -Tom


On 09.05.2012 at 22:49 Sebastien wrote:

 Hi wicket's team,
 
 While using the following code:
 
final TextFieldInteger input = new TextFieldInteger(input,
 new ModelInteger(15), Integer.class);
input.add(new RangeValidatorInteger(0, 200));
form.add(input);
 
 I've got a NPE with wicket6.0.0-beta1, when I submit the form with a value
 not inside the validator's bounds. (ie, 500).
 I tested in a simple quickstart to be sure... It is ok with 1.5.6 and crash
 with 6.0.0-beta1
 
 java.lang.NullPointerException
 at 
 org.apache.wicket.markup.html.form.ValidationErrorFeedback.toString(ValidationErrorFeedback.java:83)
 at 
 org.apache.wicket.markup.html.panel.FeedbackPanel.newMessageDisplayComponent(FeedbackPanel.java:338)
 at 
 org.apache.wicket.markup.html.panel.FeedbackPanel$MessageListView.populateItem(FeedbackPanel.java:117)
 at 
 org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:524)
 at 
 org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:116)
 
 Thus, just fyi, it is not documented in the migration guide what's happened
 to the NumberValidator... I did not find it, so I did not test another
 validator such as MaximumValidator...
 
 Best regards,
 Sebastien


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



Re: Wicket 6.0.0-beta1: RangeValidator Issue (NPE)

2012-05-10 Thread Thomas Götz
My bad: https://issues.apache.org/jira/browse/WICKET-4548

   -Tom


On 10.05.2012 at 09:38 Martin Grigorov wrote:

 Guys,
 
 Please use Jira for bug reports.
 
 On Thu, May 10, 2012 at 9:28 AM, Thomas Götz t...@decoded.de wrote:
 I can confirm this, see this quickstart: 
 http://decoded.de/wicket-quickstart.zip
 The NPE only occurs if there is a FeedbackPanel on the page. If you take it 
 out - no exception. Besides, there is no WARN log if you are missing a 
 FeedbackPanel and there are messages to be rendered, bug or feature?!
 
 Cheers,
   -Tom
 
 
 On 09.05.2012 at 22:49 Sebastien wrote:
 
 Hi wicket's team,
 
 While using the following code:
 
final TextFieldInteger input = new TextFieldInteger(input,
 new ModelInteger(15), Integer.class);
input.add(new RangeValidatorInteger(0, 200));
form.add(input);
 
 I've got a NPE with wicket6.0.0-beta1, when I submit the form with a value
 not inside the validator's bounds. (ie, 500).
 I tested in a simple quickstart to be sure... It is ok with 1.5.6 and crash
 with 6.0.0-beta1
 
 java.lang.NullPointerException
 at 
 org.apache.wicket.markup.html.form.ValidationErrorFeedback.toString(ValidationErrorFeedback.java:83)
 at 
 org.apache.wicket.markup.html.panel.FeedbackPanel.newMessageDisplayComponent(FeedbackPanel.java:338)
 at 
 org.apache.wicket.markup.html.panel.FeedbackPanel$MessageListView.populateItem(FeedbackPanel.java:117)
 at 
 org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:524)
 at 
 org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:116)
 
 Thus, just fyi, it is not documented in the migration guide what's happened
 to the NumberValidator... I did not find it, so I did not test another
 validator such as MaximumValidator...
 
 Best regards,
 Sebastien
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 -- 
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com
 
 -
 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 6.0.0-beta1: RangeValidator Issue (NPE)

2012-05-10 Thread Thomas Götz
Lol, first! Mine has WICKET-4548 ;)

   -Tom


On 10.05.2012 at 09:50 Sebastien wrote:

 Hi Martin,
 
 Here we are: https://issues.apache.org/jira/browse/WICKET-4549
 
 Sebastien.


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



Re: Unusual problem is coming in rendering component

2012-05-03 Thread Thomas Götz
Please have a look at the JavaDoc of 
org.apache.wicket.model.CompoundPropertyModel. Other interesting reads:

https://cwiki.apache.org/WICKET/working-with-wicket-models.html#WorkingwithWicketmodels-CompoundPropertyModels
http://www.mkyong.com/wicket/wicket-compoundpropertymodel-example/

Cheers,
   -Tom




On 03.05.2012 at 05:07 kshitiz wrote:

 Thank you very much for the repliesI got the problem and solved it using
 the code:
 
 *final RequiredTextFieldString postTextField = new
 RequiredTextFieldString(
   postTextField, 
 Model.of(postDomain.getPost()));
 *
 
 But please tell me one thing...the first parameter in new
 RequiredTextFieldString() function is used to map textfield tag present in
 html page with its java definition. Why wicket is using that parameter to
 map it to the property of compound model (PostDomain in this case)???
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Unusual-problem-is-coming-in-rendering-component-tp4604163p4605012.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 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: How to prevent duplicates when using HeaderContributor

2012-05-03 Thread Thomas Götz
Please see the following quickstart for an example: 
http://cl.ly/0w421o340J2e2w330Y0j

Cheers,
   -Tom


On 03.05.2012 at 15:17 Christoph Leiter wrote:

 Hi,
 
 the Javadoc of IHeaderResponse#renderString says:
 Renders an arbitrary string to the header. The string is only rendered if 
 the same string hasn't been rendered before.
 So if you call it with two different titles the expected behavior is to get 
 the title tag twice.
 
 I wouldn't use a IHeaderResponse for that. My suggestion is to use a normal 
 title tag in your base page markup. Provide a method which returns the 
 current title and let specific pages override that method as needed.
 
 
 Christoph
 
 
 
 heikki (2012-05-03 15:10):
 hello,
 
 I'd like to be able to use a fixed title for my pages, that gets overridden
 for some of the pages.
 
 To do that, I have a fixed title element in my base HTML page:
 
 
 Then in the pages that should have a different title, I override
 renderHead() like this:
 
 @Override
 public void renderHead(final IHeaderResponse response) {
 String title = title + getTheDynamicTitle() +/title;
 response.renderString(title);
}
 
 The result is that my rendered page has 2title  elements in its header,
 the fixed one and the dynamic one.
 
 I would have thought that Wicket would be smart enough to replace an
 existing header element; the IHeaderResponse javadoc says Implementation of
 this interface is responsible for filtering duplicate contributions (so that
 for example the same javascript is not loaded twice) during the same
 request. Well.
 
 Do I need to write my own implementation of IHeaderResponse for this ?
 
 It would seem like a pretty common use case to me, did anyone already solve
 it ?
 
 Kind regards
 Heikki Doeleman
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/How-to-prevent-duplicates-when-using-HeaderContributor-tp4605975.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 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: Include Component

2012-05-02 Thread Thomas Götz
import org.apache.wicket.markup.ComponentTag;
import org.apache.wicket.markup.MarkupStream;
import org.apache.wicket.markup.html.include.Include;
import org.apache.wicket.model.IModel;

public class MyInclude extends Include {

public MyInclude(String id, IModelString model) {
super(id, model);
}

@Override
public void onComponentTagBody(MarkupStream markupStream, ComponentTag 
openTag) {
String content = ;
try {
content = importAsString();
} catch (Exception e) {
// ...
}
replaceComponentTagBody(markupStream, openTag, content);
}

}



Thomas Götz
IT Consultant/Freelancer
Kaulardstraße 70a
50354 Hürth/Efferen
 
phone  +49 151 40420203 
mail  tgo...@decoded.de
web  www.decoded.de





On 02.05.2012 at 17:08 Bruce Pease wrote:

 Sorry, that's Wicket version 4.1.15.
 
 
 
 From: Bruce Pease 
 Sent: Wednesday, May 02, 2012 11:06 AM
 To: 'users@wicket.apache.org'
 Subject: Include Component
 
 
 
 Good Morning:
 
 
 
 I am using the Wicket 1.4.14 release in a Tomcat 7 windows server.  I am
 using the Include class to render a navigation panel.  I would like to
 protect this call on the off chance that the file/url does not exist.  Right
 now, the framework throws a file io exception, and the page fails.  Is there
 a way to tell the framework to default to an empty panel is the file does not
 exist?
 
 
 
 Thanks,
 
 
 
 Bruce D. Pease
 Technical Team Lead - Web Applications
 CruiseOne(r) http://www.cruiseone.com/   Cruises Inc(tm)
 http://www.cruisesinc.com/ 
 1201 W. Cypress Creek Road, Suite 100
 Fort Lauderdale, FL 33309-1955
 954-958-3654 (direct) | 954-958-3665 (fax)
 bpe...@wth.com mailto:ssza...@wth.com 
 
 
 


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



rawInput, page reload and error messages

2012-04-11 Thread Thomas Götz
Hi!

I have the following situation (Wicket 1.5.5):

- a Form with a TextFieldString with some Validator
- you input invalid data and submit - error message, fine.
- (invalid) rawInput is shown in the TextField, fine.
- now I do a page reload, invalid rawInput still in the TextField, but no error 
message shown

What I'd like to achieve is that upon a page reload the (invalid) rawInput is 
shown in the TextField, but the error message also needs to be shown again. How 
can this be done?

I already tried to trigger validation manually by calling 
formComponent.validate(), but this calls AbstractTextComponent.convertInput(), 
which tries to pull the input data from the request (and there is no data 
because of page reload, so validation won't fail …).

Cheers,
   -Tom


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



Re: Language setting from browser

2012-03-15 Thread Thomas Götz
From the JavaDoc of org.apache.wicket.Session:

* libLocale /b- A session has a Locale property to support localization. 
The Locale for a
* session can be set by calling {@link Session#setLocale(Locale)}. The Locale 
for a Session
* determines how localized resources are found and loaded.

Cheers,
   -Tom

mukesh kumar wrote:

 Hi,
   In my wicket application, when i change the language from browser , than
 after refresh (F5) the page, than my language have not be changed. It is
 changes, when we first logout the application than login. 
 But according to my project requirement, i want to change my
 language when refresh the page after language change.
  So, please give me kindly reply ASAP. I am working on
 wicket 1.5.3 versions.
 
 Thanks !
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Language-setting-from-browser-tp4474740p4474740.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 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



Check if FormComponent is valid in later request

2012-03-14 Thread Thomas Götz
Hi!

I have the following situation:

I have a form containing several FormComponents and Validators, submitted via 
Ajax. Then I have an AjaxButton on the same page (outside the form) which 
triggers some backend logic. But it should only do so if the mentioned form had 
no validation errors during the last submit. How should I check that? 
Form.hasError() only checks for error messages, which always returns 'false' as 
the error messages already have been rendered in one of the preceding requests.

Is it a good idea to set a flag in the Form (boolean isValid) upon 
onSubmit/onError and check for that flag or is there some already provided 
Wicket mechanic I could use?

Cheers,
   -Tom


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



Re: Check if FormComponent is valid in later request

2012-03-14 Thread Thomas Götz
Exactly! My bad I mentioned AjaxButton. It should read 
'AjaxFormComponentUpdatingBehavior' on a DropDownChoice, was trying to 
generalize the problem for explaining, but 'AjaxButton' was a bad example …

Wouldn't it be convenient if a Form (or FormComponent) whould remembered their 
'valid' state so you could check for it in later (e.g. Ajax) requests?

   -Tom


Dan Retzlaff wrote:

 If I understand Thomas correctly, the button is not a form submitting
 button. It's outside the form and is handled on a request after the form is
 submitted.
 
 Thomas, I think if you want to avoid resubmitting the form then you'll need
 to set your own formSubmittedSuccessfully state in Form#onSubmit. Form
 doesn't remember what happened on previous requests; it either updates
 models on success or creates error messages on failure.
 
 On Wed, Mar 14, 2012 at 2:00 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:
 
 if the form is invalid your button's onsubmit() wont get fired...
 
 -igor
 
 On Wed, Mar 14, 2012 at 1:53 PM, Thomas Götz t...@decoded.de wrote:
 Hi!
 
 I have the following situation:
 
 I have a form containing several FormComponents and Validators,
 submitted via Ajax. Then I have an AjaxButton on the same page (outside the
 form) which triggers some backend logic. But it should only do so if the
 mentioned form had no validation errors during the last submit. How should
 I check that? Form.hasError() only checks for error messages, which always
 returns 'false' as the error messages already have been rendered in one of
 the preceding requests.
 
 Is it a good idea to set a flag in the Form (boolean isValid) upon
 onSubmit/onError and check for that flag or is there some already provided
 Wicket mechanic I could use?
 
 Cheers,
  -Tom
 
 
 -
 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 authentication: how to store user?

2012-03-12 Thread Thomas Götz
That's not always feasible - in respect to user experience. Just think of some 
order process where e.g. you are asked to log in when doing a checkout (of 
your shopping cart).

   -Tom


Hielke Hoeve wrote:

 Webapplications should always invalidate the wicket session before 
 authenticating. (use Session.get().replaceSession() )


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



Re: wizard starting background task

2012-02-09 Thread Thomas Götz

N. Metzger wrote:

 1) I start the background task in a lazy load panel, but haven't figured out
 yet how to display a progress bar while the lazy load is executing.

You might also take a look at http://wicket.visural.net/examples/submitters 
(hit the Calculate X*Y (Modal) button).

Cheers,
   -Tom



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



Re: wizard starting background task

2012-02-09 Thread Thomas Götz
Simply implement your own FinishButton, e.g. extend AjaxButton and put your 
logic in it's unSubmit(…) method.
Therefore you will have to override Wizard#newButtonBar(final String id) and 
provide your own impl, but WizardButtonBar does not have very much logic, so 
that's acceptable IMHO.

Cheers,
   -Tom


Am 09.02.2012 um 15:04 schrieb N. Metzger:

 To give you more information:
 
 I can ope a new page (or modal window) and start the wicketstuff progress
 bar with a new ajax button on that page. 
 I can also open a new page with the ajax lazy load panel that will display
 the indicating gif while loading stuff in the background.
 
 What I'm looking for is a way to NOT open a new page and NOT to click
 another ajax button to start the background task and display the progress
 bar. I would like the finish button of the wizard to take care of it.
 
 Now I can of course replace the wizard with a row of pages or panel
 replacements, but I don't want to lose the wizard functionality if possible.
 
 Thanks for all your help,
 Natalie
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/wizard-starting-background-task-tp4371604p4372939.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 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 6.0 and Javascript Event Registration question

2012-01-30 Thread Thomas Götz
Just a thought about the upcoming changes to Wicket's Javascript event 
registration mechanism in Wicket 6.0 (instead of inline JS events): 

we have several Behaviors that provide Javascript in which we register to JS 
events, e.g. 'onblur'. Now I have a Component that additionally has an 
AjaxEventBehavior(onblur). Currently, the Behaviors that registered to 
'onblur' are guaranteed to execute before the inline 'onblur' event (provided 
by the AjaxEventBehavior). Could this be a problem with Wicket 6.0? Meaning: 
will it still be possible to provide additional Behaviors that register JS 
events that execute *before* any event behavior already registered to some 
Component? Or how will Wicket's JS event mechanism figure out the order of 
Behaviors?

Cheers,
   -Tom
 



Re: Wicket 6.0 and Javascript Event Registration question

2012-01-30 Thread Thomas Götz
This will cause quite some trouble for the application I'm currently developing.

Example:
we have a Behavior that puts input hints on several textfields (e.g. 
dd/mm/ for day input fields). The Behavior provides a JS file in which we 
register for the submit event of the containing form and thus assure that 
input hints are removed on form submit. For this implementation it's crucial 
that the JS is executed before any 'onsubmit' handler provided by Wicket. Also, 
we remove/restore input hints 'onblur' of the textfield, which also has an 
AjaxFormComponentUpdatingBehavior(onblur). Here it's also crucial that our 
code is executed before Wicket's (which will ajax post the values).

Just an example in our applications, but maybe worth considering as others 
might have similar implementations for other usecases. Sure, many things can be 
handled by AjaxCallDecorator, but not all ;-)

Cheers,
   -Tom



Martin Grigorov wrote:

 Hi,
  
 The new code registers listeners with jQuery's on() method which uses
 internally addEventListener() (IE9 and others) and attachEvent() (IE8
 and less).
 So you need to execute your JS code after Wicket's.
 Wicket executes its bindings when the DOM is ready, so you must be
 careful that your Mootools code is run after Wicket's.
 Better try with a simple app and see how it behaves.
  
 On Mon, Jan 30, 2012 at 5:49 PM, Thomas Götz t...@richmountain.de 
 (mailto:t...@richmountain.de) wrote:
  Just a thought about the upcoming changes to Wicket's Javascript event 
  registration mechanism in Wicket 6.0 (instead of inline JS events):
   
  we have several Behaviors that provide Javascript in which we register to 
  JS events, e.g. 'onblur'. Now I have a Component that additionally has an 
  AjaxEventBehavior(onblur). Currently, the Behaviors that registered to 
  'onblur' are guaranteed to execute before the inline 'onblur' event 
  (provided by the AjaxEventBehavior). Could this be a problem with Wicket 
  6.0? Meaning: will it still be possible to provide additional Behaviors 
  that register JS events that execute *before* any event behavior already 
  registered to some Component? Or how will Wicket's JS event mechanism 
  figure out the order of Behaviors?
   
  Cheers,
-Tom
   
  
  
  
  
 --  
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com
  
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org 
 (mailto:users-unsubscr...@wicket.apache.org)
 For additional commands, e-mail: users-h...@wicket.apache.org 
 (mailto:users-h...@wicket.apache.org)
  
  




Re: AJAX requests on a mounted page with expired session

2011-12-14 Thread Thomas Götz
Can you give an example? AFAIK the pageId *is* already encoded in the URL bei 
Wicket, i.e. the URL changes to http://my.domain/foobar?0 when the page is 
rendered. Doing AJAX requests on the page does not change the URL though …  

Cheers,
   -Tom


Pedro Santos wrote:

 Hi Thomas, encoding the page ID in the URL would respond an expired page.
  
 Pedro Henrique Oliveira dos Santos
  
  
 2011/12/14 Thomas Götz t...@decoded.de (mailto:t...@decoded.de)
  
  The situation:
   
  I have a mounted page containing several AJAX components. Whenever the
  session expires and an AJAX request is triggered afterwards, a new instance
  of the page is (silently) created which is normal behavior I suppose (when
  looking at PageProvider.resolvePageInstance(…)).
   
  Can I hook into that somehow? I'd like to show some custom
  please-restart-you-session-by-clicking-here ExpiredPage, but there's no
  PageExpiredException thrown (which is a good thing), but nevertheless I'd
  prefer to show something to the user.
   
  Can someone point me into the right direction?
   
  Cheers,
  -Tom
   
   
   
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org 
  (mailto:users-unsubscr...@wicket.apache.org)
  For additional commands, e-mail: users-h...@wicket.apache.org 
  (mailto: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: AJAX requests on a mounted page with expired session

2011-12-14 Thread Thomas Götz
Don't know either, but since I don't have any other idea at the moment: how 
would I do this?

Cheers,
   -Tom


Pedro Santos wrote:

 Bleh, my bad, PageProvider will give you a fresh page since the
 MountedMapper were able to resolve the target page class.
 You can customize PageProvider to throw a StalePageException based on
 custom rules. Don't know if it's the best option.
  
 Pedro Henrique Oliveira dos Santos
  
  
 2011/12/14 Thomas Götz t...@decoded.de (mailto:t...@decoded.de)
  
  Can you give an example? AFAIK the pageId *is* already encoded in the URL
  bei Wicket, i.e. the URL changes to http://my.domain/foobar?0 when the
  page is rendered. Doing AJAX requests on the page does not change the URL
  though …
   
  Cheers,
  -Tom
   
   
  Pedro Santos wrote:
   
   Hi Thomas, encoding the page ID in the URL would respond an expired page.

   Pedro Henrique Oliveira dos Santos


   2011/12/14 Thomas Götz t...@decoded.de (mailto:t...@decoded.de)

The situation:
 
I have a mounted page containing several AJAX components. Whenever the
session expires and an AJAX request is triggered afterwards, a new
 


   
   
  instance
of the page is (silently) created which is normal behavior I suppose

   
   
  (when
looking at PageProvider.resolvePageInstance(…)).
 
Can I hook into that somehow? I'd like to show some custom
please-restart-you-session-by-clicking-here ExpiredPage, but there's no
PageExpiredException thrown (which is a good thing), but nevertheless
 

   
   
  I'd
prefer to show something to the user.
 
Can someone point me into the right direction?
 
Cheers,
-Tom
 
 
 
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org 
(mailto:users-unsubscr...@wicket.apache.org) (mailto:
 

   
   
  users-unsubscr...@wicket.apache.org 
  (mailto:users-unsubscr...@wicket.apache.org))
For additional commands, e-mail: users-h...@wicket.apache.org 
(mailto:users-h...@wicket.apache.org) (mailto:

   
   
  users-h...@wicket.apache.org (mailto:users-h...@wicket.apache.org))

   
   
   
   
   
   
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org 
  (mailto:users-unsubscr...@wicket.apache.org)
  For additional commands, e-mail: users-h...@wicket.apache.org 
  (mailto: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: AJAX requests on a mounted page with expired session

2011-12-14 Thread Thomas Götz
Yes, that was what I had in mind. But where can I configure my custom 
PageProvider (i.e. that Wicket knows that my PageProvider implementation should 
be used)?  

Cheers,
   -Tom


Pedro Santos wrote:

 You can override the PageProvider#getPageInstance method and test for the
 target page class. If there are no instance for its page id and it is one
 of those pages you want to reply to user a page expired message rather than
 reply a fresh instance you throw a PageExpiredException exception (not
 a StalePageException, StalePageException is for another case ).
  
 Pedro Henrique Oliveira dos Santos
  
  
 2011/12/14 Thomas Götz t...@decoded.de (mailto:t...@decoded.de)
  
  Don't know either, but since I don't have any other idea at the moment:
  how would I do this?
   
  Cheers,
  -Tom
   
   
  Pedro Santos wrote:
   
   Bleh, my bad, PageProvider will give you a fresh page since the
   MountedMapper were able to resolve the target page class.
   You can customize PageProvider to throw a StalePageException based on
   custom rules. Don't know if it's the best option.

   Pedro Henrique Oliveira dos Santos


   2011/12/14 Thomas Götz t...@decoded.de (mailto:t...@decoded.de)

Can you give an example? AFAIK the pageId *is* already encoded in the
  URL
bei Wicket, i.e. the URL changes to http://my.domain/foobar?0 when the
page is rendered. Doing AJAX requests on the page does not change the

   
   
  URL
though …
 
Cheers,
-Tom
 
 
Pedro Santos wrote:
 
 Hi Thomas, encoding the page ID in the URL would respond an expired
  page.
  
 Pedro Henrique Oliveira dos Santos
  
  
 2011/12/14 Thomas Götz t...@decoded.de (mailto:t...@decoded.de)
  
  The situation:
   
  I have a mounted page containing several AJAX components. Whenever
  the
  session expires and an AJAX request is triggered afterwards, a new
  
 
 
 
 
instance
  of the page is (silently) created which is normal behavior I
  
 

   
   
  suppose
 
 
 
 
(when
  looking at PageProvider.resolvePageInstance(…)).
   
  Can I hook into that somehow? I'd like to show some custom
  please-restart-you-session-by-clicking-here ExpiredPage, but
  
 

   
   
  there's no
  PageExpiredException thrown (which is a good thing), but
  
 

   
   
  nevertheless
  
 
 
 
 
I'd
  prefer to show something to the user.
   
  Can someone point me into the right direction?
   
  Cheers,
  -Tom
  
 

   
   
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org 
  (mailto:users-unsubscr...@wicket.apache.org)(mailto:
  
 

   
   
  users-unsubscr...@wicket.apache.org 
  (mailto:users-unsubscr...@wicket.apache.org)) (mailto:
  
 
 
 
 
users-unsubscr...@wicket.apache.org 
(mailto:users-unsubscr...@wicket.apache.org) (mailto:
  users-unsubscr...@wicket.apache.org 
  (mailto:users-unsubscr...@wicket.apache.org)))
  For additional commands, e-mail: users-h...@wicket.apache.org 
  (mailto:users-h...@wicket.apache.org)(mailto:
  
 

   
   
  users-h...@wicket.apache.org (mailto:users-h...@wicket.apache.org)) (mailto:
 
 
 
 
users-h...@wicket.apache.org (mailto:users-h...@wicket.apache.org))
 
 
 
 
 
 
 
 
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org 
(mailto:users-unsubscr...@wicket.apache.org) (mailto:

   
   
  users-unsubscr...@wicket.apache.org 
  (mailto:users-unsubscr...@wicket.apache.org))
For additional commands, e-mail: users-h...@wicket.apache.org 
(mailto:users-h...@wicket.apache.org) (mailto:

   
   
  users-h...@wicket.apache.org (mailto:users-h...@wicket.apache.org))

   
   
   
   
   
   
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org 
  (mailto:users-unsubscr...@wicket.apache.org)
  For additional commands, e-mail: users-h...@wicket.apache.org 
  (mailto: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: tabs are displayed in a list when using tabbed panel

2011-11-30 Thread Thomas Götz
Yes, you need to provide your own styling (CSS file).

Cheers,
   -Tom


mohan mohan wrote:

 Hi,
 
 I am trying to use AjaxTabbedPanel. I added 2 tabs to it. In browser
 they are displayed 1 under another, not side by side. And no styling. I
 have seen sourcecode. It seems css classes were added but I did not find
 any css file in the source code.
 
 Here is the code, I used for AjaxTabbedPanel,
 
 *My html code*:
span wicket:id=tabs class=tabpanel[tabbed
 panel will be here]/span
 
 *My java code*:
 AjaxTabbedPanel tabbedPanel = new
 AjaxTabbedPanel(tabs, tabs);
 
 
 Do I need to add css file on my own? Please confirm me.
 
 
 regards,
 Mohan.


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



Re: Dynamically choosing component to add

2011-11-29 Thread Thomas Götz
If you only need one TextField that should be displayed upon click on a button:

final TextField textField = new TextField(textField, new Model());
textField.setVisible(false);
add(textField);

AjaxButton button = new AjaxButton(button) {
@Override
protected void onSubmit(AjaxRequestTarget target, Form? form) {
textField.setVisible(true);
target.add(textField);
}

@Override
protected void onError(AjaxRequestTarget target, Form? form) {
}
};
add(button);


If you need to display a new TextField upon *each* click on the button: use a 
repeater (e.g. RepeatingView and friends).

Cheers,
   -Tom



On 29.11.2011, 09:04h tech7 wrote:

 Many thanks.
 
 I am also trying to add new textfield to the page when user clicks on a
 button.
 How can I do that? Is there any proper way?
 
 
 -
 Wicket-Java
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Dynamically-choosing-component-to-add-tp3955869p4118343.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 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: Dynamically choosing component to add

2011-11-29 Thread Thomas Götz
I created a short example (Quickstart): http://cl.ly/3u2o260z1b3F441T1T1M
You need to care for your models yourself (for the TextFields), just an example 
how to dynamically add components.

Cheers,
   -Tom


Seçil Aydın wrote:

 Thomas and Hans, thank you for your responses.
 
 Mine issue is a little bit different, as you can see in the sample picture.
 When page is opened only one couple of textfield should be displayed.When
 user clicks on button, couple of textfields should be added to the page.Is
 there any way?
 
 http://apache-wicket.1842946.n4.nabble.com/file/n4118851/page_sample.png 
 
 With my best regards.
 
 
 
 -
 Wicket-Java
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Dynamically-choosing-component-to-add-tp3955869p4118851.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 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: logging the page class name

2011-11-29 Thread Thomas Götz
I would create my own base Page (where all other pages extend from) and add the 
desired logging statement there (onConfigure(), onBeforeRender()). Most of the 
times you already have a common base page anyway …

Cheers,
   -Tom


fachhoch wrote:

 I want to log all the pages users   are  viewing  without any much detail
 just  the page   class  name .
 is there any way I can get this without adding my own log statements in code
 ?
 
 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/logging-the-page-class-name-tp4119768p4119768.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 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



java.util.ConcurrentModificationException in Component.internalPrepareForRender

2011-09-14 Thread Thomas Götz
Hi,

I am currently migrating an application to Wicket 1.5.0 (from Wicket 1.4.17) 
and experience the following error:

ERROR - DefaultExceptionMapper - Unexpected error occurred
java.util.ConcurrentModificationException
at 
java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
at java.util.AbstractList$Itr.next(AbstractList.java:343)
at 
org.apache.wicket.Component.internalPrepareForRender(Component.java:2191)
at org.apache.wicket.Page.internalPrepareForRender(Page.java:280)
at org.apache.wicket.Component.render(Component.java:2265)
at org.apache.wicket.Page.renderPage(Page.java:1035)
at 
org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
at 
org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:224)
at 
org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:147)
at 
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:719)
at 
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
at 
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:210)
at 
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
at 
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162)
at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:440)
at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at 
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at 
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
at 
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)



The error always occurs when requesting the first page after having started 
Jetty. Anyone has seen this already?!

Cheers,
   -Tom


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



Re: java.util.ConcurrentModificationException in Component.internalPrepareForRender

2011-09-14 Thread Thomas Götz
Actually not that easy, as there are 8 feedbacks in 
getRequestCycle().getMetaData(FEEDBACK_LIST) (Component, line 2188). But I 
noticed that one of them (which causes the exception) is a border (extends 
Border implements IFeedback) …

I will try what I can do to isolate this further.

   -Tom


On 14.09.2011, 16:48 Martin Grigorov wrote:

 Can you reproduce it with a quickstart ?
 
 On Wed, Sep 14, 2011 at 5:44 PM, Thomas Götz t...@richmountain.de wrote:
 Hi,
 
 I am currently migrating an application to Wicket 1.5.0 (from Wicket 1.4.17) 
 and experience the following error:
 
 ERROR - DefaultExceptionMapper - Unexpected error occurred
 java.util.ConcurrentModificationException
at 
 java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
at java.util.AbstractList$Itr.next(AbstractList.java:343)
at 
 org.apache.wicket.Component.internalPrepareForRender(Component.java:2191)
at org.apache.wicket.Page.internalPrepareForRender(Page.java:280)
at org.apache.wicket.Component.render(Component.java:2265)
at org.apache.wicket.Page.renderPage(Page.java:1035)
at 
 org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
at 
 org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:224)
at 
 org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:147)
at 
 org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:719)
at 
 org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
at 
 org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:210)
at 
 org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
at 
 org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162)
at 
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218)
at 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at 
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at 
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at 
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at 
 org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:440)
at 
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at 
 org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at 
 org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at 
 org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
at 
 org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
 
 
 
 The error always occurs when requesting the first page after having started 
 Jetty. Anyone has seen this already?!
 
 Cheers,
   -Tom
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
 -- 
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com
 
 -
 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



  1   2   >