Revision: 2002
Author: [email protected]
Date: Fri Aug 13 04:11:18 2010
Log: Inputmodel was fixed on the form before it was instantiated (fixes
Issue 315)
http://code.google.com/p/simal/source/detail?r=2002
Modified:
/trunk/uk.ac.osswatch.simal.web/src/main/java/uk/ac/osswatch/simal/wicket/foaf/AddPersonPanel.java
=======================================
---
/trunk/uk.ac.osswatch.simal.web/src/main/java/uk/ac/osswatch/simal/wicket/foaf/AddPersonPanel.java
Sun Mar 28 08:33:38 2010
+++
/trunk/uk.ac.osswatch.simal.web/src/main/java/uk/ac/osswatch/simal/wicket/foaf/AddPersonPanel.java
Fri Aug 13 04:11:18 2010
@@ -46,7 +46,7 @@
public static final int TESTER = 16;
public static final int TRANSLATOR = 32;
- private FoafFormInputModel inputModel = new FoafFormInputModel();
+ private FoafFormInputModel inputModel;
TextField<String> nameField;
TextField<String> emailField;
@@ -97,6 +97,9 @@
*/
@Override
public Object getInputModel() {
+ if (inputModel == null) {
+ inputModel = new FoafFormInputModel();
+ }
return inputModel;
}
--
You received this message because you are subscribed to the Google Groups "Simal
Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/simal-commits?hl=en.