[seam-commits] Seam SVN: r12088 - in tags/JBoss_Seam_2_2_1_CR1: examples/itext/view and 1 other directories.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Wed Mar 3 04:36:36 EST 2010
Author: manaRH
Date: 2010-03-03 04:36:35 -0500 (Wed, 03 Mar 2010)
New Revision: 12088
Modified:
tags/JBoss_Seam_2_2_1_CR1/doc/Seam_Reference_Guide/en-US/Itext.xml
tags/JBoss_Seam_2_2_1_CR1/examples/itext/view/chapters.xhtml
tags/JBoss_Seam_2_2_1_CR1/src/pdf/org/jboss/seam/pdf/ui/UIChapter.java
Log:
merging rev.12087 - fix for JBSEAM-4575
Modified: tags/JBoss_Seam_2_2_1_CR1/doc/Seam_Reference_Guide/en-US/Itext.xml
===================================================================
--- tags/JBoss_Seam_2_2_1_CR1/doc/Seam_Reference_Guide/en-US/Itext.xml 2010-03-03 09:04:21 UTC (rev 12087)
+++ tags/JBoss_Seam_2_2_1_CR1/doc/Seam_Reference_Guide/en-US/Itext.xml 2010-03-03 09:36:35 UTC (rev 12088)
@@ -789,7 +789,9 @@
provide the necessary structure. Sections can only be used inside of chapters, but
they may be nested arbitrarily deep. Most PDF viewers provide easy navigation
between chapters and sections in a document. </para>
-
+ <note>
+ <para>You cannot include a chapter into another chapter, this can be done only with section(s).</para>
+ </note>
<para>
<emphasis>Attributes</emphasis>
</para>
@@ -806,17 +808,21 @@
</listitem>
<listitem>
- <para><literal>number</literal> — The chapter number. Every chapter
- should be assigned a chapter number.</para>
+ <para><literal>number</literal> — The chapter/section number. Every chapter/section
+ should be assigned a number.</para>
</listitem>
<listitem>
<para><literal>numberDepth</literal> — The depth of numbering for
- section. All sections are numbered relative to their surrounding
+ chapter/section. All sections are numbered relative to their surrounding
chapter/sections. The fourth section of the first section of chapter
three would be section 3.1.4, if displayed at the default number depth of
three. To omit the chapter number, a number depth of 2 should be used. In
that case, the section number would be displayed as 1.4.</para>
+ <note>
+ <para>Chapter(s) can have a number or without it by setting numberDepth to 0.</para>
+
+ </note>
</listitem>
</itemizedlist>
<para>
Modified: tags/JBoss_Seam_2_2_1_CR1/examples/itext/view/chapters.xhtml
===================================================================
--- tags/JBoss_Seam_2_2_1_CR1/examples/itext/view/chapters.xhtml 2010-03-03 09:04:21 UTC (rev 12087)
+++ tags/JBoss_Seam_2_2_1_CR1/examples/itext/view/chapters.xhtml 2010-03-03 09:36:35 UTC (rev 12088)
@@ -13,7 +13,16 @@
<p:image alignment="center" value="/jboss.jpg" />
<p:font size="24"><p:paragraph spacingBefore="100" alignment="center">Ten Good Reasons To Use Seam</p:paragraph></p:font>
+
+ <p:chapter number="1" numberDepth="0">
+ <p:title>
+ <p:font size="18"><p:paragraph>Chapter without number</p:paragraph></p:font>
+ </p:title>
+ <p:paragraph alignment="justify" spacingBefore="5">AJAX fundamentally changes the interaction model of the web. The synchronous, coarse-grained requests used by traditional web clients let many server-side applications get away with minimal caching and no session-level concurrency. The "stateless" architecture is in many cases a viable solution. But not anymore! AJAX clients hit the server with many asynchronous, concurrent, fine-grained requests, which could easily bring your database to its knees. When state is held in memory between requests, it is highly vulnerable to concurrency-related bugs, since the Java EE platform provides no constructs for dealing with session-level concurrency.</p:paragraph>
+
+ </p:chapter>
+
<p:chapter number="1">
<p:title>
<p:font size="18"><p:paragraph>It's the quickest way to get "rich"</p:paragraph></p:font>
@@ -23,7 +32,8 @@
<p:paragraph alignment="justify" spacingBefore="5">Seam's totally unique concurrency model and state-management model was conceived and designed with AJAX in mind. </p:paragraph>
- <p:paragraph alignment="justify" spacingBefore="5">Seam 1.1 integrates open source JSF-based AJAX solutions like ICEfaces and Ajax4JSF with Seam's state and concurrency management engine. You can add AJAX to your applications with ease, without the need to learn JavaScript, and you will be protected from potential bugs and performance problems associated with the switch to AJAX. </p:paragraph>
+ <p:paragraph alignment="justify" spacingBefore="5">Seam integrates open source JSF-based AJAX solutions like ICEfaces and Ajax4JSF with Seam's state and concurrency management engine. You can add AJAX to your applications with ease, without the need to learn JavaScript, and you will be protected from potential bugs and performance problems associated with the switch to AJAX. </p:paragraph>
+
</p:chapter>
Modified: tags/JBoss_Seam_2_2_1_CR1/src/pdf/org/jboss/seam/pdf/ui/UIChapter.java
===================================================================
--- tags/JBoss_Seam_2_2_1_CR1/src/pdf/org/jboss/seam/pdf/ui/UIChapter.java 2010-03-03 09:04:21 UTC (rev 12087)
+++ tags/JBoss_Seam_2_2_1_CR1/src/pdf/org/jboss/seam/pdf/ui/UIChapter.java 2010-03-03 09:36:35 UTC (rev 12088)
@@ -36,7 +36,7 @@
chapterTitle = (String) valueBinding(context, "chapterTitle", chapterTitle);
section = new Chapter("", number);
- section.setNumberDepth(numberDepth);
+ if (numberDepth != null) section.setNumberDepth(numberDepth);
if (chapterTitle != null) {
section.setBookmarkTitle(chapterTitle);
More information about the seam-commits
mailing list