[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2854) Provide a way to nest pageflows
by Marcell Barbacena (JIRA)
Provide a way to nest pageflows
-------------------------------
Key: JBSEAM-2854
URL: http://jira.jboss.com/jira/browse/JBSEAM-2854
Project: JBoss Seam
Issue Type: Feature Request
Components: BPM, Core, JSF Controls
Affects Versions: 2.0.1.GA
Environment: All
Reporter: Marcell Barbacena
The current behaviour of pageflow subprocess tag is to include the pageflow definition in the the current flow, meaning that the parent pageflow is paused until the included pageflow ends.
However, sometimes it is desired that the parent pageflow do not "pause" and that the included gain its own flow.
The semantics of this nested pageflow is:
- when starts: provided a nested conversation from the parent pageflow.
- when ends: go back do the state before the nesting. If the parent pageflow is not associated in any way to the nested, its flow goes without interfering with the nested.
E.g.:
Parent directed graph: startpage1->page1; page1->page2; page1->nested; nested->page2; page2->page3; page3->endpage1;
Nested graph: startpage2->page5; page5->page6; page6->endpage2
Then we can have:
parent: startpage1->page1;
parent: page1->nested;
nested: startpage2->page5;
nested: page5->page6;
parent: page1->page2;
parent: page2>page3;
nested: page6->endpage2
nested:endpage2->page2;
parent: page3->endpage1;
nested: page2>page3;
nested: page3->endpage1;
See that the nested pageflow gains his own flow, i.e. independent of the parent.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 9 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3948) Excel attachment should be more user-friendly to create
by Zoltan Tiringer (JIRA)
Excel attachment should be more user-friendly to create
-------------------------------------------------------
Key: JBSEAM-3948
URL: https://jira.jboss.org/jira/browse/JBSEAM-3948
Project: Seam
Issue Type: Feature Request
Components: Excel
Affects Versions: 2.1.1.GA
Reporter: Zoltan Tiringer
Excel attachments should be easy to create with syntax similar to that of PDF. I would like a syntax like this to work:
<m:attachment fileName="people.xls"><ui:include src="/mail-xls.xhtml" /> </m:attachment>
Workaround exists (thanks, Daniel): Define exportKey in <e:workbook> and then look it up from context after rendering excel content, then render mail content:
FaceletsRenderer.instance().render("/mail-xls.xhtml");
DocumentData excelData = (DocumentData) Contexts.getEventContext().get("excelKey");
FaceletsRenderer.instance().render("/mailExcel.xhtml");
In mail definition the looked up DocumentData has to be referenced in the value property: <m:attachment fileName="people.xls" value="#{excelData}" contentType="application/vnd.ms-excel"/>
For testing purposes I attach a template that uses the Person class from the mail example:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:e="http://jboss.com/products/seam/excel"
xmlns:f="http://java.sun.com/jsf/core">
<e:workbook type="jxl">
<e:worksheet name="People" value="#{people}" var="p">
<e:header>
<f:facet name="left">
The date is #date# and the time is #time#
</f:facet>
</e:header>
<e:column style="xls-column-autosize: true">
<f:facet name="header">
<e:cell value="First name" style="xls-font: red bold 10 Verdana"/>
</f:facet>
<e:cell value="#{p.firstname}" />
</e:column>
<e:column style="xls-column-autosize: true">
<f:facet name="header">
<e:cell value="Last name" style="xls-font: red bold 10 Verdana"/>
</f:facet>
<e:cell value="#{p.lastname}" forceType="text"/>
</e:column>
<e:column style="xls-column-autosize: true">
<f:facet name="header">
<e:cell value="Email" style="xls-font: red bold 10 Verdana"/>
</f:facet>
<e:cell value="#{p.address}"/>
</e:column>
</e:worksheet>
</e:workbook>
</html>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 10 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3056) JPDL navigation and seam
by Florian Keusch (JIRA)
JPDL navigation and seam
------------------------
Key: JBSEAM-3056
URL: http://jira.jboss.com/jira/browse/JBSEAM-3056
Project: Seam
Issue Type: Task
Components: BPM
Reporter: Florian Keusch
hi
In our applications we have a navigation menu. When we use seam and some jpdl pageflows we have the following problem:
if we leave the pageflow with a <s:link propagation="end"> (e.g. clicking on the menu), then the pageflow conversation is ended but also an illegal navigation exception is thrown.
This issue was described on the seam framework: http://www.seamframework.org/Community/ProblemWithJPDLIllegalNavigation but I could not find it in this Jira.
It's not solved. In the code (PageFlow.java) there's a TODO where the illegal navigation ecxeption is thrown:
//now check that the restored view id matches what we expect
//from the pageflow node
//TODO: we need some way to disable this check, since users
// might want some adhoc nav in and out of a pageflow?
String viewId = Pages.getViewId(facesContext);
if ( !viewId.equals( getPage().getViewId() ) )
{
illegalNavigationError();
}
If we use <s:link propagation="none"> in our menu navigation then this will not cause a illegal navigation exception, but in the background the conversations are still there not ended.
fke
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 10 months