myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r918632 - in /myfaces/tobago/trunk: core/src/main/java/org/apache/myfaces/tobago/taglib/component/ example/test/src/main/webapp/tc/hidden/ theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/
Date Wed, 03 Mar 2010 19:01:14 GMT
Author: lofwyr
Date: Wed Mar  3 19:01:14 2010
New Revision: 918632

URL: http://svn.apache.org/viewvc?rev=918632&view=rev
Log:
TOBAGO-858: tc:hidden misses attribute rendered
 - also remove "inline" attribute

Added:
    myfaces/tobago/trunk/example/test/src/main/webapp/tc/hidden/
    myfaces/tobago/trunk/example/test/src/main/webapp/tc/hidden/hidden.xhtml   (with props)
Modified:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/HiddenTagDeclaration.java
    myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/DatePickerRenderer.java

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/HiddenTagDeclaration.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/HiddenTagDeclaration.java?rev=918632&r1=918631&r2=918632&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/HiddenTagDeclaration.java
(original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/HiddenTagDeclaration.java
Wed Mar  3 19:01:14 2010
@@ -19,35 +19,21 @@
 
 import org.apache.myfaces.tobago.apt.annotation.Tag;
 import org.apache.myfaces.tobago.apt.annotation.UIComponentTag;
-import org.apache.myfaces.tobago.apt.annotation.UIComponentTagAttribute;
 import org.apache.myfaces.tobago.component.RendererTypes;
-import org.apache.myfaces.tobago.taglib.decl.HasBinding;
 import org.apache.myfaces.tobago.taglib.decl.HasConverter;
-import org.apache.myfaces.tobago.taglib.decl.HasId;
+import org.apache.myfaces.tobago.taglib.decl.HasIdBindingAndRendered;
 import org.apache.myfaces.tobago.taglib.decl.HasValidator;
 import org.apache.myfaces.tobago.taglib.decl.HasValue;
 import org.apache.myfaces.tobago.taglib.decl.IsReadonly;
 
-/*
- * Created: Aug 5, 2005 4:08:32 PM
- * User: bommel
- * $Id$
- */
 /**
- * Renders a 'hidden' input element.
+ * Renders a hidden input element.
  */
 @Tag(name = "hidden")
 @UIComponentTag(
-    uiComponent = "org.apache.myfaces.tobago.component.UIHiddenInput",
+    uiComponent = "org.apache.myfaces.tobago.component.UIHidden",
     uiComponentBaseClass = "javax.faces.component.UIInput",
     rendererType = RendererTypes.HIDDEN,
     allowedChildComponenents = "NONE")
-public interface HiddenTagDeclaration extends HasId, HasBinding, HasValue, HasConverter,
-    HasValidator, IsReadonly {
-
-  @UIComponentTagAttribute(type = "java.lang.Boolean", defaultValue = "Boolean.TRUE")
-  void setInline(String inline);
-
-
-
+public interface HiddenTagDeclaration extends HasIdBindingAndRendered, HasValue, HasConverter,
HasValidator, IsReadonly {
 }

Added: myfaces/tobago/trunk/example/test/src/main/webapp/tc/hidden/hidden.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/test/src/main/webapp/tc/hidden/hidden.xhtml?rev=918632&view=auto
==============================================================================
--- myfaces/tobago/trunk/example/test/src/main/webapp/tc/hidden/hidden.xhtml (added)
+++ myfaces/tobago/trunk/example/test/src/main/webapp/tc/hidden/hidden.xhtml Wed Mar  3 19:01:14
2010
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<f:view
+    xmlns:jsp="http://java.sun.com/JSP/Page"
+    xmlns:tc="http://myfaces.apache.org/tobago/component"
+    xmlns:tx="http://myfaces.apache.org/tobago/extension"
+    xmlns:ui="http://java.sun.com/jsf/facelets"
+    xmlns:f="http://java.sun.com/jsf/core">
+
+  <tc:page>
+    <f:facet name="layout">
+      <tc:gridLayout/>
+    </f:facet>
+    <tc:gridLayoutConstraint width="600px" height="300px"/>
+
+    <tc:hidden id="h1" value="h1-value"/>
+    <tc:hidden id="h2" value="h2-value" rendered="false"/>
+    <tc:hidden id="h3" value="h3-value" rendered="true"/>
+
+  </tc:page>
+</f:view>

Propchange: myfaces/tobago/trunk/example/test/src/main/webapp/tc/hidden/hidden.xhtml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/DatePickerRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/DatePickerRenderer.java?rev=918632&r1=918631&r2=918632&view=diff
==============================================================================
--- myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/DatePickerRenderer.java
(original)
+++ myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/DatePickerRenderer.java
Wed Mar  3 19:01:14 2010
@@ -30,7 +30,7 @@
 import org.apache.myfaces.tobago.component.UIDate;
 import org.apache.myfaces.tobago.component.UIDatePicker;
 import org.apache.myfaces.tobago.component.UIGridLayout;
-import org.apache.myfaces.tobago.component.UIHiddenInput;
+import org.apache.myfaces.tobago.component.UIHidden;
 import org.apache.myfaces.tobago.component.UIImage;
 import org.apache.myfaces.tobago.component.UIPanel;
 import org.apache.myfaces.tobago.component.UIPopup;
@@ -71,8 +71,8 @@
     }
     picker.setImmediate(true);
     String linkId = picker.getId();
-    UIHiddenInput hidden = (UIHiddenInput)
-        CreateComponentUtils.createComponent(facesContext, UIHiddenInput.COMPONENT_TYPE,
RendererTypes.HIDDEN);
+    UIHidden hidden = (UIHidden)
+        CreateComponentUtils.createComponent(facesContext, UIHidden.COMPONENT_TYPE, RendererTypes.HIDDEN);
     if (linkId != null) {
       hidden.setId(linkId + "hidden");
     } else {



Mime
View raw message