incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awi...@apache.org
Subject svn commit: r423795 [1/4] - in /incubator/adffaces/trunk/adf-faces: adf-faces-build/src/main/resources/META-INF/maven-faces-plugin/components/adf/core/ adf-faces-build/src/main/resources/META-INF/maven-faces-plugin/renderers/adf/ adf-faces-demo/src/mai...
Date Thu, 20 Jul 2006 06:08:56 GMT
Author: awiner
Date: Wed Jul 19 23:08:55 2006
New Revision: 423795

URL: http://svn.apache.org/viewvc?rev=423795&view=rev
Log:
ADFFACES-57: Add a new ouputDocument component to print multi-paragraph text;  mostly from
patch by Simon Lessard

Added:
    incubator/adffaces/trunk/adf-faces/adf-faces-build/src/main/resources/META-INF/maven-faces-plugin/components/adf/core/CoreOutputDocument.xml
    incubator/adffaces/trunk/adf-faces/adf-faces-build/src/main/resources/META-INF/maven-faces-plugin/renderers/adf/OutputDocument.xml
    incubator/adffaces/trunk/adf-faces/adf-faces-demo/src/main/webapp/components/outputDocument.jspx
    incubator/adffaces/trunk/adf-faces/adf-faces-impl/src/main/java/org/apache/myfaces/adfinternal/renderkit/core/xhtml/OutputDocumentRenderer.java
Modified:
    incubator/adffaces/trunk/adf-faces/adf-faces-demo/src/main/webapp/WEB-INF/faces-config.xml
    incubator/adffaces/trunk/adf-faces/adf-faces-impl/src/main/java/org/apache/myfaces/adfinternal/renderkit/core/xhtml/XhtmlConstants.java
    incubator/adffaces/trunk/adf-faces/adf-faces-impl/src/main/resources/META-INF/adf/styles/base-desktop.xss

Added: incubator/adffaces/trunk/adf-faces/adf-faces-build/src/main/resources/META-INF/maven-faces-plugin/components/adf/core/CoreOutputDocument.xml
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/adf-faces/adf-faces-build/src/main/resources/META-INF/maven-faces-plugin/components/adf/core/CoreOutputDocument.xml?rev=423795&view=auto
==============================================================================
--- incubator/adffaces/trunk/adf-faces/adf-faces-build/src/main/resources/META-INF/maven-faces-plugin/components/adf/core/CoreOutputDocument.xml
(added)
+++ incubator/adffaces/trunk/adf-faces/adf-faces-build/src/main/resources/META-INF/maven-faces-plugin/components/adf/core/CoreOutputDocument.xml
Wed Jul 19 23:08:55 2006
@@ -0,0 +1,141 @@
+v<?xml version="1.0" encoding="utf-8"?>
+<!--
+  Copyright 2006 The Apache Software Foundation.
+
+  Licensed 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.
+-->
+<faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
+              xmlns:af="http://myfaces.apache.org/adf/faces"
+              xmlns:mfp="http://myfaces.apache.org/maven-faces-plugin"
+              xmlns:xhtml="http://www.w3.org/1999/xhtml"
+              xmlns:xi="http://www.w3.org/2001/XInclude">
+  <component>
+    <description><![CDATA[The outputDocument component supports styled text with
line breaks.]]></description>
+    <icon>
+      <small-icon>/oracle/adfdtinternal/view/rich/metadata/icons/outputText.png</small-icon>
+    </icon>
+    <component-type>org.apache.myfaces.adf.CoreOutputDocument</component-type>
+    <component-class>org.apache.myfaces.adf.component.core.output.CoreOutputDocument</component-class>
+    <facet>
+      <description><![CDATA[The title of the document.]]>
+      </description>
+      <facet-name>title</facet-name>
+      <facet-extension>
+        <mfp:facet-metadata>
+          <mfp:preferred>true</mfp:preferred>
+          <mfp:preferred-children>af:outputText</mfp:preferred-children>
+        </mfp:facet-metadata>
+      </facet-extension>
+    </facet>
+    <facet>
+      <description><![CDATA[The object used to separate paragraphs of the document.]]>
+      </description>
+      <facet-name>separator</facet-name>
+      <facet-extension>
+        <mfp:facet-metadata>
+          <mfp:preferred>true</mfp:preferred>
+          <mfp:preferred-children>af:objectImage af:objectSeparator</mfp:preferred-children>
+        </mfp:facet-metadata>
+      </facet-extension>
+    </facet>
+    <property>
+      <description><![CDATA[the short description of the bean.  This text
+         is commonly used by user agents to display tooltip help text.]]>
+      </description>
+      <property-name>shortDesc</property-name>
+      <property-class>java.lang.String</property-class>
+      <property-extension>
+        <mfp:property-metadata>
+          <mfp:group>${md:getTranslatedString("CORE_GROUP")}</mfp:group>
+        </mfp:property-metadata>
+      </property-extension>
+    </property>
+    <property>
+      <description><![CDATA[the style class of the title. This property will be

+         considered only if a title facet is used.]]>
+      </description>
+      <property-name>titleClass</property-name>
+      <property-class>java.lang.String</property-class>
+      <property-extension>
+        <mfp:property-metadata>
+          <mfp:group>${md:getTranslatedString("CORE_GROUP")}</mfp:group>
+        </mfp:property-metadata>
+      </property-extension>
+    </property>
+    <property>
+      <description><![CDATA[the style class of the separator. This property will
be 
+         considered only if a separator facet is used.]]>
+      </description>
+      <property-name>separatorClass</property-name>
+      <property-class>java.lang.String</property-class>
+      <property-extension>
+        <mfp:property-metadata>
+          <mfp:group>${md:getTranslatedString("CORE_GROUP")}</mfp:group>
+        </mfp:property-metadata>
+      </property-extension>
+    </property>
+    <property>
+      <description><![CDATA[the IDs of the components that should trigger a partial
update.
+         This component will listen on the trigger components. If one of the
+         trigger components receives an event that will cause it to update
+         in some way, this component will request to be updated too.]]>
+      </description>
+      <property-name>partialTriggers</property-name>
+      <property-class>java.lang.String[]</property-class>
+    </property>
+    
+    <xi:include href="includes/CoreJSEvents.xml" xpointer="/faces-config/component/*"/>
+
+    <property>
+      <description><![CDATA[the CSS style class of the bean.]]></description>
+      <property-name>styleClass</property-name>
+      <property-class>java.lang.String</property-class>
+      <property-extension>
+        <mfp:property-metadata>
+          <mfp:group>${md:getTranslatedString("CORE_GROUP")}</mfp:group>
+        </mfp:property-metadata>
+      </property-extension>
+    </property>
+    <property>
+      <description><![CDATA[the inline CSS style for this element]]></description>
+      <property-name>inlineStyle</property-name>
+      <property-class>java.lang.String</property-class>
+      <property-extension>
+        <mfp:property-metadata>
+          <mfp:group>${md:getTranslatedString("CORE_GROUP")}</mfp:group>
+        </mfp:property-metadata>
+      </property-extension>
+    </property>
+    <component-extension>
+      <mfp:component-supertype>org.apache.myfaces.adf.Output</mfp:component-supertype>
+      <mfp:renderer-type>org.apache.myfaces.adf.Document</mfp:renderer-type>
+      <mfp:tag-name>af:outputDocument</mfp:tag-name>
+      <mfp:tag-class>org.apache.myfaces.adfinternal.taglib.core.output.CoreOutputDocumentTag</mfp:tag-class>
+      <mfp:long-description><![CDATA[The outputText component supports styled text.
 The text
+can optionally be left unescaped, and supports
+conversion to and from Java objects.]]>
+      </mfp:long-description>
+      <mfp:example>
+        <mfp:source-code>&lt;af:outputDocument value="A long text including"
+                     styleClass="AFFieldText"/&gt;</mfp:source-code>
+      </mfp:example>
+      <mfp:author>Simon Lessard</mfp:author>
+      <mfp:component-metadata>
+        <mfp:accepts-child-components>false</mfp:accepts-child-components>
+        <mfp:favorite-property>value</mfp:favorite-property>
+        <mfp:group>${md:getTranslatedString("PALETTE_OUTPUT")}</mfp:group>
+      </mfp:component-metadata>
+      <mfp:uix2-local-name>outputDocument</mfp:uix2-local-name>
+    </component-extension>
+  </component>
+</faces-config>

Added: incubator/adffaces/trunk/adf-faces/adf-faces-build/src/main/resources/META-INF/maven-faces-plugin/renderers/adf/OutputDocument.xml
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/adf-faces/adf-faces-build/src/main/resources/META-INF/maven-faces-plugin/renderers/adf/OutputDocument.xml?rev=423795&view=auto
==============================================================================
--- incubator/adffaces/trunk/adf-faces/adf-faces-build/src/main/resources/META-INF/maven-faces-plugin/renderers/adf/OutputDocument.xml
(added)
+++ incubator/adffaces/trunk/adf-faces/adf-faces-build/src/main/resources/META-INF/maven-faces-plugin/renderers/adf/OutputDocument.xml
Wed Jul 19 23:08:55 2006
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  Copyright 2006 The Apache Software Foundation.
+
+  Licensed 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.
+-->
+<faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
+              xmlns:mfp="http://myfaces.apache.org/maven-faces-plugin">
+  <render-kit>
+    <render-kit-id>org.apache.myfaces.adfinternal.core</render-kit-id>
+    <renderer>
+      <component-family>org.apache.myfaces.adf.Output</component-family>
+      <renderer-type>org.apache.myfaces.adf.Document</renderer-type>
+      <renderer-class>org.apache.myfaces.adfinternal.renderkit.core.xhtml.OutputDocumentRenderer</renderer-class>
+      <renderer-extension>
+        <mfp:component-type>org.apache.myfaces.adf.CoreOutputDocument</mfp:component-type>
+      </renderer-extension>
+    </renderer>
+  </render-kit>
+</faces-config>



Mime
View raw message