JBoss Rich Faces SVN: r1695 - trunk/ui/panel/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-07-19 07:39:50 -0400 (Thu, 19 Jul 2007)
New Revision: 1695
Modified:
trunk/ui/panel/src/main/config/component/panel.xml
Log:
http://jira.jboss.com/jira/browse/RF-335
Modified: trunk/ui/panel/src/main/config/component/panel.xml
===================================================================
--- trunk/ui/panel/src/main/config/component/panel.xml 2007-07-19 11:23:32 UTC (rev 1694)
+++ trunk/ui/panel/src/main/config/component/panel.xml 2007-07-19 11:39:50 UTC (rev 1695)
@@ -51,6 +51,9 @@
<property>
<name>header</name>
<classname>java.lang.String</classname>
+ <description>
+ Label text appears on a panel header
+ </description>
</property>
</component>
</components>
17 years, 6 months
JBoss Rich Faces SVN: r1694 - trunk/docs/ajaxguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkukharchuk
Date: 2007-07-19 07:23:32 -0400 (Thu, 19 Jul 2007)
New Revision: 1694
Modified:
trunk/docs/ajaxguide/en/src/main/docbook/included/actionparam.xml
Log:
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/actionparam.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/actionparam.xml 2007-07-19 10:57:00 UTC (rev 1693)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/actionparam.xml 2007-07-19 11:23:32 UTC (rev 1694)
@@ -79,6 +79,11 @@
...
<a4j:actionParam noEscape="true" name="param1" value="foo" assignTo="#{bean.prop1}" />
...]]></programlisting>
+ <para>
+ The <emphasis role="bold"><property><a4j:param></property></emphasis> extends
+ <emphasis role="bold"><property><f:param></property></emphasis>, so the "name" attribute is mandatory.
+ Otherwise, the value will be missing due missing the request parameter name for it.
+ </para>
<para>More information can be found on the <ulink
url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063764"
>Ajax4JSF Users Forum</ulink>.</para>
17 years, 6 months
JBoss Rich Faces SVN: r1693 - in branches/3.0.2/sandbox-samples/tooltip-sample/src/main: webapp/WEB-INF and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: dbiatenia
Date: 2007-07-19 06:57:00 -0400 (Thu, 19 Jul 2007)
New Revision: 1693
Modified:
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/java/org/richfaces/Bean.java
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/WEB-INF/faces-config.xml
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/pages/index.jsp
Log:
Modified: branches/3.0.2/sandbox-samples/tooltip-sample/src/main/java/org/richfaces/Bean.java
===================================================================
--- branches/3.0.2/sandbox-samples/tooltip-sample/src/main/java/org/richfaces/Bean.java 2007-07-19 09:42:45 UTC (rev 1692)
+++ branches/3.0.2/sandbox-samples/tooltip-sample/src/main/java/org/richfaces/Bean.java 2007-07-19 10:57:00 UTC (rev 1693)
@@ -20,6 +20,9 @@
*/
package org.richfaces;
+
+import java.util.Date;
+
/**
* @author $Autor$
*
@@ -30,6 +33,11 @@
String toolTipContent = "ToolTip content";
+ String text1 = "ToolTip content1";
+ String text2 = "ToolTip content2";
+ String text3 = "ToolTip content3";
+
+
public String getText() {
return text;
}
@@ -39,13 +47,41 @@
}
public String getToolTipContent() {
+// toolTipContent += "12";
+// System.out.println("start - " + new Date(System.currentTimeMillis()));
+// for(int i=0;i<100000;i++){
+// double a = Math.cos(i+(Math.asin(1.334)));
+// }
+// System.out.println("end - " + new Date(System.currentTimeMillis()));
return toolTipContent;
}
public void setToolTipContent(String toolTipContent) {
this.toolTipContent = toolTipContent;
}
+
+ public String getText1() {
+ return text1;
+ }
+
+ public void setText1(String text1) {
+ this.text1 = text1;
+ }
+
+ public String getText2() {
+ return text2;
+ }
+
+ public void setText2(String text2) {
+ this.text2 = text2;
+ }
+
+ public String getText3() {
+ return text3;
+ }
+
+ public void setText3(String text3) {
+ this.text3 = text3;
+ }
-
-
}
\ No newline at end of file
Modified: branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/WEB-INF/faces-config.xml 2007-07-19 09:42:45 UTC (rev 1692)
+++ branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/WEB-INF/faces-config.xml 2007-07-19 10:57:00 UTC (rev 1693)
@@ -5,7 +5,7 @@
<managed-bean>
<managed-bean-name>bean</managed-bean-name>
<managed-bean-class>org.richfaces.Bean</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
+ <managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>skinBean</managed-bean-name>
Modified: branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/pages/index.jsp
===================================================================
--- branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/pages/index.jsp 2007-07-19 09:42:45 UTC (rev 1692)
+++ branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/pages/index.jsp 2007-07-19 10:57:00 UTC (rev 1693)
@@ -9,19 +9,25 @@
<body>
<f:view>
<h:form>
- <%--h:selectOneRadio binding="#{skinBean.component}" />
- <h:commandLink action="#{skinBean.change}" value="set skin" /--%>
+ <h:selectOneRadio binding="#{skinBean.component}" />
+ <h:commandLink action="#{skinBean.change}" value="set skin" />
<f:verbatim>
<br/><br/>
</f:verbatim>
- <h:inputText value="Input text with tooltip" id="inp1" size="50">
- <tt:toolTip id="tt" followMouse="true" direction="top-right" mode="client">
- <%--f:facet name="defaultContent"><f:verbatim>DEFAULT VALUE</f:verbatim>
- </f:facet--%>
+ <h:inputText value="Ajax mode Tooltip with default content" id="inp1" size="50">
+ <tt:toolTip id="tt" followMouse="false" direction="top-right" mode="ajax" value="#{bean.toolTipContent}" horizontalOffset="20" verticalOffset="20">
+ <f:facet name="defaultContent"><f:verbatim>DEFAULT CONTENT</f:verbatim>
+ </f:facet>
<h:outputText id="ot" value="#{bean.toolTipContent}"></h:outputText>
+ <h:commandLink value="Click here to close window..."></h:commandLink>
</tt:toolTip>
</h:inputText>
-
+
+ <h:commandButton value="Tooltip with followMouse mode" id="btn">
+ <tt:toolTip value="Tooltip text" followMouse="true"></tt:toolTip>
+ </h:commandButton>
+
+ <%--a4j:log popup="false" level="ALL"></a4j:log--%>
</h:form>
</f:view>
17 years, 6 months
JBoss Rich Faces SVN: r1692 - branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-07-19 05:42:45 -0400 (Thu, 19 Jul 2007)
New Revision: 1692
Added:
branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CurrentDateChangeEvent.java
Log:
CurrentDateChangeEvent
Added: branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CurrentDateChangeEvent.java
===================================================================
--- branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CurrentDateChangeEvent.java (rev 0)
+++ branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CurrentDateChangeEvent.java 2007-07-19 09:42:45 UTC (rev 1692)
@@ -0,0 +1,41 @@
+package org.richfaces.renderkit;
+
+import java.util.Date;
+
+import javax.faces.component.UIComponent;
+import javax.faces.event.FacesEvent;
+import javax.faces.event.FacesListener;
+
+public class CurrentDateChangeEvent extends FacesEvent {
+
+ private Date currentDate = null;
+ private String currentDateString = null;
+
+ public CurrentDateChangeEvent(UIComponent component, Date curentDate) {
+ super(component);
+ this.currentDate = curentDate;
+
+ }
+ public CurrentDateChangeEvent(UIComponent component, String curentDateString) {
+ super(component);
+ this.currentDateString = curentDateString;
+ }
+
+ public boolean isAppropriateListener(FacesListener listener) {
+ return false;
+ }
+
+ public void processListener(FacesListener listener) {
+ // TODO Auto-generated method stub
+ throw new UnsupportedOperationException();
+ }
+
+ public Date getCurrentDate() {
+ return currentDate;
+ }
+
+ public String getCurrentDateString() {
+ return currentDateString;
+ }
+
+}
Property changes on: branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CurrentDateChangeEvent.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
17 years, 6 months
JBoss Rich Faces SVN: r1691 - trunk/ui/dataFilterSlider/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: wesleyhales
Date: 2007-07-18 21:56:12 -0400 (Wed, 18 Jul 2007)
New Revision: 1691
Modified:
trunk/ui/dataFilterSlider/src/main/java/org/richfaces/component/UIDataFltrSlider.java
Log:
RF-474
Modified: trunk/ui/dataFilterSlider/src/main/java/org/richfaces/component/UIDataFltrSlider.java
===================================================================
--- trunk/ui/dataFilterSlider/src/main/java/org/richfaces/component/UIDataFltrSlider.java 2007-07-18 22:52:23 UTC (rev 1690)
+++ trunk/ui/dataFilterSlider/src/main/java/org/richfaces/component/UIDataFltrSlider.java 2007-07-19 01:56:12 UTC (rev 1691)
@@ -200,20 +200,29 @@
public String getSliderRange() {
String sliderValues = "";
- int j = 0;
+
int segmentTotal;
+ int segmentTotalStart;
if (getStartRange().intValue() == 0) {
segmentTotal = (getEndRange().intValue() / getIncrement().intValue());
+ //set slider start to 0
+ segmentTotalStart = 0;
} else {
//subtract 1 for 0 based array
segmentTotal = (getEndRange().intValue() / getIncrement().intValue()) - 1;
+ //set the slider start for the loop
+ segmentTotalStart = getStartRange().intValue();
}
+ int j = segmentTotalStart;
- for (int i = 0; i <= segmentTotal; i++) {
+ for (int i = segmentTotalStart; i <= segmentTotal; i++) {
if (i != 0) {
- //increment by number given
- j = j + getIncrement().intValue();
+ //Check to see if we are at start of slider
+ if (i != j){
+ //increment by number given
+ j = j + getIncrement().intValue();
+ }
} else {
//start at specified range
j = getStartRange().intValue();
17 years, 6 months
JBoss Rich Faces SVN: r1690 - trunk/ui/simpleTogglePanel/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-07-18 18:52:23 -0400 (Wed, 18 Jul 2007)
New Revision: 1690
Modified:
trunk/ui/simpleTogglePanel/src/main/config/component/simpleTogglePanel.xml
Log:
http://jira.jboss.com/jira/browse/RF-473 fixed
Modified: trunk/ui/simpleTogglePanel/src/main/config/component/simpleTogglePanel.xml
===================================================================
--- trunk/ui/simpleTogglePanel/src/main/config/component/simpleTogglePanel.xml 2007-07-18 22:51:41 UTC (rev 1689)
+++ trunk/ui/simpleTogglePanel/src/main/config/component/simpleTogglePanel.xml 2007-07-18 22:52:23 UTC (rev 1690)
@@ -80,7 +80,7 @@
<![CDATA[Facets switch algorithm: "client", "server"(default), "ajax"]]>
</description>
</property>
- <property required="false" el="true" elonly="true">
+ <property required="false">
<name>label</name>
<classname>java.lang.String</classname>
<description>Marker to be rendered on a panel header
17 years, 6 months
JBoss Rich Faces SVN: r1689 - branches/3.0.2/richfaces/simpleTogglePanel/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-07-18 18:51:41 -0400 (Wed, 18 Jul 2007)
New Revision: 1689
Modified:
branches/3.0.2/richfaces/simpleTogglePanel/src/main/config/component/simpleTogglePanel.xml
Log:
http://jira.jboss.com/jira/browse/RF-473 fixed
Modified: branches/3.0.2/richfaces/simpleTogglePanel/src/main/config/component/simpleTogglePanel.xml
===================================================================
--- branches/3.0.2/richfaces/simpleTogglePanel/src/main/config/component/simpleTogglePanel.xml 2007-07-18 21:29:56 UTC (rev 1688)
+++ branches/3.0.2/richfaces/simpleTogglePanel/src/main/config/component/simpleTogglePanel.xml 2007-07-18 22:51:41 UTC (rev 1689)
@@ -80,7 +80,7 @@
<![CDATA[Facets switch algorithm: "client", "server"(default), "ajax"]]>
</description>
</property>
- <property required="false" el="true" elonly="true">
+ <property required="false">
<name>label</name>
<classname>java.lang.String</classname>
<description>Marker to be rendered on a panel header
17 years, 6 months
JBoss Rich Faces SVN: r1688 - trunk/ui/tree/src/main/templates.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-07-18 17:29:56 -0400 (Wed, 18 Jul 2007)
New Revision: 1688
Modified:
trunk/ui/tree/src/main/templates/htmlTree.jspx
Log:
Missing table/tbody fixed
Modified: trunk/ui/tree/src/main/templates/htmlTree.jspx
===================================================================
--- trunk/ui/tree/src/main/templates/htmlTree.jspx 2007-07-18 19:10:54 UTC (rev 1687)
+++ trunk/ui/tree/src/main/templates/htmlTree.jspx 2007-07-18 21:29:56 UTC (rev 1688)
@@ -44,7 +44,11 @@
<f:parameter value="id,style,class"/>
</f:call>
- <vcp:body />
+ <table width="100%" cellpadding="0">
+ <tbody>
+ <vcp:body />
+ </tbody>
+ </table>
<f:call name="encodeSelectionStateInput" />
<f:clientId var="clientId" />
17 years, 6 months
JBoss Rich Faces SVN: r1687 - in trunk/ui/tree/src/main: resources/org/richfaces/renderkit/html/css and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-07-18 15:10:54 -0400 (Wed, 18 Jul 2007)
New Revision: 1687
Modified:
trunk/ui/tree/src/main/java/org/richfaces/renderkit/NodeRendererBase.java
trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/css/tree.xcss
trunk/ui/tree/src/main/templates/htmlTree.jspx
trunk/ui/tree/src/main/templates/htmlTreeNode.jspx
Log:
- nowrap="nowrap" switched to CSS equivalent
- removed excess "return false;" in toggle script
Modified: trunk/ui/tree/src/main/java/org/richfaces/renderkit/NodeRendererBase.java
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/renderkit/NodeRendererBase.java 2007-07-18 19:09:14 UTC (rev 1686)
+++ trunk/ui/tree/src/main/java/org/richfaces/renderkit/NodeRendererBase.java 2007-07-18 19:10:54 UTC (rev 1687)
@@ -96,7 +96,7 @@
StringBuffer buffer = new StringBuffer();
function.appendScript(buffer);
- buffer.append("; return false;");
+ buffer.append(";");
return buffer.toString();
} else if (UITree.SWITCH_SERVER.equals(tree.getSwitchType())) {
String paramName = id + NODE_EXPANDED_INPUT_SUFFIX;
Modified: trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/css/tree.xcss
===================================================================
--- trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/css/tree.xcss 2007-07-18 19:09:14 UTC (rev 1686)
+++ trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/css/tree.xcss 2007-07-18 19:10:54 UTC (rev 1687)
@@ -44,6 +44,7 @@
width: 100%;
cursor: default;
padding : 1px 4px 1px 4px;
+ white-space: nowrap;
}
.dr-tree-h-text-span {
Modified: trunk/ui/tree/src/main/templates/htmlTree.jspx
===================================================================
--- trunk/ui/tree/src/main/templates/htmlTree.jspx 2007-07-18 19:09:14 UTC (rev 1686)
+++ trunk/ui/tree/src/main/templates/htmlTree.jspx 2007-07-18 19:10:54 UTC (rev 1687)
@@ -16,7 +16,6 @@
<h:scripts>
new org.ajax4jsf.javascript.PrototypeScript(),
new org.ajax4jsf.javascript.AjaxScript(),
- /org/ajax4jsf/framework/ajax/scripts/AJAX.js,
/org/richfaces/renderkit/html/scripts/utils.js,
/org/ajax4jsf/javascript/scripts/form.js,
/org/richfaces/renderkit/html/scripts/form.js,
Modified: trunk/ui/tree/src/main/templates/htmlTreeNode.jspx
===================================================================
--- trunk/ui/tree/src/main/templates/htmlTreeNode.jspx 2007-07-18 19:09:14 UTC (rev 1686)
+++ trunk/ui/tree/src/main/templates/htmlTreeNode.jspx 2007-07-18 19:10:54 UTC (rev 1687)
@@ -200,7 +200,7 @@
</td>
<td class="dr-tree-h-text rich-tree-node #{component.attributes['nodeClass']}"
rich:selectedclass="#{selectedClass}" rich:highlightedclass="#{highlightedClass}"
- id="#{clientId}:text" nowrap="nowrap">
+ id="#{clientId}:text">
<vcp:body />
</td>
</tr>
17 years, 6 months
JBoss Rich Faces SVN: r1686 - in trunk/samples/tree-demo/src/main/webapp: pages and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-07-18 15:09:14 -0400 (Wed, 18 Jul 2007)
New Revision: 1686
Modified:
trunk/samples/tree-demo/src/main/webapp/index.jsp
trunk/samples/tree-demo/src/main/webapp/pages/index.jsp
Log:
Slight changes in tree-demo
Modified: trunk/samples/tree-demo/src/main/webapp/index.jsp
===================================================================
--- trunk/samples/tree-demo/src/main/webapp/index.jsp 2007-07-18 19:05:39 UTC (rev 1685)
+++ trunk/samples/tree-demo/src/main/webapp/index.jsp 2007-07-18 19:09:14 UTC (rev 1686)
@@ -2,6 +2,6 @@
<html>
<head></head>
<body>
- <jsp:forward page="/pages/index2.jsf" />
+ <jsp:forward page="/pages/index.jsf" />
</body>
</html>
\ No newline at end of file
Modified: trunk/samples/tree-demo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/tree-demo/src/main/webapp/pages/index.jsp 2007-07-18 19:05:39 UTC (rev 1685)
+++ trunk/samples/tree-demo/src/main/webapp/pages/index.jsp 2007-07-18 19:09:14 UTC (rev 1686)
@@ -20,9 +20,9 @@
.colored {
background-color: #FEFEDE;
}
- .dr-tree-h-ic-img{
- width : 32px;
- height : 32px;
+
+ .rich-tree-node {
+ white-space: normal;
}
</style>
</head>
17 years, 6 months