You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shale.apache.org by "Gary VanMatre (JIRA)" <ji...@apache.org> on 2006/11/10 21:48:57 UTC

[jira] Created: (SHALE-331) Allow setting the view root's properties within a Clay template

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

        

[jira] Updated: (SHALE-331) Allow setting the view root's properties within a Clay template

Posted by "Torsten Krah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/SHALE-331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Torsten Krah updated SHALE-331:
-------------------------------

           Issue Type: Improvement  (was: Bug)
    Affects Version/s:     (was: 1.1.0-SNAPSHOT)
                       1.0.4

> Allow setting the view root's properties within a Clay template
> ---------------------------------------------------------------
>
>                 Key: SHALE-331
>                 URL: https://issues.apache.org/struts/browse/SHALE-331
>             Project: Shale
>          Issue Type: Improvement
>          Components: Clay
>    Affects Versions: 1.0.4, 1.0.4-SNAPSHOT
>            Reporter: Gary VanMatre
>         Assigned To: Gary VanMatre
>             Fix For: 1.0.4
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SHALE-331) Allow setting the view root's properties within a Clay template

Posted by "Torsten Krah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/SHALE-331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Torsten Krah updated SHALE-331:
-------------------------------

           Issue Type: Bug  (was: Improvement)
    Affects Version/s: 1.1.0-SNAPSHOT

> Allow setting the view root's properties within a Clay template
> ---------------------------------------------------------------
>
>                 Key: SHALE-331
>                 URL: https://issues.apache.org/struts/browse/SHALE-331
>             Project: Shale
>          Issue Type: Bug
>          Components: Clay
>    Affects Versions: 1.0.4-SNAPSHOT, 1.1.0-SNAPSHOT
>            Reporter: Gary VanMatre
>         Assigned To: Gary VanMatre
>             Fix For: 1.0.4
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SHALE-331) Allow setting the view root's properties within a Clay template

Posted by "Torsten Krah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/SHALE-331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40826 ] 

Torsten Krah commented on SHALE-331:
------------------------------------

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

> Allow setting the view root's properties within a Clay template
> ---------------------------------------------------------------
>
>                 Key: SHALE-331
>                 URL: https://issues.apache.org/struts/browse/SHALE-331
>             Project: Shale
>          Issue Type: Improvement
>          Components: Clay
>    Affects Versions: 1.0.4-SNAPSHOT, 1.1.0-SNAPSHOT
>            Reporter: Gary VanMatre
>         Assigned To: Gary VanMatre
>             Fix For: 1.0.4
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SHALE-331) Allow setting the view root's properties within a Clay template

Posted by "Gary VanMatre (JIRA)" <ji...@apache.org>.
     [ 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

        

[jira] Commented: (SHALE-331) Allow setting the view root's properties within a Clay template

Posted by "Torsten Krah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/SHALE-331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40827 ] 

Torsten Krah commented on SHALE-331:
------------------------------------

https://issues.apache.org/struts/browse/SHALE-437

> Allow setting the view root's properties within a Clay template
> ---------------------------------------------------------------
>
>                 Key: SHALE-331
>                 URL: https://issues.apache.org/struts/browse/SHALE-331
>             Project: Shale
>          Issue Type: Improvement
>          Components: Clay
>    Affects Versions: 1.0.4, 1.0.4-SNAPSHOT
>            Reporter: Gary VanMatre
>         Assigned To: Gary VanMatre
>             Fix For: 1.0.4
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.