Author: manaRH
Date: 2010-03-03 04:04:21 -0500 (Wed, 03 Mar 2010)
New Revision: 12087
Modified:
branches/community/Seam_2_2/doc/Seam_Reference_Guide/en-US/Itext.xml
branches/community/Seam_2_2/examples/itext/view/chapters.xhtml
branches/community/Seam_2_2/src/pdf/org/jboss/seam/pdf/ui/UIChapter.java
Log:
JBSEAM-4575
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/en-US/Itext.xml
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/en-US/Itext.xml 2010-03-03
01:33:56 UTC (rev 12086)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/en-US/Itext.xml 2010-03-03
09:04:21 UTC (rev 12087)
@@ -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: branches/community/Seam_2_2/examples/itext/view/chapters.xhtml
===================================================================
--- branches/community/Seam_2_2/examples/itext/view/chapters.xhtml 2010-03-03 01:33:56 UTC
(rev 12086)
+++ branches/community/Seam_2_2/examples/itext/view/chapters.xhtml 2010-03-03 09:04:21 UTC
(rev 12087)
@@ -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: branches/community/Seam_2_2/src/pdf/org/jboss/seam/pdf/ui/UIChapter.java
===================================================================
--- branches/community/Seam_2_2/src/pdf/org/jboss/seam/pdf/ui/UIChapter.java 2010-03-03
01:33:56 UTC (rev 12086)
+++ branches/community/Seam_2_2/src/pdf/org/jboss/seam/pdf/ui/UIChapter.java 2010-03-03
09:04:21 UTC (rev 12087)
@@ -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);
Show replies by date