-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have a Component : mainContent, i want to load children into it so i use
Executions.createComponents("report1.zul", mainContent, args);
I have 2 report so:
Executions.createComponents("report1.zul", mainContent, args);
Executions.createComponents("report2.zul", mainContent, args);
Only one report loaded at a time, so when I load the report2
, I use function
mainContent.getChildren().clear()
to clear the report1
My problem is:
on the report1.zul
, zscript part: I declared a variable
LineChartEngineWithDateAxis lineEngine = new LineChartEngineWithDateAxis();
On the report2.zul, zscript part: I declared a variable
LineChartEngine lineEngine = new LineChartEngine();
And ZK show this message:
Typed variable declaration : Typed variable: lineEngine was previously declared with type: class vng.zingme.stats.chart.LineChartEngineWithDateAxis ...
I want to completely clear all the variable in report1.zul
page. What I need to do?
Hi Weasley,
Please use different variable name for lineEngine, it seems that the issue is about beanShell project, however, it is not update anymore.
Also, it is not recommended to use zscript in production environment.
Asked: 2013-10-15 04:28:22 +0800
Seen: 15 times
Last updated: Nov 27 '13
composite component help [closed]
EL in a forEach @command not working?
Different template for each grid row
Cardlayout animation is broken
Grid RowRender slow using 6.5.1 and sizable=true
setVisible(false), component will load or not
Decimalbox and doublebox value rounded on iPad
history management with page status
Why are using Zscript? While you can choose with visible or with some attribute which report you want to load?
sjoshi ( 2013-10-15 06:05:24 +0800 )editI have a group of reports, whenever i click on the report name, it will load the report content. I have over 1000 reports, so I don't want to write view model class for each report.
Weasley ( 2013-10-15 10:16:08 +0800 )edit