Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 61553 invoked from network); 30 Sep 2010 19:27:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Sep 2010 19:27:58 -0000 Received: (qmail 74509 invoked by uid 500); 30 Sep 2010 19:27:58 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 74430 invoked by uid 500); 30 Sep 2010 19:27:57 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 74411 invoked by uid 99); 30 Sep 2010 19:27:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Sep 2010 19:27:57 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Sep 2010 19:27:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8UJRWE1002024 for ; Thu, 30 Sep 2010 19:27:33 GMT Message-ID: <25622816.483431285874852968.JavaMail.jira@thor> Date: Thu, 30 Sep 2010 15:27:32 -0400 (EDT) From: "Andrew Robinson (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (TRINIDAD-1930) Ability to easily create a meta tag In-Reply-To: <2684541.469631285803032359.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TRINIDAD-1930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12916620#action_12916620 ] Andrew Robinson commented on TRINIDAD-1930: ------------------------------------------- Do we need the more verbose nameType or would type be sufficient? > Ability to easily create a meta tag > ----------------------------------- > > Key: TRINIDAD-1930 > URL: https://issues.apache.org/jira/browse/TRINIDAD-1930 > Project: MyFaces Trinidad > Issue Type: Improvement > Components: Components > Affects Versions: 1.2.14-core , 2.0.0.2-core > Reporter: Matt Cooper > Assignee: Matt Cooper > > Ability to easily create a meta tag (e.g. http://developer.apple.com/library/safari/#documentation/appleapplications/reference/safarihtmlref/articles/MetaTags.html or http://www.webmarketingnow.com/tips/meta-tags-uncovered.html ) via a new trh:meta tag. > Currently it is quite tedious to create a meta tag out of a component: > > > > value='<meta name="viewport" content="width=device-width">' > id="metaTag1"/> > value='<meta name="apple-mobile-web-app-capable" content="yes">' > id="metaTag2"/> > value='<meta http-equiv="refresh" content="2;url=./test/index.jspx">' > id="metaTag3"/> > > > > It would be much better if we had a trh:meta component that looked like this: > > > > > > > > > > So I would like to see a new trh:meta component that has an API like this: > Tag name: > UIComponent class: org.apache.myfaces.trinidad.component.core.CoreMeta > Component type: org.apache.myfaces.trinidad.CoreMeta > The meta component generates an HTML meta tag and is intended to be used inside either the trh:head tag or the document component's metaContainer facet. > Events > Type Phases Description > org.apache.myfaces.trinidad.event.AttributeChangeEvent Invoke Application, Apply Request Values Event delivered to describe an attribute change. Attribute change events are not delivered for any programmatic change to a property. They are only delivered when a renderer changes a property without the application's specific request. An example of an attribute change events might include the width of a column that supported client-side resizing. > Attributes > Name Type Supports EL? Description > attributeChangeListener javax.el.MethodExpression Only EL a method reference to an attribute change listener. Attribute change events are not delivered for any programmatic change to a property. They are only delivered when a renderer changes a property without the application's specific request. An example of an attribute change events might include the width of a column that supported client-side resizing. > binding org.apache.myfaces.trinidad.component.core.CoreMeta Only EL an EL reference that will store the component instance on a bean. This can be used to give programmatic access to a component from a backing bean, or to move creation of the component to a backing bean. > id String No the identifier for the component. The identifier must follow a subset of the syntax allowed in HTML: > * Must not be a zero-length String. > * First character must be an ASCII letter (A-Za-z) or an underscore ('_'). > * Subsequent characters must be an ASCII letter or digit (A-Za-z0-9), an underscore ('_'), or a dash ('-'). > rendered boolean Yes whether the component is rendered. When set to false, no output will be delivered for this component (the component will not in any way be rendered, and cannot be made visible on the client). > name String Yes the name or http-equiv attribute of the meta attribute (see nameType) > nameType String Yes "name" or "http-equiv" indicating which kind of name attribute is desired ("name" is the most common attribute but some older meta tags need "http-equiv") > content String Yes the content of the meta attribute -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.