1
|
### Eclipse Workspace Patch 1.0
|
2
|
#P web_client_utils
|
3
|
Index: src/com/servoy/plugins/WebClientProvider.java
|
4
|
===================================================================
|
5
|
--- src/com/servoy/plugins/WebClientProvider.java (revision 54)
|
6
|
+++ src/com/servoy/plugins/WebClientProvider.java (working copy)
|
7
|
@@ -6,6 +6,7 @@
|
8
|
import java.util.Properties;
|
9
|
|
10
|
import org.apache.wicket.Component;
|
11
|
+import org.apache.wicket.MarkupContainer;
|
12
|
import org.apache.wicket.ResourceReference;
|
13
|
import org.apache.wicket.behavior.IBehavior;
|
14
|
import org.mozilla.javascript.Function;
|
15
|
@@ -13,9 +14,11 @@
|
16
|
import org.mozilla.javascript.NativeJavaObject;
|
17
|
import org.mozilla.javascript.Scriptable;
|
18
|
|
19
|
+import com.servoy.j2db.IForm;
|
20
|
import com.servoy.j2db.Messages;
|
21
|
import com.servoy.j2db.plugins.IClientPluginAccess;
|
22
|
import com.servoy.j2db.server.headlessclient.IWebClientPluginAccess;
|
23
|
+import com.servoy.j2db.ui.IFormUI;
|
24
|
import com.servoy.j2db.ui.IProviderStylePropertyChanges;
|
25
|
|
26
|
/**
|
27
|
@@ -351,6 +354,13 @@
|
28
|
if (element instanceof Component) {
|
29
|
return ((Component) element).getMarkupId();
|
30
|
}
|
31
|
+ else if(element instanceof IForm) {
|
32
|
+ IFormUI form = ((IForm)element).getFormUI();
|
33
|
+ if(form instanceof MarkupContainer) {
|
34
|
+ Component child = ((MarkupContainer)form).get("servoywebform");
|
35
|
+ return child.getMarkupId();
|
36
|
+ }
|
37
|
+ }
|
38
|
return null;
|
39
|
}
|
40
|
|