Exemplo n.º 1
0
 private void addFlowId(String flowID, TagNode formNode) {
   TagNode flowIdNode = new TagNode("input");
   flowIdNode.setAttribute("name", Constants.FLOW_ID_FIELD_NAME);
   flowIdNode.setAttribute("type", "hidden");
   flowIdNode.setAttribute("value", flowID + "");
   formNode.insertChild(0, flowIdNode);
 }
Exemplo n.º 2
0
 private void addDebugBar(TagNode formHtml) {
   TagNode body = formHtml.findElementByName("body", false);
   int size = body.getChildren().size();
   body.insertChild(size, debugBarNode);
 }