> > * ability to skip the update phase to just check for
> > validation/conversion errors (would be nice functionality)
>
> Trinidad has probably the most extensive set of fully
> client-side conversion/validation checking out there,
> obviating the need to post back to the server.

While client side validation is nice, it is not a replacement to
server-side validation. Sometimes validation needs to hit the database
(like to see if a username is already taken), or sometimes validation
is more complex (hibernate validation using the model for example).

> > * ajax on event functionality (re-render such-and-such when a select
> > box changes value for example)
>
> Yes (autoSubmit + partialTriggers).

This seems a bit limiting. It doesn't look like autoSubmit lets the
developer specify which events trigger the AJAX call (for example a
specific key press). Also there doesn't look like a comparable
component to a4j:support that allows for additional functionality.
Example of that functionality: append "return false;" on the event of
the component to swallow the HTML event, can work on any JSF component
(including tomahawk components).

I guess "TrPage.getInstance().sendFormPost(form, {yourparams]);" is
required for this functionality?

> > How easy is it to write custom trinidad ajax components?
>
> Pretty simple.  All you need to initiate a Trinidad AJAX request
> from JS is:
>   TrPage.getInstance().sendFormPost(form, {yourparams]);
> (again, in 1.0.2)

Is there JS documentation? I cannot find any on this function on the
myfaces trinidad site. Does this allow you to specify the components
to be updated (replicate the partial trigger functionality)?

Couple of additional questions:

Is there AJAX queue functionality (to be able to have simultaneous
requests or have some wait for others)?

Is there a request delay feature? (fire the AJAX request on key down
but no more than once per 5 seconds for example).

Is there a way for components to specify their JavaScript and CSS file
requirements so that they are loaded correctly before or during a
partial rendering?

Thanks,
Andrew

Reply via email to