[JBoss JIRA] Created: (RF-7538) enable submit button when all the required fields within the form/region are set propertly
by Gary Hu (JIRA)
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
14 years
[JBoss JIRA] Created: (RF-7492) a4j:queue support for standard form submits as well as AJAX request
by Jay Balunas (JIRA)
a4j:queue support for standard form submits as well as AJAX request
-------------------------------------------------------------------
Key: RF-7492
URL: https://jira.jboss.org/jira/browse/RF-7492
Project: RichFaces
Issue Type: Feature Request
Components: component-misc
Affects Versions: 3.3.1
Reporter: Jay Balunas
Fix For: 4.0.0.BETA1
a4j:queue does not currently support forwarding standard form requests through an a4j:queue. This means that input items that are ajax enabled may be processed through a queue, but if the user clicks submit on the form that request that fire before items in the queue.
A user reported a work around. Use a4j:commandButton and then rerender the most of the page - not optimal.
We need to create an FAQ for the work around and investigate the standard form support.
Brainstorming: This behavior may not be possible on a global or page coped queue. A form scoped a4j:queue could behave like a4j:support and inject the needed behavior into the form tag.
--
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
14 years
[JBoss JIRA] Created: (RF-1870) Need to allow for single set of headers with datatable and embedded datatable
by David M. Karr (JIRA)
Need to allow for single set of headers with datatable and embedded datatable
-----------------------------------------------------------------------------
Key: RF-1870
URL: http://jira.jboss.com/jira/browse/RF-1870
Project: RichFaces
Issue Type: Feature Request
Affects Versions: 3.1.3
Reporter: David M. Karr
Priority: Minor
I have a need to present a datatable that models the information in a spreadsheet. As such, some of the columns are "scalars", which represent a single value per entity, and some of the columns are multi-valued, such that multiple row values correspond to a single entity.
For instance, consider the notion of a "Project" entity with "name" and "department" fields, along with a "servers" list property. Each server has "hostname", "cpuCount", and "platform" fields. I want to display a table with a single list of column headers, being "name", "department", "host name", "cpu count", and "platform" (and some others).
One row in the "projects" table will have an embedded table for servers.
In current functionality in v3.1.2, I can have a single header in the main datatable that corresponds to the embedded datatable (like "Servers"), and I can have headers in the embedded datatable (which would repeat for every project row), but there appears to be no way to just have a single set of headers representing all the existing columns unioned from the main datatable and the embedded datatable.
I've looked at the "subTable" component, but this doesn't appear to do what I need.
I will attach some artifacts that demonstrate what I'm trying to achieve.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years