Re: How to load javascript file in apache wicket?

2012-11-19 Thread delta458
Edit: This is the correct link http://stackoverflow.com/questions/13443361/load-resources-javascript-in-a-web-application-framework-wicket-correctly -- View this message in

Re: How to load javascript file in apache wicket?

2012-11-19 Thread delta458
@Martin: yes, by the browser... I made a detailed description of the problem here: http://stackoverflow.com/questions/13447212/serialize-several-null-objects-with-gson regards -- View this message in con

Include one .js file into another .js file in wicket

2012-11-17 Thread delta458
Hello, I have 2 .js files. Invoice.js: content is something like: /var price var recipient .../ Rules.js: content is something like: /if(price > 100){ //do Something }/ What I need: I need to include the Invoice.js into Rules.js. What my application does: I fill in a form and with compound

Re: Relative Path and Resource loading in wicket

2012-11-16 Thread delta458
@Ernest I just need to write some variables to the .js file like var price; var user; @MartinGrigorov so what should I do to make this work? How can I set my resource to the classpath? and what should I call to make it work? -- View this message in context: http://apache-wicket.1842946.n4.nab

Relative Path and Resource loading in wicket

2012-11-15 Thread delta458
Hello, Im sitting now 6 hours non-stop on this problem and cant get it work. I want a simple thing. I have a Invoice.js file in my resource folder. I want to get this file and write something to it: so I did: /URL url = getClass().getResource("Invoice.js"); File file = new File(

Re: Handle feedback-Messages with a custom validation framework

2012-11-04 Thread delta458
I already got it working... with the following code: /... //Textfields or Form Components GO HERE... @Override public void onValidateModelObjects() { ValidationProcess vp = new ValidationProcess(); vp.validate("Rules.js", r); msg = "";

Handle feedback-Messages with a custom validation framework

2012-11-03 Thread delta458
Hi all, I am using my own validation, but the view of the form (e.g. if a component is invalid) should be highlighted or customized within wicket... So e.g. I have my Wicket Form / Recipient Details /

Re: highlight invalid fields with custom Validation Framework?

2012-10-16 Thread delta458
Hi Martin, thanks so much for the replies... almost done, some little questions still there.. I got it working, could you verify that its right what I made? :) 1) *//Had Error: Wrong number of type arguments, required 2 - It works when I do IVisitor ;-) public class ShinyFormVisitor implements I

Re: highlight invalid fields with custom Validation Framework?

2012-10-15 Thread delta458
Alright, I have something like this now: Problems/Errors are *bold* * //Here is a problem with the class: it says: ShinyFormVisitor is not abstract and does not override abstract method component(Object,IVisit) in IVisitor* public class *ShinyFormVisitor* implements IVisitor, Serializable { Se

Re: highlight invalid fields with custom Validation Framework?

2012-10-15 Thread delta458
I used the ShinyFormVisitor principle as described in the pdf: and I get following errors(in bold): public class ShinyFormVisitor implements IVisitor, Serializable { Set visited = new HashSet(); public Object component(Component c) { if (!visited.contains(c)) { visite

Re: CompoundPropertyModel not working... Warning message

2012-10-13 Thread delta458
Ah great. It works now. I enabled the validation and somehow it works now... I tested it x times before with no results.. well thanks.. :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CompoundPropertyModel-not-working-Warning-message-tp4652942p4652946.html Sent

Re: CompoundPropertyModel not working... Warning message

2012-10-13 Thread delta458
I disabled default form processing because I need to, for my project. I will use another validation framework for validating. Also when it is enabled, my object was not populated... I will try again though... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Compoun

CompoundPropertyModel not working... Warning message

2012-10-13 Thread delta458
Tried so much... still not working.. I get the following warning message: /WARNING: A ResourceReference wont be created for a resource with key [scope: template.BasePage; name: wicket-logo.png; locale: null; style: null; variation: null] because it cannot be located./ Here is the Java File: And

Re: button submit

2012-10-13 Thread delta458
Oh the solution is validation. ONLY when you have a validated form (all inputs are inserted) then the submit button will be called. You can add a feedback panel, which will help you: in JAVA: form.add(new FeedbackPanel("feedback")); in HTML: ... ... -- View this message in context: htt