Hi Hantsy,

PageActions are indeed action based, but the new Behavior interface is
targeted at Controls allowing one to build Ajax aware controls. For
example, the AutoCompleteTextField uses an internal Behavior to
enhance the Field with Ajax callback support.

The click-jquery[1] project enhances Clicks Ajax support by
integrating jquery taconite[2], providing multiple DOM update support.

Why don't we build our own JS lib? Because I think its largely
unnecessary. Unlike Wicket, Click is stateless with predictable and
bookmarkable URLs. So its easy to integrate with well established JS
libs (jQuery, Prototype et al.) without reinventing the wheel. Again
see click-jquery[1] which integrates with a wide array of jQuery
plugins including jQuery Form and JSTree.

I would also like Click core to stay independent of a specific JS
library implementation.

Kind regards

Bob

[1]: http://code.google.com/p/click-jquery/
[2]: http://jquery.malsup.com/taconite/


On Sat, Sep 4, 2010 at 11:14 AM, Hantsy Bai <[email protected]> wrote:
>  Hi,
>
>
> I am confused about the Ajax support in Click framewrok.
>
> Click as a component based web framework, but the ajax support is like the
> traditional action based framework(such as struts1/2.x).
>
> 1. why ajax update are not base on Control, like Wicket/JSF2, such as click
> a button, rerender one Control in current page or replace it with other
> Control or append a Control to some specified Control, this is the nature
> way in a component based framework.
>
> 2. Provide Seam like remote js library, make js client use Click Control
> directly in javascript.
>
>
> Regards
>
> Hantsy
>
> 于 2010/9/4 1:37, Beto 写道:
>>
>> Bob,
>>
>> Just a little correction
>>
>> (https://hudson.apache.org/hudson/view/Click/job/Click/javadoc/docs/user-guide/html/ch04s02.html)
>> Last item should be:
>>
>> setContentType(String) - set the ActionResult content type, for
>> example: text/html, text/xml, application/json etc.
>>
>> instead of:
>>
>> setModel(Map) - set the ActionResult content type, for example:
>> text/html, text/xml, application/json etc.
>>
>> Regards,
>>
>> Gilberto
>>
>> On Fri, Sep 3, 2010 at 8:42 AM, Bob Schellink<[email protected]>  wrote:
>>>
>>> Hi all,
>>>
>>> There is now a chapter covering the new Ajax support[1] and a section
>>> on Page actions[2].
>>>
>>> Let me know if there are areas that aren't covered or needs to be
>>> expanded upon.
>>>
>>> Kind regards
>>>
>>> Bob
>>>
>>>
>>> [1]:https://hudson.apache.org/hudson/view/Click/job/Click/javadoc/docs/user-guide/html/ch04.html
>>>
>>> [2]:https://hudson.apache.org/hudson/view/Click/job/Click/javadoc/docs/user-guide/html/ch02s07.html
>>>
>
>

Reply via email to