0

Streaming XML

asked 2006-02-10 15:23:38 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3569420

By: n8dawgrr

Hi

Just one more question. Is it possible to dynamically stream XUI style gui data into ZK? The scenario is like this: The user could do a search, and return a number of results into a search pane. The search results could even dynamically update as the user changes their search profile. The results however would be rich components. So on the server side, I would query a database, build up a the XUI xml stream and then stream that to ZK for display in the client browser. Is this possible at all?

- Nathan

delete flag offensive retag edit

5 Replies

Sort by ยป oldest newest

answered 2006-02-13 03:10:31 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3572533

By: tomyeh

Do you mean xui.sourceforge.net? I am not familiar with XUI.

However, it is simple to stream data to ZK components. To stream an image, use the image component (by setContent). To stream an audio, use the audio component.
To stream any kind of data (such as Excel, PDF...), use the iframe component.

link publish delete flag offensive edit

answered 2006-02-14 15:04:38 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3575237

By: n8dawgrr

Hi Tom,

Sorry I didn't make my post so clear. Essentially I want to accomplish the
following: Imagien the user has a search pane. When they click search I want to return lots of lovely rich objects to fill that serach pane. Now I could easily do this programatically with listeners etc. The problem is I dont want to build the objects to return programatically, I'd like to just instantiate a type of object defined in an .zul file. Is this possible? For instance I may have a .zul file which defines a 'search result' type. This type is just a collection of xml of course. In my event handler I cand just say, instantiate 10 of these and fill the browser search pane window with them.

Does this make things clearer? Perhaps not :(

- Nathan

link publish delete flag offensive edit

answered 2006-02-15 01:02:27 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3576889

By: henrichen

Hi, Nathan,

Is this your usecase?

1. End user enter search criteria and click submit.
2. Server proceed the searching and generate a result.zul file 3. Here is the question you ask: "can I generate components directly from result.zul?"

If so, there are two ways to do it:
(a) Call Executions.createComponentsDirectly() and feed your result.zul file.
(b) Use <include> component and call setSrc("result.zul") should do the trick.

/henri

link publish delete flag offensive edit

answered 2006-02-15 11:47:19 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3577473

By: n8dawgrr

Hi Henri,

This is exactly what I was after. Thanks very much for your prompt response
:)

- Nathan

link publish delete flag offensive edit

answered 2006-02-15 14:51:28 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3577756

By: henrichen

Glad to know that your issues are solved :)

/henri

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: 2006-02-10 15:23:38 +0800

Seen: 641 times

Last updated: Feb 15 '06

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