[seam-commits] Seam SVN: r9824 - trunk/src/pdf/org/jboss/seam/pdf/ui.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Mon Dec 22 17:12:06 EST 2008
Author: norman.richards at jboss.com
Date: 2008-12-22 17:12:06 -0500 (Mon, 22 Dec 2008)
New Revision: 9824
Modified:
trunk/src/pdf/org/jboss/seam/pdf/ui/UIDocument.java
Log:
JBSEAM-3788
Modified: trunk/src/pdf/org/jboss/seam/pdf/ui/UIDocument.java
===================================================================
--- trunk/src/pdf/org/jboss/seam/pdf/ui/UIDocument.java 2008-12-22 22:05:25 UTC (rev 9823)
+++ trunk/src/pdf/org/jboss/seam/pdf/ui/UIDocument.java 2008-12-22 22:12:06 UTC (rev 9824)
@@ -275,24 +275,17 @@
protected void processHeaders()
{
- Object facet = getFacet("header");
+ UIComponent facet = getFacet("header");
- if (facet == null)
- {
- return;
- }
+ if (facet == null) {
+ return;
+ }
- if (facet instanceof UIComponent)
- {
- try
- {
- encode(FacesContext.getCurrentInstance(), (UIComponent) facet);
- }
- catch (Exception e)
- {
- throw new RuntimeException(e);
- }
- }
+ try {
+ encode(FacesContext.getCurrentInstance(), facet);
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
}
protected String baseNameForViewId(String viewId)
More information about the seam-commits
mailing list