| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Copyright 2004 The Apache Software Foundation |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <!-- $Id$ --> |
| <!DOCTYPE page-specification PUBLIC |
| "-//Apache Software Foundation//Tapestry Specification 3.0//EN" |
| "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd"> |
| |
| <page-specification class="org.apache.tapestry.vlib.pages.BookMatches"> |
| |
| <property name="page-type" value="Search"/> |
| |
| <property-specification name="bookQuery" type="org.apache.tapestry.vlib.ejb.IBookQuery" persistent="yes"/> |
| <property-specification name="currentMatch" type="org.apache.tapestry.vlib.ejb.Book"/> |
| |
| <property-specification name="queryParameters" |
| type="org.apache.tapestry.vlib.ejb.MasterQueryParameters" |
| persistent="yes"/> |
| |
| <property-specification name="sortColumn" type="org.apache.tapestry.vlib.ejb.SortColumn" persistent="yes"> |
| @org.apache.tapestry.vlib.ejb.SortColumn@TITLE |
| </property-specification> |
| <property-specification name="descending" type="boolean" persistent="yes"/> |
| |
| <component id="sortTitle" type="ColumnSorter"> |
| <binding name="selected" expression="sortColumn"/> |
| <binding name="sortColumn"> |
| @org.apache.tapestry.vlib.ejb.SortColumn@TITLE |
| </binding> |
| <binding name="descending" expression="descending"/> |
| <binding name="listener" expression="listeners.requery"/> |
| </component> |
| |
| <component id="sortAuthor" copy-of="sortTitle"> |
| <binding name="sortColumn"> |
| @org.apache.tapestry.vlib.ejb.SortColumn@AUTHOR |
| </binding> |
| </component> |
| |
| <component id="sortPublisher" copy-of="sortTitle"> |
| <binding name="sortColumn"> |
| @org.apache.tapestry.vlib.ejb.SortColumn@PUBLISHER |
| </binding> |
| </component> |
| |
| <component id="sortOwner" copy-of="sortTitle"> |
| <binding name="sortColumn"> |
| @org.apache.tapestry.vlib.ejb.SortColumn@OWNER |
| </binding> |
| </component> |
| |
| <component id="sortBorrower" copy-of="sortTitle"> |
| <binding name="sortColumn"> |
| @org.apache.tapestry.vlib.ejb.SortColumn@HOLDER |
| </binding> |
| </component> |
| |
| <component id="ownerLink" type="PersonLink"> |
| <binding name="id" expression="currentMatch.ownerId"/> |
| <binding name="name" expression="currentMatch.ownerName"/> |
| </component> |
| |
| <component id="holderLink" type="PersonLink"> |
| <binding name="id" expression="currentMatch.holderId"/> |
| <binding name="name" expression="currentMatch.holderName"/> |
| <binding name="omit" expression="! currentMatch.borrowed"/> |
| </component> |
| |
| </page-specification> |