-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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
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.
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
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
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
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3577756
By: henrichen
Glad to know that your issues are solved :)
/henri
Asked: 2006-02-10 15:23:38 +0800
Seen: 641 times
Last updated: Feb 15 '06