| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Copyright 2004, 2005 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. |
| --> |
| |
| <!DOCTYPE page-specification PUBLIC |
| "-//Apache Software Foundation//Tapestry Specification 4.0//EN" |
| "http://tapestry.apache.org/dtd/Tapestry_4_0.dtd"> |
| |
| <page-specification> |
| |
| <property name="currentBook"/> |
| |
| <component id="sortTitle" type="ColumnSorter"> |
| <binding name="selected" value="sortColumn"/> |
| <binding name="sortColumn" value="@org.apache.tapestry.vlib.ejb.SortColumn@TITLE"/> |
| <binding name="descending" value="descending"/> |
| <binding name="listener" value="listener:requery"/> |
| </component> |
| |
| <component id="sortAuthor" copy-of="sortTitle"> |
| <binding name="sortColumn" value="@org.apache.tapestry.vlib.ejb.SortColumn@AUTHOR"/> |
| </component> |
| |
| <component id="sortPublisher" copy-of="sortTitle"> |
| <binding name="sortColumn" value="@org.apache.tapestry.vlib.ejb.SortColumn@PUBLISHER"/> |
| </component> |
| |
| <component id="sortBorrower" copy-of="sortTitle"> |
| <binding name="sortColumn" value="@org.apache.tapestry.vlib.ejb.SortColumn@HOLDER"/> |
| </component> |
| |
| <component id="holderLink" type="PersonLink"> |
| <binding name="id" value="currentBook.holderId"/> |
| <binding name="name" value="currentBook.holderName"/> |
| <binding name="omit" value="! currentBook.borrowed"/> |
| </component> |
| |
| <component id="edit" type="DirectLink"> |
| <binding name="listener" value="listener:editBook"/> |
| <binding name="parameters" value="currentBook.id"/> |
| </component> |
| |
| <component id="editRollover" type="Rollover"> |
| <binding name="image" value="asset:edit"/> |
| <binding name="mouseOver" value="asset:edit_h"/> |
| </component> |
| |
| <component id="delete" type="DirectLink"> |
| <binding name="listener" value="listeners.deleteBook"/> |
| <binding name="parameters" value="currentBook.id"/> |
| </component> |
| |
| <component id="deleteRollover" type="Rollover"> |
| <binding name="image" value="asset:delete"/> |
| <binding name="mouseOver" value="asset:delete_h"/> |
| </component> |
| |
| <asset name="edit" path="images/edit.png"/> |
| <asset name="edit_h" path="images/edit_h.png"/> |
| <asset name="delete" path="images/delete.png"/> |
| <asset name="delete_h" path="images/delete_h.png"/> |
| |
| </page-specification> |