You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2005/05/24 10:02:52 UTC
svn commit: r178136 - in /myfaces/trunk: doc/release-notes.txt
src/components/org/apache/myfaces/custom/datalist/HtmlDataList.java
src/components/org/apache/myfaces/custom/datalist/HtmlDataList.xml
src/documentation/content/xdocs/components/forceId.xml
Author: mmarinschek
Date: Tue May 24 01:02:50 2005
New Revision: 178136
URL: http://svn.apache.org/viewcvs?rev=178136&view=rev
Log:
fixed myfaces 241. Thanks to Mathias Werlitz!
Modified:
myfaces/trunk/doc/release-notes.txt
myfaces/trunk/src/components/org/apache/myfaces/custom/datalist/HtmlDataList.java
myfaces/trunk/src/components/org/apache/myfaces/custom/datalist/HtmlDataList.xml
myfaces/trunk/src/documentation/content/xdocs/components/forceId.xml
Modified: myfaces/trunk/doc/release-notes.txt
URL: http://svn.apache.org/viewcvs/myfaces/trunk/doc/release-notes.txt?rev=178136&r1=178135&r2=178136&view=diff
==============================================================================
--- myfaces/trunk/doc/release-notes.txt (original)
+++ myfaces/trunk/doc/release-notes.txt Tue May 24 01:02:50 2005
@@ -9,6 +9,7 @@
* closed MYFACES-177
* closed MYFACES-199
* closed MYFACES-209
+* closed MYFACES-241
* closed MYFACES-242
----------------------------------------------------------------------
Changes in Release 1.0.9
Modified: myfaces/trunk/src/components/org/apache/myfaces/custom/datalist/HtmlDataList.java
URL: http://svn.apache.org/viewcvs/myfaces/trunk/src/components/org/apache/myfaces/custom/datalist/HtmlDataList.java?rev=178136&r1=178135&r2=178136&view=diff
==============================================================================
--- myfaces/trunk/src/components/org/apache/myfaces/custom/datalist/HtmlDataList.java (original)
+++ myfaces/trunk/src/components/org/apache/myfaces/custom/datalist/HtmlDataList.java Tue May 24 01:02:50 2005
@@ -174,6 +174,19 @@
private String _layout = null;
private String _rowIndexVar = null;
private String _rowCountVar = null;
+ private String _onclick = null;
+ private String _ondblclick = null;
+ private String _onkeydown = null;
+ private String _onkeypress = null;
+ private String _onkeyup = null;
+ private String _onmousedown = null;
+ private String _onmousemove = null;
+ private String _onmouseout = null;
+ private String _onmouseover = null;
+ private String _onmouseup = null;
+ private String _style = null;
+ private String _styleClass = null;
+ private String _title = null;
public HtmlDataList()
{
@@ -188,12 +201,9 @@
public String getLayout()
{
- if (_layout != null)
- {
- return _layout;
- }
+ if (_layout != null) return _layout;
ValueBinding vb = getValueBinding("layout");
- return vb != null ? (String) vb.getValue(getFacesContext()) : null;
+ return vb != null ? (String)vb.getValue(getFacesContext()) : null;
}
public void setRowIndexVar(String rowIndexVar)
@@ -203,12 +213,9 @@
public String getRowIndexVar()
{
- if (_rowIndexVar != null)
- {
- return _rowIndexVar;
- }
+ if (_rowIndexVar != null) return _rowIndexVar;
ValueBinding vb = getValueBinding("rowIndexVar");
- return vb != null ? (String) vb.getValue(getFacesContext()) : null;
+ return vb != null ? (String)vb.getValue(getFacesContext()) : null;
}
public void setRowCountVar(String rowCountVar)
@@ -218,32 +225,212 @@
public String getRowCountVar()
{
- if (_rowCountVar != null)
- {
- return _rowCountVar;
- }
+ if (_rowCountVar != null) return _rowCountVar;
ValueBinding vb = getValueBinding("rowCountVar");
- return vb != null ? (String) vb.getValue(getFacesContext()) : null;
+ return vb != null ? (String)vb.getValue(getFacesContext()) : null;
}
+ public void setOnclick(String onclick)
+ {
+ _onclick = onclick;
+ }
+
+ public String getOnclick()
+ {
+ if (_onclick != null) return _onclick;
+ ValueBinding vb = getValueBinding("onclick");
+ return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+ }
+
+ public void setOndblclick(String ondblclick)
+ {
+ _ondblclick = ondblclick;
+ }
+
+ public String getOndblclick()
+ {
+ if (_ondblclick != null) return _ondblclick;
+ ValueBinding vb = getValueBinding("ondblclick");
+ return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+ }
+
+ public void setOnkeydown(String onkeydown)
+ {
+ _onkeydown = onkeydown;
+ }
+
+ public String getOnkeydown()
+ {
+ if (_onkeydown != null) return _onkeydown;
+ ValueBinding vb = getValueBinding("onkeydown");
+ return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+ }
+
+ public void setOnkeypress(String onkeypress)
+ {
+ _onkeypress = onkeypress;
+ }
+
+ public String getOnkeypress()
+ {
+ if (_onkeypress != null) return _onkeypress;
+ ValueBinding vb = getValueBinding("onkeypress");
+ return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+ }
+
+ public void setOnkeyup(String onkeyup)
+ {
+ _onkeyup = onkeyup;
+ }
+
+ public String getOnkeyup()
+ {
+ if (_onkeyup != null) return _onkeyup;
+ ValueBinding vb = getValueBinding("onkeyup");
+ return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+ }
+
+ public void setOnmousedown(String onmousedown)
+ {
+ _onmousedown = onmousedown;
+ }
+
+ public String getOnmousedown()
+ {
+ if (_onmousedown != null) return _onmousedown;
+ ValueBinding vb = getValueBinding("onmousedown");
+ return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+ }
+
+ public void setOnmousemove(String onmousemove)
+ {
+ _onmousemove = onmousemove;
+ }
+
+ public String getOnmousemove()
+ {
+ if (_onmousemove != null) return _onmousemove;
+ ValueBinding vb = getValueBinding("onmousemove");
+ return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+ }
+
+ public void setOnmouseout(String onmouseout)
+ {
+ _onmouseout = onmouseout;
+ }
+
+ public String getOnmouseout()
+ {
+ if (_onmouseout != null) return _onmouseout;
+ ValueBinding vb = getValueBinding("onmouseout");
+ return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+ }
+
+ public void setOnmouseover(String onmouseover)
+ {
+ _onmouseover = onmouseover;
+ }
+
+ public String getOnmouseover()
+ {
+ if (_onmouseover != null) return _onmouseover;
+ ValueBinding vb = getValueBinding("onmouseover");
+ return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+ }
+
+ public void setOnmouseup(String onmouseup)
+ {
+ _onmouseup = onmouseup;
+ }
+
+ public String getOnmouseup()
+ {
+ if (_onmouseup != null) return _onmouseup;
+ ValueBinding vb = getValueBinding("onmouseup");
+ return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+ }
+
+ public void setStyle(String style)
+ {
+ _style = style;
+ }
+
+ public String getStyle()
+ {
+ if (_style != null) return _style;
+ ValueBinding vb = getValueBinding("style");
+ return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+ }
+
+ public void setStyleClass(String styleClass)
+ {
+ _styleClass = styleClass;
+ }
+
+ public String getStyleClass()
+ {
+ if (_styleClass != null) return _styleClass;
+ ValueBinding vb = getValueBinding("styleClass");
+ return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+ }
+
+ public void setTitle(String title)
+ {
+ _title = title;
+ }
+
+ public String getTitle()
+ {
+ if (_title != null) return _title;
+ ValueBinding vb = getValueBinding("title");
+ return vb != null ? (String)vb.getValue(getFacesContext()) : null;
+ }
+
+
public Object saveState(FacesContext context)
{
- Object values[] = new Object[4];
+ Object values[] = new Object[17];
values[0] = super.saveState(context);
values[1] = _layout;
values[2] = _rowIndexVar;
values[3] = _rowCountVar;
+ values[4] = _onclick;
+ values[5] = _ondblclick;
+ values[6] = _onkeydown;
+ values[7] = _onkeypress;
+ values[8] = _onkeyup;
+ values[9] = _onmousedown;
+ values[10] = _onmousemove;
+ values[11] = _onmouseout;
+ values[12] = _onmouseover;
+ values[13] = _onmouseup;
+ values[14] = _style;
+ values[15] = _styleClass;
+ values[16] = _title;
return ((Object) (values));
}
public void restoreState(FacesContext context, Object state)
{
- Object values[] = (Object[]) state;
+ Object values[] = (Object[])state;
super.restoreState(context, values[0]);
- _layout = (String) values[1];
- _rowIndexVar = (String) values[2];
- _rowCountVar = (String) values[3];
+ _layout = (String)values[1];
+ _rowIndexVar = (String)values[2];
+ _rowCountVar = (String)values[3];
+ _onclick = (String)values[4];
+ _ondblclick = (String)values[5];
+ _onkeydown = (String)values[6];
+ _onkeypress = (String)values[7];
+ _onkeyup = (String)values[8];
+ _onmousedown = (String)values[9];
+ _onmousemove = (String)values[10];
+ _onmouseout = (String)values[11];
+ _onmouseover = (String)values[12];
+ _onmouseup = (String)values[13];
+ _style = (String)values[14];
+ _styleClass = (String)values[15];
+ _title = (String)values[16];
}
//------------------ GENERATED CODE END ---------------------------------------
}
Modified: myfaces/trunk/src/components/org/apache/myfaces/custom/datalist/HtmlDataList.xml
URL: http://svn.apache.org/viewcvs/myfaces/trunk/src/components/org/apache/myfaces/custom/datalist/HtmlDataList.xml?rev=178136&r1=178135&r2=178136&view=diff
==============================================================================
--- myfaces/trunk/src/components/org/apache/myfaces/custom/datalist/HtmlDataList.xml (original)
+++ myfaces/trunk/src/components/org/apache/myfaces/custom/datalist/HtmlDataList.xml Tue May 24 01:02:50 2005
@@ -19,4 +19,56 @@
<name>rowCountVar</name>
<type>java.lang.String</type>
</field>
+ <field>
+ <name>onclick</name>
+ <type>java.lang.String</type>
+ </field>
+ <field>
+ <name>ondblclick</name>
+ <type>java.lang.String</type>
+ </field>
+ <field>
+ <name>onkeydown</name>
+ <type>java.lang.String</type>
+ </field>
+ <field>
+ <name>onkeypress</name>
+ <type>java.lang.String</type>
+ </field>
+ <field>
+ <name>onkeyup</name>
+ <type>java.lang.String</type>
+ </field>
+ <field>
+ <name>onmousedown</name>
+ <type>java.lang.String</type>
+ </field>
+ <field>
+ <name>onmousemove</name>
+ <type>java.lang.String</type>
+ </field>
+ <field>
+ <name>onmouseout</name>
+ <type>java.lang.String</type>
+ </field>
+ <field>
+ <name>onmouseover</name>
+ <type>java.lang.String</type>
+ </field>
+ <field>
+ <name>onmouseup</name>
+ <type>java.lang.String</type>
+ </field>
+ <field>
+ <name>style</name>
+ <type>java.lang.String</type>
+ </field>
+ <field>
+ <name>styleClass</name>
+ <type>java.lang.String</type>
+ </field>
+ <field>
+ <name>title</name>
+ <type>java.lang.String</type>
+ </field>
</component>
Modified: myfaces/trunk/src/documentation/content/xdocs/components/forceId.xml
URL: http://svn.apache.org/viewcvs/myfaces/trunk/src/documentation/content/xdocs/components/forceId.xml?rev=178136&r1=178135&r2=178136&view=diff
==============================================================================
--- myfaces/trunk/src/documentation/content/xdocs/components/forceId.xml (original)
+++ myfaces/trunk/src/documentation/content/xdocs/components/forceId.xml Tue May 24 01:02:50 2005
@@ -16,13 +16,17 @@
<section>
<title>Description</title>
<p>
- [TO DO]
+ The forceId attribute allows you to set
+ the id of a component to a fixed value.
+ This can be useful if you want to heavily use
+ (or reuse your preexisting) JavaScript libraries
+ or CSS-styles.
</p>
</section>
<!-- screen shot -->
<section>
<title>Screen Shot</title>
- <p>[TO DO]</p> <!-- replace with either a figure or Not Available -->
+ <p>Not available</p> <!-- replace with either a figure or Not Available -->
<!--
<figure src="jscookmenu.png" alt="jscookmenu"/>
-->
@@ -32,24 +36,11 @@
<title>API</title>
<table>
<tr>
- <td>component-family</td>
- <td>[TODO]</td>
- </tr>
- <tr>
- <td>renderer-type</td>
- <td>[TODO]</td>
- </tr>
- <tr>
- <td>component-class</td>
- <td>[TODO]</td>
- </tr>
- <tr>
- <td>renderer-class</td>
- <td>[TODO]</td>
- </tr>
- <tr>
- <td>tag-class</td>
- <td>[TODO]</td>
+ <td>attribute forceId</td>
+ <td>On all MyFaces extended and custom components (all components
+ in the extended taglib, usually prefixed with an 'x')
+ the forceId attribute can be set to the desired id-value.
+ </td>
</tr>
</table>
</section>
@@ -61,7 +52,12 @@
<!-- Instructions -->
<section>
<title>Instructions</title>
- <p>[TO DO]</p>
+ <p>
+ An example: if you want to use the panelGroup
+ control with a predefined id, you include the markup:
+ <x:panelGroup forceId="yourIdValue" />
+ into your JSP-file.
+ </p>
</section>
</body>
<footer>