Re: How to support multiple themes in Wicket application.

2010-06-19 Thread Duy Do
I would like to support different layout structure, not only CSS. I will follow your help and try to do it. Thank you for your help, I really appreciated it. Duy On Tue, Jun 15, 2010 at 5:40 AM, Russell Simpkins russellsimpk...@hotmail.com wrote: I would like to support multiple themes

Re: ListView + dynamic rows: always remove last row...

2010-06-19 Thread jOki
Even Im trying to implement the remove link as: - item.add(removeLink(removeKeyword, item)); and it doesnt work... always remove the last row... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ListView-dynamic-rows-always-remove-last-row-tp2260480p2261045.html

Getting started with Scala, Spring, Hibernate Wicket

2010-06-19 Thread Kent Tong
Hi, I've written a tutorial on this topic. You may check it out at http://www.dzone.com/links/getting_started_with_scala_spring_hibernate_wicket.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: Getting started with Scala, Spring, Hibernate Wicket

2010-06-19 Thread James Carman
Why is spring-orm version 3.0.1.RELEASE and not 3.0.3.RELEASE? Why not just uset a {spring.version} property in your POM so that it all stays in synch? On Sat, Jun 19, 2010 at 7:23 AM, Kent Tong k...@cpttm.org.mo wrote: Hi, I've written a tutorial on this topic. You may check it out at

Re: Getting started with Scala, Spring, Hibernate Wicket

2010-06-19 Thread James Carman
Why do you have page - service - dao? Why not just talk directly to the DAO for the getAll() method. This level of indirection just causes more code (and confusion) in your simple example. Is this just a best practice that you've devised? I've never really understood folks' aversion to talking

Re: ResourceStreamLocator and mvn resource:resource copying resources in the right directory

2010-06-19 Thread Erik van Oosten
Hi, https://issues.apache.org/jira/browse/WICKET-1974 describes a way to make all URLs absolute. Unfortunately the patch attached to the issue is still not applied so you'll have to build wicket yourself. Regards, Erik. Op 18-06-10 21:56, b...@actrix.gen.nz schreef: Hi Fernando,

Re: ListView + dynamic rows: always remove last row...

2010-06-19 Thread Erik van Oosten
Try to use the RemoveLink that is available as inner class of ListView. Regards, Erik. Op 18-06-10 18:29, jOki wrote: Hi!! Im trying to implement a dynamic Form, where you can add textfields and remove as you want. The add button works fine, but the remove button always remove the last

Re: ListView + dynamic rows: always remove last row...

2010-06-19 Thread James Carman
Just as a test, turn off the reuseItems property. See what happens. On Sat, Jun 19, 2010 at 5:04 AM, jOki joa...@gmail.com wrote: Even Im trying to implement the remove link as:  - item.add(removeLink(removeKeyword, item)); and it doesnt work... always remove the last row... -- View

Re: ListView + dynamic rows: always remove last row...

2010-06-19 Thread Jeremy Thomerson
Also, is the item you're trying to remove a null in the list? Or, is it a problem with equals/hashcode not being implemented correctly? I just fixed a bug in ListView this week with the remove link and move up/down links. It was relying on the equals of the model object of the item to find

Apache Roller - Blog integration

2010-06-19 Thread Arjun Dhar
Hi, not sure if I should post this in Apache Roller or Wicket; but is there any way to integrate Apache ROller and Wicket? ..are there any good blog engines with Wicket, or perhaps Some blog components within Wicket? Frankly I like ROllers feature set and I doubt wicket itself would have a full

Re: Suggestion about wicket's Wizard

2010-06-19 Thread David Chang
Did not hear any feedback. Just curious about whether I explained clearly or about what others may think about my suggestions. Regards. --- On Fri, 6/18/10, David Chang david_q_zh...@yahoo.com wrote: From: David Chang david_q_zh...@yahoo.com Subject: Suggestion about wicket's Wizard To:

Re: Getting started with Scala, Spring, Hibernate Wicket

2010-06-19 Thread Kent Tong
Hi James, Why is spring-orm version 3.0.1.RELEASE and not 3.0.3.RELEASE? Why not just uset a {spring.version} property in your POM so that it all stays in synch? Thanks for your good advice. I've updated the tutorial. Why do you have page - service - dao? Why not just talk directly to

Re: Getting started with Scala, Spring, Hibernate Wicket

2010-06-19 Thread James Carman
On Sat, Jun 19, 2010 at 10:10 AM, Kent Tong k...@cpttm.org.mo wrote: I agree that if the service is simply delegating to the DAO without adding anything, then it is probably be a good idea to merge them. However, this sample application is meant to demonstrate how to do it in a general case

Re: Getting started with Scala, Spring, Hibernate Wicket

2010-06-19 Thread Brian Topping
The best reason for me to keep a service/business layer talking to the DAO is to provide a clean transactional boundary. Then, all I have to do is add a Spring @Transactional annotation to the method and I'm fully atomic. If my view logic is calling a half dozen DAO methods to effect an

Re: Getting started with Scala, Spring, Hibernate Wicket

2010-06-19 Thread James Carman
On Sat, Jun 19, 2010 at 11:54 AM, Brian Topping brian.topp...@gmail.com wrote: The best reason for me to keep a service/business layer talking to the DAO is to provide a clean transactional boundary.  Then, all I have to do is add a Spring @Transactional annotation to the method and I'm fully

RE: Getting started with Scala, Spring, Hibernate Wicket

2010-06-19 Thread Tim L Casey
That’s ok. I never understood folks who don’t use layers. -Original Message- From: jcar...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com] On Behalf Of James Carman Sent: Saturday, June 19, 2010 5:07 AM To: users@wicket.apache.org Subject: Re: Getting started with Scala,

Re: Getting started with Scala, Spring, Hibernate Wicket

2010-06-19 Thread James Carman
On Sat, Jun 19, 2010 at 12:06 PM, Tim L Casey tca...@cataphora.com wrote: That’s ok.  I never understood folks who don’t use layers. I do use layers, when it makes sense. It's just a matter of taste, I guess. Some folks like to stick with their paradigm no matter what. I guess I've just

RE: Getting started with Scala, Spring, Hibernate Wicket

2010-06-19 Thread Tim L Casey
The reaction comes from years of watching UI centric people, who have a different design goal, use dao code poorly; and then watching dao type people use UI code poorly. I guess I view the layering as inevitable. Even if it is as simple as moving a tag, I am not sure I want anyone to have that

Re: Getting started with Scala, Spring, Hibernate Wicket

2010-06-19 Thread Brian Topping
On Jun 19, 2010, at 12:05 PM, James Carman wrote: On Sat, Jun 19, 2010 at 11:54 AM, Brian Topping brian.topp...@gmail.com wrote: The best reason for me to keep a service/business layer talking to the DAO is to provide a clean transactional boundary. Then, all I have to do is add a

Re: ListView + dynamic rows: always remove last row...

2010-06-19 Thread jOki
Hi, I tried with/without setReuseItems and the behaviour is the same. I think you can be right with equals/hashcode not being implemented correctly... I tried another time with a ListString with different values and its working... I tried as well to implement these methods (equals/hashcode)

Re: ListView + dynamic rows: always remove last row...

2010-06-19 Thread James Carman
What kind of objects are they? For entities, I use a uuid for the primary key and it's assigned when the object is created. That way you make equals/hashcode based on the uuid so that everything stays consistent On Jun 19, 2010 1:42 PM, jOki joa...@gmail.com wrote: Hi, I tried with/without

Re: ResourceStreamLocator and mvn resource:resource copying resources in the right directory

2010-06-19 Thread bht
Thanks Erik. Why are you using absolute URLS? Are you using absolute URLs to support editing in the web directory, with a directory structure the same as the java package structure, without breaking images? Then it would look like you have found a different solution for the same problem.

Re: ResourceStreamLocator and mvn resource:resource copying resources in the right directory

2010-06-19 Thread Erik van Oosten
Hi Bernard, We are using absolute URLs in one application (http://tipspot.com) that does not use the wicket ajax library, only javascript (based on jquery) written by the frontend developer. One of the things we do there is filling popups through ajax requests. As most of that information is

Re: Getting started with Scala, Spring, Hibernate Wicket

2010-06-19 Thread Erik van Oosten
The latest and greatest in the domain-driven world would be CQRS where the UI code needs two types of dependencies: the command bus and a repository. No more need of a 'services' layer. I adore CQRS because it provides a simple and clear view of what code to put where. Though the amount of