-
FEATURED COMPONENTS
First time here? Check out the FAQ!
We faced below error initiating user defined transaction from onEvent method
"Error Message: CWNEN1000E: A JNDI operation on a java:comp/env name cannot be completed because the current thread is not associated with a Java Enterprise Edition application component. This condition can occur when the JNDI client using the java:comp/env name does not occur on the thread of a server application request. Make sure that a Java EE application does not run JNDI operations on java:comp/env names within static code blocks or in threads created by that application. Such code does not necessarily run on the thread of a server application request and therefore is not supported by JNDI operations on java:comp/env names "
solution for same <disable-event-thread>true</disable-event-thread> in zk.xml
Making disable-event-thread = true results into zk "doModal()" not working .
Do we have any other option to integrate ZK framework with IBM WAS Application Server ?
No in this scenario you can't use doModal()
.
Instead you have to use setMode(Window.Mode.MODAL)
, and register listeners to wait for further user interaction.
E.g. if you have an OK button in your modal window, continue processing when in an onClick
listener of the button, or an onClose
event for the modal window.
https://www.zkoss.org/javadoc/latest/zk/org/zkoss/zul/Window.html#doModal--
e.g. here a simple example showing this: http://zkfiddle.org/sample/433t54/1-Another-new-ZK-fiddle
Asked: 2019-04-07 14:53:34 +0800
Seen: 4 times
Last updated: Apr 09 '19