Select a field number of choice required

Hello

I had 2 components selectonechoice, 2 input text components & 1 components date of the components that are required between elements in a form.

When I submit the form showed me the errors of required field for text entry and the date components. Complete and submit throw errors in format of exception for the SOC components.

To resolve I had found that No selection Item uncheck include in LOV would solve this issue.

It really solved the problem for a component of the SOC.

But for the other the same enforcement solution would give me null pointer exceptions in few places in the program where otherwise works fine.

You have no idea why it behaves this way.

JDeveloper 11.1.1.7

Any help is appreciated.

I tried to do a code based on the values which is get JSFUtils.resolveExpression of this expression which throws null pointer.

I found a work around which suits to my situation and solved the problem.

Thanks for spending your time to Jiri.

Tags: Java

Similar Questions

  • Restrict the user to select a fixed number of values only to the SelectManyShuttle component

    Hello

    I'm working on JDeveloper 11.1.1.7.

    My requirement is to allow the user to select a fixed number of values using the SelectManyShuttle component only.

    Suppose if I have 10 available values in the left part of the element of the shuttle, I should allow the user to shuttle only three values on the right.

    In the image below, I already have 3 employees. Now the user should not be able to select employees more.

    < af:selectManyShuttle label = "Label 1" id = 'sms1.

    value = "#{pageFlowScope.shuttleBean.selectedEmpNames} '"

    leadingHeader = "all employees".

    trailingHeader = "selected employees.

    simple = "true" >

    < f: selectItems value = "#{pageFlowScope.shuttleBean.allEmpNames} '"

    ID = "si1" / >

    < / af:selectManyShuttle >

    Shuttle.png

    Can you please share your ideas to achieve this?

    Respect,

    Vinod

    There are different strategies how to implement this. The easiest will be to check the size of the selected list when the user cklicks the button finished. If the number is larger that the size limit display you an error message.

    Another way would be to use a valueChangeListener and the listener, check the size of the new value and add the tonthe size from the size of the already selected list. Then display an error message.

    Timo

  • I am creating a total field contingent in a PDF form created by me which will only add cost in total ONLY if the box is checked.  Another disadvantage to this is one of the fields (number of monitors), I am eager to multiply by the field notes.

    I am creating a total field contingent in a PDF form created by me which will only add cost in total ONLY if the box is checked.  Another disadvantage to this is one of the fields (number of monitors), I am eager to multiply by the field notes, which is a field required number on there.

    All of them are select___

    Here are all the names of FQDN (towards the bottom):

    Check the boxes:

    • selectiPhone
    • selectSwipe
    • selectMonitor
    • selectDesktop
    • selectLaptop
    • selectiPadCell
    • selectiPad
    • selectPhone

    Fields of costs:

    • CostiPhone
    • CostSwipe
    • CostMonitor
    • CostDesktop
    • CostLaptop
    • CostiPadCell
    • CostiPad
    • CostPhone

    The notes field that will calculate this is "NotesComputer Monitor in notes". -It is a body of numbers forced the inability to put anything else in it.

    Then add them all in TOTAL COST

    Sorry for my ignorance: it's my first time doing a form like this.

    Please see below for the screenshot.

    2015-10-12_1411.png

    Dropbox - conditionalSum.pdf has the answer

  • If I have several fields and if I select a field in a drop-down list it will fill the other fields

    If I have several fields and if I select a field in a drop box is it possible to auto poplulate the other fields.

    Thank you

    Brain

    Please post your question on InfoPath 2010 at the following link

    http://social.technet.Microsoft.com/forums/en-us/sharepoint2010customization/thread/e70c23a9-1b68-4EF9-9FB4-923997043e56/

  • How to find the real width of a field (number of characters) for a particular font

    Hello

    Is there a method to find the number of characters that can fit in a field label or a BasicEditField for a particular font.  Font.getAdvance (str) gives the width in pixels.   Based on the width of the screen, I want to calculate the length of the label field number that is, characters that it can take.

    Thank you.

    Well, I did a deeper look at your code. It is a way to walk around a division, true.

    But why not work with integer values?

    int screenWidth = Display.getWidth ();

    int largestCharacterWidth = defaultFont.getAdvance ("W");

    Now you can work with these integers.

    int fieldLength;

    {}

    fieldLength ++;

    } While (filedLength * largestCharacterWidth)<=>

    It would be a little more efficient.

  • Impossible to select the fields in Acrobat Pro XI tools/editor of formulas to calculate

    First of all, in the form Acrobat Pro XI during an attempted editor calculate fields, I don't and then select the fields (click), to calculate.  I can only just select or deselect all.

    Also, if my simple spreadsheet formula is:

    =IF(Value01> 0,SUM(Value01* (Value02-Value03)),"")

    Is there a simple way to translate this formula in a calculation script in the form Pro Adobe Acrobat XI (or FormsCentral) tools?

    Thanks for any input.

    Relating to the selection of fields: use the space bar or click a little out of the center of

    the checkbox. This is a known problem in Acrobat that has not been resolved yet.

    Unfortunately.

  • I can't refine edge to work in 2014 of CC.  I select the mask, do the steps required to refine the mask and get a negative icon, a circle with a slash, and it does not work.  I used refine edge before and it has always worked.  This happened on fo

    I can't refine edge to work in 2014 of CC.  I select the mask, do the steps required to refine the mask and get a negative icon, a circle with a slash, and it does not work.  I used refine edge before and it has always worked.  This has happened for a while.  Very frustrating!

    Adobe Creative Cloud to edge CC>

  • Do city and State fields on the region required address

    Hello
    For the region of the address when creating a client if we do not enter city, State, and County, we get an error message saying ' Please enter the elements of the desired address: STATE, COUNTY, CITY '. But there is no * to these fields, even if they are needed. I have a requirement to add * in front of the city and the State of the fields and make the field count as not required. I am not able to do it through customization.
    The style of address is a point flex which alludes to HzPuiLocationVO in the region of HzPuiAddressCreateUpdate. I'm not finding a way to update these help please!

    This is the area that I'm looking. Please correct me if I'm wrong.

    / Oracle/Apps/AR/Hz/Components/Address/WebUI/HzPuiAddressCreateUpdate
    The VO for this element of flex is HzPuiLocationVO

    Edited by: user4994352 January 6, 2011 14:48

    If a page has Flex point means fields come either de FACTO or KFF. In your case fileds are Addredd and the city, so a FDF. In the FDF, these fields may be required.

    Add "*" mark you must extend the controller and in processRequest to get the handle to bean filed. And set the required property to true or false depending on the needs.

    Example code:

    OAMessageTextInputBean tempBean = (OAMessageTextInputBean) webBean.findChildRecursive ("beanId");
    tempBean.setRequired ("yes");

    See link for CO extension below:
    http://oracleanil.blogspot.com/2010/09/controller-extension-R12-OAF.html

    For the handful of beans FDF see Anil post in the thread below:
    Requirement DescritiveFlexField

    -Anand

  • Image display according to the value selected from the bean of choice

    Hello

    I have a table with columns of bean of choice and have an another bean image

    based on the value selected from the bean of choice of a particular line, I want to display an image in the column of bean image

    and it is particularly in the line, in which the user changes the value of the bean of choice.

    Please help me

    Thank you

    Hello
    H1.

    If I choose 'user' of choice its not display any image, but I need disabled display images it

    -have you set the URI of the Image of the time of the image?
    -deleteicon_enabled.gif N deleteicon_disabled.gif

    Concerning
    Meher Irk

    Published by: Meher Irk on October 24, 2010 12:18 AM

  • Selection of the language makes the required password field

    Hello

    I use jDeveloper 12.1.2

    I have a login page with name, password selection and the language of the user (component SelectOneChoice - soc1). I have a value change listener in the field of languages selectonechoice which will set the locale to the newly selected language. I put partial triggers on the name field and the password of the user for soc1. It comes to make the labels the user name and password appear in the selected language. This makes the password field if necessary even if there is value in the field. I also noticed that this occurs only when the language is other than English.

    My lines jsff for the user name, password, and language are-

    "< af:inputText label =" #{loginBean.usernameLabel} "id ="it1"value =" #{loginBean.username} "required ="true ".

    showRequired = "true" autoComplete = "off" partialTriggers = "soc1.

    / >

    "< af:inputText label =" #{loginBean.passwordLabel} "id ="it2"value =" #{loginBean.password} "required ="true ".

    secret = "true" showRequired = "true" autoComplete = "off" partialTriggers = "soc1.

    / >

    < af:selectOneChoice label = 'language '.

    "value =" #{loginBean.Language} "id ="soc1"binding =" #{loginBean.soc1} "autoSubmit = 'true '.

    valueChangeListener = "#{loginBean.localeChangeListener} '"

    >

    < af:selectItem label = 'English' value = "" id = "si1" binding = "#{loginBean.si1}" / >

    < af:selectItem label = 'French' value = 'fr' id = "si2" binding = "#{loginBean.si2}" / >

    < / af:selectOneChoice >

    The value change listener code is-

    Private Sub changeLocale (language: String) {}

    This.setLanguage (Language);

    Locale newLocale = new local (language);

    FacesContext context = FacesContext.getCurrentInstance ();

    context.getViewRoot () .setLocale (newLocale);

    }

    {} public void localeChangeListener (ValueChangeEvent vce)

    changeLocale (vce.getNewValue m:System.NET.SocketAddress.ToString (()))

    }

    I have the tag f: view with the locale defined as local = "#{loginBean.locale}". "

    Whenever I change the language other than English, the password field is back with the error required, even if there is value in the field. He can't if I choose the language than English. can anyone shed light on what I'm doing wrong here.

    Thank you

    UMA

    Hello

    I think you are missing immediate = "true" in the selectOneChoice.

    If this does not work, check this post; ADF and JHeadstart: skip validation on selectOneChoice selection

    Kind regards

    Ruben.

  • By selecting the radio button makes the required field

    (Actually two similar questions but...)

    • I have a set of option buttons.  When the 'B' button is selected, I need the field text "T" to become "required".  If the user changes her mind and chooses another button or the form is reset to the "T" field does not show being "necessary".
    • The form also has a set of check boxes that, once again, when 'C' is checked, I need 'F' text field to become "mandatory" (or not if the box is unchecked).

    Help with the script for these is appreciated.

    Oh! It's a bit simpler:

    Custom calculation script

    Event.Target.Required = getField("radio1").valueAsString = 'B ';.

  • ADF select that one possibility appears not required

    Hello
    I have a simple page ADF that I dragged a field 'ADF select one choice' on. There a LOV tied to it. I've defined the field as required and given a message required to show. The question that this field shows it right when I save the record... and also not display any message or don't turn red. I was able to save the tgo record only the database field is filled in... I assumed that since I put the required field in the property inspector, he wouldn't store a blank field.

    When I changed this area to a list of raising entry, then it behaved as expected.

    Is this a bug with Jdeveloper... or just a bug with the developer (me) :).

    I use the 11.1.1.3.o version.

    Thanks for any help in advance.

    Seems to work very well here:
    http://jdevadf.Oracle.com/ADF-richclient-demo/components/selectOneChoice.JSPX
    (change the properties required on the right, then click on update)
    You can click on the view page source to see the code used for this page.

  • How can I customize the template of Contacts to include the fields of my choice?

    I have my contacts in an excel file and intend to import contacts into a CSV file. No problem. But Contacts model uses a lot of fields I don't need (such as Pager) and I see no way to customize more compared to what I need.  I want change, not the mapping of the fields to the options in the default template. In Contacts, in the view drop-down list, choose the folder to view the details. The selection becomes a column header and can be used as a filter. It seems to be more than 100 selections.  How to use these matach to a field in the Contact model? Example: 'Product name' is one of the details (column header) I choose, but there is no corresponding information in the Contact model, 'Product name' isn't one of the choices when mapping fields during import.

    Wrong forum.
    Ask here:
    http://answers.Microsoft.com/en-us/Office/Forum/Excel

  • What is the character of max selections several fields?

    For fields that are set up to use the lists of multiple selections and can have many values added to the field, which is the maximum number of characters that the field can contain? And, if a field hit the max, will we ever know?

    Thanks for any help.

    Beth

    Hi bmherr,

    Small text fields have a maximum of 100 characters, while the large text fields supports up to 32,000 characters.  For multiple-selection list text fields, the limit is 1000 characters.  For data cards (Custom Data Objects): 250 for small text fields and 32,000 for great text.

    No, it won't show error, and only the first 1000 only characters will be stored in eloqua!

    Thank you best regards &,.

    Barone

  • Hide the drop-down list when you print only when "PLEASE SELECT" is selected (unused field).

    Our form has several drop-down lists that by default the option "Choose", and not all of them are used whenever the form is used.  When we print a copy of each document, we would like the (unused) field "Choose" to disappear when printing - to make a copy of paper filter.  Is there a script for this?  I tried to use only the general framework ' Visible but does not print ", but of course, the field prints any - we need to print only when there was one another option as the default"Select"is selected.  Thanks in advance for your help.

    Coleen

    You can use a custom validation script, something like:

    Event.Target.Display = event.value = "choose"? display.noPrint: display.visible;

    To put this into effect, you will need to make a different choice and place it back to "choose." Another option would be to place as a custom Format script.

Maybe you are looking for