Discussions
Categories
- 196.8K All Categories
- 2.2K Data
- 239 Big Data Appliance
- 1.9K Data Science
- 450.3K Databases
- 221.7K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 550 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 544 SQLcl
- 4K SQL Developer Data Modeler
- 187K SQL & PL/SQL
- 21.3K SQL Developer
- 295.9K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.5K Development Tools
- 107 DevOps
- 3.1K QA/Testing
- 646K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 155 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 18 Java Essentials
- 160 Java 8 Questions
- 86K Java Programming
- 80 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 204 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 439 LiveLabs
- 38 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 171 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 232 Portuguese
Validation only on save (submit) button press

622758
Member Posts: 17
Hello everyone,
I have a simple question to ask. I have a create form with serveral required fields and some dependant drop downs. When I select a value in one drop down the form autosubmits and triggers the field validation which immediately displays an error. I do not want this to happen as the user has not attempted to save the record, is there a way to bypass the validation until the save button is pressed?
I tried to set immediate=true for the drop down but this does not work. (Works fine for buttons)
Cheers,
Peter
I have a simple question to ask. I have a create form with serveral required fields and some dependant drop downs. When I select a value in one drop down the form autosubmits and triggers the field validation which immediately displays an error. I do not want this to happen as the user has not attempted to save the record, is there a way to bypass the validation until the save button is pressed?
I tried to set immediate=true for the drop down but this does not work. (Works fine for buttons)
Cheers,
Peter
Tagged:
Best Answer
-
Oh, if you've got required fields or faces-level validators, you need to [turn off client-side validation|http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtTopicFile.jsf_apps|adfcreate|af_aclientsidevalidate~html/] as well.
If this still doesn't work, try using showRequired instead of required, and instead use the "Mandatory" setting in your underlying entity object (or view object, if it can't be done at the entity level).
Best,
Avrom
Edited by: Avrom Roy-Faderman on Sep 15, 2008 8:05 AM
Dont'cha just love the forum software? That link, without spaces, should be
http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtTopicFile.jsf_apps <pipe> adfcreate <pipe> af_clientsidevalidate~html
where <pipe> is the vertical line/flat colon.
Answers
-
http://thepeninsulasedge.com/frank_nimphius/2008/05/07/adf-faces-suppress-validation-on-ppr-request/
-
Thanks for the help!
This looks like the solution but I cannot get it to work. How do I use the PPRPageController in my application?
I have created the class and set it up in the faces config as a request scope bean but how do I get it to work
on all pages that need it?
Peter -
Look at EditDepartmentsPageDef.xml:
<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel" version="10.1.3.40.66" id="EditDepartmentsPageDef" Package="adf.sample.view.pageDefs" ControllerClass="#{PPRPageController}">{code} Hope this helps, Avrom Edited by: Avrom Roy-Faderman on Sep 15, 2008 6:27 AM
-
Ok,
I got it to work in a test page but it is not working correctly on the intended page. I think the check is happening before this phase because if I take required off it works - it shows the println statement.
Peter -
Oh, if you've got required fields or faces-level validators, you need to [turn off client-side validation|http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtTopicFile.jsf_apps|adfcreate|af_aclientsidevalidate~html/] as well.
If this still doesn't work, try using showRequired instead of required, and instead use the "Mandatory" setting in your underlying entity object (or view object, if it can't be done at the entity level).
Best,
Avrom
Edited by: Avrom Roy-Faderman on Sep 15, 2008 8:05 AM
Dont'cha just love the forum software? That link, without spaces, should be
http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtTopicFile.jsf_apps <pipe> adfcreate <pipe> af_clientsidevalidate~html
where <pipe> is the vertical line/flat colon.
This discussion has been closed.