Need for a annotation based validation

2009-01-24 Thread taha siddiqi
Hi everyone, The validation provided by wicket is sufficient but I feel that if we integrate it will EJB Persistence Domain Objects, it will be very easy to validate and duplication of code can be avoided. Any comments !! regards taha

Observation and page (map) eviction

2009-01-24 Thread Frank van Lankvelt
I'm trying to get a page to observe a business object that can send events. The changes don't warrant a full page refresh, so I want to update only those parts of the page that have changed as a result of the events. I've seen wicketstuff-push, where a similar kind of observation is present in

about IBehavior#beforeRender

2009-01-24 Thread Ittay Dror
Hi, In Component#render, the call to #notifyBehaviorsComponentBeforeRender is done after #markRendering is called. This means a behavior cannot add components to the component. Can the call be moved to before #markRendering is called? Thanks, Ittay -- -- Ittay

Re: about IBehavior#beforeRender

2009-01-24 Thread igor . vaynberg
Behaviors are not meant for adding components, only to modifying the ones they are attached to. What is your usecase. -igor On 1/24/09, Ittay Dror ittay.d...@gmail.com wrote: Hi, In Component#render, the call to #notifyBehaviorsComponentBeforeRender is done after #markRendering is called.

Re: Need for a annotation based validation

2009-01-24 Thread igor . vaynberg
There is a project that does this in wicketstuff. Hibernate-validator I believe. -igor On 1/24/09, taha siddiqi tawushaf...@gmail.com wrote: Hi everyone, The validation provided by wicket is sufficient but I feel that if we integrate it will EJB Persistence Domain Objects, it will be very

Re: Observation and page (map) eviction

2009-01-24 Thread igor . vaynberg
Use weakreferences to hold onto pages instead. -igor On 1/24/09, Frank van Lankvelt f.vanlankv...@onehippo.com wrote: I'm trying to get a page to observe a business object that can send events. The changes don't warrant a full page refresh, so I want to update only those parts of the page

Re: Observation and page (map) eviction

2009-01-24 Thread Johan Compagner
I think having references to or from pages is a bad idea in wicket. We serialize pages so if pages would have listeners then the are also serialized. If others reference pages then after serialization/deserialization they point to the wrong instance. Way better is pure pull support. Components

Re: about IBehavior#beforeRender

2009-01-24 Thread Ittay Dror
igor.vaynb...@gmail.com wrote: Behaviors are not meant for adding components, only to modifying the ones they are attached to. What is your usecase. well, if there's no problem to move it before the call to #markRendering, then it would be able to add components, right? why not allow

Re: Performance question

2009-01-24 Thread ccgroup
Thank you for the response. I have profiled the application using YourKit and I am still working on optimizing the application. Your work and response was helpful, and I have already identified and resolved multiple stateful pages using Detachable models. Some pages take up to 3 seconds to

Re: Performance question

2009-01-24 Thread Ritesh Trivedi
Yes - overall I do think Wicket is a great framework. I believe there is a lot of tuning at various levels you can do with wicket to improve the performance. e.g. using Terracotta wicket plugin, using cache server in the middle for model rather than hitting db, caching markups, resources, sending

Re: Performance question

2009-01-24 Thread Matej Knopp
Hi, Yes - overall I do think Wicket is a great framework. I believe there is a lot of tuning at various levels you can do with wicket to improve the performance. e.g. using Terracotta wicket plugin, how exactly is this supposed to help wicket performance? using cache server in the middle

What is the best place to add AjaxRequestTarget.IListener?

2009-01-24 Thread Vitaly Tsaplin
Hi there, What is the best place to add AjaxRequestTarget.IListener? And what is a life time of this listener? When is it removed? Vitaly - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: Performance question

2009-01-24 Thread Ritesh Trivedi
Wicket performance is not in the LITERAL SENSE. Since wicket is one of the layers and the farthest client facing layer, usually all the layers down the line are connect through it. So I was suggesting overall how application performance/page loading/page response time can be improved, not

Obtain Rendered HTML programmatically

2009-01-24 Thread ken.p
Hi, I have a requirement which needed to obtain final rendered html as string. E.g: java: add(new Panel1(p1)); html: div wicket:id=p1/div I need to be able to captured rendered HTML for the above. Any example is appreciated. -- View this message in context:

Re: Need for a annotation based validation

2009-01-24 Thread taha siddiqi
On Sat, Jan 24, 2009 at 11:13 PM, igor.vaynb...@gmail.com wrote: There is a project that does this in wicketstuff. Hibernate-validator I believe. -igor On 1/24/09, taha siddiqi tawushaf...@gmail.com wrote: Hi everyone, The validation provided by wicket is sufficient but I feel that if

Re: Obtain Rendered HTML programmatically

2009-01-24 Thread Peter Thomas
On Sun, Jan 25, 2009 at 6:25 AM, ken.p ken.annihilat...@gmail.com wrote: Hi, I have a requirement which needed to obtain final rendered html as string. E.g: java: add(new Panel1(p1)); html: div wicket:id=p1/div I need to be able to captured rendered HTML for the above. Any example is

Re: Need for a annotation based validation

2009-01-24 Thread Igor Vaynberg
wicket is a web application framework. integrating with hibernate is outside its core functionality. -igor On Sat, Jan 24, 2009 at 5:59 PM, taha siddiqi tawushaf...@gmail.com wrote: On Sat, Jan 24, 2009 at 11:13 PM, igor.vaynb...@gmail.com wrote: There is a project that does this in

Re: Need for a annotation based validation

2009-01-24 Thread Peter Thomas
Yep. Also integrating Hibernate Validator can be done in just a few lines of code, see this for an example (line 87): http://code.google.com/p/perfbench/source/browse/trunk/perfbench/wicket-jpa/src/main/java/wicketjpa/wicket/EditBorder.java On Sun, Jan 25, 2009 at 9:45 AM, Igor Vaynberg

Re: Need for a annotation based validation

2009-01-24 Thread taha siddiqi
On Sun, Jan 25, 2009 at 10:00 AM, Peter Thomas ptrtho...@gmail.com wrote: Yep. Also integrating Hibernate Validator can be done in just a few lines of code, see this for an example (line 87):