[
https://jira.jboss.org/jira/browse/RF-7761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12482716#action_12482716
]
sanket behera commented on RF-7761:
-----------------------------------
Hi Nick,
Can you guide me how to do it as the form is getting submitted even though the
rquired text field is empty in any of the tab.
Thanks,
Sanket
> rich:tabPanel facing some issue
> --------------------------------
>
> Key: RF-7761
> URL: https://jira.jboss.org/jira/browse/RF-7761
> Project: RichFaces
> Issue Type: Feature Request
> Components: component
> Affects Versions: 3.3.1
> Environment: jsf-facelets.jar
> richfaces-api-3.3.0.GA.jar
> richfaces-impl-3.3.0.GA.jar
> richfaces-ui-3.3.0.GA.jar
> tomahawk12-1.1.7.jar
> myfaces-api-1.2.6.jar
> myfaces-impl-1.2.6.jar
> Reporter: sanket behera
> Priority: Critical
> Original Estimate: 1 day
> Remaining Estimate: 1 day
>
> We have a issue with tabPanel. We have two tabs within a tabpanel and the
> first tab has a <inputText> which is a required field.
> If we click on submit button staying in the first taband without entering
> anything to the inputtext than the validation error for the required input
> text is shown but when we switch to the second tab without entering the input
> text for first tab than the form is getting submitted without validating the
> inputtext. Can you please let me know hw this validation can be enabled
> before submitting the form.
> <rich:tabPanel name="tabpanel" width="40%" headerAlignment="right" >
> <rich:tab name="tab1" label="Canon" >
> <h:outputLabel value="Tab1" for="text1" />
> <h:inputText id="text1" required="true"
> requiredMessage="Required Field"/>
> <h:message id="msg1" for="text1" />
> </rich:tab>
> <rich:tab name="tab2" label="Nikon">
> <h:outputLabel value="Tab2" for="text2" />
>
> </rich:tab>
>
> </rich:tabPanel>
> <h:commandButton name="Button1" action="google.com" value="Submit" />
--
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
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues