tag:blogger.com,1999:blog-5874979429188093780.post3546918103556232524..comments2024-03-18T06:46:54.352+01:00Comments on Andrej Baranovskij Blog: Skip Validation for ADF Required TabsAndrej Baranovskijhttp://www.blogger.com/profile/04468230464412457426noreply@blogger.comBlogger43125tag:blogger.com,1999:blog-5874979429188093780.post-22546060943146349362018-11-27T07:44:10.871+01:002018-11-27T07:44:10.871+01:00Thanks Andrejus Baranovskis .
This helped me a lot...Thanks Andrejus Baranovskis .<br />This helped me a lot and got a task done where the requirement is exactly the same as the post.Anonymoushttps://www.blogger.com/profile/05796230033076195965noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-26332564845666318672017-12-04T18:38:06.763+01:002017-12-04T18:38:06.763+01:00Hi Andrejus
I have studied your blog.I have a sma...Hi Andrejus<br /> I have studied your blog.I have a small requirement.I wnt to restrict user not to enter into another field untill he puts the value in first field.i wnt to show the user that this field is mandatory..Anonymoushttps://www.blogger.com/profile/07497262231963656599noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-11029212621446716752017-08-23T07:29:17.818+02:002017-08-23T07:29:17.818+02:00My use case is-
I have Create jsff in CreateTF for...My use case is-<br />I have Create jsff in CreateTF for E1, from the Create jsff i drilldown to Create jsff of another entity E2, after entring the required data on Saving the jsff it throws a validation error of required attribute from E1.<br /><br />I tried having skipValidation="true" in pageDef for both the entities, still i am getting the issueMannathttps://www.blogger.com/profile/04705173011720626571noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-62159177589405612942017-07-31T16:11:21.605+02:002017-07-31T16:11:21.605+02:00Hello Andrejus
I have a quite similar problem, but...Hello Andrejus<br />I have a quite similar problem, but not exactly the same.<br /><br />I ve 2 tabs on each one there are required filed. The submit button is outsite the af:paneltabbed.<br /><br />Suppose I am on the first tab, I ve not inserted anything yet on the second one, I submit -> the required fileds of the second tab are escaped, no error message is displayed.<br /><br />How can I make the submit button controls the required fields of both tabs.<br /><br />I ve tried to put both tabs to immediate=true, I also tried childCreation=immediate on the panelTabbed: don't work<br /><br />Also i have skipValidation=true,Still not resolve my problemAnonymoushttps://www.blogger.com/profile/16976414369461978730noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-74308794624938821152016-08-11T17:21:59.518+02:002016-08-11T17:21:59.518+02:00Hello,
Thanks for the post.
When i set skipValidat...Hello,<br />Thanks for the post.<br />When i set skipValidation=true and i have a popup for my crud operation on my ADF 12c webapp, the validation msgs( shown programmatically) on IE 11 disappears for the first time.<br />Any inputs on that?<br />If i set skipValidation=false, then this disappearing of msg does not happen but we have the problem of required fields which your blog addresses.<br /><br />This thread posts the same question.<br />https://community.oracle.com/thread/3644936<br />Jayaramnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-41613966201194963892016-03-09T05:41:26.619+01:002016-03-09T05:41:26.619+01:00I Have a scenario where I use dynamic tabs in whic...I Have a scenario where I use dynamic tabs in which i have a landing page consists of some student details. When i click on a student to get full details, it is opening fine and data is rendering properly in a new tab. Without closing that tab navigating back to landing page and clicking on another student is also opening fine in a new tab. But when i navigate back to the previously opened student details tab the page is blank now. can you help me what could be the problemAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-49429510434166855022015-12-03T17:25:03.133+01:002015-12-03T17:25:03.133+01:00This makes me happy, thanks.This makes me happy, thanks.Andrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-26285714239721955482015-12-03T16:49:45.625+01:002015-12-03T16:49:45.625+01:00Thank you so much! You have no Idea how much this ...Thank you so much! You have no Idea how much this blog (and many more of your blogs) helped me out. Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-15876754328986585652015-11-17T23:13:14.289+01:002015-11-17T23:13:14.289+01:00Hi Andrejus,
I just need to inform you that I down...Hi Andrejus,<br />I just need to inform you that I downloaded your app and run it under JDeveloper 12.1.3, and 12.2.1 . Immediate is false as it should be, and skipValidation is set to true (you already preconfigured this all). But there is problem. In both versions I can't switch tabs. I will not asq why. I would like to asq however if there is something different in JDeveloper 12.1.3 and 12.2.1 considering skip validation? I simple can't find any explanation why your app is not working under this versions. Regards and thanks for great article.sirijushttps://www.blogger.com/profile/16921924534958900429noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-71516176245411974292015-05-05T08:36:40.415+02:002015-05-05T08:36:40.415+02:00Cool :)Cool :)Andrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-51886082861457316402015-05-05T07:55:21.491+02:002015-05-05T07:55:21.491+02:00Hi Andrejus,
I've just seen your post about Wo...Hi Andrejus,<br />I've just seen your post about Workaround for Infamous Bug 13626875 :<br />http://andrejusb.blogspot.nl/2013/12/workaround-for-infamous-bug-13626875.html<br />, that you said if we apply ExceptionMode = Immediate setting for Data Control Usage in DataBindings.cpx, then the error message is displayed.<br /><br />Regards<br />HabibHabibhttps://www.blogger.com/profile/15212731529698439555noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-68106466430391225862015-04-20T10:11:05.964+02:002015-04-20T10:11:05.964+02:00What you are trying to achieve is not supported. L...What you are trying to achieve is not supported. LOV list must contain only valid values.<br /><br />Regards,<br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-2544213591601718852015-04-19T07:36:39.591+02:002015-04-19T07:36:39.591+02:00Hi Andrejus, thanks a lot for useful posts.
I'...Hi Andrejus, thanks a lot for useful posts.<br />I've recently had a post about attribute validation on Input List Of Values on OTN, that the validation error message isn't displayed with InputListOfValues :<br />https://community.oracle.com/thread/3701074?sr=inbox&ru=784421<br />also in this blog has benn pointed out :<br />http://adfbugs.blogspot.nl/2009/11/attribute-validation-on-input-list-of.html<br /><br />do you have any suggestion for solving this problem?Habibhttps://www.blogger.com/profile/15212731529698439555noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-63530425668832937052015-04-17T06:24:04.644+02:002015-04-17T06:24:04.644+02:00I think this should work by default, when your fie...I think this should work by default, when your fields are based on the same EO/VO.<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-31781765698313733062015-04-16T18:09:09.028+02:002015-04-16T18:09:09.028+02:00I have two tabs, one is having mandatory fields an...I have two tabs, one is having mandatory fields and the other showdetails tab is not having any mandatory fields.<br /><br />Now the problem is when I try to submit the form from the second tab without giving the mandatory attribute on the first tab, it gets submitted.<br /><br />I want to prevent this form submission by prompting some error message or something.<br /><br />Can someone point on a solution to this issue?Anonymoushttps://www.blogger.com/profile/11004812189659222110noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-9370095393031910342015-04-03T09:39:44.358+02:002015-04-03T09:39:44.358+02:00Andrejus thanks a lot for this post.
I don't ...Andrejus thanks a lot for this post.<br /><br />I don't understand when we should use skipValidation. OK, in this case it works fine, but what is the rule to use it? what happens in respect to jsf lifecycle? I don't really understand what skipValidation does.<br /><br />debugging a page like that would be really difficult to find out it uses skipValidation...<br /><br />thanks a lot<br />AKAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-33139530308508792352015-03-13T10:17:20.392+01:002015-03-13T10:17:20.392+01:00Hi Andrejus,
I have an form with Business Compon...Hi Andrejus, <br /><br />I have an form with Business Components (in with multiple fields such as inputFields, selectOneChoice and DatePicker. Some fields are marked "required=true", some are not. I have two use cases - validations work as I want those to on one, but not on the second case. <br /><br /><b>Use-Case 1:</b> At the start, I click create and empty rows are created in the form. Then I click on a commandButton when the fields are empty and an error message pops up. This is expected behaviour. <br /><br /><b>Use-Case 2:</b> I enter a value in the textInput, then without clicking commandButton, remove the above entered value from the inputText and make it empty again. On change of focus from this field to another, ADF pops an error saying this is a required field. <br /><br />I want ADF to give this required field error on click of Submit and not on change of focus from field. <br /><br />"immediate=false" for all my input components, "required=true" for mandatory fields. I also have method reference to a validator method for these fields. "skipValidation" in the PageDef is set to false.<br /><br />I tried setting "skipValidation=true", but Case 2 is still not working as I want it to.<br /><br />Do you have any idea how can I make this work? Your guidance should certainly help.<br /><br />Thanks, <br />RohanRohan Pandithttps://www.blogger.com/profile/16416395567417886761noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-65479546734908721872014-10-08T13:11:52.390+02:002014-10-08T13:11:52.390+02:00Hi Andrejus, it would be really helpful if you can...Hi Andrejus, it would be really helpful if you can solve my problem, I have dynamic LOV's being created with dependent LOV's at EO level, both the LOV's are mandatory, so the problem happening is when i input a value in one LOV "tabbing" which a value change listener is called with phaseId : "ANY Phase" where we change the phaseId to "Update..." , so before the value change listener is called again by jsf, the mandatory parameter validation of 2nd dependent LOV gets called and value change listener call gets skipped. SO we get an empty dependent LOV. Tried with setting SkipValidation=true, didnt helpedAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-80654472121563012102014-09-19T08:41:28.460+02:002014-09-19T08:41:28.460+02:00yes please, I tried setting skipValidation = true,...yes please, I tried setting skipValidation = true, also immediate = true. still the validation are getting triggered on value change instead of final form submit.<br /><br />I am facing this issue in editable table when columns are LOVs (selectOneChoice).<br /><br />Any pointer to resolve this issue would be appreciated..Amolminihttps://www.blogger.com/profile/15379518561348251093noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-32043515405654664292014-09-19T07:21:16.199+02:002014-09-19T07:21:16.199+02:00I think this should work fine, at least it works i...I think this should work fine, at least it works in our projects. But, I can double check.<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-87643792003259161532014-09-19T01:21:13.386+02:002014-09-19T01:21:13.386+02:00Hi Andrejus,
setting skipValidation = true on pag...Hi Andrejus,<br /><br />setting skipValidation = true on pageDef is still invoking validations on selectOneChoice fields. Am I missing something ?Amolminihttps://www.blogger.com/profile/15379518561348251093noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-59084871600765748502014-03-06T17:09:05.602+01:002014-03-06T17:09:05.602+01:00This post described to leave immediate as default ...This post described to leave immediate as default and set skipValidation=true. I don't know about your use case, but in this case it works - I can navigate across tabs, without firing validation messages on tab disclosing.<br /><br />To set immediate=true doesnt work well, as it will not submit values from the current tab, while moving to the next tab.<br /><br />I hope it is more clear. I'm not sure about your code and use case, may be there is something else. It would require debugging :)<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-14960280489203565292014-03-06T15:45:26.870+01:002014-03-06T15:45:26.870+01:00:) you got me confused, Andrejus.. In your post yo...:) you got me confused, Andrejus.. In your post you are setting immediate back to false before setting "skipValidation = true". I, on the other hand, have "immediate = true" and "skipValidation = false" (I don't have any Model validation that needs skipping). Everything is working (almost) as should, I'm just trying to figure out why.łukaszGhttps://www.blogger.com/profile/15553468404286547276noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-27075236071093017102014-03-06T15:04:48.318+01:002014-03-06T15:04:48.318+01:00Yes, this is why you need to set additionally skip...Yes, this is why you need to set additionally skipValidation=true, as I describe in the post.<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-55570994318551815112014-03-06T14:51:54.730+01:002014-03-06T14:51:54.730+01:00Maybe I'm missing something then.. From how I ...Maybe I'm missing something then.. From how I understand your post "Immediate = true" will not solve described issue plus entered data is not stored on the Model.<br />I figured out, that setting the top-most tab containing the required fields as immediate actually helps (errors on empty fields are not show on tab change but the values go to the model on save just fine) yet I'm not quite sure why..<br />According to the doc setting "immediate = true" on components that invoke disclosure events will only pull conversion, validation and event delivery up to the 'Apply Request Values' phase so required fields with no value should throw an error..<br /><br />So my satisfaction from getting this to work is not full ;)<br /><br />Still, thanks for the post(s),<br />lukaszłukaszGhttps://www.blogger.com/profile/15553468404286547276noreply@blogger.com