AW: Problems with jfor V0.7.2dev-g
"Peter Herweg" <[email protected]> Fri, 20 Jun 2003 18:25:36 +0200
| Newsgroups | gmane.text.xml.jfor.devel |
|---|---|
| Message-ID | <[email protected]> |
Yes, i got an NullPointerException when using a nested table
(002-merged-nested-tables.xml failed too).
After diving into the source (jfor is new to me) i guess i found the bug:
In RtfTableRow in method writeRtfContent the line
if ( parentTable.isHighestRow(id) ) {
fails in case of the nested table, because parentTable is null.
Can anybody with writeable cvs-access change this to
if ( parentTable!=null && parentTable.isHighestRow(id) ) {
please? But my rtf file looks not so good anyway. Maybe there is also
something else.
Kind Regards
Peter Herweg
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]]Im Auftrag von
[email protected]
Gesendet: Friday, June 20, 2003 10:44 AM
An: [email protected]
Betreff: [jfor-devel] Problems with jfor V0.7.2dev-g
Hi,
Some features that in version 0.7.1 were working ok are not now, namely
the stylesheets aren't working (the font size, for some reason, is always
12pts!!), try
"samples/cocoon/tests/stylesheets/simple-stylesheet.fo.xml",and jfor
crashes when using a table inside a table cell (see example bellow) - it
was working fine in version 0.7.1.
Does anybody has these problems with version V0.7.2dev-g?
Thanks!
AV
My example that crashes (with "java.lang.NullPointerException"):
<?xml version="1.0" encoding="iso-8859-1"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:jfor="http://www.jfor.org/xmlns/2001/stylesheet" >
<fo:layout-master-set >
<fo:simple-page-master master-name = "A4" page-height "29.7cm"
page-width = "21cm" margin-top = "1.5cm" margin-bottom = "2.5cm"
margin-left = "2cm"
margin-right = "2cm" >
<fo:region-body margin-top = "1.5cm" >
</fo:region-body>
<fo:region-before extent = "1.5cm" >
</fo:region-before>
<fo:region-after extent = "1.5cm" >
</fo:region-after>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-name = "A4" >
<fo:flow flow-name = "xsl-region-body" >
<fo:table table-layout = "fixed" table-omit-header-at-break =
"false" padding = "3pt" >
<fo:table-column column-width = "30mm" >
</fo:table-column>
<fo:table-column column-width = "145mm" >
</fo:table-column>
<fo:table-body >
<fo:table-row >
<fo:table-cell >
<fo:block >
</fo:block>
</fo:table-cell>
<fo:table-cell >
<fo:table padding = "3pt" >
<fo:table-column column-width = "145mm" >
</fo:table-column>
<fo:table-body >
<fo:table-row >
<fo:table-cell border-bottom-style "thin" >
<fo:block > AAAAAAAAAAA</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row >
<fo:table-cell >
<fo:block >
</fo:block><fo:block font-size = "1pt"
>.</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row >
<fo:table-cell >
<fo:block font-weight = "bold" >
</fo:block><fo:block font-size ="1pt" >
.</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:flow>
</fo:page-sequence>
</fo:root>
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
jfor-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jfor-devel
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php