[ 
https://issues.apache.org/jira/browse/TRINIDAD-678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adam Winer resolved TRINIDAD-678.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.3-core
         Assignee: Adam Winer

Applied change.  Needed to also fix up SelectManyShuttleRenderer Java code for 
other issues with handling shuttles that were inside a naming container.

> Description Not Shown in TextArea for Select*Shuttle Components
> ---------------------------------------------------------------
>
>                 Key: TRINIDAD-678
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-678
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.2.1-core
>         Environment: [EMAIL PROTECTED]:~> uname -a
> Linux aragorn 2.6.11.4-21.13-default #1 Mon Jul 17 09:21:59 UTC 2006 i686 
> i686 i386 GNU/Linux
> Eclipse Europa 3.3 with MyEclipse 3.3 M1. 
> Using JSF RI 1.2:
> INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b16-p02) for 
> context '/trinidaddemo'
>            Reporter: Gregg Leichtman
>            Assignee: Adam Winer
>             Fix For: 1.0.3-core
>
>
> I have found a bug in the generated JavaScript for the Select*Shuttle 
> components. A patch follows:
> TrShuttleProxy._getDescArray = function(listName) {
> //  var descArray = window[listName.replace(':','_') + '_desc'];
>   var descArray = window[listName.replace(/:/g,'_') + '_desc']; // gsl fix
>   return descArray;
> }
> where listName is content:shuttle1:leading.
> The problem is that the listName is not using a global replace; therefore 
> only the first ':' is being replaced. This worked fine in ADF Faces before 
> porting to Trinidad where the listName was just "shuttle1:leading". Note, 
> however, that Trinidad now adds an additional "content" prefix to the 
> generated inline JavaScript variables:
>       content_shuttle1_leading_desc=new Array('The First Item Desc',
>                                               'The Second Item Desc',
>                                               'The Third Item Desc','');
>       content_shuttle1_trailing_desc=new Array('');
> This means that a global replace needs to be done to create the proper 
> variable name for matching in the JavaScript code. I will report this on Jira 
> for the Trinidad project.
> I don't have access to the latest snapshots. The last one I see is from July 
> 11th at:
>     
> http://people.apache.org/repo/m2-snapshot-repository/org/apache/myfaces/trinidad/trinidad-impl/1.2.1-SNAPSHOT/
> If this has been fixed already, then please clear my bug report which should 
> have the side benefit of letting people know that the bug has been found and 
> fixed already.
>                                    -=> Gregg <=-

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to