Issue Details (XML | Word | Printable)

Key: JAVASERVERFACES_SPEC_PUBLIC-999
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Ed Burns
Reporter: rogerk
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
javaserverfaces-spec-public

ui:decorate ui:composition "template" Attribute

Created: 10/May/11 07:53 AM   Updated: 10/May/11 08:49 AM   Resolved: 10/May/11 08:49 AM
Component/s: Facelets/VDL
Affects Version/s: 2.1
Fix Version/s: 2.2

Time Tracking:
Not Specified

Tags:
Participants: Ed Burns and rogerk


 Description  « Hide

The following issues/inconsistencies exist today w/r/t the "template" attribute for
ui:decorate and ui:composition tags.

1. vdl docs say that ui:composition / ui:decorate "template" attribute is not required.
The Mojarra implementation implements ui:decoreate as required but does nothing for
ui:composition if "template" attribute is not specified.
http://java.net/jira/browse/JAVASERVERFACES-2023

Does it make sense to use these tags without a "template" attribute?
If not we should specify it as required for both tags.

2. What should be the behavior if a page author specifies this:
ui:decorate template="" or ui:composition template=""

Does it make sense to use these tags without a value for "template" attribute?
If not we should specify a TagAttributeException.



rogerk added a comment - 10/May/11 08:18 AM

Actually it does not make sense to make "template" attribute required for
ui:composition, as it is perfectly feasible to author something like this:

<ui:composition>
....
</ui:composition>

But the vdldocs should specify "template" as required attribute for ui:decorate


Ed Burns added a comment - 10/May/11 08:49 AM

Sending jsf-ri/conf/share/tlddoc-resources/stylesheet.css
Sending jsf-ri/conf/share/ui.tld
Transmitting file data ..
Committed revision 9024.