0

ZK and Mozilla XUL

asked 2006-01-09 07:49:33 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

delete flag offensive retag edit

6 Replies

Sort by ยป oldest newest

answered 2006-01-09 09:05:12 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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/ ).

link publish delete flag offensive edit

answered 2006-01-09 10:27:28 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

link publish delete flag offensive edit

answered 2006-01-09 12:57:08 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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.

link publish delete flag offensive edit

answered 2006-01-10 10:52:17 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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")?

link publish delete flag offensive edit

answered 2006-01-10 15:07:04 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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.

link publish delete flag offensive edit

answered 2006-01-11 08:27:37 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

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-01-09 07:49:33 +0800

Seen: 1,109 times

Last updated: Jan 11 '06

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