Author: batosai
Date: 2008-10-01 17:18:45 +0000 (Wed, 01 Oct 2008)
New Revision: 22902
Modified:
trunk/plugins/WoT/ui/web/WebPageImpl.java
Log:
Fixed contentBoxes that were not displayed in HTML output.
Modified: trunk/plugins/WoT/ui/web/WebPageImpl.java
===================================================================
--- trunk/plugins/WoT/ui/web/WebPageImpl.java 2008-10-01 17:17:13 UTC (rev
22901)
+++ trunk/plugins/WoT/ui/web/WebPageImpl.java 2008-10-01 17:18:45 UTC (rev
22902)
@@ -55,21 +55,15 @@
*/
public String toHTML() {
- //FIXME Must have missed something stupid, the generated page
is empty.
- //Wil have a look at it later.
+ HTMLNode contentNode = pm.getContentNode(pageNode);
// We add the ErrorBox if it exists
- if(errorBox != null) {
- pageNode.addChild(errorBox);
- System.out.println("There is an errorBox");
- }
+ if(errorBox != null) contentNode.addChild(errorBox);
// We add every ContentBoxes
Iterator<HTMLNode> contentBox = contentBoxes.iterator();
- while(contentBox.hasNext())
pageNode.addChild(contentBox.next());
-
- System.out.println("There are " + contentBoxes.size() + "
contentBoxes");
-
+ while(contentBox.hasNext())
contentNode.addChild(contentBox.next());
+
HTMLNode test = pm.getInfobox("infobox-alert", "Test");
test.addChild("#", "Test");
pageNode.addChild(test);