Re: [1.5.4] addorReplace and then later visitor in same request

2012-02-10 Thread nino martinez wael
fyi, it was as simple as changing it to this:


private void addAllFeedbackPanels(AjaxRequestTarget target) {
 ComponentHierarchyIterator visitChildren = *target.getPage()*
.visitChildren(FeedbackPanel.class);
for (Component component : visitChildren) {
target.add(component);
}
}


2012/2/9 nino martinez wael nino.martinez.w...@gmail.com

 Doh and thanks again!
 On Feb 9, 2012 5:57 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:

 youve removed this from page hierarchy so you can no longer say
 this.getPage().

 call getPage() on the component that replaced this

 -igor

 On Thu, Feb 9, 2012 at 5:27 AM, nino martinez wael
 nino.martinez.w...@gmail.com wrote:
  Hi I
 
  have a problem where I first call addOrReplace on a components parent
 (in
  this case it replaces).
 
  And later in the same request I do this:
  ComponentHierarchyIterator visitChildren = this.getPage()
  .visitChildren(FeedbackPanel.class);
 
  However when the visitor above runs, it complains about that one of the
  components haven't got a page.
 
  org.apache.wicket.WicketRuntimeException: No Page found for component
  [ [Component id = saveButton]]
  at org.apache.wicket.Component.getPage(Component.java:1765)
  at
 com.netdesign.ccadmin.panel.TriggerSchedulePanel$33.addAllFeedbackPanels(TriggerSchedulePanel.java:1051)
  at
 com.netdesign.ccadmin.panel.TriggerSchedulePanel$33.cannotRefreshFeedbackIfOutSideConfig(TriggerSchedulePanel.java:1047)
  at
 com.netdesign.ccadmin.panel.TriggerSchedulePanel$33.onSubmit(TriggerSchedulePanel.java:1033)
  at
 org.apache.wicket.ajax.markup.html.form.AjaxButton$1.onSubmit(AjaxButton.java:103)
  at
 org.apache.wicket.ajax.form.AjaxFormSubmitBehavior$1.onSubmit(AjaxFormSubmitBehavior.java:172)
  at
 org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1154)
  at org.apache.wicket.markup.html.form.Form.process(Form.java:838)
  at
 org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:762)
  at
 org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:158)
  at
 org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:166)
  at
 org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:316)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at
 org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:260)
  at
 org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)
  at
 org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:255)
  at
 org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234)
  at
 org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:781)
  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:162)
  at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218)
  at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
  at
 com.netdesign.ccadmin.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:124)
  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.content(HttpConnection.java:943)
  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
  at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
  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)

 -
 To unsubscribe, e-mail: 

Re: [1.5.4] addorReplace and then later visitor in same request

2012-02-10 Thread Martin Grigorov
On Fri, Feb 10, 2012 at 10:09 AM, nino martinez wael
nino.martinez.w...@gmail.com wrote:
 fyi, it was as simple as changing it to this:


 private void addAllFeedbackPanels(AjaxRequestTarget target) {
  ComponentHierarchyIterator visitChildren = *target.getPage()*
 .visitChildren(FeedbackPanel.class);
 for (Component component : visitChildren) {
 target.add(component);

target.addChildren(getPage(), FeedbackPanel.class);

 }
 }


 2012/2/9 nino martinez wael nino.martinez.w...@gmail.com

 Doh and thanks again!
 On Feb 9, 2012 5:57 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:

 youve removed this from page hierarchy so you can no longer say
 this.getPage().

 call getPage() on the component that replaced this

 -igor

 On Thu, Feb 9, 2012 at 5:27 AM, nino martinez wael
 nino.martinez.w...@gmail.com wrote:
  Hi I
 
  have a problem where I first call addOrReplace on a components parent
 (in
  this case it replaces).
 
  And later in the same request I do this:
  ComponentHierarchyIterator visitChildren = this.getPage()
  .visitChildren(FeedbackPanel.class);
 
  However when the visitor above runs, it complains about that one of the
  components haven't got a page.
 
  org.apache.wicket.WicketRuntimeException: No Page found for component
  [ [Component id = saveButton]]
      at org.apache.wicket.Component.getPage(Component.java:1765)
      at
 com.netdesign.ccadmin.panel.TriggerSchedulePanel$33.addAllFeedbackPanels(TriggerSchedulePanel.java:1051)
      at
 com.netdesign.ccadmin.panel.TriggerSchedulePanel$33.cannotRefreshFeedbackIfOutSideConfig(TriggerSchedulePanel.java:1047)
      at
 com.netdesign.ccadmin.panel.TriggerSchedulePanel$33.onSubmit(TriggerSchedulePanel.java:1033)
      at
 org.apache.wicket.ajax.markup.html.form.AjaxButton$1.onSubmit(AjaxButton.java:103)
      at
 org.apache.wicket.ajax.form.AjaxFormSubmitBehavior$1.onSubmit(AjaxFormSubmitBehavior.java:172)
      at
 org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1154)
      at org.apache.wicket.markup.html.form.Form.process(Form.java:838)
      at
 org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:762)
      at
 org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:158)
      at
 org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:166)
      at
 org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:316)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at
 org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:260)
      at
 org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)
      at
 org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:255)
      at
 org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234)
      at
 org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:781)
      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:162)
      at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218)
      at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      at
 com.netdesign.ccadmin.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:124)
      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.content(HttpConnection.java:943)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      at
 org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
      at
 

RE: Problem DatePicker, ModalWindow and IE8

2012-02-10 Thread Matt
Hi Chris,

I have already added a form around my modal window. It resolved some other
issues i had at the begining, but not the i can't use the close button nor
the change month ones.

I'll have a quick look at your framework if it can help me ... .

Thx ^^

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-DatePicker-ModalWindow-and-IE8-tp4372772p4375593.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: Problem DatePicker, ModalWindow and IE8

2012-02-10 Thread Matt


Mathieu Laurent
Objet Direct consultant for SGCIB ITEC
matthieu.laurent-...@sgcib.com

From: Matt [via Apache Wicket] 
[mailto:ml-node+s1842946n4375593...@n4.nabble.com]
Sent: Friday, February 10, 2012 9:21 AM
To: LAURENT Matthieu (EXT) ItecCttRrc
Subject: RE: Problem DatePicker, ModalWindow and IE8

Hi Chris,

I have already added a form around my modal window. It resolved some other 
issues i had at the begining, but not the i can't use the close button nor the 
change month ones.

I'll have a quick look at your framework if it can help me ... .

Thx ^^

If you reply to this email, your message will be added to the discussion below:
http://apache-wicket.1842946.n4.nabble.com/Problem-DatePicker-ModalWindow-and-IE8-tp4372772p4375593.html
To unsubscribe from Problem DatePicker, ModalWindow and IE8, click 
herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4372772code=bWF0dGhpZXUubGF1cmVudC1leHRAc2djaWIuY29tfDQzNzI3NzJ8MTM4NjUxNzc4OQ==.
NAMLhttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
*
This message and any attachments (the message) are confidential, intended 
solely for the addressee(s), and may contain legally privileged information.
Any unauthorised use or dissemination is prohibited. E-mails are susceptible to 
alteration.   
Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be 
liable for the message if altered, changed or
falsified.
  
Ce message et toutes les pieces jointes (ci-apres le message) sont 
confidentiels et susceptibles de contenir des informations couvertes 
par le secret professionnel. 
Ce message est etabli a l'intention exclusive de ses destinataires. Toute 
utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration. 
La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de 
ce message s'il a ete altere, deforme ou falsifie.
*


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-DatePicker-ModalWindow-and-IE8-tp4372772p4375594.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: [1.5.4] addorReplace and then later visitor in same request

2012-02-10 Thread nino martinez wael
Even simpler :) And thanks

However it had to be like this:

target.addChildren(*target.getPage()*, FeedbackPanel.class);

2012/2/10 Martin Grigorov mgrigo...@apache.org

 On Fri, Feb 10, 2012 at 10:09 AM, nino martinez wael
 nino.martinez.w...@gmail.com wrote:
  fyi, it was as simple as changing it to this:
 
 
  private void addAllFeedbackPanels(AjaxRequestTarget target) {
   ComponentHierarchyIterator visitChildren = *target.getPage()*
  .visitChildren(FeedbackPanel.class);
  for (Component component : visitChildren) {
  target.add(component);

 target.addChildren(getPage(), FeedbackPanel.class);

  }
  }
 
 
  2012/2/9 nino martinez wael nino.martinez.w...@gmail.com
 
  Doh and thanks again!
  On Feb 9, 2012 5:57 PM, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:
 
  youve removed this from page hierarchy so you can no longer say
  this.getPage().
 
  call getPage() on the component that replaced this
 
  -igor
 
  On Thu, Feb 9, 2012 at 5:27 AM, nino martinez wael
  nino.martinez.w...@gmail.com wrote:
   Hi I
  
   have a problem where I first call addOrReplace on a components parent
  (in
   this case it replaces).
  
   And later in the same request I do this:
   ComponentHierarchyIterator visitChildren = this.getPage()
   .visitChildren(FeedbackPanel.class);
  
   However when the visitor above runs, it complains about that one of
 the
   components haven't got a page.
  
   org.apache.wicket.WicketRuntimeException: No Page found for component
   [ [Component id = saveButton]]
   at org.apache.wicket.Component.getPage(Component.java:1765)
   at
 
 com.netdesign.ccadmin.panel.TriggerSchedulePanel$33.addAllFeedbackPanels(TriggerSchedulePanel.java:1051)
   at
 
 com.netdesign.ccadmin.panel.TriggerSchedulePanel$33.cannotRefreshFeedbackIfOutSideConfig(TriggerSchedulePanel.java:1047)
   at
 
 com.netdesign.ccadmin.panel.TriggerSchedulePanel$33.onSubmit(TriggerSchedulePanel.java:1033)
   at
 
 org.apache.wicket.ajax.markup.html.form.AjaxButton$1.onSubmit(AjaxButton.java:103)
   at
 
 org.apache.wicket.ajax.form.AjaxFormSubmitBehavior$1.onSubmit(AjaxFormSubmitBehavior.java:172)
   at
  org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1154)
   at org.apache.wicket.markup.html.form.Form.process(Form.java:838)
   at
  org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:762)
   at
 
 org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:158)
   at
 
 org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:166)
   at
 
 org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:316)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at
 
 org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:260)
   at
 
 org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)
   at
 
 org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:255)
   at
 
 org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234)
   at
 
 org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:781)
   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:162)
   at
 
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218)
   at
 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
   at
 
 com.netdesign.ccadmin.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:124)
   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.content(HttpConnection.java:943)
   at 

Re: Problem DatePicker, ModalWindow and IE8

2012-02-10 Thread François Meillet
Hi Mathieu,

Have you try to modify (or set) the CSS z-index property (link the the 
position property) of the div that cover the close button

François


Le 10 févr. 2012 à 09:21, Matt a écrit :

 close



Re: Very simple Wicket test to verify panel type...

2012-02-10 Thread Bjørn Grønbæk
Hi Hans and Martin.

The dump and debugComponentTrees was exactly what I was looking for. My
pages inherit from other pages, which of course made my panels have id's
like: topcontainer:subcontainer:panelid.

I'll check out the other tools as well.

Thanks alot.

BG

On 10 February 2012 08:54, Martin Grigorov mgrigo...@apache.org wrote:

 Hi

 One way to see the component paths is:
 org.apache.wicket.util.tester.BaseWicketTester#debugComponentTrees

 Another way is by using DebugBar from wicket-devutils. At
 http://www.wicket-library.com/wicket-examples/forminput , in the
 top-right corner there is a link Inspector, click it and it will
 show you more info, check Page section.

 On Thu, Feb 9, 2012 at 10:59 PM, Bjørn Grønbæk
 bjorn.gronb...@endomondo.com wrote:
  Hi,
 
  I'm just starting out with Wicket and WicketTester...
 
  I have a page that adds one of several panels, depending of its
  PageParameter. I would like to verify that behaviour with WicketTester...
  but how to?
 
  The code is something like this:
 
 String type = null;
 Panel p = null;
 
 if(getPageParameters() != null)
 type = getPageParameters().getString(BRAND_TYPE);
 
 if(type != null  type.equals(BRAND))
 p = new PanelA(id);
 else
 p = new PanelB(id);
  add(p);
 
  I've tried something like this:
 
  wicketTester.startPage(CreatePage.class);
  wicketTester.assertRenderedPage(CreatePage.class);
  wicketTester.assertComponent(:panelid,PanelA.class);
 
  but that doesn't work. The test fails with this message:
  junit.framework.AssertionFailedError: component 'CreatePage' is not
  type:PanelA
 
  Am I using the AssertComponent in a wrong way?
  How else can I perform a test like that?
  Could you point me to a good resource on how I find the path to
 components?
 
 
  --
 
  Best Regard
 
  Bjørn Grønbæk
 
  Software Engineer
 
  m: bjorn.gronb...@endomondo.com first%20name.last%20n...@endomondo.com
  p: +45 22669501
  w: *www.endomondo.com* http://www.endomondo.com/
  t: *www.twitter.com/endomondo* http://www.twitter.com/endomondo
  f:* **www.facebook.com/endomondo* http://www.facebook.com/endomondo
  e: www.endomondo.com/profile/406738 
 http://www.endomondo.com/profile/your



 --
 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 Regard

Bjørn Grønbæk

Software Engineer

m: bjorn.gronb...@endomondo.com first%20name.last%20n...@endomondo.com
p: +45 22669501
w: *www.endomondo.com* http://www.endomondo.com/
t: *www.twitter.com/endomondo* http://www.twitter.com/endomondo
f:* **www.facebook.com/endomondo* http://www.facebook.com/endomondo
e: www.endomondo.com/profile/406738 http://www.endomondo.com/profile/your


RE: Wicket in a Dot Net World

2012-02-10 Thread Hielke Hoeve
I have spend about 100 hours in creating a Wicket 1.3 port. Because half of 
Wicket consists of anonymous classes it is near impossible. I had to add about 
1000 new subclasses to get the core to work. When it compiled and actually 
wanted to start and bind to a port I was unable to get the pages to render. 
Because these 2 languages are so completely different it is not easy and it 
will mean that Wicket apps will be completely different to Wicket.NET apps.

Major problems I encountered:
property files not supported
threading impl works differently
anonymous classes not supported
loading of html files and getting them to inherit was really odd, maybe it was 
just me...

biggest frustration: finding compatible dependencies... There is a proper maven 
like system for .NET now but back then they all sucked.

Hielke

-Original Message-
From: shetc [mailto:sh...@bellsouth.net] 
Sent: dinsdag 7 februari 2012 20:57
To: users@wicket.apache.org
Subject: Wicket in a Dot Net World

Well friends, it's happened -- the company I work for has been bought by a 
larger competitor. Sadly, the new bosses prefer to work with .NET 

I don't suppose anyone has ported Wicket to .NET? 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-in-a-Dot-Net-World-tp4366058p4366058.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



get key from resource model

2012-02-10 Thread cosmindumy
Hello,
My displayed texts are localized using ResourceModel('my.key').
Is it posible to get the key for ResourceModel, or an object from whom I can
extract the key?
Thanks.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/get-key-from-resource-model-tp4376269p4376269.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: call a javascript

2012-02-10 Thread kamiseq
check wicket.ajax and its method getAjax or something like that.

if you use AjaxEventBehavior then the ajax callback (which uses that js
getAjax method) is already coded for you.

pozdrawiam
Paweł Kamiński

kami...@gmail.com
pkaminski@gmail.com
__


Re: get key from resource model

2012-02-10 Thread Per Newgro
If you mean get the key from ResourceModel, or ... then the answer is 
no not directly.
An ugly solution could be - extend ResourceModel and memorize the key in 
a second attribute.

But that's realy ugly.

class MyResourceModel extends ResourceModel {
  private String key;

  public MyResourceModel(String key) {
super(key);
this.key = key;
  }

  public String getTheKeyOnUglyWay() {
return this.key;
  }
}

But i would do this only if no other solution is possible.

Cheers
Per

Am 10.02.2012 14:43, schrieb cosmindumy:

Hello,
My displayed texts are localized using ResourceModel('my.key').
Is it posible to get the key for ResourceModel, or an object from whom I can
extract the key?
Thanks.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/get-key-from-resource-model-tp4376269p4376269.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



Fusion Charts (IResourceListener)

2012-02-10 Thread Corbin, James
I am using Fusion Charts with Wicket (1.4.13) and implementing 
IResourceListener.
I also have the application configured to encrypt URLs.  With this in place, we 
get a lot of Invalid URL exceptions and I think it has something to do with how 
we are building our URLs.

The url is built using:

urlFor(IResourceListener.INTERFACE)

The URL is embedded in some Javascript that is rendered in the head of the page.

I came across the following issue, 
https://issues.apache.org/jira/browse/WICKET-2204, and wondered if it is 
related to the symptoms I am seeing.

Thoughts,
J.D.


Re: call a javascript

2012-02-10 Thread Kayode Odeyemi
Try any of these steps as described in the wiki:

https://cwiki.apache.org/WICKET/calling-wicket-from-javascript.html
https://cwiki.apache.org/WICKET/adding-javascript-from-wicket.html
https://cwiki.apache.org/WICKET/how-to-write-json-response.html

Wicket javascript integration is built on Behaviours. Behaviours are
another type of component in Wicket. You will generally want to play with
Behaviours to add Javascript to your wicket components.

On Fri, Feb 10, 2012 at 4:12 PM, kamiseq kami...@gmail.com wrote:

 check wicket.ajax and its method getAjax or something like that.

 if you use AjaxEventBehavior then the ajax callback (which uses that js
 getAjax method) is already coded for you.

 pozdrawiam
 Paweł Kamiński

 kami...@gmail.com
 pkaminski@gmail.com
 __




-- 
Odeyemi 'Kayode O.
http://www.sinati.com. t: @charyorde


Re: StalePageException with CryptoMapper

2012-02-10 Thread jchappelle
Martin,

Here is the jira bug:

https://issues.apache.org/jira/browse/WICKET-4404

I created a quickstart and the results are slightly different but it still
does not work. I don't get a StalePageException but the respond method of my
behavior never gets called. 

Thanks for the help.

Josh

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/StalePageException-with-CryptoMapper-tp4355184p4377238.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



Multiple Feedback panels in a page

2012-02-10 Thread sudeivas
Hello,
I do have a page which contains several widgets and each widget is a
panel. I need to add different feedback panel for each of these widgets. I
tried using something like below,

final FormString form = new FormString(form); 

ComponentFeedbackMessageFilter filter = new
ComponentFeedbackMessageFilter(form); 

FeedbackPanel feedback = new FeedbackPanel(feedback, filter); 
feedback.setEscapeModelStrings(false); 
add(feedback); 

Then use form.error(message) . Also added markup for feedback in .html file. 

Even I tried with ContainerFeedbackMessageFilter but nothing is working. I
am currently using wicket - 1.5.3. I am getting the message in all the
feedback panels in the page. Am I doing something wrong? 

Any information on this will be helpful.

Thanks,
Suresh

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Multiple-Feedback-panels-in-a-page-tp4377392p4377392.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



Contributing comments to the head section

2012-02-10 Thread Chris Colman
We've been doing 'header contribution' for some time now and this works
fine with things like link and meta but what if we wanted to control
a 'comment' that is rendered to the header. Is there any special
mechanism in wicket for doing this or are comments you set up in your
base class mark up.
 
Some of the CSS templates we use required code with 'wrapping
conditional comments' like:
 
!--[if lt IE 8]link wicket:id=ieFixStyle rel=stylesheet
type=text/css media=screen, projection href= /![endif]--
 
to be in the header which we have been able to set up in the base markup
as the comment part is pretty static. We now have a need to customize
the comment part at runtime to support different CSS templates that have
different requirements for the 'wrapping comment'. Is this possible?
 
 
Yours sincerely,
 
Chris Colman
 
Pagebloom Team Leader,
Step Ahead Software

 
pagebloom - your business  your website growing together
 
Sydney: (+61 2) 9656 1278 Canberra: (+61 2) 6100 2120 
Email: chr...@stepahead.com.au mailto://chr...@stepahead.com.au 
Website:
http://www.pagebloom.com blocked::http://www.pagebloom.com/ 
http://develop.stepaheadsoftware.com
blocked::http://develop.stepaheadsoftware.com/ 
 
 


Re: Contributing comments to the head section

2012-02-10 Thread Bas Gooren

You can always opt for a either

- a label (with setRenderBodyOnly(true)) which renders it
- a header contributor

Both of these could use either a hardcoded bit of html in which you 
replace ${urlForCss} with the result of a call to urlFor(...). You can 
also store this html as a text template, in your cms, etc.


Bas

Op 10-2-2012 21:41, schreef Chris Colman:


We've been doing 'header contribution' for some time now and this 
works fine with things like link and meta but what if we wanted to 
control a 'comment' that is rendered to the header. Is there any 
special mechanism in wicket for doing this or are comments you set up 
in your base class mark up.


Some of the CSS templates we use required code with 'wrapping 
conditional comments' like:


!--[if lt IE 8]link wicket:id=ieFixStyle rel=stylesheet 
type=text/css media=screen, projection href= /![endif]--


tobe in the header which we have been able to set up in the base 
markup as the comment part is pretty static. We now have a need to 
customize the comment part at runtime to support different CSS 
templates that have different requirements for the 'wrapping comment'. 
Is this possible?


Yours sincerely,

Chris Colman

Pagebloom Team Leader,

Step Ahead Software

pagebloom - your business  your website growing together

Sydney:(+61 2) 9656 1278 Canberra: (+61 2) 6100 2120

Email: chr...@stepahead.com.au mailto://chr...@stepahead.com.au

Website:

http://www.pagebloom.com blocked::http://www.pagebloom.com/

http://develop.stepaheadsoftware.com 
blocked::http://develop.stepaheadsoftware.com/




RE: Contributing comments to the head section

2012-02-10 Thread Chris Colman
That label option works perfectly. I have total control of whatever I
need to bang into the header. Of course you have to use ye olde
setEscapeModelStrings(false) also.

-Original Message-
From: Bas Gooren [mailto:b...@iswd.nl]
Sent: Saturday, 11 February 2012 7:45 AM
To: users@wicket.apache.org
Subject: Re: Contributing comments to the head section

You can always opt for a either

- a label (with setRenderBodyOnly(true)) which renders it
- a header contributor

Both of these could use either a hardcoded bit of html in which you
replace ${urlForCss} with the result of a call to urlFor(...). You can
also store this html as a text template, in your cms, etc.

Bas

Op 10-2-2012 21:41, schreef Chris Colman:

 We've been doing 'header contribution' for some time now and this
 works fine with things like link and meta but what if we wanted
to
 control a 'comment' that is rendered to the header. Is there any
 special mechanism in wicket for doing this or are comments you set up
 in your base class mark up.

 Some of the CSS templates we use required code with 'wrapping
 conditional comments' like:

 !--[if lt IE 8]link wicket:id=ieFixStyle rel=stylesheet
 type=text/css media=screen, projection href= /![endif]--

 tobe in the header which we have been able to set up in the base
 markup as the comment part is pretty static. We now have a need to
 customize the comment part at runtime to support different CSS
 templates that have different requirements for the 'wrapping
comment'.
 Is this possible?

 Yours sincerely,

 Chris Colman

 Pagebloom Team Leader,

 Step Ahead Software

 pagebloom - your business  your website growing together

 Sydney:(+61 2) 9656 1278 Canberra: (+61 2) 6100 2120

 Email: chr...@stepahead.com.au mailto://chr...@stepahead.com.au

 Website:

 http://www.pagebloom.com blocked::http://www.pagebloom.com/

 http://develop.stepaheadsoftware.com
 blocked::http://develop.stepaheadsoftware.com/


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



RE: Contributing comments to the head section

2012-02-10 Thread Chris Colman
The other advantage of the label solution is that I can dictate exactly
where the markup will be injected into the header. I'm not sure if a
header contributor has that same amount of control.

-Original Message-
From: Bas Gooren [mailto:b...@iswd.nl]
Sent: Saturday, 11 February 2012 7:45 AM
To: users@wicket.apache.org
Subject: Re: Contributing comments to the head section

You can always opt for a either

- a label (with setRenderBodyOnly(true)) which renders it
- a header contributor

Both of these could use either a hardcoded bit of html in which you
replace ${urlForCss} with the result of a call to urlFor(...). You can
also store this html as a text template, in your cms, etc.

Bas

Op 10-2-2012 21:41, schreef Chris Colman:

 We've been doing 'header contribution' for some time now and this
 works fine with things like link and meta but what if we wanted
to
 control a 'comment' that is rendered to the header. Is there any
 special mechanism in wicket for doing this or are comments you set up
 in your base class mark up.

 Some of the CSS templates we use required code with 'wrapping
 conditional comments' like:

 !--[if lt IE 8]link wicket:id=ieFixStyle rel=stylesheet
 type=text/css media=screen, projection href= /![endif]--

 tobe in the header which we have been able to set up in the base
 markup as the comment part is pretty static. We now have a need to
 customize the comment part at runtime to support different CSS
 templates that have different requirements for the 'wrapping
comment'.
 Is this possible?

 Yours sincerely,

 Chris Colman

 Pagebloom Team Leader,

 Step Ahead Software

 pagebloom - your business  your website growing together

 Sydney:(+61 2) 9656 1278 Canberra: (+61 2) 6100 2120

 Email: chr...@stepahead.com.au mailto://chr...@stepahead.com.au

 Website:

 http://www.pagebloom.com blocked::http://www.pagebloom.com/

 http://develop.stepaheadsoftware.com
 blocked::http://develop.stepaheadsoftware.com/


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



modal window takes very long time to close

2012-02-10 Thread fachhoch
I am using wicket 1.4.12 , sometimes my modal windows takes very long time to
close , there is no code called when modalwindow is closed no ajax updates
to the page , what can cause modal window to  hang ?
It happens  in all browsers it happens only some times .

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/modal-window-takes-very-long-time-to-close-tp4377803p4377803.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: Set Wicket User Session to Servlet's HttpSession

2012-02-10 Thread Nelson Segura
So this means that wicket session cannot be accessed from non wicket
request? I tried to call Session.get().bind() before doing anything
with the session, but it gives me the same error. Notice this is
called in Session.get(), so I cant really call bind.
This was working with no problems in Wicket 1.5.3


java.lang.IllegalArgumentException: Argument 'requestCycle' may not be null.
at org.apache.wicket.util.lang.Args.notNull(Args.java:41)
at 
org.apache.wicket.Application.fetchCreateAndSetSession(Application.java:1524)
at org.apache.wicket.Session.get(Session.java:156)


On Mon, Feb 6, 2012 at 2:07 AM, Martin Grigorov mgrigo...@apache.org wrote:
 Hi,

 As I answered in the ticket - RequestCycle is not created for
 non-Wicket requests. It will be always 'null'.

 On Mon, Feb 6, 2012 at 11:15 AM, Kayode Odeyemi drey...@gmail.com wrote:
 On Mon, Feb 6, 2012 at 7:18 AM, Martin Grigorov mgrigo...@apache.orgwrote:

 Hi,

 On Sat, Feb 4, 2012 at 3:25 PM, Kayode Odeyemi drey...@gmail.com wrote:
  Hi, thanks.
 
  On Fri, Feb 3, 2012 at 8:05 PM, Serban.Balamaci thespamtr...@gmail.com
 wrote:
 
  Hello,
  It's not really clear what you mean and maybe you need to tell us what
 you
  want to do.
 
 
  I want to use servlet session object for user authentication and not
  wickets'.
 
 
  A Wicket session stores it's attributes into an implementation of the
  ISessionStore interface, but the default the store is HttpSessionStore,
 so
  the HttpSession. On the other hand, the wicket session can exist in a
  temporary state for the duration of the request and not have a
 HttpSession
  created. See bind(...) method in HttpSessionStore and you can see the
  Wicket
  session object being stored in a  httpsession attribute when the Wicket
  session needs to be persistent.
  setAttribute(request, Session.SESSION_ATTRIBUTE_NAME, newSession);
 
 
  But from what you've just explained, does that mean a wicket session is
  HttpSession? Hence, I can just concentrate on implementing wicket session
  and then retrieve it whenever its required even within a servlet - alas,
  the HelloWorldServlet example which makes use of WicketSessionFilter?

 Yes, Wicket's Session is saved as an attribute in the HttpSession.
 And yes, using WicketSessionFilter you can read it in servlets.


 Thanks. I tried this but I keep getting  java.lang.IllegalArgumentException:
 Argument 'requestCycle' may not be null.

 This is the reason why I wanted to know if this is a bug that is fixed in a
 different branch but not yet on the official release.

 Thanks for the time.

 
 
 
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/Set-Wicket-User-Session-to-Servlet-s-HttpSession-tp4355593p4355644.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
 
 
 
 
  --
  Odeyemi 'Kayode O.
  http://www.sinati.com. t: @charyorde



 --
 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




 --
 Odeyemi 'Kayode O.
 http://www.sinati.com. t: @charyorde



 --
 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



wicketstuff-tinymce not working in deployment mode

2012-02-10 Thread Gabriel Landon
On my latest project, I'm using wicketstuff-tinymce 1.5.4.

It works fine when I'm in development mode, but when I switch to deployment,
all the icons and images are gone.

I've found that it as something to do with the JavaScript compressor which
is disable in development mode and enable in deployment mode :

getResourceSettings().setJavaScriptCompressor(null); //development
getResourceSettings().setJavaScriptCompressor(new
DefaultJavaScriptCompressor()); //deployment

What I don't manage to find is if the problem comes from the compressor or
tinymce script...

Here's a quickstart :
http://apache-wicket.1842946.n4.nabble.com/file/n4377928/tinymce.zip
tinymce.zip 
To start it in development : mvn jetty:run
To start it in deployment : mvn jetty:run -Dwicket.configuration=deployment

Here's a screenshot in deployment mode (the images are missing) :
http://apache-wicket.1842946.n4.nabble.com/file/n4377928/broken_tinymce_deployment.png
broken_tinymce_deployment.png 

We I try to load the image directly through the URL
http://localhost:8080/tinymce/wicket/contrib/tinymce/tiny_mce/themes/advanced/img/icons.gif
I've got the following message : 
The image  cannot be displayed because it contains errors.

Is anyone facing the same problem?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicketstuff-tinymce-not-working-in-deployment-mode-tp4377928p4377928.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: Multiple Feedback panels in a page

2012-02-10 Thread Gabriel Landon
Maybe you should use ContainerFeedbackMessageFilter instead of
ComponentFeedbackMessageFilter.

Regards,

Gabriel.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Multiple-Feedback-panels-in-a-page-tp4377392p4377960.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: modal window takes very long time to close

2012-02-10 Thread James Carman
Do you have a lot of Ajax links on the page?

On Fri, Feb 10, 2012 at 5:30 PM, fachhoch fachh...@gmail.com wrote:
 I am using wicket 1.4.12 , sometimes my modal windows takes very long time to
 close , there is no code called when modalwindow is closed no ajax updates
 to the page , what can cause modal window to  hang ?
 It happens  in all browsers it happens only some times .

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/modal-window-takes-very-long-time-to-close-tp4377803p4377803.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 'hook' point for page render timing

2012-02-10 Thread Chris Colman
I'm interested in measuring the time taken to render each individual
page class and building up some stats to see if any are doing too much
in the database and could benefit from data caching.
 
Wicket seems to be customizable at many levels and so I was wondering if
there is a hook point/plugin point for a listener style interface that
gets called immediately after the mount path resolution has taken place
(but before page class construction) and then again after the page
rendering has completed.
 
In the measurement I want to include:
- the time it takes to construct the page class (with parameters) as not
all of my constructors have been migrated to onInitialize() and so some
constructors are performing database lookups.
- the time it takes to perform the render after page class construction
has completed. 
 
If I can hook into these points with a page create/render listener (or
something like that) then I can write a simple timer that tracks how
long each page takes to render.
 
Yours sincerely,
 
Chris Colman
 
Pagebloom Team Leader,
Step Ahead Software

 
pagebloom - your business  your website growing together
 
Sydney: (+61 2) 9656 1278 Canberra: (+61 2) 6100 2120 
Email: chr...@stepahead.com.au mailto://chr...@stepahead.com.au 
Website:
http://www.pagebloom.com blocked::http://www.pagebloom.com/ 
http://develop.stepaheadsoftware.com
blocked::http://develop.stepaheadsoftware.com/ 
 
 


Re: Wicket 'hook' point for page render timing

2012-02-10 Thread Nick Heudecker
I did this with a simple servlet filter, then profiled individual service
calls within the slower pages.

On Fri, Feb 10, 2012 at 7:03 PM, Chris Colman
chr...@stepaheadsoftware.comwrote:

 ** **

 I’m interested in measuring the time taken to render each individual page
 class and building up some stats to see if any are doing too much in the
 database and could benefit from data caching.

 ** **

 Wicket seems to be customizable at many levels and so I was wondering if
 there is a hook point/plugin point for a listener style interface that
 gets called immediately after the mount path resolution has taken place
 (but before page class construction) and then again after the page
 rendering has completed.

 ** **

 In the measurement I want to include:

 - the time it takes to construct the page class (with parameters) as not
 all of my constructors have been migrated to onInitialize() and so some
 constructors are performing database lookups.

 - the time it takes to perform the render after page class construction
 has completed. 

  

 If I can hook into these points with a page create/render listener (or
 something like that) then I can write a simple timer that tracks how long
 each page takes to render.

 ** **

 Yours sincerely,

 ** **

 Chris Colman

  

 Pagebloom Team Leader,

 Step Ahead Software

 

 pagebloom - your business  your website growing together

 ** **

 **Sydney**: (+61 2) 9656 1278 Canberra: (+61 2) 6100 2120
 

 Email: chr...@stepahead.com.au //chr...@stepahead.com.au

 Website:

 http://www.pagebloom.com

 http://develop.stepaheadsoftware.com

  

 ** **



RE: Wicket 'hook' point for page render timing

2012-02-10 Thread Chris Colman
The reason I wanted to hook it into Wicket was to take advantage of
Wicket resolving the page class using its ability to resolve pages via
it's mounting mechanism.

If I do it in a separate servlet filter and therefore deal with raw URLs
then I think (but could be wrong) I have to re-implement some portion of
the 'URL to mounted page class' mechanism.

Being lazy or having no spare time, yeah, let's go with no spare time :)
I was trying to avoid writing/duplicating the page class resolution
part.

But your filter idea is a good one if my 're-use' idea doesn't fly. It's
nice and pluggable/removable too.

Regards,
Chris

-Original Message-
From: Nick Heudecker [mailto:nheudec...@gmail.com]
Sent: Saturday, 11 February 2012 2:11 PM
To: users@wicket.apache.org
Subject: Re: Wicket 'hook' point for page render timing

I did this with a simple servlet filter, then profiled individual
service
calls within the slower pages.

On Fri, Feb 10, 2012 at 7:03 PM, Chris Colman
chr...@stepaheadsoftware.comwrote:

 ** **

 I'm interested in measuring the time taken to render each individual
page
 class and building up some stats to see if any are doing too much in
the
 database and could benefit from data caching.

 ** **

 Wicket seems to be customizable at many levels and so I was wondering
if
 there is a hook point/plugin point for a listener style interface
that
 gets called immediately after the mount path resolution has taken
place
 (but before page class construction) and then again after the page
 rendering has completed.

 ** **

 In the measurement I want to include:

 - the time it takes to construct the page class (with parameters) as
not
 all of my constructors have been migrated to onInitialize() and so
some
 constructors are performing database lookups.

 - the time it takes to perform the render after page class
construction
 has completed. 

  

 If I can hook into these points with a page create/render listener
(or
 something like that) then I can write a simple timer that tracks how
long
 each page takes to render.

 ** **

 Yours sincerely,

 ** **

 Chris Colman

  

 Pagebloom Team Leader,

 Step Ahead Software

 

 pagebloom - your business  your website growing together

 ** **

 **Sydney**: (+61 2) 9656 1278 Canberra: (+61 2) 6100 2120
 

 Email: chr...@stepahead.com.au //chr...@stepahead.com.au

 Website:

 http://www.pagebloom.com

 http://develop.stepaheadsoftware.com

  

 ** **


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