You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by "Bob Schellink (JIRA)" <ji...@apache.org> on 2010/03/05 03:41:27 UTC
[jira] Created: (CLK-638) Support Dynamic Forms
Support Dynamic Forms
---------------------
Key: CLK-638
URL: https://issues.apache.org/jira/browse/CLK-638
Project: Click
Issue Type: New Feature
Components: core
Reporter: Bob Schellink
Assignee: Bob Schellink
One area where Click can improve is supporting dynamic forms. Typical example is registering JavaScript events on Fields to submit the Form and then add more Fields as the user navigates the Form.
Couple of reasons make this problematic. Form automatically validates its fields. One can switch off this validation but need to keep in mind to switch validation back on for non JS submissions.
The other area which is tricky is that all dynamic fields must be added in the Page onInit event in order to be processed properly. One can invoke field.bindRequestValue to query the field's value, but bindRequestValue doesn't properly check whether or not its parent Form was submitted.
I propose we add a couple of helper methods to Form and Field to make this process smoother eg:
void field.bind();
boolean field.bindAndValidate(); <- will return true if the field is valid, false otherwise
form.bindFields();
boolean form.bindAndValidateFields(); <- will return true if *all* fields are valid, false otherwise
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CLK-638) Support Dynamic Forms
Posted by "Bob Schellink (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLK-638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842141#action_12842141 ]
Bob Schellink commented on CLK-638:
-----------------------------------
Instead of cluttering Form/Field we could add bind helper methods to ClickUtils instead...
> Support Dynamic Forms
> ---------------------
>
> Key: CLK-638
> URL: https://issues.apache.org/jira/browse/CLK-638
> Project: Click
> Issue Type: New Feature
> Components: core
> Affects Versions: 2.1.0
> Reporter: Bob Schellink
> Assignee: Bob Schellink
> Fix For: 2.2.0
>
>
> One area where Click can improve is supporting dynamic forms. Typical example is registering JavaScript events on Fields to submit the Form and then add more Fields as the user navigates the Form.
> Couple of reasons make this problematic. Form automatically validates its fields. One can switch off this validation but need to keep in mind to switch validation back on for non JS submissions.
> The other area which is tricky is that all dynamic fields must be added in the Page onInit event in order to be processed properly. One can invoke field.bindRequestValue to query the field's value, but bindRequestValue doesn't properly check whether or not its parent Form was submitted.
> I propose we add a couple of helper methods to Form and Field to make this process smoother eg:
> void field.bind();
> boolean field.bindAndValidate(); <- will return true if the field is valid, false otherwise
> form.bindFields();
> boolean form.bindAndValidateFields(); <- will return true if *all* fields are valid, false otherwise
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CLK-638) Support Dynamic Forms
Posted by "Bob Schellink (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLK-638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bob Schellink resolved CLK-638.
-------------------------------
Resolution: Fixed
done
> Support Dynamic Forms
> ---------------------
>
> Key: CLK-638
> URL: https://issues.apache.org/jira/browse/CLK-638
> Project: Click
> Issue Type: New Feature
> Components: core
> Affects Versions: 2.1.0
> Reporter: Bob Schellink
> Assignee: Bob Schellink
> Fix For: 2.2.0
>
>
> One area where Click can improve is supporting dynamic forms. Typical example is registering JavaScript events on Fields to submit the Form and then add more Fields as the user navigates the Form.
> Couple of reasons make this problematic. Form automatically validates its fields. One can switch off this validation but need to keep in mind to switch validation back on for non JS submissions.
> The other area which is tricky is that all dynamic fields must be added in the Page onInit event in order to be processed properly. One can invoke field.bindRequestValue to query the field's value, but bindRequestValue doesn't properly check whether or not its parent Form was submitted.
> I propose we add a couple of helper methods to Form and Field to make this process smoother eg:
> void field.bind();
> boolean field.bindAndValidate(); <- will return true if the field is valid, false otherwise
> form.bindFields();
> boolean form.bindAndValidateFields(); <- will return true if *all* fields are valid, false otherwise
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CLK-638) Support Dynamic Forms
Posted by "Bob Schellink (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLK-638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bob Schellink updated CLK-638:
------------------------------
Affects Version/s: 2.1.0
Fix Version/s: 2.2.0
> Support Dynamic Forms
> ---------------------
>
> Key: CLK-638
> URL: https://issues.apache.org/jira/browse/CLK-638
> Project: Click
> Issue Type: New Feature
> Components: core
> Affects Versions: 2.1.0
> Reporter: Bob Schellink
> Assignee: Bob Schellink
> Fix For: 2.2.0
>
>
> One area where Click can improve is supporting dynamic forms. Typical example is registering JavaScript events on Fields to submit the Form and then add more Fields as the user navigates the Form.
> Couple of reasons make this problematic. Form automatically validates its fields. One can switch off this validation but need to keep in mind to switch validation back on for non JS submissions.
> The other area which is tricky is that all dynamic fields must be added in the Page onInit event in order to be processed properly. One can invoke field.bindRequestValue to query the field's value, but bindRequestValue doesn't properly check whether or not its parent Form was submitted.
> I propose we add a couple of helper methods to Form and Field to make this process smoother eg:
> void field.bind();
> boolean field.bindAndValidate(); <- will return true if the field is valid, false otherwise
> form.bindFields();
> boolean form.bindAndValidateFields(); <- will return true if *all* fields are valid, false otherwise
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CLK-638) Support Dynamic Forms
Posted by "Andrei Ionescu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLK-638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845461#action_12845461 ]
Andrei Ionescu commented on CLK-638:
------------------------------------
Please add this functionality to FormTables too:
https://issues.apache.org/jira/browse/CLK-645
> Support Dynamic Forms
> ---------------------
>
> Key: CLK-638
> URL: https://issues.apache.org/jira/browse/CLK-638
> Project: Click
> Issue Type: New Feature
> Components: core
> Affects Versions: 2.1.0
> Reporter: Bob Schellink
> Assignee: Bob Schellink
> Fix For: 2.2.0
>
>
> One area where Click can improve is supporting dynamic forms. Typical example is registering JavaScript events on Fields to submit the Form and then add more Fields as the user navigates the Form.
> Couple of reasons make this problematic. Form automatically validates its fields. One can switch off this validation but need to keep in mind to switch validation back on for non JS submissions.
> The other area which is tricky is that all dynamic fields must be added in the Page onInit event in order to be processed properly. One can invoke field.bindRequestValue to query the field's value, but bindRequestValue doesn't properly check whether or not its parent Form was submitted.
> I propose we add a couple of helper methods to Form and Field to make this process smoother eg:
> void field.bind();
> boolean field.bindAndValidate(); <- will return true if the field is valid, false otherwise
> form.bindFields();
> boolean form.bindAndValidateFields(); <- will return true if *all* fields are valid, false otherwise
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CLK-638) Support Dynamic Forms
Posted by "Malcolm Edgar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLK-638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842223#action_12842223 ]
Malcolm Edgar commented on CLK-638:
-----------------------------------
I think this is probably a good approach.
regards Malcolm Edgar
> Support Dynamic Forms
> ---------------------
>
> Key: CLK-638
> URL: https://issues.apache.org/jira/browse/CLK-638
> Project: Click
> Issue Type: New Feature
> Components: core
> Affects Versions: 2.1.0
> Reporter: Bob Schellink
> Assignee: Bob Schellink
> Fix For: 2.2.0
>
>
> One area where Click can improve is supporting dynamic forms. Typical example is registering JavaScript events on Fields to submit the Form and then add more Fields as the user navigates the Form.
> Couple of reasons make this problematic. Form automatically validates its fields. One can switch off this validation but need to keep in mind to switch validation back on for non JS submissions.
> The other area which is tricky is that all dynamic fields must be added in the Page onInit event in order to be processed properly. One can invoke field.bindRequestValue to query the field's value, but bindRequestValue doesn't properly check whether or not its parent Form was submitted.
> I propose we add a couple of helper methods to Form and Field to make this process smoother eg:
> void field.bind();
> boolean field.bindAndValidate(); <- will return true if the field is valid, false otherwise
> form.bindFields();
> boolean form.bindAndValidateFields(); <- will return true if *all* fields are valid, false otherwise
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.