0

ZK Framework Integration with IBM WAS

asked 2019-04-07 14:53:34 +0800

Mandip gravatar image Mandip
1

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 ?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-04-09 12:33:59 +0800

cor3000 gravatar image cor3000
6280 2 7

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

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2019-04-07 14:53:34 +0800

Seen: 4 times

Last updated: Apr 09 '19

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More