Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Subject: - Page flow and facelet templates

Subject: - Page flow and facelet templates

2007-10-01       - By chawax

 Back
Hi,

In a Seam application, I use JPDL to define pageflows. All pages of my
application use facelet templates. All transitions defined in my pageflow work
well, but I have a problem with links defined in my template, for example in a
header : they throw a "Illegal navigation" error. What I understood from this
message is that you can't go to a transition that is not modeled in JPDL. So I
guess I should model it in my JPDL. But when you model your page flow with JPDL
, you can't guess which links will exist in the template ! And just imagine you
add a new link in the template, does it mean you have to change all your
pageflows ? So is there a way to prevent Seam (or JBPM engine ; I don't know
exactly if it's a Seam or JBPM problem) from checking navigation for some links
?

A piece of my JPDL pageflow definition :

<page name="confirmationDemandeur" view-id="/confirmationDemandeur.xhtml">
 |           <redirect/>
 |         <transition name="suivant" to="choixMotif"></transition>
 |         <transition name="changerDemandeur" to="choixDemandeur"></transition>
 | </page>

The corresponding JSF page :

<html     xmlns:s="http://jboss.com/products/seam/taglib"
 |           xmlns:ui="http://java.sun.com/jsf/facelets"
 |           xmlns:f="http://java.sun.com/jsf/core"
 |           xmlns:h="http://java.sun.com/jsf/html"
 |           xmlns:rich="http://richfaces.org/rich"
 |      xmlns:a4j="http://richfaces.org/a4j">
 |
 | <ui:composition template="templates/template.xhtml">
 | <ui:define  name="body">
 |     <h:messages globalOnly="true" styleClass="message"/>
 |     <rich:panel >
 |     <f:facet name="header">Demande d'absence - Demandeur</f:facet>
 |     <p>Choisissez le demandeur</p>
 |     <h:form>
 |   <div>
 |     <h:outputText value="#{demandeAbsence.matriculeDemandeur}" />
 |     -
 |     <h:outputText value="#{demandeAbsence.infosDemandeur}" />
 |   </div>
 |   <div>
 |     <h:commandButton id="cmdAutreDemandeur" value="Autre demandeur" action=
"changerDemandeur" />
 |     <h:commandButton id="cmdContinuer" value="Continuer" action="suivant" />
 |   </div>
 |   </h:form>
 |     </rich:panel>
 | </ui:define>
 | </ui:composition>
 | </html>

The template.xhtml template :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 |                       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional
.dtd">
 | <html xmlns="http://www.w3.org/1999/xhtml"
 |       xmlns:ui="http://java.sun.com/jsf/facelets"
 |       xmlns:h="http://java.sun.com/jsf/html"
 |       xmlns:f="http://java.sun.com/jsf/core"
 |       xmlns:s="http://jboss.com/products/seam/taglib">
 | <head>    
 |     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8 (See http://UTF-8.ora-code.com)" />
 |     <link href="css/theme.css" rel="stylesheet" type="text/css" />
 | </head>
 | <body>
 |     <ui:include src="menu.xhtml" />
 |     <div class="body">
 |   <ui:insert name="body"/>
 |     </div>
 | </body>
 | </html>

The menu.xhtml :

<rich:toolBar
 |      xmlns="http://www.w3.org/1999/xhtml"
 |      xmlns:ui="http://java.sun.com/jsf/facelets"
 |      xmlns:h="http://java.sun.com/jsf/html"
 |      xmlns:f="http://java.sun.com/jsf/core"
 |      xmlns:s="http://jboss.com/products/seam/taglib"
 |      xmlns:rich="http://richfaces.ajax4jsf.org/rich">
 |      <rich:toolBarGroup>
 |          <s:link view="/home" value="Accueil" />
 |      </rich:toolBarGroup>  
 | </rich:toolBar>

The problem deals with the /home link.

I work with Seam 2.0.0.CR1 and JBPM 3.2.2
Any help appreciated ;)
Thanks in advance

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode
=reply&p=4090214
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user

©2008 junlu.com - Jax Systems, LLC, U.S.A.