JBoss Rich Faces SVN: r6748 - trunk/framework/test/src/main/java/org/ajax4jsf/tests.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2008-03-12 09:06:40 -0400 (Wed, 12 Mar 2008)
New Revision: 6748
Added:
trunk/framework/test/src/main/java/org/ajax4jsf/tests/AbstractJspTestCase.java
trunk/framework/test/src/main/java/org/ajax4jsf/tests/Condition.java
trunk/framework/test/src/main/java/org/ajax4jsf/tests/MockELContext2.java
trunk/framework/test/src/main/java/org/ajax4jsf/tests/MockMethodExpression.java
Modified:
trunk/framework/test/src/main/java/org/ajax4jsf/tests/AbstractAjax4JsfTestCase.java
Log:
updated tests
Modified: trunk/framework/test/src/main/java/org/ajax4jsf/tests/AbstractAjax4JsfTestCase.java
===================================================================
--- trunk/framework/test/src/main/java/org/ajax4jsf/tests/AbstractAjax4JsfTestCase.java 2008-03-12 13:06:18 UTC (rev 6747)
+++ trunk/framework/test/src/main/java/org/ajax4jsf/tests/AbstractAjax4JsfTestCase.java 2008-03-12 13:06:40 UTC (rev 6748)
@@ -35,6 +35,8 @@
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
+import javax.el.ELContext;
+import javax.el.ExpressionFactory;
import javax.faces.FacesException;
import javax.faces.FactoryFinder;
import javax.faces.component.UIComponent;
@@ -85,6 +87,14 @@
private File tmpRoot = null;
+ protected ELContext elContext;
+
+ protected ExpressionFactory expressionFactory;
+
+ public static final void evaluate(Condition condition) {
+ String message = condition.getMessage();
+ assertTrue(message, condition.isConditionTrue());
+ }
/**
* @param name
*/
@@ -182,6 +192,8 @@
externalContext = new MockExternalContext(externalContext);
facesContext.setExternalContext(externalContext);
+ elContext = facesContext.getELContext();
+ expressionFactory = application.getExpressionFactory();
}
protected WebClient createWebClient() {
@@ -273,6 +285,8 @@
*/
public void tearDown() throws Exception {
// This method MUST BE OVERRIDEN in any subclasses - since Junit see for it in class for call
+ expressionFactory = null;
+ elContext = null;
super.tearDown();
vcpRenderKit = null;
// Thread.currentThread().setContextClassLoader(threadContextClassLoader);
@@ -284,6 +298,7 @@
InternetResourceBuilder.setInstance(null);
deleteRecursively(tmpRoot);
+
}
// Protected configurations URL's
Added: trunk/framework/test/src/main/java/org/ajax4jsf/tests/AbstractJspTestCase.java
===================================================================
--- trunk/framework/test/src/main/java/org/ajax4jsf/tests/AbstractJspTestCase.java (rev 0)
+++ trunk/framework/test/src/main/java/org/ajax4jsf/tests/AbstractJspTestCase.java 2008-03-12 13:06:40 UTC (rev 6748)
@@ -0,0 +1,114 @@
+/**
+ *
+ */
+package org.ajax4jsf.tests;
+
+import java.io.IOException;
+import java.util.Enumeration;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+
+import javax.el.ELContext;
+import javax.servlet.ServletException;
+import javax.servlet.ServletRequest;
+import javax.servlet.jsp.PageContext;
+
+/**
+ * @author Administrator
+ *
+ */
+public abstract class AbstractJspTestCase extends AbstractAjax4JsfTestCase {
+
+ protected PageContext pageContext = null;
+
+ /**
+ * @param name
+ */
+ public AbstractJspTestCase(String name) {
+ super(name);
+ }
+
+ @Override
+ public void setUp() throws Exception {
+ super.setUp();
+ pageContext = new MockPageContext() {
+
+ private final int[] SCOPE_ORDER = {PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, APPLICATION_SCOPE};
+
+ private Map<String, Object> attributes =
+ new HashMap<String, Object>();
+
+ @Override
+ public ELContext getELContext() {
+ return elContext;
+ }
+
+ @Override
+ public Object findAttribute(String name) {
+ Object value = null;
+ for(int i = 0; i < SCOPE_ORDER.length && value == null; i++) {
+ value = getScope(SCOPE_ORDER[i]).get(name);
+ }
+ return value;
+ }
+
+ @Override
+ public int getAttributesScope(String name) {
+ Object value = null;
+ int i = 0;
+ for(; i < SCOPE_ORDER.length && value == null; i++) {
+ value = getScope(SCOPE_ORDER[i]).get(name);
+ }
+ return value == null ? 0 :SCOPE_ORDER[i];
+ }
+
+
+ @Override
+ public Enumeration<String> getAttributeNamesInScope(int scope) {
+ Map<String, Object> scopeMap = getScope(scope);
+ final Iterator<String> iterator = scopeMap.keySet().iterator();
+ return new Enumeration<String>() {
+ public boolean hasMoreElements() {
+ return iterator.hasNext();
+ }
+ public String nextElement() {
+ // TODO Auto-generated method stub
+ return iterator.next();
+ }
+ };
+ }
+
+ @Override
+ public ServletRequest getRequest() {
+ return request;
+ }
+ @Override
+ public Object getAttribute(String name) {
+ return getScope(PAGE_SCOPE).get(name);
+ }
+
+ @Override
+ public Object getAttribute(String name, int scope) {
+ return getScope(scope).get(name);
+ }
+
+ @SuppressWarnings("unchecked")
+ private Map<String, Object> getScope(int scopeName) {
+ switch(scopeName) {
+ case APPLICATION_SCOPE: return externalContext.getApplicationMap();
+ case SESSION_SCOPE: return externalContext.getSessionMap();
+ case REQUEST_SCOPE: return externalContext.getRequestMap();
+ default: return attributes;
+ }
+ }
+ };
+ }
+
+
+ @Override
+ public void tearDown() throws Exception {
+ pageContext = null;
+ super.tearDown();
+ }
+}
Added: trunk/framework/test/src/main/java/org/ajax4jsf/tests/Condition.java
===================================================================
--- trunk/framework/test/src/main/java/org/ajax4jsf/tests/Condition.java (rev 0)
+++ trunk/framework/test/src/main/java/org/ajax4jsf/tests/Condition.java 2008-03-12 13:06:40 UTC (rev 6748)
@@ -0,0 +1,45 @@
+/**
+ *
+ */
+package org.ajax4jsf.tests;
+
+/**
+ * @author Administrator
+ *
+ */
+public class Condition {
+ private boolean conditionTrue;
+
+ private String message;
+
+ public Condition(String message) {
+ super();
+ this.message = message;
+ }
+
+ public String getMessage() {
+ return message;
+ }
+
+ public void setMessage(String message) {
+ this.message = message;
+ }
+
+ public boolean isConditionTrue() {
+ return conditionTrue;
+ }
+
+ public void setTrue() {
+ setCondition(true);
+ }
+
+ public void setFalse(){
+ setCondition(false);
+ }
+ public void setCondition(boolean conditionTrue) {
+ this.conditionTrue = conditionTrue;
+ }
+
+
+
+}
Added: trunk/framework/test/src/main/java/org/ajax4jsf/tests/MockELContext2.java
===================================================================
--- trunk/framework/test/src/main/java/org/ajax4jsf/tests/MockELContext2.java (rev 0)
+++ trunk/framework/test/src/main/java/org/ajax4jsf/tests/MockELContext2.java 2008-03-12 13:06:40 UTC (rev 6748)
@@ -0,0 +1,55 @@
+/**
+ *
+ */
+package org.ajax4jsf.tests;
+
+import javax.el.ELContext;
+import javax.el.ELResolver;
+import javax.el.FunctionMapper;
+import javax.el.VariableMapper;
+import javax.faces.context.FacesContext;
+
+import com.sun.facelets.FaceletContext;
+
+/**
+ * @author Administrator
+ *
+ */
+public class MockELContext2 extends ELContext {
+
+ private FacesContext faces;
+ /**
+ *
+ */
+ public MockELContext2(FacesContext context) {
+ faces = context;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.el.ELContext#getELResolver()
+ */
+ @Override
+ public ELResolver getELResolver() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.el.ELContext#getFunctionMapper()
+ */
+ @Override
+ public FunctionMapper getFunctionMapper() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.el.ELContext#getVariableMapper()
+ */
+ @Override
+ public VariableMapper getVariableMapper() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}
Added: trunk/framework/test/src/main/java/org/ajax4jsf/tests/MockMethodExpression.java
===================================================================
--- trunk/framework/test/src/main/java/org/ajax4jsf/tests/MockMethodExpression.java (rev 0)
+++ trunk/framework/test/src/main/java/org/ajax4jsf/tests/MockMethodExpression.java 2008-03-12 13:06:40 UTC (rev 6748)
@@ -0,0 +1,105 @@
+/**
+ *
+ */
+package org.ajax4jsf.tests;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.el.ELContext;
+import javax.el.MethodExpression;
+import javax.el.MethodInfo;
+
+/**
+ * @author Administrator
+ *
+ */
+@SuppressWarnings("serial")
+public class MockMethodExpression extends MethodExpression {
+
+ public static interface MethodExpressionInvocationResult {
+ public Object invoke(ELContext context, Object ... arguments);
+ }
+
+ //private Class<?> returnType;
+ private MethodExpressionInvocationResult result;
+ private String expressionString;
+ private List<Object[]> invocationArgs = new ArrayList<Object[]>();
+
+
+
+
+ public MockMethodExpression(String expressionString, Class<?> returnType,
+ MethodExpressionInvocationResult result) {
+ super();
+ this.expressionString = expressionString;
+ //this.returnType = returnType;
+ this.result = result;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.el.MethodExpression#getMethodInfo(javax.el.ELContext)
+ */
+ @Override
+ public MethodInfo getMethodInfo(ELContext context) {
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.el.MethodExpression#invoke(javax.el.ELContext, java.lang.Object[])
+ */
+ @Override
+ public Object invoke(ELContext context, Object[] params) {
+ invocationArgs.add(params);
+ Object returnValue = null;
+ if (result != null) {
+ returnValue = result.invoke(context, params);
+ }
+ return returnValue;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.el.Expression#equals(java.lang.Object)
+ */
+ @Override
+ public boolean equals(Object obj) {
+ if (obj instanceof MethodExpression) {
+ MethodExpression expression = (MethodExpression) obj;
+ return expressionString != null && expression.getExpressionString() != null && expressionString.equals(expression.getExpressionString());
+ }
+ return false;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.el.Expression#getExpressionString()
+ */
+ @Override
+ public String getExpressionString() {
+ return expressionString;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.el.Expression#hashCode()
+ */
+ @Override
+ public int hashCode() {
+ return expressionString == null ? 0 : expressionString.hashCode();
+ }
+
+ /* (non-Javadoc)
+ * @see javax.el.Expression#isLiteralText()
+ */
+ @Override
+ public boolean isLiteralText() {
+ // TODO Auto-generated method stub
+ return expressionString != null && !(expressionString.contains("${") || expressionString.contains("#{"));
+ }
+
+ public List<Object[]> getInvocationArgs() {
+ return invocationArgs;
+ }
+
+ public void reset() {
+ invocationArgs.clear();
+ }
+}
16 years, 10 months
JBoss Rich Faces SVN: r6747 - trunk/ui/dataFilterSlider/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2008-03-12 09:06:18 -0400 (Wed, 12 Mar 2008)
New Revision: 6747
Modified:
trunk/ui/dataFilterSlider/src/main/java/org/richfaces/component/UIDataFltrSlider.java
Log:
updated tests
Modified: trunk/ui/dataFilterSlider/src/main/java/org/richfaces/component/UIDataFltrSlider.java
===================================================================
--- trunk/ui/dataFilterSlider/src/main/java/org/richfaces/component/UIDataFltrSlider.java 2008-03-12 13:06:04 UTC (rev 6746)
+++ trunk/ui/dataFilterSlider/src/main/java/org/richfaces/component/UIDataFltrSlider.java 2008-03-12 13:06:18 UTC (rev 6747)
@@ -26,6 +26,7 @@
import java.util.List;
import java.util.Map;
+import javax.faces.component.UICommand;
import javax.faces.component.UIComponent;
import javax.faces.component.UIComponentBase;
import javax.faces.component.UIData;
@@ -48,7 +49,7 @@
/**
* JSF component class
*/
-public abstract class UIDataFltrSlider extends UIComponentBase implements DataFilterSliderSource, AjaxComponent {
+public abstract class UIDataFltrSlider extends UICommand implements DataFilterSliderSource, AjaxComponent {
/**
* The component type for this component.
16 years, 10 months
JBoss Rich Faces SVN: r6746 - trunk/ui/orderingList/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2008-03-12 09:06:04 -0400 (Wed, 12 Mar 2008)
New Revision: 6746
Modified:
trunk/ui/orderingList/src/main/config/component/orderinglist.xml
Log:
updated tests
Modified: trunk/ui/orderingList/src/main/config/component/orderinglist.xml
===================================================================
--- trunk/ui/orderingList/src/main/config/component/orderinglist.xml 2008-03-12 12:34:04 UTC (rev 6745)
+++ trunk/ui/orderingList/src/main/config/component/orderinglist.xml 2008-03-12 13:06:04 UTC (rev 6746)
@@ -305,7 +305,7 @@
<classname>java.lang.Object</classname>
<description>RowKey is a representation of an identifier for a specific data row</description>
</property>
- <property>
+ <property el="false">
<name>rowKeyVar</name>
<classname>java.lang.String</classname>
<description>The attribute provides access to a row key in a Request scope</description>
@@ -317,14 +317,14 @@
A number of rows to display, or zero for all remaining rows in the list
</description>
</property>
- <property>
+ <property el="false">
<name>stateVar</name>
<classname>java.lang.String</classname>
<description>
The attribute provides access to a component state on the client side
</description>
</property>
- <property>
+ <property el="false">
<name>var</name>
<classname>java.lang.String</classname>
<description>
16 years, 10 months
JBoss Rich Faces SVN: r6745 - trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-03-12 08:34:04 -0400 (Wed, 12 Mar 2008)
New Revision: 6745
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
RF-2458
Modified: trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
===================================================================
--- trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-03-12 11:34:25 UTC (rev 6744)
+++ trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-03-12 12:34:04 UTC (rev 6745)
@@ -54,12 +54,12 @@
[
new E('td',{'className':function (context) { return 'upload_font upload_name upload_table_td ' + Richfaces.evalMacro("className", context);}},
[
- new E('div',{'className':'upload_name_padding','style':'overflow-x : hidden;'},
+ new E('div',{'className':'upload_name_padding','style':function (context) {return 'overflow-x : hidden; width:' + Richfaces.evalMacro("fileEntryWidth", context);}},
[
new ET(function (context) { return Richfaces.evalMacro("fileName", context)})
]),
new E('div',{ }),
- new E('div',{'className':'upload_name_padding'},
+ new E('div',{'className':'upload_name_padding','style':function (context) {return 'overflow-x : hidden; width:' + Richfaces.evalMacro("fileEntryWidth", context);}},
[
new ET(function (context) { return Richfaces.evalMacro("label", context)})
])
@@ -124,7 +124,7 @@
this.fileInput = fileInput;
this.uploadObject = uploadObject;
- var content = FileUploadEntry.template.invoke('getContent', {fileName: $F(this.fileInput), className : this.uploadObject.classes.FILE_ENTRY.ENABLED }).join('');
+ var content = FileUploadEntry.template.invoke('getContent', {fileName: $F(this.fileInput), fileEntryWidth: uploadObject.fileEntryWidth, className : this.uploadObject.classes.FILE_ENTRY.ENABLED }).join('');
Element.insert(this.uploadObject.items, content);
@@ -401,8 +401,24 @@
this.initEvents();
this.setupAutoUpload();
this.checkFrame();
+ this.initFileEntryWidth();
},
+ initFileEntryWidth: function () {
+ var w = this.element.clientWidth - 115;
+ this.fileEntryWidth = w;
+ var progressW = this._progressBar.style.width;
+ if (progressW == "") { progressW = 200; }
+ if (progressW > this.fileEntryWidth) {
+ this._progressBar.style.width = w;
+ var r = $(this._progressBar.id + ":remain");
+ if (r) {
+ r.style.width = w;
+ $(this._progressBar.id + ":complete").style.width = w;
+ }
+ }
+ },
+
createFrame: function () {
var div = document.createElement("div");
div.style.display = 'none';
16 years, 10 months
JBoss Rich Faces SVN: r6743 - in trunk/samples/richfaces-demo/src/main: resources/org/richfaces/demo/common and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-03-12 07:11:58 -0400 (Wed, 12 Mar 2008)
New Revision: 6743
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
Log:
Columns demo skeleton added
Modified: trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java 2008-03-12 09:52:57 UTC (rev 6742)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java 2008-03-12 11:11:58 UTC (rev 6743)
@@ -30,7 +30,7 @@
private static int DECIMALS = 1;
private static int ROUNDING_MODE = BigDecimal.ROUND_HALF_UP;
- private static List <DemoInventoryItem> allCars = null;
+ private List <DemoInventoryItem> allCars = null;
public DataTableScrollerBean() {
initColumnsHeaders();
@@ -224,16 +224,18 @@
public ArrayList<DemoInventoryItem[]> getModel() {
- ArrayList model = new ArrayList();
- model.add(createCar("Chevrolet","Corvette", 10).toArray());
- model.add(createCar("Ford","Explorer", 10).toArray());
- model.add(createCar("Nissan","Maxima", 10).toArray());
- model.add(createCar("Toyota","Camry", 10).toArray());
- model.add(createCar("GMC","Yukon", 10).toArray());
- model.add(createCar("Infiniti","G35", 10).toArray());
-
+ ArrayList<DemoInventoryItem[]> model = new ArrayList<DemoInventoryItem[]>();
+ for (int i = 0; i < 9; i++) {
+ DemoInventoryItem[] items = new DemoInventoryItem[6];
+ items[0]=createCar("Chevrolet","Corvette", 1).get(0);
+ items[1]=createCar("Ford","Explorer", 1).get(0);
+ items[2]=createCar("Nissan","Maxima", 1).get(0);
+ items[3]=createCar("Toyota","Camry", 1).get(0);
+ items[4]=createCar("GMC","Yukon", 1).get(0);
+ items[5]=createCar("Infiniti","G35", 1).get(0);
+ model.add(items);
+ }
return model;
- //TODO Columns rendered wrong for such model
}
public ArrayList<Facet> getColumns() {
Modified: trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
===================================================================
--- trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2008-03-12 09:52:57 UTC (rev 6742)
+++ trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2008-03-12 11:11:58 UTC (rev 6743)
@@ -69,12 +69,13 @@
portlet= ajaxMisc, Ajax Portlet, /images/ico_common.gif, /images/cn_AjaxPortlet.gif, RichFacesComponentsLibrary.html#portlet, jbossajax4jsf/freezone/docs/tlddoc/a4j/portlet.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIPortlet.html, /richfaces/portlet.jsf
effect= richMisc, Effect, /images/ico_common.gif, /images/cn_Effect.gif, RichFacesComponentsLibrary.html#effect, jbossrichfaces/freezone/docs/tlddoc/rich/effect.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIEffect.html, /richfaces/effect.jsf
contextMenu= richMenu, Context Menu, /images/ico_dropDownMenu.gif, /images/cn_contextMenu.gif, RichFacesComponentsLibrary.html\#contextMenu, jbossrichfaces/freezone/docs/tlddoc/rich/contextMenu.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIContextMenu.html, /richfaces/contextMenu.jsf
-componentControl=richMisc, Component Control, /images/ico_common.gif, \t\t/images/cn_componentControl.gif, RichFacesComponentsLibrary.html\#componentControl, jbossrichfaces/freezone/docs/tlddoc/rich/componentControl.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIcomponentControl.html, /richfaces/componentControl.jsf
-orderingList=richSelect, Ordering List, \t \t/images/ico_DataTable.gif, \t/images/cn_orderingList.gif, RichFacesComponentsLibrary.html\#orderingList, jbossrichfaces/freezone/docs/tlddoc/rich/orderingList.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIorderingList.html, \t\t/richfaces/orderingList.jsf
-listShuttle=richSelect, List Shuttle, \t\t \t\t/images/ico_DataTable.gif, /images/cn_listShuttle.gif, RichFacesComponentsLibrary.html\#listShuttle, jbossrichfaces/freezone/docs/tlddoc/rich/listShuttle.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIlistShuttle.html, \t\t/richfaces/listShuttle.jsf
-pickList=richSelect, Pick List, \t\t\t\t\t/images/ico_DataTable.gif, /images/cn_listShuttle.gif, RichFacesComponentsLibrary.html\#pickList, jbossrichfaces/freezone/docs/tlddoc/rich/pickList.html, \t\tjbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIpickList.html, \t\t\t\t/richfaces/pickList.jsf
-progressBar=richOutputs, Progress Bar, \t\t \t\t/images/ico_DataTable.gif, /images/cn_listShuttle.gif, RichFacesComponentsLibrary.html\#progressBar, jbossrichfaces/freezone/docs/tlddoc/rich/progressBar.html, \t\tjbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIprogressBar.html, \t/richfaces/progressBar.jsf
-comboBox=richInputs, Combo Box, \t\t/images/ico_ComboBox.gif, \t\t/images/cn_ComboBox.gif, RichFacesComponentsLibrary.html\#comboBox, jbossrichfaces/freezone/docs/tlddoc/rich/comboBox.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIcomboBox.html, \t\t\t\t\t/richfaces/comboBox.jsf
-inplaceInput=richInputs, Inplace Input, \t\t/images/ico_InplaceInput.gif, \t\t/images/cn_InplaceInput.gif, RichFacesComponentsLibrary.html\#inplaceInput, jbossrichfaces/freezone/docs/tlddoc/rich/inplaceInput.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIinplaceInput.html, \t\t\t\t\t/richfaces/inplaceInput.jsf
-inplaceSelect=richInputs, Inplace Select, \t\t/images/ico_InplaceSelect.gif, \t\t/images/cn_InplaceSelect.gif, RichFacesComponentsLibrary.html\#inplaceSelect, jbossrichfaces/freezone/docs/tlddoc/rich/inplaceSelect.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIinplaceSelect.html, \t\t\t\t\t/richfaces/inplaceSelect.jsf
-sortingFiltering=richDataIterators, Sorting and Filtering Features, \t\t/images/ico_DataTable.gif, \t\t/images/cn_DataTable.gif, RichFacesComponentsLibrary.html\#dataTable, jbossrichfaces/freezone/docs/tlddoc/rich/dataTable.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIdataTable.html, \t\t\t\t\t/richfaces/sortingFilteringFeature.jsf
\ No newline at end of file
+componentControl= richMisc, Component Control, /images/ico_common.gif, \t\t/images/cn_componentControl.gif, RichFacesComponentsLibrary.html\#componentControl, jbossrichfaces/freezone/docs/tlddoc/rich/componentControl.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIcomponentControl.html, /richfaces/componentControl.jsf
+orderingList= richSelect, Ordering List, \t \t/images/ico_DataTable.gif, \t/images/cn_orderingList.gif, RichFacesComponentsLibrary.html\#orderingList, jbossrichfaces/freezone/docs/tlddoc/rich/orderingList.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIorderingList.html, \t\t/richfaces/orderingList.jsf
+listShuttle= richSelect, List Shuttle, \t\t \t\t/images/ico_DataTable.gif, /images/cn_listShuttle.gif, RichFacesComponentsLibrary.html\#listShuttle, jbossrichfaces/freezone/docs/tlddoc/rich/listShuttle.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIlistShuttle.html, \t\t/richfaces/listShuttle.jsf
+pickList= richSelect, Pick List, \t\t\t\t\t/images/ico_DataTable.gif, /images/cn_listShuttle.gif, RichFacesComponentsLibrary.html\#pickList, jbossrichfaces/freezone/docs/tlddoc/rich/pickList.html, \t\tjbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIpickList.html, \t\t\t\t/richfaces/pickList.jsf
+progressBar= richOutputs, Progress Bar, \t\t \t\t/images/ico_DataTable.gif, /images/cn_listShuttle.gif, RichFacesComponentsLibrary.html\#progressBar, jbossrichfaces/freezone/docs/tlddoc/rich/progressBar.html, \t\tjbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIprogressBar.html, \t/richfaces/progressBar.jsf
+comboBox= richInputs, Combo Box, \t\t/images/ico_ComboBox.gif, \t\t/images/cn_ComboBox.gif, RichFacesComponentsLibrary.html\#comboBox, jbossrichfaces/freezone/docs/tlddoc/rich/comboBox.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIcomboBox.html, \t\t\t\t\t/richfaces/comboBox.jsf
+inplaceInput= richInputs, Inplace Input, \t\t/images/ico_InplaceInput.gif, \t\t/images/cn_InplaceInput.gif, RichFacesComponentsLibrary.html\#inplaceInput, jbossrichfaces/freezone/docs/tlddoc/rich/inplaceInput.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIinplaceInput.html, \t\t\t\t\t/richfaces/inplaceInput.jsf
+inplaceSelect= richInputs, Inplace Select, \t\t/images/ico_InplaceSelect.gif, \t\t/images/cn_InplaceSelect.gif, RichFacesComponentsLibrary.html\#inplaceSelect, jbossrichfaces/freezone/docs/tlddoc/rich/inplaceSelect.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIinplaceSelect.html, \t\t\t\t\t/richfaces/inplaceSelect.jsf
+sortingFiltering= richDataIterators, Sorting and Filtering Features, \t\t/images/ico_DataTable.gif, \t\t/images/cn_DataTable.gif, RichFacesComponentsLibrary.html\#dataTable, jbossrichfaces/freezone/docs/tlddoc/rich/dataTable.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIdataTable.html, \t\t\t\t\t/richfaces/sortingFilteringFeature.jsf
+columns= richDataIterators, \t\tColumns, \t\t/images/ico_columns.gif, \t\t/images/cn_Columns.gif, \t\t\tRichFacesComponentsLibrary.html\#columns, jbossrichfaces/freezone/docs/tlddoc/rich/columns.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIColumns.html, \t\t\t\t\t/richfaces/columns.jsf
\ No newline at end of file
16 years, 10 months
JBoss Rich Faces SVN: r6742 - trunk/ui/tree/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2008-03-12 05:52:57 -0400 (Wed, 12 Mar 2008)
New Revision: 6742
Modified:
trunk/ui/tree/src/main/config/component/tree.xml
Log:
added more sophisticated tests
Modified: trunk/ui/tree/src/main/config/component/tree.xml
===================================================================
--- trunk/ui/tree/src/main/config/component/tree.xml 2008-03-12 09:52:43 UTC (rev 6741)
+++ trunk/ui/tree/src/main/config/component/tree.xml 2008-03-12 09:52:57 UTC (rev 6742)
@@ -56,19 +56,19 @@
&html_style_attributes;
&html_events;
- <property>
+ <property el="false">
<name>stateVar</name>
<classname>java.lang.String</classname>
<description>
The attribute provides access to a component state on the client side
</description>
</property>
- <property>
+ <property el="false">
<name>rowKeyVar</name>
<classname>java.lang.String</classname>
<description>The attribute provides access to a row key in a Request scope</description>
</property>
- <property>
+ <property el="false">
<name>treeNodeVar</name>
<classname>java.lang.String</classname>
<description>The attribute provides access to a TreeNode instance in a Request scope</description>
@@ -124,7 +124,7 @@
<classname>java.lang.Object</classname>
<description>The current value for this component</description>
</property>
- <property>
+ <property el="false">
<name>var</name>
<classname>java.lang.String</classname>
<description>Attribute contains a name providing an access to data defined with value</description>
16 years, 10 months
JBoss Rich Faces SVN: r6741 - trunk/ui/separator/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2008-03-12 05:52:43 -0400 (Wed, 12 Mar 2008)
New Revision: 6741
Modified:
trunk/ui/separator/src/main/config/component/separator.xml
Log:
added more sophisticated tests
Modified: trunk/ui/separator/src/main/config/component/separator.xml
===================================================================
--- trunk/ui/separator/src/main/config/component/separator.xml 2008-03-12 09:52:30 UTC (rev 6740)
+++ trunk/ui/separator/src/main/config/component/separator.xml 2008-03-12 09:52:43 UTC (rev 6741)
@@ -27,7 +27,7 @@
</superclass>
<test>
<classname>org.richfaces.taglib.HtmlSeparatorTagTest</classname>
- <superclassname>org.ajax4jsf.tests.AbstractAjax4JsfTestCase</superclassname>
+ <superclassname>org.ajax4jsf.tests.AbstractJspTestCase</superclassname>
</test>
</tag>
16 years, 10 months
JBoss Rich Faces SVN: r6740 - in trunk/ui/panel/src: test/java/org/richfaces/taglib and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2008-03-12 05:52:30 -0400 (Wed, 12 Mar 2008)
New Revision: 6740
Modified:
trunk/ui/panel/src/main/config/component/panel.xml
trunk/ui/panel/src/test/java/org/richfaces/taglib/PanelTagTest.java
Log:
added more sophisticated tests
Modified: trunk/ui/panel/src/main/config/component/panel.xml
===================================================================
--- trunk/ui/panel/src/main/config/component/panel.xml 2008-03-12 09:52:09 UTC (rev 6739)
+++ trunk/ui/panel/src/main/config/component/panel.xml 2008-03-12 09:52:30 UTC (rev 6740)
@@ -27,7 +27,7 @@
</superclass>
<test>
<classname>org.richfaces.taglib.HtmlPanelTagTest</classname>
- <superclassname>org.ajax4jsf.tests.AbstractAjax4JsfTestCase</superclassname>
+ <superclassname>org.ajax4jsf.tests.AbstractJspTestCase</superclassname>
</test>
</tag>
Modified: trunk/ui/panel/src/test/java/org/richfaces/taglib/PanelTagTest.java
===================================================================
--- trunk/ui/panel/src/test/java/org/richfaces/taglib/PanelTagTest.java 2008-03-12 09:52:09 UTC (rev 6739)
+++ trunk/ui/panel/src/test/java/org/richfaces/taglib/PanelTagTest.java 2008-03-12 09:52:30 UTC (rev 6740)
@@ -7,7 +7,7 @@
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.Tag;
-import org.ajax4jsf.tests.AbstractAjax4JsfTestCase;
+import org.ajax4jsf.tests.AbstractJspTestCase;
import org.apache.shale.test.el.MockValueExpression;
import org.richfaces.component.html.HtmlPanel;
@@ -15,7 +15,7 @@
* @author asmirnov
*
*/
-public class PanelTagTest extends AbstractAjax4JsfTestCase {
+public class PanelTagTest extends AbstractJspTestCase {
PanelTag panelTag;
@@ -33,6 +33,7 @@
public void setUp() throws Exception {
super.setUp();
panelTag = new PanelTag();
+ panelTag.setPageContext(pageContext);
panelTag.setParent(new UIComponentTag(){
public String getComponentType() {
16 years, 10 months
JBoss Rich Faces SVN: r6739 - trunk/ui/scrollableDataTable/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2008-03-12 05:52:09 -0400 (Wed, 12 Mar 2008)
New Revision: 6739
Modified:
trunk/ui/scrollableDataTable/src/main/config/component/scrollable-data-table.xml
Log:
added more sophisticated tests
Modified: trunk/ui/scrollableDataTable/src/main/config/component/scrollable-data-table.xml
===================================================================
--- trunk/ui/scrollableDataTable/src/main/config/component/scrollable-data-table.xml 2008-03-12 09:51:57 UTC (rev 6738)
+++ trunk/ui/scrollableDataTable/src/main/config/component/scrollable-data-table.xml 2008-03-12 09:52:09 UTC (rev 6739)
@@ -37,7 +37,7 @@
</superclass>
<test>
<classname>org.richfaces.taglib.ScrollableDataTableTagTest</classname>
- <superclassname>org.ajax4jsf.tests.AbstractAjax4JsfTestCase</superclassname>
+ <superclassname>org.ajax4jsf.tests.AbstractJspTestCase</superclassname>
</test>
</tag>
16 years, 10 months