コード例 #1
0
 @Override
 public void generate(ResponseWriter writer, PageBackingBean pageBackingBean)
     throws UnifyException {
   writer.write("{");
   String path = this.getRequestContextUtil().getCommandResponsePath();
   if (!StringUtils.isBlank(path)) {
     writer.writeJsonPathVariable("postPath", path);
   }
   writer.write("}");
 }
コード例 #2
0
 @Override
 public void writeStructureAndContent(ResponseWriter writer, UIComponent component)
     throws UnifyException {
   HiddenField hiddenField = (HiddenField) component;
   writer.write("<input type=\"hidden\"");
   this.writeAttributeMarkup(writer, hiddenField, false, false);
   String value = hiddenField.getStringValue();
   if (value != null) {
     writer.write(" value=\"");
     this.writeStringWithHtmlEscape(writer, value);
     writer.write("\"");
   }
   writer.write("/>");
 }