myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject svn commit: r1454303 - /myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/
Date Fri, 08 Mar 2013 09:39:53 GMT
Author: weber
Date: Fri Mar  8 09:39:52 2013
New Revision: 1454303

URL: http://svn.apache.org/r1454303
Log:
TOBAGO-1238 - NPE on UIComponent getter when rendererType == null

Modified:
    myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/AbstractCommandTagDeclaration.java
    myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/HasMargins.java
    myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/HasSpacing.java
    myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/IsGridLayoutComponent.java
    myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/IsGridLayoutComponentBase.java
    myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/IsGridLayoutComponentWithDimension.java
    myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/IsGridLayoutContainer.java

Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/AbstractCommandTagDeclaration.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/AbstractCommandTagDeclaration.java?rev=1454303&r1=1454302&r2=1454303&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/AbstractCommandTagDeclaration.java
(original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/AbstractCommandTagDeclaration.java
Fri Mar  8 09:39:52 2013
@@ -20,5 +20,5 @@
 package org.apache.myfaces.tobago.internal.taglib.declaration;
 
 public interface AbstractCommandTagDeclaration extends HasAction, HasActionListener, IsImmediateCommand,
-    HasOnclick, HasLink, HasResource, IsTransition, HasTarget, HasRenderedPartially {
+    HasOnclick, HasLink, HasResource, IsTransition, HasTarget, HasRenderedPartially, IsDisabled
{
 }

Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/HasMargins.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/HasMargins.java?rev=1454303&r1=1454302&r2=1454303&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/HasMargins.java
(original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/HasMargins.java
Fri Mar  8 09:39:52 2013
@@ -31,8 +31,8 @@ public interface HasMargins {
   @UIComponentTagAttribute(
       type = "org.apache.myfaces.tobago.layout.Measure",
       defaultCode = "getMargin() != null\n"
-          + " ? getMargin()\n"
-          + " : ((MarginValues)getRenderer(getFacesContext())).getMarginLeft(getFacesContext(),
this)")
+          + " ? getMargin()\n : getRendererType() != null"
+          + " ? ((MarginValues)getRenderer(getFacesContext())).getMarginLeft(getFacesContext(),
this) : Measure.ZERO")
   void setMarginLeft(String margin);
 
   /**
@@ -42,8 +42,8 @@ public interface HasMargins {
   @UIComponentTagAttribute(
       type = "org.apache.myfaces.tobago.layout.Measure",
       defaultCode = "getMargin() != null\n"
-          + " ? getMargin()\n"
-          + " : ((MarginValues)getRenderer(getFacesContext())).getMarginRight(getFacesContext(),
this)")
+          + " ? getMargin()\n : getRendererType() != null"
+          + " ? ((MarginValues)getRenderer(getFacesContext())).getMarginRight(getFacesContext(),
this) : Measure.ZERO")
   void setMarginRight(String margin);
 
   /**
@@ -53,8 +53,8 @@ public interface HasMargins {
   @UIComponentTagAttribute(
       type = "org.apache.myfaces.tobago.layout.Measure",
       defaultCode = "getMargin() != null\n"
-          + " ? getMargin()\n"
-          + " : ((MarginValues)getRenderer(getFacesContext())).getMarginTop(getFacesContext(),
this)")
+          + " ? getMargin()\n : getRendererType() != null"
+          + " ? ((MarginValues)getRenderer(getFacesContext())).getMarginTop(getFacesContext(),
this) : Measure.ZERO")
   void setMarginTop(String margin);
 
   /**
@@ -64,8 +64,8 @@ public interface HasMargins {
   @UIComponentTagAttribute(
       type = "org.apache.myfaces.tobago.layout.Measure",
       defaultCode = "getMargin() != null\n"
-          + " ? getMargin()\n"
-          + " : ((MarginValues)getRenderer(getFacesContext())).getMarginBottom(getFacesContext(),
this)")
+          + " ? getMargin()\n : getRendererType() != null"
+          + " ? ((MarginValues)getRenderer(getFacesContext())).getMarginBottom(getFacesContext(),
this) : Measure.ZERO")
   void setMarginBottom(String margin);
 
 }

Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/HasSpacing.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/HasSpacing.java?rev=1454303&r1=1454302&r2=1454303&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/HasSpacing.java
(original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/HasSpacing.java
Fri Mar  8 09:39:52 2013
@@ -43,8 +43,9 @@ public interface HasSpacing {
   @UIComponentTagAttribute(
       type = "org.apache.myfaces.tobago.layout.Measure",
       defaultCode = "getCellspacing() != null\n" 
-          + " ? getCellspacing()\n"
-          + " : ((SpacingValues)getRenderer(getFacesContext())).getColumnSpacing(getFacesContext(),
this)")
+          + " ? getCellspacing()\n : getRendererType() != null"
+          + " ? ((SpacingValues)getRenderer(getFacesContext())).getColumnSpacing(getFacesContext(),
this)"
+          + " : Measure.ZERO")
   void setColumnSpacing(String columnSpacing);
 
   /**
@@ -54,7 +55,7 @@ public interface HasSpacing {
   @UIComponentTagAttribute(
       type = "org.apache.myfaces.tobago.layout.Measure",
       defaultCode = "getCellspacing() != null\n" 
-          + " ? getCellspacing()\n" 
-          + " : ((SpacingValues)getRenderer(getFacesContext())).getRowSpacing(getFacesContext(),
this)")
+          + " ? getCellspacing()\n : getRendererType() != null"
+          + " ? ((SpacingValues)getRenderer(getFacesContext())).getRowSpacing(getFacesContext(),
this) : Measure.ZERO")
   void setRowSpacing(String rowSpacing);
 }

Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/IsGridLayoutComponent.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/IsGridLayoutComponent.java?rev=1454303&r1=1454302&r2=1454303&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/IsGridLayoutComponent.java
(original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/IsGridLayoutComponent.java
Fri Mar  8 09:39:52 2013
@@ -29,7 +29,8 @@ public interface IsGridLayoutComponent e
    * @param width The width for this component.
    */
   @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
-      defaultCode = "((LayoutComponentRenderer) getRenderer(getFacesContext())).getWidth(getFacesContext(),
this)")
+      defaultCode = "getRendererType() != null ? ((LayoutComponentRenderer) "
+          + "getRenderer(getFacesContext())).getWidth(getFacesContext(), this) : Measure.ZERO")
   void setWidth(String width);
 
   /**
@@ -38,7 +39,8 @@ public interface IsGridLayoutComponent e
    * @param height The height for this component.
    */
   @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
-      defaultCode = "((LayoutComponentRenderer) getRenderer(getFacesContext())).getHeight(getFacesContext(),
this)")
+      defaultCode = "getRendererType() != null ? ((LayoutComponentRenderer) "
+          + "getRenderer(getFacesContext())).getHeight(getFacesContext(), this) : Measure.ZERO")
   void setHeight(String height);
 
 }

Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/IsGridLayoutComponentBase.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/IsGridLayoutComponentBase.java?rev=1454303&r1=1454302&r2=1454303&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/IsGridLayoutComponentBase.java
(original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/IsGridLayoutComponentBase.java
Fri Mar  8 09:39:52 2013
@@ -61,80 +61,80 @@ public interface IsGridLayoutComponentBa
    * @param minimumWidth The minimum width for this component.
    */
   @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
-      defaultCode = "((LayoutComponentRenderer)"
-          + "getRenderer(getFacesContext())).getMinimumWidth(getFacesContext(), this)")
+      defaultCode = "getRendererType() != null ? ((LayoutComponentRenderer) "
+          + "getRenderer(getFacesContext())).getMinimumWidth(getFacesContext(), this) : Measure.ZERO")
   void setMinimumWidth(String minimumWidth);
 
   /**
    * @param minimumHeight The minimum height for this component.
    */
   @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
-      defaultCode = "((LayoutComponentRenderer) "
-          + "getRenderer(getFacesContext())).getMinimumHeight(getFacesContext(), this)")
+      defaultCode = "getRendererType() != null ? ((LayoutComponentRenderer) "
+          + "getRenderer(getFacesContext())).getMinimumHeight(getFacesContext(), this) :
Measure.ZERO")
   void setMinimumHeight(String minimumHeight);
 
   /**
    * @param preferredWidth The preferred width for this component.
    */
   @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
-      defaultCode = "((LayoutComponentRenderer) "
-          + "getRenderer(getFacesContext())).getPreferredWidth(getFacesContext(), this)")
+      defaultCode = "getRendererType() != null ? ((LayoutComponentRenderer) "
+          + "getRenderer(getFacesContext())).getPreferredWidth(getFacesContext(), this) :
Measure.ZERO")
   void setPreferredWidth(String preferredWidth);
 
   /**
    * @param preferredHeight The preferred height for this component.
    */
   @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
-      defaultCode = "((LayoutComponentRenderer) "
-          + "getRenderer(getFacesContext())).getPreferredHeight(getFacesContext(), this)")
+      defaultCode = "getRendererType() != null ? ((LayoutComponentRenderer) "
+          + "getRenderer(getFacesContext())).getPreferredHeight(getFacesContext(), this)
: Measure.ZERO")
   void setPreferredHeight(String preferredHeight);
 
   /**
    * @param maximumWidth The maximum width for this component.
    */
   @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
-      defaultCode = "((LayoutComponentRenderer) "
-          + "getRenderer(getFacesContext())).getMaximumWidth(getFacesContext(), this)")
+      defaultCode = "getRendererType() != null ? ((LayoutComponentRenderer) "
+          + "getRenderer(getFacesContext())).getMaximumWidth(getFacesContext(), this) : Measure.ZERO")
   void setMaximumWidth(String maximumWidth);
 
   /**
    * @param maximumHeight The maximum height for this component.
    */
   @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
-      defaultCode = "((LayoutComponentRenderer) "
-          + "getRenderer(getFacesContext())).getMaximumHeight(getFacesContext(), this)")
+      defaultCode = "getRendererType() != null ? ((LayoutComponentRenderer) "
+          + "getRenderer(getFacesContext())).getMaximumHeight(getFacesContext(), this) :
Measure.ZERO")
   void setMaximumHeight(String maximumHeight);
 
   /**
    * @param marginLeft The margin at the left of this component.
    */
   @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
-      defaultCode = "((LayoutComponentRenderer) "
-          + "getRenderer(getFacesContext())).getMarginLeft(getFacesContext(), this)")
+      defaultCode = "getRendererType() != null ? ((LayoutComponentRenderer) "
+          + "getRenderer(getFacesContext())).getMarginLeft(getFacesContext(), this) : Measure.ZERO")
   void setMarginLeft(String marginLeft);
 
   /**
    * @param marginRight The margin at the right of this component.
    */
   @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
-      defaultCode = "((LayoutComponentRenderer) "
-          + "getRenderer(getFacesContext())).getMarginRight(getFacesContext(), this)")
+      defaultCode = "getRendererType() != null ? ((LayoutComponentRenderer) "
+          + "getRenderer(getFacesContext())).getMarginRight(getFacesContext(), this) : Measure.ZERO")
   void setMarginRight(String marginRight);
 
   /**
    * @param marginTop The margin at the top of this component.
    */
   @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
-      defaultCode = "((LayoutComponentRenderer) "
-          + "getRenderer(getFacesContext())).getMarginTop(getFacesContext(), this)")
+      defaultCode = "getRendererType() != null ? ((LayoutComponentRenderer) "
+          + "getRenderer(getFacesContext())).getMarginTop(getFacesContext(), this) : Measure.ZERO")
   void setMarginTop(String marginTop);
 
   /**
    * @param marginBottom The margin at the bottom of this component.
    */
   @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
-      defaultCode = "((LayoutComponentRenderer) "
-          + "getRenderer(getFacesContext())).getMarginBottom(getFacesContext(), this)")
+      defaultCode = "getRendererType() != null ? ((LayoutComponentRenderer) "
+          + "getRenderer(getFacesContext())).getMarginBottom(getFacesContext(), this) : Measure.ZERO")
   void setMarginBottom(String marginBottom);
 
   /**

Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/IsGridLayoutComponentWithDimension.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/IsGridLayoutComponentWithDimension.java?rev=1454303&r1=1454302&r2=1454303&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/IsGridLayoutComponentWithDimension.java
(original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/IsGridLayoutComponentWithDimension.java
Fri Mar  8 09:39:52 2013
@@ -36,7 +36,8 @@ public interface IsGridLayoutComponentWi
    */
   @TagAttribute
   @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
-      defaultCode = "((LayoutComponentRenderer)getRenderer(getFacesContext())).getWidth(getFacesContext(),
this)")
+      defaultCode = "getRendererType() != null ? ((LayoutComponentRenderer)"
+          + " getRenderer(getFacesContext())).getWidth(getFacesContext(), this) : Measure.ZERO")
   void setWidth(String width);
 
   /**
@@ -47,7 +48,8 @@ public interface IsGridLayoutComponentWi
    */
   @TagAttribute
   @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
-      defaultCode = "((LayoutComponentRenderer)getRenderer(getFacesContext())).getHeight(getFacesContext(),
this)")
+      defaultCode = "getRendererType() != null ? ((LayoutComponentRenderer)"
+          + " getRenderer(getFacesContext())).getHeight(getFacesContext(), this) : Measure.ZERO")
   void setHeight(String height);
 
 }

Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/IsGridLayoutContainer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/IsGridLayoutContainer.java?rev=1454303&r1=1454302&r2=1454303&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/IsGridLayoutContainer.java
(original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/IsGridLayoutContainer.java
Fri Mar  8 09:39:52 2013
@@ -30,8 +30,8 @@ public interface IsGridLayoutContainer {
    */
   @UIComponentTagAttribute(
       type = "org.apache.myfaces.tobago.layout.Measure",
-      defaultCode = "((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)\n"
-          + "getRenderer(getFacesContext())).getBorderLeft(getFacesContext(), this)")
+      defaultCode = "getRendererType() != null ? ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)\n"
+          + " getRenderer(getFacesContext())).getBorderLeft(getFacesContext(), this) : Measure.ZERO")
   void setBorderLeft(String borderLeft);
 
   /**
@@ -40,8 +40,8 @@ public interface IsGridLayoutContainer {
    * @param borderRight The right border which is needed by some containers (e. g. a box).
    */
   @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
-      defaultCode = "((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)\n"
-          + "getRenderer(getFacesContext())).getBorderRight(getFacesContext(), this)")
+      defaultCode = "getRendererType() != null ? ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)\n"
+          + "getRenderer(getFacesContext())).getBorderRight(getFacesContext(), this) : Measure.ZERO")
   void setBorderRight(String borderRight);
 
   /**
@@ -50,8 +50,8 @@ public interface IsGridLayoutContainer {
    * @param borderTop The top border which is needed by some containers (e. g. a box).
    */
   @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
-      defaultCode = "((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)\n"
-          + "getRenderer(getFacesContext())).getBorderTop(getFacesContext(), this)")
+      defaultCode = "getRendererType() != null ? ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)\n"
+          + "getRenderer(getFacesContext())).getBorderTop(getFacesContext(), this) : Measure.ZERO")
   void setBorderTop(String borderTop);
 
   /**
@@ -60,8 +60,8 @@ public interface IsGridLayoutContainer {
    * @param borderBottom The bottom border which is needed by some containers (e. g. a box).
    */
   @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
-      defaultCode = "((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)\n"
-          + "getRenderer(getFacesContext())).getBorderBottom(getFacesContext(), this)")
+      defaultCode = "getRendererType() != null ? ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)\n"
+          + "getRenderer(getFacesContext())).getBorderBottom(getFacesContext(), this) : Measure.ZERO")
   void setBorderBottom(String borderBottom);
 
   /**
@@ -71,8 +71,8 @@ public interface IsGridLayoutContainer {
    */
   @UIComponentTagAttribute(
       type = "org.apache.myfaces.tobago.layout.Measure",
-      defaultCode = "((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)\n"
-          + "getRenderer(getFacesContext())).getPaddingLeft(getFacesContext(), this)")
+      defaultCode = "getRendererType() != null ? ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)\n"
+          + "getRenderer(getFacesContext())).getPaddingLeft(getFacesContext(), this) : Measure.ZERO")
   void setPaddingLeft(String paddingLeft);
 
   /**
@@ -81,8 +81,8 @@ public interface IsGridLayoutContainer {
    * @param paddingRight The right padding which is needed by some containers (e. g. a box).
    */
   @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
-      defaultCode = "((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)\n"
-          + "getRenderer(getFacesContext())).getPaddingRight(getFacesContext(), this)")
+      defaultCode = "getRendererType() != null ? ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)\n"
+          + "getRenderer(getFacesContext())).getPaddingRight(getFacesContext(), this) : Measure.ZERO")
   void setPaddingRight(String paddingRight);
 
   /**
@@ -91,8 +91,8 @@ public interface IsGridLayoutContainer {
    * @param paddingTop The top padding which is needed by some containers (e. g. a box).
    */
   @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
-      defaultCode = "((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)\n"
-          + "getRenderer(getFacesContext())).getPaddingTop(getFacesContext(), this)")
+      defaultCode = "getRendererType() != null ? ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)\n"
+          + "getRenderer(getFacesContext())).getPaddingTop(getFacesContext(), this) : Measure.ZERO")
   void setPaddingTop(String paddingTop);
 
   /**
@@ -101,8 +101,8 @@ public interface IsGridLayoutContainer {
    * @param paddingBottom The bottom padding which is needed by some containers (e. g. a
box).
    */
   @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
-      defaultCode = "((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)\n"
-          + "getRenderer(getFacesContext())).getPaddingBottom(getFacesContext(), this)")
+      defaultCode = "getRendererType() != null ? ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)\n"
+          + "getRenderer(getFacesContext())).getPaddingBottom(getFacesContext(), this) :
Measure.ZERO")
   void setPaddingBottom(String paddingBottom);
 
   /**



Mime
View raw message