You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2015/04/08 13:13:41 UTC

svn commit: r1672060 - in /myfaces/tobago/branches/tobago-3.0.x: ./ tobago-core/src/main/java/org/apache/myfaces/tobago/component/ tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/ tobago-core/src/main/java/org/apache/myfaces/toba...

Author: lofwyr
Date: Wed Apr  8 11:13:41 2015
New Revision: 1672060

URL: http://svn.apache.org/r1672060
Log:
clean up deprecation

Removed:
    myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUICell.java
    myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/CellTagDeclaration.java
    myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/CellRenderer.java
Modified:
    myfaces/tobago/branches/tobago-3.0.x/tobago-3.0.txt
    myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/component/RendererTypes.java
    myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/MessagesRenderer.java
    myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/PanelRenderer.java

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-3.0.txt
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-3.0.txt?rev=1672060&r1=1672059&r2=1672060&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-3.0.txt (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-3.0.txt Wed Apr  8 11:13:41 2015
@@ -1,5 +1,7 @@
 Planned features and changes for Tobago 3.0
 
+Todo:
+
 - Bootstrap
 - Simplify layout through using CSS3:
   - Use box-sizing: border-box (requires IE 8) (required for Bootstrap)
@@ -12,3 +14,7 @@ Planned features and changes for Tobago
   - Renderervererbung: addClass() von Parent oder so? z.B. muss man be Bootstrap einem input wohl eine Klasse form-control hinzufügen
 
   - how to use: for best performance and responsive use tc:flexLayout instead of tc:gridLayout
+
+Done:
+
+  - Removing tc:cell tag, please use tc:panel instead.

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/component/RendererTypes.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/component/RendererTypes.java?rev=1672060&r1=1672059&r2=1672060&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/component/RendererTypes.java (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/component/RendererTypes.java Wed Apr  8 11:13:41 2015
@@ -28,12 +28,14 @@ public final class RendererTypes {
   public static final String BOX_TOOL_BAR = "BoxToolBar";
   public static final String BUTTON = "Button";
   public static final String CALENDAR = "Calendar";
+  @Deprecated
   public static final String CELL = "Cell";
   public static final String COLUMN = "Column";
   public static final String COLUMN_LAYOUT = "ColumnLayout";
   public static final String COLUMN_SELECTOR = "ColumnSelector";
   public static final String COMMAND = "Command";
   public static final String DATE = "Date";
+  @Deprecated
   public static final String DATE_PICKER = "DatePicker";
   public static final String FILE = "File";
   public static final String FLEX_LAYOUT = "FlexLayout";

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/MessagesRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/MessagesRenderer.java?rev=1672060&r1=1672059&r2=1672060&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/MessagesRenderer.java (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/MessagesRenderer.java Wed Apr  8 11:13:41 2015
@@ -25,7 +25,6 @@ import org.apache.myfaces.tobago.compone
 import org.apache.myfaces.tobago.component.RendererTypes;
 import org.apache.myfaces.tobago.component.UIBox;
 import org.apache.myfaces.tobago.component.UIButton;
-import org.apache.myfaces.tobago.component.UICell;
 import org.apache.myfaces.tobago.component.UIGridLayout;
 import org.apache.myfaces.tobago.component.UIMessages;
 import org.apache.myfaces.tobago.component.UIPanel;
@@ -172,14 +171,13 @@ public class MessagesRenderer extends La
     layout.getAttributes().put(Attributes.ROWS, "*;auto");
     layout.getAttributes().put(Attributes.MARGIN, Measure.valueOf(10));
 
-    final UICell scrollPanel = (UICell)
-        CreateComponentUtils.createComponent(facesContext, UICell.COMPONENT_TYPE, "Cell", "messagePanel");
+    final UIPanel scrollPanel = (UIPanel)
+        CreateComponentUtils.createComponent(facesContext, UIPanel.COMPONENT_TYPE, "Panel", "messagePanel");
     box.getChildren().add(scrollPanel);
 
     messages.getParent().getChildren().remove(messages);
     messages.setConfirmation(false);
     scrollPanel.onComponentPopulated(facesContext, messages);
-    scrollPanel.setScrollbars("auto");
     scrollPanel.getChildren().add(messages);
 
     final UIComponent buttonPanel = CreateComponentUtils.createComponent(
@@ -192,8 +190,8 @@ public class MessagesRenderer extends La
 
     box.getChildren().add(buttonPanel);
 
-    final UICell space = (UICell)
-        CreateComponentUtils.createComponent(facesContext, UICell.COMPONENT_TYPE, "Cell", "space");
+    final UIPanel space = (UIPanel)
+        CreateComponentUtils.createComponent(facesContext, UIPanel.COMPONENT_TYPE, "Panel", "space");
     buttonPanel.getChildren().add(space);
     space.onComponentPopulated(facesContext, messages);
 

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/PanelRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/PanelRenderer.java?rev=1672060&r1=1672059&r2=1672060&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/PanelRenderer.java (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/PanelRenderer.java Wed Apr  8 11:13:41 2015
@@ -62,7 +62,6 @@ public class PanelRenderer extends Layou
   @Override
   public void encodeBegin(final FacesContext facesContext, final UIComponent component) throws IOException {
     
-    // UIPanel or UICell (deprecated)
     final AbstractUIPanel panel = (AbstractUIPanel) component;
     final TobagoResponseWriter writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);