Issue Details (XML | Word | Printable)

Key: SHALE-331
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Gary VanMatre
Reporter: Gary VanMatre
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Shale

Allow setting the view root's properties within a Clay template

Created: 10/Nov/06 08:47 PM   Updated: 17/Apr/07 04:44 PM
Return to search
Component/s: Clay
Affects Version/s: 1.0.4, 1.0.4-SNAPSHOT
Fix Version/s: 1.0.4


 Description  « Hide
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.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Gary VanMatre added a comment - 11/Nov/06 04:38 AM
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>

Torsten Krah added a comment - 17/Apr/07 04:36 PM
Like i told on the list, the locale binding is broken for EL expressions.

Looking at the code i saw the binding expression is set to the ShaleViewRoot.
But i can change the result of the expression to another locale - the locale of the ViewRoot still says the same.

Torsten