FeedReader retrieves an RSS, Atom or iTunes podcast feed from a URL and renders its content once for each feed item, which is exposed as var. This page displays the title and description of the items of a news feed. The error facet is shown when the feed cannot be read.
<div class="card">
<p:feedReader value="https://www.nasa.gov/rss/dyn/breaking_news.rss" var="feed">
<div class="p-3">
<h:outputText value="#{feed.title}" styleClass="font-bold block" />
<h:outputText value="#{feed.description}" escape="false"/>
<p:divider/>
</div>
<f:facet name="error">
<h:outputText value="Error reading RSS Feed!!!" style="color:red;"/>
</f:facet>
</p:feedReader>
</div>