From 095e118cd4469f1b77e920a0238798d23089ae8d Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 7 Apr 2006 15:26:38 +0000 Subject: Merge from 3.0 branch 871. --- HISTORY | 2 ++ UPGRADE | 3 +++ demos/quickstart/protected/pages/Controls/List.page | 10 ++-------- framework/Web/UI/WebControls/TListControl.php | 3 +-- .../quickstart/Controls/CheckBoxListTestCase.php | 4 ++-- .../quickstart/Controls/DropDownListTestCase.php | 2 +- tests/FunctionalTests/quickstart/Controls/ListBoxTestCase.php | 2 +- .../quickstart/Controls/RadioButtonListTestCase.php | 4 ++-- 8 files changed, 14 insertions(+), 16 deletions(-) diff --git a/HISTORY b/HISTORY index b418a495..e650cb4f 100644 --- a/HISTORY +++ b/HISTORY @@ -6,6 +6,8 @@ Version 3.0RC2 April 16, 2006 ============================= BUG: Ticket#118 - Variables that may not have been initialized (Qiang) CHG: Moved localize() into PradoBase (Qiang) +CHG: List controls now use array keys as list item values even if + the array is integer-indexed (Qiang) ENH: Optimized the representation and evaluation of template expressions (Qiang) Version 3.0RC1 April 5, 2006 diff --git a/UPGRADE b/UPGRADE index 391c55ff..b7bbd35b 100644 --- a/UPGRADE +++ b/UPGRADE @@ -19,6 +19,9 @@ Upgrading from v3.0.0 RC1 - !!! The context of template expression/statements/databinding tags is changed to the control owning the template. Previously, it was the control representing the tag. +- !!! List controls databound with integer-indexed arrays will have + the integers as their list item values. Previously, it used the array + values as the list item values. Upgrading from v3.0.0 beta -------------------------- diff --git a/demos/quickstart/protected/pages/Controls/List.page b/demos/quickstart/protected/pages/Controls/List.page index e3a6f368..cac07330 100644 --- a/demos/quickstart/protected/pages/Controls/List.page +++ b/demos/quickstart/protected/pages/Controls/List.page @@ -23,16 +23,10 @@ List controls covered in this section all inherit directly or indirectly from

-Since TListControl inherits from TDataBoundControl, these list controls also share a common operation known as databinding. The Items can be populated from preexisting data specified by DataSource or DataSourceID. A function call to dataBind() will cause the data population. For list controls, data can be specified in three kinds of format: +Since TListControl inherits from TDataBoundControl, these list controls also share a common operation known as databinding. The Items can be populated from preexisting data specified by DataSource or DataSourceID. A function call to dataBind() will cause the data population. For list controls, data can be specified in the following two kinds of format: