JBoss Rich Faces SVN: r5956 - in trunk/sandbox/ui/inplaceInput/src/main: resources/org/richfaces/renderkit/html/scripts and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-02-08 11:30:26 -0500 (Fri, 08 Feb 2008)
New Revision: 5956
Modified:
trunk/sandbox/ui/inplaceInput/src/main/config/component/inplaceinput.xml
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx
Log:
component's attributes are added
Modified: trunk/sandbox/ui/inplaceInput/src/main/config/component/inplaceinput.xml
===================================================================
--- trunk/sandbox/ui/inplaceInput/src/main/config/component/inplaceinput.xml 2008-02-08 16:03:30 UTC (rev 5955)
+++ trunk/sandbox/ui/inplaceInput/src/main/config/component/inplaceinput.xml 2008-02-08 16:30:26 UTC (rev 5956)
@@ -32,6 +32,63 @@
<name>value</name>
<classname>java.lang.String</classname>
</property>
+ <property>
+ <name>inputSize</name>
+ <classname>java.lang.Integer</classname>
+ <defaultvalue>10</defaultvalue>
+ </property>
+ <property>
+ <name>inputMaxLength</name>
+ <classname>java.lang.Integer</classname>
+ <defaultvalue>10</defaultvalue>
+ </property>
+ <property>
+ <name>inputMinLength</name>
+ <classname>java.lang.Integer</classname>
+ <defaultvalue>10</defaultvalue>
+ </property>
+ <property>
+ <name>defaultLabel</name>
+ <classname>java.lang.String</classname>
+ <defaultvalue><![CDATA["Click..."]]></defaultvalue>
+ </property>
+ <property>
+ <name>showControls</name>
+ <classname>boolean</classname>
+ <defaultvalue>false</defaultvalue>
+ </property>
+ <property>
+ <name>apllyFromControlsOnly</name>
+ <classname>boolean</classname>
+ <defaultvalue>false</defaultvalue>
+ </property>
+ <property>
+ <name>apllyFromControlsOnly</name>
+ <classname>boolean</classname>
+ <defaultvalue>false</defaultvalue>
+ </property>
+ <property>
+ <name>editEvent</name>
+ <classname>java.lang.String</classname>
+ <defaultvalue><![CDATA["click"]]></defaultvalue>
+ </property>
+
+ <property>
+ <name>oneditactivation</name>
+ <classname>java.lang.String</classname>
+ </property>
+ <property>
+ <name>onviewactivation</name>
+ <classname>java.lang.String</classname>
+ </property>
+ <property>
+ <name>oneditactivated</name>
+ <classname>java.lang.String</classname>
+ </property>
+ <property>
+ <name>onviewactivated</name>
+ <classname>java.lang.String</classname>
+ </property>
</properties>
</component>
</components>
Modified: trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
===================================================================
--- trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-02-08 16:03:30 UTC (rev 5955)
+++ trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-02-08 16:30:26 UTC (rev 5956)
@@ -4,10 +4,25 @@
Richfaces.InplaceInput.prototype = {
- initialize: function() {
+ initialize: function(clientId, temValueKeepId, valueKeepId, attributes, events) {
+ this.inplaceInput = $(clientId);
+ this.tempValueKeeper = $(temValueKeepId);
+ this.valueKeeper = $(valueKeepId);
+ this.attributes = attributes;
+
+ this.currentState = Richfaces.InplaceInput.STATES[0];
+
this.initHandlers();
},
initHandlers : function() {
+ this.inplaceInput.observe(this.attributes['editEvent'], function(e){this.switchingStatesHandler(e);}.bindAsEventListener(this));
},
-};
\ No newline at end of file
+
+ switchingStatesHandler : function() {
+
+ this.currentState = Richfaces.InplaceInput.STATES[1];
+ }
+};
+
+Richfaces.InplaceInput.STATES = [0, 1, 2];// 0 - view, 1- editable, 2 - changed
\ No newline at end of file
Modified: trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx
===================================================================
--- trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-02-08 16:03:30 UTC (rev 5955)
+++ trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-02-08 16:30:26 UTC (rev 5956)
@@ -18,7 +18,29 @@
</h:scripts>
<f:clientid var="clientId" />
+ <span id="#{clientId}" class="rich-inplace">
+ #{component.attributes["value"]}
+ <input id='#{clientId}tempValue"'
+ class='rich-inplace-input'
+ style='display:none;'
+ type='text'
+ size='#{component.attributes["inputSize"]}'
+ maxlength='#{component.attributes["inputMaxLength"]}'
+ minlength='#{component.attributes["inputMinLength"]}'
+ value='#{component.attributes["value"]}'/>
+ <input id='#{clientId}value' type='hidden' value='#{component.attributes["value"]}'/>
+ </span>
<script type="text/javascript">
- var inplaceInput = new Richfaces.InplaceInput();
+ var attributes = [defaultLabel = '#{component.attributes["defaultLabel"]}',
+ showControls = '#{component.attributes["showControls"]}',
+ apllyFromControlsOnly = '{component.attributes["apllyFromControlsOnly"]}',
+ editEvent = '#{component.attributes["editEvent"]}'];
+
+ var events = [oneditactivation = '#{component.attributes["oneditactivation"]}',
+ onviewactivation = '#{component.attributes["defaultLabel"]}',
+ oneditactivated = '#{component.attributes["onviewactivation"]}',
+ onviewactivated = '#{component.attributes["onviewactivated"]}'];
+
+ var inplaceInput = new Richfaces.InplaceInput('#{clientId}', '#{clientId}tempValue', '#{clientId}value', attributes, events);
</script>
</f:root>
\ No newline at end of file
18 years, 2 months
JBoss Rich Faces SVN: r5955 - trunk/samples/pickList-sample/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-02-08 11:03:30 -0500 (Fri, 08 Feb 2008)
New Revision: 5955
Modified:
trunk/samples/pickList-sample/src/main/webapp/pages/index.jsp
Log:
RF-2200
Modified: trunk/samples/pickList-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/pickList-sample/src/main/webapp/pages/index.jsp 2008-02-08 15:15:12 UTC (rev 5954)
+++ trunk/samples/pickList-sample/src/main/webapp/pages/index.jsp 2008-02-08 16:03:30 UTC (rev 5955)
@@ -55,7 +55,7 @@
copyAllControlLabel = "#{pickBean.copyAllLabel}"
copyControlLabel = "#{pickBean.copyLabel}"
removeControlLabel = "#{pickBean.removeLabel}"
- removeAllControlLabel ="#{pickBean.removeLabel}"
+ removeAllControlLabel ="#{pickBean.removeAllLabel}"
value="#{pickBean.listValues}">
<f:selectItem itemValue="cat" itemLabel="cat"/>
<f:selectItem itemValue="dog" itemLabel="dog"/>
18 years, 2 months
JBoss Rich Faces SVN: r5954 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2008-02-08 10:15:12 -0500 (Fri, 08 Feb 2008)
New Revision: 5954
Modified:
trunk/docs/userguide/en/src/main/docbook/included/dragIndicator.xml
Log:
http://jira.jboss.com/jira/browse/RF-398 - word correction
Modified: trunk/docs/userguide/en/src/main/docbook/included/dragIndicator.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dragIndicator.xml 2008-02-08 15:11:15 UTC (rev 5953)
+++ trunk/docs/userguide/en/src/main/docbook/included/dragIndicator.xml 2008-02-08 15:15:12 UTC (rev 5954)
@@ -102,7 +102,7 @@
it a content that should be shown in indicator.</para>
<section>
<title>Macro definitions</title>
- <para>To place some data from drag or drop zones into component you can use macro difenitions.
+ <para>To place some data from drag or drop zones into component you can use macro definitions.
They are being defining in the following way:</para>
<itemizedlist>
<listitem>
18 years, 2 months
JBoss Rich Faces SVN: r5953 - in management/design/inplaceInput: design and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: admitriev
Date: 2008-02-08 10:11:15 -0500 (Fri, 08 Feb 2008)
New Revision: 5953
Added:
management/design/inplaceInput/design/
management/design/inplaceInput/design/images/
management/design/inplaceInput/design/images/bg_btn.png
management/design/inplaceInput/design/images/bg_press.png
management/design/inplaceInput/design/images/bg_shadow.png
management/design/inplaceInput/design/images/ico_cancel.gif
management/design/inplaceInput/design/images/ico_ok.gif
management/design/inplaceInput/design/images/mark_open.gif
management/design/inplaceInput/design/images/spacer.gif
management/design/inplaceInput/design/inplaceInput.html
Log:
Added: management/design/inplaceInput/design/images/bg_btn.png
===================================================================
(Binary files differ)
Property changes on: management/design/inplaceInput/design/images/bg_btn.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: management/design/inplaceInput/design/images/bg_press.png
===================================================================
(Binary files differ)
Property changes on: management/design/inplaceInput/design/images/bg_press.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: management/design/inplaceInput/design/images/bg_shadow.png
===================================================================
(Binary files differ)
Property changes on: management/design/inplaceInput/design/images/bg_shadow.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: management/design/inplaceInput/design/images/ico_cancel.gif
===================================================================
(Binary files differ)
Property changes on: management/design/inplaceInput/design/images/ico_cancel.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: management/design/inplaceInput/design/images/ico_ok.gif
===================================================================
(Binary files differ)
Property changes on: management/design/inplaceInput/design/images/ico_ok.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: management/design/inplaceInput/design/images/mark_open.gif
===================================================================
(Binary files differ)
Property changes on: management/design/inplaceInput/design/images/mark_open.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: management/design/inplaceInput/design/images/spacer.gif
===================================================================
(Binary files differ)
Property changes on: management/design/inplaceInput/design/images/spacer.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: management/design/inplaceInput/design/inplaceInput.html
===================================================================
--- management/design/inplaceInput/design/inplaceInput.html (rev 0)
+++ management/design/inplaceInput/design/inplaceInput.html 2008-02-08 15:11:15 UTC (rev 5953)
@@ -0,0 +1,98 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+
+<html>
+<head>
+ <title>Untitled</title>
+ <style>
+*{font-family : verdana; font-size:11px;}
+body{padding : 30px;}
+fieldset{padding : 30px; border : 1px solid #c0c0c0;}
+legend{font-weight : bold}
+
+
+
+.is_default_state{white-space : nowrap; background-color : #f1f1f1; border-bottom : 1px dashed #000000; padding-left : 3px; padding-right : 3px;}
+.is_changed_state{background-image:url(images/mark_open.gif); background-position : top left; background-repeat : no-repeat;}
+.is_edit_state{position : relative; width : 100px;}
+.is_field{background : #FFF281; padding : 0px 0px 0px 3px; border : 0px; margin : 0px; width : 100px; position : absolute; top:0px; left : 0px;}
+.is_btn{
+ background : url(images/bg_btn.png) #FFFFFF;
+ border : 1px outset #BED6F8;
+ padding : 0px;
+ margin : 0px;}
+.is_btn_press{
+ background : url(images/bg_press.png) #FFFFFF;
+ border : 1px inset #BED6F8;
+ padding : 0px;
+ margin : 0px;}
+.is_btn_set{ position : absolute; top:0px; left : 100px; white-space : nowrap}
+.is_shadow{ top:-7; left:-5; position : absolute;}
+.is_shadow_size{ width : 36px; height : 26px;}
+.is_shadow_tl{ background : url(images/bg_shadow.png) repeat-x top left;}
+.is_shadow_tr{ background : url(images/bg_shadow.png) repeat-x top right;}
+.is_shadow_bl{ background : url(images/bg_shadow.png) repeat-x bottom left;}
+.is_shadow_br{ background : url(images/bg_shadow.png) repeat-x bottom right;}
+
+ </style>
+</head>
+
+<body>
+
+<fieldset><legend>Default State</legend><br><br>
+<div style="width : 300px;">
+ Fresh off his victory in the Florida primary, Sen. John McCain is poised to take another big prize. Former
+ <span class="is_default_state">New York</span> Mayor Rudy Giuliani plans to drop out and endorse McCain, two GOP sources said. That would give McCain added momentum heading into a debate Wednesday and next week's Super Tuesday contests
+</div>
+</fieldset>
+
+
+
+
+<fieldset><legend>Edit State</legend><br><br>
+<div style="width : 300px;">
+ Fresh off his victory in the Florida primary, Sen. John McCain is poised to take another big prize. Former
+ <span class="is_edit_state">
+
+ <input type="Text" value="New York" class="is_field">
+ <div class="is_btn_set">
+ <div class="is_shadow">
+ <table cellpadding="0" cellspacing="0" border="0" class="is_shadow_size">
+ <tr>
+ <td class="is_shadow_tl">
+ <img src="images/spacer.gif" width="10" height="1" alt="" border="0"><br>
+ </td>
+ <td class="is_shadow_tr">
+ <img src="images/spacer.gif" width="1" height="10" alt="" border="0"><br>
+ </td>
+ </tr>
+ <tr>
+ <td class="is_shadow_bl">
+ <img src="images/spacer.gif" width="1" height="10" alt="" border="0"><br>
+ </td>
+ <td class="is_shadow_br">
+ <img src="images/spacer.gif" width="10" height="1" alt="" border="0"><br>
+ </td>
+ </tr>
+ </table>
+ </div>
+ <div style="position : relative">
+ <input type="image" src="images/ico_ok.gif" class="is_btn" onmousedown="this.className='is_btn_press'" onmouseout="this.className='is_btn'" onmouseup="this.className='is_btn'"><input type="image" src="images/ico_cancel.gif" class="is_btn" onmousedown="this.className='is_btn_press'" onmouseout="this.className='is_btn'" onmouseup="this.className='is_btn'">
+ </div>
+ </div>
+ </span>
+
+ Mayor Rudy Giuliani plans to drop out and endorse McCain, two GOP sources said. That would give McCain added momentum heading into a debate Wednesday and next week's Super Tuesday contests
+</div>
+</fieldset>
+
+
+<fieldset><legend>Changed State</legend><br><br>
+<div style="width : 300px;">
+ Fresh off his victory in the Florida primary, Sen. John McCain is poised to take another big prize. Former
+ <span class="is_default_state is_changed_state">New York</span> Mayor Rudy Giuliani plans to drop out and endorse McCain, two GOP sources said. That would give McCain added momentum heading into a debate Wednesday and next week's Super Tuesday contests
+</div>
+</fieldset>
+
+
+</body>
+</html>
18 years, 2 months
JBoss Rich Faces SVN: r5952 - in management/design/fileUpload/markup: images and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: admitriev
Date: 2008-02-08 09:58:34 -0500 (Fri, 08 Feb 2008)
New Revision: 5952
Added:
management/design/fileUpload/markup/images/ico_add_dis.gif
management/design/fileUpload/markup/images/ico_clear_dis.gif
management/design/fileUpload/markup/images/ico_start_dis.gif
Modified:
management/design/fileUpload/markup/file_upload.html
Log:
Modified: management/design/fileUpload/markup/file_upload.html
===================================================================
--- management/design/fileUpload/markup/file_upload.html 2008-02-08 14:50:55 UTC (rev 5951)
+++ management/design/fileUpload/markup/file_upload.html 2008-02-08 14:58:34 UTC (rev 5952)
@@ -46,10 +46,11 @@
padding : 1px;
}
.upload_button_dis{
- background : #C0C0C0; /*tableBorderColor*/
- border : 1px solid #C0C0C0; /*tableBorderColor*/
- margin-bottom : 3px;
- padding : 1px}
+ background :#f1f1f1 /*trimColor*/ repeat-x;
+ cursor : pointer;
+ padding : 2px;
+}
+
.upload_button_press{
background : url(images/bg_press.png) /*from additionalBackgroundColor to trimColor*/ top left repeat-x #EAF0F8; /* additionalBackgroundColor*/
border : 1px solid #E79A00; /*selectControlColor*/
@@ -74,10 +75,17 @@
.upload_ico{background-position : 0px 50%; background-repeat : no-repeat; padding-left : 19px}
.upload_ico_add{background-image : url(images/ico_add.gif)}
+.upload_ico_add_dis{background-image : url(images/ico_add_dis.gif); color:#C0C0C0; /*tableBorderColor*/}
+
.upload_ico_start{background-image : url(images/ico_start.gif)}
+.upload_ico_start_dis{background-image : url(images/ico_start_dis.gif); color:#C0C0C0; /*tableBorderColor*/}
+
.upload_ico_stop{background-image : url(images/ico_stop.gif)}
+
.upload_ico_clear{background-image : url(images/ico_clear.gif)}
+.upload_ico_clear_dis{background-image : url(images/ico_clear_dis.gif); color:#C0C0C0; /*tableBorderColor*/}
+
</style>
</head>
<body>
@@ -88,7 +96,7 @@
<tr>
<td class="upload_toolbar_decor">
<div class="upload_button_border" style=" float:left"><div class="upload_button upload_font" onmouseover="this.className='upload_button_light upload_font'" onmousedown="this.className='upload_button_press upload_font'" onmouseup="this.className='upload_button upload_font'" onmouseout="this.className='upload_button upload_font'"><a href="#" class="upload_button_selection"><div class="upload_button_content upload_font upload_ico upload_ico_add">Add...</div></a></div></div>
- <div class="upload_button_border" style=" float:left"><div class="upload_button upload_font" onmouseover="this.className='upload_button_light upload_font'" onmousedown="this.className='upload_button_press upload_font'" onmouseup="this.className='upload_button upload_font'" onmouseout="this.className='upload_button upload_font'"><a href="#" class="upload_button_selection"><div class="upload_button_content upload_font upload_ico upload_ico_start"><b>Upload</b></div></a></div></div>
+ <div class="upload_button_border" style=" float:left"><div class="upload_button_dis upload_font" onmouseover="this.className='upload_button_light upload_font'" onmousedown="this.className='upload_button_press upload_font'" onmouseup="this.className='upload_button upload_font'" onmouseout="this.className='upload_button upload_font'"><a href="#" class="upload_button_selection"><div class="upload_button_content upload_font upload_ico upload_ico_start_dis"><b>Upload</b></div></a></div></div>
<!--div class="upload_button_border" style=" float:left"><div class="upload_button upload_font" onmouseover="this.className='upload_button_light upload_font'" onmousedown="this.className='upload_button_press upload_font'" onmouseup="this.className='upload_button upload_font'" onmouseout="this.className='upload_button upload_font'"><a href="#" class="upload_button_selection"><div class="upload_button_content upload_font upload_ico upload_ico_stop"><b>Stop</b></div></a></div></div-->
<div class="upload_button_border" style=" float:right"><div class="upload_button upload_font" onmouseover="this.className='upload_button_light upload_font'" onmousedown="this.className='upload_button_press upload_font'" onmouseup="this.className='upload_button upload_font'" onmouseout="this.className='upload_button upload_font'"><a href="#" class="upload_button_selection"><div class="upload_button_content upload_font upload_ico upload_ico_clear">Clear All</div></a></div></div>
</td>
Added: management/design/fileUpload/markup/images/ico_add_dis.gif
===================================================================
(Binary files differ)
Property changes on: management/design/fileUpload/markup/images/ico_add_dis.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: management/design/fileUpload/markup/images/ico_clear_dis.gif
===================================================================
(Binary files differ)
Property changes on: management/design/fileUpload/markup/images/ico_clear_dis.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: management/design/fileUpload/markup/images/ico_start_dis.gif
===================================================================
(Binary files differ)
Property changes on: management/design/fileUpload/markup/images/ico_start_dis.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
18 years, 2 months
JBoss Rich Faces SVN: r5951 - in trunk/sandbox/ui: inplaceInput and 22 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-02-08 09:50:55 -0500 (Fri, 08 Feb 2008)
New Revision: 5951
Added:
trunk/sandbox/ui/inplaceInput/
trunk/sandbox/ui/inplaceInput/pom.xml
trunk/sandbox/ui/inplaceInput/src/
trunk/sandbox/ui/inplaceInput/src/main/
trunk/sandbox/ui/inplaceInput/src/main/config/
trunk/sandbox/ui/inplaceInput/src/main/config/component/
trunk/sandbox/ui/inplaceInput/src/main/config/component/README
trunk/sandbox/ui/inplaceInput/src/main/config/component/inplaceinput.xml
trunk/sandbox/ui/inplaceInput/src/main/java/
trunk/sandbox/ui/inplaceInput/src/main/java/org/
trunk/sandbox/ui/inplaceInput/src/main/java/org/richfaces/
trunk/sandbox/ui/inplaceInput/src/main/java/org/richfaces/component/
trunk/sandbox/ui/inplaceInput/src/main/java/org/richfaces/component/README
trunk/sandbox/ui/inplaceInput/src/main/java/org/richfaces/component/UIInplaceInput.java
trunk/sandbox/ui/inplaceInput/src/main/java/org/richfaces/renderkit/
trunk/sandbox/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java
trunk/sandbox/ui/inplaceInput/src/main/resources/
trunk/sandbox/ui/inplaceInput/src/main/resources/org/
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
trunk/sandbox/ui/inplaceInput/src/main/templates/
trunk/sandbox/ui/inplaceInput/src/main/templates/README
trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx
trunk/sandbox/ui/inplaceInput/src/test/
trunk/sandbox/ui/inplaceInput/src/test/java/
trunk/sandbox/ui/inplaceInput/src/test/java/org/
trunk/sandbox/ui/inplaceInput/src/test/java/org/richfaces/
trunk/sandbox/ui/inplaceInput/src/test/java/org/richfaces/component/
trunk/sandbox/ui/inplaceInput/src/test/java/org/richfaces/component/JSFComponentTest.java
Log:
inplaceInput component
Added: trunk/sandbox/ui/inplaceInput/pom.xml
===================================================================
--- trunk/sandbox/ui/inplaceInput/pom.xml (rev 0)
+++ trunk/sandbox/ui/inplaceInput/pom.xml 2008-02-08 14:50:55 UTC (rev 5951)
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?><project>
+ <parent>
+ <artifactId>ui</artifactId>
+ <groupId>org.richfaces.sandbox</groupId>
+ <version>3.2.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.sandbox.ui</groupId>
+ <artifactId>inplaceInput</artifactId>
+ <name>inplaceInput</name>
+ <version>3.2.0-SNAPSHOT</version>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.richfaces.cdk</groupId>
+ <artifactId>maven-cdk-plugin</artifactId>
+ <version>3.2.0-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <library>
+ <prefix>org.richfaces.sandbox.ui</prefix>
+ <taglib>
+ <shortName>inplaceInput</shortName>
+ </taglib>
+ </library>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-impl</artifactId>
+ <version>3.2.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>core</artifactId>
+ <version>3.2.0-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Added: trunk/sandbox/ui/inplaceInput/src/main/config/component/README
===================================================================
Added: trunk/sandbox/ui/inplaceInput/src/main/config/component/inplaceinput.xml
===================================================================
--- trunk/sandbox/ui/inplaceInput/src/main/config/component/inplaceinput.xml (rev 0)
+++ trunk/sandbox/ui/inplaceInput/src/main/config/component/inplaceinput.xml 2008-02-08 14:50:55 UTC (rev 5951)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE components PUBLIC "-//AJAX4JSF//CDK Generator config/EN" "https://ajax4jsf.dev.java.net/nonav/dtds/component-config.dtd" >
+<components>
+ <component>
+ <name>org.richfaces.InplaceInput</name>
+ <family>org.richfaces.InplaceInput</family>
+ <classname>
+ org.richfaces.component.html.HtmlInplaceInput
+ </classname>
+ <superclass>org.richfaces.component.UIInplaceInput</superclass>
+ <test>
+ <classname>org.richfaces.component.html.HtmlInplaceInputComponentTest</classname>
+ <superclassname>org.ajax4jsf.tests.AbstractAjax4JsfTestCase</superclassname>
+ </test>
+ <description>
+ <![CDATA[ ]]>
+ </description>
+ <renderer generate="true" override="true">
+ <name>org.richfaces.renderkit.InplaceInputRenderer</name>
+ <template>inplaceinput.jspx</template>
+ </renderer>
+
+ <tag>
+ <name>inplaceInput</name>
+ <classname>org.richfaces.taglib.InplaceInputTag</classname>
+ <superclass>
+ org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
+ </superclass>
+ </tag>
+ <properties>
+ <property>
+ <name>value</name>
+ <classname>java.lang.String</classname>
+ </property>
+ </properties>
+ </component>
+</components>
Added: trunk/sandbox/ui/inplaceInput/src/main/java/org/richfaces/component/README
===================================================================
Added: trunk/sandbox/ui/inplaceInput/src/main/java/org/richfaces/component/UIInplaceInput.java
===================================================================
--- trunk/sandbox/ui/inplaceInput/src/main/java/org/richfaces/component/UIInplaceInput.java (rev 0)
+++ trunk/sandbox/ui/inplaceInput/src/main/java/org/richfaces/component/UIInplaceInput.java 2008-02-08 14:50:55 UTC (rev 5951)
@@ -0,0 +1,22 @@
+/**
+ *
+ */
+package org.richfaces.component;
+
+import javax.faces.component.UIInput;
+
+/**
+ * UI implementation of InplaceInput component
+ * @author Vladimir Molotkov
+ * @since 3.2.0
+ */
+
+
+public abstract class UIInplaceInput extends UIInput {
+
+ public abstract String getDefaultLabel();
+ public abstract void setDefaultLabel(String label);
+
+
+
+}
\ No newline at end of file
Added: trunk/sandbox/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java
===================================================================
--- trunk/sandbox/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java (rev 0)
+++ trunk/sandbox/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java 2008-02-08 14:50:55 UTC (rev 5951)
@@ -0,0 +1,22 @@
+package org.richfaces.renderkit;
+
+import org.ajax4jsf.renderkit.HeaderResourcesRendererBase;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.richfaces.component.UIInplaceInput;
+
+/**
+ * @author Vladimir Molotkov
+ * @since 3.2.0
+ * InplaceInput Base renderer implementation
+ *
+ */
+public class InplaceInputBaseRenderer extends HeaderResourcesRendererBase {
+
+ private static Log logger = LogFactory.getLog(InplaceInputBaseRenderer.class);
+
+
+ protected Class<UIInplaceInput> getComponentClass() {
+ return UIInplaceInput.class;
+ }
+}
Added: trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss
===================================================================
--- trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss (rev 0)
+++ trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss 2008-02-08 14:50:55 UTC (rev 5951)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<f:template xmlns:f='http:/jsf.exadel.com/template'
+ xmlns:u='http:/jsf.exadel.com/template/util'
+ xmlns="http://www.w3.org/1999/xhtml" >
+
+<f:verbatim>
+<![CDATA[
+
+]]>
+
+</f:verbatim>
+
+</f:template>
Added: trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
===================================================================
--- trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js (rev 0)
+++ trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-02-08 14:50:55 UTC (rev 5951)
@@ -0,0 +1,13 @@
+if (!window.Richfaces) window.Richfaces = {};
+Richfaces.InplaceInput = Class.create();
+
+
+Richfaces.InplaceInput.prototype = {
+
+ initialize: function() {
+ this.initHandlers();
+ },
+
+ initHandlers : function() {
+ },
+};
\ No newline at end of file
Added: trunk/sandbox/ui/inplaceInput/src/main/templates/README
===================================================================
Added: trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx
===================================================================
--- trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx (rev 0)
+++ trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-02-08 14:50:55 UTC (rev 5951)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<f:root
+ xmlns:f="http://ajax4jsf.org/cdk/template"
+ xmlns:c=" http://java.sun.com/jsf/core"
+ xmlns:ui=" http://ajax4jsf.org/cdk/ui"
+ xmlns:u=" http://ajax4jsf.org/cdk/u"
+ xmlns:jsp=" http://ajax4jsf.org/cdk/jsp"
+ xmlns:x=" http://ajax4jsf.org/cdk/x"
+ baseclass="org.richfaces.renderkit.InplaceInputBaseRenderer"
+ class="org.richfaces.renderkit.html.InplaceInputRenderer"
+ component="org.richfaces.component.UIInplaceInput">
+
+
+ <h:styles>css/inplaceinput.xcss</h:styles>
+ <h:scripts>
+ new org.ajax4jsf.javascript.PrototypeScript(),
+ scripts/inplaceinput.js
+ </h:scripts>
+
+ <f:clientid var="clientId" />
+ <script type="text/javascript">
+ var inplaceInput = new Richfaces.InplaceInput();
+ </script>
+</f:root>
\ No newline at end of file
Added: trunk/sandbox/ui/inplaceInput/src/test/java/org/richfaces/component/JSFComponentTest.java
===================================================================
--- trunk/sandbox/ui/inplaceInput/src/test/java/org/richfaces/component/JSFComponentTest.java (rev 0)
+++ trunk/sandbox/ui/inplaceInput/src/test/java/org/richfaces/component/JSFComponentTest.java 2008-02-08 14:50:55 UTC (rev 5951)
@@ -0,0 +1,53 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.component;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+import javax.faces.component.UIComponent;
+
+/**
+ * Unit test for simple Component.
+ */
+public class JSFComponentTest
+ extends TestCase
+{
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public JSFComponentTest( String testName )
+ {
+ super( testName );
+ }
+
+
+ /**
+ * Rigourous Test :-)
+ */
+ public void testComponent()
+ {
+ assertTrue( true );
+ }
+}
18 years, 2 months
JBoss Rich Faces SVN: r5950 - in trunk/sandbox/samples: inplaceInput-sample and 10 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-02-08 09:49:21 -0500 (Fri, 08 Feb 2008)
New Revision: 5950
Added:
trunk/sandbox/samples/inplaceInput-sample/
trunk/sandbox/samples/inplaceInput-sample/pom.xml
trunk/sandbox/samples/inplaceInput-sample/src/
trunk/sandbox/samples/inplaceInput-sample/src/main/
trunk/sandbox/samples/inplaceInput-sample/src/main/java/
trunk/sandbox/samples/inplaceInput-sample/src/main/java/org/
trunk/sandbox/samples/inplaceInput-sample/src/main/java/org/richfaces/
trunk/sandbox/samples/inplaceInput-sample/src/main/java/org/richfaces/samples/
trunk/sandbox/samples/inplaceInput-sample/src/main/java/org/richfaces/samples/Bean.java
trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/
trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/META-INF/
trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/META-INF/MANIFEST.MF
trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/WEB-INF/
trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/WEB-INF/faces-config.xml
trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/WEB-INF/web.xml
trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/
trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp
trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.xhtml
Log:
inplaceInput sample
Added: trunk/sandbox/samples/inplaceInput-sample/pom.xml
===================================================================
--- trunk/sandbox/samples/inplaceInput-sample/pom.xml (rev 0)
+++ trunk/sandbox/samples/inplaceInput-sample/pom.xml 2008-02-08 14:49:21 UTC (rev 5950)
@@ -0,0 +1,27 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <artifactId>samples</artifactId>
+ <groupId>org.richfaces.sandbox</groupId>
+ <version>3.2.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces</groupId>
+ <artifactId>inplaceInput-sample</artifactId>
+ <packaging>war</packaging>
+ <name>webapp Maven Webapp</name>
+ <build>
+ <finalName>inplaceInput-sample</finalName>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.richfaces.sandbox.ui</groupId>
+ <artifactId>inplaceInput</artifactId>
+ <version>3.2.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.samples</groupId>
+ <artifactId>skins</artifactId>
+ <version>3.2.0-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Added: trunk/sandbox/samples/inplaceInput-sample/src/main/java/org/richfaces/samples/Bean.java
===================================================================
Added: trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/META-INF/MANIFEST.MF
===================================================================
--- trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/META-INF/MANIFEST.MF (rev 0)
+++ trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/META-INF/MANIFEST.MF 2008-02-08 14:49:21 UTC (rev 5950)
@@ -0,0 +1,2 @@
+Manifest-Version: 1.0
+
Added: trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/WEB-INF/faces-config.xml (rev 0)
+++ trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/WEB-INF/faces-config.xml 2008-02-08 14:49:21 UTC (rev 5950)
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>bean</managed-bean-name>
+ <managed-bean-class>org.richfaces.sandbox.samples.Bean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <navigation-rule>
+ <display-name>xhtml</display-name>
+ <navigation-case>
+ <from-outcome>xhtml</from-outcome>
+ <to-view-id>/faces/pages/index.xhtml</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>jsp</from-outcome>
+ <to-view-id>/faces/pages/index.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+ <managed-bean>
+ <managed-bean-name>skinBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.SkinBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/WEB-INF/web.xml (rev 0)
+++ trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/WEB-INF/web.xml 2008-02-08 14:49:21 UTC (rev 5950)
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+ <display-name>Archetype Created Web Application</display-name>
+ <context-param>
+ <param-name>javax.faces.CONFIG_FILES</param-name>
+ <param-value>/WEB-INF/faces-config.xml</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>server</param-value>
+ </context-param>
+ <!-- Use Documents Saved as *.xhtml -->
+ <context-param>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.jsp</param-value>
+ </context-param>
+
+ <!-- Facelets pages will use the .xhtml extension -->
+ <context-param>
+ <param-name>facelets.VIEW_MAPPINGS</param-name>
+ <param-value>*xhtml</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
+ <param-value>com.sun.facelets.FaceletViewHandler</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
+ <param-value>false</param-value>
+ </context-param>
+ <!--
+ -->
+ <filter>
+ <display-name>Ajax4jsf Filter</display-name>
+ <filter-name>ajax4jsf</filter-name>
+ <filter-class>org.ajax4jsf.Filter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>ajax4jsf</filter-name>
+ <servlet-name>Faces Servlet</servlet-name>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>INCLUDE</dispatcher>
+ <dispatcher>ERROR</dispatcher>
+ </filter-mapping>
+ <!-- Faces Servlet -->
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ </servlet>
+
+ <!-- Use prefix mapping for Facelets pages, e.g. http://localhost:8080/webapp/faces/mypage.xhtml -->
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>/faces/*</url-pattern>
+ </servlet-mapping>
+
+
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ </login-config>
+</web-app>
Added: trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp
===================================================================
Added: trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.xhtml
===================================================================
18 years, 2 months
JBoss Rich Faces SVN: r5949 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-02-08 09:45:24 -0500 (Fri, 08 Feb 2008)
New Revision: 5949
Modified:
trunk/docs/userguide/en/src/main/docbook/included/actionparam.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/ajaxListener.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/keepAlive.desc.xml
Log:
http://jira.jboss.com/jira/browse/RF-2193 - http://jira.jboss.com/jira/browse/RF-2193
Modified: trunk/docs/userguide/en/src/main/docbook/included/actionparam.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/actionparam.desc.xml 2008-02-08 14:41:47 UTC (rev 5948)
+++ trunk/docs/userguide/en/src/main/docbook/included/actionparam.desc.xml 2008-02-08 14:45:24 UTC (rev 5949)
@@ -1,4 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
+<chapter>
<section>
<sectioninfo>
<keywordset>
@@ -20,4 +21,5 @@
</emphasis>can be found <ulink
url="http://java.sun.com/javaee/javaserverfaces/1.2/docs/tlddocs/index.html"
>here</ulink>.</para>
-</section>
\ No newline at end of file
+</section>
+</chapter>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/ajaxListener.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/ajaxListener.desc.xml 2008-02-08 14:41:47 UTC (rev 5948)
+++ trunk/docs/userguide/en/src/main/docbook/included/ajaxListener.desc.xml 2008-02-08 14:45:24 UTC (rev 5949)
@@ -1,8 +1,14 @@
<?xml version='1.0' encoding='UTF-8'?>
+<chapter>
<section>
- <keyword>ajaxListener</keyword>
+ <sectioninfo>
+ <keywordset>
+ <keyword>ajaxListener</keyword>
+ </keywordset>
+ </sectioninfo>
<title>Description</title>
<para>The <emphasis role="bold"><property><a4j:ajaxListener></property></emphasis>
component is the same one as <emphasis role="bold"><property><f:actionListener></property></emphasis>
or <emphasis role="bold"><property><f:valueChangeListener></property></emphasis>, but for an Ajax container.</para>
</section>
+</chapter>
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/keepAlive.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/keepAlive.desc.xml 2008-02-08 14:41:47 UTC (rev 5948)
+++ trunk/docs/userguide/en/src/main/docbook/included/keepAlive.desc.xml 2008-02-08 14:45:24 UTC (rev 5949)
@@ -1,4 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
+<chapter>
<section>
<sectioninfo>
<keywordset>
@@ -11,4 +12,5 @@
<property><a4j:keepAlive></property>
</emphasis> component allows to keep a state of each bean between requests.</para>
-</section>
\ No newline at end of file
+</section>
+</chapter>
\ No newline at end of file
18 years, 2 months
JBoss Rich Faces SVN: r5948 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-02-08 09:41:47 -0500 (Fri, 08 Feb 2008)
New Revision: 5948
Modified:
trunk/docs/userguide/en/src/main/docbook/included/simpleTogglePanel.xml
Log:
http://jira.jboss.com/jira/browse/RF-2153 - 'Expanded' attribute changed to 'opened' according to dev project
Modified: trunk/docs/userguide/en/src/main/docbook/included/simpleTogglePanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/simpleTogglePanel.xml 2008-02-08 14:41:32 UTC (rev 5947)
+++ trunk/docs/userguide/en/src/main/docbook/included/simpleTogglePanel.xml 2008-02-08 14:41:47 UTC (rev 5948)
@@ -51,11 +51,10 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <rich:simpleTogglePanel>
- ...
- </rich:simpleTogglePanel>
-...
-]]></programlisting>
+<rich:simpleTogglePanel>
+ ...
+</rich:simpleTogglePanel>
+...]]></programlisting>
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
@@ -94,10 +93,16 @@
to the hidden panel is performed with client JavaScript.</para>
</listitem>
</itemizedlist>
- <para>The component could also have an <emphasis>
- <property>"expanded"</property>
- </emphasis> (true/false) attribute responsible for keeping a panel state. It gives an
- opportunity to manage a <property>simpleTogglePanel</property> state from a model.</para>
+ <para>The <emphasis role="bold"
+ ><property><rich:simpleTogglePanel></property></emphasis>component also has an <emphasis>
+ <property>"opened"</property>
+ </emphasis> attribute responsible for keeping a panel state. It gives an
+ opportunity to manage state of the component from a model.
+ If the value of this attribute is"true" the component is expanded.
+ </para>
+
+ <!--SIMPLE EXAMPLE NEEDED -->
+
<itemizedlist>
<listitem> onmouseover </listitem>
<listitem> onclick </listitem>
18 years, 2 months
JBoss Rich Faces SVN: r5947 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-02-08 09:41:32 -0500 (Fri, 08 Feb 2008)
New Revision: 5947
Modified:
trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml
Log:
http://jira.jboss.com/jira/browse/RF-2196 - done
Modified: trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml 2008-02-08 14:34:02 UTC (rev 5946)
+++ trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml 2008-02-08 14:41:32 UTC (rev 5947)
@@ -13,7 +13,6 @@
<thead>
<row>
<entry>Name</entry>
-
<entry>Value</entry>
</row>
</thead>
@@ -21,13 +20,11 @@
<tbody>
<row>
<entry>component-type</entry>
-
<entry>org.richfaces.DropDownMenu</entry>
</row>
<row>
<entry>component-class</entry>
-
<entry>org.richfaces.component.html.HtmlDropDownMenu</entry>
</row>
@@ -39,13 +36,11 @@
<row>
<entry>renderer-type</entry>
-
<entry>org.richfaces.DropDownMenuRenderer</entry>
</row>
<row>
<entry>tag-class</entry>
-
<entry>org.richfaces.taglib.DropDownMenuTag</entry>
</row>
</tbody>
@@ -62,11 +57,10 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <rich:dropDownMenu value="Item1">
- <!--Nested menu components-->
- </rich:dropDownMenu>
-...
- ]]></programlisting>
+<rich:dropDownMenu value="Item1">
+ <!--Nested menu components-->
+</rich:dropDownMenu>
+...]]></programlisting>
</section>
@@ -104,11 +98,10 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <f:facet name="label">
- <h:graphicImage value="/images/img1.png"/>
- </f:facet>
-...
- ]]></programlisting>
+<f:facet name="label">
+ <h:graphicImage value="/images/img1.png"/>
+</f:facet>
+...]]></programlisting>
<para>Use the <emphasis>
<property>"event"</property>
@@ -121,11 +114,10 @@
</para>
<programlisting role="XML"><![CDATA[...
- <rich:dropDownMenu event="onclick" value="Item1">
- <!--Nested menu components-->
- </rich:dropDownMenu>
-...
-]]></programlisting>
+<rich:dropDownMenu event="onclick" value="Item1">
+ <!--Nested menu components-->
+</rich:dropDownMenu>
+...]]></programlisting>
<para>The <emphasis role="bold">
<property><rich:dropDownMenu></property>
@@ -241,19 +233,18 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <rich:dropDownMenu value="File" direction="bottom-right" jointPoint="tr">
- <rich:menuItem submitMode="ajax" value="New" action="#{ddmenu.doNew}"/>
- <rich:menuItem submitMode="ajax" value="Open" action="#{ddmenu.doOpen}"/>
- <rich:menuGroup value="Save As...">
- <rich:menuItem submitMode="ajax" value="Text File" action="#{ddmenu.doSaveText}"/>
- <rich:menuItem submitMode="ajax" value="PDF File" action="#{ddmenu.doSavePDF}"/>
- </rich:menuGroup>
- <rich:menuItem submitMode="ajax" value="Close" action="#{ddmenu.doClose}"/>
- <rich:menuSeparator id="menuSeparator11"/>
- <rich:menuItem submitMode="ajax" value="Exit" action="#{ddmenu.doExit}"/>
- </rich:dropDownMenu>
-...
-]]></programlisting>
+<rich:dropDownMenu value="File" direction="bottom-right" jointPoint="tr">
+ <rich:menuItem submitMode="ajax" value="New" action="#{ddmenu.doNew}"/>
+ <rich:menuItem submitMode="ajax" value="Open" action="#{ddmenu.doOpen}"/>
+ <rich:menuGroup value="Save As...">
+ <rich:menuItem submitMode="ajax" value="Text File" action="#{ddmenu.doSaveText}"/>
+ <rich:menuItem submitMode="ajax" value="PDF File" action="#{ddmenu.doSavePDF}"/>
+ </rich:menuGroup>
+ <rich:menuItem submitMode="ajax" value="Close" action="#{ddmenu.doClose}"/>
+ <rich:menuSeparator id="menuSeparator11"/>
+ <rich:menuItem submitMode="ajax" value="Exit" action="#{ddmenu.doExit}"/>
+</rich:dropDownMenu>
+...]]></programlisting>
<para>This is the result:</para>
@@ -282,19 +273,18 @@
</para>
<programlisting role="XML"><![CDATA[...
- <rich:dropDownMenu value="File" direction="bottom-right" jointPoint="tr" horizontalOffset="-15" verticalOffset="0">
- <rich:menuItem submitMode="ajax" value="New" action="#{ddmenu.doNew}"/>
- <rich:menuItem submitMode="ajax" value="Open" action="#{ddmenu.doOpen}"/>
- <rich:menuGroup value="Save As...">
- <rich:menuItem submitMode="ajax" value="Text File" action="#{ddmenu.doSaveText}"/>
- <rich:menuItem submitMode="ajax" value="PDF File" action="#{ddmenu.doSavePDF}"/>
- </rich:menuGroup>
- <rich:menuItem submitMode="ajax" value="Close" action="#{ddmenu.doClose}"/>
- <rich:menuSeparator id="menuSeparator11"/>
- <rich:menuItem submitMode="ajax" value="Exit" action="#{ddmenu.doExit}"/>
- </rich:dropDownMenu>
-...
- ]]></programlisting>
+<rich:dropDownMenu value="File" direction="bottom-right" jointPoint="tr" horizontalOffset="-15" verticalOffset="0">
+ <rich:menuItem submitMode="ajax" value="New" action="#{ddmenu.doNew}"/>
+ <rich:menuItem submitMode="ajax" value="Open" action="#{ddmenu.doOpen}"/>
+ <rich:menuGroup value="Save As...">
+ <rich:menuItem submitMode="ajax" value="Text File" action="#{ddmenu.doSaveText}"/>
+ <rich:menuItem submitMode="ajax" value="PDF File" action="#{ddmenu.doSavePDF}"/>
+ </rich:menuGroup>
+ <rich:menuItem submitMode="ajax" value="Close" action="#{ddmenu.doClose}"/>
+ <rich:menuSeparator id="menuSeparator11"/>
+ <rich:menuItem submitMode="ajax" value="Exit" action="#{ddmenu.doExit}"/>
+</rich:dropDownMenu>
+...]]></programlisting>
<para>This is the result:</para>
@@ -339,28 +329,22 @@
...
]]></programlisting-->
- <para>The <emphasis role="bold">
- <property><rich:dropDownMenu></property>
- </emphasis> component allows to use <emphasis>
- <property>"labelDisabled"</property>
- </emphasis>. It' necessary to define <emphasis>
- <property>"disabled"</property>
- </emphasis> attribute as <property>"true"</property> for
- <property>dropDownMenu</property>. An example is placed below.</para>
-
+<para>
+ The <emphasis><property>"disabled"</property></emphasis> attribute is used for disabling whole
+ <emphasis role="bold"><property><rich:dropDownMenu></property></emphasis> component. In this case it is
+ necessary to define <emphasis><property>"disabled"</property></emphasis> attribute as <property>"true"</property>.
+ An example is placed below.
+</para>
+
<para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <rich:dropDownMenu disabled="true">
- <f:facet name="labelDisabled">
- <h:graphicImage value="/images/ico1.png"/>
- </f:facet>
- <!--Nested menu components-->
- </rich:dropDownMenu>
-...
-]]></programlisting>
+<rich:dropDownMenu value="File" disabled="true">
+ ...
+</rich:dropDownMenu>
+...]]></programlisting>
</section>
18 years, 2 months