diff --git a/src/HTMLSnippet/widget/HTMLSnippet.js b/src/HTMLSnippet/widget/HTMLSnippet.js index f1d84c5..3a6a744 100644 --- a/src/HTMLSnippet/widget/HTMLSnippet.js +++ b/src/HTMLSnippet/widget/HTMLSnippet.js @@ -37,8 +37,10 @@ require([ "width": "100%", "outline": 0 }); + domAttr.set(this.domNode, "style", this.style); // might override height and width - domConstruct.place(this.contents, this.domNode, "only"); + var n = domConstruct.create("div", { innerHTML: this.contents }); + domConstruct.place(n, this.domNode, "only"); } break; diff --git a/test/Test.mpr b/test/Test.mpr index 539b76b..12fc183 100644 Binary files a/test/Test.mpr and b/test/Test.mpr differ diff --git a/test/javasource/appcloudservices/actions/GenerateRandomPassword.java b/test/javasource/appcloudservices/actions/GenerateRandomPassword.java new file mode 100644 index 0000000..ffa2bba --- /dev/null +++ b/test/javasource/appcloudservices/actions/GenerateRandomPassword.java @@ -0,0 +1,47 @@ +// This file was generated by Mendix Business Modeler. +// +// WARNING: Only the following code will be retained when actions are regenerated: +// - the import list +// - the code between BEGIN USER CODE and END USER CODE +// - the code between BEGIN EXTRA CODE and END EXTRA CODE +// Other code you write will be lost the next time you deploy the project. +// Special characters, e.g., é, ö, à, etc. are supported in comments. + +package appcloudservices.actions; + +import com.mendix.systemwideinterfaces.core.IContext; +import com.mendix.webui.CustomJavaAction; + +/** + * Generate a valid strong random password for Mendix user + */ +public class GenerateRandomPassword extends CustomJavaAction +{ + private Long length; + + public GenerateRandomPassword(IContext context, Long length) + { + super(context); + this.length = length; + } + + @Override + public String executeAction() throws Exception + { + // BEGIN USER CODE + throw new com.mendix.systemwideinterfaces.MendixRuntimeException("Java action was not implemented"); + // END USER CODE + } + + /** + * Returns a string representation of this action + */ + @Override + public String toString() + { + return "GenerateRandomPassword"; + } + + // BEGIN EXTRA CODE + // END EXTRA CODE +} diff --git a/test/javasource/appcloudservices/actions/LogOutUser.java b/test/javasource/appcloudservices/actions/LogOutUser.java new file mode 100644 index 0000000..3731593 --- /dev/null +++ b/test/javasource/appcloudservices/actions/LogOutUser.java @@ -0,0 +1,47 @@ +// This file was generated by Mendix Business Modeler. +// +// WARNING: Only the following code will be retained when actions are regenerated: +// - the import list +// - the code between BEGIN USER CODE and END USER CODE +// - the code between BEGIN EXTRA CODE and END EXTRA CODE +// Other code you write will be lost the next time you deploy the project. +// Special characters, e.g., é, ö, à, etc. are supported in comments. + +package appcloudservices.actions; + +import com.mendix.systemwideinterfaces.core.IContext; +import com.mendix.webui.CustomJavaAction; + +/** + * + */ +public class LogOutUser extends CustomJavaAction +{ + private String openId; + + public LogOutUser(IContext context, String openId) + { + super(context); + this.openId = openId; + } + + @Override + public Boolean executeAction() throws Exception + { + // BEGIN USER CODE + throw new com.mendix.systemwideinterfaces.MendixRuntimeException("Java action was not implemented"); + // END USER CODE + } + + /** + * Returns a string representation of this action + */ + @Override + public String toString() + { + return "LogOutUser"; + } + + // BEGIN EXTRA CODE + // END EXTRA CODE +} diff --git a/test/javasource/appcloudservices/actions/StartSignOnServlet.java b/test/javasource/appcloudservices/actions/StartSignOnServlet.java new file mode 100644 index 0000000..0a2e22a --- /dev/null +++ b/test/javasource/appcloudservices/actions/StartSignOnServlet.java @@ -0,0 +1,44 @@ +// This file was generated by Mendix Business Modeler. +// +// WARNING: Only the following code will be retained when actions are regenerated: +// - the import list +// - the code between BEGIN USER CODE and END USER CODE +// - the code between BEGIN EXTRA CODE and END EXTRA CODE +// Other code you write will be lost the next time you deploy the project. +// Special characters, e.g., é, ö, à, etc. are supported in comments. + +package appcloudservices.actions; + +import com.mendix.systemwideinterfaces.core.IContext; +import com.mendix.webui.CustomJavaAction; + +/** + * + */ +public class StartSignOnServlet extends CustomJavaAction +{ + public StartSignOnServlet(IContext context) + { + super(context); + } + + @Override + public Boolean executeAction() throws Exception + { + // BEGIN USER CODE + throw new com.mendix.systemwideinterfaces.MendixRuntimeException("Java action was not implemented"); + // END USER CODE + } + + /** + * Returns a string representation of this action + */ + @Override + public String toString() + { + return "StartSignOnServlet"; + } + + // BEGIN EXTRA CODE + // END EXTRA CODE +} diff --git a/test/widgets/HTMLSnippet.mpk b/test/widgets/HTMLSnippet.mpk index 3bffcd5..4f85a03 100644 Binary files a/test/widgets/HTMLSnippet.mpk and b/test/widgets/HTMLSnippet.mpk differ