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