Skip to content

Commit 62e3645

Browse files
committed
Refactor to move FrontEnd classes to gxweb module from gxclassR module.
This allow run non FrontEnd object without Frontend support classes. Issue:102619
1 parent 7e8b9b5 commit 62e3645

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

gxweb/src/main/java/com/genexus/internet/HttpAjaxContext.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -763,20 +763,6 @@ public void SendServerCommands()
763763
}
764764
}
765765

766-
public void ajax_req_read_hidden_sdt(String jsonStr, Object SdtObj)
767-
{
768-
try
769-
{
770-
IJsonFormattable jsonObj;
771-
if (jsonStr.startsWith("["))
772-
jsonObj = new JSONArray(jsonStr);
773-
else
774-
jsonObj = new JSONObject(jsonStr);
775-
((IGxJSONAble)SdtObj).FromJSONObject(jsonObj);
776-
}
777-
catch(JSONException exc) {}
778-
}
779-
780766
public void ajax_rsp_assign_prop_as_hidden(String Control, String Property, String Value)
781767
{
782768
if (!this.isAjaxRequest())

java/src/main/java/com/genexus/internet/HttpContext.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
import java.util.Date;
55
import java.util.HashMap;
66
import java.util.Hashtable;
7+
8+
import json.org.json.IJsonFormattable;
9+
import json.org.json.JSONArray;
10+
import json.org.json.JSONException;
711
import json.org.json.JSONObject;
812
import org.apache.logging.log4j.Logger;
913

@@ -935,4 +939,18 @@ public boolean willRedirect()
935939
{
936940
return wjLoc != null && wjLoc.trim().length() != 0;
937941
}
942+
943+
public void readJsonSdtValue(String jsonStr, Object SdtObj)
944+
{
945+
try
946+
{
947+
IJsonFormattable jsonObj;
948+
if (jsonStr.startsWith("["))
949+
jsonObj = new JSONArray(jsonStr);
950+
else
951+
jsonObj = new JSONObject(jsonStr);
952+
((IGxJSONAble)SdtObj).FromJSONObject(jsonObj);
953+
}
954+
catch(JSONException exc) {}
955+
}
938956
}

0 commit comments

Comments
 (0)