Home > Contents > Index >  
Expanded TOC   |    Accordion TOC   |    Annotated TOC   |    Index

 

FilterAssetsByDate

Sites provides a feature called 'Site Preview' that lets Content contributors and developers preview their website as it will appear at a future date. In order to be able to preview assets that are meant to be rendered at different points in time, users need to create assets with appropriate start date and end date attributes. Once the set of assets that are required to render the website at different dates are created, the next step is to create templates that use the API provided by Sites to filter the set of assets and render only those assets whose start/end dates match the given input date.

Sites provides a jsp tag called assetset:filterassetsbydate and a public static Java method FilterAssetsByDate.filter to perform the filter operation on assets to implement the Site Preview feature. Both the jsp tag and the Java method can be used from within JSP pages that represent the element logic for the rendering templates.

   Home > Contents > Index >

Oracle JAVA Reference
Copyright (c) 2013, 2016 Oracle and/or its affiliates. All rights reserved.