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
Repository Revision Date User Message
ASF #442798 Wed Sep 13 02:26:16 UTC 2006 gvanmatre The clay template prefix to define namespaces no longer need to be identical to the prefix used to define the component definition (SHALE-279).
Files Changed
MODIFY /shale/framework/trunk/shale-clay/src/main/resources/org/apache/shale/clay/parser/builder/chain/shale-builder-config.xml
MODIFY /shale/framework/trunk/shale-clay/src/main/java/org/apache/shale/clay/parser/builder/JsfDefaultBuilder.java
MODIFY /shale/framework/trunk/shale-clay/src/main/java/org/apache/shale/clay/parser/builder/chain/JsfDefaultBuilderRule.java

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"/>


Gary VanMatre made changes - 13/Sep/06 02:29 AM
Field Original Value New Value
Fix Version/s 1.0.4-SNAPSHOT [ 21740 ]
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Repository Revision Date User Message
ASF #442799 Wed Sep 13 02:31:51 UTC 2006 gvanmatre Example for SHALE-279. Added example of using alternate namespace prefixes.
Files Changed
MODIFY /shale/sandbox/shale-clay-mailreader/src/main/webapp/WEB-INF/clay-config.xml
ADD /shale/sandbox/shale-clay-mailreader/src/main/webapp/pages/layout_nsjsp.html
MODIFY /shale/sandbox/shale-clay-mailreader/src/main/webapp/pages/mainMenu_nsjsp.html

Rahul Akolkar made changes - 23/Jan/07 04:40 PM
Fix Version/s 1.0.4-SNAPSHOT [ 21740 ]
Fix Version/s 1.0.4 [ 21790 ]
Jeff Turner made changes - 09/Aug/07 07:15 AM
Workflow Struts [ 38719 ] Struts - editable closed status [ 41658 ]
Antonio Petrelli made changes - 08/Jan/09 08:56 AM
Workflow Struts - editable closed status [ 41658 ] Struts - editable closed status (temporary) [ 46006 ]
Antonio Petrelli made changes - 08/Jan/09 09:08 AM
Workflow Struts - editable closed status (temporary) [ 46006 ] Struts - editable closed status [ 53043 ]