2 Replies Latest reply on Jul 13, 2007 10:14 PM by gao shan

    How to use TomaHawk with JBPM?

    gao shan Newbie

      I want use Tomahawk's compnents.
      My .xhtml is :

      <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:c="http://java.sun.com/jstl/core"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:tf="http://jbpm.org/jsf/tf"
       xmlns:jbpm="http://jbpm.org/jsf"
       xmlns:t="http://myfaces.apache.org/tomahawk">
      
       <ui:component>
      
       <jbpm:dataform>
      
       <f:facet name="header">
       <h:outputText value="#{taskName}"/>
       </f:facet>
      
       <!-- TASKFORM ROWS -->
       <jbpm:datacell>
       <f:facet name="header">
       <h:outputText value="date"/>
       </f:facet>
       <t:inputCalendar id="secondOne" monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader" popupButtonStyleClass="standard_bold"
       currentDayCellClass="currentDayCell" value="#{var['date']}" renderAsPopup="true"
       popupTodayString="Today"
       popupDateFormat="MM/dd/yyyy" popupWeekString="WK"
       helpText="MM/DD/YYYY"
       forceId="true"/>
       </jbpm:datacell>
      .............................

      But when i try to Examine ,i get a error as follow
      com.sun.facelets.FaceletException: Error Parsing /2/task.xhtml: Error Traced[line: 28] Invalid byte 1 of 1-byte UTF-8 sequence.
       com.sun.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:234)
       com.sun.facelets.compiler.Compiler.compile(Compiler.java:105)
       com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:197)
       com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:144)
       com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:293)
       com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:240)
       org.jbpm.jsf.core.handler.IncludeProcessFileHandler.apply(IncludeProcessFileHandler.java:88)
       com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
       com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
       com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
       com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
       com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
       com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
       com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
       com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
       com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
       com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
       com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
       com.sun.facelets.tag.ui.DefineHandler.apply(DefineHandler.java:58)
       com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:128)
       com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:306)
       com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:279)
       com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)
       com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
       com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
       com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
       com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
       com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
       com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
       com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
       com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:143)
       com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
       com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
       com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
       com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
       com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
       com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
       com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:143)
       com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
       com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
       com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
       com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
       com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:503)
       com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:546)
       javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:178)
       com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
       com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
       com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
       javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)


      How can i do?

      THANKS a lot
      GS

        • 1. Re: How to use TomaHawk with JBPM?
          Ronald van Kuijk Master

          not related to tomahawk/jsf/jbpm at all... your .xhtml file contains an illegal formatted character

          • 2. Re: How to use TomaHawk with JBPM?
            gao shan Newbie

            Thank you very much for your help?
            In fact, yesterday I have solved the problem?Of course, new problems out?
            I currently available form components.However, components of images and javascript have something wrong.
            In HTML code I saw

            /jbpm/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/11302665/images/calendar.gif

            The URL object is not created.I have just started to learn the JSF, so I do not know why this happens
            Yes, this is not an JBPM's issue?I hope to get your suggestions.

            THANKS