JBoss Rich Faces SVN: r6327 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2008-02-25 12:37:41 -0500 (Mon, 25 Feb 2008)
New Revision: 6327
Modified:
trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml
Log:
Value and labe attributes were added. Some mistakes were corrected.
http://jira.jboss.com/jira/browse/RF-1690
Modified: trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml 2008-02-25 17:37:22 UTC (rev 6326)
+++ trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml 2008-02-25 17:37:41 UTC (rev 6327)
@@ -76,54 +76,100 @@
<section>
<title>Details of Usage</title>
<para>
- Some processes running within an application might take some time to complete, therefore in
- order to indicate for a user the status of the process we recommend you to use <emphasis role="bold"><property><rich:progressBar></property> </emphasis>
-component.
- </para>
+
+ As it was mentioned above <emphasis role="bold"><property><rich:progressBar></property> </emphasis>
+ component displays the status of the ongoing process. The component has a number of key attributes.
+ </para>
+
<para>
+ <property> "label"</property> the attribute responsible for displaying informational
+ data on the progress bar, if it's not displayed using children components.
+ If this attribute is not set and the children components are not used either, no textual information
+ regarding ongoing process will be indicated.
+ In order to indicated the current status you need to pass the value to this attribute. Please see see an example.
+ </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="JAVA"><![CDATA[
+...
+<progressBar:progressBar value="#{bean.incValue}" id="progrs"
+ label="{value}%">
+</progressBar:progressBar>
+...]]>
+ </programlisting>
+
+ <para>
+
+ <property> "value"</property> sets the current value of the process. Status of the process is calculated basing on value.
+ </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="JAVA"><![CDATA[
+...
+ <progressBar:progressBar
+ value="#{bean.incValue}"
+ </progressBar:progressBar>
+...]]>
+ </programlisting>
+
+
+
+
+ <para>
+
The component employs the following facets to display the <property> "initial"</property> and <property> "complete"</property> states of the process:
</para>
-
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[...
- <f:facet name="initial">
- <h:outputText value="Process not started"></h:outputText>
- </f:facet>
-. .]]>
+<f:facet name="initial">
+ <h:outputText value="Process not started" />
+</f:facet>
+...]]>
</programlisting>
<para>
and
</para>
-
- <programlisting role="XML">
- <![CDATA[...
- <f:facet name="complete">
- <h:outputText value="Process completed"></h:outputText>
- </f:facet>
- ...]]>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<f:facet name="complete">
+ <h:outputText value="Process completed" />
+</f:facet>
+ ...]]>
</programlisting>
<para> However, the usage of these facets is optional. If you omit them nothing will be displayed. </para>
<para> The progress bar starts and finishes rendering its state being governed by <emphasis><property>"minValue"</property></emphasis> (default value – "0")
- and <emphasis><property>"maxValue"</property></emphasis> (default value is "100") parameters relatively. See the following example: </para>
+ and <emphasis><property>"maxValue"</property></emphasis> (default value is "100") attributes relatively. See the following example.</para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
-
- <programlisting role="XML">
- <![CDATA[...
- <rich:progressBar value="#{bean.incValue}" enabled="#{bean.enabled}" id="progrs"
- minValue="50"
- maxValue="400">
- <h:outputText value="{value}%" ></h:outputText>
- </rich:progressBar>
- ...]]>
-
+ <programlisting role="XML"><![CDATA[...
+<rich:progressBar value="#{bean.incValue}" enabled="#{bean.enabled}" id="progrs"
+ minValue="50"
+ maxValue="400">
+ <h:outputText value="{value}%" ></h:outputText>
+</rich:progressBar>
+...]]>
</programlisting>
- <para> In order do display textual and numerical information on the progress bar you need to use this code: </para>
-
- <programlisting role="XML">
- <![CDATA[...
+ <para> In order to display textual and numerical information on the progress bar you need to use this code: </para>
+
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
<h:outputText value="{value}%" ></h:outputText>
...]]>
</programlisting>
@@ -131,18 +177,22 @@
<para> The <emphasis><property>"interval"</property></emphasis>attribute defines the frequency of status polling. Polling is active while the component is operational. </para>
- <programlisting role="XML">
- <![CDATA[...
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+
+ <programlisting role="XML"><![CDATA[...
<rich:progressBar value="#{bean.incValue}" enabled="#{bean.enabled}" id="progrs"
- interval="900" >
- . . .
- </rich:progressBar>
- ...]]>
+ nterval="900" >
+ . . .
+</rich:progressBar>
+...]]>
</programlisting>
- <para>The <property><rich:progressBar></property>component can be use in two modes: Ajax (default) and Client. In order to define the mode you need, use <emphasis><property>"mode"</property></emphasis> attribute. </para>
+ <para>The <property><rich:progressBar></property>component can be used in two modes: Ajax (default) and Client. In order to define the mode you need to use <emphasis><property>"mode"</property></emphasis> attribute. </para>
<itemizedlist>
<listitem>
@@ -160,7 +210,7 @@
<!-- JavaScript API-->
- <section>
+ <section>
<title>JavaScript API</title>
<table>
<title>JavaScript API</title>
@@ -205,19 +255,26 @@
</section>
<!-- End of JavaScript API-->
-
<!-- Look-and-Feel Customization-->
<section>
<title>Look-and-Feel Customization</title>
- <para>For skinnability implementation, the component uses a <emphasis>
+ <para>For skinnability implementation, the components use a <emphasis>
<property>style class redefinition method.</property>
</emphasis> Default style classes are mapped on <emphasis>
<property>skin parameters.</property>
</emphasis></para>
-
- </section>
-
+ <para>There are two ways to redefine the appearance of all <emphasis role="bold">
+ <property><rich:progressBar></property>
+ </emphasis> components at once: <itemizedlist>
+ <listitem>Redefine the corresponding skin parameters</listitem>
+ <listitem> Add to your style sheets style classes used by a <emphasis role="bold">
+ <property><rich:progressBar></property>
+ </emphasis> component</listitem>
+ </itemizedlist>
+ </para>
+ </section>
+
<!-- End of Look-and-Feel Customization-->
16 years, 10 months
JBoss Rich Faces SVN: r6326 - in trunk/ui/dataTable/src/main: java/org/richfaces/renderkit and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2008-02-25 12:37:22 -0500 (Mon, 25 Feb 2008)
New Revision: 6326
Modified:
trunk/ui/dataTable/src/main/java/org/richfaces/component/UIDataTable.java
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
trunk/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/css/table.xcss
Log:
Inplace inputs in headers with filter. HTML mark-up changed.
Modified: trunk/ui/dataTable/src/main/java/org/richfaces/component/UIDataTable.java
===================================================================
--- trunk/ui/dataTable/src/main/java/org/richfaces/component/UIDataTable.java 2008-02-25 17:23:53 UTC (rev 6325)
+++ trunk/ui/dataTable/src/main/java/org/richfaces/component/UIDataTable.java 2008-02-25 17:37:22 UTC (rev 6326)
@@ -57,6 +57,8 @@
Collection<Object> sortPriority = new ArrayList<Object>();
+ private boolean hasFilterColumns = false;
+
/**
* @author shura
*
@@ -255,4 +257,12 @@
super.restoreState(context, states[0]);
sortPriority = (Collection)states[1];
}
+
+ public boolean hasFilterColumns() {
+ return hasFilterColumns;
+ }
+
+ public void setHasFilterColumns(boolean hasFilterColumns) {
+ this.hasFilterColumns = hasFilterColumns;
+ }
}
\ No newline at end of file
Modified: trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
===================================================================
--- trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2008-02-25 17:23:53 UTC (rev 6325)
+++ trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2008-02-25 17:37:22 UTC (rev 6326)
@@ -100,6 +100,7 @@
if (header != null ||headers.hasNext()) {
writer.startElement("thead", table);
+ writer.writeAttribute(HTML.class_ATTRIBUTE, "dr-table-thead", null);
String headerClass = (String) table.getAttributes().get(
"headerClass");
if (header != null) {
@@ -111,6 +112,7 @@
}
if (headers.hasNext()&&findFacet(table,"header")) {
+ table.setHasFilterColumns(false);
writer.startElement("tr", table);
encodeStyleClass(writer, null,
"dr-table-subheader rich-table-subheader", null,
@@ -120,6 +122,17 @@
headerClass, "header", "th", colCount);
writer.endElement("tr");
+
+ if (table.hasFilterColumns()) {
+ colums = table.columns();
+ writer.startElement("tr", table);
+ encodeStyleClass(writer, null,
+ "dr-table-subheader rich-table-subheader", null,
+ headerClass);
+ encodeFilterInputs(context, writer, colums, "dr-table-subheadercell rich-table-subheadercell",
+ "th", headerClass, colCount);
+ writer.endElement("tr");
+ }
}
writer.endElement("thead");
}
@@ -234,7 +247,8 @@
StringBuffer buffer = new StringBuffer();
ajaxFunction.appendScript(buffer);
- encodeInplaceInput(context, column, buffer);
+ ((UIDataTable)table).setHasFilterColumns(true);
+ addInplaceInput(context, column, buffer);
}
}
writer.endElement(element);
@@ -540,7 +554,7 @@
}
}
- protected void encodeInplaceInput(FacesContext context, UIComponent column, StringBuffer buffer)
+ protected void addInplaceInput(FacesContext context, UIComponent column, StringBuffer buffer)
throws IOException {
UIInput filterValueInput = (UIInput)column.getFacet(FILTER_INPUT_FACET_NAME);
String event = "onviewactivated";
@@ -558,9 +572,36 @@
}
filterValueInput.getAttributes().put(event, buffer.toString());
filterValueInput.setValue(column.getAttributes().get("filterValue"));
-
- getUtils().encodeBeginFormIfNessesary(context, column);
- renderChild(context, filterValueInput);
- getUtils().encodeEndFormIfNessesary(context, column);
}
+
+ protected void encodeFilterInputs(FacesContext context,
+ ResponseWriter writer, Iterator<UIComponent> columns, String cellClass,
+ String element, String headerClass, int colCount) throws IOException {
+ int t_colCount = 0;
+ while (columns.hasNext()) {
+ UIComponent column = (UIComponent) columns.next();
+ if ((Integer)column.getAttributes().get("colspan") != null ) {
+ t_colCount = t_colCount + ((Integer)column.getAttributes().get("colspan")).intValue();
+ } else {
+ t_colCount++;
+ }
+ if( t_colCount > colCount) {
+ break;
+ }
+
+ String columnHeaderClass = (String) column.getAttributes().get("headerClass");
+ writer.startElement(element, column);
+ encodeStyleClass(writer, null, cellClass, headerClass,
+ columnHeaderClass);
+ writer.writeAttribute("scope", "col", null);
+ getUtils().encodeAttribute(context, column, "colspan");
+
+ UIInput filterValueInput = (UIInput) column.getFacet(FILTER_INPUT_FACET_NAME);
+ if (null != filterValueInput) {
+ getUtils().encodeBeginFormIfNessesary(context, column);
+ renderChild(context, filterValueInput);
+ getUtils().encodeEndFormIfNessesary(context, column);
+ }
+ }
+ }
}
\ No newline at end of file
Modified: trunk/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/css/table.xcss
===================================================================
--- trunk/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/css/table.xcss 2008-02-25 17:23:53 UTC (rev 6325)
+++ trunk/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/css/table.xcss 2008-02-25 17:37:22 UTC (rev 6326)
@@ -81,12 +81,15 @@
<u:style name="background-color" skin="additionalBackgroundColor"/> <!--additionalBackgroundColor-->
</u:selector>
-<u:selector name=".dr-table-subheadercell" >
- <u:style name="border-right" value="solid"> <!--tableBorderColor-->
+<u:selector name=".dr-table-thead" >
+ <u:style name="border-bottom" value="solid"> <!--tableBorderColor-->
<f:verbatim skin="tableBorderWidth" />
<f:verbatim skin="tableBorderColor" />
</u:style>
- <u:style name="border-bottom" value="solid"> <!--tableBorderColor-->
+</u:selector>
+
+<u:selector name=".dr-table-subheadercell" >
+ <u:style name="border-right" value="solid"> <!--tableBorderColor-->
<f:verbatim skin="tableBorderWidth" />
<f:verbatim skin="tableBorderColor" />
</u:style>
16 years, 10 months
JBoss Rich Faces SVN: r6325 - in management/design/standardComponent: design and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-02-25 12:23:53 -0500 (Mon, 25 Feb 2008)
New Revision: 6325
Added:
management/design/standardComponent/design/
management/design/standardComponent/design/advanced.css
management/design/standardComponent/design/basic.css
management/design/standardComponent/design/btn_bg.gif
management/design/standardComponent/design/btn_press_bg.gif
management/design/standardComponent/design/customise_example.html
management/design/standardComponent/design/example.html
management/design/standardComponent/design/input_bg.gif
management/design/standardComponent/design/input_error.gif
management/design/standardComponent/design/styles.js
Removed:
management/design/standardComponent/advanced.css
management/design/standardComponent/basic.css
management/design/standardComponent/btn_bg.gif
management/design/standardComponent/btn_press_bg.gif
management/design/standardComponent/customise_example.html
management/design/standardComponent/example.html
management/design/standardComponent/input_bg.gif
management/design/standardComponent/input_error.gif
management/design/standardComponent/styles.js
Log:
prototype moved to design folder
Deleted: management/design/standardComponent/advanced.css
===================================================================
--- management/design/standardComponent/advanced.css 2008-02-25 15:17:47 UTC (rev 6324)
+++ management/design/standardComponent/advanced.css 2008-02-25 17:23:53 UTC (rev 6325)
@@ -1,117 +0,0 @@
-*|button {
- border-width: 1px;
- border-color : #BED6F8 /*panelBorderColor*/;
- font-size: 11px /*generalSizeFont*/;
- font-family: verdana /*generalFamilyFont*/;
- color : #000000 /*headerTextColor*/;
- background-color : #BED6F8 /*headerBackgroundColor*/;
- background-image : url(btn_bg.gif)/*from headerGradientColor to headerBackgroundColor, width generalSizeFont*/;
- background-repeat : repeat-x;
- background-position : top left;
-}
-
-button[type="button"], button[type="reset"], button[type="submit"], input[type="reset"], input[type="submit"], input[type="button"] {
- border-width: 1px;
- border-color : #BED6F8 /*panelBorderColor*/;
- font-size: 11px /*generalSizeFont*/;
- font-family: verdana /*generalFamilyFont*/;
- color : #000000 /*headerTextColor*/;
- background-color : #BED6F8 /*headerBackgroundColor*/;
- background-image : url(btn_bg.gif)/*from headerGradientColor to headerBackgroundColor, width generalSizeFont*/;
- background-repeat : repeat-x;
- background-position : top left;
-}
-
-
-*|textarea{
- border-width: 1px;
- border-style : inset;
- border-color : #BED6F8 /*panelBorderColor*/;
- font-size: 11px /*generalSizeFont*/;
- font-family: verdana /*generalFamilyFont*/;
- color : #000000 /*controlTextColor*/;
- background-color : #FFFFFF /*controlBackgroundColor*/;
- background-image : url(input_bg.gif)/*from additionalBackgroundColor to controlBackgroundColor, width generalSizeFont*/;
- background-repeat : no-repeat;
- background-position : 1px 1px;
- }
-
-textarea[type="textarea"], input[type="text"], input[type="password"], select{
- border-width: 1px;
- border-style : inset;
- border-color : #BED6F8 /*panelBorderColor*/;
- font-size: 11px /*generalSizeFont*/;
- font-family: verdana /*generalFamilyFont*/;
- color : #000000 /*controlTextColor*/;
- background-color : #FFFFFF /*controlBackgroundColor*/;
- background-image : url(input_bg.gif)/*from additionalBackgroundColor to controlBackgroundColor, width generalSizeFont*/;
- background-repeat : no-repeat;
- background-position : 1px 1px;
- }
-
-
-input, select, textarea, button, keygen, isindex {
- border-width: 1px;
- border-color : #BED6F8 /*panelBorderColor*/;
- color : #000000 /*controlTextColor*/;
-}
-
-
-.input_def{
- border-width: 1px;
- border-style : inset;
- border-color : #BED6F8 /*panelBorderColor*/;
- font-size: 11px /*generalSizeFont*/;
- font-family: verdana /*generalFamilyFont*/;
- color : #000000 /*controlTextColor*/;
- background-color : #FFFFFF /*controlBackgroundColor*/;
- background-image : url(input_bg.gif)/*from additionalBackgroundColor to controlBackgroundColor, width generalSizeFont*/;
- background-repeat : no-repeat;
- background-position : 1px 1px;
-}
-.input_sel{
- border-width: 1px;
- border-style : inset;
- border-color : #BED6F8 /*panelBorderColor*/;
- font-size: 11px /*generalSizeFont*/;
- font-family: verdana /*generalFamilyFont*/;
- color : #000000 /*controlTextColor*/;
- background-color : #FFF2D0 /*NEW - inputLightColor*/;
-}
-.input_error{
- border-width: 1px;
- border-style : inset;
- border-color : #BED6F8 /*panelBorderColor*/;
- font-size: 11px /*generalSizeFont*/;
- font-family: verdana /*generalFamilyFont*/;
- color : #000000 /*controlTextColor*/;
- background-color : #FFE6E6 /*NEW - errorBackgroundColor*/;
- background-image : url(input_error.gif); /*NEW - errorColor*/
- background-repeat : no-repeat;
- background-position : center right;
-}
-.btn_def{
- border-width: 1px;
- border-style : outset;
- border-color : #BED6F8 /*panelBorderColor*/;
- font-size: 11px /*generalSizeFont*/;
- font-family: verdana /*generalFamilyFont*/;
- color : #000000 /*headerTextColor*/;
- background-color : #BED6F8 /*headerBackgroundColor*/;
- background-image : url(btn_bg.gif)/*from headerGradientColor to headerBackgroundColor, width generalSizeFont*/;
- background-repeat : repeat-x;
- background-position : top left;
-}
-.btn_press{
- border-width: 1px;
- border-style : inset;
- border-color : #BED6F8 /*panelBorderColor*/;
- font-size: 11px /*generalSizeFont*/;
- font-family: verdana /*generalFamilyFont*/;
- color : #000000 /*headerTextColor*/;
- background-color : #BED6F8 /*headerBackgroundColor*/;
- background-image : url(btn_press_bg.gif)/*from headerBackgroundColor to headerGradientColor, width generalSizeFont*/;
- background-repeat : repeat-x;
- background-position : bottom left;
-}
-
Deleted: management/design/standardComponent/basic.css
===================================================================
--- management/design/standardComponent/basic.css 2008-02-25 15:17:47 UTC (rev 6324)
+++ management/design/standardComponent/basic.css 2008-02-25 17:23:53 UTC (rev 6325)
@@ -1,18 +0,0 @@
-input, select, textarea, button, keygen, isindex, legend {
- font-size: 11px /*generalSizeFont*/;
- font-family: verdana /*generalFamilyFont*/;
- color : #000000 /*controlTextColor*/;
-}
-fieldset{
- border-width: 1px;
- border-style : solid;
- padding:10px;
- border-color : #BED6F8 /*panelBorderColor*/;
-}
-
-hr{
- border-width: 1px;
- border-style : solid;
- border-color : #BED6F8 /*panelBorderColor*/;
-}
-
Deleted: management/design/standardComponent/btn_bg.gif
===================================================================
(Binary files differ)
Deleted: management/design/standardComponent/btn_press_bg.gif
===================================================================
(Binary files differ)
Deleted: management/design/standardComponent/customise_example.html
===================================================================
--- management/design/standardComponent/customise_example.html 2008-02-25 15:17:47 UTC (rev 6324)
+++ management/design/standardComponent/customise_example.html 2008-02-25 17:23:53 UTC (rev 6325)
@@ -1,97 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>Untitled</title>
-</head>
-
-<body>
-
-<style>
- .input_def{
- border-width: 1px;
- border-style : inset;
- border-color : #BED6F8 /*panelBorderColor*/;
- font-size: 11px /*generalSizeFont*/;
- font-family: verdana /*generalFamilyFont*/;
- color : #000000 /*controlTextColor*/;
- background-color : #FFFFFF /*controlBackgroundColor*/;
- background-image : url(input_bg.gif)/*from additionalBackgroundColor to controlBackgroundColor, width generalSizeFont*/;
- background-repeat : no-repeat;
- background-position : 1px 1px;
- }
- .input_sel{
- border-width: 1px;
- border-style : inset;
- border-color : #BED6F8 /*panelBorderColor*/;
- font-size: 11px /*generalSizeFont*/;
- font-family: verdana /*generalFamilyFont*/;
- color : #000000 /*controlTextColor*/;
- background-color : #FFF2D0 /*NEW - inputLightColor*/;
- }
- .input_error{
- border-width: 1px;
- border-style : inset;
- border-color : #BED6F8 /*panelBorderColor*/;
- font-size: 11px /*generalSizeFont*/;
- font-family: verdana /*generalFamilyFont*/;
- color : #000000 /*controlTextColor*/;
- background-color : #FFE6E6 /*NEW - errorBackgroundColor*/;
- background-image : url(input_error.gif); /*NEW - errorColor*/
- background-repeat : no-repeat;
- background-position : center right;
- }
- .btn_def{
- border-width: 1px;
- border-style : outset;
- border-color : #BED6F8 /*panelBorderColor*/;
- font-size: 11px /*generalSizeFont*/;
- font-family: verdana /*generalFamilyFont*/;
- color : #000000 /*headerTextColor*/;
- background-color : #BED6F8 /*headerBackgroundColor*/;
- background-image : url(btn_bg.gif)/*from headerGradientColor to headerBackgroundColor, width generalSizeFont*/;
- background-repeat : repeat-x;
- background-position : top left;
- }
- .btn_press{
- border-width: 1px;
- border-style : inset;
- border-color : #BED6F8 /*panelBorderColor*/;
- font-size: 11px /*generalSizeFont*/;
- font-family: verdana /*generalFamilyFont*/;
- color : #000000 /*headerTextColor*/;
- background-color : #BED6F8 /*headerBackgroundColor*/;
- background-image : url(btn_press_bg.gif)/*from headerBackgroundColor to headerGradientColor, width generalSizeFont*/;
- background-repeat : repeat-x;
- background-position : bottom left;
- }
-</style>
-<input type="Button" value="Test" class="btn_def">
-<input type="File" class="input_def">
-<input type="Text" value="Test" class="input_def">
-<select class="input_def">
- <option>Test</option>
- <option>Test</option>
- <option>Test</option>
-</select><br><br>
-
-<input type="Button" value="Test" class="btn_press">
-<input type="File" class="input_sel">
-<input type="Text" value="Test" class="input_sel">
-<select class="input_sel">
- <option>Test</option>
- <option>Test</option>
- <option>Test</option>
-</select><br><br>
-
-<input type="Button" value="Test" class="btn_def">
-<input type="File" class="input_def">
-<input type="Text" value="Test" class="input_error">
-<select class="input_def">
- <option>Test</option>
- <option>Test</option>
- <option>Test</option>
-</select><br><br>
-
-</body>
-</html>
Copied: management/design/standardComponent/design/advanced.css (from rev 6324, management/design/standardComponent/advanced.css)
===================================================================
--- management/design/standardComponent/design/advanced.css (rev 0)
+++ management/design/standardComponent/design/advanced.css 2008-02-25 17:23:53 UTC (rev 6325)
@@ -0,0 +1,117 @@
+*|button {
+ border-width: 1px;
+ border-color : #BED6F8 /*panelBorderColor*/;
+ font-size: 11px /*generalSizeFont*/;
+ font-family: verdana /*generalFamilyFont*/;
+ color : #000000 /*headerTextColor*/;
+ background-color : #BED6F8 /*headerBackgroundColor*/;
+ background-image : url(btn_bg.gif)/*from headerGradientColor to headerBackgroundColor, width generalSizeFont*/;
+ background-repeat : repeat-x;
+ background-position : top left;
+}
+
+button[type="button"], button[type="reset"], button[type="submit"], input[type="reset"], input[type="submit"], input[type="button"] {
+ border-width: 1px;
+ border-color : #BED6F8 /*panelBorderColor*/;
+ font-size: 11px /*generalSizeFont*/;
+ font-family: verdana /*generalFamilyFont*/;
+ color : #000000 /*headerTextColor*/;
+ background-color : #BED6F8 /*headerBackgroundColor*/;
+ background-image : url(btn_bg.gif)/*from headerGradientColor to headerBackgroundColor, width generalSizeFont*/;
+ background-repeat : repeat-x;
+ background-position : top left;
+}
+
+
+*|textarea{
+ border-width: 1px;
+ border-style : inset;
+ border-color : #BED6F8 /*panelBorderColor*/;
+ font-size: 11px /*generalSizeFont*/;
+ font-family: verdana /*generalFamilyFont*/;
+ color : #000000 /*controlTextColor*/;
+ background-color : #FFFFFF /*controlBackgroundColor*/;
+ background-image : url(input_bg.gif)/*from additionalBackgroundColor to controlBackgroundColor, width generalSizeFont*/;
+ background-repeat : no-repeat;
+ background-position : 1px 1px;
+ }
+
+textarea[type="textarea"], input[type="text"], input[type="password"], select{
+ border-width: 1px;
+ border-style : inset;
+ border-color : #BED6F8 /*panelBorderColor*/;
+ font-size: 11px /*generalSizeFont*/;
+ font-family: verdana /*generalFamilyFont*/;
+ color : #000000 /*controlTextColor*/;
+ background-color : #FFFFFF /*controlBackgroundColor*/;
+ background-image : url(input_bg.gif)/*from additionalBackgroundColor to controlBackgroundColor, width generalSizeFont*/;
+ background-repeat : no-repeat;
+ background-position : 1px 1px;
+ }
+
+
+input, select, textarea, button, keygen, isindex {
+ border-width: 1px;
+ border-color : #BED6F8 /*panelBorderColor*/;
+ color : #000000 /*controlTextColor*/;
+}
+
+
+.input_def{
+ border-width: 1px;
+ border-style : inset;
+ border-color : #BED6F8 /*panelBorderColor*/;
+ font-size: 11px /*generalSizeFont*/;
+ font-family: verdana /*generalFamilyFont*/;
+ color : #000000 /*controlTextColor*/;
+ background-color : #FFFFFF /*controlBackgroundColor*/;
+ background-image : url(input_bg.gif)/*from additionalBackgroundColor to controlBackgroundColor, width generalSizeFont*/;
+ background-repeat : no-repeat;
+ background-position : 1px 1px;
+}
+.input_sel{
+ border-width: 1px;
+ border-style : inset;
+ border-color : #BED6F8 /*panelBorderColor*/;
+ font-size: 11px /*generalSizeFont*/;
+ font-family: verdana /*generalFamilyFont*/;
+ color : #000000 /*controlTextColor*/;
+ background-color : #FFF2D0 /*NEW - inputLightColor*/;
+}
+.input_error{
+ border-width: 1px;
+ border-style : inset;
+ border-color : #BED6F8 /*panelBorderColor*/;
+ font-size: 11px /*generalSizeFont*/;
+ font-family: verdana /*generalFamilyFont*/;
+ color : #000000 /*controlTextColor*/;
+ background-color : #FFE6E6 /*NEW - errorBackgroundColor*/;
+ background-image : url(input_error.gif); /*NEW - errorColor*/
+ background-repeat : no-repeat;
+ background-position : center right;
+}
+.btn_def{
+ border-width: 1px;
+ border-style : outset;
+ border-color : #BED6F8 /*panelBorderColor*/;
+ font-size: 11px /*generalSizeFont*/;
+ font-family: verdana /*generalFamilyFont*/;
+ color : #000000 /*headerTextColor*/;
+ background-color : #BED6F8 /*headerBackgroundColor*/;
+ background-image : url(btn_bg.gif)/*from headerGradientColor to headerBackgroundColor, width generalSizeFont*/;
+ background-repeat : repeat-x;
+ background-position : top left;
+}
+.btn_press{
+ border-width: 1px;
+ border-style : inset;
+ border-color : #BED6F8 /*panelBorderColor*/;
+ font-size: 11px /*generalSizeFont*/;
+ font-family: verdana /*generalFamilyFont*/;
+ color : #000000 /*headerTextColor*/;
+ background-color : #BED6F8 /*headerBackgroundColor*/;
+ background-image : url(btn_press_bg.gif)/*from headerBackgroundColor to headerGradientColor, width generalSizeFont*/;
+ background-repeat : repeat-x;
+ background-position : bottom left;
+}
+
Copied: management/design/standardComponent/design/basic.css (from rev 6324, management/design/standardComponent/basic.css)
===================================================================
--- management/design/standardComponent/design/basic.css (rev 0)
+++ management/design/standardComponent/design/basic.css 2008-02-25 17:23:53 UTC (rev 6325)
@@ -0,0 +1,18 @@
+input, select, textarea, button, keygen, isindex, legend {
+ font-size: 11px /*generalSizeFont*/;
+ font-family: verdana /*generalFamilyFont*/;
+ color : #000000 /*controlTextColor*/;
+}
+fieldset{
+ border-width: 1px;
+ border-style : solid;
+ padding:10px;
+ border-color : #BED6F8 /*panelBorderColor*/;
+}
+
+hr{
+ border-width: 1px;
+ border-style : solid;
+ border-color : #BED6F8 /*panelBorderColor*/;
+}
+
Copied: management/design/standardComponent/design/btn_bg.gif (from rev 6324, management/design/standardComponent/btn_bg.gif)
===================================================================
(Binary files differ)
Copied: management/design/standardComponent/design/btn_press_bg.gif (from rev 6324, management/design/standardComponent/btn_press_bg.gif)
===================================================================
(Binary files differ)
Copied: management/design/standardComponent/design/customise_example.html (from rev 6324, management/design/standardComponent/customise_example.html)
===================================================================
--- management/design/standardComponent/design/customise_example.html (rev 0)
+++ management/design/standardComponent/design/customise_example.html 2008-02-25 17:23:53 UTC (rev 6325)
@@ -0,0 +1,97 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>Untitled</title>
+</head>
+
+<body>
+
+<style>
+ .input_def{
+ border-width: 1px;
+ border-style : inset;
+ border-color : #BED6F8 /*panelBorderColor*/;
+ font-size: 11px /*generalSizeFont*/;
+ font-family: verdana /*generalFamilyFont*/;
+ color : #000000 /*controlTextColor*/;
+ background-color : #FFFFFF /*controlBackgroundColor*/;
+ background-image : url(input_bg.gif)/*from additionalBackgroundColor to controlBackgroundColor, width generalSizeFont*/;
+ background-repeat : no-repeat;
+ background-position : 1px 1px;
+ }
+ .input_sel{
+ border-width: 1px;
+ border-style : inset;
+ border-color : #BED6F8 /*panelBorderColor*/;
+ font-size: 11px /*generalSizeFont*/;
+ font-family: verdana /*generalFamilyFont*/;
+ color : #000000 /*controlTextColor*/;
+ background-color : #FFF2D0 /*NEW - inputLightColor*/;
+ }
+ .input_error{
+ border-width: 1px;
+ border-style : inset;
+ border-color : #BED6F8 /*panelBorderColor*/;
+ font-size: 11px /*generalSizeFont*/;
+ font-family: verdana /*generalFamilyFont*/;
+ color : #000000 /*controlTextColor*/;
+ background-color : #FFE6E6 /*NEW - errorBackgroundColor*/;
+ background-image : url(input_error.gif); /*NEW - errorColor*/
+ background-repeat : no-repeat;
+ background-position : center right;
+ }
+ .btn_def{
+ border-width: 1px;
+ border-style : outset;
+ border-color : #BED6F8 /*panelBorderColor*/;
+ font-size: 11px /*generalSizeFont*/;
+ font-family: verdana /*generalFamilyFont*/;
+ color : #000000 /*headerTextColor*/;
+ background-color : #BED6F8 /*headerBackgroundColor*/;
+ background-image : url(btn_bg.gif)/*from headerGradientColor to headerBackgroundColor, width generalSizeFont*/;
+ background-repeat : repeat-x;
+ background-position : top left;
+ }
+ .btn_press{
+ border-width: 1px;
+ border-style : inset;
+ border-color : #BED6F8 /*panelBorderColor*/;
+ font-size: 11px /*generalSizeFont*/;
+ font-family: verdana /*generalFamilyFont*/;
+ color : #000000 /*headerTextColor*/;
+ background-color : #BED6F8 /*headerBackgroundColor*/;
+ background-image : url(btn_press_bg.gif)/*from headerBackgroundColor to headerGradientColor, width generalSizeFont*/;
+ background-repeat : repeat-x;
+ background-position : bottom left;
+ }
+</style>
+<input type="Button" value="Test" class="btn_def">
+<input type="File" class="input_def">
+<input type="Text" value="Test" class="input_def">
+<select class="input_def">
+ <option>Test</option>
+ <option>Test</option>
+ <option>Test</option>
+</select><br><br>
+
+<input type="Button" value="Test" class="btn_press">
+<input type="File" class="input_sel">
+<input type="Text" value="Test" class="input_sel">
+<select class="input_sel">
+ <option>Test</option>
+ <option>Test</option>
+ <option>Test</option>
+</select><br><br>
+
+<input type="Button" value="Test" class="btn_def">
+<input type="File" class="input_def">
+<input type="Text" value="Test" class="input_error">
+<select class="input_def">
+ <option>Test</option>
+ <option>Test</option>
+ <option>Test</option>
+</select><br><br>
+
+</body>
+</html>
Copied: management/design/standardComponent/design/example.html (from rev 6324, management/design/standardComponent/example.html)
===================================================================
--- management/design/standardComponent/design/example.html (rev 0)
+++ management/design/standardComponent/design/example.html 2008-02-25 17:23:53 UTC (rev 6325)
@@ -0,0 +1,47 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+
+<html>
+<head>
+ <title>Untitled</title>
+
+<link rel="STYLESHEET" type="text/css" href="basic.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>
+<input type="Button" value="Test">
+<input type="Checkbox">
+<input type="File">
+<input type="Radio">
+<input type="Text" value="Test">
+<select size="1">
+ <option>Test</option>
+</select>
+
+<select multiple>
+ <option>Test</option>
+ <option>Test1</option>
+ <option>Test2</option>
+ <option>Test3</option>
+</select>
+
+
+<br><br>
+<textarea>text</textarea>
+
+<keygen />
+<br><br>
+<isindex />
+
+</fieldset>
+</body>
+</html>
Copied: management/design/standardComponent/design/input_bg.gif (from rev 6324, management/design/standardComponent/input_bg.gif)
===================================================================
(Binary files differ)
Copied: management/design/standardComponent/design/input_error.gif (from rev 6324, management/design/standardComponent/input_error.gif)
===================================================================
(Binary files differ)
Copied: management/design/standardComponent/design/styles.js (from rev 6324, management/design/standardComponent/styles.js)
===================================================================
--- management/design/standardComponent/design/styles.js (rev 0)
+++ management/design/standardComponent/design/styles.js 2008-02-25 17:23:53 UTC (rev 6325)
@@ -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
Deleted: management/design/standardComponent/example.html
===================================================================
--- management/design/standardComponent/example.html 2008-02-25 15:17:47 UTC (rev 6324)
+++ management/design/standardComponent/example.html 2008-02-25 17:23:53 UTC (rev 6325)
@@ -1,47 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
-
-<html>
-<head>
- <title>Untitled</title>
-
-<link rel="STYLESHEET" type="text/css" href="basic.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>
-<input type="Button" value="Test">
-<input type="Checkbox">
-<input type="File">
-<input type="Radio">
-<input type="Text" value="Test">
-<select size="1">
- <option>Test</option>
-</select>
-
-<select multiple>
- <option>Test</option>
- <option>Test1</option>
- <option>Test2</option>
- <option>Test3</option>
-</select>
-
-
-<br><br>
-<textarea>text</textarea>
-
-<keygen />
-<br><br>
-<isindex />
-
-</fieldset>
-</body>
-</html>
Deleted: management/design/standardComponent/input_bg.gif
===================================================================
(Binary files differ)
Deleted: management/design/standardComponent/input_error.gif
===================================================================
(Binary files differ)
Deleted: management/design/standardComponent/styles.js
===================================================================
--- management/design/standardComponent/styles.js 2008-02-25 15:17:47 UTC (rev 6324)
+++ management/design/standardComponent/styles.js 2008-02-25 17:23:53 UTC (rev 6325)
@@ -1,53 +0,0 @@
-//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, 10 months
JBoss Rich Faces SVN: r6324 - in trunk/sandbox/ui/inplaceSelect/src/main: resources/org/richfaces/renderkit/html/css and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-02-25 10:17:47 -0500 (Mon, 25 Feb 2008)
New Revision: 6324
Modified:
trunk/sandbox/ui/inplaceSelect/src/main/config/component/inplaceselect.xml
trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss
Log:
field css class remove position absolute
Modified: trunk/sandbox/ui/inplaceSelect/src/main/config/component/inplaceselect.xml
===================================================================
--- trunk/sandbox/ui/inplaceSelect/src/main/config/component/inplaceselect.xml 2008-02-25 14:45:40 UTC (rev 6323)
+++ trunk/sandbox/ui/inplaceSelect/src/main/config/component/inplaceselect.xml 2008-02-25 15:17:47 UTC (rev 6324)
@@ -132,7 +132,7 @@
<property>
<name>listWidth</name>
<classname>java.lang.String</classname>
- <description>"200px"</description>
+ <description>"100px"</description>
</property>
<property>
<name>listHeight</name>
Modified: trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss
===================================================================
--- trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss 2008-02-25 14:45:40 UTC (rev 6323)
+++ trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss 2008-02-25 15:17:47 UTC (rev 6324)
@@ -6,10 +6,10 @@
<f:verbatim>
<![CDATA[
-*{font-family : verdana; font-size:11px;}
-body{padding : 30px;}
-fieldset{padding : 30px; border : 1px solid #c0c0c0;}
-legend{font-weight : bold}
+/* *{font-family : verdana; font-size:11px;} */
+/* body{padding : 30px;} */
+/* fieldset{padding : 30px; border : 1px solid #c0c0c0;} */
+/* legend{font-weight : bold} */
.rich-inplace {
}
@@ -35,7 +35,7 @@
padding : 0px 0px 0px 0px;
border-width: 1px;
margin : 0px;
- position : absolute;
+/* position : absolute; */
top:0px;
left : 0px;
background-position : center right;
@@ -43,7 +43,7 @@
}
.rich-inplace-select-strut{
- width : 100px;
+ /* width : 100px; */
height : 1px
}
.rich-inplace-select-btn-set{
16 years, 10 months
JBoss Rich Faces SVN: r6323 - trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/component.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-02-25 09:45:40 -0500 (Mon, 25 Feb 2008)
New Revision: 6323
Modified:
trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/component/UIFileUpload.java
Log:
added constants for component type/family + reformatting
Modified: trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/component/UIFileUpload.java
===================================================================
--- trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/component/UIFileUpload.java 2008-02-25 14:02:41 UTC (rev 6322)
+++ trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/component/UIFileUpload.java 2008-02-25 14:45:40 UTC (rev 6323)
@@ -7,8 +7,6 @@
import javax.faces.component.UIInput;
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
-import javax.faces.event.ActionEvent;
-import javax.faces.event.ActionListener;
import javax.faces.event.FacesEvent;
import javax.servlet.http.HttpServletRequest;
@@ -25,161 +23,174 @@
*/
public abstract class UIFileUpload extends UIInput {
- private String localContentType;
+ /**
+ * <p>
+ * The standard component type for this component.
+ * </p>
+ */
+ public static final String COMPONENT_TYPE = "org.richfaces.component.FileUpload";
- private String localFileName;
+ /**
+ * <p>
+ * The standard component family for this component.
+ * </p>
+ */
+ public static final String COMPONENT_FAMILY = "org.richfaces.component.FileUpload";
- private Integer localFileSize;
+ private String localContentType;
- private InputStream localInputStream;
+ private String localFileName;
- // @Override
- // public void processUpdates(FacesContext context) {
- // ValueExpression dataBinding = getValueExpression("data");
- // if (dataBinding != null) {
- // Class clazz = dataBinding.getType(context.getELContext());
- // if (clazz.isAssignableFrom(InputStream.class)) {
- // dataBinding.setValue(context.getELContext(),
- // getLocalInputStream());
- // } else if (clazz.isAssignableFrom(byte[].class)) {
- // byte[] bytes = null;
- // if (getLocalInputStream() != null) {
- // ByteArrayOutputStream bos = new ByteArrayOutputStream();
- // try {
- // byte[] buffer = new byte[512];
- // int read = getLocalInputStream().read(buffer);
- // while (read != -1) {
- // bos.write(buffer, 0, read);
- // read = getLocalInputStream().read(buffer);
- // }
- // bytes = bos.toByteArray();
- // } catch (IOException e) {
- // throw new RuntimeException(e);
- // }
- // }
- // dataBinding.setValue(context.getELContext(), bytes);
- // }
- //
- // if (getLocalContentType() != null) {
- // ValueExpression valueExpression = getValueExpression("contentType");
- // if (valueExpression != null) {
- // valueExpression.setValue(context.getELContext(),
- // getLocalContentType());
- // }
- // }
- //
- // if (getLocalFileName() != null) {
- // ValueExpression valueExpression = getValueExpression("fileName");
- // if (valueExpression != null) {
- // valueExpression.setValue(context.getELContext(),
- // getLocalFileName());
- // }
- // }
- //
- // if (getLocalFileSize() != null) {
- // ValueExpression valueExpression = getValueExpression("fileSize");
- // if (valueExpression != null) {
- // valueExpression.setValue(context.getELContext(),
- // getLocalFileSize());
- // }
- // }
- // }
- // }
+ private Integer localFileSize;
- public String getLocalContentType() {
- return localContentType;
- }
+ private InputStream localInputStream;
- public void setLocalContentType(String localContentType) {
- this.localContentType = localContentType;
- }
+ // @Override
+ // public void processUpdates(FacesContext context) {
+ // ValueExpression dataBinding = getValueExpression("data");
+ // if (dataBinding != null) {
+ // Class clazz = dataBinding.getType(context.getELContext());
+ // if (clazz.isAssignableFrom(InputStream.class)) {
+ // dataBinding.setValue(context.getELContext(),
+ // getLocalInputStream());
+ // } else if (clazz.isAssignableFrom(byte[].class)) {
+ // byte[] bytes = null;
+ // if (getLocalInputStream() != null) {
+ // ByteArrayOutputStream bos = new ByteArrayOutputStream();
+ // try {
+ // byte[] buffer = new byte[512];
+ // int read = getLocalInputStream().read(buffer);
+ // while (read != -1) {
+ // bos.write(buffer, 0, read);
+ // read = getLocalInputStream().read(buffer);
+ // }
+ // bytes = bos.toByteArray();
+ // } catch (IOException e) {
+ // throw new RuntimeException(e);
+ // }
+ // }
+ // dataBinding.setValue(context.getELContext(), bytes);
+ // }
+ //
+ // if (getLocalContentType() != null) {
+ // ValueExpression valueExpression = getValueExpression("contentType");
+ // if (valueExpression != null) {
+ // valueExpression.setValue(context.getELContext(),
+ // getLocalContentType());
+ // }
+ // }
+ //
+ // if (getLocalFileName() != null) {
+ // ValueExpression valueExpression = getValueExpression("fileName");
+ // if (valueExpression != null) {
+ // valueExpression.setValue(context.getELContext(),
+ // getLocalFileName());
+ // }
+ // }
+ //
+ // if (getLocalFileSize() != null) {
+ // ValueExpression valueExpression = getValueExpression("fileSize");
+ // if (valueExpression != null) {
+ // valueExpression.setValue(context.getELContext(),
+ // getLocalFileSize());
+ // }
+ // }
+ // }
+ // }
- public String getLocalFileName() {
- return localFileName;
- }
+ public String getLocalContentType() {
+ return localContentType;
+ }
- public void setLocalFileName(String localFileName) {
- this.localFileName = localFileName;
- }
+ public void setLocalContentType(String localContentType) {
+ this.localContentType = localContentType;
+ }
- public Integer getLocalFileSize() {
- return localFileSize;
- }
+ public String getLocalFileName() {
+ return localFileName;
+ }
- public void setLocalFileSize(Integer localFileSize) {
- this.localFileSize = localFileSize;
- }
+ public void setLocalFileName(String localFileName) {
+ this.localFileName = localFileName;
+ }
- public InputStream getLocalInputStream() {
- return localInputStream;
- }
+ public Integer getLocalFileSize() {
+ return localFileSize;
+ }
- public void setLocalInputStream(InputStream localInputStream) {
- this.localInputStream = localInputStream;
- }
+ public void setLocalFileSize(Integer localFileSize) {
+ this.localFileSize = localFileSize;
+ }
- public abstract void setAccept(String accept);
+ public InputStream getLocalInputStream() {
+ return localInputStream;
+ }
- public abstract String getAccept();
+ public void setLocalInputStream(InputStream localInputStream) {
+ this.localInputStream = localInputStream;
+ }
- public abstract String getStyleClass();
+ public abstract void setAccept(String accept);
- public abstract String getStyle();
+ public abstract String getAccept();
- public abstract void setStyleClass(String styleClass);
+ public abstract String getStyleClass();
- public abstract void setStyle(String style);
+ public abstract String getStyle();
- public abstract MethodExpression getFileUploadListener();
+ public abstract void setStyleClass(String styleClass);
- public abstract void setFileUploadListener(MethodExpression scrollerListener);
+ public abstract void setStyle(String style);
- public void addFileUploadListener(FileUploadListener listener) {
- addFacesListener(listener);
- }
+ public abstract MethodExpression getFileUploadListener();
- public FileUploadListener[] getFileUploadListeners() {
- return (FileUploadListener[]) getFacesListeners(FileUploadListener.class);
- }
+ public abstract void setFileUploadListener(MethodExpression scrollerListener);
- public void removeFileUploadListener(FileUploadListener listener) {
- removeFacesListener(listener);
- }
+ public void addFileUploadListener(FileUploadListener listener) {
+ addFacesListener(listener);
+ }
- public void broadcast(FacesEvent e) {
-
- super.broadcast(e);
-
- if (e instanceof UploadEvent) {
- // XXX BTW, why doesn't UploadEvent accept any listeners?
+ public FileUploadListener[] getFileUploadListeners() {
+ return (FileUploadListener[]) getFacesListeners(FileUploadListener.class);
+ }
- FacesContext facesContext = FacesContext.getCurrentInstance();
- MethodExpression binding = getFileUploadListener();
- if (binding != null) {
- binding.invoke(facesContext.getELContext(), new Object[] { e });
- }
-
- }else {
- FacesContext facesContext = FacesContext.getCurrentInstance();
- ExternalContext externalContext = facesContext.getExternalContext();
- HttpServletRequest request = (HttpServletRequest)externalContext.getRequest();
- if ("progress".equals(request.getParameter("action"))) {
- AjaxContext ajaxContext = AjaxContextImpl
- .getCurrentInstance(facesContext);
- String uid = request.getParameter("uid");
+ public void removeFileUploadListener(FileUploadListener listener) {
+ removeFacesListener(listener);
+ }
- Map<String, Object> sessionMap = externalContext.getSessionMap();
+ public void broadcast(FacesEvent e) {
- Map<String, MultipartRequest> sessions = (Map<String, MultipartRequest>) sessionMap
- .get(MultipartFilter.REQUESTS_SESSIONS_BEAN_NAME);
- if (sessions != null) {
- MultipartRequest multipartRequest = sessions.get(uid);
- if (multipartRequest != null) {
- ajaxContext.setResponseData(multipartRequest.getSize());
- }
- }
- }
- }
+ super.broadcast(e);
- }
+ if (e instanceof UploadEvent) {
+ // XXX BTW, why doesn't UploadEvent accept any listeners?
+
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ MethodExpression binding = getFileUploadListener();
+ if (binding != null) {
+ binding.invoke(facesContext.getELContext(), new Object[] { e });
+ }
+
+ } else {
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ ExternalContext externalContext = facesContext.getExternalContext();
+ HttpServletRequest request = (HttpServletRequest) externalContext.getRequest();
+ if ("progress".equals(request.getParameter("action"))) {
+ AjaxContext ajaxContext = AjaxContextImpl.getCurrentInstance(facesContext);
+ String uid = request.getParameter("uid");
+
+ Map<String, Object> sessionMap = externalContext.getSessionMap();
+
+ Map<String, MultipartRequest> sessions = (Map<String, MultipartRequest>) sessionMap
+ .get(MultipartFilter.REQUESTS_SESSIONS_BEAN_NAME);
+ if (sessions != null) {
+ MultipartRequest multipartRequest = sessions.get(uid);
+ if (multipartRequest != null) {
+ ajaxContext.setResponseData(multipartRequest.getSize());
+ }
+ }
+ }
+ }
+
+ }
}
16 years, 10 months
JBoss Rich Faces SVN: r6322 - in trunk/sandbox/ui/inplaceSelect/src/main: templates and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-02-25 09:02:41 -0500 (Mon, 25 Feb 2008)
New Revision: 6322
Modified:
trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js
trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
Log:
add IE6 check than displaying buttons shadow
Modified: trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js
===================================================================
--- trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js 2008-02-25 14:02:18 UTC (rev 6321)
+++ trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js 2008-02-25 14:02:41 UTC (rev 6322)
@@ -1,9 +1,7 @@
if(!window.Richfaces) window.Richfaces = {};
Richfaces.InplaceSelectList = Class.create(Richfaces.ComboBoxList, {
- initialize : function($super, listId, parentListId, selectFirstOnUpdate, classes, width, height, itemsText, onlistcall, fieldId, shadowId,
- showDelay, hideDelay) {
- $super(listId, parentListId, selectFirstOnUpdate, classes, width, height, itemsText, onlistcall, fieldId, shadowId,
- showDelay, hideDelay);
+ initialize : function($super, listId, parentListId, selectFirstOnUpdate, classes, width, height, itemsText, onlistcall, fieldId, shadowId, showDelay, hideDelay) {
+ $super(listId, parentListId, selectFirstOnUpdate, classes, width, height, itemsText, onlistcall, fieldId, shadowId, showDelay, hideDelay);
},
setPosition : function($super, fieldTop, fieldLeft, fieldHeight) {
Modified: trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
===================================================================
--- trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-02-25 14:02:18 UTC (rev 6321)
+++ trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-02-25 14:02:41 UTC (rev 6322)
@@ -74,7 +74,7 @@
class="rich-inplace-select-field"/>
<input id='#{clientId}inplaceValue' name='#{clientId}inplaceValue' type='hidden' value='#{fieldValue}'/>
<div id="#{clientId}bar" class="rich-inplace-select-btn-set" style="display:none;">
- <div class="rich-inplace-select-shadow">
+ <div class="rich-inplace-select-shadow" id="#{clientId}btns_shadow">
<table cellpadding="0" cellspacing="0" border="0" class="rich-inplace-select-shadow-size">
<tr>
<td class="rich-inplace-select-shadow-tl">
@@ -178,7 +178,7 @@
var richInplaceSelect = new Richfaces.InplaceSelect(richInplaceList, '#{clientId}', '#{clientId}inplaceTmpValue',
'#{clientId}inplaceValue', '#{clientId}tabber', '#{clientId}inplaceStrut',
richInplaceSelAttributes, richInplaceSelEvents, Richfaces.InplaceSelect.CLASSES,
- ['#{clientId}bar', '#{clientId}ok', '#{clientId}cancel', '#{clientId}buttons']);
+ ['#{clientId}bar', '#{clientId}ok', '#{clientId}cancel', '#{clientId}buttons', '#{clientId}btns_shadow']);
</script>
</f:root>
\ No newline at end of file
16 years, 10 months
JBoss Rich Faces SVN: r6321 - 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: abelevich
Date: 2008-02-25 09:02:18 -0500 (Mon, 25 Feb 2008)
New Revision: 6321
Modified:
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/inplaceinput.js
trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx
Log:
fix styles for buttons, add IE6 check then displaying buttons shadow
Modified: 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 2008-02-25 12:22:26 UTC (rev 6320)
+++ trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss 2008-02-25 14:02:18 UTC (rev 6321)
@@ -109,14 +109,14 @@
</u:style>
</u:selector>
- <u:selector name=".rich-inplace-control">
+ <u:selector name=".rich-inplace-button">
<u:style name="background-image">
<f:resource f:key="org.richfaces.renderkit.html.images.SpinnerButtonGradient"/>
</u:style>
</u:selector>
- <u:selector name=".rich-inplace-control-press">
+ <u:selector name=".rich-inplace-button-press">
<u:style name="background-image">
<f:resource f:key="org.richfaces.renderkit.html.images.ComboBoxButtonPressGradient"/>
</u:style>
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-25 12:22:26 UTC (rev 6320)
+++ trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-02-25 14:02:18 UTC (rev 6321)
@@ -24,7 +24,7 @@
this.prevState = Richfaces.InplaceInput.STATES[0];
if (this.attributes.showControls) {
- this.bar = new Richfaces.InplaceInputBar(barParams[0], barParams[1], barParams[2], barParams[3],
+ this.bar = new Richfaces.InplaceInputBar(barParams[0], barParams[1], barParams[2], barParams[3], barParams[4],
this.attributes.verticalPosition, this.attributes.horizontalPosition);
}
this.initHandlers();
@@ -298,11 +298,12 @@
Richfaces.InplaceInputBar = Class.create();
Richfaces.InplaceInputBar.prototype = {
- initialize : function(barId, okId, cancelId, buttonsPanelId, verticalPosition, horizontalPosition) {
+ initialize : function(barId, okId, cancelId, buttonsPanelId, buttonsShadowId, verticalPosition, horizontalPosition) {
this.bar = $(barId);
this.ok = $(okId);
this.cancel = $(cancelId);
this.bsPanel = $(buttonsPanelId);
+ this.buttonsShadow = $(buttonsShadowId);
this.verticalPosition = verticalPosition;
this.horizontalPosition = horizontalPosition;
@@ -324,6 +325,9 @@
show : function(inpWidth, inpHeight) {
this.positioning(inpWidth, inpHeight);
+ if (Richfaces.browser.isIE6) {
+ this.buttonsShadow.style.visibility = "hidden";
+ }
this.bar.show();
},
Modified: trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx
===================================================================
--- trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-02-25 12:22:26 UTC (rev 6320)
+++ trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-02-25 14:02:18 UTC (rev 6321)
@@ -15,6 +15,7 @@
<h:scripts>
new org.ajax4jsf.javascript.PrototypeScript(),
scripts/inplaceinput.js
+ scripts/utils.js
</h:scripts>
<f:resource var="saveIcon" name="org.richfaces.renderkit.html.images.SaveControlIcon"/>
<f:resource var="cancelIcon" name="org.richfaces.renderkit.html.images.CancelControlIcon"/>
@@ -96,7 +97,7 @@
} else {
]]>
</jsp:scriptlet>
- <div class="rich-inplace-shadow">
+ <div id="#{clientId}btns_shadow" class="rich-inplace-shadow">
<table class="rich-inplace-shadow-size" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
@@ -169,6 +170,6 @@
EDITABLE : 'rich-inplace rich-inplace-edit #{component.attributes["editClass"]}'}
};
- var inplaceInput = new Richfaces.InplaceInput('#{clientId}', '#{clientId}tempValue', '#{clientId}value', '#{clientId}tabber', '#{clientId}strut', attributes, events, Richfaces.InplaceInput.CLASSES, ['#{clientId}bar', '#{clientId}ok', '#{clientId}cancel', '#{clientId}buttons']);
+ var inplaceInput = new Richfaces.InplaceInput('#{clientId}', '#{clientId}tempValue', '#{clientId}value', '#{clientId}tabber', '#{clientId}strut', attributes, events, Richfaces.InplaceInput.CLASSES, ['#{clientId}bar', '#{clientId}ok', '#{clientId}cancel', '#{clientId}buttons','#{clientId}btns_shadow']);
</script>
</f:root>
\ No newline at end of file
16 years, 10 months
JBoss Rich Faces SVN: r6320 - in trunk/sandbox/ui/inplaceInput/src/main: templates and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-02-25 07:22:26 -0500 (Mon, 25 Feb 2008)
New Revision: 6320
Modified:
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss
trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx
Log:
remove unnecessary css classes
Modified: 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 2008-02-25 11:58:38 UTC (rev 6319)
+++ trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss 2008-02-25 12:22:26 UTC (rev 6320)
@@ -48,14 +48,14 @@
padding:0px 0px 0px 3px;
}
- .rich-inplace-control {
+ .rich-inplace-button {
background-color : #FFFFFF;
border : 1px outset #BED6F8;
padding : 0px;
margin : 0px;
}
- .rich-inplace-control-press {
+ .rich-inplace-button-press {
background-color: #FFFFFF;
border : 1px inset #BED6F8;
padding : 0px;
@@ -91,23 +91,14 @@
background-repeat: repeat-x;
background-position: bottom right;
}
-
-
-
- /* mock-up styles */
-/* *{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;}
+ .rich-inplace-input-button-set {
+ white-space : nowrap;
+ }
- .is_strut{height : 1px}
- .is_btn_set{ /*position : absolute; top:0px; left : 100px;*/ white-space : nowrap}
+ .rich-inplace-input-strut {
+ height : 1px;
+ }
]]>
</f:verbatim>
Modified: trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx
===================================================================
--- trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-02-25 11:58:38 UTC (rev 6319)
+++ trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-02-25 12:22:26 UTC (rev 6320)
@@ -62,7 +62,7 @@
<span id="#{clientId}" class='rich-inplace rich-inplace-view #{component.attributes["styleClass"]}'
x:passThruWithExclusions="id,styleClass,class,style">
<input id="#{clientId}tabber" type="button" value="" style="width: 1px; position: absolute; left: -32767px;" />
- <img id="#{clientId}strut" src="#{spacer}" class="is_strut"/>
+ <img id="#{clientId}strut" src="#{spacer}" class="rich-inplace-input-strut"/>
<input id='#{clientId}tempValue'
class='rich-inplace-field'
style='display:none;'
@@ -88,7 +88,7 @@
/>
<input id='#{clientId}value' name='#{clientId}value' type='hidden' value='#{fieldValue}'/>
- <div id="#{clientId}bar" class="is_btn_set" style="display:none;">
+ <div id="#{clientId}bar" class="rich-inplace-input-button-set" style="display:none;">
<jsp:scriptlet>
<![CDATA[
if (isControlsFacetExists(context, component)) {
@@ -119,19 +119,19 @@
</table>
</div>
<div id="#{clientId}buttons" style="position:relative;">
- <input id='#{clientId}ok' class='rich-inplace-control #{controlClass}'
+ <input id='#{clientId}ok' class='rich-inplace-button #{controlClass}'
type='image'
- onmouseup="this.className='rich-inplace-control #{controlClass}'"
- onmouseout="this.className='rich-inplace-control #{controlClass}'"
- onmousedown="this.className='rich-inplace-control-press #{controlPressedClass}'"
- onmouseover="this.className='rich-inplace-control #{controlHoveredClass}'"
+ onmouseup="this.className='rich-inplace-button #{controlClass}'"
+ onmouseout="this.className='rich-inplace-button #{controlClass}'"
+ onmousedown="this.className='rich-inplace-button-press #{controlPressedClass}'"
+ onmouseover="this.className='rich-inplace-button #{controlHoveredClass}'"
src='#{saveIcon}'/>
- <input id='#{clientId}cancel' class='rich-inplace-control #{controlClass}'
+ <input id='#{clientId}cancel' class='rich-inplace-button #{controlClass}'
type='image'
- onmouseup="this.className='rich-inplace-control #{controlClass}'"
- onmouseout="this.className='rich-inplace-control #{controlClass}'"
- onmousedown="this.className='rich-inplace-control-press #{controlPressedClass}'"
- onmouseover="this.className='rich-inplace-control #{controlHoveredClass}'"
+ onmouseup="this.className='rich-inplace-button #{controlClass}'"
+ onmouseout="this.className='rich-inplace-button #{controlClass}'"
+ onmousedown="this.className='rich-inplace-button-press #{controlPressedClass}'"
+ onmouseover="this.className='rich-inplace-button #{controlHoveredClass}'"
src='#{cancelIcon}'/>
</div>
<jsp:scriptlet>
16 years, 10 months
JBoss Rich Faces SVN: r6319 - trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-02-25 06:58:38 -0500 (Mon, 25 Feb 2008)
New Revision: 6319
Modified:
trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss
Log:
skinning
Modified: trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss
===================================================================
--- trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss 2008-02-25 11:44:09 UTC (rev 6318)
+++ trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss 2008-02-25 11:58:38 UTC (rev 6319)
@@ -16,8 +16,8 @@
.rich-inplace-select-default-state{
white-space : nowrap;
- background-color : #f1f1f1/*editorBackgroundColor*/;
- border-bottom : 1px dashed #000000/*generalTextColor*/;
+ border-bottom-width: 1px;
+ border-bottom-style: dashed;
padding-left : 3px;
padding-right : 3px;
}
@@ -29,15 +29,12 @@
.rich-inplace-select-edit-state{
position : relative;
- width : 100px;
}
.rich-inplace-select-field {
- background : #FEFFDA/*editBackgroundColor*/;
padding : 0px 0px 0px 0px;
- border : 0px;
+ border-width: 1px;
margin : 0px;
- /*width : 112px;*/
position : absolute;
top:0px;
left : 0px;
@@ -50,15 +47,14 @@
height : 1px
}
.rich-inplace-select-btn-set{
- /*position : absolute; top:0px; left : 112px;*/
white-space : nowrap
}
.rich-inplace-select-btn {
background-position : top;
background-repeat: repeat-x;
- background-color: #C7D7EC; /*gradient - from generalBackgroundColor to tabBackgroundColor, background-color - tabBackgroundColor*/
- border : 1px outset #BED6F8; /*panelBorderColor*/
+ border-width: 1px;
+ border-style: outset;
padding : 0px;
margin : 0px;
}
@@ -66,8 +62,8 @@
.rich-inplace-select-btn-press{
background-position: top;
background-repeat: repeat-x;
- background-color: #C7D7EC; /*gradient - from tabBackgroundColor to generalBackgroundColor, background-color - tabBackgroundColor*/
- border : 1px inset #BED6F8; /*panelBorderColor*/
+ border-width: 1px;
+ border-style: inset;
padding : 0px;
margin : 0px;
}
@@ -88,12 +84,11 @@
.rich-inplace-select-list_cord{
position : relative;
- font-size : 0px;d!isplay : none
-}/*DDL is hidden!!!!!*/
+ font-size : 0px;
+}
.rich-inplace-select-list-scroll{
overflow : auto;
- /*height : 100px;*/
}
.rich-inplace-select-list-position{
@@ -103,14 +98,12 @@
}
.rich-inplace-select-list-decoration{
- border : 1px outset #c0c0c0 /*panelBorderColor*/;
+ border-width: 1px;
+ border-style: outset;
padding : 0px;
- background-color : #FEFFDA; /*tableBackgroundColor*/
}
-
.rich-inplace-select-width-list{
- /*width : 250px;*/
}
.rich-inplace-select-item{
@@ -120,15 +113,11 @@
}
.rich-inplace-select-font{
- font-size : 11px/*generalSizeFont*/;
- font-family : arial/*generalFamilyFont*/;
- color : #000000/*generalTextColor*/
}
.rich-inplace-select-selected-item{
padding : 1px;
background-color: #4a75b5;
border : 1px dotted #4a75b5;
- color: white;/*generalTextColor*/
}
.rich-inplace-select-shadow-tl{
@@ -159,46 +148,72 @@
</u:style>
</u:selector>
+ <u:selector name=".rich-inplace-select-default-state">
+ <u:style name="background-color" skin="editorBackgroundColor"/>
+ <u:style name="border-bottom-color" skin="generaTextColor"/>
+ </u:selector>
+
<u:selector name=".rich-inplace-select-field">
+ <u:style name="background-color" skin="editorBackgroundColor"/>
+ <u:style name="border-color" skin="panelBorderColor"/>
<u:style name="background-image">
<f:resource f:key="org.richfaces.renderkit.html.images.SpinnerButtonDown"/>
</u:style>
</u:selector>
-
- <u:selector name=".rich-inplace-select-shadow-tl">
+ <u:selector name=".rich-inplace-select-btn">
<u:style name="background-image">
- <f:resource f:key="/org/richfaces/renderkit/html/images/bg_shadow.png"/>
+ <f:resource f:key="org.richfaces.renderkit.html.images.SpinnerButtonGradient"/>
</u:style>
+ <u:style name="background-color" skin="tabBackgroundColor"/>
+ <u:style name="border-color" skin="panelBorderColor"/>
</u:selector>
- <u:selector name=".rich-inplace-select-shadow-tr">
+ <u:selector name=".rich-inplace-select-btn-press">
<u:style name="background-image">
- <f:resource f:key="/org/richfaces/renderkit/html/images/bg_shadow.png"/>
+ <f:resource f:key="org.richfaces.renderkit.html.images.ComboBoxButtonPressGradient"/>
</u:style>
+ <u:style name="background-color" skin="tabBackgroundColor"/>
+ <u:style name="border-color" skin="panelBorderColor"/>
</u:selector>
- <u:selector name=".rich-inplace-select-shadow-bl">
+ <u:selector name=".rich-inplace-select-list-decoration">
+ <u:style name="border-color" skin="panelBorderColor"/>
+ <u:style name="background-color" skin="tableBackgroundColor"/>
+ </u:selector>
+
+ <u:selector name=".rich-inplace-select-font">
+ <u:style name="font-size" skin="generalSizeFont"/>
+ <u:style name="font-family" skin="generalFamilyFont"/>
+ <u:style name="color" skin="generalTextColor"/>
+ </u:selector>
+
+ <u:selector name=".rich-inplace-select-selected-item">
+ <u:style name="color" skin="generalTextColor"/>
+ </u:selector>
+
+ <u:selector name=".rich-inplace-select-shadow-tl">
<u:style name="background-image">
<f:resource f:key="/org/richfaces/renderkit/html/images/bg_shadow.png"/>
</u:style>
</u:selector>
- <u:selector name=".rich-inplace-select-shadow-br">
+ <u:selector name=".rich-inplace-select-shadow-tr">
<u:style name="background-image">
<f:resource f:key="/org/richfaces/renderkit/html/images/bg_shadow.png"/>
</u:style>
</u:selector>
- <u:selector name=".rich-inplace-select-btn">
+ <u:selector name=".rich-inplace-select-shadow-bl">
<u:style name="background-image">
- <f:resource f:key="org.richfaces.renderkit.html.images.SpinnerButtonGradient"/>
+ <f:resource f:key="/org/richfaces/renderkit/html/images/bg_shadow.png"/>
</u:style>
</u:selector>
- <u:selector name=".rich-inplace-select-btn-press">
+ <u:selector name=".rich-inplace-select-shadow-br">
<u:style name="background-image">
- <f:resource f:key="org.richfaces.renderkit.html.images.ComboBoxButtonPressGradient"/>
+ <f:resource f:key="/org/richfaces/renderkit/html/images/bg_shadow.png"/>
</u:style>
</u:selector>
+
</f:template>
\ No newline at end of file
16 years, 10 months
JBoss Rich Faces SVN: r6318 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-02-25 06:44:09 -0500 (Mon, 25 Feb 2008)
New Revision: 6318
Modified:
trunk/docs/userguide/en/src/main/docbook/included/support.xml
Log:
http://jira.jboss.com/jira/browse/RF-1199 - updated Java code
Modified: trunk/docs/userguide/en/src/main/docbook/included/support.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/support.xml 2008-02-25 11:40:44 UTC (rev 6317)
+++ trunk/docs/userguide/en/src/main/docbook/included/support.xml 2008-02-25 11:44:09 UTC (rev 6318)
@@ -62,15 +62,15 @@
<para>A4j support addition is very similar to correspondent event redefinition of a component, i.e.
</para>
<para><emphasis role="bold">Example:</emphasis></para>
- <programlisting role="XML"><![CDATA[<h:inputText value="#{bean.text}">
+ <programlisting role="XML"><![CDATA[...
+<h:inputText value="#{bean.text}">
<a4j:support event="onkeyup" reRender="output" action="#{bean.action}"/>
</h:inputText>
-]]></programlisting>
+...]]></programlisting>
<para> Below you can see example Java code where support was added as facelets, not children:</para>
<para><emphasis role="bold">Example:</emphasis></para>
- <programlisting role="JAVA"><![CDATA[
-HtmlInputText inputText = new HtmlInputText();
+ <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[] {}));
16 years, 10 months