Re: Image Upload Using TinyMCE Within Wicket Framework

2010-04-05 Thread Michał Letyński
Thanks. I was thinking to commit it to tinymce wicketsuff-project as separate plugin. In that project there are already some plugins present. Andreas Petersson pisze: Looks very helpful on first sight. maybe it would make sense to release the used code in the form of a wicketstuff project, fo

Re: LoadableDetachable Models

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

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 requ

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

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 esp

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). Thin

Re: Wicket and JEE6

2010-04-05 Thread James Carman
On Mon, Apr 5, 2010 at 5:27 PM, Erik Brakkee 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 project. > This is because

Re: Wicket and JEE6

2010-04-05 Thread Erik Brakkee
On Mon, Apr 5, 2010 at 10:37 PM, James Carman wrote: > 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 much code, you can al

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

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 Va

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/ Basically, you hardly need more than the two provided validators (for property validation on fi

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 wrote: > On Mon, Apr 5, 2010 at 9:54 PM, James Carman > wrote: > >> Did you not look

Re: Wicket and JEE6

2010-04-05 Thread Erik Brakkee
On Mon, Apr 5, 2010 at 9:54 PM, James Carman wrote: > 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 subversion repo because of t

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 wrote: >> >> I wonder what the use would be for the request, session, and conversation >>

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: 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 BeanComponentValidator extends AbstractValidator { public BeanComponentValidator() { super(); } @Override protected void onValidate(IValid

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 w

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

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 2

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 : > along with the datetextfield i have a dropdownchoice menu. the page updates > based on the item se

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: users@wicket.apache

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 : > Using Hibernate

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 the

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 wrote: > Fr

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 to

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 : > here's the scenario, i have a datetextfield that when the

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

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

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 : > > thanks for chim

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 wickets

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 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 wrong question or if

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

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

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 inf

Re: Wicket and JEE6

2010-04-05 Thread Erik Brakkee
On Wed, Mar 31, 2010 at 5:05 AM, Iskandar Salim wrote: > > > > 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 PO

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 wrote: > from Component.java in 1.5 (trunk) > >

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