You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by hu...@apache.org on 2005/06/23 18:12:46 UTC
svn commit: r193179 - in /struts/sandbox/trunk/overdrive/PhoneBook:
Test/Commands/FilterLists.cs Web/Forms/Directory.aspx.cs
Web/Resources/Command/Catalog.xml
Author: husted
Date: Thu Jun 23 09:12:44 2005
New Revision: 193179
URL: http://svn.apache.org/viewcvs?rev=193179&view=rev
Log:
OVR-5
* Put selected filter value into the Criteria rather than the Context. Add Field Names to the related value list for Filter.
* This step enables the Hours filter to work, since the string value is now automatically converted back to a DateTime.
Modified:
struts/sandbox/trunk/overdrive/PhoneBook/Test/Commands/FilterLists.cs
struts/sandbox/trunk/overdrive/PhoneBook/Web/Forms/Directory.aspx.cs
struts/sandbox/trunk/overdrive/PhoneBook/Web/Resources/Command/Catalog.xml
Modified: struts/sandbox/trunk/overdrive/PhoneBook/Test/Commands/FilterLists.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Test/Commands/FilterLists.cs?rev=193179&r1=193178&r2=193179&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Test/Commands/FilterLists.cs (original)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Test/Commands/FilterLists.cs Thu Jun 23 09:12:44 2005
@@ -73,7 +73,7 @@
{
IViewHelper helper = catalog.GetHelper ("directory_view_helper");
helper.Execute ();
- IKeyValueList list = helper.Context.Criteria [key] as IKeyValueList;
+ IKeyValueList list = helper.Criteria [key] as IKeyValueList;
Assert.IsNotNull (list, "Expected KeyValueList");
return list;
}
Modified: struts/sandbox/trunk/overdrive/PhoneBook/Web/Forms/Directory.aspx.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Web/Forms/Directory.aspx.cs?rev=193179&r1=193178&r2=193179&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Web/Forms/Directory.aspx.cs (original)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Web/Forms/Directory.aspx.cs Thu Jun 23 09:12:44 2005
@@ -114,7 +114,7 @@
string id = list.ID;
int v = id.LastIndexOf (FindHelper.ListSuffix);
string key = id.Substring (0, v);
- FindHelper.Context [key] = list.SelectedValue;
+ FindHelper.Criteria [key] = list.SelectedValue;
Filter_Reset (list);
List_Load (FindHelper);
}
Modified: struts/sandbox/trunk/overdrive/PhoneBook/Web/Resources/Command/Catalog.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/PhoneBook/Web/Resources/Command/Catalog.xml?rev=193179&r1=193178&r2=193179&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/PhoneBook/Web/Resources/Command/Catalog.xml (original)
+++ struts/sandbox/trunk/overdrive/PhoneBook/Web/Resources/Command/Catalog.xml Thu Jun 23 09:12:44 2005
@@ -9,6 +9,12 @@
<property name="RelatedIDs">
<list>
<value>filter</value>
+ <value>last_name</value>
+ <value>first_name</value>
+ <value>extension</value>
+ <value>user_name</value>
+ <value>hired</value>
+ <value>hours</value>
</list>
</property>
<property name="ID"><value>filter</value></property>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org