JBoss Rich Faces SVN: r9944 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-08-06 07:57:24 -0400 (Wed, 06 Aug 2008)
New Revision: 9944
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/usage.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-4033
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/usage.xhtml 2008-08-06 11:57:19 UTC (rev 9943)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/usage.xhtml 2008-08-06 11:57:24 UTC (rev 9944)
@@ -19,7 +19,12 @@
<li>customization of table look-n-feel from skin parameters</li>
</ul>
</p>
-
+ <p>
+ Check the next simple demo. Additionally to lazy loading of rows you could check
+ frozenColumn feature using the horizontal scroll. Also in order to sort the table
+ just click some header. And in order to get selected rows just click corresponding
+ button below the table.
+ </p>
<fieldset class="demo_fieldset">
<legend class="demo_legend">Scrollable DataTable example</legend>
<div class="sample-container">
16 years, 5 months
JBoss Rich Faces SVN: r9943 - in trunk/docs/migrationguide/en/src/main/resources: script and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-08-06 07:57:19 -0400 (Wed, 06 Aug 2008)
New Revision: 9943
Modified:
trunk/docs/migrationguide/en/src/main/resources/css/html.css
trunk/docs/migrationguide/en/src/main/resources/script/toggle.js
Log:
https://jira.jboss.org/jira/browse/RF-4065 - The banner was added to RichFaces Migration Guide
Modified: trunk/docs/migrationguide/en/src/main/resources/css/html.css
===================================================================
--- trunk/docs/migrationguide/en/src/main/resources/css/html.css 2008-08-06 11:56:21 UTC (rev 9942)
+++ trunk/docs/migrationguide/en/src/main/resources/css/html.css 2008-08-06 11:57:19 UTC (rev 9943)
@@ -1,371 +1,81 @@
-* {
- LINE-HEIGHT: 20px; FONT-FAMILY: verdana, helvetica, sans-serif
-}
-DIV.navheader TABLE, DIV.navheader TABLE td, DIV.navfooter TABLE, DIV.navfooter TABLE td{
- BORDER-RIGHT: 0px; BORDER-TOP: 0px; MARGIN: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px; FONT-SIZE: 11px; padding : 0px;
-}
-A {
- COLOR: #2a7bd4; FONT-FAMILY: verdana, helvetica, sans-serif
-}
-A:hover {
- COLOR: #003399; FONT-FAMILY: verdana, helvetica, sans-serif
-}
-A:visited {
- COLOR: #888888; FONT-FAMILY: verdana, helvetica, sans-serif
-}
-P {
- FONT-SIZE: 12px; COLOR: #000000; margin : 5px 0px 5px 0px;
-}
-OL {
- FONT-SIZE: 12px; COLOR: #000000; margin-top : 5px; margin-bottom : 5px;
-}
-UL {
- FONT-SIZE: 12px; COLOR: #000000; margin-top : 5px; margin-bottom : 5px;
-}
-LI {
- FONT-SIZE: 12px; COLOR: #000000; margin-top : 5px; margin-bottom : 5px;
-}
-DL {
- FONT-SIZE: 12px; COLOR: #000000; margin-top : 5px; margin-bottom : 5px;
-}
-DT {
- FONT-SIZE: 12px; COLOR: #000000; margin-top : 5px; margin-bottom : 5px;
-}
-DD {
- FONT-SIZE: 12px; COLOR: #000000; margin-top : 5px; margin-bottom : 5px;
-}
-BLOCKQUOTE {
- FONT-SIZE: 12px; COLOR: #000000
-}
-TD {
- COLOR: #000000
-}
-TH {
- COLOR: #000000
-}
-SPAN {
- COLOR: #000000
-}
-SPAN.property {
- COLOR: #008cca;
-}
-SPAN.italic {
- FONT-STYLE: italic;
-}
+@import url("jbossorg.css");
-BLOCKQUOTE {
- MARGIN-RIGHT: 0px
+.expand_collapse_toc {
+ float:left;
+ width:20px;
+ color:#6699CC;
+ cursor:pointer;
}
-P.title {
- MARGIN-BOTTOM: 5px;
- MARGIN-top: 20px;
+.toc dl dt span.chapter{
+ margin: 0px 0px 0px 20px;
+ padding: 0px;
}
-div.book div.chapter .title {
- text-align: left;
-}
-
-
-div.book .title {
- text-align: center;
-}
-
-div.book .subtitle {
- text-align: center;
-}
-
-.mediaobject{
- padding : 5px 10px 5px 35px;
-}
-H1 {
- MARGIN: 0px; FONT-SIZE: 22px; COLOR: #ff6600; PADDING: 45px 0px 10px 0px;
-}
-H2 {
- MARGIN: 0px; FONT-SIZE: 18px; COLOR: #2a7bd4; PADDING: 25px 0px 10px 0px;
-}
-H3 {
- MARGIN: 0px; FONT-SIZE: 15px; COLOR: #000000; PADDING: 20px 0px 10px 0px;
-}
-H4 {
- MARGIN: 0px; FONT-SIZE: 12px; COLOR: #000000; PADDING: 15px 0px 10px 0px;
-}
-H5 {
- MARGIN: 0px; FONT-SIZE: 12px; COLOR: #000000; PADDING: 15px 0px 10px 0px;
-}
-H6 {
- MARGIN: 0px; FONT-SIZE: 11px; COLOR: #000000; PADDING: 5px 0px 0px 0px;
-}
-
-div.book div.section div.mediaobject{
-text-align:left;
-}
-
-
-div.book div.mediaobject{
+body {
+background-image:url(../images/richfaces_label2.png);
+background-repeat:no-repeat;
+background-attachment:fixed;
+background-position:top left;
+z-index:1;
+color:#333333;
+font-family:'Lucida Grande',Geneva,Verdana,Arial,sans-serif;
+font-size:12px;
+line-height:150%;
+max-width:1000px;
+padding:0em 2em;
text-align:center;
}
-div.mediaobject, div.mediaobject img *{
-text-align:left;
-
+div#overlay{
+background-image:url(../images/community/bkg_gradient.gif);
+background-repeat:repeat-x;
+width:100%;
+height:100%;
+position:absolute;
+top:0px;
+left:0px;
+z-index:-1;
}
+div.book, div.chapter, div.section{
+ width:1000px;
+ margin:0 auto;
+ text-align:justify;
+ font-weight: 100;
+}
-DIV.note{
- BORDER: #CECECE 1px solid; PADDING: 3px 10px 10px 50px; line-height : 14px; MARGIN: 10px 0px 10px 0px; FONT-SIZE: 11px; WIDTH: 500px; BACKGROUND-COLOR: #FFFDD3;
- background-image : url('../images/ico_note.gif'); background-repeat : no-repeat; background-position :top left;
+div.abstract {
+font-size:10px;
}
-DIV.note *{
- line-height : 14px;
+.docnav li.previous strong, .docnav li.next strong {
+ width: 200px;
+ height:22px;
}
-.note P {
- MARGIN-TOP: 0px; MARGIN-BOTTOM: 1em; PADDING-BOTTOM: 0px; PADDING-TOP: 0px
+.docnav a:hover {
+ cursor:pointer;
}
-.important P {
- MARGIN-TOP: 0px; MARGIN-BOTTOM: 1em; PADDING-BOTTOM: 0px; PADDING-TOP: 0px
+th, td {
+ border: 1px solid #AAAAAA;
}
-DIV.important {
- BORDER: #CECECE 1px solid; PADDING: 3px 10px 10px 50px; line-height : 14px; MARGIN: 10px 0px 10px 0px; FONT-SIZE: 11px; WIDTH: 500px; BACKGROUND-COLOR: #fee3d9;
- background-image : url('../images/ico_important.gif'); background-repeat : no-repeat; background-position :top left;
+#title, ul.docnav{
+ margin:0 auto;
+ width:1000px;
+ margin-left:0px;
}
-DIV.important *{
- line-height : 14px;
-}
+/* Center all images and Figure/Table titles */
+div.mediaobject img {margin:left;}
-.important pre.XML {
-PADDING: 1px 1px 1px 10px;
-
+p.title {
+ text-align:left;
+ font-size: 11px;
}
-DIV.tip {
- BORDER: #CECECE 1px solid; PADDING: 3px 10px 10px 50px; line-height : 14px; MARGIN: 10px 0px 10px 0px; FONT-SIZE: 11px; WIDTH: 500px; BACKGROUND-COLOR: #CFE3FF; background-repeat : no-repeat; background-position :top left; background-image : url('../images/ico_tip.gif');
-}
-
-DIV.tip *{
- line-height : 14px;
-}
-
-.tip pre.XML {
-PADDING: 1px 1px 1px 10px;
-
-}
-
-TABLE {
- BORDER: #cccccc 1px solid; FONT-SIZE: 11px; BORDER-COLLAPSE: collapse; border-spacing: 0; empty-cells: hide; margin-bottom : 10px;
-}
-
-table *{
- line-height : 14px;
-}
-
-
-.table TH {
- WHITE-SPACE: nowrap; BACKGROUND-COLOR: #EEF5FF; TEXT-ALIGN: center; BORDER-BOTTOM: #CAE1FF 2px solid; PADDING: 2px 8px 2px 8px;
- background-image : url('../images/bg_table.gif'); background-repeat : repeat-x; background-position :top left;
-}
-TD {
- PADDING: 4px 8px 4px 8px; BORDER-BOTTOM: #cccccc 1px dotted; BORDER-right: #cccccc 1px dotted;
-}
-P.copyright {
- TEXT-ALIGN: center
-}
-TT {
- FONT-SIZE: 90%; COLOR: #000000; FONT-FAMILY: "Courier New", Courier, monospace
-}
-DL {
- MARGIN-BOTTOM: 6px; MARGIN-LEFT: 8px
-}
-DT {
- MARGIN-BOTTOM: 6px; MARGIN-LEFT: 8px
-}
-DD {
- MARGIN-BOTTOM: 6px; MARGIN-LEFT: 8px
-}
-PRE {
- BORDER: #cccccc 1px solid; PADDING: 5px 15px 5px 25px; FONT-SIZE: 11px; BACKGROUND-COLOR: #f5f5f5;
-}
-HR {
- BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; WIDTH: 100%; COLOR: #cccccc; PADDING-TOP: 0px; HEIGHT: 1px; BACKGROUND-COLOR: #cccccc; BORDER-RIGHT-WIDTH: 0px
-}
-.variablelist {
- PADDING-BOTTOM: 10px; MARGIN: 0px; PADDING-TOP: 10px
-}
-.itemizedlist {
- FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px;TEXT-ALIGN: justify
-}
-.term {
- FONT-WEIGHT: bold
-}
-PRE.JAVA {
- LINE-HEIGHT: 0px
-}
-PRE.XML {
- LINE-HEIGHT: 0px
-}
-PRE.JSP {
- LINE-HEIGHT: 0px
-}
-PRE.XHTML {
- LINE-HEIGHT: 0px
-}
-.java_type {
- COLOR: #008cca
-}
-.java_keyword {
- FONT-WEIGHT: bold; COLOR: rgb(0,0,0)
-}
-.java_javadoc_comment {
- COLOR: rgb(147,147,147); FONT-STYLE: italic; BACKGROUND-COLOR: rgb(247,247,247)
-}
-.java_comment {
- COLOR: rgb(147,147,147); BACKGROUND-COLOR: rgb(247,247,247)
-}
-.java_operator {
- COLOR: #003399
-}
-.java_plain {
- COLOR: rgb(0,0,0)
-}
-.java_literal {
- COLOR: #ff6600
-}
-PRE CODE {
- FONT-SIZE: 12px; COLOR: rgb(0,0,0); FONT-FAMILY: monospace; WHITE-SPACE: nowrap
-}
-.java_javadoc_tag {
- FONT-WEIGHT: bold; COLOR: rgb(147,147,147); FONT-STYLE: italic; BACKGROUND-COLOR: rgb(247,247,247)
-}
-.java_separator {
- COLOR: #008cca
-}
-.xml_plain {
- COLOR: rgb(0,0,0)
-}
-.xml_tag_name {
- COLOR: #008cca
-}
-.xml_comment {
- COLOR: rgb(147,147,147); BACKGROUND-COLOR: rgb(247,247,247)
-}
-.xml_tag_symbols {
- COLOR: #008cca
-}
-.xml_rife_tag {
- COLOR: rgb(0,0,0); BACKGROUND-COLOR: rgb(228,230,160)
-}
-.xml_attribute_value {
- COLOR: #ff6600
-}
-.xml_attribute_name {
- FONT-WEIGHT: bold; COLOR: rgb(0,0,0)
-}
-.xml_char_data {
- COLOR: rgb(0,0,0)
-}
-.xml_rife_name {
- COLOR: #008cca; BACKGROUND-COLOR: rgb(228,230,160)
-}
-.xml_processing_instruction {
- FONT-WEIGHT: bold; COLOR: rgb(0,0,0); FONT-STYLE: italic
-}
-TD.java {
- VERTICAL-ALIGN: top; LINE-HEIGHT: 10px
-}
-TD.java-ln {
- VERTICAL-ALIGN: top; LINE-HEIGHT: 10px
-}
-TT.java {
- MARGIN-BOTTOM: 0em; LINE-HEIGHT: 10px
-}
-TT.java-ln {
- MARGIN-BOTTOM: 0em; LINE-HEIGHT: 10px
-}
-PRE.java {
- MARGIN-BOTTOM: 0em; LINE-HEIGHT: 10px
-}
-PRE.java-ln {
- MARGIN-BOTTOM: 0em; LINE-HEIGHT: 10px
-}
-TD.java-ln {
- LINE-HEIGHT: 10px; TEXT-ALIGN: right
-}
-TT.java-ln {
- COLOR: #888888; LINE-HEIGHT: 10px
-}
-PRE.java-ln {
- COLOR: #888888; LINE-HEIGHT: 10px
-}
-SPAN.java0 {
- FONT-SIZE: 8pt; COLOR: #ffffff; LINE-HEIGHT: 10px
-}
-SPAN.java1 {
- FONT-SIZE: 8pt; COLOR: #808080
-}
-SPAN.java2 {
- FONT-SIZE: 8pt; COLOR: #3f7f5f; LINE-HEIGHT: 10px
-}
-SPAN.java3 {
- FONT-SIZE: 8pt; COLOR: #3f7f5f; LINE-HEIGHT: 10px
-}
-SPAN.java4 {
- FONT-WEIGHT: bold; FONT-SIZE: 8pt; COLOR: #ff6600; LINE-HEIGHT: 10px
-}
-SPAN.java5 {
- FONT-SIZE: 8pt; COLOR: #2a00ff; LINE-HEIGHT: 10px
-}
-SPAN.java6 {
- FONT-SIZE: 8pt; COLOR: #990000; LINE-HEIGHT: 10px
-}
-SPAN.java7 {
- FONT-SIZE: 8pt; COLOR: #990000; LINE-HEIGHT: 10px
-}
-SPAN.java8 {
- FONT-SIZE: 8pt; COLOR: #000000; LINE-HEIGHT: 10px
-}
-SPAN.java9 {
- FONT-WEIGHT: bold; FONT-SIZE: 8pt; COLOR: #ff6600; LINE-HEIGHT: 10px
-}
-SPAN.java10 {
- FONT-SIZE: 8pt; COLOR: #000000; LINE-HEIGHT: 10px
-}
-SPAN.java11 {
- FONT-SIZE: 8pt; COLOR: #7f9fbf; LINE-HEIGHT: 10px
-}
-SPAN.java12 {
- FONT-SIZE: 8pt; COLOR: #7f7f9f; LINE-HEIGHT: 10px
-}
-SPAN.java13 {
- FONT-SIZE: 8pt; COLOR: #3f3fbf; LINE-HEIGHT: 10px
-}
-SPAN.java14 {
- FONT-SIZE: 8pt; COLOR: #3f5fbf; LINE-HEIGHT: 10px
-}
-SPAN.java15 {
- FONT-SIZE: 8pt; COLOR: #ff6100; LINE-HEIGHT: 10px
-}
-SPAN.java16 {
- FONT-SIZE: 8pt; COLOR: #646464; LINE-HEIGHT: 10px
-}
-
-.expand_collapse_toc {
- clear:both;
- float:left;
- font-family:monospace;
- width:20px;
- color: #2A7BD4;
- cursor: pointer;
-}
-
-pre.CSS, pre.css {
- line-height:0px;
- margin-bottom:0em;
-}
.css_normal {
- line-height:0px;
- color:#000000;
+line-height:0px;
+color:#000000;
}
.css_colon {
color:#000000;
@@ -377,23 +87,24 @@
color:#000000;
}
.css_comment {
-color:#939393;
+color:#3F5FBF;
+background-color:rgb(247,247,247);
}
.css_error {
color:#BF3F3F;
}
.css_selector {
-color:#008cca;
+color:#3F7F7F;
}
.css_null {
-color:#008cca;
+color:rgb(0,0,0);
}
.css_property_name {
-color:#000000;
font-weight:bold;
+color:#7F007F;
}
.css_property_value {
-color:#ff6600;
+color:#2A00FF;
}
.css_uri {
color:#2A00FF;
@@ -402,13 +113,39 @@
color:#3F7F7F;
}
.css_media {
-color:#336699;
+color:#2A00FF;
}
.css_string {
-color:#336699;
+color:#2A00FF;
}
-code {
+code.code{
color:#000000;
-font-size:12px;
-font-family:courier;
+font-size:14px;
+font-family:monospace;
+}
+a.new {
+background:transparent url(../images/new.png) no-repeat scroll right top;
+padding-right:70px;
+}
+a.updated {
+background:transparent url(../images/updated.png) no-repeat scroll right top;
+padding-right:70px;
+}
+.tbi {color: #aaaaaa;}
+.tbi p {color: #333333;}
+
+div.note, div.tip, div.important{
+ height:100%;
+}
+
+pre.JAVA {
+line-height:10px;
+!line-height:15px;
+}
+pre.CSS {
+line-height:10px;
+!line-height:15px;
+}
+div.table-contents table{
+ font-size:12px;
}
\ No newline at end of file
Modified: trunk/docs/migrationguide/en/src/main/resources/script/toggle.js
===================================================================
--- trunk/docs/migrationguide/en/src/main/resources/script/toggle.js 2008-08-06 11:56:21 UTC (rev 9942)
+++ trunk/docs/migrationguide/en/src/main/resources/script/toggle.js 2008-08-06 11:57:19 UTC (rev 9943)
@@ -1,3 +1,5 @@
+document.write('<div id="overlay"> </div>');
+
function dbToggle(node, expandText, collapseText) {
var dt = node.parentNode;
if (dt.nodeName.toLowerCase() == 'dt') {
16 years, 5 months
JBoss Rich Faces SVN: r9942 - in trunk/docs/migrationguide: en/src/main/resources and 4 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-08-06 07:56:21 -0400 (Wed, 06 Aug 2008)
New Revision: 9942
Added:
trunk/docs/migrationguide/en/src/main/resources/xslt/
trunk/docs/migrationguide/en/src/main/resources/xslt/org/
trunk/docs/migrationguide/en/src/main/resources/xslt/org/jboss/
trunk/docs/migrationguide/en/src/main/resources/xslt/org/jboss/richfaces/
trunk/docs/migrationguide/en/src/main/resources/xslt/org/jboss/richfaces/collapsing-navigation.xsl
trunk/docs/migrationguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml-common.xsl
trunk/docs/migrationguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml-single.xsl
trunk/docs/migrationguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml.xsl
Modified:
trunk/docs/migrationguide/pom.xml
Log:
https://jira.jboss.org/jira/browse/RF-3189 - New styles were added to RichFaces Migration Guide
Added: trunk/docs/migrationguide/en/src/main/resources/xslt/org/jboss/richfaces/collapsing-navigation.xsl
===================================================================
--- trunk/docs/migrationguide/en/src/main/resources/xslt/org/jboss/richfaces/collapsing-navigation.xsl (rev 0)
+++ trunk/docs/migrationguide/en/src/main/resources/xslt/org/jboss/richfaces/collapsing-navigation.xsl 2008-08-06 11:56:21 UTC (rev 9942)
@@ -0,0 +1,199 @@
+<!DOCTYPE xsl:stylesheet>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0" xmlns="http://www.w3.org/TR/xhtml1/transitional"
+ exclude-result-prefixes="#default">
+
+ <xsl:template name="subtoc">
+ <xsl:param name="toc-context" select="." />
+ <xsl:param name="nodes" select="NOT-AN-ELEMENT" />
+
+ <xsl:variable name="toc.mark">
+ <xsl:apply-templates mode="toc.mark" select="." />
+ </xsl:variable>
+
+ <xsl:variable name="should.collapse.list"
+ select="string-length(string($toc.mark)) > 0">
+ </xsl:variable>
+
+ <xsl:variable name="toc.on.plus.mark">
+ <xsl:choose>
+ <xsl:when test="$should.collapse.list">
+ <xsl:copy-of select="$toc.mark"></xsl:copy-of>
+ </xsl:when>
+ <xsl:otherwise>
+ <span class="expand_collapse_toc" style="visibility:hidden;">  </span>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <xsl:variable name="nodes.plus" select="$nodes | qandaset" />
+
+ <xsl:variable name="subtoc">
+ <xsl:element name="{$toc.list.type}">
+ <xsl:choose>
+ <xsl:when test="$qanda.in.toc != 0">
+ <xsl:apply-templates mode="toc"
+ select="$nodes.plus">
+ <xsl:with-param name="toc-context"
+ select="$toc-context" />
+ </xsl:apply-templates>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates mode="toc"
+ select="$nodes">
+ <xsl:with-param name="toc-context"
+ select="$toc-context" />
+ </xsl:apply-templates>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:element>
+ </xsl:variable>
+
+ <xsl:variable name="depth">
+ <xsl:choose>
+ <xsl:when test="local-name(.) = 'section'">
+ <xsl:value-of select="count(ancestor::section) + 1" />
+ </xsl:when>
+ <xsl:when test="local-name(.) = 'sect1'">1</xsl:when>
+ <xsl:when test="local-name(.) = 'sect2'">2</xsl:when>
+ <xsl:when test="local-name(.) = 'sect3'">3</xsl:when>
+ <xsl:when test="local-name(.) = 'sect4'">4</xsl:when>
+ <xsl:when test="local-name(.) = 'sect5'">5</xsl:when>
+ <xsl:when test="local-name(.) = 'refsect1'">1</xsl:when>
+ <xsl:when test="local-name(.) = 'refsect2'">2</xsl:when>
+ <xsl:when test="local-name(.) = 'refsect3'">3</xsl:when>
+ <xsl:when test="local-name(.) = 'simplesect'">
+ <!-- sigh... -->
+ <xsl:choose>
+ <xsl:when test="local-name(..) = 'section'">
+ <xsl:value-of
+ select="count(ancestor::section)" />
+ </xsl:when>
+ <xsl:when test="local-name(..) = 'sect1'">
+ 2
+ </xsl:when>
+ <xsl:when test="local-name(..) = 'sect2'">
+ 3
+ </xsl:when>
+ <xsl:when test="local-name(..) = 'sect3'">
+ 4
+ </xsl:when>
+ <xsl:when test="local-name(..) = 'sect4'">
+ 5
+ </xsl:when>
+ <xsl:when test="local-name(..) = 'sect5'">
+ 6
+ </xsl:when>
+ <xsl:when test="local-name(..) = 'refsect1'">
+ 2
+ </xsl:when>
+ <xsl:when test="local-name(..) = 'refsect2'">
+ 3
+ </xsl:when>
+ <xsl:when test="local-name(..) = 'refsect3'">
+ 4
+ </xsl:when>
+ <xsl:otherwise>1</xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>0</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <xsl:variable name="depth.from.context"
+ select="count(ancestor::*)-count($toc-context/ancestor::*)" />
+
+ <xsl:variable name="subtoc.list">
+ <xsl:choose>
+ <xsl:when test="$toc.dd.type = ''">
+ <xsl:copy-of select="$subtoc" />
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:element name="{$toc.dd.type}">
+ <xsl:if test="$should.collapse.list">
+ <xsl:attribute name="style">display:none;</xsl:attribute>
+ </xsl:if>
+ <xsl:copy-of select="$subtoc" />
+ </xsl:element>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+
+ <xsl:element name="{$toc.listitem.type}">
+
+ <xsl:copy-of select="$toc.on.plus.mark"></xsl:copy-of>
+ <xsl:call-template name="toc.line">
+ <xsl:with-param name="toc-context"
+ select="$toc-context" />
+ </xsl:call-template>
+
+ <xsl:if
+ test="$toc.listitem.type = 'li'
+ and $toc.section.depth > $depth and
+ ( ($qanda.in.toc = 0 and count($nodes)>0) or
+ ($qanda.in.toc != 0 and count($nodes.plus)>0) )
+ and $toc.max.depth > $depth.from.context">
+ <xsl:copy-of select="$subtoc.list" />
+ </xsl:if>
+ </xsl:element>
+ <xsl:if
+ test="$toc.listitem.type != 'li'
+ and $toc.section.depth > $depth and
+ ( ($qanda.in.toc = 0 and count($nodes)>0) or
+ ($qanda.in.toc != 0 and count($nodes.plus)>0) )
+ and $toc.max.depth > $depth.from.context">
+ <xsl:copy-of select="$subtoc.list" />
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="section|chapter" mode="toc.mark">
+ <xsl:variable name="subchapters">
+ <xsl:apply-templates select="child::section" mode="toc" />
+ </xsl:variable>
+
+ <xsl:if test="string-length(string($subchapters))">
+ <xsl:call-template name="toggle.expand.mark" />
+ <xsl:call-template name="toggle.collapse.mark" />
+ </xsl:if>
+
+ </xsl:template>
+
+ <xsl:template match="*" mode="toc.mark">
+
+ </xsl:template>
+
+ <xsl:template name="user.head.content">
+ <xsl:param name="node" select="." />
+ <script type="text/javascript" src="script/toggle.js"><xsl:comment>If you see this message, your web browser doesn't support JavaScript or JavaScript is disabled.</xsl:comment></script>
+ </xsl:template>
+
+ <xsl:template name="toggle.expand.mark">
+ <xsl:param name="visible" select="true()"/>
+ <span onclick="toc.expand(this)" class="expand_collapse_toc">
+ <xsl:call-template name="render.display">
+ <xsl:with-param name="visible" select="$visible" />
+ </xsl:call-template>
+ <xsl:text>+</xsl:text>
+ </span>
+ </xsl:template>
+
+ <xsl:template name="toggle.collapse.mark">
+ <xsl:param name="visible" select="false()"/>
+ <span onclick="toc.collapse(this)" class="expand_collapse_toc">
+ <xsl:call-template name="render.display">
+ <xsl:with-param name="visible" select="$visible" />
+ </xsl:call-template>
+ <xsl:text>-</xsl:text>
+ </span>
+ </xsl:template>
+
+ <xsl:template name="render.display">
+ <xsl:param name="visible" select="false()"/>
+ <xsl:attribute name="style">
+ <xsl:if test="not($visible)">display:none;</xsl:if>
+ </xsl:attribute>
+ </xsl:template>
+
+
+</xsl:stylesheet>
Property changes on: trunk/docs/migrationguide/en/src/main/resources/xslt/org/jboss/richfaces/collapsing-navigation.xsl
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/docs/migrationguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml-common.xsl
===================================================================
--- trunk/docs/migrationguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml-common.xsl (rev 0)
+++ trunk/docs/migrationguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml-common.xsl 2008-08-06 11:56:21 UTC (rev 9942)
@@ -0,0 +1,73 @@
+<?xml version='1.0'?>
+
+<!--
+ Copyright 2008 JBoss, a division of Red Hat
+ License: LGPL
+ Author: Mark Newton <mark.newton(a)jboss.org>
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+ <xsl:import href="collapsing-navigation.xsl"/>
+
+ <xsl:param name="html.stylesheet" select="'css/html.css'"/>
+ <xsl:param name="generate.toc" select="'book toc'"/>
+ <xsl:param name="toc.section.depth" select="5"/>
+ <!--
+From: xhtml/docbook.xsl
+Reason: Remove inline style for draft mode
+Version: 1.72.0
+-->
+<xsl:template name="head.content">
+ <xsl:param name="node" select="."/>
+ <xsl:param name="title">
+ <xsl:apply-templates select="$node" mode="object.title.markup.textonly"/>
+ </xsl:param>
+
+ <title xmlns="http://www.w3.org/1999/xhtml" >
+ <xsl:copy-of select="$title"/>
+ </title>
+
+ <xsl:if test="$html.stylesheet != ''">
+ <xsl:call-template name="output.html.stylesheets">
+ <xsl:with-param name="stylesheets" select="normalize-space($html.stylesheet)"/>
+ </xsl:call-template>
+ </xsl:if>
+
+ <xsl:if test="$link.mailto.url != ''">
+ <link rev="made" href="{$link.mailto.url}"/>
+ </xsl:if>
+
+ <xsl:if test="$html.base != ''">
+ <base href="{$html.base}"/>
+ </xsl:if>
+
+ <meta xmlns="http://www.w3.org/1999/xhtml" name="generator" content="DocBook {$DistroTitle} V{$VERSION}"/>
+
+ <xsl:if test="$generate.meta.abstract != 0">
+ <xsl:variable name="info" select="(articleinfo |bookinfo |prefaceinfo |chapterinfo |appendixinfo |sectioninfo |sect1info |sect2info |sect3info |sect4info |sect5info |referenceinfo |refentryinfo |partinfo |info |docinfo)[1]"/>
+ <xsl:if test="$info and $info/abstract">
+ <meta xmlns="http://www.w3.org/1999/xhtml" name="description">
+ <xsl:attribute name="content">
+ <xsl:for-each select="$info/abstract[1]/*">
+ <xsl:value-of select="normalize-space(.)"/>
+ <xsl:if test="position() < last()">
+ <xsl:text> </xsl:text>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:attribute>
+ </meta>
+ </xsl:if>
+ </xsl:if>
+
+ <link rel="shortcut icon" type="image/vnd.microsoft.icon" href="images/favicon.ico" />
+
+ <xsl:apply-templates select="." mode="head.keywords.content"/>
+</xsl:template>
+
+<xsl:template match="//citebiblio">
+ <div>
+ <xsl:value-of select="." />
+</div>
+</xsl:template>
+</xsl:stylesheet>
Property changes on: trunk/docs/migrationguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml-common.xsl
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/docs/migrationguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml-single.xsl
===================================================================
--- trunk/docs/migrationguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml-single.xsl (rev 0)
+++ trunk/docs/migrationguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml-single.xsl 2008-08-06 11:56:21 UTC (rev 9942)
@@ -0,0 +1,14 @@
+<?xml version='1.0'?>
+
+<!--
+ Copyright 2008 JBoss, a division of Red Hat
+ License: LGPL
+ Author: Mark Newton <mark.newton(a)jboss.org>
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+ <xsl:import href="classpath:/xslt/org/jboss/xhtml-single.xsl"/>
+ <xsl:import href="xhtml-common.xsl"/>
+
+</xsl:stylesheet>
Property changes on: trunk/docs/migrationguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml-single.xsl
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/docs/migrationguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml.xsl
===================================================================
--- trunk/docs/migrationguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml.xsl (rev 0)
+++ trunk/docs/migrationguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml.xsl 2008-08-06 11:56:21 UTC (rev 9942)
@@ -0,0 +1,100 @@
+<?xml version='1.0'?>
+
+<!--
+ Copyright 2008 JBoss, a division of Red Hat
+ License: LGPL
+ Author: Mark Newton <mark.newton(a)jboss.org>
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+ <xsl:import href="classpath:/xslt/org/jboss/xhtml.xsl"/>
+ <xsl:import href="xhtml-common.xsl"/>
+
+<xsl:param name="chunk.fast" select="1"/>
+
+<xsl:template name="chunk">
+ <xsl:param name="node" select="."/>
+
+ <xsl:choose>
+ <xsl:when test="not($node/parent::*)">1</xsl:when>
+ <xsl:when test="$node/parent::node()/processing-instruction('forseChanks') and local-name($node)!='title' and local-name($node)!='para' and local-name($node)='section'" >1</xsl:when>
+ <xsl:when test="local-name($node) = 'sect1'
+ and $chunk.section.depth >= 1
+ and ($chunk.first.sections != 0
+ or count($node/preceding-sibling::sect1) > 0)">
+ <xsl:text>1</xsl:text>
+ </xsl:when>
+ <xsl:when test="local-name($node) = 'sect2'
+ and $chunk.section.depth >= 2
+ and ($chunk.first.sections != 0
+ or count($node/preceding-sibling::sect2) > 0)">
+ <xsl:call-template name="chunk">
+ <xsl:with-param name="node" select="$node/parent::*"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="local-name($node) = 'sect3'
+ and $chunk.section.depth >= 3
+ and ($chunk.first.sections != 0
+ or count($node/preceding-sibling::sect3) > 0)">
+ <xsl:call-template name="chunk">
+ <xsl:with-param name="node" select="$node/parent::*"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="local-name($node) = 'sect4'
+ and $chunk.section.depth >= 4
+ and ($chunk.first.sections != 0
+ or count($node/preceding-sibling::sect4) > 0)">
+ <xsl:call-template name="chunk">
+ <xsl:with-param name="node" select="$node/parent::*"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="local-name($node) = 'sect5'
+ and $chunk.section.depth >= 5
+ and ($chunk.first.sections != 0
+ or count($node/preceding-sibling::sect5) > 0)">
+ <xsl:call-template name="chunk">
+ <xsl:with-param name="node" select="$node/parent::*"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="local-name($node) = 'section'
+ and $chunk.section.depth >= count($node/ancestor::section)+1
+ and ($chunk.first.sections != 0
+ or count($node/preceding-sibling::section) > 0)">
+ <xsl:call-template name="chunk">
+ <xsl:with-param name="node" select="$node/parent::*"/>
+ </xsl:call-template>
+ </xsl:when>
+
+ <xsl:when test="local-name($node)='preface'">1</xsl:when>
+ <xsl:when test="local-name($node)='chapter'">1</xsl:when>
+ <xsl:when test="local-name($node)='appendix'">1</xsl:when>
+ <xsl:when test="local-name($node)='article'">1</xsl:when>
+ <xsl:when test="local-name($node)='part'">1</xsl:when>
+ <xsl:when test="local-name($node)='reference'">1</xsl:when>
+ <xsl:when test="local-name($node)='refentry'">1</xsl:when>
+ <xsl:when test="local-name($node)='index' and ($generate.index != 0 or count($node/*) > 0)
+ and (local-name($node/parent::*) = 'article'
+ or local-name($node/parent::*) = 'book'
+ or local-name($node/parent::*) = 'part'
+ )">1</xsl:when>
+ <xsl:when test="local-name($node)='bibliography'
+ and (local-name($node/parent::*) = 'article'
+ or local-name($node/parent::*) = 'book'
+ or local-name($node/parent::*) = 'part'
+ )">1</xsl:when>
+ <xsl:when test="local-name($node)='glossary'
+ and (local-name($node/parent::*) = 'article'
+ or local-name($node/parent::*) = 'book'
+ or local-name($node/parent::*) = 'part'
+ )">1</xsl:when>
+ <xsl:when test="local-name($node)='colophon'">1</xsl:when>
+ <xsl:when test="local-name($node)='book'">1</xsl:when>
+ <xsl:when test="local-name($node)='set'">1</xsl:when>
+ <xsl:when test="local-name($node)='setindex'">1</xsl:when>
+ <xsl:when test="local-name($node)='legalnotice'
+ and $generate.legalnotice.link != 0">1</xsl:when>
+ <xsl:otherwise>0</xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+</xsl:stylesheet>
Property changes on: trunk/docs/migrationguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml.xsl
___________________________________________________________________
Name: svn:executable
+ *
Modified: trunk/docs/migrationguide/pom.xml
===================================================================
--- trunk/docs/migrationguide/pom.xml 2008-08-06 11:53:39 UTC (rev 9941)
+++ trunk/docs/migrationguide/pom.xml 2008-08-06 11:56:21 UTC (rev 9942)
@@ -32,7 +32,7 @@
<plugin>
<groupId>org.jboss.maven.plugins</groupId>
<artifactId>maven-jdocbook-plugin</artifactId>
- <version>2.0.0</version>
+ <version>2.1.0-200803311251UTC-MPJDOCBOOK-8</version>
<executions>
<execution>
<id>jdocbook:generate</id>
@@ -88,7 +88,7 @@
<format>
<formatName>html</formatName>
<stylesheetResource>
- classpath:/xslt/org/jboss/xhtml.xsl
+ file:${pom.basedir}/src/main/resources/xslt/org/jboss/richfaces/xhtml.xsl
</stylesheetResource>
<finalName>index.html</finalName>
<imageCopyingRequired>
@@ -100,7 +100,7 @@
</format>
<format>
<formatName>html_single</formatName>
- <stylesheetResource>classpath:/xslt/org/jboss/xhtml-single.xsl</stylesheetResource>
+ <stylesheetResource>file:${pom.basedir}/src/main/resources/xslt/org/jboss/richfaces/xhtml-single.xsl</stylesheetResource>
<imageCopyingRequired>true</imageCopyingRequired>
<imagePathSettingRequired>false</imagePathSettingRequired>
<finalName>index.html </finalName>
16 years, 5 months
JBoss Rich Faces SVN: r9941 - trunk/test-applications/jsp/src/main/java/validator.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-08-06 07:53:39 -0400 (Wed, 06 Aug 2008)
New Revision: 9941
Modified:
trunk/test-applications/jsp/src/main/java/validator/ValidatorBean.java
Log:
Future validation
Modified: trunk/test-applications/jsp/src/main/java/validator/ValidatorBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/validator/ValidatorBean.java 2008-08-06 11:52:16 UTC (rev 9940)
+++ trunk/test-applications/jsp/src/main/java/validator/ValidatorBean.java 2008-08-06 11:53:39 UTC (rev 9941)
@@ -17,6 +17,7 @@
import org.hibernate.validator.Email;
import org.hibernate.validator.Future;
import org.hibernate.validator.NotEmpty;
+import org.hibernate.validator.Past;
import org.hibernate.validator.Pattern;
import org.hibernate.validator.Range;
import org.hibernate.validator.Size;
16 years, 5 months
JBoss Rich Faces SVN: r9940 - trunk/framework/impl/src/main/java/org/richfaces/model/impl/expressive.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2008-08-06 07:52:16 -0400 (Wed, 06 Aug 2008)
New Revision: 9940
Modified:
trunk/framework/impl/src/main/java/org/richfaces/model/impl/expressive/WrappedBeanFilter.java
Log:
RF-4073
Modified: trunk/framework/impl/src/main/java/org/richfaces/model/impl/expressive/WrappedBeanFilter.java
===================================================================
--- trunk/framework/impl/src/main/java/org/richfaces/model/impl/expressive/WrappedBeanFilter.java 2008-08-06 11:44:55 UTC (rev 9939)
+++ trunk/framework/impl/src/main/java/org/richfaces/model/impl/expressive/WrappedBeanFilter.java 2008-08-06 11:52:16 UTC (rev 9940)
@@ -25,11 +25,13 @@
if (filterField instanceof ExtendedFilterField) {
Object property = wrapper.getProperty(filterField.getExpression().getExpressionString());
String filterValue = ((ExtendedFilterField)filterField).getFilterValue();
- if(filterValue != null && filterValue.length() > 0) {
+ if(filterValue != null) {
filterValue = filterValue.trim().toUpperCase();
- if(property == null || !property.toString().trim().toUpperCase().startsWith(filterValue)) {
- return false;
- }
+ if(filterValue.length() > 0) {
+ if(property == null || !property.toString().trim().toUpperCase().startsWith(filterValue)) {
+ return false;
+ }
+ }
}
} else {
Object property = wrapper.getProperty(filterField.getExpression().getExpressionString());
16 years, 5 months
JBoss Rich Faces SVN: r9939 - trunk/samples/richfaces-demo/src/main/webapp/richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-08-06 07:44:55 -0400 (Wed, 06 Aug 2008)
New Revision: 9939
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-3835
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable.xhtml 2008-08-06 11:20:30 UTC (rev 9938)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable.xhtml 2008-08-06 11:44:55 UTC (rev 9939)
@@ -8,7 +8,7 @@
<ui:define name="title">RichFaces - Open Source Rich JSF Components - Data Table</ui:define>
<ui:define name="body">
<rich:tabPanel switchType="server" styleClass="top_tab" contentClass="content_tab" headerClass="header_tabs_class" inactiveTabClass="inactive_tab" activeTabClass="active_tab"
- selectedTab="#{componentNavigator.currentComponent.activeTab}">
+ selectedTab="#{componentNavigator.currentComponent.activeTab}" valueChangeListener="#{componentNavigator.tabPanelSwitched}">
<rich:tab label="Usage" name="usage">
<ui:include src="/richfaces/dataTable/usage.xhtml"/>
</rich:tab>
16 years, 5 months
JBoss Rich Faces SVN: r9938 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-08-06 07:20:30 -0400 (Wed, 06 Aug 2008)
New Revision: 9938
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/usage.xhtml
Log:
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/usage.xhtml 2008-08-06 11:11:24 UTC (rev 9937)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/usage.xhtml 2008-08-06 11:20:30 UTC (rev 9938)
@@ -150,6 +150,27 @@
current component (along with <i>f:param</i> or <i>a4j:actionparam</i> values if any).
In case of a4j:support, it will be a value of the parent component.
</p>
+ <p>
+ <b>process</b> attribute allows you to define the components to be processed
+ additionally with the component which marked as ajaxSingle or wrapped to region.
+ Imagine you need to process only two field in the different parts of view.
+ If you wrap the first to region or make nested support component ajaxSingle -
+ second component will not be processed. And if you do not define first component
+ in this way - all the view will be processed. In this case next simple constructions
+ should be used:
+ </p>
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">Code Example</legend>
+ <rich:panel styleClass="viewsourcepanel" bodyClass="viewsourcebody rich-laguna-panel-no-header">
+ <rich:insert src="/richfaces/ajaxAttributes/snippets/process.xhtml" highlight="xhtml"></rich:insert>
+ </rich:panel>
+ </fieldset>
+ <p>
+ In this case when the name field will loose focus - Ajax request will be sent.
+ And only two fields (<i>name</i> and additionally <i>email</i>) will be processed
+ (decoding, conversion/validation, value applying will be executed). The same
+ for the <i>email</i> field blur event.
+ </p>
<p><b>immediate</b> attribute has the same purpose as any other non-Ajax-JSF component.
The default ActionListener should be executed immediately (i.e. during the Apply Request
Values phase of a request processing lifecycle), rather than waiting until the
16 years, 5 months
JBoss Rich Faces SVN: r9937 - trunk/test-applications/jsp/src/main/java/validator.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-08-06 07:11:24 -0400 (Wed, 06 Aug 2008)
New Revision: 9937
Modified:
trunk/test-applications/jsp/src/main/java/validator/ValidatorBean.java
Log:
rangeValue setted.
Modified: trunk/test-applications/jsp/src/main/java/validator/ValidatorBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/validator/ValidatorBean.java 2008-08-06 10:37:47 UTC (rev 9936)
+++ trunk/test-applications/jsp/src/main/java/validator/ValidatorBean.java 2008-08-06 11:11:24 UTC (rev 9937)
@@ -1,10 +1,10 @@
package validator;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
import java.util.ArrayList;
import java.util.Calendar;
-import java.util.Date;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
import javax.faces.model.SelectItem;
@@ -21,9 +21,8 @@
import org.hibernate.validator.Range;
import org.hibernate.validator.Size;
import org.richfaces.component.UIBeanValidator;
+
import util.componentInfo.ComponentInfo;
-import javax.faces.component.UIComponent;
-import javax.faces.context.FacesContext;
public class ValidatorBean implements TestValidable{
@@ -272,7 +271,7 @@
this.selfRendered = false;
this.submitted = false;
this.timeout = 3000;
- this.rangeValue = "";
+ this.rangeValue = "3.14";
this.newValue = "not empty";
}
16 years, 5 months
JBoss Rich Faces SVN: r9936 - in trunk/docs: cdkguide/en/src/main/resources/script and 3 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-08-06 06:37:47 -0400 (Wed, 06 Aug 2008)
New Revision: 9936
Modified:
trunk/docs/cdkguide/en/src/main/resources/css/html.css
trunk/docs/cdkguide/en/src/main/resources/script/toggle.js
trunk/docs/cdkguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml-common.xsl
trunk/docs/faq/en/src/main/resources/css/html.css
trunk/docs/faq/en/src/main/resources/script/toggle.js
Log:
https://jira.jboss.org/jira/browse/RF-4065 - banner was added to CDK Guide, FAQ
Modified: trunk/docs/cdkguide/en/src/main/resources/css/html.css
===================================================================
--- trunk/docs/cdkguide/en/src/main/resources/css/html.css 2008-08-06 10:37:08 UTC (rev 9935)
+++ trunk/docs/cdkguide/en/src/main/resources/css/html.css 2008-08-06 10:37:47 UTC (rev 9936)
@@ -7,9 +7,17 @@
cursor:pointer;
}
+.toc dl dt span.chapter{
+ margin: 0px 0px 0px 20px;
+ padding: 0px;
+}
+
body {
-background-image:url(../images/community/bkg_gradient.gif);
-background-repeat:repeat-x;
+background-image:url(../images/richfaces_label2.png);
+background-repeat:no-repeat;
+background-attachment:fixed;
+background-position:top left;
+z-index:1;
color:#333333;
font-family:'Lucida Grande',Geneva,Verdana,Arial,sans-serif;
font-size:12px;
@@ -19,23 +27,51 @@
text-align:center;
}
-
+div#overlay{
+background-image:url(../images/community/bkg_gradient.gif);
+background-repeat:repeat-x;
+width:100%;
+height:100%;
+position:absolute;
+top:0px;
+left:0px;
+z-index:-1;
+}
div.book, div.chapter, div.section{
width:1000px;
margin:0 auto;
text-align:justify;
+ font-weight: 100;
+}
+
+div.abstract {
+font-size:10px;
}
+.docnav li.previous strong, .docnav li.next strong {
+ width: 200px;
+ height:22px;
+}
+
+.docnav a:hover {
+ cursor:pointer;
+}
+th, td {
+ border: 1px solid #AAAAAA;
+}
#title, ul.docnav{
margin:0 auto;
width:1000px;
-
+ margin-left:0px;
}
/* Center all images and Figure/Table titles */
div.mediaobject img {margin:left;}
-p.title {text-align:left;}
+p.title {
+ text-align:left;
+ font-size: 11px;
+}
.css_normal {
line-height:0px;
Modified: trunk/docs/cdkguide/en/src/main/resources/script/toggle.js
===================================================================
--- trunk/docs/cdkguide/en/src/main/resources/script/toggle.js 2008-08-06 10:37:08 UTC (rev 9935)
+++ trunk/docs/cdkguide/en/src/main/resources/script/toggle.js 2008-08-06 10:37:47 UTC (rev 9936)
@@ -1,3 +1,5 @@
+document.write('<div id="overlay"> </div>');
+
function dbToggle(node, expandText, collapseText) {
var dt = node.parentNode;
if (dt.nodeName.toLowerCase() == 'dt') {
Modified: trunk/docs/cdkguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml-common.xsl
===================================================================
--- trunk/docs/cdkguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml-common.xsl 2008-08-06 10:37:08 UTC (rev 9935)
+++ trunk/docs/cdkguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml-common.xsl 2008-08-06 10:37:47 UTC (rev 9936)
@@ -8,7 +8,7 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
- <!--xsl:import href="collapsing-navigation.xsl"/-->
+ <xsl:import href="collapsing-navigation.xsl"/>
<xsl:param name="html.stylesheet" select="'css/html.css'"/>
<xsl:param name="generate.toc" select="'book toc'"/>
Modified: trunk/docs/faq/en/src/main/resources/css/html.css
===================================================================
--- trunk/docs/faq/en/src/main/resources/css/html.css 2008-08-06 10:37:08 UTC (rev 9935)
+++ trunk/docs/faq/en/src/main/resources/css/html.css 2008-08-06 10:37:47 UTC (rev 9936)
@@ -6,26 +6,73 @@
color:#6699CC;
cursor:pointer;
}
+
+.toc dl dt span.chapter{
+ margin: 0px 0px 0px 20px;
+ padding: 0px;
+}
+
body {
-background-image:url(../images/community/bkg_gradient.gif);
-background-repeat:repeat-x;
+background-image:url(../images/richfaces_label2.png);
+background-repeat:no-repeat;
+background-attachment:fixed;
+background-position:top left;
+z-index:1;
color:#333333;
font-family:'Lucida Grande',Geneva,Verdana,Arial,sans-serif;
font-size:12px;
line-height:150%;
-margin:0pt auto;
-max-width:80em;
+max-width:1000px;
padding:0em 2em;
-text-align:justify;
+text-align:center;
}
+div#overlay{
+background-image:url(../images/community/bkg_gradient.gif);
+background-repeat:repeat-x;
+width:100%;
+height:100%;
+position:absolute;
+top:0px;
+left:0px;
+z-index:-1;
+}
+div.book, div.chapter, div.section{
+ width:1000px;
+ margin:0 auto;
+ text-align:justify;
+ font-weight: 100;
+}
+
+div.abstract {
+font-size:10px;
+}
+
+.docnav li.previous strong, .docnav li.next strong {
+ width: 200px;
+ height:22px;
+}
+
+.docnav a:hover {
+ cursor:pointer;
+}
+th, td {
+ border: 1px solid #AAAAAA;
+}
+#title, ul.docnav{
+ margin:0 auto;
+ width:1000px;
+ margin-left:0px;
+}
+
/* Center all images and Figure/Table titles */
-div.mediaobject img {margin:auto;}
+div.mediaobject img {margin:left;}
-p.title {text-align:center;}
+p.title {
+ text-align:left;
+ font-size: 11px;
+}
-pre.CSS {line-height:8px;}
-
.css_normal {
line-height:0px;
color:#000000;
@@ -71,8 +118,34 @@
.css_string {
color:#2A00FF;
}
-code {
+code.code{
color:#000000;
-font-size:12px;
-font-family:courier;
+font-size:14px;
+font-family:monospace;
+}
+a.new {
+background:transparent url(../images/new.png) no-repeat scroll right top;
+padding-right:70px;
+}
+a.updated {
+background:transparent url(../images/updated.png) no-repeat scroll right top;
+padding-right:70px;
+}
+.tbi {color: #aaaaaa;}
+.tbi p {color: #333333;}
+
+div.note, div.tip, div.important{
+ height:100%;
+}
+
+pre.JAVA {
+line-height:10px;
+!line-height:15px;
+}
+pre.CSS {
+line-height:10px;
+!line-height:15px;
+}
+div.table-contents table{
+ font-size:12px;
}
\ No newline at end of file
Modified: trunk/docs/faq/en/src/main/resources/script/toggle.js
===================================================================
--- trunk/docs/faq/en/src/main/resources/script/toggle.js 2008-08-06 10:37:08 UTC (rev 9935)
+++ trunk/docs/faq/en/src/main/resources/script/toggle.js 2008-08-06 10:37:47 UTC (rev 9936)
@@ -1,3 +1,5 @@
+document.write('<div id="overlay"> </div>');
+
function dbToggle(node, expandText, collapseText) {
var dt = node.parentNode;
if (dt.nodeName.toLowerCase() == 'dt') {
16 years, 5 months
JBoss Rich Faces SVN: r9935 - in trunk/samples/richfaces-demo/src/main: webapp/richfaces/graphValidator/examples and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-08-06 06:37:08 -0400 (Wed, 06 Aug 2008)
New Revision: 9935
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/validation/DayStatistics.java
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/additionalValidation.xhtml
Log:
Modified: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/validation/DayStatistics.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/validation/DayStatistics.java 2008-08-06 10:36:46 UTC (rev 9934)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/validation/DayStatistics.java 2008-08-06 10:37:08 UTC (rev 9935)
@@ -6,21 +6,25 @@
import java.util.ArrayList;
import java.util.List;
+import javax.faces.application.FacesMessage;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+
import org.hibernate.validator.Max;
import org.hibernate.validator.Min;
import org.hibernate.validator.NotNull;
/**
* @author Ilya Shaikovsky
- *
+ *
*/
public class DayStatistics {
-
+
public DayStatistics() {
- dayPasstimes.add(new PassTime("Sport",0));
- dayPasstimes.add(new PassTime("Entertainment",0));
- dayPasstimes.add(new PassTime("Sleeping",0));
- dayPasstimes.add(new PassTime("Games",0));
+ dayPasstimes.add(new PassTime("Sport", 0));
+ dayPasstimes.add(new PassTime("Entertainment", 0));
+ dayPasstimes.add(new PassTime("Sleeping", 0));
+ dayPasstimes.add(new PassTime("Games", 0));
}
private List<PassTime> dayPasstimes = new ArrayList<PassTime>();
@@ -32,16 +36,24 @@
public void setDayPasstimes(List<PassTime> dayPasstimes) {
this.dayPasstimes = dayPasstimes;
}
-
+
@NotNull
- @Min(value=1,message="Please feel at list one entry")
- @Max(value=24, message="Only 24h in a day!")
+ @Min(value = 1, message = "Please feel at list one entry")
+ @Max(value = 24, message = "Only 24h in a day!")
public Integer getTotalTime() {
Integer result = new Integer(0);
for (PassTime passtime : dayPasstimes) {
- result+=passtime.getTime();
+ result += passtime.getTime();
}
return result;
}
-
+
+ public void store(ActionEvent event) {
+ FacesContext.getCurrentInstance().addMessage(
+ event.getComponent().getClientId(
+ FacesContext.getCurrentInstance()),
+ new FacesMessage(FacesMessage.SEVERITY_INFO,
+ "Changes Stored Successfully",
+ "Changes Stored Successfully"));
+ }
}
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/additionalValidation.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/additionalValidation.xhtml 2008-08-06 10:36:46 UTC (rev 9934)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/additionalValidation.xhtml 2008-08-06 10:37:08 UTC (rev 9935)
@@ -5,25 +5,44 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
-
+ <style>
+ .red{
+ color:red;
+ }
+ .green{
+ color:green;
+ }
+ </style>
<h:form>
<rich:graphValidator value="#{dayStatistics}">
- <rich:dataTable value="#{dayStatistics.dayPasstimes}" var="pt" id="table">
- <rich:column>
- <h:inputText value="#{pt.title}" >
- <a4j:support reRender="out" event="onkeyup"/>
- </h:inputText>
- </rich:column>
- <rich:column>
- <rich:inputNumberSpinner minValue="0" maxValue="24"
- value="#{pt.time}" id="time">
- <rich:ajaxValidator event="onblur" />
- </rich:inputNumberSpinner>
- <rich:message for="time" />
- </rich:column>
- </rich:dataTable>
- <rich:messages />
+ <table>
+ <thead>
+ <tr>
+ <th>Activity</th>
+ <th>Time</th>
+ </tr>
+ </thead>
+ <tbody>
+ <a4j:repeat value="#{dayStatistics.dayPasstimes}" var="pt" id="table">
+ <tr>
+ <td align="center" width="100px">
+ <h:outputText value="#{pt.title}" />
+ </td>
+ <td align="center" width="100px">
+ <rich:inputNumberSpinner minValue="0" maxValue="24"
+ value="#{pt.time}" id="time">
+ <rich:ajaxValidator event="onblur" />
+ </rich:inputNumberSpinner>
+ </td>
+ <td>
+ <rich:message for="time" />
+ </td>
+ </tr>
+ </a4j:repeat>
+ </tbody>
+ </table>
</rich:graphValidator>
- <a4j:commandButton value="Store my details" action="#{pt.store}"/>
+ <a4j:commandButton value="Store my details" actionListener="#{dayStatistics.store}" reRender="panel"/>
+ <rich:messages infoClass="green" errorClass="red"/>
</h:form>
</ui:composition>
16 years, 5 months