On Tue, Oct 14, 2008 at 6:24 PM, Andreas Niemeyer < [EMAIL PROTECTED]> wrote:
> Hi, > > I'm having a problem with the t:schedule component layout within a portlet. > The grids, styles and javascripts are missed. > > It seems that liferay (5.1.1) kicks them out - or the resources have to be > loaded explicit. > > I'm using tomahawk 1.17 with myfaces 1.1.6 with faceslets. > > This version should work fine with facelets: > http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk > > > Extension filter setup is also done: > http://myfaces.apache.org/tomahawk/extensionsFilter.html > > Use NonBufferingAddResource to add inline the css and javascripts links configuring this param: <context-param> <param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name> <param-value>org.apache.myfaces.renderkit.html.util.NonBufferingAddResource</param-value> </context-param> Maybe it could help regards Leonardo Uribe > > > 1) Example page schedule.xml: > > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:h="http://java.sun.com/jsf/html" > xmlns:ui="http://java.sun.com/jsf/facelets" > xmlns:t="http://myfaces.apache.org/tomahawk" > xmlns:f="http://java.sun.com/jsf/core"> > > <t:stylesheet path="css/basic.css" /> > > <f:view> > > <h:outputText value="Title" /> > <h:form> > <h:commandButton action="back" styleClass="portlet-form-button" > value="Back" /> > <t:div> > <t:schedule value="#{schedule.model}" > id="mySchedule" > rendered="true" visibleEndHour="18" > visibleStartHour="8" > workingEndHour="20" workingStartHour="8" > readonly="false" > theme="default" tooltip="true"/> > > </t:div> > </h:form> > </f:view> > > </html> > > > > 2) Classpath > > > <classpath> > <classpathentry kind="src" path="WEB-INF/src"/> > <classpathentry kind="lib" path="WEB-INF/lib/util-bridges.jar"/> > <classpathentry kind="lib" path="WEB-INF/lib/util-java.jar"/> > <classpathentry kind="lib" path="WEB-INF/lib/util-taglib.jar"/> > <classpathentry kind="con" > path="org.eclipse.jdt.launching.JRE_CONTAINER"/> > <classpathentry kind="lib" > path="libs-server/portlet-bridge-api-1.0.0-alpha-2.jar"/> > <classpathentry kind="lib" > path="libs-server/portlet-bridge-impl-1.0.0-alpha-2.jar"/> > <classpathentry kind="lib" path="libs-server/portlet-api-1.0.jar"/> > <classpathentry kind="lib" > path="WEB-INF/lib/commons-beanutils-1.7.0.jar"/> > <classpathentry kind="lib" > path="WEB-INF/lib/commons-codec-1.3.jar"/> > <classpathentry kind="lib" > path="WEB-INF/lib/commons-collections-3.1.jar"/> > <classpathentry kind="lib" > path="WEB-INF/lib/commons-digester-1.8.jar"/> > <classpathentry kind="lib" path="WEB-INF/lib/commons-el-1.0.jar"/> > <classpathentry kind="lib" > path="WEB-INF/lib/commons-fileupload-1.0.jar"/> > <classpathentry kind="lib" path="WEB-INF/lib/commons-lang-2.1.jar"/> > <classpathentry kind="lib" > path="WEB-INF/lib/commons-logging-1.0.4.jar"/> > <classpathentry kind="lib" > path="WEB-INF/lib/commons-validator-1.3.1.jar"/> > <classpathentry kind="lib" path="WEB-INF/lib/el-ri.jar"/> > <classpathentry kind="lib" path="WEB-INF/lib/jsf-facelets.jar"/> > <classpathentry kind="lib" path="WEB-INF/lib/jstl-1.1.0.jar"/> > <classpathentry kind="lib" > path="WEB-INF/lib/myfaces-api-1.1.6-SNAPSHOT.jar"/> > <classpathentry kind="lib" > path="WEB-INF/lib/myfaces-impl-1.1.6-SNAPSHOT.jar"/> > <classpathentry kind="lib" path="WEB-INF/lib/oro-2.0.8.jar"/> > <classpathentry kind="lib" path="WEB-INF/lib/tomahawk-1.1.7.jar"/> > <classpathentry kind="output" path="WEB-INF/classes"/> > </classpath> > > > > > Many thanks! > > > Kind regards, > Andreas > >