-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have a requirement to create a page that handles both CREATE and UPDATE operation. For example, there is a page with 10 different fields. I want to show only 5 fields while CREATE parameter (action=create) being passed from another application. In the same way, want to show all 10 fields when UPDATE parameter(action=update) is received.
where to catch the event in zul page before rendering it to the browser? I am using java for the back end.
Appreciate your help.
You don't need to catch any event.
A CREATE will have no id normally so you could use in the zul the if
attribute and test it against the ID being there or not.
Greetz chill.
Hello jawak,
If you want to accomplish this task with java then you could use executions as shown below (scenario is that the parameters are passed via url):
https://javadude.wordpress.com/2012/12/03/code-snippet-zk-controller-reading-url-parameter/
After that you can set the visibility depending if it is mvc or mvvm.
Best,
Darksu
Asked: 2015-11-11 18:44:29 +0800
Seen: 19 times
Last updated: Nov 12 '15
Problem binding values to a composite component
How to access static member field of a class in zul without zscript
How can i load a constant in .zul
MVVM Validator: class not found ? [closed]
MVVM tab box - delay @load until tab pane displayed?
mvvm, load or save with after or before for seach command
how to fire an event when a variable value loaded through VM
is there any event trigger from zk component on binding ?
ZK team plans to dispose of Composer EventQueues no longer in scope? [closed]