Author: ekoneil
Date: Sun Aug 1 14:37:01 2004
New Revision: 35549
Modified:
incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/script/common/IDataAccessProvider.java
incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/databinding/datagrid/model/DataGridModel.java
Log:
Remove "setDataSource" from the IDataAccessProvider API.
IDataAccessProvider is the low-level interface that is used to expose
"container" data bindable objects into the PageContext. There's no reason for
this interface to mandate a way to set the data source -- implementers just
need to be able to get the dataSource property.
Several tags (repeater, checkBoxGroup, radioButtonGroup, dataGrid, etc)
implement IDAP, but they don't need to change because those tags still must
exposet setDataSource in order for the attribute to be settable from a JSP page.
BB: self
DRT: NetUI pass (win)
CR: Daryl
Modified:
incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/script/common/IDataAccessProvider.java
==============================================================================
---
incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/script/common/IDataAccessProvider.java
(original)
+++
incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/script/common/IDataAccessProvider.java
Sun Aug 1 14:37:01 2004
@@ -69,8 +69,6 @@
*/
public Object getCurrentItem();
- public void setDataSource(String dataSource);
-
/**
* Get the expression that references the data item to which the
* IDataAccessProvider is bound.
Modified:
incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/databinding/datagrid/model/DataGridModel.java
==============================================================================
---
incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/databinding/datagrid/model/DataGridModel.java
(original)
+++
incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/databinding/datagrid/model/DataGridModel.java
Sun Aug 1 14:37:01 2004
@@ -339,11 +339,6 @@
throw new UnsupportedOperationException("Metadata is not available on
the current data item.");
}
- public void setDataSource(String dataSourceRef)
- {
- throw new UnsupportedOperationException("Need to remove this method
from IDataAccessProvider!");
- }
-
public String getDataSource()
{
return _dataSet.getDataSourceRef();