Matthew Wilson - 2005-04-05

Logged In: YES
user_id=531802

>>How can I have dynamic Queries with ValueList?
>>Or rather, how can I have the query defined in
>>spring config file to have variables that can
>> be filled in with user selected values?
The examples.war is filled with dynamic queries. Search
for /~ in the applicationContext.xml file. Note the
format: /~key: AND column = {key} ~/, the key is the key in
the filters map, and the 'AND column = {key}' is the string
that is appended if the key exists in the map. The {key} is
replaced with a ? and jdbc binds a value to it.

>>Also I might have my own DAO or business
>>Layers that return a List of data. How can I
>>use ValueList in that situation ??
If you have an existing dao layer then you will have to write
your own ValueListAdapter to integrate the existing data
layer into the vlh.

>>Thanks in advance,