-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3512254
By: nobody
Hi,
I've tried the ZK XUL framework, and I found it simply wonderful.
I started this summer to write a framework with similar ideas, but I resigned...
I would like to develop my next project with ZK, but I would prefer to use Mozilla XUL.
I know that ZK renders zul pages in html (and so it's cross browsing compatible), but I prefer to use Mozilla and its XUL engine, with all those beautiful widgets.
Is it possible to render a zul page to Mozilla XUL instead of html?
Maybe rewriting all components?
I guess it would be simple, cause you don't have to render a zul component into many html tags (a zul <tree> would be a xul <tree>).
Thank you, bye.
--
RCarter
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3512329
By: tomyeh
Yes, it should be straight forward.
You might take a look at the source codes of the zhtml sub-project. It maps each HTML tag to a ZK component.
When you developed such project, you are welcome to share it on ZK.forge ( http://sourceforge.net/projects/zkforge/ ).
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3512412
By: nobody
OK.
I gave it a look, but because I'm not an expert, here is what I would change on zhtml:
- update the file archive/metainfo/zk/lang.xml writing all Mozilla XUL tags and the corresponding java class;
- update com/potix/zhtml/impl/AbstractTag.java and set not-childeable tags of XUL;
- create a class for every tag and on the contructor, call super("tag");
and here is a question:
- are you sure it's so simple? I don't have to recreate events and all things that you do on ZUL classes (for example: com.potix.xul.html.Button)?.
I would like to use Mozilla XUL, but with the same functionalities of ZUL.
Thank you
bye
--
RCarter
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3512558
By: tomyeh
In addition to enscapulating XUL tag with a ZK component, you have to use JavaScript to intercept events and send back to the server.
For ZHTML, it is done by addEventJavaScript in AbstractTag.java.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3514556
By: matteo_barbieri
If I want the same functionalities of ZUL (same events) also with XUL, I have to write also JavaScript code or only addEventJavaScript("onXxx")?
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3514907
By: tomyeh
The bottom line is the script written in ZUML is interpreted at the server.
On the other hand, XUL's script is interpreted by the browser. Thus, you have to write JavaScript to send a request back to the server and trigger ZK to interpret the script (pure Java).
I suggested you started with onClick or handful events. Refactor them after getting more experiences on it.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3516580
By: matteo_barbieri
Ok, thanks.
I don't know if I have time to do this, but I think it could be very useful.
With this you could write a web application with the GUI and interactions of standalone one.
Bye
Asked: 2006-01-09 07:49:33 +0800
Seen: 1,109 times
Last updated: Jan 11 '06