Author: ldywicki
Date: Fri Aug 26 00:40:39 2011
New Revision: 1161948
URL: http://svn.apache.org/viewvc?rev=1161948&view=rev
Log:
Added notes about tables and serialization in documentation. Added support for
fancy code listings.
Added:
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/_navigation.conf
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/css/sh/
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/css/sh/shCore.css
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/css/sh/shThemeDefault.css
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/css/sh/shThemeEclipse.css
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/developers-guide/
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/developers-guide/index.conf
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/developers-guide/serialization.conf
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/developers-guide/tables.conf
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/js/
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/js/jquery.js
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/js/sh/
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/js/sh/XRegExp.js
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/js/sh/shBrushJava.js
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/js/sh/shBrushPlain.js
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/js/sh/shBrushXml.js
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/js/sh/shCore.js
Modified:
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/WEB-INF/scalate/layouts/default.jade
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/WEB-INF/scalate/layouts/headers.jade
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/_navigation.jade
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/css/style.css
Modified:
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/WEB-INF/scalate/layouts/default.jade
URL:
http://svn.apache.org/viewvc/karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/WEB-INF/scalate/layouts/default.jade?rev=1161948&r1=1161947&r2=1161948&view=diff
==============================================================================
---
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/WEB-INF/scalate/layouts/default.jade
(original)
+++
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/WEB-INF/scalate/layouts/default.jade
Fri Aug 26 00:40:39 2011
@@ -6,7 +6,7 @@
.container_12
.grid_12
.grid_4
- img(src={uri("images/karaf-logo.png")})
+ img(src={uri("/images/karaf-logo.png")})
.grid_8
h1 Apache Karaf WebConsole
@@ -16,7 +16,7 @@
.clear
.grid_3.sidebar
- = include("_navigation.jade")
+ = include("_navigation.conf")
.grid_9
!~~ body
Modified:
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/WEB-INF/scalate/layouts/headers.jade
URL:
http://svn.apache.org/viewvc/karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/WEB-INF/scalate/layouts/headers.jade?rev=1161948&r1=1161947&r2=1161948&view=diff
==============================================================================
---
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/WEB-INF/scalate/layouts/headers.jade
(original)
+++
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/WEB-INF/scalate/layouts/headers.jade
Fri Aug 26 00:40:39 2011
@@ -19,6 +19,28 @@ html(lang="en")
link(href={uri("/css/style.css")} rel="stylesheet" type="text/css")
link(href={uri("/css/reset.css")} rel="stylesheet" type="text/css")
+ link(href={uri("/css/sh/shCore.css")} rel="stylesheet" type="text/css")
+ link(href={uri("/css/sh/shThemeDefault.css")} rel="stylesheet"
type="text/css")
+ link(href={uri("/css/sh/shThemeEclipse.css")} rel="stylesheet"
type="text/css")
+
+ script(type="text/javascript" src={uri("/js/jquery.js")})
+ script(type="text/javascript" src={uri("/js/sh/XRegExp.js")})
+ script(type="text/javascript" src={uri("/js/sh/shCore.js")})
+ script(type="text/javascript" src={uri("/js/sh/shBrushJava.js")})
+ script(type="text/javascript" src={uri("/js/sh/shBrushPlain.js")})
+ script(type="text/javascript" src={uri("/js/sh/shBrushXml.js")})
+ :javascript
+ $(function() {
+ // find all pre elements and add brush: java/xml to class attribute
+ $('pre').each(function(key, value) {
+ attrs = $(value).attr('class'); // old value
+ arr = attrs.split(' ');
+ $(value).attr('class', attrs + '; brush: ' + arr[0]); // just append
brush..
+
+ SyntaxHighlighter.all({toolbar: true}); // paint my worl?d
+ })
+ })
+
- if (include_console)
link(href={uri("/css/scalate/console.css")} rel="stylesheet"
type="text/css")
Added:
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/_navigation.conf
URL:
http://svn.apache.org/viewvc/karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/_navigation.conf?rev=1161948&view=auto
==============================================================================
---
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/_navigation.conf
(added)
+++
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/_navigation.conf
Fri Aug 26 00:40:39 2011
@@ -0,0 +1,6 @@
+h3. [WebConsole|index]
+
+ * [Overview|overview]
+ * [Developers guide|developers-guide/index]
+
+ * [Manual|manual]
\ No newline at end of file
Modified:
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/_navigation.jade
URL:
http://svn.apache.org/viewvc/karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/_navigation.jade?rev=1161948&r1=1161947&r2=1161948&view=diff
==============================================================================
---
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/_navigation.jade
(original)
+++
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/_navigation.jade
Fri Aug 26 00:40:39 2011
@@ -5,4 +5,6 @@ ul
li
a(href={uri("/overview.html")}) Overview
li
+ a(href={uri("/developers-guide/index.html")}) Developers guide
+ li
a(href={uri("/manual.html")}) Manual
\ No newline at end of file
Added:
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/css/sh/shCore.css
URL:
http://svn.apache.org/viewvc/karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/css/sh/shCore.css?rev=1161948&view=auto
==============================================================================
---
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/css/sh/shCore.css
(added)
+++
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/css/sh/shCore.css
Fri Aug 26 00:40:39 2011
@@ -0,0 +1,226 @@
+/**
+ * SyntaxHighlighter
+ * http://alexgorbatchev.com/SyntaxHighlighter
+ *
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
+ *
+ * @version
+ * 3.0.83 (July 02 2010)
+ *
+ * @copyright
+ * Copyright (C) 2004-2010 Alex Gorbatchev.
+ *
+ * @license
+ * Dual licensed under the MIT and GPL licenses.
+ */
+.syntaxhighlighter a,
+.syntaxhighlighter div,
+.syntaxhighlighter code,
+.syntaxhighlighter table,
+.syntaxhighlighter table td,
+.syntaxhighlighter table tr,
+.syntaxhighlighter table tbody,
+.syntaxhighlighter table thead,
+.syntaxhighlighter table caption,
+.syntaxhighlighter textarea {
+ -moz-border-radius: 0 0 0 0 !important;
+ -webkit-border-radius: 0 0 0 0 !important;
+ background: none !important;
+ border: 0 !important;
+ bottom: auto !important;
+ float: none !important;
+ height: auto !important;
+ left: auto !important;
+ line-height: 1.1em !important;
+ margin: 0 !important;
+ outline: 0 !important;
+ overflow: visible !important;
+ padding: 0 !important;
+ position: static !important;
+ right: auto !important;
+ text-align: left !important;
+ top: auto !important;
+ vertical-align: baseline !important;
+ width: auto !important;
+ box-sizing: content-box !important;
+ font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier,
monospace !important;
+ font-weight: normal !important;
+ font-style: normal !important;
+ font-size: 1em !important;
+ min-height: inherit !important;
+ min-height: auto !important;
+}
+
+.syntaxhighlighter {
+ width: 100% !important;
+ margin: 1em 0 1em 0 !important;
+ position: relative !important;
+ overflow: auto !important;
+ font-size: 1em !important;
+}
+.syntaxhighlighter.source {
+ overflow: hidden !important;
+}
+.syntaxhighlighter .bold {
+ font-weight: bold !important;
+}
+.syntaxhighlighter .italic {
+ font-style: italic !important;
+}
+.syntaxhighlighter .line {
+ white-space: pre !important;
+}
+.syntaxhighlighter table {
+ width: 100% !important;
+}
+.syntaxhighlighter table caption {
+ text-align: left !important;
+ padding: .5em 0 0.5em 1em !important;
+}
+.syntaxhighlighter table td.code {
+ width: 100% !important;
+}
+.syntaxhighlighter table td.code .container {
+ position: relative !important;
+}
+.syntaxhighlighter table td.code .container textarea {
+ box-sizing: border-box !important;
+ position: absolute !important;
+ left: 0 !important;
+ top: 0 !important;
+ width: 100% !important;
+ height: 100% !important;
+ border: none !important;
+ background: white !important;
+ padding-left: 1em !important;
+ overflow: hidden !important;
+ white-space: pre !important;
+}
+.syntaxhighlighter table td.gutter .line {
+ text-align: right !important;
+ padding: 0 0.5em 0 1em !important;
+}
+.syntaxhighlighter table td.code .line {
+ padding: 0 1em !important;
+}
+.syntaxhighlighter.nogutter td.code .container textarea,
.syntaxhighlighter.nogutter td.code .line {
+ padding-left: 0em !important;
+}
+.syntaxhighlighter.show {
+ display: block !important;
+}
+.syntaxhighlighter.collapsed table {
+ display: none !important;
+}
+.syntaxhighlighter.collapsed .toolbar {
+ padding: 0.1em 0.8em 0em 0.8em !important;
+ font-size: 1em !important;
+ position: static !important;
+ width: auto !important;
+ height: auto !important;
+}
+.syntaxhighlighter.collapsed .toolbar span {
+ display: inline !important;
+ margin-right: 1em !important;
+}
+.syntaxhighlighter.collapsed .toolbar span a {
+ padding: 0 !important;
+ display: none !important;
+}
+.syntaxhighlighter.collapsed .toolbar span a.expandSource {
+ display: inline !important;
+}
+.syntaxhighlighter .toolbar {
+ position: absolute !important;
+ right: 1px !important;
+ top: 1px !important;
+ width: 11px !important;
+ height: 11px !important;
+ font-size: 10px !important;
+ z-index: 10 !important;
+}
+.syntaxhighlighter .toolbar span.title {
+ display: inline !important;
+}
+.syntaxhighlighter .toolbar a {
+ display: block !important;
+ text-align: center !important;
+ text-decoration: none !important;
+ padding-top: 1px !important;
+}
+.syntaxhighlighter .toolbar a.expandSource {
+ display: none !important;
+}
+.syntaxhighlighter.ie {
+ font-size: .9em !important;
+ padding: 1px 0 1px 0 !important;
+}
+.syntaxhighlighter.ie .toolbar {
+ line-height: 8px !important;
+}
+.syntaxhighlighter.ie .toolbar a {
+ padding-top: 0px !important;
+}
+.syntaxhighlighter.printing .line.alt1 .content,
+.syntaxhighlighter.printing .line.alt2 .content,
+.syntaxhighlighter.printing .line.highlighted .number,
+.syntaxhighlighter.printing .line.highlighted.alt1 .content,
+.syntaxhighlighter.printing .line.highlighted.alt2 .content {
+ background: none !important;
+}
+.syntaxhighlighter.printing .line .number {
+ color: #bbbbbb !important;
+}
+.syntaxhighlighter.printing .line .content {
+ color: black !important;
+}
+.syntaxhighlighter.printing .toolbar {
+ display: none !important;
+}
+.syntaxhighlighter.printing a {
+ text-decoration: none !important;
+}
+.syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a {
+ color: black !important;
+}
+.syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a
{
+ color: #008200 !important;
+}
+.syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a {
+ color: blue !important;
+}
+.syntaxhighlighter.printing .keyword {
+ color: #006699 !important;
+ font-weight: bold !important;
+}
+.syntaxhighlighter.printing .preprocessor {
+ color: gray !important;
+}
+.syntaxhighlighter.printing .variable {
+ color: #aa7700 !important;
+}
+.syntaxhighlighter.printing .value {
+ color: #009900 !important;
+}
+.syntaxhighlighter.printing .functions {
+ color: #ff1493 !important;
+}
+.syntaxhighlighter.printing .constants {
+ color: #0066cc !important;
+}
+.syntaxhighlighter.printing .script {
+ font-weight: bold !important;
+}
+.syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a {
+ color: gray !important;
+}
+.syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a {
+ color: #ff1493 !important;
+}
+.syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a {
+ color: red !important;
+}
+.syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a {
+ color: black !important;
+}
Added:
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/css/sh/shThemeDefault.css
URL:
http://svn.apache.org/viewvc/karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/css/sh/shThemeDefault.css?rev=1161948&view=auto
==============================================================================
---
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/css/sh/shThemeDefault.css
(added)
+++
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/css/sh/shThemeDefault.css
Fri Aug 26 00:40:39 2011
@@ -0,0 +1,117 @@
+/**
+ * SyntaxHighlighter
+ * http://alexgorbatchev.com/SyntaxHighlighter
+ *
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
+ *
+ * @version
+ * 3.0.83 (July 02 2010)
+ *
+ * @copyright
+ * Copyright (C) 2004-2010 Alex Gorbatchev.
+ *
+ * @license
+ * Dual licensed under the MIT and GPL licenses.
+ */
+.syntaxhighlighter {
+ background-color: white !important;
+}
+.syntaxhighlighter .line.alt1 {
+ background-color: white !important;
+}
+.syntaxhighlighter .line.alt2 {
+ background-color: white !important;
+}
+.syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter
.line.highlighted.alt2 {
+ background-color: #e0e0e0 !important;
+}
+.syntaxhighlighter .line.highlighted.number {
+ color: black !important;
+}
+.syntaxhighlighter table caption {
+ color: black !important;
+}
+.syntaxhighlighter .gutter {
+ color: #afafaf !important;
+}
+.syntaxhighlighter .gutter .line {
+ border-right: 3px solid #6ce26c !important;
+}
+.syntaxhighlighter .gutter .line.highlighted {
+ background-color: #6ce26c !important;
+ color: white !important;
+}
+.syntaxhighlighter.printing .line .content {
+ border: none !important;
+}
+.syntaxhighlighter.collapsed {
+ overflow: visible !important;
+}
+.syntaxhighlighter.collapsed .toolbar {
+ color: blue !important;
+ background: white !important;
+ border: 1px solid #6ce26c !important;
+}
+.syntaxhighlighter.collapsed .toolbar a {
+ color: blue !important;
+}
+.syntaxhighlighter.collapsed .toolbar a:hover {
+ color: red !important;
+}
+.syntaxhighlighter .toolbar {
+ color: white !important;
+ background: #6ce26c !important;
+ border: none !important;
+}
+.syntaxhighlighter .toolbar a {
+ color: white !important;
+}
+.syntaxhighlighter .toolbar a:hover {
+ color: black !important;
+}
+.syntaxhighlighter .plain, .syntaxhighlighter .plain a {
+ color: black !important;
+}
+.syntaxhighlighter .comments, .syntaxhighlighter .comments a {
+ color: #008200 !important;
+}
+.syntaxhighlighter .string, .syntaxhighlighter .string a {
+ color: blue !important;
+}
+.syntaxhighlighter .keyword {
+ color: #006699 !important;
+}
+.syntaxhighlighter .preprocessor {
+ color: gray !important;
+}
+.syntaxhighlighter .variable {
+ color: #aa7700 !important;
+}
+.syntaxhighlighter .value {
+ color: #009900 !important;
+}
+.syntaxhighlighter .functions {
+ color: #ff1493 !important;
+}
+.syntaxhighlighter .constants {
+ color: #0066cc !important;
+}
+.syntaxhighlighter .script {
+ font-weight: bold !important;
+ color: #006699 !important;
+ background-color: none !important;
+}
+.syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
+ color: gray !important;
+}
+.syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
+ color: #ff1493 !important;
+}
+.syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
+ color: red !important;
+}
+
+.syntaxhighlighter .keyword {
+ font-weight: bold !important;
+}
Added:
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/css/sh/shThemeEclipse.css
URL:
http://svn.apache.org/viewvc/karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/css/sh/shThemeEclipse.css?rev=1161948&view=auto
==============================================================================
---
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/css/sh/shThemeEclipse.css
(added)
+++
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/css/sh/shThemeEclipse.css
Fri Aug 26 00:40:39 2011
@@ -0,0 +1,128 @@
+/**
+ * SyntaxHighlighter
+ * http://alexgorbatchev.com/SyntaxHighlighter
+ *
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
+ *
+ * @version
+ * 3.0.83 (July 02 2010)
+ *
+ * @copyright
+ * Copyright (C) 2004-2010 Alex Gorbatchev.
+ *
+ * @license
+ * Dual licensed under the MIT and GPL licenses.
+ */
+.syntaxhighlighter {
+ background-color: white !important;
+}
+.syntaxhighlighter .line.alt1 {
+ background-color: white !important;
+}
+.syntaxhighlighter .line.alt2 {
+ background-color: white !important;
+}
+.syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter
.line.highlighted.alt2 {
+ background-color: #c3defe !important;
+}
+.syntaxhighlighter .line.highlighted.number {
+ color: white !important;
+}
+.syntaxhighlighter table caption {
+ color: black !important;
+}
+.syntaxhighlighter .gutter {
+ color: #787878 !important;
+}
+.syntaxhighlighter .gutter .line {
+ border-right: 3px solid #d4d0c8 !important;
+}
+.syntaxhighlighter .gutter .line.highlighted {
+ background-color: #d4d0c8 !important;
+ color: white !important;
+}
+.syntaxhighlighter.printing .line .content {
+ border: none !important;
+}
+.syntaxhighlighter.collapsed {
+ overflow: visible !important;
+}
+.syntaxhighlighter.collapsed .toolbar {
+ color: #3f5fbf !important;
+ background: white !important;
+ border: 1px solid #d4d0c8 !important;
+}
+.syntaxhighlighter.collapsed .toolbar a {
+ color: #3f5fbf !important;
+}
+.syntaxhighlighter.collapsed .toolbar a:hover {
+ color: #aa7700 !important;
+}
+.syntaxhighlighter .toolbar {
+ color: #a0a0a0 !important;
+ background: #d4d0c8 !important;
+ border: none !important;
+}
+.syntaxhighlighter .toolbar a {
+ color: #a0a0a0 !important;
+}
+.syntaxhighlighter .toolbar a:hover {
+ color: red !important;
+}
+.syntaxhighlighter .plain, .syntaxhighlighter .plain a {
+ color: black !important;
+}
+.syntaxhighlighter .comments, .syntaxhighlighter .comments a {
+ color: #3f5fbf !important;
+}
+.syntaxhighlighter .string, .syntaxhighlighter .string a {
+ color: #2a00ff !important;
+}
+.syntaxhighlighter .keyword {
+ color: #7f0055 !important;
+}
+.syntaxhighlighter .preprocessor {
+ color: #646464 !important;
+}
+.syntaxhighlighter .variable {
+ color: #aa7700 !important;
+}
+.syntaxhighlighter .value {
+ color: #009900 !important;
+}
+.syntaxhighlighter .functions {
+ color: #ff1493 !important;
+}
+.syntaxhighlighter .constants {
+ color: #0066cc !important;
+}
+.syntaxhighlighter .script {
+ font-weight: bold !important;
+ color: #7f0055 !important;
+ background-color: none !important;
+}
+.syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
+ color: gray !important;
+}
+.syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
+ color: #ff1493 !important;
+}
+.syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
+ color: red !important;
+}
+
+.syntaxhighlighter .keyword {
+ font-weight: bold !important;
+}
+.syntaxhighlighter .xml .keyword {
+ color: #3f7f7f !important;
+ font-weight: normal !important;
+}
+.syntaxhighlighter .xml .color1, .syntaxhighlighter .xml .color1 a {
+ color: #7f007f !important;
+}
+.syntaxhighlighter .xml .string {
+ font-style: italic !important;
+ color: #2a00ff !important;
+}
Modified:
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/css/style.css
URL:
http://svn.apache.org/viewvc/karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/css/style.css?rev=1161948&r1=1161947&r2=1161948&view=diff
==============================================================================
---
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/css/style.css
(original)
+++
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/css/style.css
Fri Aug 26 00:40:39 2011
@@ -42,3 +42,7 @@ a:link, a:active, a:visited {
color: #834C24;
text-decoration: none;
}
+
+pre {
+ font-family: monospace;
+}
\ No newline at end of file
Added:
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/developers-guide/index.conf
URL:
http://svn.apache.org/viewvc/karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/developers-guide/index.conf?rev=1161948&view=auto
==============================================================================
---
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/developers-guide/index.conf
(added)
+++
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/developers-guide/index.conf
Fri Aug 26 00:40:39 2011
@@ -0,0 +1,6 @@
+h1. Developer guide
+
+This part of manual contains informations for extensions developers.
+
+ * [Displaying tables|tables]
+ * [Serialization|serialization]
\ No newline at end of file
Added:
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/developers-guide/serialization.conf
URL:
http://svn.apache.org/viewvc/karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/developers-guide/serialization.conf?rev=1161948&view=auto
==============================================================================
---
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/developers-guide/serialization.conf
(added)
+++
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/developers-guide/serialization.conf
Fri Aug 26 00:40:39 2011
@@ -0,0 +1,40 @@
+h1. Serialization
+
+With wicket everything is serialized. Remember this. This great framework
provides support for stateful elements but there is a price - we can not use
not serializable objects. Don't be afraid - we still might read them but we
have to follow few rules.
+
+ # First of all, do not assign not serializable objects to fields
+ # Do not create final variables to use in anonymous classes, it will work,
but you'll get mess in logs. Look at code below
+ {code:java}
+ final Entity en = dao.find(id); # broken!
+ add(new Form<Entity>() {
+ public void onSubmit() {
+ dao.save(getModelObject());
+ }
+ });
+ {code}
+ As you see in marked line of this code we declared *en* variable as a final.
This means that JVM will try to write reference to this variable in
ObjectOutputStream, and as you might expect - you will get
NotSerializableException
+ # For list views and repeaters use LoadableDetachableModels, in IDataProvider
implementations/extensions remember to return LoadableDetachableModel.
+
+As long as you follow there rules you might sleep peacefully. In any case,
when you will meet mr. NotSerializable, make own life easier and use
-Dsun.io.serialization.extendedDebugInfo=true parameter to add path to not
serializable element in stack trace. With these you'll get message like this:
+
+{code}
+Caused by: java.io.NotSerializableException:
org.apache.felix.framework.ServiceRegistrationImpl$ServiceReferenceImpl
+ - field (class
"org.apache.karaf.webconsole.osgi.internal.bundle.DetailsPage$4$1", name:
"val$reference", type: "interface org.osgi.framework.ServiceReference")
+ - object (class
"org.apache.karaf.webconsole.osgi.internal.bundle.DetailsPage$4$1",
[MarkupContainer [Component id = serviceInUseProperty]])
+ - element of array (index: 1)
+ - array (class "[Ljava.lang.Object;", size: 2)
+ - field (class "org.apache.wicket.MarkupContainer", name: "children",
type: "class java.lang.Object")
+ - object (class "org.apache.wicket.markup.html.list.ListItem",
[MarkupContainer [Component id = 0]])
+ - element of array (index: 0)
+ - array (class "[Ljava.lang.Object;", size: 7)
+ - field (class "org.apache.wicket.MarkupContainer", name: "children",
type: "class java.lang.Object")
+ - object (class
"org.apache.karaf.webconsole.osgi.internal.bundle.DetailsPage$4",
[MarkupContainer [Component id = servicesInUse]])
+ - element of array (index: 8)
+ - array (class "[Ljava.lang.Object;", size: 9)
+ - field (class "org.apache.wicket.MarkupContainer", name: "children",
type: "class java.lang.Object")
+ - root object (class
"org.apache.karaf.webconsole.osgi.internal.bundle.DetailsPage", [Page class =
org.apache.karaf.webconsole.osgi.internal.bundle.DetailsPage, id = 14, version
= 0])
+{code}
+instead of
+{code}
+Caused by: java.io.NotSerializableException:
org.apache.felix.framework.ServiceRegistrationImpl$ServiceReferenceImpl
+{code}
\ No newline at end of file
Added:
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/developers-guide/tables.conf
URL:
http://svn.apache.org/viewvc/karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/developers-guide/tables.conf?rev=1161948&view=auto
==============================================================================
---
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/developers-guide/tables.conf
(added)
+++
karaf/sandbox/pieber/karaf-webconsole/trunk/manual/src/main/webapp/developers-guide/tables.conf
Fri Aug 26 00:40:39 2011
@@ -0,0 +1,30 @@
+h1. Tables
+
+Tables are one from most used elements in management tools to display data. As
you know WebConsole is based on [Apache Wicket|http://wicket.apache.org] and we
use Wicket's style data tables.
+
+h2. Configuring tables
+
+There is number of options for DataTables, hovewer in this section we'll
conver only these related to columns.
+
+h3. Column types
+
+Wicket comes with *IColumn* type which is used to draw table columns. By
implementing this interface you may put own logic, but why don't use columns
provided with framework?
+
+Let's see what kind of columns Wicket ship:
+* *AbstractColumn* is base class for implementing columns, for example:
+{code:java}
+public class CountingColumn<T> extends AbstractColumn<T> {
+ private int counter = 1;
+ // constructors are skipped
+ public void populateItem(Item<ICellPopulator<T>> cellItem, String
componentId, IModel<T> rowModel) {
+ cellItem.add(new Label(componentId, "" + counter++));
+ }
+}
+{code}
+This code will create new label inside a cell and assign next number to it.
+* *PropertyColumn* very usefull to display properties from model, eg.
+{code:java}
+new PropertyColumn<T>(Model.of("Display value"), "propertyExp");
+{code}
+This will try to evaluate expression 'propertyExp' to obtain field from given
object or value from map.
+* *OrdinalColumn* is small column which does same thing like example with
AbstractColumn above.
\ No newline at end of file