Improve s:decorate to make rendering of enclosing div element
optional
----------------------------------------------------------------------
Key: JBSEAM-3339
URL:
https://jira.jboss.org/jira/browse/JBSEAM-3339
Project: Seam
Issue Type: Feature Request
Environment: Seam 2.1.0 Rev. 8823
Reporter: Wolfgang Schwendt
Assignee: Samuel Mendenhall
Priority: Minor
Fix For: 2.1.1.CR1
Attachments: decorate.xml.patch, DecorateRendererBase.java.patch,
JBSEAM-3339-patch-20081023.txt, JBSEAM-3339-patch.diff.txt, UIDecorate.java.patch
The renderer for s:decorate encloses the template used to decorate an input field by a
div element. However, this makes s:decorate useless for rendering table columns because
the resulting html-code is invalid when a table row is enclosed by a div-element.
Proposal: Add an (optional) attribute to s:decorate to disable the rendering of the
enclosing div-element.
In my patch attached above, the attribute is named "encloseTemplate". By
default this attribute is true in order not to change the current behavior of s:decorate.
If "encloseTemplate" is set to false, however, no enclosing div-element is
rendered.
Example:
<s:decorate id="MyId" template="/layout/tableRow.xhtml"
encloseTemplate="false">
</s:decorate>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: