[ http://issues.apache.org/struts/browse/SHALE-331?page=all ]
Gary VanMatre resolved SHALE-331.
---------------------------------
Resolution: Fixed
The view root properties can be assigned using the standard component
definitions. The base component definition has been added to the base clay
config file that is automatically loaded.
There are several ways to apply an alternate renderKit or locale to a view.
Examples:
<html>
<span id="view" jsfid="f:view" locale="ja_JP" renderKitId="MY_KIT1">
<input type="text" id="input1">
<input type="text" id="input2">
</span>
</html>
<html xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
<f:view locale="pt_PT" renderKitId="MY_KIT2">
<h:inputText id="input1"/>
<h:inputText id="input2"/>
</f:view>
</html>
<html xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
<f:view locale="de" renderKitId="MY_KIT3"/>
<h:inputText id="input1"/>
<h:inputText id="input2"/>
</html>
> Allow setting the view root's properties within a Clay template
> ---------------------------------------------------------------
>
> Key: SHALE-331
> URL: http://issues.apache.org/struts/browse/SHALE-331
> Project: Shale
> Issue Type: Improvement
> Components: Clay
> Affects Versions: 1.0.4-SNAPSHOT
> Reporter: Gary VanMatre
> Assigned To: Gary VanMatre
> Fix For: 1.0.4-SNAPSHOT
>
>
> This issue was reported by Torsten Krah.
> The Clay full HTML or XML templates assume a view root. The UIViewRoot is
> created by the view handler. In all other cases, the components are created
> for the meta-data definitions. There is not a way through the markup
> template to represent the properties of the view root. We need to provide a
> way to set the view roots properties from a template.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira