Hi

Ok, I'll go ahead and commit it. 

Anyone who's interested in creating component config file for a particular 
taglib, just use the TlD2ClayCfg test-tool that sits in SVN aside the tool 
itself (I'll do an antry in the Wiki about howto in the next couple of days)

Hermod

-----Original Message-----
From: Gary VanMatre [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 29, 2007 1:24 AM
To: dev@shale.apache.org
Subject: Re: [jira] Commented: (SHALE-431) Tomahawk's enabledOnUserRole
property doesn't work with Clay


>From: "Hermod Opstvedt (JIRA)" <[EMAIL PROTECTED]> 
>
> 
> [ 
> https://issues.apache.org/struts/browse/SHALE-431?page=com.atlassian.jira.plugin
>  
> .system.issuetabpanels:comment-tabpanel#action_40710 ] 
> 
> Hermod Opstvedt commented on SHALE-431: 
> --------------------------------------- 
> 
> Well, its to big to post the complete contents here. SInce this is just an 
> XML 
> file, I fail to see that it should pose any risk to you environment though. I 
> feel with you :) 
>

@Hermod, if you feel good about the tomahawk config file that is generated 
using the tld2claycfg, you might as well commit it over the top of the current 
one.  This will fix the loosely defined renderTypes for all tomahawk components.

Gary


 
> > Tomahawk's enabledOnUserRole property doesn't work with Clay 
> > ------------------------------------------------------------ 
> > 
> > Key: SHALE-431 
> > URL: https://issues.apache.org/struts/browse/SHALE-431 
> > Project: Shale 
> > Issue Type: Bug 
> > Components: Clay 
> > Affects Versions: 1.0.4 
> > Reporter: Richard W. Eggert II 
> > Attachments: tomahawk-1.1.3-config.xml 
> > 
> > 
> > The "enabledOnUserRole" attribute accepted by most Tomahawk components 
> (t:selectBooleanCheckbox, t:inputTextArea, etc.) does not have an effect when 
> the components are instantiated using Clay. The "visibleOnUserRole" attribute 
> does seem to work properly, however. Extending the components to explicitly 
> set 
> the "rendererType" attribute fixes the problem. 
> > Example: 
> > > > type="checkbox" 
> > jsfid="t:selectBooleanCheckbox" 
> > value="#{mybean.myflag}" 
> > enabledOnUserRole="myrole" 
> > /> 
> > When logged in as a user that does not have the role "myrole", the checkbox 
> above still renders normally (in read/write mode). 
> > Example workaround: 
> > 
> > 
> > > bindingType="VB" /> 
> > 
> > 
> > > > type="checkbox" 
> > jsfid="mySelectBooleanCheckbox" 
> > value="#{mybean.myflag}" 
> > enabledOnUserRole="myrole" 
> > /> 
> > With the "rendererType" attribute set as above, the checkbox renders as 
> expected (in read-only mode for users that do not have the specified role). 
> > This issue affects many if not all Tomahawk components that use the 
> "enabledOnUserRole" attribute (which is pretty much all of them). 
> 
> -- 
> This message is automatically generated by JIRA. 
> - 
> You can reply to this email to add a comment to the issue online. 
> 
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Reply via email to