You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by "Joseph Schmidt (JIRA)" <ji...@apache.org> on 2010/02/23 11:48:28 UTC

[jira] Created: (CLK-631) Ajax-Select demo with jQuery instead of Prototype

Ajax-Select demo with jQuery instead of Prototype
-------------------------------------------------

                 Key: CLK-631
                 URL: https://issues.apache.org/jira/browse/CLK-631
             Project: Click
          Issue Type: Improvement
          Components: examples
            Reporter: Joseph Schmidt


Please make the click-examples/ajax-select demo:
http://avoka.com/click-examples/ajax/ajax-select.htm
to use jQuery instead of Prototype, the same way it's done with the Accordion example:
http://avoka.com/click-examples/ajax/ajax-accordion.htm

jQuery seems to have a much more simple and short syntax and there seems to be way more books for jQuery than for Prototype, so for new users it would be easier to reuse a jQuery example than the actual Prototype one, and get started with Click.

Thank you,
Joseph.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (CLK-631) Ajax-Select demo with jQuery instead of Prototype

Posted by "Bob Schellink (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLK-631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839651#action_12839651 ] 

Bob Schellink edited comment on CLK-631 at 3/1/10 11:47 AM:
------------------------------------------------------------

I agree, Ajax apps is quite a bit more complex than non Ajax apps. I have posted a couple of Ajax proposals to integrate in a future version of Click. You can view the proposals here: 

http://cwiki.apache.org/confluence/display/CLICK/Ajax+Proposals

Sounds as if you are mostly interested in using Ajax to GET data from the server instead of POSTing data? In that case proposal 1 sounds like a good option? In other words you write all the JS yourself and call Page methods to return data and controls?


      was (Author: sabob):
    I agree, Ajax apps is quite a bit more complex than non Ajax apps. I have posted a couple of Ajax proposals to integrate in a future version of Click. You can view the proposals here: 

  
> Ajax-Select demo with jQuery instead of Prototype
> -------------------------------------------------
>
>                 Key: CLK-631
>                 URL: https://issues.apache.org/jira/browse/CLK-631
>             Project: Click
>          Issue Type: Improvement
>          Components: examples
>            Reporter: Joseph Schmidt
>
> Please make the click-examples/ajax-select demo:
> http://avoka.com/click-examples/ajax/ajax-select.htm
> to use jQuery instead of Prototype, the same way it's done with the Accordion example:
> http://avoka.com/click-examples/ajax/ajax-accordion.htm
> jQuery seems to have a much more simple and short syntax and there seems to be way more books for jQuery than for Prototype, so for new users it would be easier to reuse a jQuery example than the actual Prototype one, and get started with Click.
> Thank you,
> Joseph.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (CLK-631) Ajax-Select demo with jQuery instead of Prototype

Posted by "Bob Schellink (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLK-631?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bob Schellink closed CLK-631.
-----------------------------

    Resolution: Won't Fix

There are now a number of jQuery and Prototype examples. There isn't a specific jQuery Select demo, but its trivial to use jQuery instead of Prototype. Simple use jQuery.get instead of Ajax.Updater.

> Ajax-Select demo with jQuery instead of Prototype
> -------------------------------------------------
>
>                 Key: CLK-631
>                 URL: https://issues.apache.org/jira/browse/CLK-631
>             Project: Click
>          Issue Type: Improvement
>          Components: examples
>            Reporter: Joseph Schmidt
>
> Please make the click-examples/ajax-select demo:
> http://avoka.com/click-examples/ajax/ajax-select.htm
> to use jQuery instead of Prototype, the same way it's done with the Accordion example:
> http://avoka.com/click-examples/ajax/ajax-accordion.htm
> jQuery seems to have a much more simple and short syntax and there seems to be way more books for jQuery than for Prototype, so for new users it would be easier to reuse a jQuery example than the actual Prototype one, and get started with Click.
> Thank you,
> Joseph.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLK-631) Ajax-Select demo with jQuery instead of Prototype

Posted by "Joseph Schmidt (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLK-631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840588#action_12840588 ] 

Joseph Schmidt commented on CLK-631:
------------------------------------

> You can view the proposals here: 
> http://cwiki.apache.org/confluence/display/CLICK/Ajax+Proposals
Very nice. I sent it to several users, and I'll post the collected comments on the dev list.

> Sounds as if you are mostly interested in using Ajax to GET data from the server instead of POSTing data?
GET for view-ing/loading content, but not for deleting - there's should be no delete or back-end changed based on a HTTP GET.

> In that case proposal 1 sounds like a good option? 
> In other words you write all the JS yourself and call Page methods to return data and controls? 
I would like approach 1 to a degree, but without writing the JS :), but to be able do do it when it's very very simple or when it's not covered. For the written JS, also I wouldn't like to use the URLs as direct strings but as Page objects so that Click resolves the correct rewriting/urlencoding and parameters.

> Ajax-Select demo with jQuery instead of Prototype
> -------------------------------------------------
>
>                 Key: CLK-631
>                 URL: https://issues.apache.org/jira/browse/CLK-631
>             Project: Click
>          Issue Type: Improvement
>          Components: examples
>            Reporter: Joseph Schmidt
>
> Please make the click-examples/ajax-select demo:
> http://avoka.com/click-examples/ajax/ajax-select.htm
> to use jQuery instead of Prototype, the same way it's done with the Accordion example:
> http://avoka.com/click-examples/ajax/ajax-accordion.htm
> jQuery seems to have a much more simple and short syntax and there seems to be way more books for jQuery than for Prototype, so for new users it would be easier to reuse a jQuery example than the actual Prototype one, and get started with Click.
> Thank you,
> Joseph.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLK-631) Ajax-Select demo with jQuery instead of Prototype

Posted by "Bob Schellink (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLK-631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839637#action_12839637 ] 

Bob Schellink commented on CLK-631:
-----------------------------------

@Andre: care to elaborate on why ClickClick is too complex? The basic idea of CC is to use Ajax enabled controls so you don't have to write Ajax code yourself. For example:

http://clickclick-jquery.appspot.com/ajax/text-demo.htm
http://code.google.com/p/clickclick/source/browse/trunk/clickclick/jquery-examples/src/net/sf/clickclick/examples/jquery/page/ajax/TextDemo.java

Wrt to the ajax-select demo, isn't it a case of replacing the prototype client side code with jQuery code? Nothing has to change on the server. jQuery has plenty of examples to get you going:

http://api.jquery.com/jQuery.get/

kind regards

bob

> Ajax-Select demo with jQuery instead of Prototype
> -------------------------------------------------
>
>                 Key: CLK-631
>                 URL: https://issues.apache.org/jira/browse/CLK-631
>             Project: Click
>          Issue Type: Improvement
>          Components: examples
>            Reporter: Joseph Schmidt
>
> Please make the click-examples/ajax-select demo:
> http://avoka.com/click-examples/ajax/ajax-select.htm
> to use jQuery instead of Prototype, the same way it's done with the Accordion example:
> http://avoka.com/click-examples/ajax/ajax-accordion.htm
> jQuery seems to have a much more simple and short syntax and there seems to be way more books for jQuery than for Prototype, so for new users it would be easier to reuse a jQuery example than the actual Prototype one, and get started with Click.
> Thank you,
> Joseph.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLK-631) Ajax-Select demo with jQuery instead of Prototype

Posted by "Bob Schellink (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLK-631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839651#action_12839651 ] 

Bob Schellink commented on CLK-631:
-----------------------------------

I agree, Ajax apps is quite a bit more complex than non Ajax apps. I have posted a couple of Ajax proposals to integrate in a future version of Click. You can view the proposals here: 


> Ajax-Select demo with jQuery instead of Prototype
> -------------------------------------------------
>
>                 Key: CLK-631
>                 URL: https://issues.apache.org/jira/browse/CLK-631
>             Project: Click
>          Issue Type: Improvement
>          Components: examples
>            Reporter: Joseph Schmidt
>
> Please make the click-examples/ajax-select demo:
> http://avoka.com/click-examples/ajax/ajax-select.htm
> to use jQuery instead of Prototype, the same way it's done with the Accordion example:
> http://avoka.com/click-examples/ajax/ajax-accordion.htm
> jQuery seems to have a much more simple and short syntax and there seems to be way more books for jQuery than for Prototype, so for new users it would be easier to reuse a jQuery example than the actual Prototype one, and get started with Click.
> Thank you,
> Joseph.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLK-631) Ajax-Select demo with jQuery instead of Prototype

Posted by "Andrei Ionescu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLK-631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839627#action_12839627 ] 

Andrei Ionescu commented on CLK-631:
------------------------------------

I would need a working Ajax Select demo with jQuery too.
The Ajax in ClickClick looks too complicated for me to understand it :(
It would be also nice, if the "list" wouldn't be a Select, but a simple list.

> Ajax-Select demo with jQuery instead of Prototype
> -------------------------------------------------
>
>                 Key: CLK-631
>                 URL: https://issues.apache.org/jira/browse/CLK-631
>             Project: Click
>          Issue Type: Improvement
>          Components: examples
>            Reporter: Joseph Schmidt
>
> Please make the click-examples/ajax-select demo:
> http://avoka.com/click-examples/ajax/ajax-select.htm
> to use jQuery instead of Prototype, the same way it's done with the Accordion example:
> http://avoka.com/click-examples/ajax/ajax-accordion.htm
> jQuery seems to have a much more simple and short syntax and there seems to be way more books for jQuery than for Prototype, so for new users it would be easier to reuse a jQuery example than the actual Prototype one, and get started with Click.
> Thank you,
> Joseph.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLK-631) Ajax-Select demo with jQuery instead of Prototype

Posted by "Andrei Ionescu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLK-631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839649#action_12839649 ] 

Andrei Ionescu commented on CLK-631:
------------------------------------

> @Andre: care to elaborate on why ClickClick is too complex? 
The main reason for using Click is that it's among the few frameworks I DO understand how it works (not really :) - but at least at a degree
to feel comfortable with it) - maybe I'm just not smart enough for the rest :(.

I took several looks over ClickClick and it just doesn't feels like Click - it's not that simple and predictable, like there's too much abstraction where's no need..., I don't know.

> The basic idea of CC is to use Ajax enabled controls so you don't have to write Ajax code yourself. 
True, but it looks like too much - it feels too much like Wicket :( - like trying to "over-componentizate" .
Looking at Wicket-stuff, it looks like they're trying to make components out if every single javascript bit and option (for the js frameworks approached there).
Maybe it's a good idea for ExtJS (since it's very component like everything there), but for the rest more sleek JS frameworks, it's not, or at least it does not feels like that.

A problem too is that the Javascript landscape is changing all the time and too fast for any Java framework to catch up really with it, so mapping it 1 to 1 in Java just doesn't feel right :(.



> Ajax-Select demo with jQuery instead of Prototype
> -------------------------------------------------
>
>                 Key: CLK-631
>                 URL: https://issues.apache.org/jira/browse/CLK-631
>             Project: Click
>          Issue Type: Improvement
>          Components: examples
>            Reporter: Joseph Schmidt
>
> Please make the click-examples/ajax-select demo:
> http://avoka.com/click-examples/ajax/ajax-select.htm
> to use jQuery instead of Prototype, the same way it's done with the Accordion example:
> http://avoka.com/click-examples/ajax/ajax-accordion.htm
> jQuery seems to have a much more simple and short syntax and there seems to be way more books for jQuery than for Prototype, so for new users it would be easier to reuse a jQuery example than the actual Prototype one, and get started with Click.
> Thank you,
> Joseph.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.