|
I recently posted this in the user list, but just wish to allow the
Trinidad developer group the opportunity to see this directly. I have
already posted a bug report in JIRA as TRINIDAD-678:
Description Not Shown in TextArea for Select*Shuttle
Components. This bug in the generated _javascript_ for the Select*Shuttle components prevents the short descriptions from displaying in the leading and trailing description text areas. 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 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 <=- |
signature.asc
Description: OpenPGP digital signature
