ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

Anyone ever tried this? jQtouch / jQuery Mobile + ZK

valmarTop Contributor
17 Jul 2011 06:02:21 GMT
17 Jul 2011 06:02:21 GMT

Both, jQtouch as well as jQuery mobile are awesome UI frameworks for mobile development.

Has anyone ever tried to combine them with ZK to create mobile versions of their web applications?

I mean, if ZK supports jQuery, wouldn't there be a way to implement jQuery Mobile support?

cyiannoulis
18 Jul 2011 03:56:57 GMT
18 Jul 2011 03:56:57 GMT

A few weeks ago we deployed a corporate application for the new iPads we have purchased. At first our intension was to build the application using ZK. Unfortunately we had many problems (grid scrolling, paging etc) and i had posted some issues in this forum until we realized that the problem had nothing to do with ZK. It is safari's problem running on iPhone/iPad which cannot parse ajax requests correctly. To ensure that it was not ZK's problem we have made some additional tests with other Ajax frameworks having the same results. Finally, the only option was to use native jsp pages with jqTouch.

Notice that we have not tested ZK against other smartphones or tablets. Just iPhone/iPad. I don't know if the same problems exist with android.

valmarTop Contributor
18 Jul 2011 05:57:39 GMT
18 Jul 2011 05:57:39 GMT

Are you serious? Safari mobile cannot handle Ajax requests? O.o

cyiannoulis
18 Jul 2011 06:41:27 GMT
18 Jul 2011 06:41:27 GMT

I didn't say it does not handle ajax requests at all. I said that it does not handle correctly all ajax requests which is something that unfortunately you realize after having built the first "simple" pages and go deeper in more complex things.

hope that helps

valmarTop Contributor
18 Jul 2011 08:35:02 GMT
18 Jul 2011 08:35:02 GMT

Hm, that sounds very weird :-)
What do you mean by "not all ajax requests"?
What kind of requests does Safari not process?

cyiannoulis
18 Jul 2011 08:58:37 GMT
18 Jul 2011 08:58:37 GMT

I would suggest you to try to run the ZK demo using an ipad. You should see some "strange" behavior in various controls.

jimmyshiau
19 Jul 2011 06:36:10 GMT
19 Jul 2011 06:36:10 GMT

Hi cyiannoulis,

We have tested with zk demo on ipad,
did you see any demo that cannot work on ipad?

cyiannoulis
19 Jul 2011 11:41:00 GMT
19 Jul 2011 11:41:00 GMT

Hi jimmy. For example Grid -> Load On Demand :: Scroll bars are not displayed at all.

robertpic71Top Contributor
19 Jul 2011 15:03:34 GMT
19 Jul 2011 15:03:34 GMT

>> For example Grid -> Load On Demand :: Scroll bars are not displayed at all.
Same problem on android (2.3.3).

valmarTop Contributor
19 Jul 2011 16:39:57 GMT
19 Jul 2011 16:39:57 GMT

Hm, that's very interesting.
I can confirm that there are no scrollbars on Android 2.2.

However, I personally wouldn't use the standard ZK components for touch-based user interfaces since they don't seem to be optimized for that from a usability point of view.
Instead, I'd recommend creating a dedicated UI with jQtouch or jQuery mobile which gives the whole thing a much more usable and native look and feel. That also was the reason for my initial question.

tstewart
30 Aug 2011 19:12:18 GMT
30 Aug 2011 19:12:18 GMT

I saw something in a blog somewhere (sorry can't find it again now) about JQuery mobile support in ZK6. I'd be super-interested to learn any more about the potential for using ZK to make applications compatible with major mobile platforms. Any news from the team on that?

valmarTop Contributor
31 Aug 2011 06:49:08 GMT
31 Aug 2011 06:49:08 GMT

I had a skype call yesterday with some of the ZK team and they said that it would be technically possible to integrate jQuery mobile into ZK but they don't seem to really have plans for that yet.
They also asked me if I'd prefer a separate set of mobile components or additional mobile-compatible versions of the current ZK components.
Besides that they suggested to simply use the standard ZK desktop components for mobile since they'd work pretty well on smartphones and tables.
However, I personally would love jQuery mobile integration in ZK so my users get a more "native app" feeling from the UI.

TonyQ
31 Aug 2011 11:59:02 GMT
31 Aug 2011 11:59:02 GMT

If there's any ideas for the tough component would like or what they should do,
posting a feature request and it would be great .

http://tracker.zkoss.org

I love to write components , but the major issue for writing the tough device component for me,
is that I didn't aware of what user expect a tough component should be .


For my personal opinion , I don't think it's a good ideas to have a all-in-one component that could support both Desktop and mobile ,
it could be compatible in the basic manner , but I would not do that if I am really developing a webapp.

So I would prefer to have a additional component set that user to develop the pages for mobile only.


Have to highlight this , that's all my personal opinion. :)

valmarTop Contributor
31 Aug 2011 15:00:21 GMT
31 Aug 2011 15:00:21 GMT

I would love to see a navigation component which lets the user navigate between multiple pages with a nice sliding transition like: http://jquerymobile.com/demos/1.0b2/docs/pages/multipage-template.html
Basically I think that this concept is very similar to ZK's tabbox/tabpanel but it looks nicer, has this cool animation and a more "native mobile" look.

tstewart
31 Aug 2011 17:45:18 GMT
31 Aug 2011 17:45:18 GMT

Good example Valmar. In fact if you browse the jquery mobile demos on a phone, you can see just how much better the experience is than trying to do the same with the ZK demos on a phone. With the growth rate of mobile web, not having a convincing story for mobile could be a reason to pass over ZK as a framework. That would be a shame, as its the best AJAX framework I've come across - on the desktop at least.

I couldn't find the original Blog entry mentioning JQuery Mobile, but I did see mention of "ZK Reach" and "ZK Touch". I wonder what these are / were?

chanwit
6 Sep 2011 12:07:18 GMT
6 Sep 2011 12:07:18 GMT

I am working on a similar technology, called MZul, which is based on jQueryMobile. It's an MVC framework that runs on client-side only at the moment.
Here's a POC that I mimic ZK tags to render a mobile page. I am sure you can understand what this will look like :)

<?title "MZul"?>

<zk>
  <page id="p1" apply="FirstController">
    <header caption="Test">
      <button icon="home"/>
    </header>
    <content>
      <listview>
        <list-divider>Component</list-divider>
        <listitem href="#p2">Test</listitem>
      </listview>
      <dialog href="first.html">First Dialog</dialog>
    </content>
    <footer>OK</footer>
  </page>
  <page id="p2" apply="SecondController">
    <content>
      <listview>
        <list-divider>Page 2</list-divider>
        <listitem href="#p1">Test</listitem>
      </listview>
    </content>
  </page>
</zk>

valmarTop Contributor
7 Sep 2011 02:59:03 GMT
7 Sep 2011 02:59:03 GMT

Looks nice.
Any plans for "real" ZK integration and server-side logic?

chanwit
7 Sep 2011 04:03:48 GMT
7 Sep 2011 04:03:48 GMT

valmar,

It's based on jQueryMobile, which is different from the current jQuery stack used by ZK at the moment (at least the programming model behind).

The plans are two approaches, actually.
Firstly, a client-side only to generate Android or iOS applications. This approach is solely for making an offline app.
Secondly, a client/server approach, similar to the standard ZK at some level.
However, the programming model I am looking at now is from client -> server, rather than the server generating client codes.

valmarTop Contributor
7 Sep 2011 08:18:13 GMT
7 Sep 2011 08:18:13 GMT

That's a good idea since mobile applications often need to work offline without an internet connection.

chanwit
5 Feb 2012 15:43:40 GMT
5 Feb 2012 15:43:40 GMT

From the server-side programming perspective, I got a demo running:

http://dl.dropbox.com/u/381580/zkgrails/Zendo%20Mobile%2001.mp4

It's been integrating as ZK components atop ZK6.

1 2