[JBoss Seam] - SeamPDF and generating tables fails after some iterations
by baz
Hello,
we have to generate PDF pages for fieldplans. The application can be found here:
http://bazdm.bafz.de/aveqtest/
The app shows the fieldplans in html and it can generate pdf documents for it.
Software:
JBoss Seam 1.2.1GA with JBoss AS 4.0.5GA
Our problem: You can view the fieldplans (A table with variable Columns) correctly, but after some time you see only one row with one column. This problem stays until a restart of the jboss server.
Is this problem already known?
Here comes our facelets code (for the PDF pages):
<p:table headerRows="1" widthPercentage="100" horizontalAlignment="left">
| <f:facet name="defaultCell">
| <p:cell horizontalAlignment="center" grayFill="1.0" borderWidth="0" />
| </f:facet>
| <p:cell horizontalAlignment="left">
| <p:font size="18">
| <p:paragraph spacingAfter="10" >
| <p:text value="Fieldplan" />
| <p:text
| value="Â ExperimentId:Â #{experimentSiteList.selExperimentSite.experiment.experimentId}" />
| </p:paragraph>
| </p:font>
| </p:cell>
| <ui:repeat value="#{expFieldplanList.printPlotlist}" var="print">
| <ui:repeat value="#{expFieldplanList.printPlotlist}" var="print">
| <p:cell>
|
| <p:table columns="#{print.columnIndex}" headerRows="1"
| widthPercentage="95" horizontalAlignment="left"
| widths="#{print.columnwidth}" >
| <f:facet name="defaultCell">
| <p:cell horizontalAlignment="center" grayFill="1.0">
| </p:cell>
| </f:facet>
| <p:cell alignment="center">Lanes>
| Plots V</p:cell>
| <ui:repeat value="#{print.plothead}" var="head">
| <p:cell>
| <p:text value="#{head}" />
| </p:cell>
| </ui:repeat>
| <ui:repeat value="#{print.plotlist}" var="lanes">
|
| <p:cell>
| <p:text value="#{lanes.lineIndex}" />
| </p:cell>
| <ui:repeat value="#{lanes.line}" var="plot">
|
| <p:cell>
| <p:table columns="1">
| <f:facet name="defaultCell">
| <p:cell horizontalAlignment="center" grayFill="1.0"
| borderWidth="0" />
| </f:facet>
|
| <p:cell>
| <p:paragraph>
| <p:text value="#{plot.treatmentCode}" />
| </p:paragraph>
| </p:cell>
|
| <p:cell>
| <p:paragraph>
| <p:text
| value="#{plot.holderFaocode}Â #{plot.accessionNumber}" />
| </p:paragraph>
| </p:cell>
|
| <p:cell>
| <p:paragraph>
| <p:text value="#{plot.accessionName}" />
| </p:paragraph>
| </p:cell>
|
| <p:cell>
| <p:font size="8" style="italic">
|
| <p:paragraph>
| <p:text
| value="A. #{plot.species} #{plot.subspecies} #{plot.varietas}" />
|
| </p:paragraph>
|
| </p:font>
| </p:cell>
| </p:table>
| </p:cell>
| </ui:repeat>
| <p:cell colspan="#{expFieldplanList.columnIndex}"></p:cell>
| </ui:repeat>
|
| </p:table>
| </p:cell>
| </ui:repeat>
| </p:table>
|
|
I ommit the code for the html page sibnce this page is similar. It constructs the table out of HTML tags(tr,td,table).
We have no idea where this problem comes from.
Ciao,
Baz
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054001#4054001
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054001
18Â years, 11Â months
[JBoss jBPM] - Re: Combo Box in Form
by jorges38
I am sendig the coding that I have:
faces-config.xml
<!-- Catalog-->
<managed-bean>
<managed-bean-name>product</managed-bean-name>
<managed-bean-class>org.jbpm.webapp.bean.Product</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>product</property-name>
</managed-property>
<managed-property>
<property-name>description</property-name>
#{description}
</managed-property>
<managed-property>
<property-name>situacao</property-name>
#{situacao}
</managed-property>
<managed-property>
<property-name>embalagem</property-name>
#{embalagem}
</managed-property>
<managed-property>
<property-name>tipo</property-name>
#{tipo}
</managed-property>
</managed-bean>
</faces-config>
In the Form:
ex. form.product.xhtml
<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:fmt="http://java.sun.com/jsp/jstl/fmt">
.
.
<ui:define name="body">
<!-- These aliases will save us a lot of typing -->
<ui:param name="bean" value="#{taskInstanceBean}"/>
<ui:param name="ti" value="#{taskInstanceBean.taskInstance}"/>
<ui:param name="td" value="#{taskBean.task}"/>
<ui:param name="pd" value="#{processBean.processDefinition}" />
<ui:component>
.
.
<jbpm:datacell>
<f:facet name="header">
Product ID
</f:facet>
<h:outputText value="#{ti.product}"/>
</jbpm:datacell>
.
.
Product.java
package org.jbpm.webapp.bean;
public class Product {
private Integer product=1;
private String description;
private String situacao;
private String embalagem;
private String tipo;
public Integer getProduct(){
return produto;
}
public void setProduto(Integer product){
this.product = product;
}
public String getDescription(){
return description;
}
public void setDescription(String description){
this.description = description;
}
public String getSituacao(){
return situacao;
}
public void setSituacao(String situacao){
this.situacao = situacao;
}
public String getEmbalagem(){
return embalagem;
}
public void setEmbalagem(String embalagem){
this.embalagem = embalagem;
}
public String getTipo(){
return tipo;
}
public void setTipo(String tipo){
this.tipo = tipo;
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053995#4053995
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053995
18Â years, 11Â months