click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r931173 - /click/trunk/click/examples/src/org/apache/click/examples/page/wizard/WizardPage.java
Date Tue, 06 Apr 2010 15:00:09 GMT
Author: sabob
Date: Tue Apr  6 15:00:08 2010
New Revision: 931173

URL: http://svn.apache.org/viewvc?rev=931173&view=rev
Log:
removed htmlimports

Modified:
    click/trunk/click/examples/src/org/apache/click/examples/page/wizard/WizardPage.java

Modified: click/trunk/click/examples/src/org/apache/click/examples/page/wizard/WizardPage.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/page/wizard/WizardPage.java?rev=931173&r1=931172&r2=931173&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/page/wizard/WizardPage.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/page/wizard/WizardPage.java Tue
Apr  6 15:00:08 2010
@@ -21,6 +21,7 @@ package org.apache.click.examples.page.w
 import java.util.ArrayList;
 import java.util.Iterator;
 import java.util.List;
+import org.apache.click.element.CssImport;
 import org.apache.click.examples.page.BorderPage;
 import org.apache.click.util.HtmlStringBuffer;
 
@@ -147,9 +148,12 @@ public class WizardPage extends BorderPa
      * @return the page stylesheet
      */
     @Override
-    public String getHtmlImports() {
-        String contextPath = getContext().getRequest().getContextPath();
-        return "<link type=\"text/css\" rel=\"stylesheet\" href=\"" + contextPath + "/wizard/wizard.css\"/>";
+    public List getHeadElements() {
+        if (headElements == null) {
+            headElements = super.getHeadElements();
+            headElements.add(new CssImport("/wizard/wizard.css"));
+        }
+        return headElements;
     }
 
     // Private Methods --------------------------------------------------------



Mime
View raw message