Thank you very much for the detailed documentation and the Ajax implementation. It's good to see that Click has "default" support for Ajax. Even if Ajax was possible before, now, being default, Click won't come short when compared to other frameworks.

I am confused about the Ajax support in Click framework.
Me too :( :

It's important to have this new Ajax support, but to me it looks complicated
(at least compared to what I'm used with Click).

I understand that Ajax is not that easy, so maybe it's impossible with Click to offer the same level of "magic" like it usually does. Unfortunately, for me this "Behavior" functionality doesn't sounds "too natural". It also feels just too much like Wicket. The "Partial" - on the other hand was quite straight forward to understand.

Regarding the documentation:
A. https://hudson.apache.org/hudson/view/Click/job/Click/javadoc/docs/user-guide/html/ch02s07.html :
 1. "...template will not be rendered. More on this later."
--> The last phrase could be dropped or replaced with a direct link to the section that details the subject. This appears in several places in the documentation.

 2. "First we create our template:
     <img src="/mycorp/images.htm?pageAction=onRenderImage"/>
    "
--> shouldn't be "$context/mycorp...." ? Also this refers to the corresponding template: image.htm?

3. ..., a new Page instance is created and the attributes for the Page ..." ---> so each Ajax method call will create a new Page? Isn't this a performance problem since Ajax calls are many? Or the page can be stateful to reduce object creation?

4. "...Note, if you want to send a specific response to the client or perform a redirect you have to do that from the onSecurityCheck() event, since other Page events are not processed." ---> Is there an example how to send a specific response from onSecurityCheck? since it's not returning an ActionResponse to be able to returns something to the client.

Other questions to chapter 2.7:
5. can the pageAction parameter be configured/renamed by the user or is it hardcoded in Click?

6. If the content of the ActionResponse is complicated (but still not a complete page), is it possible to have Velocity render it the same way it does for a normal page?

B. https://hudson.apache.org/hudson/view/Click/job/Click/javadoc/docs/user-guide/html/ch04.html#ajax-overview 1. "You can use pure JavaScript or one of the popular JavaScript libraries such as: jQuery, Prototype ..." ---> I think here would be a good place to mention Click-JQuery project.

C. https://hudson.apache.org/hudson/view/Click/job/Click/javadoc/docs/user-guide/html/ch04s04.html ---> It would be nice if it would be possible to use that example without an anonymous class - the same way it's possible with other listeners. E.g. link.addBehavior("onAjaxAction").

I'm still trying to understand correctly the rest of Behaviors :), so if it's not in "code freeze" I will post later some more feedback.

regards,
Andrei.

Reply via email to