Пример #1
0
 public StackedBarChart() {
   setRendererType(DEFAULT_RENDERER);
   ResourceHolder resourceHolder = getResourceHolder();
   if (resourceHolder != null) {
     resourceHolder.addResource("/yui/utilities/utilities.js");
     resourceHolder.addResource("/yui/datasource/datasource-min.js");
     resourceHolder.addResource("/yui/swf/swf-min.js");
     resourceHolder.addResource("/yui/charts/charts-min.js");
     resourceHolder.addResource("/jquery/jquery.js");
     resourceHolder.addResource("/primefaces/core/core.js");
     resourceHolder.addResource("/primefaces/charts/charts.js");
   }
 }
Пример #2
0
 public Panel() {
   setRendererType(DEFAULT_RENDERER);
   ResourceHolder resourceHolder = getResourceHolder();
   if (resourceHolder != null) {
     resourceHolder.addResource("/primefaces/menu/menu.css");
     resourceHolder.addResource("/primefaces/panel/panel.css");
     resourceHolder.addResource("/yui/utilities/utilities.js");
     resourceHolder.addResource("/yui/container/container-min.js");
     resourceHolder.addResource("/primefaces/menu/menu.js");
     resourceHolder.addResource("/jquery/jquery.js");
     resourceHolder.addResource("/primefaces/core/core.js");
     resourceHolder.addResource("/primefaces/panel/panel.js");
   }
 }