--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to model...@googlegroups.com
To unsubscribe from this group, send email to
model-glue+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en
public void function generateUI(event){
local.renderedResult = UIRender();
arguments.event.setValue("RenderResults", local.renderedResult);
private string function UIRender(){
return beans.UIService.getUIRender();
}
In this service, I call the render function on the library. It outputs HTML directly within the function, so I capture that using saveContent, and return it.
Service: UIService.cfc
public string function getUIRender(){
saveContent variable="local.renderedContent"{
// this.getUI() returns the library that renders the HTML. The library is injected into UIService via ColdSpring.
writeOutput(this.getUI().render());
};
return local.renderedContent;
}
<cffunction name="render" output="yes">
Please sign in with your username, email address, or client number.
<div class="ui_diag" id="SignIn">
<form method="post" action="#createGetVariables(FormAction)#">
<legend>Sign In</legend>
<input name="username" type="text" id="username" value=""></input>
<input name="password" type="password" id="clear_pw" value=""></input>
<button type="submit" name="action" value="submit-signin"">Sign In</button>
</cffunction>