JDev 10.1.3.4: How to customize the validation message?

Hello

I am using JDeveloper 10.1.3.4 and want to customize validation error message but don't know how. Also, the error message is triggered off the base and needs fixing.

On my page, I have a group of two radio button is set to required = "true", a message is added, and the two buttons and the error message are placed in a grid of three-column table:
<h:panelGrid columns="3"
             binding="#{backing_student_doValidation.panelGrid1}"
             id="panelGrid1" frame="none">
<h:selectOneRadio binding="#{backing_student_doValidation.selectOneRadio1}"
                  id="selectOneRadio1" required="true">
  <f:selectItem itemLabel="I Agree" itemValue="agree"
                binding="#{backing_student_doValidation.selectItem1}"
                id="selectItem1"/>
  <f:selectItem itemLabel="I Disagree" itemValue="disagree"
                binding="#{backing_student_doValidation.selectItem2}"
                id="selectItem2"/>
</h:selectOneRadio>
<h:message for="selectOneRadio1" errorStyle="color:rgb(255,0,0);"/>
</h:panelGrid>
When none of the buttons is selected, the validation error message is:
   O I Agree   O I Disagree   Validation Error: Value is required
that is not quite user-friendly. I want the message to be: "you have to either agree or disagree. But how?

Another problem is that the error message is triggered. What may be not presented above, is that this error is emitted above the buttons as if the error message is surrounded by the Exhibitor tag: imagine < font size = "2" > < sup > Validation error: it takes value negative > < / police >. I tried several (middle, base, low) values for the vertical-align property of the panelGrid but none has no effect. Is there a way to fix this?

Thank you!


Newman

Hello Newman,

It is strongly recommended to use the xml format of the jsp that is jspx. It's good to move to this format for all of the examples you will find only in this format. JSPX has nothing to do with panelPage or ADF Faces components. You can use pure standard JSF
jspx format components. But I would suggest that you use ADF Faces components since they are compatible JSF and they provide the enriched functionality. Or you can freely combine JSF components and standard ADF Faces or even if you like another set of compatible
You can import the tag library and also use JSF components.
To return to your use case. Using the af:selectOneRadio instead of f: selectOneRadio component you can solve the problem with customization of message required validation by using the requiredMessageDetail property, but you will encounter :) problem of position of this message


            
              
              
            


Kind regards

Branislav

Tags: Java

Similar Questions

  • How we customize the invitation message

    We need to customize the invitation message to include instructions on how to deploy the required software

    Hi n,

    We wish to inform you that there is no option available now.

    However, as an alternative you can do is, you can export the CSV file and do what is necessary. Click on the link below.

    Using creative cloud | Manage your creative cloud to the membership of the teams

    Thank you

    Atul Saini

  • How to customize the expiration of session WARNING text messages?

    Jdev 11.1.1.4 ALICE BC & ADF Faces

    Requirement: How to customize the expiration of session WARNING text messages?

    I am able to assign the expiry warning time and session time-out period
    <context-param>     
    <param-name>oracle.adf.view.rich.sessionHandling.WARNING_BEFORE_TIMEOUT</param-name>     
    <param-value>300</param-value> 
    </context-param>
    
    <session-config>
        <session-timeout>6</session-timeout>
      </session-config> 
    I want to show a messge like
    ' your session will expire in XX minutes, do you want to continue? "
    Any help will be appreciated.

    ~ Abhijit

    These are other resource strings:

    ...
        {"af_document.PRE_SESSION_TIMEOUT_MSG", "This page will expire unless a response is received within {0} minutes. Click OK to prevent expiration."},
        {"af_document.PRE_SESSION_TIMEOUT_MSG_SECOND", "This page will expire unless a response is received within {0} seconds. Click OK to prevent expiration."},
        {"af_document.PRE_SESSION_TIMEOUT_CONFIRM_TITLE", "Expiration Warning"},
    ...
    

    Timo

  • How to customize the context menu in the legend of plotting the graph of wave?

    I am currently on the creation of a simulation of various control loops as educational objectives. Here, I have a chart in waveform to different signals. Now my question, how to customize the context menu in the track of the Waveform graph legend => when I click on 'image' behind the Plotnames one menu to open options where you can customize the color etc. or plotwidth. But students should not have access to these settings. How can I change or disable this menu? The context menu for the waveform graph, I've already customized by right click on table of waveform-Advanced online-online menu, but for the legend of conspiracy, I have not found this setting...

    Thanks for your answers... I tried different things, but I don't see a solution yet :-(

    See you soon

    DCP

    Hi, STC,

    There have been a number of suggestions for change or disable the table , right-click menu, but I see that this does not affect the context menu of legend , which is what you ask for help with.

    To prevent completely the menu right-click to work, you must disable the chart control entirely. You can do this by double-clicking on the chart and select Advanced Options > active state > disabled. This will prevent the operator to be able to generate a menu right click on the chart control.

    If however you still wanted the table, make a right click menu to work, but the legend made a right-click menu will be disabled, I see two options:

    1. draw a classic decoration square on the legend and the transparent color. This will prevent the mouse clicks to achieve the legend, and transparent it will not interfere with your user interface appearance.

    2 use a Structure of the event to capture the event filter Popup Menu of Activation?  for the chart control. You can then use the Coords property to determine if the mouse is over the legend or not. If this is the case, send faithful away? right Terminal. It will refuse the context menu when the user clicks on the legend of the plot.

  • How to customize the ringtone in acer liquid z220?

    How to customize the ringtone in acer liquid z220?

    You must copy your ringtone (mp3 file is ok) in storage/internal or external storage/ringtones ringtones

    Then, go to settings / sound - phone ringtone

    your ringtone will appear and you can select

  • How to customize the windows download progress window

    How to customize the windows download progress window? (to show what files have been downloaded since the last clear)

    I didn't know that the window is a Firefox one.  Now I see how to reconfigure inside Firefox to fix my problem of 'the download since the last clear list' still being virgins.  Others have had the problem and Firefox has answers to this.

    Thanks for your help

  • How to customize the installation of 5.0 client

    Does anyone have a real document or for example on how to customize the installation MSI 5.0? Is it the same thing as 4.6 customizations? Same formats png? Because I don't see a vpnclient_en.msi in the default package.

    Thank you

    Dave

    The custom version of vpn client 5.0 Setup is the same since version 4.6. The vpn client package contains the "vpnclient_setup.msi" file that can be used for installation. The following link can help you

    http://www.Cisco.com/en/us/docs/security/vpn_client/cisco_vpn_client/vpn_client46/Administration/Guide/vcAch7.html

  • How to customize the interface user OBIEE 11.1.1.9.0

    Hi all

    I was wondering how to customize the user of OBIEE 11.1.1.9.0 interface.

    For earlier versions, there was a guide to go to different folders by default and exemplary, adjust and modify your HTML, CSS, or XML files.

    I was reading the new style/skin of skyros, but I can't find a guide how to customize this skin and style.

    The 11.1.1.9.0 version of OBIEE isn't the same folder structure as the 11.1.1.7.xx version (where you set the fusionfx or blafp styles and skins), so I'm a little lost around that.

    So someone has more information about the customization of skyros /11.1.1.9.0 styles and skins?

    Thanks in advance!

    There is this new (I think) doc who can help: https://docs.oracle.com/middleware/11119/biee/BIESG/answersconfigset.htm#BIESG9198

  • Muse Themes Mobile Menus - how to customize the classic accordion

    Can someone help me on how to customize the Menus in Muse themes Mobile - more precisely the classical accordion. Or direct me to a tutorial.

    Thank you very much in advance!

    This will help you:

    https://www.YouTube.com/watch?v=Thm8bsNccvI

    Thank you

    Sanjit

  • How to customize the server info in my contact form?  I'm the test in my localhost.  Thank you!

    How to customize the server info in my contact form?  I'm the test in my localhost.  Thank you!

    You can download the site with the form included in your server, and then test. If this does not answer your question, then please provide more details as to what exactly you want to customize?

    Thank you

    Sanjit

  • How to customize the pages of Self Service

    Hi all

    How to customize the pages of Self Service. Guide kindly emergency.

    Thank you
    Mr. Bilal

    You can take these steps
    ==============

    -> Profile set Customize option % Self Serv % Def % Yes at the user level (you use to customize the user).
    -> Go to the page you want to customize
    -> Page-click Customize in global top menu of the page.
    -> Click on the button Choose context and select the responsibility for which you want to customize the element (clear, all other fields such as site, organization, location, function, industry)
    -> Button click on apply. You will get the hierarichy page.
    -> Now the identity of the item, you need to customize and click Customize (pencil icon).
    -> True/false property rendered set (if you want to hide the item to false to show true set) and apply.
    Back at the request of->

    You can see more information on these links

    http://apps2fusion.com/at/43-SS/453-OAF-extension-case-study

  • How to customize the Filter Table ADF Faces?

    How to customize the filter ADF Faces Table

    I want to filter column == > add filter select only one option

    http://img192.imageshack.us/img192/994/unledixd.PNG | http://img192.imageshack.us/img192/994/unledixd.PNG


    What about Ninja

    Published by: Ninja on August 29, 2011 12:42 AM

    Published by: Ninja on August 29, 2011 12:47 AM

    Check [url: http://hasamali.blogspot.com/2010/10/custom-adf-table-filter-with-drop-down.html] this blog.

    Jean Lou

  • How to disable the annoying message "Printer cartridges no HP installed" on Windows 7?

    How to disable the annoying message "Printer cartridges no HP installed" on Windows 7? I have a HP Officejet 6500 has more and there is a way to disable those annoying pop ups. First of all, why HP can't fix their software to display only 1 message. If I turn on my printer, I get about 5 popups when the 3-minute delay. Is - this embarrassing? You bet, I do not turn off my printer more to avoid these messages. There must be a registry entry that I can delete gladly. Ideas? If you are an employee of HP, please do not give the Conference on "genuine cartridges" and how you take care of your printer. I've had my printer for 7 years and never had a problem with cartridges not HP. They are all made in China.

    This isn't a bad idea, but this does not resolve the issue. There are many complaints from customers about these annoying messages. All HP needs to do is to say to their developers to add a function to disable this feature. What is a marketing thing? Yes, it's a boring marketing question that should really be fixed. It's like Windows display constantly that your device drivers are not fully tested. Of course, when a customer buys a product at a lower price, they take this risk. I hate to be notified 365 days a year that my cartridges are not authentic.

  • How to adopt the validation of level entity such as BC ADF using EJB/JPA?

    I explore how to implement validation to entity level using the EJB/JPA instead of ADF BC. (Note: I use JDeveloper + ADF 12 c)

    1. I cannot add validation attribute level in the ADF (Data Control) of EJB model layer. but it is not enough. I can just code partial UI validation here.

    2. I googled and find that someone is using jsr-303-bean-validation. What is a unique choice? How the entity-level validation code?

    Validation of the JPA EJB ADF application entity

    3. I want to implement certain business validation and processing business in the layer of business ADF service, as in the EJB method.

    I did a simple test to simulate an exception, but I found the exception has been handled incorrectly in the layer of binding of ADF and error dialog box prompt: DCA-29000: Unexpected exception caught: java.lang.reflect.InvocationTargetException, msg = null.

        public Departments persistDepartments(Departments departments) {
            if(true){
              throw new RuntimeException("persistDepartments");
            }
            em.persist(departments);
            return departments;
        }
    
    
    
    

    Any expert can help? will I have to rewrite the ADF Model layer error handling? How to code the validation in EJB? you will need to take local and manipulate it in class in the ADF error handling model layer? where can I find a demo?

    4. I want to introduce a layer of application service between EJB session façade and JPA entity for the re-use of the company.  but I found JDeveloper helps me to do anything. I do code manually, when I create EJB session façade, it always integrate directly with JPA entity inside.  I expect that my application service is class instead of the EJB POJO.  Session EJB façade summons enforcement and demand serviceshall call JPA entity services.  is this possible? any sugguestion?

    Thank you

    Qn1, the ADF Model layer Validation are supported at the level of the validation attribute. It is confirmed.

    Qn2, it seems that this is a better solution, but is not Explorer so far.

    Qn3 is resloved by creating a custom error handler to extract a validation thrown from EJB exception and at the same time, it cannot be avoided that the thrown exception of service business layer is still dumped at MTS-out.

    Qn4 is reslolved by employment Commission to inject POJO, EJB session faade and inject POJO EntityManager (use JTA transaction).

    Thanks to you all!

  • How to add the warning message when you use the function 'print' in Adobe LiveCycle Designer

    I'm trying to make the pdf document for my business that requires the addition of a warning message while everyone to use the function 'print' page...

    Does anyone know how to add the warning message about LiveCycle Designer

    Also my supervisor mentioned something using "nag" If that sounds at all

    Not in the XML code, in the case of script of pre-publication of the "print" key. If you don't have the script editor to the top on your version of designer, you can press ctrl + shift + F5 to bring it.

Maybe you are looking for