Re: Wicket & No-Serializable objects Web application

2008-09-06 Thread Timo Rantalaiho
On Sat, 06 Sep 2008, FakeBoy wrote: > But now I am programming web application in which all these 3 layers will be > placed in the same Virtual machine. So now It seems to be pointless to > convert/copy business obejct to DTO and back. So I would like to use > business objects directly in client la

Re: Wicket & No-Serializable objects Web application

2008-09-06 Thread Johan Compagner
Use loadabledetacheable models for those objects, in the load method call the service method to get your bus. object back On 9/6/08, FakeBoy <[EMAIL PROTECTED]> wrote: > > Hello all, > I am thinking about the best design architecture for public web project. I > used to work with classic 3 tier arc

Wicket & No-Serializable objects Web application

2008-09-06 Thread FakeBoy
Hello all, I am thinking about the best design architecture for public web project. I used to work with classic 3 tier architecture: 1. tier - tier of business logic (business domain obejcts) 2. tier - middle service tier or API to business logic (EJB, Spring, =>convert business object to DTO - Da

Re: How to trigger Ajax event from client side javascript?

2008-09-06 Thread Martin Grigorov
Hi Timo, You are right! Looking closer at the code I see that it just makes some additional work for TextField and TextArea. Thanks! On Sat, 2008-09-06 at 21:37 +0300, Timo Rantalaiho wrote: > On Sat, 06 Sep 2008, Martin Grigorov wrote: > > OnChangeAjaxBehavior applies only to AbstractTextCompo

Re: How to trigger Ajax event from client side javascript?

2008-09-06 Thread Timo Rantalaiho
On Sat, 06 Sep 2008, Martin Grigorov wrote: > OnChangeAjaxBehavior applies only to AbstractTextComponent. Such > components are: TextField and TextArea. > HiddenField is not! Hmm... not exactly. OnChangeAjaxBehavior is an AjaxFormComponentUpdatingBehavior, bound to onchange Javascript event, wit

Re: PropertyModel/TextArea keeps reference to my detached object!

2008-09-06 Thread Matej Knopp
Hi, the problem is that you are doing this: new PropertyModel(getModelObject(),"latestVersion.title"))); This is not really model chaining, you bind PropertyModel with your Document diretly (not with the DocumentModel). You can try new PropertyModel(getModel(),"latestVersion.title"))); or just

Re: AjaxFormComponentUpdatingBehavior("onchange") does not work when added to a FormComponentPanel

2008-09-06 Thread Timo Rantalaiho
On Fri, 05 Sep 2008, Lutz Müller wrote: > I expected problems, mostly because the enclosing div (the panels container) > gets the onchange listener added. but to my surprise, an js event was > generated when i changed the selected value in one of the select elements, > and People who know more

PropertyModel/TextArea keeps reference to my detached object!

2008-09-06 Thread Wayne Pope
Ok, this has take me ages to figure out what is happening. I have a model that represents a hibernate entity (called Document). I have a form with a couple of fields which uses PropertyModel on the model and I set the model on this forms contructor.ie.: setModel(model); add(new TextField("title",

Re: Problem with multiple browser windows and locked page maps

2008-09-06 Thread Johan Compagner
You have to redirect onces. Just throw a resartresponseexception in the constructor and let a new page be created. It are all landing pages anyway so thats bookmarkable. But to make this thread even simpeler. Just dont have long running stuff in the request thread On 9/5/08, Jan Stette <[EMAIL PR

wicket-mooeditable release + ajax/javascript problem

2008-09-06 Thread francisco treacy
i have created a basic wicket component that integrates MooEditable, a lightweight textarea editor based on mootools. http://code.google.com/p/wicket-mooeditable/ usage (in your form): TextArea textarea = new TextArea("post"); textarea.setOutputMarkupId(true);

Re: [OT] Wicket in Action Jubilation

2008-09-06 Thread Rob Sonke
Mine arrived today, ordered at Manning and shipped to the Netherlands. I was already excited about the ebook but I can't wait to dive into this one! Great work guys! Jonathan Locke wrote: i just got mine today. it is really really nice!!! Martijn Dashorst wrote: Thanks for the report,

Re: How to trigger Ajax event from client side javascript?

2008-09-06 Thread Martin Grigorov
OnChangeAjaxBehavior applies only to AbstractTextComponent. Such components are: TextField and TextArea. HiddenField is not! You may try with a AjaxFormComponentUpdatingBehavior instead. changed.add(new AjaxFormComponentUpdatingBehavior("myevent") {...}); and in JavaScript: function change(){