Fixed demo text.
This commit is contained in:
parent
ae61a822df
commit
0625d36fda
2 changed files with 6 additions and 2 deletions
|
@ -85,7 +85,7 @@ public class Index_xhtml extends HttpServlet
|
||||||
StringList display = new StringList();
|
StringList display = new StringList();
|
||||||
display.append(StringEscapeUtils.escapeXml(htmlSource)).appendln("<br/>");
|
display.append(StringEscapeUtils.escapeXml(htmlSource)).appendln("<br/>");
|
||||||
display.append("+").appendln("<br/>");
|
display.append("+").appendln("<br/>");
|
||||||
display.append(StringEscapeUtils.escapeXml("page.set(\"pseudo\", \"superman\");")).appendln("<br/>");
|
display.append(StringEscapeUtils.escapeXml("page.setContents(\"pseudo\", \"Superman\");")).appendln("<br/>");
|
||||||
display.append("=>").appendln("<br/>");
|
display.append("=>").appendln("<br/>");
|
||||||
display.append(StringEscapeUtils.escapeXml(htmlTarget)).appendln("<br/>");
|
display.append(StringEscapeUtils.escapeXml(htmlTarget)).appendln("<br/>");
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@ public class Index_xhtml extends HttpServlet
|
||||||
StringList display = new StringList();
|
StringList display = new StringList();
|
||||||
display.append(StringEscapeUtils.escapeXml(htmlSource)).appendln("<br/>");
|
display.append(StringEscapeUtils.escapeXml(htmlSource)).appendln("<br/>");
|
||||||
display.append("+").appendln("<br/>");
|
display.append("+").appendln("<br/>");
|
||||||
display.append(StringEscapeUtils.escapeXml("page.set(\"pseudo\", \"spiderman\");")).appendln("<br/>");
|
display.append(StringEscapeUtils.escapeXml("page.setContent(\"pseudo\", \"spiderman\");")).appendln("<br/>");
|
||||||
display.append(StringEscapeUtils.escapeXml("page.appendAttribute(\"pseudo\", \"style\", \"foreground: red\");")).appendln("<br/>");
|
display.append(StringEscapeUtils.escapeXml("page.appendAttribute(\"pseudo\", \"style\", \"foreground: red\");")).appendln("<br/>");
|
||||||
display.append(StringEscapeUtils.escapeXml("page.appendAttribute(\"pseudo\", \"style\", \"background: blue\");")).appendln("<br/>");
|
display.append(StringEscapeUtils.escapeXml("page.appendAttribute(\"pseudo\", \"style\", \"background: blue\");")).appendln("<br/>");
|
||||||
display.append(StringEscapeUtils.escapeXml("page.setAttribute(\"pseudo\", \"class\", \"superhero\");")).appendln("<br/>");
|
display.append(StringEscapeUtils.escapeXml("page.setAttribute(\"pseudo\", \"class\", \"superhero\");")).appendln("<br/>");
|
||||||
|
|
|
@ -59,6 +59,10 @@
|
||||||
<td>DOM</td>
|
<td>DOM</td>
|
||||||
<td>new Page(document)</td>
|
<td>new Page(document)</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Page factory</td>
|
||||||
|
<td>PageFactory.instance().create("<div name='pseudo'>a pseudo</div>")</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue