[richfaces-svn-commits] JBoss Rich Faces SVN: r5789 - trunk/sandbox/ui/pickList/src/main/templates.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Mon Feb 4 11:28:46 EST 2008


Author: vmolotkov
Date: 2008-02-04 11:28:46 -0500 (Mon, 04 Feb 2008)
New Revision: 5789

Modified:
   trunk/sandbox/ui/pickList/src/main/templates/htmlPickList.jspx
Log:
component's layout is changed

Modified: trunk/sandbox/ui/pickList/src/main/templates/htmlPickList.jspx
===================================================================
--- trunk/sandbox/ui/pickList/src/main/templates/htmlPickList.jspx	2008-02-04 16:08:07 UTC (rev 5788)
+++ trunk/sandbox/ui/pickList/src/main/templates/htmlPickList.jspx	2008-02-04 16:28:46 UTC (rev 5789)
@@ -148,24 +148,26 @@
 						</div> 
 					</td>
 				</tr>
-				<script type="text/javascript">
-							var clientId = '#{clientId}';
-							Event.onReady(function() {
-								var cotrolsIdPrefix = [['up', 'disup'], ['down', 'disdown'], ['last', 'dislast'], ['first','disfirst']];
-								var listShuttleCotrolsIdPrefix = [['copy', 'discopy'], ['copyAll', 'discopyAll'], ['remove', 'disremove'], ['removeAll','disremoveAll']];
-								
-								var sourceLayoutManager = new LayoutManager('#{clientId}internal_header_tab', '#{clientId}internal_tab');
-								var targetLayoutManager = new LayoutManager('#{clientId}tlInternal_header_tab', '#{clientId}tlInternal_tab');
-								
-								var listShuttle = new Richfaces.PickList(new Richfaces.PickList.Target('#{clientId}', '#{clientId}tlInternal_tab', '#{clientId}tlInternal_header_tab', '#{clientId}tlFocusKeeper', undefined, Richfaces.PickList.Target.SelectItem, #{this:getColumnClassesAsJSArray(context, component)}, #{this:getRowClassesAsJSArray(context, component)}),
-																  			new Richfaces.PickList.Source('#{clientId}', '#{clientId}internal_tab', '#{clientId}internal_header_tab', '#{clientId}focusKeeper', undefined, Richfaces.PickList.Source.SelectItem, #{this:getColumnClassesAsJSArray(context, component)}, #{this:getRowClassesAsJSArray(context, component)}), 
-																  			"#{clientId}", listShuttleCotrolsIdPrefix, "#{switchByClick}", sourceLayoutManager, targetLayoutManager, #{this:getAsEventHandler(context, component, "onlistchanged")},
-																  			"#{clientId}valueKeeper");
-								sourceLayoutManager.widthSynchronization();
-								targetLayoutManager.widthSynchronization();
-							});
-						</script>
 			</vcp:body>
 		</tbody>
 	</table>
+	<f:clientId var="clientId"/>
+	<script type="text/javascript">
+			
+		var clientId = '#{clientId}';
+		Event.onReady(function() {
+			var cotrolsIdPrefix = [['up', 'disup'], ['down', 'disdown'], ['last', 'dislast'], ['first','disfirst']];
+			var listShuttleCotrolsIdPrefix = [['copy', 'discopy'], ['copyAll', 'discopyAll'], ['remove', 'disremove'], ['removeAll','disremoveAll']];
+			
+			var sourceLayoutManager = new LayoutManager('#{clientId}internal_header_tab', '#{clientId}internal_tab');
+			var targetLayoutManager = new LayoutManager('#{clientId}tlInternal_header_tab', '#{clientId}tlInternal_tab');
+			
+			var listShuttle = new Richfaces.PickList(new Richfaces.PickList.Target('#{clientId}', '#{clientId}tlInternal_tab', '#{clientId}tlInternal_header_tab', '#{clientId}tlFocusKeeper', undefined, Richfaces.PickList.Target.SelectItem, #{this:getColumnClassesAsJSArray(context, component)}, #{this:getRowClassesAsJSArray(context, component)}),
+											  			new Richfaces.PickList.Source('#{clientId}', '#{clientId}internal_tab', '#{clientId}internal_header_tab', '#{clientId}focusKeeper', undefined, Richfaces.PickList.Source.SelectItem, #{this:getColumnClassesAsJSArray(context, component)}, #{this:getRowClassesAsJSArray(context, component)}), 
+											  			"#{clientId}", listShuttleCotrolsIdPrefix, "#{switchByClick}", sourceLayoutManager, targetLayoutManager, #{this:getAsEventHandler(context, component, "onlistchanged")},
+											  			"#{clientId}valueKeeper");
+			sourceLayoutManager.widthSynchronization();
+			targetLayoutManager.widthSynchronization();
+		});
+	</script>
 </f:root>
\ No newline at end of file




More information about the richfaces-svn-commits mailing list