0

Flash App + Servlet + ZK

asked 2011-07-01 20:06:52 +0800

rafaelt gravatar image rafaelt
6

Hi folks,

I have a flash app that posting a java servlet, I was wondering if can I update or access a listbox on a .zul page in this servlet???

I get null pointer exception using this: Path.getComponent("//main/materialListbox").

what am I doing wrong???

Best Regards

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2011-07-06 06:02:39 +0800

dennis gravatar image dennis
3679 1 6
http://www.javaworld.com....

Some ZK life cycle could only be access in zk life cycle (ex zk ajax update)
You should not access a zk component in you servlet, it is no safe.
You could use client side javascript to communicate between flash and zk server side information.

flash <-> your javascript <-> zkAu javascript <-> zkServer event <-> your event handler in zk

link publish delete flag offensive edit

answered 2011-07-06 19:49:22 +0800

rafaelt gravatar image rafaelt
6

Dennis,

Thanks for your reply. I found what I need, Im using Server Push :)

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2011-07-01 20:06:52 +0800

Seen: 234 times

Last updated: Jul 06 '11

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