public String mapLegacyTagId ( IScriptReporter scriptReporter , String tagId , String value ) { if ( scriptReporter != null ) { scriptReporter . addLegacyTagIdMappings ( tagId , value ) ; return null ; } // without a scripRepoter we need to create the actual JavaScript that will be written out InternalStringBuilder sb = new InternalStringBuilder ( 64 ) ; StringBuilderRenderAppender writer = new StringBuilderRenderAppender ( sb ) ; getTagIdMapping ( tagId , value , writer ) ; return sb . toString ( ) ; }
This method will add a tagId and value to the ScriptRepoter TagId map . The a ScriptContainer tag will create a JavaScript table that allows the container such as a portal to rewrite the id so it s unique . The real name may be looked up based upon the tagId .