[richfaces-issues] [JBoss JIRA] Commented: (RF-7538) enable submit button when all the required fields within the form/region are set propertly
Jay Balunas (JIRA)
jira-events at lists.jboss.org
Sun Jul 19 07:36:29 EDT 2009
[ https://jira.jboss.org/jira/browse/RF-7538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12476785#action_12476785 ]
Jay Balunas commented on RF-7538:
---------------------------------
In the 4.0.X timeframe I would like to see this type of behavior accomplished using the behavior framework if JSF 2.0. Where you can do something like this.
The name is just a first pass
<a4j:commandButton ...>
<a4j:enableBehavior .... />
</a4j:commandButton>
When ready to implement we will need to create a wiki page and design/discuss.
> enable submit button when all the required fields within the form/region are set propertly
> ------------------------------------------------------------------------------------------
>
> Key: RF-7538
> URL: https://jira.jboss.org/jira/browse/RF-7538
> Project: RichFaces
> Issue Type: Feature Request
> Reporter: Gary Hu
>
> The submit button is not enabled until all the required fields within the form/region are set properly.
> I can think of two ways to implement it.
> 1) add a new attribute to a4j:form/a4j:rigion to indicate that if this feature is turned on/off. In addition, new attributes could be added to indicate the ids of the submit button, and/or ids of the required fields.
> For example:
> <a4j:form id="myForm" enableSubmitButtonForRequriedFields="true" submitButtonId="btnId" requiredFieldIds="id1,id2..." />
> 2) add a new attribute to a a4j:commandButton to indicate if this feature is turned on/off. In addtion, new attributes could be added to indicate the ids of the form/region and/or the ids of the required fields.
> For example:
> <a4j:commandButton id="btnId" enableSubmitButtonForRequriedFields="true" parentidforrequiredfields="myForm" />
> The example showed above means after all the required fields are set properly with the form "myForm" the button is enable.
> <a4j:commandButton id="btnId" enableSubmitButtonForRequriedFields="true" requiredFieldIds="id1, id2..." />
> The example showed above means after all the required fields specified by the attribute "requiredFieldIds" are set properly the button is enabled.
> Of course, the attribute "enableSubmitButtonForRequriedFields" could be optional. So only the "parentidforrequiredfields" or "requiredFieldIds" is checked to determine if the button needs to be enabled/disable.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list