You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mb...@apache.org on 2007/04/11 12:40:30 UTC

svn commit: r527455 - in /myfaces/core/branches/jsf12: build/src/main/resources/META-INF/maven-faces-plugin/components/javax/faces/ impl/src/main/tld/entities/ impl/src/test/java/org/apache/myfaces/taglib/ impl/src/test/java/org/apache/myfaces/taglib/h...

Author: mbr
Date: Wed Apr 11 03:40:28 2007
New Revision: 527455

URL: http://svn.apache.org/viewvc?view=rev&rev=527455
Log:
fix prependId property

Added:
    myfaces/core/branches/jsf12/impl/src/test/java/org/apache/myfaces/taglib/
    myfaces/core/branches/jsf12/impl/src/test/java/org/apache/myfaces/taglib/html/
    myfaces/core/branches/jsf12/impl/src/test/java/org/apache/myfaces/taglib/html/HtmlFormTagTest.java   (with props)
Modified:
    myfaces/core/branches/jsf12/build/src/main/resources/META-INF/maven-faces-plugin/components/javax/faces/UIForm.xml
    myfaces/core/branches/jsf12/impl/src/main/tld/entities/html_form_attributes.xml

Modified: myfaces/core/branches/jsf12/build/src/main/resources/META-INF/maven-faces-plugin/components/javax/faces/UIForm.xml
URL: http://svn.apache.org/viewvc/myfaces/core/branches/jsf12/build/src/main/resources/META-INF/maven-faces-plugin/components/javax/faces/UIForm.xml?view=diff&rev=527455&r1=527454&r2=527455
==============================================================================
--- myfaces/core/branches/jsf12/build/src/main/resources/META-INF/maven-faces-plugin/components/javax/faces/UIForm.xml (original)
+++ myfaces/core/branches/jsf12/build/src/main/resources/META-INF/maven-faces-plugin/components/javax/faces/UIForm.xml Wed Apr 11 03:40:28 2007
@@ -27,6 +27,15 @@
         <component-class>javax.faces.component.UIForm</component-class>
         <description></description>
 
+		<property>
+			<description>Defines a flag indicating whether or not this form should prepend its id to its descendent's id during the clientId generation process. If this flag is not set, the default value is true.</description>
+			<property-name>prependId</property-name>
+            <property-class>boolean</property-class>
+            <property-extension>
+                <mfp:literal-only>false</mfp:literal-only>
+            </property-extension>
+		</property>
+
         <component-extension>
             <mfp:component-supertype>javax.faces.ComponentBase</mfp:component-supertype>
             <mfp:renderer-type>javax.faces.Form</mfp:renderer-type>

Modified: myfaces/core/branches/jsf12/impl/src/main/tld/entities/html_form_attributes.xml
URL: http://svn.apache.org/viewvc/myfaces/core/branches/jsf12/impl/src/main/tld/entities/html_form_attributes.xml?view=diff&rev=527455&r1=527454&r2=527455
==============================================================================
--- myfaces/core/branches/jsf12/impl/src/main/tld/entities/html_form_attributes.xml (original)
+++ myfaces/core/branches/jsf12/impl/src/main/tld/entities/html_form_attributes.xml Wed Apr 11 03:40:28 2007
@@ -37,9 +37,4 @@
     <required>false</required>
     <rtexprvalue>false</rtexprvalue>
     <description>HTML: Script to be invoked when this form is submitted.</description>
-</attribute>
-<attribute>
-    <name>prependId</name>
-    <required>false</required>
-    <rtexprvalue>true</rtexprvalue>
-</attribute>
+</attribute>
\ No newline at end of file

Added: myfaces/core/branches/jsf12/impl/src/test/java/org/apache/myfaces/taglib/html/HtmlFormTagTest.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/jsf12/impl/src/test/java/org/apache/myfaces/taglib/html/HtmlFormTagTest.java?view=auto&rev=527455
==============================================================================
--- myfaces/core/branches/jsf12/impl/src/test/java/org/apache/myfaces/taglib/html/HtmlFormTagTest.java (added)
+++ myfaces/core/branches/jsf12/impl/src/test/java/org/apache/myfaces/taglib/html/HtmlFormTagTest.java Wed Apr 11 03:40:28 2007
@@ -0,0 +1,59 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.taglib.html;
+
+import javax.faces.component.html.HtmlForm;
+
+import org.apache.myfaces.el.LiteralValueExpression;
+import org.apache.shale.test.base.AbstractJsfTestCase;
+import org.testng.Assert;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+
+/**
+ * @author Mathias Broekelmann (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+public class HtmlFormTagTest extends AbstractJsfTestCase
+{
+    /**
+     * @param name
+     */
+    public HtmlFormTagTest(String name)
+    {
+        super(name);
+    }
+
+    @Override
+    @BeforeMethod
+    protected void setUp() throws Exception
+    {
+        super.setUp();
+    }
+
+    @Test
+    public void testPrependId() throws Exception
+    {
+        HtmlFormTag htmlFormTag = new HtmlFormTag();
+        htmlFormTag.setPrependId(new LiteralValueExpression(false));
+        HtmlForm htmlForm = new HtmlForm();
+        htmlFormTag.setProperties(htmlForm);
+        Assert.assertEquals(false, htmlForm.isPrependId());
+    }
+}

Propchange: myfaces/core/branches/jsf12/impl/src/test/java/org/apache/myfaces/taglib/html/HtmlFormTagTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/core/branches/jsf12/impl/src/test/java/org/apache/myfaces/taglib/html/HtmlFormTagTest.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision