Re: wicket:link changes behavior from 1.4.15 to 1.4.19 ?

2012-02-12 Thread smallufo
sorry for disturbance after adding the 2 lines in Application , it's solved. getResourceSettings().setParentFolderPlaceholder($up$); getResourceSettings().addResourceFolder(getServletContext().getContextPath ()); 2012/2/12 smallufo small...@gmail.com wicket:linkimg

Re: AjaxTabbedPanel - Enable / Disable Individual Tab.

2012-02-12 Thread Francois Meillet
you can override the newLink method in the TabbedPanel François Le 12 févr. 2012 à 01:53, ej595 a écrit : Does anyone know how to enable or disable a Tab from a tabbedpanel. I dont mean visible or invisible. I want to be able to show all tabs, but disable the user from being able to click

Architectural question

2012-02-12 Thread Bas Gooren
Hi All, I have an architectural question about wicket, DDD and the service layer. Let's say we have a simple JPA entity (Customer), and a few simple CRUDL screens. For database access, we have a DAO layer (CustomerDao) which delegates to an EntityManager, and provides some convenience methods

Re: Architectural question

2012-02-12 Thread Martin Makundi
Why don't you just detach the entity/data objects with deep or shallow clone or similar? Minimal duplication... ** Martin 2012/2/12 Bas Gooren b...@iswd.nl: Hi All, I have an architectural question about wicket, DDD and the service layer. Let's say we have a simple JPA entity (Customer),

Re: Architectural question

2012-02-12 Thread James Carman
I just use open session in view. You can still retrieve stuff outside a transaction. I explicitly call update to persist. On Feb 12, 2012 7:54 AM, Bas Gooren b...@iswd.nl wrote: Hi All, I have an architectural question about wicket, DDD and the service layer. Let's say we have a simple JPA

Re: Architectural question

2012-02-12 Thread Bas Gooren
Ok, so you mean detaching entities when returning them to the view layer (wicket)? How do you propose updating the underlying entities? Send the detached entities back to the service layer and copying their changes to attached entities? Or ...? Op 12-2-2012 14:22, schreef Martin Makundi:

Re: Architectural question

2012-02-12 Thread Martin Makundi
Yeah.. what we do is we detach entities when loading from service layer to view layer and when user is ready to commit we persist them on service layer overriding service layer state (standard locking techniques here). ** Martin 2012/2/12 Bas Gooren b...@iswd.nl: Ok, so you mean detaching

Re: Architectural question

2012-02-12 Thread Bas Gooren
Martin, Ok, and do you perform all such copying manually or do you use something automated for that? (Or simply a JPA merge?) Op 12-2-2012 16:22, schreef Martin Makundi: Yeah.. what we do is we detach entities when loading from service layer to view layer and when user is ready to commit we

Re: Architectural question

2012-02-12 Thread Bas Gooren
We already use OSIV, thanks to guice-persist. This means the read-side of things is rather trivial, and that the service and dao layers do need to be aware of the exact data the view needs (since lazy loading is possible). With regard to the write-side of things: we do what you do (call

Re: Architectural question

2012-02-12 Thread Martin Makundi
Ok, and do you perform all such copying manually or do you use something automated for that? (Or simply a JPA merge?) Yes, merge for simplicity, and if we have a custom caching mechanism we simply replace the node object in a hashmap. ** Martin Op 12-2-2012 16:22, schreef Martin Makundi:

Re: AjaxTabbedPanel - Enable / Disable Individual Tab.

2012-02-12 Thread ej595
Thank You. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxTabbedPanel-Enable-Disable-Individual-Tab-tp4380339p4381444.html Sent from the Users forum mailing list archive at Nabble.com. - To

Re: Architectural question

2012-02-12 Thread James Carman
Well setters/getters somewhat go against ddd. We just have to figure out what works for us. It's all about finding what gets the job done most effectively. On Feb 12, 2012 10:45 AM, Bas Gooren b...@iswd.nl wrote: We already use OSIV, thanks to guice-persist. This means the read-side of things

component.isAuto - was: Wicket 1.5: The component(s) below failed to render (revisited)

2012-02-12 Thread Adrian Wiesmann
Hello list Some while ago I posted a few messages to this list where I asked for help in finding a problem with Wicket 1.5. I was not able to find the bug back then. Now I downloaded the bleeding edge version 1.5.4 and tried again. And now I am a step further. I have that rendering engine

Link URLs with JSessionID truncated

2012-02-12 Thread Ian Marshall
Hello All, A user's first visit to my app's home page results in the URL http://[My domain]/main/PageHome;jsessionid=v_qqIGVQlKBbkNSOcHkAQw?0 Each org.apache.wicket.markup.html.link.Link on my home page has the URL of the form http://[My

RE: Architectural question

2012-02-12 Thread Chris Colman
It sounds like you have a lot of layers/scaffolding (=high maintenance) in your design. The exposed domain model pattern was created to avoid all those extra layers (especially DAOs and DTOs) in recognition of the fact that for most applications they *feel* redundant and *seem* like code

RE: Link URLs with JSessionID truncated

2012-02-12 Thread Chris Colman
If a user has disabled session cookies your Wicket app will still work fine using URL rewriting. If you stop the URL rewriting and give a message to people who have disabled cookies you will prevent a certain % of visitors from using your web app. I'm not sure what that % of people is but in the

StringResources in forms based on 'variation'

2012-02-12 Thread Chris Colman
I configure StringResources for forms using the FormClass.properties file and this works well. Different strings can be provided for lang, locale etc., Is it possible to provide a different string based on the markup 'variation' Yours sincerely, Chris Colman Pagebloom Team Leader, Step

Re: Architectural question

2012-02-12 Thread Igor Vaynberg
we use a pretty thin architecture described here: https://www.42lines.net/2011/11/29/leveraging-conversations/ https://www.42lines.net/2011/12/01/simplifying-non-trivial-user-workflows-with-conversations/ this allows us to expose our domain model to the UI but control when and where the updates

RE: Link URLs with JSessionID truncated

2012-02-12 Thread Ian Marshall
Hi Chris, I suppressed JSessionIDs in my links' URLs, not because I dislike them, but solely because I found that my links' URLs were not working because the .. strings were appearing. So, unless I can find a better way, I need to suppress the JSessionIDs and require session cookie enablement.

RE: Link URLs with JSessionID truncated

2012-02-12 Thread Chris Colman
Not found errors are bad. What version of Wicket are you using? -Original Message- From: Ian Marshall [mailto:ianmarshall...@gmail.com] Sent: Monday, 13 February 2012 8:41 AM To: users@wicket.apache.org Subject: RE: Link URLs with JSessionID truncated Hi Chris, I suppressed JSessionIDs

RE: StringResources in forms based on 'variation'

2012-02-12 Thread Chris Colman
What I am trying to do is tailor the validator messages based on the variation. My scenario: Some clients want log in forms with Username/Password others want some with Email/Password and still others want some with Member Number/Security Code. I handle all the different types of log in

RE: Wicket 'hook' point for page render timing

2012-02-12 Thread Chris Colman
I've added the RenderPerformanceListener but where is the output? Where can we retrieve the performance stats? -Original Message- From: robert.mcguinness [mailto:robert.mcguinness@gmail.com] Sent: Sunday, 12 February 2012 2:22 AM To: users@wicket.apache.org Subject: Re: Wicket 'hook'

Re: StringResources in forms based on 'variation'

2012-02-12 Thread Andrea Del Bene
Hi, you can consider to use Style element used by Wicket for skinning application. For more information read this https://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html What I am trying to do is tailor the validator messages based on the variation. My scenario: Some

Re: Architectural question

2012-02-12 Thread Bas Gooren
Chris, Thanks for your response. It sounds like the exposed domain model is what we are using right now. Our current DAOs are what are called Repositories in EDM. I am investigating moving away from it because of the clear lack of layers, which is what brought me to consider DTO's etc. I'm

RE: Wicket 'hook' point for page render timing

2012-02-12 Thread robmcguinness
log level must be set to debug for org.apache.wicket.devutils.inspector.RenderPerformanceListener. ex. output: 19:14:10.563 DEBUG o.a.w.d.i.RenderPerformanceListener - rendered 'HomePage page' for 207ms i'm not sure if this is what you needed but maybe you can use as a guide. -- View this

RE: Wicket 'hook' point for page render timing

2012-02-12 Thread Chris Colman
-Original Message- From: robmcguinness [mailto:robert.mcguinness@gmail.com] Sent: Monday, 13 February 2012 11:17 AM log level must be set to debug for org.apache.wicket.devutils.inspector.RenderPerformanceListener. ex. output: 19:14:10.563 DEBUG o.a.w.d.i.RenderPerformanceListener -