[jboss-dev-forums] [Design of JBoss jBPM] - Re: Web console changes - IMPORTANT

david.lloyd@jboss.com do-not-reply at jboss.com
Tue Jan 30 09:25:29 EST 2007


"tom.baeyens at jboss.com" wrote : Did you have a look at facelets composition, fragment, include and insert ?

Ah, yes that is correct.  The task form itself could include <ui:fragment> around the body in order to trim outside of the tags.  I thought you were talking about something in the facelets API.

So yes, a task form could look like this:

  | <jbpm:dataform 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">
  | 
  |   <f:facet name="header">
  |     <h:outputText value="#{taskName}"/>
  |   </f:facet>
  | 
  |   <!-- TASKFORM ROWS -->
  |   <jbpm:datacell>
  |     <f:facet name="header">
  |       <h:outputText value="Payment ID:"/>
  |     </f:facet>
  |     <h:inputText value="#{var['paymentId']}"/>
  |   </jbpm:datacell>
  |   <jbpm:datacell>
  |     <f:facet name="header">
  |       <h:outputText value="Actions:"/>
  |     </f:facet>
  |     <!-- TASKFORM BUTTONS -->
  |     <tf:saveButton value="Save"/>
  |     <tf:transitionButton value="Update Books"/>
  |   </jbpm:datacell>
  | 
  | </jbpm:dataform>
  | 

Or if this:


  | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
  | 
  | <!-- the DOCTYPE means we are required to use html for a root element -->
  | <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">
  | <ui:fragment>
  | 
  | <jbpm:dataform>
  |   <f:facet name="header">
  |     <h:outputText value="#{taskName}"/>
  |   </f:facet>
  | 
  |   <!-- TASKFORM ROWS -->
  |   <jbpm:datacell>
  |     <f:facet name="header">
  |       <h:outputText value="Payment ID:"/>
  |     </f:facet>
  |     <h:inputText value="#{var['paymentId']}"/>
  |   </jbpm:datacell>
  |   <jbpm:datacell>
  |     <f:facet name="header">
  |       <h:outputText value="Actions:"/>
  |     </f:facet>
  |     <!-- TASKFORM BUTTONS -->
  |     <tf:saveButton value="Save"/>
  |     <tf:transitionButton value="Update Books"/>
  |   </jbpm:datacell>
  | 
  | </jbpm:dataform>
  | </ui:fragment>
  | </html>
  | 


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008312#4008312

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008312



More information about the jboss-dev-forums mailing list