problem with validation in the field with the radio button type in create profile jsp page

Hello

Kindly help me with the validation of a field with the type option button in the createProfile jsp page. Its actually not to validate the sex with radio button field.

The code is as follows...

< % @ page language = "java" contentType = text/html"; charset = ISO-8859-1"

pageEncoding = "ISO-8859-1" % >

<! – this taglib used to access dsp tags - >

< %@taglib uri = "" / dspTaglib "prefix ="dsp"% >"

< dsp:page >

< dsp:importbean bean = "/ atg/userprofiling/ProfileFormHandler" / >

< dsp:importbean bean = "/ atg/dynamo/drop/ErrorMessageForEach" / >

  <! DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""

< html >

< head >

< meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"

< title > < /title > user registration Page

< / head >

< body >

< dsp:form id = "registerForm" method = "post" action = "registration.jsp" >

< div >

< div > if please fill in all fields below and click Save

button. < / div >

< br / >

< table >

< tbody >

< b >

< td width = "150" > name < table >

< td > < dsp:input bean = "ProfileFormHandler.value.firstName"

MaxLength = "30" size = "25" type = "text" required = "true" / > < table >

< /tr >

< b >

Last name < td > < table >

< td > < dsp:input bean = "ProfileFormHandler.value.lastName"

MaxLength = "30" size = "25" type = "text" required = "true" / > < table >

< /tr >

< b >

< td > username < table >

< td > < dsp:input bean = "ProfileFormHandler.value.login"

MaxLength = "30" size = "25" type = "text" required = "true" / > < table >

< /tr >

< b >

password < td > < table >

< td > < dsp:input bean = "ProfileFormHandler.value.password"

MaxLength = "30" size = "25" type = "password" required = "true" / > < table >

< /tr >

< b >

< td > confirm password < table >

< td > < dsp:input bean = "ProfileFormHandler.value.password"

MaxLength = "30" size = "25" type = "password" required = "true" / > < table >

< /tr >

< b >

Identification of Email < td > < table >

< td > < dsp:input bean = "ProfileFormHandler.value.email"

MaxLength = "30" size = "25" type = "text" required = "true" / > < table >

< /tr >

< b >

Sex < td > < table >

< td > < dsp:input bean = "ProfileFormHandler.value.gender"

Type = "radio" required = "true" > male < / dsp:input > < dsp:input

Bean = "ProfileFormHandler.Value.Gender" type = "radio" "

required = "true" > female < / dsp:input > < table >

< /tr >

< b >

< td colspan = "2" > < dsp:input bean = "ProfileFormHandler.create"

Type = "submit" value = "Save" / > < dsp:input

Bean = "ProfileFormHandler.createSuccessURL" type = "hidden"

value = "index.jsp" / > < table > "

< /tr >

< b >

< td colspan = "2" >

< ul >

< dsp:droplet name = "ErrorMessageForEach" >

< dsp:param bean = "ProfileFormHandler.formExceptions"

name = 'exceptions' / >

< name dsp:oparam = "output" >

< li > < dsp:valueof param = "message" / > < /li >

< / dsp:oparam >

< / dsp:droplet >

< /ul >

< table >

< /tr >

< / tbody >

< /table >

< / div >

< / dsp:form >

< / dsp:page >

< / body >

< / html >

Use code next, may be you do not value attribute set and causing a problem (data inconsistency problem) or case mismatch while storing data in the repository.

<%Boolean checked = true;%>

Sex:

Male

Female

I do not know what will radio back button if the value is specified: a boolean value or the value aim to display (in your male cases),.

If the problem is fixed, undo the change and please let me know what value he sent in your case.

Please

Thank you

Nitin.

Tags: Oracle Applications

Similar Questions

  • Create the form in word with checkboxes, radio buttons, comment fields and signatures

    A couple of years, I have created a form that has been filled with some radio buttons and checkboxes, then sent for signatures. Example below:

    Project owner : {{                   $ReqName}}

    {{I0}} {{K0}}

    Udio has

    Project Manager:

    {{$K1}}

    {{$K2}}

    {{$K3}}

    APPROVED

    REVISE and resubmit

    DENIED

    {{SBlk1_es_:signatureblock: signer1}}

    {{#ReqName = * RequiredName_es_:sender}}}}

    Is it still possible to use, or should I drag-and - drop all the buttons?

    Hi sarahm62404467,

    Yes, you can do it with services eSign, but central form is abandoned.

    Kind regards
    Nicos

  • Firefox crashes in typing or by clicking check box or the radio button, even with all the plugins / extensions removed. Check with many types of malware scanners.

    Firefox crashes in typing or by clicking check box or the radio button, even with all the plugins / extensions disabled, then deleted. Sometimes it hangs for five minutes. I checked the PC with several types of scanners of evil-ware, but none to be found. All hidden and deleted cookies, all DELETED & extension plugins. Remove all instances of Firefox PC and registry, then restored to bookmarks. The only thing that I did not is to remove and reinstall not my favorites.
    Windows Vista (yes I know) and FF 13.0.1

    Try disabling hardware acceleration in Firefox.

  • Simple form: just 1 text field and the radio button 2...

    I have a question about the Muse Widgets when it forms.  I have a very simple interface, I want to try to apply an additional tax of an amount of entry; I want to give the user the ability to select Add fresh or not.

    The only widget I found on current Muse was a Simple Contact form emails. I've stripped down to 1 input text, group 1 radio. I exported html code, added in the onclick event in the HTML for the radio buttons perform the calculation of the additional tax.  On the action of the form = "xxx", muse creates a few php files for validation and finally sending the form as an email, I have a test in the form e-mail address.  I can stub out that php and put in my own actions to waive the sending of the email.  I have 2 questions: ONE QUESTION) on the level of code there is a control of the syntax form fields (corresponds to the entered text input, is a selected radio button, etc.). SimpleContact form comes with 3 < p > < / p > due to the action of the form = "xxx" statement. The 3 lines correspond to the errors, which is a generic "server has encountered a problem." (something like that).  Does anyone know what code is to identify the error and how it is returned to the call statement? MuseUtils.js?  It is not in the action = "xxx" php referenced file.  It maybe too much, I'm interlacing syntax, semantic validation on a form after the muse html export.  Second QUESTION) is before all this... it all simple forms of 3rd party, I can use (Group 1 radio 1 text, drop-down list), which I can integrate Muse?  Looked at Muse-themes.  Don't have a complete package of e-commerce, yet.  (This is for a non-profit and trying to reduce recurrent costs).  Sorry, this is so wordy, appreciated by any direction.

    Answering the second question, you can check out these alternatives:

    http://musewidgets.com/search?q=form

    Thank you

    Sanjit

  • Problems with getting an interactive E-book created in ID CS6 to work with ID CC 2015

    Hi all

    I have a problem with an e-book that I created with Indesign CS6.  He has slideshows, blocks of video image, zoomable and scrolling text boxes between assets. It was never published but was over and I was able to do work through the constructor app let me see on Viewer Adobe on my Ipad. Here, everything works perfectly. Since then, I changed cs6 to 2015 for CC and now I have problems.

    I wan't to make some corrections to the origianl design and content and publish correctly. When I open the various documents that the book consists of (a document PR. Chapter of the book) it is no longer the option to create the app that I used in the old CS6. When I export a chapter the ibooks app opens and opens the chapter, well but some interactive things do not work: my slide show does not automatically change the slide it's supposed to, I also have a zoom in the window of a drawing I did and all the boxes scrolling with text and drawings do not work either. Video clips to work however. When I check the slide show options in the document, they seem to look ok. Now my questions are:

    How do these things work?

    What is the difference in the CS6 and CC 2015?

    Can someone direct me to some tutorials that can help me solve the problem?

    I really hope someone can help I would like to finish my project I've been working on for a long time...

    Thanks in advance

    Berit

    This isn't an EPUB, it's a DPS folio. Some of the effects of work, some do not, but the overlays Panel won't be any help.

    You can add scrolling images with this: universal scrolling frames | Ajar Productions

    Pan and zoom is not supported and are neither self running slideshows. If you can give us more details, perhaps alternatives can be provided but be very specific as to how you plan on the publication of this.

  • Field required if the radio button is checked

    I created a form with two radio buttons (YES, NO) and I want to make two specific text required fields if the YES button is checked. The field is set for the radio button TO be checked by default.

    How can I do?

    Thank you

    The MouseUp event of two option buttons, enter this code:

    this.getField("Text1").required = (event.target.value=="Yes");
    this.getField("Text2").required = (event.target.value=="Yes");
    
  • Text in the radio button field triggers?

    I'm sure it is a simple and I just have a moment on Monday, but I can't seem to find it by searching on the forum...

    I have created a pdf form and I want an option button to automatically check when someone types the text in a certain area - how can I do this?

    I would be put in place so that none of the fields in each section can be filled-in unless one of the radio buttons is selected. If space fields are displayed if this option button is selected and the same thing with the hull of the Pre-Built program fields. You can do it in show/hide fields, and you would also want to reset the fields when they are shown/hidden. Coding can be greatly simplified if you use a field hierarchical naming system for the two groups. For example, fso.width, fso.depth, fso.area, fso.a$, etc. and pss.width, pss, depth, etc.

    You can then hide all fields selection of pre-designed Shell Scheme programs and reset and display all the fields only area and reset them with the following:

    Hide all fields selection of pre-designed Shell Scheme programs and reset the

    getField("pss").display = display.hidden;

    resetForm (["SSP"];

    Hide all fields only space floor and to reset

    getField("fso").display = display.visible;

    resetForm (["Fos"];

    This is not complete, but should help you get started. Note that you can set up A$ fields so that they are automatically calculated according to the value of the Total m2 field, so that the user doesn't have to come in and maybe make a mistake. You can also configure the computed fields to display a value only if the width and depth fields are completed.

  • How to show or hide the region of the shuttle during the click on the radio buttons?

    Hello

    I'm new to JDeveloper. Here is my requirement.

    1. create 2 radio buttons: Yes and no and default displays "" selected radio button.

    2. create a region of shuttle with select query in VO.

    Query is:

    Select 'No group' for_user, for_pkg double null

    Union

    Select "Company" for_user, for_pkg "SEGMENT1" double

    Union

    Select 'Rental' for_user, for_pkg 'SEGMENT2"double

    Union

    Select 'Cost center' for_user, 'SEGMENT4' double for_pkg

    Union

    Select 'Project' for_user, 'SEGMENT5' double for_pkg

    Union

    Select "Intercompany" for_user, "SEGMENT8" for_pkg of the double

    order by nulls first for_pkg

    3. initially hide the region of the shuttle during the loading of the page.

    4. click on the radio button 'yes', display area of the shuttle with values at the head of list of query VO and empty list leak.

    5. new click on the 'no' radio button, he must hide region and so screen shuttle shuttle dynamically according to the selected option button.

    But my problem is I am able to hide area shuttle when the page loads at the beginning and after that, when I'm clicking 'Yes' radio button, is just to display area shuttle empty without value in the main list and once when I'm clicking 'No' radio button, it should hide area shuttle but he's not hiding. I used the RPP to show or hide the area Shuttle under certain conditions. I use JDev 10.1.3.3.0 version as we Oracle EBS version 12.1.2 in our society.

    Please find the attached draft and suggest me proper with examples of sample approach.

    Monika,

    I tried to get this working in the lower version of Jdeveloper and looks like it works.

    Can you make the change below and see what happens.

    1. modify your query to VO as below: (I replaced null with SEGMENT0)

    select 'No Grouping' for_user, 'SEGMENT0' for_pkg from dual
    union
    select 'Company' for_user, 'SEGMENT1' for_pkg from dual
    union
    select 'Location' for_user, 'SEGMENT2' for_pkg from dual
    union
    select 'Cost Center' for_user, 'SEGMENT4' for_pkg from dual
    union
    select 'Project' for_user, 'SEGMENT5' for_pkg from dual
    union
    select 'Intercompany' for_user,'SEGMENT8' for_pkg from dual
    order by for_pkg
    

    2. place VO execution to the processFormRequest:

        public void processFormRequest(OAPageContext pageContext,
                                       OAWebBean webBean) {
            System.out.println("In process Form Request");
            super.processFormRequest(pageContext, webBean);
            OAApplicationModuleImpl appModule =
                (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
            String eventParam = pageContext.getParameter(EVENT_PARAM);
            System.out.println("eventParam: " + eventParam);
            if ("showHideShuttle".equals(eventParam)) {
                //  appModule.invokeMethod("deletetrailing");
                System.out.println("Inside If");
                OAMessageCheckBoxBean messageCheckBoxBean = (OAMessageCheckBoxBean)webBean.findChildRecursive("checkBoxBean");
                System.out.println("messageCheckBoxBean : " + messageCheckBoxBean);
                String messageCheckBoxBeanVal = (String)messageCheckBoxBean.getValue(pageContext);
                System.out.println("messageCheckBoxBeanVal: " + messageCheckBoxBeanVal);
    
                if ("Y".equals(messageCheckBoxBeanVal)) {
                    OAViewObjectImpl shuttleVO1 =
                        (OAViewObjectImpl)appModule.findViewObject("ShuttleVO1");
                    if (shuttleVO1 != null) {
                        shuttleVO1.setWhereClause(null);
                        shuttleVO1.setWhereClauseParams(null);
                        shuttleVO1.executeQuery();
                        System.out.println("Executed Query : " + shuttleVO1.getQuery());
                    }
                    OAViewObjectImpl shuttleVO2 =
                        (OAViewObjectImpl)appModule.findViewObject("ShuttleVO2");
                    if (shuttleVO2 != null) {
                        shuttleVO2.setWhereClause("1=2");
                        shuttleVO2.setWhereClauseParams(null);
                        shuttleVO2.executeQuery();
                        System.out.println("Executed Query1 : " + shuttleVO2.getQuery());
                    }
                }
                String[] name = { "RenderAttr1" };
                String[] val = { messageCheckBoxBeanVal };
    
                Serializable[] params = { name, val };
                Class[] paramTypes = { String[].class, String[].class };
                appModule.invokeMethod("setXXCustomPVOValues", params, paramTypes);
    
            }
    
        }
    

    3. move Spel link shuttle Bean for the region of header above.

    Some useful links for the shuttle Bean:

    Technology blog based in Java of Sushant: 13. Area of application OFA shuttle

    Framework OA Blog: control of the shuttle as part of OSTEOARTHRITIS

    See you soon

    AJ

  • Delete all the radio buttons

    Hi, is anyway to find and remove all the ' Radio buttons ' in my form? Thanks in advance...

    It's much better for you if you write the code yourself. So you know and that you know exactly what you, and if things go wrong, you are much more likely to fix it. Or, if you need to adapt it for example delete all signature fields, you would know how to make this change as well.

    Take a look at these pages of documentation of JavaScript, they illustrate the necessary JS methods:

    Doc.numFields - DC Acrobat SDK Documentation

    Doc.removeField - DC Acrobat SDK Documentation

    Doc.getField - DC Acrobat SDK Documentation

    If you need help with Acrobat JavaScript in general, take a look here: Beginning JavaScript for Adobe Acrobat

    And, just to help you get started, here's how I would implement this feature:

    for (var i=(this.numFields-1); i>=0; i--) {
        var f=this.getField(this.getNthFieldName(i));
        if (f.type == "radiobutton") {
            this.removeField(this.getNthFieldName(i));
        }
    }
    
  • Disable the Radio button under condition does not work well

    Hi friends,

    I have three radio buttons

    < li > cottages
    < li > New rental
    < li > in the name of


    I'll show this option button conditional according to the user who connects to the application.

    Suppose that, assume that if a person 'A' concludes the application means that it will be shown only these radio button options---NH---,---OB---,---Self---

    Assume that, if a person 'B' concludes the application means that it will be shown only these radio button options - NH-, - free-

    If a person "C" concludes the application means that it will be shown that these radio button options - Self-


    I limited the boxes according to the users who enter the application using their roles.

    But my challenge here is once the user and if it someone at - it means radio button, select

    Example if he chooses - NH - means, then - OB - and - holiday - radio button must disable and if he chooses - OB - means then NH - and - to
    Disable (vice versa).

    I have also done the same with the DA.

    With the real action like: javascript Expression I gave the following encodings (I wrote the below DA for the three cases, if the request_class_code is equal to)
    (NH, O, S)
    var enabled=$v('P22_REQUEST_CLASS_CODE');
    if (!$u_SubString(enabled,'S')) $('#P22_REQUEST_CLASS_CODE_2').attr("disabled","disabled");
    if (!$u_SubString(enabled,'NH')) $('#P22_REQUEST_CLASS_CODE_0').attr("disabled","disabled");
    if (!$u_SubString(enabled,'OB')) $('#P22_REQUEST_CLASS_CODE_1').attr("disabled","disabled");
    The DA above works great only for the user who has the possibility to view the three radio buttons in my form (i.e)(NH,OB,S).

    For the user who has the ability to view two or one option button, it does not work properly (i.e.)(NH,S) or(OB,S) or (S).

    Why it does not work for the user with two options or with a radio button medium, the source of this property of radio button option is changing. Given that I took
    the source of my radio button in my DA only when the three options are present.

    How I can solve this problem for the user who is having this option two or radio.

    We hope to hear you clearly on the issue.


    Brgds,
    Mini

    Hello

    If I did not understand what you have that might work

    var lVal = $v('P22_REQUEST_CLASS_CODE');
    $('#P22_REQUEST_CLASS_CODE input:not([value="' + lVal + '"])').attr("disabled","disabled");
    

    Kind regards
    Jari

    http://dbswh.webhop.NET/dbswh/f?p=blog:Home

  • Label for the radio button question

    Hello

    I use a group of radio buttons in my Vbox container and generating radio buttons for this group at run time according to certain conditions.

    I am able to get the list of all radio buttons in execution, but the problem here is that I put the label property for each of the option button in the radio button group, but I can't see the label on my user interface with the exception of the small circle of option button. I tried I tried different ways of setting the labelPlacement and modification of the container for these components button radio etc etc, but in vein.

    If someone met a similar situation or know something about this issue, please let me know.

    See you soon,.

    G1

    What happens if you call the method addChild as follows: -.

    callLater(listWrappers.addChild,[newRadioButton])
    

    I think that maybe the components are added until they are ready...

  • How to use the Radio button

    Hello

    In my form, I want the radio button.

    On the selection of this radio button user can change the status of "QC" for "STOCK".

    Initially, when he disabled status should be "QC".

    How to put this in my form guide me please.


    Maury

    Make a group of Radio (say RADIO_GROUP16) with 2 buttons radio (mean RADIO_BUTTON17 and RADIO_BUTTON18).

    Specify the initial value of Radio group to U
    Specify the value of Radio to R and U buttons

    and in the status field to write after outbreak.

    If: block. RADIO_GROUP16 = 'U' then
    message ("can not update status '");
    raise FORM_TRIGGER_FAILURE;
    end if;

    I guess that when you select the second radio button (with the 'R' value) then only you would be allowed to change the status.

    Please check the answer correct/useful if th answer was helpful

  • Help with custom radio buttons.

    Before you go all Rube Goldburg thought that I post for a quick reality check.

    Basically, I have a test with several different configurations of coupon and I try to give users an advanced interface to select one they use. Using radio buttons seems the way to go and I inserted my custom images but I have only be able to select by clicking on the buttons. I want the user to be able to click on the image. Unless I'm missing something, I have this feeling that I have to create the four complete custom Boolean buttons with States of 4-6 and then write the code to do that alone is never on at the same time?

    Joint-

    You can change the appearance and the size of the used option button and overlay them on your chart, and then set the transparent parameter. So it looks like they're clicking on custom image but they are clicking on the invisible button on the top of the image.

    But it might be easier to use a ring of photo,

    Photo ring can be changed at runtime to add selections. Where the radio button enum cannot.

  • Refresh the Radio button

    Hi experts,

    is it possible to update the Radio button item in the APEX without presenting a page? (source of this is dynamic sql LOV).

    This is due to the AJAX call and the application process which label of updates of option buttons with the number of records in the correct state.

    Image:

    Concerning

    J

    Jozef Demovic SVK wrote:

    is it possible to update the Radio button item in the APEX without presenting a page?

    Yes. Use a dynamic action.

  • Deactivation / activation of the Radio buttons

    Hi all

    I develop application in Oracle Application Express 5.0.0.00.31.

    In my page, I created a tabular form by using the query

    SELECT

    "ROWID",.

    'EMPNO ',.

    'ENAME ',.

    'STATUS ',.

    "ACCEPT."

    FROM "EMP".

    STATUS and ACCEPT two columns are type of radio button with a static query as

    STATUS: STATIC2: new; N, entitled; A, completed; D

    ACCEPT: STATIC2: accept; F, rework; R

    My requirement is

    1. When STATUS =has ' this time then ACCEPT column boxes must be activated. (I)

    2. another in('N','A') of STATUS then ACCEPT column buttons Radio must be turned off

    Note: Later I hide status column. Accept that column must be specified. Based on the value of the STATE Accept column column

    Radio buttons work

    I put my sample application in

    https://Apex.Oracle.com/pls/Apex/f?p=28020

    workspace: myspace77

    user: comments

    password: apex_demo

    -What someone will help me in this regard?

    Thanks in advance.

    Kind regards

    Colette

    Hi Colette.

    Check your Application-> Page 1 28020. I've implemented the toggle the radio button.

    Here are the steps to accomplish the toggling the buttons in table form:

    • Added STATUS column with alias STATUSD in the form of your table.
    • Added real action "Run the Code JavaScript" in your dynamic action "updating of the form: turn radio buttons:

    Action: Run the JavaScript Code

    Fire on loading the Page: Yes

    Code:

    $('th#STATUSD').hide();
    $('td[headers="STATUSD"]').hide();
    $('td[headers="STATUSD"]').each(function() {
        var row_val = $(this).text();
        var row = $(this).closest('tr');
        if (row_val == 'N' || row_val == 'A') {
          row.find('td[headers="ACCEPT"] input[type="radio"]').attr("disabled", true);
        } else {
          row.find('td[headers="ACCEPT"] input[type="radio"]').removeAttr("disabled");
        }
    });
    

    Assigned items: no

    Kind regards

    Kiran

Maybe you are looking for

  • When I dictate, at the end of the period of 45 seconds, he rewrote several times

    Using the dictation, at the end of the period of 45 seconds, the text flows and changes several times, sometimes repeat a phrase or the deletion of a sentence. What is going on? If I stop before the 45 seconds, that it behaves correctly.

  • No connection to the local network, cannot connect - Satellite M35-S163

    I think I've tried about 10 different drivers, but I can't ALWAYS connect to the local network. He will not get an IP address. Other computers have no problem and are connected through the router, but it just won't connect. DHCP in router, IP config

  • Time Machine - multiple backups - different set of each backup folders

    I have a huge hard drive I want to backup via Time Machine to my big time hard drive of the Machine, but not for the little one (lack of space). Apple has not yet implemented a way to do this with different hard drives backup?  Each hard drive would

  • How to add an axis mutual to a xy chart?

    Dear freaks, I'm sure that some of you are dealing with ghosts from time to time. Particularly in the field of infrared / contribute spectroscopy, it is common to work as well with the wavelength (nm) and the wave numbers (cm ^ - 1). While displaying

  • HP Officejet 5610xi all-in-one

    Can the HP Officejet 5610xi all-in-one scan photos and download on my Mac OS X 10.5.8?  I want to e-mail photos sent spare. Series #CN5CUDG6PN, product # Q7310.  When I try to scan it flashes refer to the device documentation to get out of trouble. I