Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/HTMLSnippet/widget/HTMLSnippet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Binary file modified test/Test.mpr
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -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<String>
{
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
}
47 changes: 47 additions & 0 deletions test/javasource/appcloudservices/actions/LogOutUser.java
Original file line number Diff line number Diff line change
@@ -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<Boolean>
{
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
}
44 changes: 44 additions & 0 deletions test/javasource/appcloudservices/actions/StartSignOnServlet.java
Original file line number Diff line number Diff line change
@@ -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<Boolean>
{
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
}
Binary file modified test/widgets/HTMLSnippet.mpk
Binary file not shown.