Issue Details (XML | Word | Printable)

Key: SHALE-279
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Gary VanMatre
Reporter: Gary VanMatre
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Shale

The prefix used to declare clay template namespaces can not be overridden

Created: 13/Sep/06 02:13 AM   Updated: 23/Jan/07 04:40 PM
Return to search
Component/s: Clay
Affects Version/s: 1.0.3
Fix Version/s: 1.0.4


 Description  « Hide
The prefix used to declare namespace binding could not differ from the clay component definitions. For example, when using a tomahawk component, the prefix in the template has to correspond to the prefix used in defining the component in clay's XML metadata.

Example:
<span jsfid="void" xmlns:t="http://myfaces.apache.org/tomahawk"

<component jsfid="t:commandLink"
componentType="org.apache.myfaces.HtmlCommandLink"
extends="baseAction">



 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Gary VanMatre added a comment - 13/Sep/06 02:29 AM
The template prefix no longer has to correspond to the prefix of the jsfid in the component definition. The URI is matched with the prefix know to the clay markup parser.

Consider the following template fragment:

<span jsfid="void" xmlns:face="http://java.sun.com/jsf/core"
      xmlns:html="http://java.sun.com/jsf/html"
      xmlns:tom="http://myfaces.apache.org/tomahawk">

<html:form id="mainMenuForm">

  <tom:messages globalOnly="true"/>