Author: sergeyhalipov
Date: 2007-04-26 08:45:53 -0400 (Thu, 26 Apr 2007)
New Revision: 569
Modified:
trunk/richfaces/datascroller/src/main/config/component/datascroller.xml
trunk/richfaces/datascroller/src/main/java/org/richfaces/component/UIDatascroller.java
trunk/richfaces/datascroller/src/main/templates/org/richfaces/htmlDatascroller.jspx
Log:
Added "align" attribute to data scroller.
Modified: trunk/richfaces/datascroller/src/main/config/component/datascroller.xml
===================================================================
--- trunk/richfaces/datascroller/src/main/config/component/datascroller.xml 2007-04-26
12:08:57 UTC (rev 568)
+++ trunk/richfaces/datascroller/src/main/config/component/datascroller.xml 2007-04-26
12:45:53 UTC (rev 569)
@@ -221,11 +221,12 @@
</description>
<defaultvalue>true</defaultvalue>
</property>
-
-
-
-
-
+ <property>
+ <name>align</name>
+ <classname>java.lang.String</classname>
+ <description>
+ </description>
+ </property>
</component>
&listeners;
</components>
Modified:
trunk/richfaces/datascroller/src/main/java/org/richfaces/component/UIDatascroller.java
===================================================================
---
trunk/richfaces/datascroller/src/main/java/org/richfaces/component/UIDatascroller.java 2007-04-26
12:08:57 UTC (rev 568)
+++
trunk/richfaces/datascroller/src/main/java/org/richfaces/component/UIDatascroller.java 2007-04-26
12:45:53 UTC (rev 569)
@@ -145,7 +145,11 @@
public abstract void setStyleClass(String styleClass);
public abstract void setStyle(String styleClass);
+
+ public abstract String getAlign();
+ public abstract void setAlign(String align);
+
/**
* Finds the dataTable which id is mapped to the "for" property
*
Modified:
trunk/richfaces/datascroller/src/main/templates/org/richfaces/htmlDatascroller.jspx
===================================================================
---
trunk/richfaces/datascroller/src/main/templates/org/richfaces/htmlDatascroller.jspx 2007-04-26
12:08:57 UTC (rev 568)
+++
trunk/richfaces/datascroller/src/main/templates/org/richfaces/htmlDatascroller.jspx 2007-04-26
12:45:53 UTC (rev 569)
@@ -24,7 +24,7 @@
x:passThruWithExclusions="value,name,type,id"
class="dr-dscr rich-datascr #{component.attributes['styleClass']}"
style="#{component.attributes['style']};">
- <table id="#{clientId}_table" align="center"
border="0" cellpadding="0" cellspacing="1"
class="dr-dscr-t rich-dtascroller-table
#{component.attributes['tableStyleClass']}">
+ <table id="#{clientId}_table"
align="#{component.attributes['align']}" border="0"
cellpadding="0" cellspacing="1" class="dr-dscr-t
rich-dtascroller-table #{component.attributes['tableStyleClass']}">
<tbody>
<tr>
<jsp:scriptlet><![CDATA[
Show replies by date