JBoss Rich Faces SVN: r6317 - trunk/docs/faq/en/src/main/docbook/module.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-02-25 06:40:44 -0500 (Mon, 25 Feb 2008)
New Revision: 6317
Modified:
trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml
Log:
http://jira.jboss.com/jira/browse/RF-2099 - added the information in FAQ
Modified: trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml
===================================================================
--- trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml 2008-02-25 09:50:46 UTC (rev 6316)
+++ trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml 2008-02-25 11:40:44 UTC (rev 6317)
@@ -1777,5 +1777,30 @@
</h:form>
...]]></programlisting>
</section>
-
+ <section id="AddSupportAsFacet">
+ <title>How to add support as facet instead of children?</title>
+ <para>In order to add <emphasis role="bold">
+ <property><a4j:support></property>
+ </emphasis> in Java code you should add it as <emphasis><property>facet</property></emphasis>, not children:</para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<h:inputText value="#{bean.text}">
+ <a4j:support event="onkeyup" reRender="output" action="#{bean.action}"/>
+</h:inputText>
+...]]></programlisting>
+ <para>Below you can see Java code:</para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+<programlisting role="JAVA"><![CDATA[HtmlInputText inputText = new HtmlInputText();
+...
+HtmlAjaxSupport ajaxSupport = new HtmlAjaxSupport();
+ ajaxSupport.setActionExpression(FacesContext.getCurrentInstance().getApplication().getExpressionFactory().createMethodExpression(FacesContext.getCurrentInstance().getELContext(), "#{bean.action}", String.class, new Class[] {}));
+ ajaxSupport.setEvent("onkeyup");
+ ajaxSupport.setReRender("output");
+ inputText.getFacets().put("a4jsupport", ajaxSupport);
+]]></programlisting>
+ </section>
</chapter>
16 years, 10 months
JBoss Rich Faces SVN: r6316 - trunk/sandbox/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-02-25 04:50:46 -0500 (Mon, 25 Feb 2008)
New Revision: 6316
Modified:
trunk/sandbox/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/css/fileUpload.xcss
Log:
skinning
Modified: trunk/sandbox/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/css/fileUpload.xcss
===================================================================
--- trunk/sandbox/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/css/fileUpload.xcss 2008-02-23 01:07:17 UTC (rev 6315)
+++ trunk/sandbox/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/css/fileUpload.xcss 2008-02-25 09:50:46 UTC (rev 6316)
@@ -8,19 +8,16 @@
body{margin : 20px}
-.upload_font{font-family : verdana /*generalFamilyFont*/ ; font-size : 11px/*generalSizeFont*/;}
-
table{width : 100%}
-.upload_table_td{border-bottom:1px solid #c0c0c0 /*tableBorderColor*/;white-space : nowrap;}
+.upload_table_td{border-bottom:1px solid; white-space : nowrap;}
-.upload_list_decor{ border:1px solid #c0c0c0 /*tableBorderColor*/; background : #FFFFFF /*tableBackgroundColor*/;}
+.upload_list_decor{ border:1px solid;}
.upload_list_overflow{overflow : auto; overflow-x : hidden;}
.upload_name{ width : 100%; height : 50px; padding : 2px 10px 2px 10px;}
.upload_del{ width : 90px; text-align : center; padding-top : 3; padding-bottom : 3;}
.upload_scroll{ width : 10px; text-align : center;}
-.upload_anc{ color : ##0078D0/*generalLinkColor*/;}
-.upload_toolbar_decor{ background : #EAF0F8 /*additionalBackgroundColor*/;border-bottom:1px solid #c0c0c0 /*tableBorderColor*/;border-top:1px solid #FFFFFF /*tableBackgroundColor*/;border-left:1px solid #FFFFFF /*tableBackgroundColor*/;padding : 2px}
+.upload_toolbar_decor{border-bottom:1px solid;border-top:1px solid;border-left:1px solid;padding : 2px}
input[type="file"][class~="hidden"]::-webkit-file-upload-button {
font-size: 10em;
@@ -28,7 +25,7 @@
}
.upload_button_border{
- border : 1px solid #C0C0C0; /*tableBorderColor*/
+ border : 1px solid;
margin : 2px;
}
.upload_button{
@@ -38,25 +35,24 @@
}
.upload_button_light{
background-repeat: repeat x top left #C6D6EA;
- border : 1px solid #E79A00; /*selectControlColor*/
+ border : 1px solid;
cursor : pointer;
padding : 1px;
}
.upload_button_dis{
- background :#f1f1f1 /*trimColor*/ repeat-x;
+ background-repeat: repeat-x;
cursor : pointer;
padding : 2px;
}
.upload_button_press{
background-repeat: repeat x top left #EAF0F8;
- border : 1px solid #E79A00; /*selectControlColor*/
+ border : 1px solid;
padding : 2px 0px 0px 2px;
}
a.upload_button_selection{
text-decoration : none;
- color : #000000; /*generalTextColor*/
display : block;
}
.upload_button_content{
@@ -72,13 +68,6 @@
.upload_name_padding{padding : 2px 0px 2px 0px;}
.upload_ico{background-position : 0px 50%; background-repeat : no-repeat; padding-left : 19px}
-.upload_ico_add{}
-.upload_ico_add_dis{color:#C0C0C0; /*tableBorderColor*/}
-.upload_ico_start{}
-.upload_ico_start_dis{color:#C0C0C0; /*tableBorderColor*/}
-.upload_ico_stop{}
-.upload_ico_clear{}
-.upload_ico_clear_dis{color:#C0C0C0; /*tableBorderColor*/}
input.hidden {
Z-INDEX: 2;
@@ -91,6 +80,43 @@
]]>
</f:verbatim>
+<u:selector name=".upload_font">
+ <u:style name="font-family" skin="generalFamilyFont" />
+ <u:style name="font-size" skin="generalSizeFont" />
+</u:selector>
+
+<u:selector name=".upload_table_td">
+ <u:style name="border-color" skin="tableBorderColor" />
+</u:selector>
+
+<u:selector name=".upload_list_decor">
+ <u:style name="border-color" skin="tableBorderColor" />
+ <u:style name="background-color" skin="tableBackgroundColor" />
+</u:selector>
+
+<u:selector name=".upload_anc">
+ <u:style name="color" skin="generalLinkColor" />
+</u:selector>
+
+<u:selector name=".upload_toolbar_decor">
+ <u:style name="background-color" skin="additionalBackgroundColor" />
+ <u:style name="border-bottom-color" skin="tableBorderColor" />
+ <u:style name="border-top-color" skin="tableBackgroundColor" />
+ <u:style name="border-left-color" skin="tableBackgroundColor" />
+</u:selector>
+
+<u:selector name=".upload_button_border">
+ <u:style name="border-color" skin="tableBorderColor" />
+</u:selector>
+
+<u:selector name=".upload_button_dis">
+ <u:style name="background-color" skin="trimColor" />
+</u:selector>
+
+<u:selector name="a.upload_button_selection">
+ <u:style name="color" skin="generalTextColor" />
+</u:selector>
+
<u:selector name=".upload_button">
<u:style name="background-image">
<f:resource f:key="/org/richfaces/renderkit/html/images/bg_header.png" />
@@ -101,12 +127,14 @@
<u:style name="background-image">
<f:resource f:key="/org/richfaces/renderkit/html/images/bg_header.png" />
</u:style>
+ <u:style name="border-color" skin="selectControlColor" />
</u:selector>
<u:selector name=".upload_button_press">
<u:style name="background-image">
<f:resource f:key="/org/richfaces/renderkit/html/images/bg_press.png" />
</u:style>
+ <u:style name="border-color" skin="selectControlColor" />
</u:selector>
<u:selector name=".upload_ico_add">
@@ -119,6 +147,7 @@
<u:style name="background-image">
<f:resource f:key="/org/richfaces/renderkit/html/images/ico_add_dis.gif" />
</u:style>
+ <u:style name="color" skin="tableBorderColor" />
</u:selector>
<u:selector name=".upload_ico_start">
@@ -131,6 +160,7 @@
<u:style name="background-image">
<f:resource f:key="/org/richfaces/renderkit/html/images/ico_start_dis.gif" />
</u:style>
+ <u:style name="color" skin="tableBorderColor" />
</u:selector>
<u:selector name=".upload_ico_stop">
@@ -149,6 +179,7 @@
<u:style name="background-image">
<f:resource f:key="/org/richfaces/renderkit/html/images/ico_clear_dis.gif" />
</u:style>
+ <u:style name="color" skin="tableBorderColor" />
</u:selector>
</f:template>
16 years, 11 months
JBoss Rich Faces SVN: r6315 - management/design/standardComponent.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-02-22 20:07:17 -0500 (Fri, 22 Feb 2008)
New Revision: 6315
Added:
management/design/standardComponent/styles.js
Modified:
management/design/standardComponent/example.html
Log:
std components script added
Modified: management/design/standardComponent/example.html
===================================================================
--- management/design/standardComponent/example.html 2008-02-22 20:24:07 UTC (rev 6314)
+++ management/design/standardComponent/example.html 2008-02-23 01:07:17 UTC (rev 6315)
@@ -6,11 +6,15 @@
<title>Untitled</title>
<link rel="STYLESHEET" type="text/css" href="basic.css">
-<link rel="STYLESHEET" type="text/css" href="advanced.css">
+<link rel="STYLESHEET" type="text/css" href="advanced.css" media="rich:std-components">
+
+<script src="styles.js"></script>
+
</head>
<body>
+
<fieldset>
<legend>Legend</legend>
<button>Test</button>
Added: management/design/standardComponent/styles.js
===================================================================
--- management/design/standardComponent/styles.js (rev 0)
+++ management/design/standardComponent/styles.js 2008-02-23 01:07:17 UTC (rev 6315)
@@ -0,0 +1,53 @@
+//skip Opera & Safari as they have their own custom styling
+
+var skipNavigator = window.opera || navigator.userAgent.indexOf('AppleWebKit/') > -1;
+if (!skipNavigator) {
+
+ var getElementByTagName = function(elt, name) {
+ var elements;
+ try {
+ elements = elt.selectNodes(".//*[local-name()=\""+
+ name +"\"]");
+ } catch (ex) {
+ try {
+ elements = elt.getElementsByTagName(name);
+ } catch(nf){
+ //ok, give up, no elements found
+ }
+ }
+
+ return elements;
+ };
+
+ var links = getElementByTagName(window.document, 'link');
+ if (links) {
+ var l = links.length;
+
+ for (var i = 0; i < l; i++ ) {
+ var link = links[i];
+
+ if (link["rich:std-components"]) {
+ break;
+ }
+
+ var media = link.getAttribute('media');
+
+ if ("rich:std-components" == media) {
+ link["rich:std-components"] = true;
+
+ link.removeAttribute('media');
+
+ var ns = link.nextSibling;
+ var lpn = link.parentNode;
+ lpn.removeChild(link);
+ if (ns) {
+ lpn.insertBefore(link, ns);
+ } else {
+ lpn.appendChild(link);
+ }
+
+ break;
+ }
+ }
+ }
+}
\ No newline at end of file
16 years, 11 months
JBoss Rich Faces SVN: r6314 - trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-02-22 15:24:07 -0500 (Fri, 22 Feb 2008)
New Revision: 6314
Modified:
trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
Log:
cosmetic changes
Modified: trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
===================================================================
--- trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-02-22 20:10:42 UTC (rev 6313)
+++ trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-02-22 20:24:07 UTC (rev 6314)
@@ -18,6 +18,7 @@
},
tempKeeperClickHandler : function() {
+ this.comboList.isList = false;
this.comboList.showWithDelay();
},
@@ -25,8 +26,8 @@
$super(event);
/*if (this.comboList.isList) {
this.tempValueKeeper.focus();
- }
- this.comboList.hideWithDelay();*/
+ } */
+ this.comboList.hideWithDelay();
},
listClickHandler : function(event) {
@@ -83,9 +84,9 @@
this.tempValueKeeper.value = userValue;
this.comboList.selectedItem = this.comboList.activeItem;
}
- /*if (!this.comboList.isList || this.clickOnBar) {
+ if (!this.comboList.isList || this.clickOnBar) {
$super();
- }*/
+ }
},
deleteViewArtifacts : function () {
16 years, 11 months
JBoss Rich Faces SVN: r6313 - in trunk/sandbox/ui/inplaceSelect/src/main: resources/org/richfaces/renderkit/html/scripts and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-02-22 15:10:42 -0500 (Fri, 22 Feb 2008)
New Revision: 6313
Modified:
trunk/sandbox/ui/inplaceSelect/src/main/config/component/inplaceselect.xml
trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
Log:
cosmetic changes
Modified: trunk/sandbox/ui/inplaceSelect/src/main/config/component/inplaceselect.xml
===================================================================
--- trunk/sandbox/ui/inplaceSelect/src/main/config/component/inplaceselect.xml 2008-02-22 18:57:47 UTC (rev 6312)
+++ trunk/sandbox/ui/inplaceSelect/src/main/config/component/inplaceselect.xml 2008-02-22 20:10:42 UTC (rev 6313)
@@ -38,13 +38,13 @@
<name>maxSelectWidth</name>
<classname>java.lang.String</classname>
<description></description>
- <defaultvalue><![CDATA[""]]></defaultvalue>
+ <defaultvalue><![CDATA["200"]]></defaultvalue>
</property>
<property>
<name>minSelectWidth</name>
<classname>java.lang.String</classname>
<description></description>
- <defaultvalue><![CDATA[""]]></defaultvalue>
+ <defaultvalue><![CDATA["100"]]></defaultvalue>
</property>
<property>
<name>selectWidth</name>
Modified: trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
===================================================================
--- trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-02-22 18:57:47 UTC (rev 6312)
+++ trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-02-22 20:10:42 UTC (rev 6313)
@@ -3,6 +3,7 @@
initialize : function($super, listObj, clientId, temValueKeepId, valueKeepId, tabberId, strutId, attributes, events, classes, barParams) {
this.comboList = listObj;
$super(clientId, temValueKeepId, valueKeepId, tabberId, strutId, attributes, events, classes, barParams);
+ this.clickOnBar = false;
},
initHandlers : function($super) {
@@ -22,7 +23,10 @@
tmpValueBlurHandler : function($super, event) {
$super(event);
- this.comboList.hideWithDelay();
+ /*if (this.comboList.isList) {
+ this.tempValueKeeper.focus();
+ }
+ this.comboList.hideWithDelay();*/
},
listClickHandler : function(event) {
@@ -79,9 +83,9 @@
this.tempValueKeeper.value = userValue;
this.comboList.selectedItem = this.comboList.activeItem;
}
- if (!this.comboList.isList || this.clickOnBar) {
+ /*if (!this.comboList.isList || this.clickOnBar) {
$super();
- }
+ }*/
},
deleteViewArtifacts : function () {
Modified: trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
===================================================================
--- trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-02-22 18:57:47 UTC (rev 6312)
+++ trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-02-22 20:10:42 UTC (rev 6313)
@@ -65,7 +65,6 @@
<input id="#{clientId}tabber" type="button" value="" style="width: 1px; position: absolute; left: -32767px;" />
<img id="#{clientId}inplaceStrut" src="#{spacer}" class="rich-inplace-select-strut" style="display: none"/>
<input id="#{clientId}inplaceTmpValue"
- readonly="readonly"
type="text"
style='display:none;'
value="#{fieldValue}"
@@ -164,8 +163,8 @@
verticalPosition : '#{component.attributes["controlsPosition"]}',
horizontalPosition : '#{component.attributes["controlsHorizontalAlign"]}',
inputWidth : '#{component.attributes["inputWidth"]}',
- inputMinWidth : '#{component.attributes["inputMinWidth"]}',
- inputMaxWidth : '#{component.attributes["inputMaxWidth"]}'
+ inputMinWidth : '#{component.attributes["minSelectWidth"]}',
+ inputMaxWidth : '#{component.attributes["maxSelectWidth"]}'
};
var richInplaceSelEvents = {oneditactivation : #{this:getAsEventHandler(context, component, "oneditactivation")},
16 years, 11 months
JBoss Rich Faces SVN: r6312 - in trunk/docs/userguide/en/src/main: resources/images and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: vsukhov
Date: 2008-02-22 13:57:47 -0500 (Fri, 22 Feb 2008)
New Revision: 6312
Modified:
trunk/docs/userguide/en/src/main/docbook/included/pickList.xml
trunk/docs/userguide/en/src/main/resources/images/pickList1.png
trunk/docs/userguide/en/src/main/resources/images/pickList2.png
Log:
http://jira.jboss.com/jira/browse/RF-2174 Updated screenshots and deleted JavaScript API.
Modified: trunk/docs/userguide/en/src/main/docbook/included/pickList.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/pickList.xml 2008-02-22 17:15:33 UTC (rev 6311)
+++ trunk/docs/userguide/en/src/main/docbook/included/pickList.xml 2008-02-22 18:57:47 UTC (rev 6312)
@@ -54,8 +54,10 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
-<pickList:pickList value="#{pickBean.listValues}">
-</pickList:pickList>
+<rich:pickList value="#{pickBean.listValues}">
+ <f:selectItem itemValue="Bentley" itemLabel="Bentley"/>
+ <f:selectItem itemValue="Audi" itemLabel="Audi"/>
+</rich:pickList>
...]]></programlisting>
</section>
<section>
@@ -77,9 +79,8 @@
<para>The <emphasis role="bold">
<property><rich:pickList></property>
</emphasis> component consists of <itemizedlist>
- <listitem><property>Item list</property> element that displays a list of items. It
- has three different representations for a single element: common, selected,
- active. Combination of these states is possible.</listitem>
+ <listitem>2 <property>Item lists</property> and every item has three different representations: common, selected, active.
+ Combination of these states is possible.</listitem>
<listitem>
<property>Move controls set</property> is a set of controls, which performs moving items between lists.
</listitem>
@@ -120,11 +121,11 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
-<pickList:pickList listsHeight="#{pickBean.listsHeight}" sourceListWidth="#{pickBean.sourceListWidth}" targetListWidth="#{pickBean.targetListWidth}" value="#{pickBean.listValues}">
- <f:selectItem itemValue="cat" itemLabel="cat"/>
- <f:selectItem itemValue="dog" itemLabel="dog"/>
+<rich:pickList listsHeight="#{pickBean.listsHeight}" sourceListWidth="#{pickBean.sourceListWidth}" targetListWidth="#{pickBean.targetListWidth}" value="#{pickBean.listValues}">
+ <f:selectItem itemValue="Bentley" itemLabel="Bentley"/>
+ <f:selectItem itemValue="Audi" itemLabel="Audi"/>
<f:selectItems value="#{pickBean.testList}"/>
-</pickList:pickList>
+</rich:pickList>
...]]></programlisting>
<para>
@@ -141,12 +142,12 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
-<pickList:pickList copyAllControlLabel = "#{pickBean.copyAllLabel}" copyControlLabel = "#{pickBean.copyLabel}" removeControlLabel = "#{pickBean.removeLabel}"
+<rich:pickList copyAllControlLabel = "#{pickBean.copyAllLabel}" copyControlLabel = "#{pickBean.copyLabel}" removeControlLabel = "#{pickBean.removeLabel}"
removeAllControlLabel ="#{pickBean.removeAllLabel}" value="#{pickBean.listValues}">
- <f:selectItem itemValue="cat" itemLabel="cat"/>
- <f:selectItem itemValue="dog" itemLabel="dog"/>
+ <f:selectItem itemValue="Bentley" itemLabel="Bentley"/>
+ <f:selectItem itemValue="Audi" itemLabel="Audi"/>
<f:selectItems value="#{pickBean.testList}"/>
-</pickList:pickList>
+</rich:pickList>
...]]></programlisting>
<!-- ordering control set-->
@@ -185,7 +186,7 @@
</table>
</section>
- <section>
+ <!-- section>
<title>JavaScript API</title>
<table>
<title>JavaScript API</title>
@@ -196,8 +197,8 @@
<entry>Description</entry>
</row>
</thead>
- <tbody>
- <!--Sorting API -->
+ <tbody-->
+ <!--Sorting API-->
<!--
<row>
<entry>SortAscending()</entry>
@@ -214,7 +215,7 @@
-->
<!--Controls common API -->
- <row>
+ <!--row>
<entry>hide()</entry>
<entry>Hides ordering control</entry>
</row>
@@ -237,9 +238,9 @@
<row>
<entry>isEnabled()</entry>
<entry>Checksif current control is enabled</entry>
- </row>
+ </row-->
<!--List managing API -->
- <row>
+ <!--row>
<entry>copy()</entry>
<entry>Copies selected item from the source list to the target list</entry>
</row>
@@ -266,7 +267,7 @@
</tbody>
</tgroup>
</table>
- </section>
+ </section-->
<section>
<title>Look-and-Feel Customization</title>
Modified: trunk/docs/userguide/en/src/main/resources/images/pickList1.png
===================================================================
(Binary files differ)
Modified: trunk/docs/userguide/en/src/main/resources/images/pickList2.png
===================================================================
(Binary files differ)
16 years, 11 months
JBoss Rich Faces SVN: r6311 - trunk/docs/faq/en/src/main/docbook/module.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-02-22 12:15:33 -0500 (Fri, 22 Feb 2008)
New Revision: 6311
Modified:
trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml
Log:
http://jira.jboss.com/jira/browse/RF-2153 - programm listing fixed
Modified: trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml
===================================================================
--- trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml 2008-02-22 17:07:13 UTC (rev 6310)
+++ trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml 2008-02-22 17:15:33 UTC (rev 6311)
@@ -1617,7 +1617,7 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
-public class SimpleTogglePanel {
+public class demo {
private boolean state = false;
16 years, 11 months
JBoss Rich Faces SVN: r6310 - trunk/ui/progressBAR.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-02-22 12:07:13 -0500 (Fri, 22 Feb 2008)
New Revision: 6310
Modified:
trunk/ui/progressBAR/pom.xml
Log:
add test generation
Modified: trunk/ui/progressBAR/pom.xml
===================================================================
--- trunk/ui/progressBAR/pom.xml 2008-02-22 16:58:16 UTC (rev 6309)
+++ trunk/ui/progressBAR/pom.xml 2008-02-22 17:07:13 UTC (rev 6310)
@@ -22,6 +22,13 @@
<goal>generate</goal>
</goals>
</execution>
+ <execution>
+ <id>generate-test-sources</id>
+ <phase>generate-test-sources</phase>
+ <goals>
+ <goal>generate-tests</goal>
+ </goals>
+ </execution>
</executions>
<configuration>
<library>
16 years, 11 months
JBoss Rich Faces SVN: r6309 - trunk/sandbox/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-02-22 11:58:16 -0500 (Fri, 22 Feb 2008)
New Revision: 6309
Modified:
trunk/sandbox/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
fix JS errors
Modified: trunk/sandbox/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
===================================================================
--- trunk/sandbox/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-02-22 16:55:49 UTC (rev 6308)
+++ trunk/sandbox/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-02-22 16:58:16 UTC (rev 6309)
@@ -387,7 +387,6 @@
this.stopScript = stopScript;
this.getFileSizeScript = getFileSizeScript;
- this.iframe = this.createFrame();//$(this.id + "_iframe");
this.items = $(this.id + ":fileItems");
this.classes = classes;
this.events = events;
@@ -528,7 +527,7 @@
}
},
- _upload() {
+ _upload: function() {
this.runUpload = true;
if (!this.activeEntry) {
@@ -539,7 +538,7 @@
entry.upload();
}
}
- }
+ },
stop: function() {
if (this.disabled) return;
@@ -803,7 +802,7 @@
}
if (!parentForm.onsubmit || parentForm.onsubmit()) {
- var iframe = this.iframe;
+ var iframe = this.createFrame();
new LoadWatcher(iframe, function(newState) {
this.finishProgressBar();
this.setState(newState);
16 years, 11 months
JBoss Rich Faces SVN: r6308 - trunk/docs/faq/en/src/main/docbook/module.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-02-22 11:55:49 -0500 (Fri, 22 Feb 2008)
New Revision: 6308
Modified:
trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml
Log:
http://jira.jboss.com/jira/browse/RF-2153 - programm listing fixed
Modified: trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml
===================================================================
--- trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml 2008-02-22 16:48:43 UTC (rev 6307)
+++ trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml 2008-02-22 16:55:49 UTC (rev 6308)
@@ -1584,13 +1584,13 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
-<rich:simpleTogglePanel id="stpIncludeID" switchType="ajax" width="600px" opened="#{simpleTogglePanel.state}" >
- <a4j:support event="onexpand" actionListener="#{simpleTogglePanel.stateTrue}" reRender="repeater" oncomplete="javascript:Richfaces.showModalPanel('panel');"/>
- <a4j:support event="oncollapse" actionListener="#{simpleTogglePanel.stateFalse}" reRender="repeater" oncomplete="javascript:Richfaces.showModalPanel('panel')"/>
+<rich:simpleTogglePanel id="toggleP" label="simpleTogglePanel" switchType="client" width="600px" opened="#{demo.state}">
+ <a4j:support event="onexpand" actionListener="#{demo.stateTrue}" reRender="repeater" oncomplete="Richfaces.showModalPanel('myFrom:panel')" />
+ <a4j:support event="oncollapse" actionListener="#{demo.stateFalse}" reRender="repeater" oncomplete="Richfaces.showModalPanel('myFrom:panel')" />
<h:panelGrid columns="2" border="0">
- <h:graphicImage url="/pics/Canon.jpg" alt="" width="100px" height="100px"/>
+ <h:graphicImage url="pics/Canon.jpg" alt="" width="100px" height="100px" />
<h:panelGroup>
- <h:outputText style="font: 18px;font-weight: bold;" value="Canon EOS Digital Rebel XT"/>
+ <h:outputText style="font: 18px;font-weight: bold;" value="Canon EOS Digital Rebel XT" />
<f:verbatim>
<br />
8.2 Megapixels - SLR / Large Digital Camera - 1.8 in LCD Screen -
@@ -1599,16 +1599,15 @@
</h:panelGroup>
</h:panelGrid>
</rich:simpleTogglePanel>
-
-<rich:modalPanel id="panel" width="200" height="100">
+<rich:modalPanel id="panel" width="300" height="100">
<f:facet name="header">
- <h:outputText value="States of simpleTogglePanel"/>
+ <h:outputText value="States of simpleTogglePanel" />
</f:facet>
<f:facet name="controls">
- <span style="cursor:pointer" onclick="javascript:Richfaces.hideModalPanel('panel')">X</span>
+ <span style="cursor: pointer" onclick="Richfaces.hideModalPanel('myFrom:panel')">X</span>
</f:facet>
- <h:outputText value="Expanded: " style="font-weight:bold;"/>
- <h:outputText value="#{simpleTogglePanel.state}" id="repeater" />
+ <h:outputText value="Expanded simpleTogglePanel: " style="font-weight:bold;" />
+ <h:outputText value="#{demo.state}" id="repeater" />
</rich:modalPanel>
...]]></programlisting>
<para>
@@ -1620,26 +1619,23 @@
<programlisting role="XML"><![CDATA[...
public class SimpleTogglePanel {
- private boolean state = false;
-
- public boolean isState() {
- return state;
- }
- public void setState(boolean state) {
- this.state = state;
- }
-
-
- public boolean gState() {
- return state;
- }
-
- public void stateTrue(ActionEvent event) {
- this.state = true;
- }
- public void stateFalse(ActionEvent event) {
- this.state = false;
- }
+ private boolean state = false;
+
+ public boolean isState() {
+ return state;
+ }
+
+ public void setState(boolean state) {
+ this.state = state;
+ }
+
+ public void stateTrue(ActionEvent event) {
+ this.state = true;
+ }
+
+ public void stateFalse(ActionEvent event) {
+ this.state = false;
+ }
}
...]]></programlisting>
</section>
16 years, 11 months