-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
Scenerio: 2 files, main.zul and inc.zul
what is the correct way to access a ZK textbox component in an include ZUL file using Zscript inside the main ZUL?
I've noticed that accessing components in the main.zul can be accessed directly simply by using their IDs, whilst referencing it inside an include file, but not vice-versa.
e.g If a textbox in main.zul is created with id="firstname", then if zscript was used to call firstname.setValue("something") whilst in inc.zul this will set the textbox.
However accessing a textbox with id="surname" inside inc.zul does not work, if called from main.zul. e.g. surname.getValue("something")
If this a bug in ZK ??
Like JavaScript, var o = document.getElementById(theID), this will give reference to any object at any container level,
PAGE/FORM/COMPONENT
Is there an equivalent in ZK?
Thanks Steve
Hi you can refer to here
Asked: 2014-07-09 12:24:03 +0800
Seen: 18 times
Last updated: Sep 19 '14
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