JBoss Rich Faces SVN: r6968 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceInput/examples.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-03-19 13:06:09 -0400 (Wed, 19 Mar 2008)
New Revision: 6968
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceInput/examples/blockInplace.xhtml
Log:
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceInput/examples/blockInplace.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceInput/examples/blockInplace.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceInput/examples/blockInplace.xhtml 2008-03-19 17:06:09 UTC (rev 6968)
@@ -0,0 +1,37 @@
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+ <style>
+ .rich-inplace-view, .rich-inplace-changed{
+ border:none;
+ }
+ .rich-inplace-input-view-hover, .rich-inplace-input-changed-hover{
+ color:#{a4jSkin.generalTextColor};
+ background-color:#{a4jSkin.tipBorderColor};
+ }
+
+ </style>
+ <rich:dataTable value="#{dataTableScrollerBean.tenRandomCars}" var="car" width="350px">
+ <rich:column>
+ <f:facet name="header">
+ <h:outputText value="Make"/>
+ </f:facet>
+ <h:outputText value="#{car.make}"/>
+ </rich:column>
+ <rich:column>
+ <f:facet name="header">
+ <h:outputText value="Model"/>
+ </f:facet>
+ <h:outputText value="#{car.model}"/>
+ </rich:column>
+ <rich:column>
+ <f:facet name="header">
+ <h:outputText value="Price"/>
+ </f:facet>
+ <rich:inplaceInput layout="block" value="#{car.price}"/>
+ </rich:column>
+ </rich:dataTable>
+</ui:composition>
\ No newline at end of file
16 years, 10 months
JBoss Rich Faces SVN: r6967 - trunk/ui/suggestionbox/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2008-03-19 12:56:19 -0400 (Wed, 19 Mar 2008)
New Revision: 6967
Modified:
trunk/ui/suggestionbox/src/main/config/component/suggestionbox.xml
Log:
http://jira.jboss.com/jira/browse/RF-2310
Modified: trunk/ui/suggestionbox/src/main/config/component/suggestionbox.xml
===================================================================
--- trunk/ui/suggestionbox/src/main/config/component/suggestionbox.xml 2008-03-19 16:55:48 UTC (rev 6966)
+++ trunk/ui/suggestionbox/src/main/config/component/suggestionbox.xml 2008-03-19 16:56:19 UTC (rev 6967)
@@ -356,7 +356,15 @@
"nothingLabel" is inserted to popup list if the autocomplete returns empty list.
It isn't selectable and list is closed as always after click on it and nothing is put to input.
</description>
- </property>
+ </property>
+ <property elonly="true" hidden="true" existintag="false" exist="false" >
+ <name>data</name>
+ <classname>java.lang.Object</classname>
+ </property>
+ <property elonly="true" hidden="true" existintag="false" exist="false" >
+ <name>rowNumber</name>
+ <classname>java.lang.Object</classname>
+ </property>
</component>
</components>
16 years, 10 months
JBoss Rich Faces SVN: r6966 - trunk/ui/suggestionbox/src/test/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2008-03-19 12:55:48 -0400 (Wed, 19 Mar 2008)
New Revision: 6966
Modified:
trunk/ui/suggestionbox/src/test/java/org/richfaces/component/SuggestionBoxComponentTest.java
Log:
Suggestion box: JUnit tests fixed.
Modified: trunk/ui/suggestionbox/src/test/java/org/richfaces/component/SuggestionBoxComponentTest.java
===================================================================
--- trunk/ui/suggestionbox/src/test/java/org/richfaces/component/SuggestionBoxComponentTest.java 2008-03-19 16:55:31 UTC (rev 6965)
+++ trunk/ui/suggestionbox/src/test/java/org/richfaces/component/SuggestionBoxComponentTest.java 2008-03-19 16:55:48 UTC (rev 6966)
@@ -48,6 +48,7 @@
javaScripts.add("org/richfaces/renderkit/html/scripts/browser_info.js");
javaScripts.add("org/richfaces/renderkit/html/scripts/scriptaculo.js");
javaScripts.add("org/richfaces/renderkit/html/scripts/suggestionbox.js");
+ javaScripts.add("org/richfaces/renderkit/html/scripts/available.js");
}
private UISuggestionBox sb;
16 years, 10 months
JBoss Rich Faces SVN: r6965 - trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-03-19 12:55:31 -0400 (Wed, 19 Mar 2008)
New Revision: 6965
Modified:
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
Log:
http://jira.jboss.com/jira/browse/RF-2612
Modified: trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
===================================================================
--- trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-03-19 16:52:54 UTC (rev 6964)
+++ trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-03-19 16:55:31 UTC (rev 6965)
@@ -140,8 +140,8 @@
this.cancel();
break;
case Event.KEY_RETURN :
- this.save();
Event.stop(e);
+ this.tempValueKeeper.blur();
break;
case Event.KEY_TAB :
this.save();
16 years, 10 months
JBoss Rich Faces SVN: r6964 - in trunk/samples/richfaces-demo/src/main/webapp: richfaces/inplaceInput and 3 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-03-19 12:52:54 -0400 (Wed, 19 Mar 2008)
New Revision: 6964
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/examples/externalFiltering.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceInput/examples/simple.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceInput/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceSelect/examples/selectItems.xhtml
trunk/samples/richfaces-demo/src/main/webapp/templates/include/sourceview.xhtml
Log:
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/examples/externalFiltering.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/examples/externalFiltering.xhtml 2008-03-19 16:43:54 UTC (rev 6963)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/examples/externalFiltering.xhtml 2008-03-19 16:52:54 UTC (rev 6964)
@@ -5,12 +5,6 @@
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<h:form>
- <style>
- .rich-inplace-view{
- color:gray;
- border-bottom-color:gray;
- }
- </style>
<rich:dataTable value="#{capitalsBean.capitals}" var="cap" width="500px">
<f:facet name="header">
<h:outputText value="Filtering Example"/>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceInput/examples/simple.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceInput/examples/simple.xhtml 2008-03-19 16:43:54 UTC (rev 6963)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceInput/examples/simple.xhtml 2008-03-19 16:52:54 UTC (rev 6964)
@@ -4,5 +4,7 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
- <rich:inplaceInput value="#{inplaceComponentsBean.inputValue}" />
+
+ <rich:inplaceInput defaultLabel="Click here to edit"/>
+
</ui:composition>
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceInput/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceInput/usage.xhtml 2008-03-19 16:43:54 UTC (rev 6963)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceInput/usage.xhtml 2008-03-19 16:52:54 UTC (rev 6964)
@@ -9,17 +9,34 @@
<ui:define name="sample">
<p>
- SHORT DESCRIPTION
- </p>
+ <b>InplaceInput </b>is a simple input component which displays current value as
+ <i>outputText </i>and switches to <i>inputText </i>based representation after defined event
+ to allow edit this value.
+ </p>
+
+ <p>
+ You could try simplest example below. Just click on label to edit the value and
+ click somewhere outside the component to store this value(Or just press ENTER button).
+ </p>
+
<div class="sample-container" >
<ui:include src="/richfaces/inplaceInput/examples/simple.xhtml"/>
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath" value="/richfaces/inplaceInput/examples/simple.xhtml"/>
</ui:include>
</div>
+
<p>
- DESCRIPTION
+ EDITABLE CELLs IN TABLE DESCRIPTION
</p>
+
+ <div class="sample-container" >
+ <ui:include src="/richfaces/inplaceInput/examples/blockInplace.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/inplaceInput/examples/blockInplace.xhtml"/>
+ </ui:include>
+ </div>
+
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceSelect/examples/selectItems.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceSelect/examples/selectItems.xhtml 2008-03-19 16:43:54 UTC (rev 6963)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/inplaceSelect/examples/selectItems.xhtml 2008-03-19 16:52:54 UTC (rev 6964)
@@ -5,6 +5,6 @@
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<rich:inplaceSelect value="#{inplaceComponentsBean.inputValue}">
- <f:selectItems value="#{capitalsBean.capitalsNamesOptions}"/>
+ <f:selectItems value="#{capitalsBean.capitalsOptions}"/>
</rich:inplaceSelect>
</ui:composition>
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/webapp/templates/include/sourceview.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/templates/include/sourceview.xhtml 2008-03-19 16:43:54 UTC (rev 6963)
+++ trunk/samples/richfaces-demo/src/main/webapp/templates/include/sourceview.xhtml 2008-03-19 16:52:54 UTC (rev 6964)
@@ -8,7 +8,7 @@
- <rich:spacer height="8" />
+ <rich:spacer height="8" width="100%"/>
<script>
//<![CDATA[
16 years, 10 months
JBoss Rich Faces SVN: r6963 - trunk/samples/richfaces-demo/src/main/webapp/css.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-03-19 12:43:54 -0400 (Wed, 19 Mar 2008)
New Revision: 6963
Modified:
trunk/samples/richfaces-demo/src/main/webapp/css/common.css
Log:
http://jira.jboss.com/jira/browse/RF-2542 Demo-site common changes
Modified: trunk/samples/richfaces-demo/src/main/webapp/css/common.css
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/css/common.css 2008-03-19 16:36:33 UTC (rev 6962)
+++ trunk/samples/richfaces-demo/src/main/webapp/css/common.css 2008-03-19 16:43:54 UTC (rev 6963)
@@ -54,7 +54,7 @@
}
.sample-container {
- padding: 8px 25px 5px 25px;
+ padding: 25px 25px 5px 25px;
}
.top_navbar{
@@ -261,7 +261,13 @@
border-width:0;
background-position : top left;
background-repeat : no-repeat;
+ font-family: Verdana, Arial;
}
+
+.rich-tab-header {
+ font-family: Verdana, Arial;
+}
+
.active_tab {
background-position : top left;
border-width: 1px 1px 0px 1px;
16 years, 10 months
JBoss Rich Faces SVN: r6962 - trunk/ui/modal-panel/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2008-03-19 12:36:33 -0400 (Wed, 19 Mar 2008)
New Revision: 6962
Modified:
trunk/ui/modal-panel/src/main/java/org/richfaces/component/UIModalPanel.java
Log:
http://jira.jboss.com/jira/browse/RF-2464
Modified: trunk/ui/modal-panel/src/main/java/org/richfaces/component/UIModalPanel.java
===================================================================
--- trunk/ui/modal-panel/src/main/java/org/richfaces/component/UIModalPanel.java 2008-03-19 16:25:13 UTC (rev 6961)
+++ trunk/ui/modal-panel/src/main/java/org/richfaces/component/UIModalPanel.java 2008-03-19 16:36:33 UTC (rev 6962)
@@ -130,11 +130,16 @@
}
public Object getVisualOptions() {
+ if (null != this.visualOptions) {
+ return this.visualOptions;
+ }
+
ValueExpression ve = getValueExpression("visualOptions");
if (null != ve) {
try {
Object value = ve.getValue(getFacesContext().getELContext());
- return prepareVisualOptions(value);
+ this.visualOptions = prepareVisualOptions(value);
+ return this.visualOptions;
} catch (ELException e) {
throw new FacesException(e);
}
@@ -182,26 +187,23 @@
protected Map<String, String> prepareVisualOptions(Object value) {
if (null == value) {
- if (null == this.visualOptions) {
- this.visualOptions = new HashMap<String, String>();
+ return new HashMap<String, String>();
+ } else if (value instanceof Map) {
+ return (Map<String, String>) value;
+ } else if (value instanceof String) {
+ String s = (String) value;
+ if (!s.startsWith("{")) {
+ s = "{" + s + "}";
}
- return this.visualOptions;
- } else if (value instanceof Map) {
- return (Map<String, String>) value;
- } else if (value instanceof String) {
- String s = (String) value;
- if (!s.startsWith("{")) {
- s = "{" + s + "}";
- }
- try {
- return new JSONMap(s);
- } catch (JSONException e) {
- throw new FacesException(e);
- }
- } else {
- throw new FacesException("Attribute visualOptions of component [" +
- this.getClientId(getFacesContext()) + "] must be instance of Map or String, but its type is " +
- value.getClass().getSimpleName());
- }
+ try {
+ return new HashMap<String, String>(new JSONMap(s));
+ } catch (JSONException e) {
+ throw new FacesException(e);
+ }
+ } else {
+ throw new FacesException("Attribute visualOptions of component [" +
+ this.getClientId(getFacesContext()) + "] must be instance of Map or String, but its type is " +
+ value.getClass().getSimpleName());
+ }
}
}
16 years, 10 months
JBoss Rich Faces SVN: r6961 - trunk/framework/impl/src/main/resources/org/ajax4jsf.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-03-19 12:25:13 -0400 (Wed, 19 Mar 2008)
New Revision: 6961
Modified:
trunk/framework/impl/src/main/resources/org/ajax4jsf/messages.properties
Log:
Datascroller message updated
Modified: trunk/framework/impl/src/main/resources/org/ajax4jsf/messages.properties
===================================================================
--- trunk/framework/impl/src/main/resources/org/ajax4jsf/messages.properties 2008-03-19 16:06:34 UTC (rev 6960)
+++ trunk/framework/impl/src/main/resources/org/ajax4jsf/messages.properties 2008-03-19 16:25:13 UTC (rev 6961)
@@ -255,4 +255,4 @@
UI_INSERT_RESOURCE_NOT_FOUND="Resource {1} not found, component {0}
HIGHLIGHT_LIBRARY_NOT_FOUND="In order to use highlight attribute of the rich:insert component, add jhighlight.jar from https://jhighlight.dev.java.net/ into application."
INVALID_VALUE="Component {0} has invalid value expression {1}"
-DATASCROLLER_PAGE_MISSING=Datascroller {0} will be reset: page #{1} has been requested, but there are {2} page(s) in the model only. Page #{3} will be used.
\ No newline at end of file
+DATASCROLLER_PAGE_MISSING=Datascroller {0}: The requested page #{1} isn't found in the model containing {2} pages. Datascroller is reset to page #{3}
\ No newline at end of file
16 years, 10 months
JBoss Rich Faces SVN: r6960 - management/design/comboBox.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-03-19 12:06:34 -0400 (Wed, 19 Mar 2008)
New Revision: 6960
Modified:
management/design/comboBox/comboBox.doc
Log:
RF-2604
Modified: management/design/comboBox/comboBox.doc
===================================================================
(Binary files differ)
16 years, 10 months
JBoss Rich Faces SVN: r6959 - trunk/ui/pickList/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-03-19 11:59:43 -0400 (Wed, 19 Mar 2008)
New Revision: 6959
Modified:
trunk/ui/pickList/src/main/config/component/picklist.xml
Log:
http://jira.jboss.com/jira/browse/RF-2602
Modified: trunk/ui/pickList/src/main/config/component/picklist.xml
===================================================================
--- trunk/ui/pickList/src/main/config/component/picklist.xml 2008-03-19 15:45:55 UTC (rev 6958)
+++ trunk/ui/pickList/src/main/config/component/picklist.xml 2008-03-19 15:59:43 UTC (rev 6959)
@@ -37,8 +37,8 @@
<property>
<name>showButtonsLabel</name>
- <classname>java.lang.String</classname>
- <defaultvalue>"true"</defaultvalue>
+ <classname>boolean</classname>
+ <defaultvalue>true</defaultvalue>
<description>Shows a label for a button</description>
</property>
@@ -192,6 +192,12 @@
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
+ <property>
+ <name>onlistchanged</name>
+ <classname>java.lang.String</classname>
+ <description>A JavaScript event handler called on a list change operation</description>
+ </property>
+
<property hidden="true">
<name>valid </name>
<classname>java.lang.String</classname>
16 years, 10 months