[jboss-user] [JBoss Seam] - Re: Configuring Facelets into Seam

Fleury do-not-reply at jboss.com
Thu May 10 11:14:39 EDT 2007


The TaskFormLibrary class :

package cns.genoscope.console;

import com.sun.facelets.tag.AbstractTagLibrary;
import com.sun.facelets.tag.TagLibrary;

import javax.faces.context.FacesContext;
import javax.faces.application.Application;

public final class TaskFormLibrary extends AbstractTagLibrary {
  public TaskFormLibrary() {
    super("http://jbpm.org/jsf/tf");
    
    final FacesContext facesContext = FacesContext.getCurrentInstance();
    final Application application = facesContext.getApplication();

    // Task form environment setup
    application.addComponent("org.jbpm.tf.TaskForm", "org.jbpm.webapp.tag.tf.ui.TaskForm");
    addComponent("taskForm", "org.jbpm.tf.TaskForm", null);

    // Task form include tag
    addTagHandler("includeTaskForm", IncludeTaskFormHandler.class);
    
  }
}


Thanks


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

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



More information about the jboss-user mailing list