Help with load-balancing and fail-over in a Hibernate, Spring, Wicket 3-tier architecture

2008-11-19 Thread Kent Larsson
Hi, I have this 3-tier architecture in mind: 1. Persistence: Hibernate with MySQL 2. Business: Spring 2.5 3. Presentation: Wicket I want my application to have high availability and scalability, so I want to cluster it with load-balancing, fail-over and synchronization. I wonder if you know of

Re: Help with load-balancing and fail-over in a Hibernate, Spring, Wicket 3-tier architecture

2008-11-19 Thread Kent Larsson
instance Thank you! I'll read up on tomcat with sticky sessions. What do you mean with take care of hibernate caching on each tomcat instance? To have them synchronized as well? On 11/19/08, Kent Larsson [EMAIL PROTECTED] wrote: Hi, I have this 3-tier architecture in mind: 1. Persistence

Beginners questions: How integrate Spring+Wicket? Quickstart? Why is that directory hierarchy recommended?

2008-12-17 Thread Kent Larsson
? And if so, which one? 2. Why have main and test under the project root, and not src (alias main) , resources, webapp and test? (It's only four directories.) 3. How do you recommend that I integrate Spring and Wicket? MANY thanks for reading! Best regards, Kent Larsson

How to serve different layouts for different screen resolutions and devices?

2009-01-16 Thread Kent Larsson
Hi, My subject sums up my question. I'm about to create a new web system and it will be accessed by clients using normal web browsers and mobile devices. The normal browsers have varying screen resolutions with the lowest still at 800x600. When it comes to the mobile devices and their web

Problem using @SpringBean with Wicket 1.3.5

2009-01-19 Thread Kent Larsson
Hi, I've tried to solve this for several hours now, without success, but then again I'm not that experienced. :-) I have an application with Spring beans which I want to use from Wicket, using @SpringBean. To see that Spring works fine I've tried using my bean without the @SpringBean annotation.

Re: Problem using @SpringBean with Wicket 1.3.5

2009-01-20 Thread Kent Larsson
=net.opentranslation.webcollab.service.UserRegistrationServiceImpl / And then I used it using @SpringBean(name=getmebymyname) UserRegistrationService userRegistrationService; And it worked well. Thank you for trying to help me though! HTH, Phillip On Jan 19, 2009, at 3:30 PM, Kent Larsson wrote: Hi, I've tried to solve

Re: Problem using @SpringBean with Wicket 1.3.5

2009-01-20 Thread Kent Larsson
container is using because it is blocking wicket's reflection calls. -igor On Mon, Jan 19, 2009 at 12:30 PM, Kent Larsson kent.lars...@gmail.comhttps://mail.google.com/mail?view=cmtf=0to=kent.lars...@gmail.com wrote: Hi, I've tried to solve this for several hours now, without success

Logging from Wicket alone and together with Spring and Hibernate + my own code

2009-01-20 Thread Kent Larsson
Hi, I have some questions about logging, more specifically about setting it up and making sure it works. The project I'm doing will use Wicket, Spring and Hibernate. I know that Wicket and Hibernate uses Simple Logging Facade for Java (SL4J) and that Spring is using the logging component from

Re: example application for spring wicket hibernate

2009-01-22 Thread Kent Larsson
Hi Yann, I will check out the phonebook, but another example is very welcome and if you feel like showing it to me as well then that would be great news. In case you do drop me a mail. :-) I'm planning to use Wicket + Spring (via annotations) + Hibernate (via annotations) and I have the Wicket +

What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-02 Thread Kent Larsson
Hi, If I have some HTML with Wicket attributes in it: html head titleNew User Registration/title /head body strongEven Newer User Registration Form/strong br/br/ span wicket:id=messagemessage will be here/span /body /html I get Undefined attribute

Re: What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-02 Thread Kent Larsson
On Tue, Feb 3, 2009 at 4:55 AM, Timo Rantalaiho timo.rantala...@ri.fiwrote: Nowadays there's also http://wicket.apache.org/dtds.data/wicket-xhtml1.3-strict.dtd http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd Best wishes, Timo But those two are exactly the same (same size

Three tier layered application using Wicket + Spring + Hibernate. How would you handle transactions?

2009-02-10 Thread Kent Larsson
Hi, I'm thinking about using the **Open Session In View (OSIV)** filter or interceptor that comes with Spring, as it seems like a convenient way for me as a developer. If that's what you recommend, do you recommend using a filter or an interceptor and why? I'm also wondering how it will mix with

Security in a Spring Wicket layered application

2009-03-08 Thread Kent Larsson
Hi, I know there has been some discussion on this. But I've had a hard time deciding how this project should use security anyway. The application in question is layered into three layers for presentation, services and persistence using Wicket, Spring and Hibernate. What we need: -

Re: Security in a Spring Wicket layered application

2009-03-09 Thread Kent Larsson
stored afterwards. Authentication itself can be implemented from Wicket in a custom way (e.g. a username/password form). On success you just store the authenticated user in the authentication store. Regards,   Erik. Kent Larsson wrote: Hi, I know there has been some discussion

Re: Security in a Spring Wicket layered application

2009-03-09 Thread Kent Larsson
Hm, I had some problems. Are there any examples out there for this? On Mon, Mar 9, 2009 at 9:43 AM, Kent Larsson kent.lars...@gmail.com wrote: Hi, Great answer! :-) I'll try to do that today. Best regards, Kent On Sun, Mar 8, 2009 at 8:38 PM, Erik van Oosten e.vanoos...@grons.nl wrote

Re: Security in a Spring Wicket layered application

2009-03-10 Thread Kent Larsson
, 2009 at 7:16 PM, Ryan McKinley ryan...@gmail.com wrote: I have not used it (yet), but check: http://code.google.com/p/wicket-jsecurity/ On Mar 9, 2009, at 1:46 PM, Kent Larsson wrote: Hm, I had some problems. Are there any examples out there for this? On Mon, Mar 9, 2009 at 9:43 AM, Kent

Wicket training in Sweden?

2009-03-12 Thread Kent Larsson
Hi, I'm simply wondering if there exists any company providing Wicket training in Sweden? And if there is, what you know about them? Best regards, Kent - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: Wicket training in Sweden?

2009-03-12 Thread Kent Larsson
/dev/ContactUsBody/ send us a note  if you'd like more information. Regards - Cemal http://jWeekend.com jWeekend Kent Larsson-3 wrote: Hi, I'm simply wondering if there exists any company providing Wicket training in Sweden? And if there is, what you know about them? Best regards, Kent

Re: Security in a Spring Wicket layered application

2009-03-12 Thread Kent Larsson
Hi Kai, I'm setting up auth roles, it's going pretty well. Altough I've had some problems when I followed http://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html to the letter, it might be a typo in there or else it was me doing something wrong. Is there a home page for the

Re: Security in a Spring Wicket layered application

2009-03-12 Thread Kent Larsson
/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/common/session/SpringSecuritySession.java On Tue, Mar 10, 2009 at 1:42 PM, Kent Larsson kent.lars...@gmail.com wrote: Integrating with jSecurity instead is really a last resort. If it is at all possible I wouldn't

Re: Security in a Spring Wicket layered application

2009-03-12 Thread Kent Larsson
, Although it is early, I am using the wicket-jsecurity integration in one of my (big) projects.  It is working pretty well.  Feel free to ask questions - I'm happy to help along the way. Cheers, Les (JSecurity founder) On Tue, Mar 10, 2009 at 1:42 PM, Kent Larsson kent.lars...@gmail.comwrote

Totally new to Wicket and planning on using Wicket 1.4

2008-07-12 Thread Kent Larsson
Hi, I've seen some examples of using Wicket and I must say it looks nice, clean and simple. I do have some questions I was hoping someone could answer. I just thought I'd ask about which is the preferred way of learning Wicket 1.4? Personally I've always been a fan of getting a good book,

Let us list the frameworks and tools we use together with Wicket!

2008-08-01 Thread Kent Larsson
Hi, I thought it could be interesting if we (I'll contribute a little later, as I'm just learning Wicket) could list the frameworks and tools we always use with Wicket. Maybe Hibernate, Eclipse, NetBeans, jQuery, YUI, JUnit, HtmlUnit, Spring, UMLGraph will pop up. In other terms, any and all

Design question. LAZY loading of fields in JPA/Hibernate enteties and Wicket. How do you handle it? Any way of not using DAO's?

2008-09-25 Thread Kent Larsson
Hi, == Background == In a previous non-wicket project I was involved in we had a three (or four, depending on how you see it) tier archiecture: 1. Persistence using JPA (using Hibernate as persistence provider and have it working against a MySQL database) 2. Business logic inside manager

Re: Design question. LAZY loading of fields in JPA/Hibernate enteties and Wicket. How do you handle it? Any way of not using DAO's?

2008-09-25 Thread Kent Larsson
at the OpenEntityManagerInView filter. On Thu, Sep 25, 2008 at 6:35 AM, Kent Larsson [EMAIL PROTECTED]https://mail.google.com/mail?view=cmtf=0[EMAIL PROTECTED] wrote: Hi, == Background == In a previous non-wicket project I was involved in we had a three (or four, depending on how

Is localizing parts of the service layer (which is using Spring 2.5) a good idea?

2009-04-07 Thread Kent Larsson
Hi, This is more of a general design question and I would really appreciate some input. Do you localize the service layer as well as the Wicket presentation layer? I have a specific use case. When a user register a new account the service layer sends an e-mail message with an activation link.

Re: Is localizing parts of the service layer (which is using Spring 2.5) a good idea?

2009-04-08 Thread Kent Larsson
, Apr 7, 2009 at 3:01 AM, Kent Larsson kent.lars...@gmail.com wrote: Hi, This is more of a general design question and I would really appreciate some input. Do you localize the service layer as well as the Wicket presentation layer? I have a specific use case. When a user register a new

Markup inheritance with child pages setting title in the form 'BasePage.title + - + ChildPage.title'

2009-04-16 Thread Kent Larsson
Hi, I use markup inheritance and this example was quite informative http://wicket.apache.org/examplemarkupinheritance.html . One thing I find missing is how to set the title from the child pages? Ideally I would like page titles like: ApplicationName - Cool part of the application

Re: Markup inheritance with child pages setting title in the form 'BasePage.title + - + ChildPage.title'

2009-04-16 Thread Kent Larsson
Thank you both! :-) I'll do it that way and use resources. / Kent On Thu, Apr 16, 2009 at 12:50 PM, Cserep Janos cser...@szeretgom.hu wrote: CoolPage.PageTitle=ApplicationName - Cool Page Title into your application properties file. From an SEO point of view this approach is more

Spring Security's method security and Wicket

2009-05-06 Thread Kent Larsson
Hi, I'm having some trouble getting method security to work as expected using Spring Security together with Wicket, I have a thread about it over at the SpringSource forum: http://forum.springsource.org/showthread.php?t=71397 . Basically I have this situation: 1. Unauthenticated user submits a

Re: Spring Security's method security and Wicket

2009-05-06 Thread Kent Larsson
with Spring MVC if they have this built into their architecture. But it sounds strange so I understand why you ask. Best regards, Kent On Wed, May 6, 2009 at 7:46 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: On Wed, May 6, 2009 at 10:25 AM, Kent Larsson kent.lars...@gmail.com wrote: 2

Re: Spring Security's method security and Wicket

2009-05-08 Thread Kent Larsson
and Spring Security, this might be a bit over my head. It would be really nice to get it working though. Thank you for reading! Have a nice weekend! Best regards, Kent On Wed, May 6, 2009 at 10:22 PM, Kent Larsson kent.lars...@gmail.com wrote: I don't know. I guess something like: 1. Record

System test for a Wicket based web application. Do you do it? How?

2009-05-12 Thread Kent Larsson
Hi, For my last project (not using Wicket) I used HtmlUnit to simulate a web browser and for each use case go through all the important branches. It worked well and the system test caught a lot of errors as it exercised the whole system quite thoroughly. I had a common base class for my JUnit

Re: Spring Security's method security and Wicket

2009-05-14 Thread Kent Larsson
not catching the authentication exception in the login and returning false?  I can't remember. :( On Fri, May 8, 2009 at 5:51 AM, Kent Larsson kent.lars...@gmail.com wrote: Hello, Reference for this post: http://forum.springsource.org/showthread.php?p=239559#post239559 (the related Spring Security

Re: Spring Security's method security and Wicket

2009-05-15 Thread Kent Larsson
The catching AuthenticationException and returning false is something I'm not familiar with. I don't think I've mentioned it? Please refresh my memory, maybe I have mentioned it. ;-) It would be in the authenticate method of mine.  If the exception is thrown, you'd need to return false. Ah,

Re: Spring Security's method security and Wicket

2009-05-18 Thread Kent Larsson
Carman jcar...@carmanconsulting.com wrote: On Fri, May 15, 2009 at 8:24 AM, Kent Larsson kent.lars...@gmail.com wrote: Sounds like a nicer solution! I'll look into doing something like that myself, being a Wicket newbie it might take me a while though. Are there any examples of doing anything

Re: Getting a encoded URL for sending a BookmarkablePageLink through e-mail

2009-05-20 Thread Kent Larsson
(ForgotPasswordRequest.class,pars); (not a static...call it as urlFor(...) from your page or component) -Clint On Wed, May 20, 2009 at 10:54 AM, Kent Larsson kent.lars...@gmail.com wrote: Hi, I have created a BookmarkablePageLink and I would like to grab a properly escaped URL-string which

Re: Getting a encoded URL for sending a BookmarkablePageLink through e-mail

2009-05-20 Thread Kent Larsson
think that would be a better solution. Is it possible? Best regards, Kent On Wed, May 20, 2009 at 6:33 PM, Kent Larsson kent.lars...@gmail.com wrote: Thank you, it worked! PageParameters pars = new PageParameters(); pars.add(confirmationCode, some conf?codestring); System.out.println(URL

Re: Getting a encoded URL for sending a BookmarkablePageLink through e-mail

2009-05-20 Thread Kent Larsson
transactions in my current architecture. On Wed, May 20, 2009 at 12:10 PM, Kent Larsson kent.lars...@gmail.com wrote: I have a follow up question, a harder one. I want to send the mail from a Spring Bean using the Spring Framework. The Spring Beans mark my transaction boundary. When I call

Re: Getting a encoded URL for sending a BookmarkablePageLink through e-mail

2009-05-20 Thread Kent Larsson
On Wed, May 20, 2009 at 10:10 AM, Kent Larsson kent.lars...@gmail.com wrote: I have a follow up question, a harder one. I want to send the mail from a Spring Bean using the Spring Framework. The Spring Beans mark my transaction boundary. When I call a method in a Spring bean a transaction

Getting a encoded URL for sending a BookmarkablePageLink through e-mail

2009-05-20 Thread Kent Larsson
Hi, I have created a BookmarkablePageLink and I would like to grab a properly escaped URL-string which I can then send through e-mail. For my first try noHtmlSensitiveChars fullyEscaped contained the empty () string: PageParameters pars = new PageParameters(); pars.add(confirmationCode,

Bookmarkable page with a form. The URL switches from the mounted one into an unfriendly one.

2009-05-21 Thread Kent Larsson
Hi, I have a simple page, with a form where the user may fill in their e-mail and press the submit button. I mount it in the init method of the class which implements WebApplication using: mountBookmarkablePage(forgotpassword, ForgotPassword.class); It works and I'm able to access the page by

Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-28 Thread Kent Larsson
Hi, Our current architecture: --- We're currently using a 3-tier architecture (presentation, service/business and persistence) consisting of Wicket (+ a little Spring), Spring and Spring + Hibernate: Wicket: Does presentation, we're not inside a transaction / Hibernate session so all used

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-28 Thread Kent Larsson
. On Thu, May 28, 2009 at 9:49 AM, Kent Larsson kent.lars...@gmail.comwrote: You mean @SpringConfigured(something) like in the linked article? On Thu, May 28, 2009 at 3:41 PM, James Carman jcar...@carmanconsulting.com wrote: In your entities, you don't use @SpringBean.  You use

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-28 Thread Kent Larsson
) and not DTOs (data transfer objects)?  DTOs are typically not singletons.  Nor are they set up via spring. On Thu, May 28, 2009 at 11:20 AM, Kent Larsson kent.lars...@gmail.com wrote: Do you have a separation between domain objects and DTO's? It sounds like you don't (and there is nothing wrong

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-28 Thread Kent Larsson
AM, Kent Larsson kent.lars...@gmail.com wrote: Hi, Our current architecture: --- We're currently using a 3-tier architecture (presentation, service/business and persistence) consisting of Wicket (+ a little Spring), Spring and Spring + Hibernate: Wicket: Does presentation, we're

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-29 Thread Kent Larsson
I try not to design my domain models in such a way Could you elaborate on this a bit, please? On Fri, May 29, 2009 at 6:19 AM, James Carman jcar...@carmanconsulting.com wrote: On Thu, May 28, 2009 at 11:36 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: this is why i built

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-29 Thread Kent Larsson
Ah, interesting. Thanks for elaborating! On Fri, May 29, 2009 at 12:31 PM, James Carman jcar...@carmanconsulting.com wrote: On Fri, May 29, 2009 at 4:04 AM, Kent Larsson kent.lars...@gmail.com wrote: I try not to design my domain models in such a way Could you elaborate on this a bit, please

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-06-10 Thread Kent Larsson
Carman jcar...@carmanconsulting.com wrote: On Fri, May 29, 2009 at 4:04 AM, Kent Larsson kent.lars...@gmail.com wrote: I try not to design my domain models in such a way Could you elaborate on this a bit, please? I kind of cheat a bit.  When there needs to be something done that involves

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-06-10 Thread Kent Larsson
Carman jcar...@carmanconsulting.com wrote: On Fri, May 29, 2009 at 4:04 AM, Kent Larsson kent.lars...@gmail.com wrote: I try not to design my domain models in such a way Could you elaborate on this a bit, please? I kind of cheat a bit.  When there needs to be something done that involves

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-06-10 Thread Kent Larsson
On Wed, Jun 10, 2009 at 3:19 PM, Kent Larsson kent.lars...@gmail.comwrote: I skipped the AJDT plugin and am doing LTW (Load-Time Weaving) now, it works. In my case I added: (It might be of use to someone)  -javaagent:/home/kent/.ivy2/cache/org.springframework/spring-agent/jars/spring-agent-2.5.6

Creating a blog engine with templates using Wicket

2009-08-07 Thread Kent Larsson
Hi, I've used Wordpress for some blogging, but I've never really felt comfortable with it. I'd like to create something myself, for my own personal use to begin with (but there is no reason for me not to make it free (as in speech). Some thoughts: - Plugins could be created using Wicket - I