Best practice for dynamically storing state?

2010-04-05 Thread Early Morning
Hi All, I have an application with a widget sidebar, with all the normal capabilities (add/remove widgets for user, minimize, maximize, sort widgets, etc.). I just wanted to ask what the best practice for storing the state of these widgets to a DB is. The current implementation involves using an

Re: What about an onInitialRender method ?

2010-04-05 Thread Maarten Bosteels
Small fixes in the javadoc: 1) Add this point in time shouldn't that be At this point in time ? 2) all parents must be have been added to their parents = I would remove the be Maarten On Fri, Apr 2, 2010 at 11:09 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: from Component.java in 1.5

Re: Wicket and JEE6

2010-04-05 Thread Erik Brakkee
On Wed, Mar 31, 2010 at 5:05 AM, Iskandar Salim locrianm...@gmail.comwrote: Olivier Bourgeois-2 wrote: ... everything is simple unmanaged POJOs except for your classes extending WebPage which are managed Not to be picky but a minor correction :) everything is simple unmanaged

Best Practices for Using JavaScript With Wicket

2010-04-05 Thread Nishant Neeraj
Hi, I am working on an application that's very rich in UI. Most of the input validation, unless it requires back-end support, are done at UI level. There are drag-and-drop, multiple file uploader (not the one in wicket extensions), and customized warning message (much like Stack-overflow's top

Re: Wicket form data isn't received

2010-04-05 Thread Bryan Montgomery
Hello, I left this for a week - but had another look. It's weird - if I don't mess with the flow (ie don;t try to do NTLM authentication) it works fine. However, I somehow seem to be messing up the process flow with the NTLM authentication. Unfortunately I'm not currently running through an ide so

Re: Any mature work on integrating Hibernate Validator with Wicket?

2010-04-05 Thread David Chang
Hi folks, I feel a bit puzzled about not getting any response on this topic. I have to say that I am new in Wicket. If this a bad or wrong question or if this is something not worthy to explore, please feel free to let me know. Thanks for any input! --- On Sun, 4/4/10, David Chang

Re: Any mature work on integrating Hibernate Validator with Wicket?

2010-04-05 Thread Uwe Schäfer
David Chang schrieb: Any comment or pointers regarding relatively mature work in this regard? we did something that does not need spring, though it need some polishing and is not yet released. i´ll contact you later this week. cu uwe

Re: Any mature work on integrating Hibernate Validator with Wicket?

2010-04-05 Thread Igor Vaynberg
you have answered your own question twice, why does anyone else need to reply? -igor On Mon, Apr 5, 2010 at 8:01 AM, David Chang david_q_zh...@yahoo.com wrote: Hi folks, I feel a bit puzzled about not getting any response on this topic. I have to say that I am new in Wicket. If this a bad or

Re: Any mature work on integrating Hibernate Validator with Wicket?

2010-04-05 Thread David Chang
thanks for chiming in. sorry if i was not clear in prevoius posts. i would like to hear comments whether it is worthy to explore or any benefits. i also would like to know whether there is more mature work since i only found experimental work. i am unable to find anything aobut it on

Re: Any mature work on integrating Hibernate Validator with Wicket?

2010-04-05 Thread Martin Makundi
Do you have any user stories on the topic? It would be useful to evaluate how interesting the use case is. Me myself I cannot immagine anything useful could come out of hibernate validators, only something very trivial. Could be wrong, thoug. ** Martin 2010/4/5 David Chang

Re: Any mature work on integrating Hibernate Validator with Wicket?

2010-04-05 Thread Igor Vaynberg
so if somebody took the code from the blogs and put them on a project in wicketstuff that would make it more mature? there is not much to integrating the validators with wicket so each project probably built out their own way to do it that suits that project. -igor On Mon, Apr 5, 2010 at 8:27

saving datetextfield values on ajax refresh

2010-04-05 Thread wic...@geofflancaster.com
here's the scenario, i have a datetextfield that when the page gets updated via ajax, the datatextfield values get reset and are no longer what they changed to. i've tried adding an onchange behavior to the datefield to update the modelobject when the field is changed but have had no luck.

Re: saving datetextfield values on ajax refresh

2010-04-05 Thread Martin Makundi
What initiates ajax-updating the page? What do you update? Few solutions: a) use listview.setreuseitems b) use a formcomponentreusemanager c) use an AjaxFormSubmittingChangeListenerBehavior ** Martin 2010/4/5 wic...@geofflancaster.com wic...@geofflancaster.com: here's the scenario, i have a

Re: Any mature work on integrating Hibernate Validator with Wicket?

2010-04-05 Thread David Chang
Using Hibernate Validator may bring a few good things: 1. On the data end, it helps to improve data, performance, etc. Also the annotation you write on domain objects get translated into database creation and objects save/update. You can find more on in this area. Obviously, this has nothing

Re: Any mature work on integrating Hibernate Validator with Wicket?

2010-04-05 Thread David Chang
so if somebody took the code from the blogs and put them on a project in wicketstuff that would make it more mature? I dont think so. wicketstuff is just one place to look at. But I dont think people would put their blogs there. Yes, they can. --- On Mon, 4/5/10, Igor Vaynberg

Wicket GAE performance

2010-04-05 Thread Ian Marshall
Hello Tony, Anton Veretennikov wrote: This is a transaction of every session? I believe that there is some pooling of at least one of PersistenceManager[s] (PM[s]) and Transaction[s] (TX[s]). Nevertheless, the code extract I provided will yield a PM and TX unique to the thread (and

Re: Any mature work on integrating Hibernate Validator with Wicket?

2010-04-05 Thread Martin Makundi
Hi! It's quite easy to add trivial min/max/required validators using (any) helper method. Maybe bindgen project would be closest to this.. it's already working with annotations, it could perhaps parse also annotations of property target objects. ** Martin 2010/4/5 David Chang

Re: saving datetextfield values on ajax refresh

2010-04-05 Thread wic...@geofflancaster.com
along with the datetextfield i have a dropdownchoice menu. the page updates based on the item selected in the dropdown which updates a list menu. Original Message: - From: Martin Makundi martin.maku...@koodaripalvelut.com Date: Mon, 5 Apr 2010 18:40:15 +0300 To:

Re: saving datetextfield values on ajax refresh

2010-04-05 Thread Martin Makundi
In that case you need this: http://mail-archives.apache.org/mod_mbox/wicket-users/201001.mbox/%3c303141551001032147u239d89d7w26bf26b814296...@mail.gmail.com%3e 2010/4/5 wic...@geofflancaster.com wic...@geofflancaster.com: along with the datetextfield i have a dropdownchoice menu. the page

Re: saving datetextfield values on ajax refresh

2010-04-05 Thread wic...@geofflancaster.com
My issue is not with a dropdownchoice itself, the dropdown functionality works fine. its when i repaint the panel, the textfield loses its changed values and reverts to the default model. Original Message: - From: Martin Makundi martin.maku...@koodaripalvelut.com Date: Mon, 5 Apr

Re: saving datetextfield values on ajax refresh

2010-04-05 Thread Martin Makundi
Yes, that will fix it. ** Martin 2010/4/5 wic...@geofflancaster.com wic...@geofflancaster.com: My issue is not with a dropdownchoice itself, the dropdown functionality works fine. its when i repaint the panel, the textfield loses its changed values and reverts to the default model. Original

LoadableDetachable Models

2010-04-05 Thread Jeffrey Schneller
I am having issues with LDM, Hibernate lazy loaded lists, and ajax. I create a CompoundPropertyModel of a LDM and set that as the default model for the page. I then pass the model to the form and to a custom component in the form. The custom component is a list editor. Basically a ListView

Re: Any mature work on integrating Hibernate Validator with Wicket?

2010-04-05 Thread Ben Tilford
So far this is what I've got. Doesn't do anything with groups or the more advanced stuff but this may be all it takes. public class BeanComponentValidatorT extends AbstractValidatorT { public BeanComponentValidator() { super(); } @Override protected void

Re: Wicket and JEE6

2010-04-05 Thread Erik Brakkee
I wonder what the use would be for the request, session, and conversation scopes in wicket since these are already managed expiicitly in wicket. At least, I wouldn't see a great need for such scopemanagement by the container. It would be nice however if CDI could be used to inject EJBs,

Re: Wicket and JEE6

2010-04-05 Thread James Carman
Did you not look at what I put together? I've already got all the injection stuff (and conversations) working and I've got example applications illustrating it. On Mon, Apr 5, 2010 at 3:47 PM, Erik Brakkee erik.brak...@gmail.com wrote: I wonder what the use would be for the request, session,

Re: Wicket and JEE6

2010-04-05 Thread Erik Brakkee
On Mon, Apr 5, 2010 at 9:54 PM, James Carman jcar...@carmanconsulting.comwrote: Did you not look at what I put together? I've already got all the injection stuff (and conversations) working and I've got example applications illustrating it. I tried to look at it but couldn't access the

Re: Wicket and JEE6

2010-04-05 Thread James Carman
It's apparently down again. That's what I get for hosting my server at my in-law's house. Cheaper isn't necessarily better. If you want, I can email you the code. On Mon, Apr 5, 2010 at 4:32 PM, Erik Brakkee erik.brak...@gmail.com wrote: On Mon, Apr 5, 2010 at 9:54 PM, James Carman

Re: Any mature work on integrating Hibernate Validator with Wicket?

2010-04-05 Thread Carlos Vara
Hi David, I'm the author of the first article that you linked to: http://carinae.net/tag/hibernate-validator/ http://carinae.net/2009/12/integration-of-jsr-303-bean-validation-standard-and-wicket-1-4/Basically, you hardly need more than the two provided validators (for property validation on

Re: Any mature work on integrating Hibernate Validator with Wicket?

2010-04-05 Thread David Chang
Ben, Thanks for sharing your code, which, IMHO, definately helps not only me but also others. I believe that using Hibernate Validator really kills more than one bird in one stone. All the best, David P.S. folks, please feel free to comment how you feel about the Bean Validation/Hiberate

Re: Any mature work on integrating Hibernate Validator with Wicket?

2010-04-05 Thread David Chang
Carlos, Thanks for chiming in and for good work and sharing! so picking the code from my or others blog, The code may be simple, but the idea/benefits I see may be great. Wouldn't be better to make it available on wicketstuff in good shape instead of me or others googling it out? :) Just my 2

Re: Wicket and JEE6

2010-04-05 Thread Erik Brakkee
On Mon, Apr 5, 2010 at 10:37 PM, James Carman jcar...@carmanconsulting.comwrote: It's apparently down again. That's what I get for hosting my server at my in-law's house. Cheaper isn't necessarily better. If you want, I can email you the code. You can mail the code to me. If it's not too

Re: Wicket and JEE6

2010-04-05 Thread James Carman
On Mon, Apr 5, 2010 at 5:27 PM, Erik Brakkee erik.brak...@gmail.com wrote: I think in general, the code should become part of a wicket-cdi project just like wicket-spring and wicket-guice already are. I think the wicket community is probably a better place to maintain this then the weld

RE: LoadableDetachable Models

2010-04-05 Thread Russell Morrisey
Jeffrey, The problem is that if you use an LDM, the list is loaded from persistent storage, and any non-persisted changes from the previous request are lost. If you don't use an LDM, though, you will have stale objects hanging around from the previous Hibernate session (as you mentioned).

Re: Best Practices for Using JavaScript With Wicket

2010-04-05 Thread Jeremy Thomerson
I am finding it very cumbersome to integrate JavaScript/JS-library. Can someone point to (or probably write a blog-post on :-) the best practices of integrating JS/JS-library with Wicket. Wicket is pretty flexible in that you can integrate your JS a dozen different ways. jQuery is

Re: LoadableDetachable Models

2010-04-05 Thread James Carman
You can use what we call a shadow model or a proxy model. https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/wicketopia/src/main/java/org/wicketopia/model/proxy/ProxyModelManager.java This approach will work for you. Basically, you use the ProxyModelManager to wrap all of your real

RE: LoadableDetachable Models

2010-04-05 Thread Russell Morrisey
This approach stores a hard reference to the object. It seems prone to causing LazyInitializationExceptions when used with Hibernate. You are storing a reference to a persistent object (in this case, the regular Model object of the ProxyModel), so if you close your session at the end of the

Re: LoadableDetachable Models

2010-04-05 Thread James Carman
It doesn't hold onto the persistent object. Here's an example usage: IModelPerson personModel = ...; // Some LDM here! ProxyModelManager mgr = new ProxyModelManager(); add(new TextFieldString(firstName, mgr.proxy(new PropertyModel(personModel, firstName; Then, later on in the onSubmit()