diff --git a/src/fr/devinsy/kiss4web/demo/website/xidyn/Index_xhtml.java b/src/fr/devinsy/kiss4web/demo/website/xidyn/Index_xhtml.java index c9fe0e8..6219daa 100644 --- a/src/fr/devinsy/kiss4web/demo/website/xidyn/Index_xhtml.java +++ b/src/fr/devinsy/kiss4web/demo/website/xidyn/Index_xhtml.java @@ -85,7 +85,7 @@ public class Index_xhtml extends HttpServlet StringList display = new StringList(); display.append(StringEscapeUtils.escapeXml(htmlSource)).appendln("
"); display.append("+").appendln("
"); - display.append(StringEscapeUtils.escapeXml("page.set(\"pseudo\", \"superman\");")).appendln("
"); + display.append(StringEscapeUtils.escapeXml("page.setContents(\"pseudo\", \"Superman\");")).appendln("
"); display.append("=>").appendln("
"); display.append(StringEscapeUtils.escapeXml(htmlTarget)).appendln("
"); @@ -116,7 +116,7 @@ public class Index_xhtml extends HttpServlet StringList display = new StringList(); display.append(StringEscapeUtils.escapeXml(htmlSource)).appendln("
"); display.append("+").appendln("
"); - display.append(StringEscapeUtils.escapeXml("page.set(\"pseudo\", \"spiderman\");")).appendln("
"); + display.append(StringEscapeUtils.escapeXml("page.setContent(\"pseudo\", \"spiderman\");")).appendln("
"); display.append(StringEscapeUtils.escapeXml("page.appendAttribute(\"pseudo\", \"style\", \"foreground: red\");")).appendln("
"); display.append(StringEscapeUtils.escapeXml("page.appendAttribute(\"pseudo\", \"style\", \"background: blue\");")).appendln("
"); display.append(StringEscapeUtils.escapeXml("page.setAttribute(\"pseudo\", \"class\", \"superhero\");")).appendln("
"); diff --git a/src/fr/devinsy/kiss4web/demo/website/xidyn/index.html b/src/fr/devinsy/kiss4web/demo/website/xidyn/index.html index 3d85fc3..e048706 100644 --- a/src/fr/devinsy/kiss4web/demo/website/xidyn/index.html +++ b/src/fr/devinsy/kiss4web/demo/website/xidyn/index.html @@ -59,6 +59,10 @@ DOM new Page(document) + + Page factory + PageFactory.instance().create("<div name='pseudo'>a pseudo</div>") +