Issue Details (XML | Word | Printable)

Key: SHALE-330
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
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

Create limited mapping support of jspx tags in Clay's html template parsing

Created: 10/Nov/06 08:20 PM   Updated: 23/Jan/07 04:40 PM
Return to search
Component/s: Clay
Affects Version/s: 1.0.4-SNAPSHOT
Fix Version/s: 1.0.4


 Description  « Hide
Limited jspx mapping support will allow lazy reuse of markup. This might be handy for leveraging existing component demo's.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #473459 Fri Nov 10 20:30:12 UTC 2006 gvanmatre Limited jspx mapping support that will help with lazy reuse of markup. This might be handy for leveraging existing component demo's (SHALE-330).
Files Changed
ADD /shale/framework/trunk/shale-clay/src/main/java/org/apache/shale/clay/parser/builder/JspIncludeDirectiveBuilder.java
ADD /shale/framework/trunk/shale-clay/src/test/resources/org/apache/shale/clay/config/limited-jspx.html
MODIFY /shale/framework/trunk/shale-clay/src/main/java/org/apache/shale/clay/parser/builder/OutputLinkBuilder.java
MODIFY /shale/framework/trunk/shale-clay/src/main/resources/org/apache/shale/clay/parser/builder/chain/shale-builder-config.xml
ADD /shale/framework/trunk/shale-clay/src/test/java/org/apache/shale/clay/config/LimitedJspxTestCase.java
MODIFY /shale/framework/trunk/shale-clay/src/main/java/org/apache/shale/clay/parser/builder/chain/DirectiveBuilderRule.java
MODIFY /shale/framework/trunk/shale-clay/src/main/java/org/apache/shale/clay/component/chain/AbstractCommand.java

Gary VanMatre added a comment - 10/Nov/06 08:35 PM
All but two markup elements associated with the "http://java.sun.com/JSP/Page" namespace are assigned to the Clay "void" directive. The "void" directive will cause the markup node not to be rendered. This doesn't excluded any child markup nodes. The "jsp:directive.include" and "jsp:include" elements are mapped a nested clay component. The "jsp:param" nodes nested under a "jsp:include" node are converted into symbols and associated with the nested clay component.

Example:

Mapped to a Clay "void" jsfid:

    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
          xmlns:f="http://java.sun.com/jsf/core"
          version="1.2">
    <jsp:directive.page contentType="text/html;charset=utf-8"/>

Mapped to nested Clay component:

    <jsp:directive.include file="/org/apache/shale/clay/config/address1.html"/>
    <jsp:include page="/org/apache/shale/clay/config/address1.html">
       <jsp:param name="symbol0" value="value0"/>
       <jsp:param name="symbol1" value="value1"/>
       <jsp:param name="symbol2" value="value2"/>
       <jsp:param name="symbol3" value="value3"/>
       <jsp:param name="symbol4" value="value4"/>
    </jsp:include>

Gary VanMatre made changes - 10/Nov/06 08:35 PM
Field Original Value New Value
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Repository Revision Date User Message
ASF #473876 Sun Nov 12 04:50:13 UTC 2006 gvanmatre Added null pointer check (SHALE-330).
Files Changed
MODIFY /shale/framework/trunk/shale-clay/src/main/java/org/apache/shale/clay/utils/PluggableLookupCommand.java

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