Re: Different root between upload folder and ContextRelativeResource

2012-12-28 Thread Martin Grigorov
Hi, ContextRelativeResource looks for the resource in the web application context, i.e. in the folders next to WEB-INF. By using new File()/Folder() with relative path you create file relative to the current working directory. In Eclipse this is the folder that contains 'src/' folder. When

Issue while adding Custom Validator to ListMultipleChoice component

2012-12-28 Thread wicket_new_user
Hi, is it possible to add Custom Validator (implenting IValidatorT) for ListMultipleChoice component? when i'm trying to add validator to the the componnent using the below code, final ListMultipleChoiceAttribute selectedFields = new ListMultipleChoiceAttribute(selected, new

Re: Issue while adding Custom Validator to ListMultipleChoice component

2012-12-28 Thread Sven Meier
The generic type of your validator should be: public class SelectedAttributesValidator implements IValidatorCollectionAttribute Sven On 12/28/2012 09:41 AM, wicket_new_user wrote: Hi, is it possible to add Custom Validator (implenting IValidatorT) for ListMultipleChoice component? when

Re: Wicket integration with Spring

2012-12-28 Thread Per Newgro
With the 2nd approach you couple the application (in the role as service mother) to all your calling components. Coupling is a bad idea. It's hard to test in separation and almost always you end in a hell of small single methods. But if you inject your beans into the target component you can

Re: CSS load order in 6.x

2012-12-28 Thread vp143
Many thanks for your help. This is what I have done: public class YUICalendarCssResourceReference extends CssResourceReference { private static final long serialVersionUID = 1L; public YUICalendarCssResourceReference() {

Re: CSS load order in 6.x

2012-12-28 Thread Martin Grigorov
Hi, I also think that 4) should not be loaded at all. I guess that YUI itself loads it. YUI supports its own dependency management. Check what is rendered by Wicket in the HTML. On Fri, Dec 28, 2012 at 1:20 PM, vp143 vishal.po...@cipriati.co.uk wrote: Many thanks for your help. This is

Re: CSS load order in 6.x

2012-12-28 Thread vp143
The HTML source appears correctly to me: link rel=stylesheet type=text/css href=../../../../wicket/resource/web.pages.BasePage/::/::/::/css/app-ver-1356687988000.css / link rel=stylesheet type=text/css

Re: CSS load order in 6.x

2012-12-28 Thread Martin Grigorov
Read about YUILoader : http://developer.yahoo.com/yui/yuiloader/ Some .js file uses it to load 4) dynamically. On Fri, Dec 28, 2012 at 4:12 PM, vp143 vishal.po...@cipriati.co.uk wrote: The HTML source appears correctly to me: link rel=stylesheet type=text/css

Re: Create/Edit domain object data

2012-12-28 Thread Bas Gooren
Nick, I'm not sure if anyone responded, so let me share how we deal with this. Since a JPA entity can reference other (persistent entities), and usually does, we've tried to never, ever, serialize JPA entities. The only time where it's needed is when you have an entity creation workflow

Re: Issue while adding Custom Validator to ListMultipleChoice component

2012-12-28 Thread Sven Meier
Hi, This is getting empty when it is loaded with default values. You mean you have values in your model but they don't show up on a re-submit? Please take a look at ListMultipleChoicePage in wicket-examples. If I add a validator there, everything works as expected: