click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Schellink (JIRA)" <>
Subject [jira] Commented: (CLK-508) Move isFormSubmission check to Field
Date Thu, 02 Apr 2009 19:09:12 GMT


Bob Schellink commented on CLK-508:

You're absolutely right, using the Javascript submit trick would be more useful. We should
probably add a FormActionLink (or SubmitLink) that manages an internal HiddenField to post
its parameters.

CheckboxTree could also be changed to use this new link as well.

AutoCompleteTextField does in fact use Ajax post, however because the Form itself is not submitted
when editing the Field, Form does not process its child controls. What we then do is add the
Field to the Page in order for Click to "reach" the control and process it. However as outlined
above this doesn't support the case where two fields with the same name is added.

Btw ClickClick provides a bit better Ajax support by allowing an Ajax control to register
itself to the AjaxControlRegistry, thus Click has direct access to any registered Ajax control
even if that control is nested within a Form.

> Move isFormSubmission check to Field
> ------------------------------------
>                 Key: CLK-508
>                 URL:
>             Project: Click
>          Issue Type: Improvement
>          Components: core, extras
>            Reporter: Bob Schellink
>            Assignee: Bob Schellink
>             Fix For: 2.1.0
> Currently Form determines whether its child controls should be processed based on whether
Form was submitted or not. This restriction works well for Fields, however problems arise
when adding components such as ActionLink, Tables and Trees which need to be processed even
when Form is not submitted. Ajax based Fields also has this problem and often need to be added
to the Page in order to be processed.
> This issue will try and address the problem by introducing a new Field method called
"canProcess". This method will return true if the Form is submitted or if its a Ajax request.

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

View raw message