@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
http://stackoverflow.com/questions/13447212/serialize-several-null-objects-with-gson
regards
--
View this message in
Edit: This is the correct link
http://stackoverflow.com/questions/13443361/load-resources-javascript-in-a-web-application-framework-wicket-correctly
http://stackoverflow.com/questions/13443361/load-resources-javascript-in-a-web-application-framework-wicket-correctly
--
View this message in
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
@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:
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
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 = ;
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
/form wicket:id=inputForm
p
label for=RecipientRecipient/label
input
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 IVisitorComponent,Void ;-)
public class
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)) {
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 {
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:
form
...
...
/form
--
View this message in
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
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:
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
14 matches
Mail list logo