JBoss Rich Faces SVN: r11150 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-11-13 11:20:27 -0500 (Thu, 13 Nov 2008)
New Revision: 11150
Modified:
trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml
Log:
RF-4616: jboss wiki articles links
Modified: trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml 2008-11-13 15:46:11 UTC (rev 11149)
+++ trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml 2008-11-13 16:20:27 UTC (rev 11150)
@@ -83,24 +83,19 @@
<section>
<title>Relevant resources links</title>
- <para>
- <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/commandLink.jsf?c=com...">Here</ulink> you can see the example of <emphasis role="bold"
- ><property><a4j:commandLink></property></emphasis> usage and sources for the given example
+ <para>Vizit
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/commandLink.jsf?c=com...">CommandLink demo</ulink> page at RichFaces
+ live demo for examples of component usage and their sources.
</para>
- <para>
- <ulink
- url="http://wiki.jboss.org/auth/wiki/RichFacesConfirmationOnClick">
- Here</ulink>
- there is detailed information on how to use JavaScript
- <code>"window.confirmation"</code>
- with
- <code>"onclick"</code>
- on
- <emphasis role="bold">
- <property><a4j:commandLink></property>
- </emphasis>
- .
- </para>
+ <para>Useful articles:</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <ulink url="http://www.jboss.org/community/docs/DOC-11850">How to use "window.confirm" JavaScript with <rich:commandLink> "onclick" attribute</ulink>
+ in RichFaces cookbook at JBoss portal.
+ </para>
+ </listitem>
+ </itemizedlist>
</section>
</chapter>
\ No newline at end of file
16 years, 10 months
JBoss Rich Faces SVN: r11149 - in trunk/test-applications/seleniumTest/richfaces/src: main/java/org/ajax4jsf/model and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2008-11-13 10:46:11 -0500 (Thu, 13 Nov 2008)
New Revision: 11149
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/OrderingListTestBean.java
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/model/ListShuttleItem.java
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/orderingList/orderingListTest.xhtml
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/OrderingListTest.java
Log:
RF-4893
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/OrderingListTestBean.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/OrderingListTestBean.java 2008-11-13 14:56:39 UTC (rev 11148)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/OrderingListTestBean.java 2008-11-13 15:46:11 UTC (rev 11149)
@@ -21,21 +21,19 @@
package org.ajax4jsf.bean;
-import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
-import java.util.HashSet;
import java.util.Iterator;
+import java.util.LinkedHashSet;
import java.util.List;
-import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
-import javax.faces.convert.Converter;
+import org.ajax4jsf.model.ListShuttleItem;
+
public class OrderingListTestBean {
- private Converter converter;
- private List<Item> items;
- private Collection<Item> selection;
+ private List<ListShuttleItem> items;
+ private Collection<ListShuttleItem> selection;
private Object activeItem;
private Boolean orderControlsVisible;
@@ -49,12 +47,11 @@
}
public void init() {
- converter = new ItemConverter();
- items = new ArrayList<Item>();
+ items = new ArrayList<ListShuttleItem>();
for (int i = 0; i < 4; i++) {
- items.add(new Item("item" + i));
+ items.add(new ListShuttleItem(i, "item" + i));
}
- selection = new HashSet<Item>();
+ selection = new LinkedHashSet<ListShuttleItem>();
orderControlsVisible = true;
showButtonLabels = true;
setRendered(true);
@@ -66,11 +63,11 @@
return FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("actionResult");
}
- public Collection<Item> getSelection() {
+ public Collection<ListShuttleItem> getSelection() {
return selection;
}
- public void setSelection(Collection<Item> selection) {
+ public void setSelection(Collection<ListShuttleItem> selection) {
this.selection = selection;
}
@@ -82,26 +79,18 @@
this.activeItem = activeItem;
}
- public Converter getConverter() {
- return converter;
- }
-
- public void setConverter(Converter converter) {
- this.converter = converter;
- }
-
- public List<Item> getItems() {
+ public List<ListShuttleItem> getItems() {
return items;
}
- public void setItems(List<Item> items) {
+ public void setItems(List<ListShuttleItem> items) {
this.items = items;
}
public String getSelectionString() {
StringBuffer buff = new StringBuffer();
- for (Iterator<Item> it = selection.iterator(); it.hasNext();) {
- Item item = it.next();
+ for (Iterator<ListShuttleItem> it = selection.iterator(); it.hasNext();) {
+ ListShuttleItem item = it.next();
buff.append(item.getName());
if (it.hasNext()) {
buff.append(',');
@@ -154,81 +143,4 @@
public Boolean getImmediate() {
return immediate;
}
-
-
- private class ItemConverter implements Converter {
-
- /* (non-Javadoc)
- * @see javax.faces.convert.Converter#getAsObject(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.String)
- */
- public Object getAsObject(FacesContext context, UIComponent component,
- String value) {
- return new Item(value);
- }
-
- /* (non-Javadoc)
- * @see javax.faces.convert.Converter#getAsString(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)
- */
- public String getAsString(FacesContext context, UIComponent component,
- Object value) {
- Item optionItem = (Item) value;
- return optionItem.getName();
- }
-
- }
-
- public class Item implements Serializable {
-
- private static final long serialVersionUID = 1083694594537030790L;
-
- private String name;
-
- public String action() {
- FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("actionResult", name);
- return null;
- }
-
- public Item(String name) {
- super();
- this.name = name;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String toString() {
- return this.getClass().getSimpleName() + " [" + name + "]";
- }
-
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + ((name == null) ? 0 : name.hashCode());
- return result;
- }
-
- public boolean equals(Object obj) {
- if (this == obj)
- return true;
- if (obj == null)
- return false;
- if (getClass() != obj.getClass())
- return false;
- Item other = (Item) obj;
- if (name == null) {
- if (other.name != null)
- return false;
- } else if (!name.equals(other.name))
- return false;
-
- return true;
- }
-
- }
-
}
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/model/ListShuttleItem.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/model/ListShuttleItem.java 2008-11-13 14:56:39 UTC (rev 11148)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/model/ListShuttleItem.java 2008-11-13 15:46:11 UTC (rev 11149)
@@ -2,6 +2,8 @@
import java.io.Serializable;
+import javax.faces.context.FacesContext;
+
public class ListShuttleItem implements Serializable {
private static final long serialVersionUID = -7540977992693127759L;
@@ -73,7 +75,8 @@
return name.hashCode() + numder;
}
-
-
-
+ public String action() {
+ FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("actionResult", name);
+ return null;
+ }
}
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/orderingList/orderingListTest.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/OrderingListTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/OrderingListTest.java 2008-11-13 14:56:39 UTC (rev 11148)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/OrderingListTest.java 2008-11-13 15:46:11 UTC (rev 11149)
@@ -77,6 +77,16 @@
private String immediateId;
/**
+ * converter defined by component attribute and configured at application level works
+ */
+ @Test
+ public void testConverter(Template template) {
+ renderPage(template, initMethod);
+ initFields();
+ AssertValueEquals(orderingListId + ":0StateInput", "0:0:item0", "Converter doesn't work.");
+ }
+
+ /**
* keyboard navigation works for component
*/
@Test
@@ -321,7 +331,7 @@
clickById(ajax);
waitForAjaxCompletion();
AssertTextEquals(actionResultText, "item0");
- AssertTextEquals(selectionText, "item0,item2");
+ AssertTextEquals(selectionText, "item2,item0");
//AssertTextEquals(activeItemText, "Item [item0]");
writeStatus("Select one row");
16 years, 10 months
JBoss Rich Faces SVN: r11148 - in trunk/sandbox/ui/editor/src/main: templates and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2008-11-13 09:56:39 -0500 (Thu, 13 Nov 2008)
New Revision: 11148
Modified:
trunk/sandbox/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java
trunk/sandbox/ui/editor/src/main/templates/editor.jspx
Log:
Editor: add f:params transferring to configuration
Modified: trunk/sandbox/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java
===================================================================
--- trunk/sandbox/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java 2008-11-13 14:52:43 UTC (rev 11147)
+++ trunk/sandbox/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java 2008-11-13 14:56:39 UTC (rev 11148)
@@ -23,12 +23,14 @@
import java.io.IOException;
import java.io.InputStream;
import java.util.Iterator;
+import java.util.List;
import java.util.Map;
import java.util.Properties;
import javax.faces.FacesException;
import javax.faces.component.UIComponent;
import javax.faces.component.UIInput;
+import javax.faces.component.UIParameter;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import javax.faces.convert.ConverterException;
@@ -158,46 +160,89 @@
public void writeEditorConfigurationAttributes(FacesContext context,
UIEditor component) throws IOException {
ResponseWriter writer = context.getResponseWriter();
-
- if(component.getTheme() != null){
- writer.writeText("tinyMceParams.theme = " + ScriptUtils.toScript(component.getTheme()) + ";\n", null);
+
+ if (component.getTheme() != null) {
+ writer.writeText("tinyMceParams.theme = "
+ + ScriptUtils.toScript(component.getTheme()) + ";\n", null);
}
- if(component.getLanguage() != null){
- writer.writeText("tinyMceParams.language = " + ScriptUtils.toScript(component.getLanguage()) + ";\n", null);
+ if (component.getLanguage() != null) {
+ writer.writeText("tinyMceParams.language = "
+ + ScriptUtils.toScript(component.getLanguage()) + ";\n",
+ null);
}
- if(component.getAutoResize() != null){
- writer.writeText("tinyMceParams.auto_resize = " + ScriptUtils.toScript(component.getAutoResize())+ ";\n", null);
+ if (component.getAutoResize() != null) {
+ writer.writeText("tinyMceParams.auto_resize = "
+ + ScriptUtils.toScript(component.getAutoResize()) + ";\n",
+ null);
}
- if(component.getReadonly() != null){
- writer.writeText("tinyMceParams.readonly = " + ScriptUtils.toScript(component.getReadonly())+ ";\n", null);
+ if (component.getReadonly() != null) {
+ writer.writeText("tinyMceParams.readonly = "
+ + ScriptUtils.toScript(component.getReadonly()) + ";\n",
+ null);
}
- if(component.getPlugins() != null){
- writer.writeText("tinyMceParams.plugins = " + ScriptUtils.toScript(component.getPlugins()) +";\n", null);
+ if (component.getPlugins() != null) {
+ writer.writeText("tinyMceParams.plugins = "
+ + ScriptUtils.toScript(component.getPlugins()) + ";\n",
+ null);
}
- if(component.getWidth() != 0){
- writer.writeText("tinyMceParams.width = " + ScriptUtils.toScript(component.getWidth()) +";\n", null);
+ if (component.getWidth() != 0) {
+ writer.writeText("tinyMceParams.width = "
+ + ScriptUtils.toScript(component.getWidth()) + ";\n", null);
}
- if(component.getHeight() != 0){
- writer.writeText("tinyMceParams.height = " + ScriptUtils.toScript(component.getHeight()) +";\n", null);
+ if (component.getHeight() != 0) {
+ writer
+ .writeText("tinyMceParams.height = "
+ + ScriptUtils.toScript(component.getHeight())
+ + ";\n", null);
}
- if(component.getOninit() != null){
- writer.writeText("tinyMceParams.oninit = " + ScriptUtils.toScript(component.getOninit()) +";\n", null);
+ if (component.getOninit() != null) {
+ writer
+ .writeText("tinyMceParams.oninit = "
+ + ScriptUtils.toScript(component.getOninit())
+ + ";\n", null);
}
- if(component.getOnsave() != null){
- writer.writeText("tinyMceParams.save_callback = " + ScriptUtils.toScript(component.getOnsave()) +";\n", null);
+ if (component.getOnsave() != null) {
+ writer
+ .writeText("tinyMceParams.save_callback = "
+ + ScriptUtils.toScript(component.getOnsave())
+ + ";\n", null);
}
- if(component.getOnchange() != null){
- writer.writeText("tinyMceParams.onchange_callback = " + ScriptUtils.toScript(component.getOnchange()) +";\n", null);
+ if (component.getOnchange() != null) {
+ writer.writeText("tinyMceParams.onchange_callback = "
+ + ScriptUtils.toScript(component.getOnchange()) + ";\n",
+ null);
}
- if(component.getOnsetup() != null){
- writer.writeText("tinyMceParams.setup = " + ScriptUtils.toScript(component.getOnsetup()) +";\n", null);
+ if (component.getOnsetup() != null) {
+ writer.writeText("tinyMceParams.setup = "
+ + ScriptUtils.toScript(component.getOnsetup()) + ";\n",
+ null);
}
- if(component.getSkin() != null){
- writer.writeText("tinyMceParams.skin = " + ScriptUtils.toScript(component.getSkin()) +";\n", null);
- }else{
+ if (component.getSkin() != null) {
+ writer.writeText("tinyMceParams.skin = "
+ + ScriptUtils.toScript(component.getSkin()) + ";\n", null);
+ } else {
writer.writeText("if(!tinyMceParams.skin){\n", null);
writer.writeText(" tinyMceParams.skin = 'richfaces';\n", null);
writer.writeText("}\n", null);
}
}
+
+ public void writeEditorParameters(FacesContext context,
+ UIComponent component) throws IOException {
+
+ ResponseWriter writer = context.getResponseWriter();
+ List<UIComponent> children = component.getChildren();
+ for (UIComponent child : children) {
+ if (child instanceof UIParameter) {
+ UIParameter parameter = (UIParameter) child;
+ StringBuilder b = new StringBuilder();
+ b.append("tinyMceParams.");
+ ScriptUtils.addEncoded(b, parameter.getName());
+ b.append(" = ");
+ b.append(ScriptUtils.toScript(parameter.getValue()));
+ b.append(";\n");
+ writer.writeText(b.toString(), null);
+ }
+ }
+ }
}
Modified: trunk/sandbox/ui/editor/src/main/templates/editor.jspx
===================================================================
--- trunk/sandbox/ui/editor/src/main/templates/editor.jspx 2008-11-13 14:52:43 UTC (rev 11147)
+++ trunk/sandbox/ui/editor/src/main/templates/editor.jspx 2008-11-13 14:56:39 UTC (rev 11148)
@@ -33,6 +33,7 @@
<f:call name="writeEditorConfigurationParameters" />
<f:call name="writeEditorConfigurationAttributes" />
+ <f:call name="writeEditorParameters" />
var richParams = {extScriptSuffix:'#{this:getSriptMappingSuffix(context)}',
extCssSuffix:'#{this:getCssMappingSuffix(context)}'}
16 years, 10 months
JBoss Rich Faces SVN: r11147 - in trunk/docs/migrationguide/en/src/main/resources: images and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-11-13 09:52:43 -0500 (Thu, 13 Nov 2008)
New Revision: 11147
Modified:
trunk/docs/migrationguide/en/src/main/resources/css/html.css
trunk/docs/migrationguide/en/src/main/resources/images/close.png
trunk/docs/migrationguide/en/src/main/resources/images/feedback_logo.png
trunk/docs/migrationguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml.xsl
Log:
https://jira.jboss.org/jira/browse/RF-4644 - feedback was fixed
Modified: trunk/docs/migrationguide/en/src/main/resources/css/html.css
===================================================================
--- trunk/docs/migrationguide/en/src/main/resources/css/html.css 2008-11-13 14:51:56 UTC (rev 11146)
+++ trunk/docs/migrationguide/en/src/main/resources/css/html.css 2008-11-13 14:52:43 UTC (rev 11147)
@@ -150,6 +150,8 @@
font-size:12px;
}
+/* Feedback styles */
+
* html div#feedback-wrapper {position: absolute;
top:expression(eval(document.compatMode &&
document.compatMode=='CSS1Compat') ?
@@ -158,6 +160,13 @@
: document.body.scrollTop
+(document.body.clientHeight-this.clientHeight));}
+* html #feedback-maincontainer {position: absolute;
+top:expression(eval(document.compatMode &&
+document.compatMode=='CSS1Compat') ?
+documentElement.scrollTop
++(documentElement.clientHeight-this.clientHeight)
+: document.body.scrollTop
++(document.body.clientHeight-this.clientHeight));}
#feedback-wrapper{
margin: 0px;
@@ -166,7 +175,7 @@
bottom:0px;
right:0px;
height:322px;
- width: 136px;
+ width: 100px;
overflow: hidden;
}
@@ -175,93 +184,94 @@
display: block;
}
+
+#feedback-header{
+ background-color: #AAB3BD;
+ text-align: center;
+ color: white;
+ width: 100%;
+ font-weight: bold;
+ position: relative;
+ height: 20px;
+ padding: 0px;
+ margin:0px;
+}
+
+#feedback-close{
+ display:block;
+ position:absolute;
+ right:2px;
+ top:2px;
+ width:12px;
+ border: 0px;
+}
+
#feedback-state{
font-weight: bold;
height: 20px;
- width: 460px;
+ width: 100%;
+ line-height: 20px;
overflow: hidden;
- float: left;
}
-/*
-#feedback-maincontainer{
- width: 520px;
- height: 320px;
- border: 1px dotted #CCC;
- font-size: 12px;
- font-family: Arial, Helvetica, sans-serif;
- margin-left: 132px;
- text-align:center;
- background: #F5F5F5;
- padding:0 50px 30px 10px;
-}
-*/
#feedback-maincontainer{
z-index:2000;
- padding: 5px;
- text-align: center;
-
+ text-align: center;
background: #F5F5F5;
border: 1px solid #CCC;
position: fixed;
- top: 250px;
- left: 350px;
-
+ bottom: 0px;
+ right: 120px;
}
*html #feedback-maincontainer{
- width: 550px;
+ width: 520px;
}
-#feedback-slidedown{
- z-index:2000;
- padding: 5px;
- text-align: left;
- width:300px;
- height:100px;
- background: #F5F5F5;
- border: 1px solid #CCC;
- position: absolute;
- top: -250px;
- right:-400px;
- overflow: hidden;
+
+#feedback-mailform{
+ margin: 0px 20px 0px 20px;
+ padding-bottom:5px;
}
+*html #feedback-mailform{
+ margin: 0px 20px 0px 0px;
+ padding-bottom:5px;
+}
+
.feedback-textbox-div{
font-weight: bold;
- padding-right: 20px;
- margin: 5px 0px 5px 0px;
- text-align: right;
+ margin-bottom:5px;
+ text-align: right;
color: #415973;
- vertical-align: middle;
}
-#message{
+#feedback-message{
width: 200px;
height: 150px;
padding: 2px;
}
.feedback-formbutton{
-font-size: 12px;
-font-family: Arial, Helvetica, sans-serif;
-color: #415973;
+ font-size: 12px;
+ font-family: Arial, Helvetica, sans-serif;
+ color: #415973;
}
-.feedback-textbox, #message{
-background-color:#FFFFFF;
-border:1px solid #A5ACB2;
-padding:2px 1px 3px 5px;
-width: 400px;
-font-size: 12px;
-font-family: Arial, Helvetica, sans-serif;
-color: #000;
+.feedback-textbox, #feedback-message{
+ background-color:#FFFFFF;
+ border:1px solid #A5ACB2;
+ padding:2px 1px 3px 5px;
+ width: 400px;
+ font-size: 12px;
+ font-family: Arial, Helvetica, sans-serif;
+ color: #000;
}
.feedback-button-container{
-margin: 0px 5px 0px 0px;
+ margin: 0px 5px 0px 0px;
}
.feedback-images{
-border:0;
-margin:0;
-display: inline;
+ border:0;
+ margin:0;
+ display: inline;
}
\ No newline at end of file
Modified: trunk/docs/migrationguide/en/src/main/resources/images/close.png
===================================================================
(Binary files differ)
Modified: trunk/docs/migrationguide/en/src/main/resources/images/feedback_logo.png
===================================================================
(Binary files differ)
Modified: 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 2008-11-13 14:51:56 UTC (rev 11146)
+++ trunk/docs/migrationguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml.xsl 2008-11-13 14:52:43 UTC (rev 11147)
@@ -1,235 +1,237 @@
-<?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="user.head.content">
- <xsl:param name="node" select="." />
- <script type="text/javascript" src="script/prototype-1.6.0.2.js"><xsl:comment>If you see this message, your web browser doesn't support JavaScript or JavaScript is disabled.</xsl:comment></script>
- <script type="text/javascript" src="script/effects.js"><xsl:comment>If you see this message, your web browser doesn't support JavaScript or JavaScript is disabled.</xsl:comment></script>
- <script type="text/javascript" src="script/scriptaculous.js"><xsl:comment>If you see this message, your web browser doesn't support JavaScript or JavaScript is disabled.</xsl:comment></script>
- <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="header.navigation">
- <xsl:param name="prev" select="/foo"/>
- <xsl:param name="next" select="/foo"/>
- <xsl:param name="nav.context"/>
- <xsl:variable name="home" select="/*[1]"/>
- <xsl:variable name="up" select="parent::*"/>
- <xsl:variable name="row1" select="$navig.showtitles != 0"/>
- <xsl:variable name="row2" select="count($prev) > 0 or (count($up) > 0 and generate-id($up) != generate-id($home) and $navig.showtitles != 0) or count($next) > 0"/>
- <xsl:if test="$suppress.navigation = '0' and $suppress.header.navigation = '0'">
- <xsl:if test="$row1 or $row2">
- <xsl:if test="$row1">
- <div id="overlay">
- <xsl:text> </xsl:text>
- </div>
-
- <!-- FEEDBACK -->
-
-
-
- <div id="feedback-maincontainer" style="display:none">
- <div id="feedback-state"><xsl:text> </xsl:text></div>
- <a href="#" onclick="$('feedback-maincontainer').hide(); return false;">
- <img src="images/close.png" class="feedback-images" />
- </a>
- <form id="feedback-mailform">
- <div class="feedback-textbox-div">
- Subject:<input type="text" id="subject" title="Enter the subject of your message" class="feedback-textbox" />
- </div>
- <div class="feedback-textbox-div">
- <span style="vertical-align: top;">Message:</span>
- <textarea name="message" title="Type here the text of your message" id="message"><xsl:text> </xsl:text></textarea>
- </div>
- <div class="feedback-textbox-div">
- Your name:<input type="text" id="name" title="Enter your name" class="feedback-textbox" />
- </div>
- <div class="feedback-textbox-div">
- Your email:<input type="text" id="email" title="Enter your email address" class="feedback-textbox" />
- </div>
- <span class="feedback-button-container">
- <input type="submit" value="Send Message" class="feedback-formbutton" title="Send Message" />
- </span>
- <span class="feedback-button-container">
- <input type="reset" value="Clear All Fields" class="feedback-formbutton" title="Clear All Fields" />
- </span>
- </form>
-</div>
-<div id="feedback-wrapper">
- <a id="feedback-link" href="#" onclick="$('feedback-maincontainer').appear(); return false;">
- <img src="images/feedback_logo.png" class="feedback-images" width="136px"/>
- </a>
-</div>
-
-
-
-
- <!-- FEEDBACK ENDS -->
-
- <p xmlns="http://www.w3.org/1999/xhtml">
- <xsl:attribute name="id">
- <xsl:text>title</xsl:text>
- </xsl:attribute>
- <a>
- <xsl:attribute name="href">
- <xsl:value-of select="$siteHref" />
- </xsl:attribute>
- <xsl:attribute name="class">
- <xsl:text>site_href</xsl:text>
- </xsl:attribute>
- <strong>
- <xsl:value-of select="$siteLinkText"/>
- </strong>
- </a>
- <a>
- <xsl:attribute name="href">
- <xsl:value-of select="$docHref" />
- </xsl:attribute>
- <xsl:attribute name="class">
- <xsl:text>doc_href</xsl:text>
- </xsl:attribute>
- <strong>
- <xsl:value-of select="$docLinkText"/>
- </strong>
- </a>
- </p>
- </xsl:if>
- <xsl:if test="$row2">
- <ul class="docnav" xmlns="http://www.w3.org/1999/xhtml">
- <li class="previous">
- <xsl:if test="count($prev)>0">
- <a accesskey="p">
- <xsl:attribute name="href">
- <xsl:call-template name="href.target">
- <xsl:with-param name="object" select="$prev"/>
- </xsl:call-template>
- </xsl:attribute>
- <strong>
- <xsl:call-template name="navig.content">
- <xsl:with-param name="direction" select="'prev'"/>
- </xsl:call-template>
- </strong>
- </a>
- </xsl:if>
- </li>
- <li class="next">
- <xsl:if test="count($next)>0">
- <a accesskey="n">
- <xsl:attribute name="href">
- <xsl:call-template name="href.target">
- <xsl:with-param name="object" select="$next"/>
- </xsl:call-template>
- </xsl:attribute>
- <strong>
- <xsl:call-template name="navig.content">
- <xsl:with-param name="direction" select="'next'"/>
- </xsl:call-template>
- </strong>
- </a>
- </xsl:if>
- </li>
- </ul>
- </xsl:if>
- </xsl:if>
- <xsl:if test="$header.rule != 0">
- <hr/>
- </xsl:if>
- </xsl:if>
-</xsl:template>
-
-<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>
+<?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="user.head.content">
+ <xsl:param name="node" select="." />
+ <script type="text/javascript" src="script/prototype-1.6.0.2.js"><xsl:comment>If you see this message, your web browser doesn't support JavaScript or JavaScript is disabled.</xsl:comment></script>
+ <script type="text/javascript" src="script/effects.js"><xsl:comment>If you see this message, your web browser doesn't support JavaScript or JavaScript is disabled.</xsl:comment></script>
+ <script type="text/javascript" src="script/scriptaculous.js"><xsl:comment>If you see this message, your web browser doesn't support JavaScript or JavaScript is disabled.</xsl:comment></script>
+ <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="header.navigation">
+ <xsl:param name="prev" select="/foo"/>
+ <xsl:param name="next" select="/foo"/>
+ <xsl:param name="nav.context"/>
+ <xsl:variable name="home" select="/*[1]"/>
+ <xsl:variable name="up" select="parent::*"/>
+ <xsl:variable name="row1" select="$navig.showtitles != 0"/>
+ <xsl:variable name="row2" select="count($prev) > 0 or (count($up) > 0 and generate-id($up) != generate-id($home) and $navig.showtitles != 0) or count($next) > 0"/>
+ <xsl:if test="$suppress.navigation = '0' and $suppress.header.navigation = '0'">
+ <xsl:if test="$row1 or $row2">
+ <xsl:if test="$row1">
+ <div id="overlay">
+ <xsl:text> </xsl:text>
+ </div>
+
+ <!-- FEEDBACK -->
+
+
+
+ <div id="feedback-maincontainer" style="display:none">
+ <div id="feedback-header">
+ Send your remarks, comments or wishes to doc team
+ </div>
+ <a href="#" onclick="$('feedback-maincontainer').hide(); return false;" id="feedback-close">
+ <img src="images/close.png" class="feedback-images" />
+ </a>
+ <div id="feedback-state"><xsl:text> </xsl:text></div>
+
+ <form id="feedback-mailform">
+ <div class="feedback-textbox-div">
+ Subject:<input type="text" id="subject" title="Enter the subject of your message" class="feedback-textbox" />
+ </div>
+ <div class="feedback-textbox-div">
+ <span style="vertical-align: top;">Message:</span>
+ <textarea name="message" title="Type here the text of your message" id="feedback-message"><xsl:text> </xsl:text></textarea>
+ </div>
+ <div class="feedback-textbox-div">
+ Your name:<input type="text" id="name" title="Enter your name" class="feedback-textbox" />
+ </div>
+ <div class="feedback-textbox-div">
+ Your email:<input type="text" id="email" title="Enter your email address" class="feedback-textbox" />
+ </div>
+ <span class="feedback-button-container">
+ <input type="submit" value="Send Message" class="feedback-formbutton" title="Send Message" />
+ </span>
+ <span class="feedback-button-container">
+ <input type="reset" value="Clear All Fields" class="feedback-formbutton" title="Clear All Fields" />
+ </span>
+ </form>
+ </div>
+ <div id="feedback-wrapper">
+ <a id="feedback-link" href="#" onclick="$('feedback-maincontainer').appear(); return false;">
+ <img src="images/feedback_logo.png" class="feedback-images" width="100px"/>
+ </a>
+ </div>
+
+
+ <!-- FEEDBACK ENDS -->
+
+ <p xmlns="http://www.w3.org/1999/xhtml">
+ <xsl:attribute name="id">
+ <xsl:text>title</xsl:text>
+ </xsl:attribute>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:value-of select="$siteHref" />
+ </xsl:attribute>
+ <xsl:attribute name="class">
+ <xsl:text>site_href</xsl:text>
+ </xsl:attribute>
+ <strong>
+ <xsl:value-of select="$siteLinkText"/>
+ </strong>
+ </a>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:value-of select="$docHref" />
+ </xsl:attribute>
+ <xsl:attribute name="class">
+ <xsl:text>doc_href</xsl:text>
+ </xsl:attribute>
+ <strong>
+ <xsl:value-of select="$docLinkText"/>
+ </strong>
+ </a>
+ </p>
+ </xsl:if>
+ <xsl:if test="$row2">
+ <ul class="docnav" xmlns="http://www.w3.org/1999/xhtml">
+ <li class="previous">
+ <xsl:if test="count($prev)>0">
+ <a accesskey="p">
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target">
+ <xsl:with-param name="object" select="$prev"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <strong>
+ <xsl:call-template name="navig.content">
+ <xsl:with-param name="direction" select="'prev'"/>
+ </xsl:call-template>
+ </strong>
+ </a>
+ </xsl:if>
+ </li>
+ <li class="next">
+ <xsl:if test="count($next)>0">
+ <a accesskey="n">
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target">
+ <xsl:with-param name="object" select="$next"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <strong>
+ <xsl:call-template name="navig.content">
+ <xsl:with-param name="direction" select="'next'"/>
+ </xsl:call-template>
+ </strong>
+ </a>
+ </xsl:if>
+ </li>
+ </ul>
+ </xsl:if>
+ </xsl:if>
+ <xsl:if test="$header.rule != 0">
+ <hr/>
+ </xsl:if>
+ </xsl:if>
+</xsl:template>
+
+<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>
16 years, 10 months
JBoss Rich Faces SVN: r11146 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-11-13 09:51:56 -0500 (Thu, 13 Nov 2008)
New Revision: 11146
Modified:
trunk/docs/userguide/en/src/main/docbook/included/column.xml
Log:
RF-4616: jboss wiki articles links
Modified: trunk/docs/userguide/en/src/main/docbook/included/column.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/column.xml 2008-11-13 14:50:17 UTC (rev 11145)
+++ trunk/docs/userguide/en/src/main/docbook/included/column.xml 2008-11-13 14:51:56 UTC (rev 11146)
@@ -661,11 +661,12 @@
<section>
<title>Relevant Resources Links</title>
- <para><ulink
- url="http://livedemo.exadel.com/richfaces-demo/richfaces/dataTable.jsf?c=column"
- >Here</ulink> you can see the example of <emphasis
- role="bold">
- <property><rich:column></property>
- </emphasis> usage and sources for the given example. </para>
+ <para>Vizit
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/dataTable.jsf?c=column">Column</ulink> page at
+ RichFaces live demo for examples of component usage and their sources.</para>
+ <para>"
+ <ulink url="http://www.jboss.org/community/docs/DOC-9607">Using the "rendered" attribute of <rich:column></ulink>" article
+ in RichFaces cookbook at JBoss portal gives an example of code of the component usage case.
+ </para>
</section>
</section>
16 years, 10 months
JBoss Rich Faces SVN: r11145 - trunk/test-applications/automator/src/main/webapp/main.
by richfaces-svn-commits@lists.jboss.org
Author: adubovsky
Date: 2008-11-13 09:50:17 -0500 (Thu, 13 Nov 2008)
New Revision: 11145
Modified:
trunk/test-applications/automator/src/main/webapp/main/main.jsp
Log:
</head>
Modified: trunk/test-applications/automator/src/main/webapp/main/main.jsp
===================================================================
--- trunk/test-applications/automator/src/main/webapp/main/main.jsp 2008-11-13 14:47:31 UTC (rev 11144)
+++ trunk/test-applications/automator/src/main/webapp/main/main.jsp 2008-11-13 14:50:17 UTC (rev 11145)
@@ -9,6 +9,7 @@
<title>Automator</title>
<script type="text/javascript" src="javascripts/handlers.js"></script>
<script type="text/javascript" src="javascripts/common.js"></script>
+ </head>
<body>
<h:form id="mainForm">
<div align="center"><h:panelGrid columns="2">
16 years, 10 months
JBoss Rich Faces SVN: r11144 - in trunk/test-applications/automator/src/main: java/dropDownMenu and 4 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: adubovsky
Date: 2008-11-13 09:47:31 -0500 (Thu, 13 Nov 2008)
New Revision: 11144
Added:
trunk/test-applications/automator/src/main/java/dropDownMenu/
trunk/test-applications/automator/src/main/java/dropDownMenu/DropDownMenuGeneral.java
trunk/test-applications/automator/src/main/webapp/component/dropDownMenu.jsp
Modified:
trunk/test-applications/automator/src/main/webapp/META-INF/MANIFEST.MF
trunk/test-applications/automator/src/main/webapp/WEB-INF/faces-config.xml
trunk/test-applications/automator/src/main/webapp/main/componentsList.jsp
trunk/test-applications/automator/src/main/webapp/main/main.jsp
Log:
Added: trunk/test-applications/automator/src/main/java/dropDownMenu/DropDownMenuGeneral.java
===================================================================
--- trunk/test-applications/automator/src/main/java/dropDownMenu/DropDownMenuGeneral.java (rev 0)
+++ trunk/test-applications/automator/src/main/java/dropDownMenu/DropDownMenuGeneral.java 2008-11-13 14:47:31 UTC (rev 11144)
@@ -0,0 +1,20 @@
+package dropDownMenu;
+
+public class DropDownMenuGeneral {
+
+ public DropDownMenuGeneral() {
+
+ }
+
+ public void doSummary() {
+ System.out.println("doSummary");
+ }
+
+ public void doInfo() {
+ System.out.println("doInfo");
+ }
+
+ public void doTable3() {
+ System.out.println("doTable3");
+ }
+}
Modified: trunk/test-applications/automator/src/main/webapp/META-INF/MANIFEST.MF
===================================================================
--- trunk/test-applications/automator/src/main/webapp/META-INF/MANIFEST.MF 2008-11-13 14:29:58 UTC (rev 11143)
+++ trunk/test-applications/automator/src/main/webapp/META-INF/MANIFEST.MF 2008-11-13 14:47:31 UTC (rev 11144)
@@ -1,3 +1,2 @@
Manifest-Version: 1.0
-Class-Path:
Modified: trunk/test-applications/automator/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/test-applications/automator/src/main/webapp/WEB-INF/faces-config.xml 2008-11-13 14:29:58 UTC (rev 11143)
+++ trunk/test-applications/automator/src/main/webapp/WEB-INF/faces-config.xml 2008-11-13 14:47:31 UTC (rev 11144)
@@ -8,8 +8,8 @@
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
- <managed-bean-name>comboBoxGeneral</managed-bean-name>
- <managed-bean-class>comboBox.ComboBoxGeneral</managed-bean-class>
+ <managed-bean-name>dropDownMenuGeneral</managed-bean-name>
+ <managed-bean-class>dropDownMenu.DropDownMenuGeneral</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
Added: trunk/test-applications/automator/src/main/webapp/component/dropDownMenu.jsp
===================================================================
--- trunk/test-applications/automator/src/main/webapp/component/dropDownMenu.jsp (rev 0)
+++ trunk/test-applications/automator/src/main/webapp/component/dropDownMenu.jsp 2008-11-13 14:47:31 UTC (rev 11144)
@@ -0,0 +1,23 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="dropDownMenuSubview">
+ <div>The <rich:dropDownMenu> component is used for creating
+ multilevel drop-down menus.</div>
+ <rich:spacer height="30"></rich:spacer>
+
+ <h:panelGrid id="dropDownMenuGrid" columns="1">
+ <h:messages id="mess" style="color: red" />
+ <rich:dropDownMenu value="Tables">
+ <rich:menuItem value="Table1"
+ action="#{dropDownMenuGeneral.doSummary}" id="dropdownmenu_mItem5" />
+ <rich:menuItem value="Table2" action="#{dropDownMenuGeneral.doInfo}"
+ id="dropdownmenu_menuItem6" />
+ <rich:menuItem value="Table3"
+ action="#{dropDownMenuGeneral.doTable3}" id="dropdownmenu_menuItem7" />
+ </rich:dropDownMenu>
+ </h:panelGrid>
+
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/automator/src/main/webapp/main/componentsList.jsp
===================================================================
--- trunk/test-applications/automator/src/main/webapp/main/componentsList.jsp 2008-11-13 14:29:58 UTC (rev 11143)
+++ trunk/test-applications/automator/src/main/webapp/main/componentsList.jsp 2008-11-13 14:47:31 UTC (rev 11144)
@@ -13,5 +13,9 @@
<a4j:actionparam value="/component/calendar.jsp"
assignTo="#{general.componentPage}" />
</a4j:commandLink>
+ <a4j:commandLink reRender="componentPage" value="DropDownMenu">
+ <a4j:actionparam value="/component/dropDownMenu.jsp"
+ assignTo="#{general.componentPage}" />
+ </a4j:commandLink>
</h:panelGrid>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/automator/src/main/webapp/main/main.jsp
===================================================================
--- trunk/test-applications/automator/src/main/webapp/main/main.jsp 2008-11-13 14:29:58 UTC (rev 11143)
+++ trunk/test-applications/automator/src/main/webapp/main/main.jsp 2008-11-13 14:47:31 UTC (rev 11144)
@@ -9,7 +9,6 @@
<title>Automator</title>
<script type="text/javascript" src="javascripts/handlers.js"></script>
<script type="text/javascript" src="javascripts/common.js"></script>
- </head>
<body>
<h:form id="mainForm">
<div align="center"><h:panelGrid columns="2">
16 years, 10 months
JBoss Rich Faces SVN: r11143 - trunk/sandbox/ui/editor/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2008-11-13 09:29:58 -0500 (Thu, 13 Nov 2008)
New Revision: 11143
Modified:
trunk/sandbox/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java
Log:
Editor: adjust converting to script
Modified: trunk/sandbox/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java
===================================================================
--- trunk/sandbox/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java 2008-11-13 14:11:15 UTC (rev 11142)
+++ trunk/sandbox/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java 2008-11-13 14:29:58 UTC (rev 11143)
@@ -33,6 +33,7 @@
import javax.faces.context.ResponseWriter;
import javax.faces.convert.ConverterException;
+import org.ajax4jsf.javascript.ScriptUtils;
import org.ajax4jsf.resource.InternetResource;
import org.ajax4jsf.util.InputUtils;
import org.richfaces.component.UIEditor;
@@ -159,40 +160,40 @@
ResponseWriter writer = context.getResponseWriter();
if(component.getTheme() != null){
- writer.writeText("tinyMceParams.theme = '" + component.getTheme() + "';\n", null);
+ writer.writeText("tinyMceParams.theme = " + ScriptUtils.toScript(component.getTheme()) + ";\n", null);
}
if(component.getLanguage() != null){
- writer.writeText("tinyMceParams.language = '" + component.getLanguage() + "';\n", null);
+ writer.writeText("tinyMceParams.language = " + ScriptUtils.toScript(component.getLanguage()) + ";\n", null);
}
if(component.getAutoResize() != null){
- writer.writeText("tinyMceParams.auto_resize = " + component.getAutoResize()+ ";\n", null);
+ writer.writeText("tinyMceParams.auto_resize = " + ScriptUtils.toScript(component.getAutoResize())+ ";\n", null);
}
if(component.getReadonly() != null){
- writer.writeText("tinyMceParams.readonly = " + component.getReadonly()+ ";\n", null);
+ writer.writeText("tinyMceParams.readonly = " + ScriptUtils.toScript(component.getReadonly())+ ";\n", null);
}
if(component.getPlugins() != null){
- writer.writeText("tinyMceParams.plugins = '" + component.getPlugins() +"';\n", null);
+ writer.writeText("tinyMceParams.plugins = " + ScriptUtils.toScript(component.getPlugins()) +";\n", null);
}
if(component.getWidth() != 0){
- writer.writeText("tinyMceParams.width = " + component.getWidth() +";\n", null);
+ writer.writeText("tinyMceParams.width = " + ScriptUtils.toScript(component.getWidth()) +";\n", null);
}
if(component.getHeight() != 0){
- writer.writeText("tinyMceParams.height = " + component.getHeight() +";\n", null);
+ writer.writeText("tinyMceParams.height = " + ScriptUtils.toScript(component.getHeight()) +";\n", null);
}
if(component.getOninit() != null){
- writer.writeText("tinyMceParams.oninit = '" + component.getOninit() +"';\n", null);
+ writer.writeText("tinyMceParams.oninit = " + ScriptUtils.toScript(component.getOninit()) +";\n", null);
}
if(component.getOnsave() != null){
- writer.writeText("tinyMceParams.save_callback = '" + component.getOnsave() +"';\n", null);
+ writer.writeText("tinyMceParams.save_callback = " + ScriptUtils.toScript(component.getOnsave()) +";\n", null);
}
if(component.getOnchange() != null){
- writer.writeText("tinyMceParams.onchange_callback = '" + component.getOnchange() +"';\n", null);
+ writer.writeText("tinyMceParams.onchange_callback = " + ScriptUtils.toScript(component.getOnchange()) +";\n", null);
}
if(component.getOnsetup() != null){
- writer.writeText("tinyMceParams.setup = '" + component.getOnsetup() +"';\n", null);
+ writer.writeText("tinyMceParams.setup = " + ScriptUtils.toScript(component.getOnsetup()) +";\n", null);
}
if(component.getSkin() != null){
- writer.writeText("tinyMceParams.skin = '" + component.getSkin() +"';\n", null);
+ writer.writeText("tinyMceParams.skin = " + ScriptUtils.toScript(component.getSkin()) +";\n", null);
}else{
writer.writeText("if(!tinyMceParams.skin){\n", null);
writer.writeText(" tinyMceParams.skin = 'richfaces';\n", null);
16 years, 10 months
JBoss Rich Faces SVN: r11142 - trunk/test-applications/automator/src/main/webapp/main.
by richfaces-svn-commits@lists.jboss.org
Author: adubovsky
Date: 2008-11-13 09:11:15 -0500 (Thu, 13 Nov 2008)
New Revision: 11142
Modified:
trunk/test-applications/automator/src/main/webapp/main/main.jsp
Log:
+ rf version
Modified: trunk/test-applications/automator/src/main/webapp/main/main.jsp
===================================================================
--- trunk/test-applications/automator/src/main/webapp/main/main.jsp 2008-11-13 14:10:58 UTC (rev 11141)
+++ trunk/test-applications/automator/src/main/webapp/main/main.jsp 2008-11-13 14:11:15 UTC (rev 11142)
@@ -9,6 +9,7 @@
<title>Automator</title>
<script type="text/javascript" src="javascripts/handlers.js"></script>
<script type="text/javascript" src="javascripts/common.js"></script>
+ </head>
<body>
<h:form id="mainForm">
<div align="center"><h:panelGrid columns="2">
@@ -19,6 +20,9 @@
</h:panelGrid></div>
<div align="right"><h:panelGrid id="mainMenu" columns="3"
border="1">
+ <f:facet name="header">
+ <h:outputText value="#{general.vers}" />
+ </f:facet>
<a4j:status id="a4jStatus" startText="WORK!" startStyle="color: red;"
stopText="a4j:status" />
<a4j:commandButton reRender="componentPage" value="reRender" />
16 years, 10 months
JBoss Rich Faces SVN: r11141 - trunk/test-applications/automator/src/main/java/general.
by richfaces-svn-commits@lists.jboss.org
Author: adubovsky
Date: 2008-11-13 09:10:58 -0500 (Thu, 13 Nov 2008)
New Revision: 11141
Modified:
trunk/test-applications/automator/src/main/java/general/General.java
Log:
+rf version
Modified: trunk/test-applications/automator/src/main/java/general/General.java
===================================================================
--- trunk/test-applications/automator/src/main/java/general/General.java 2008-11-13 14:06:14 UTC (rev 11140)
+++ trunk/test-applications/automator/src/main/java/general/General.java 2008-11-13 14:10:58 UTC (rev 11141)
@@ -1,8 +1,12 @@
package general;
+import org.richfaces.VersionBean;
+
public class General {
private String componentPage;
+ private String _vers = VersionBean.Version._versionInfo;
+ private String vers = _vers.substring(0, _vers.indexOf("SVN"));
public General() {
componentPage = "/main/componentsList.jsp";
@@ -15,4 +19,8 @@
public void setComponentPage(String componentPage) {
this.componentPage = componentPage;
}
+
+ public String getVers() {
+ return vers;
+ }
}
16 years, 10 months