selectonechoice - submit a value nulls when I press button

Hello

I use jdeveloper 11.1.2.4. When I change the value of the civil status from single to married the value appears. But when I press submit, the value of the civil status code blanks. Pointers would be much appreciated.

Here is my code:

<? XML version = "1.0" encoding = "UTF - 8"? >

" < = xmlns:jsp jsp:root ' http://Java.Sun.com/JSP/page "version ="2.1"xmlns:f =" " http://Java.Sun.com/JSF/core "

' xmlns:af = ' http://xmlns.Oracle.com/ADF/faces/rich "> "

< jsp:directive.page contentType = text/html"; Charset = UTF - 8 "/ >

< f: view >

< af:document title = "templateTest.jspx" id = "d1" > "

< af:messages id = "m1" / >

< af:form id = "f1" >

"< af:pageTemplate viewId="/WEB-INF/templates/BCDHRMIStemplate.jspx "value =" #{bindings.ptb1} "id ="pt1">"

< f: facet 'content' = name >

< af:panelFormLayout id = "pfl1" >

< af:inputText value = "#{bindings." Agencyemployeeid.inputValue}.

label = "#{bindings." Agencyemployeeid.hints.label}.

required = "#{bindings." Agencyemployeeid.hints.Mandatory}.

columns = "#{bindings." Agencyemployeeid.hints.displayWidth}.

maximumLength = "#{bindings." Agencyemployeeid.hints.Precision}.

shortDesc = "#{bindings." Agencyemployeeid.hints.ToolTip}"id ="it1">

< f: validator binding = "#{bindings." Agencyemployeeid.Validator} "/ >"

< af:convertNumber groupingUsed = 'false' pattern = ' #{bindings. " Agencyemployeeid.format} "/ >"

< / af:inputText >

< af:selectOneChoice value = "#{bindings." Civilstatusid.inputValue}.

label = "#{bindings." Civilstatusid.label}.

required = "#{bindings." Civilstatusid.hints.Mandatory}.

shortDesc = "#{bindings." Civilstatusid.hints.ToolTip}"id ="soc1.

autoSubmit = "false" changed = "false" >

< f: selectItems value = "#{bindings." Civilstatusid.Items}"id ="si1"/ >

< / af:selectOneChoice >

< af:inputText value = "#{bindings." Firstname.inputValue}.

label = "#{bindings." FirstName.hints.label}.

required = "#{bindings." FirstName.hints.Mandatory}.

columns = "#{bindings." Firstname.hints.displayWidth}.

maximumLength = "#{bindings." FirstName.hints.Precision}.

shortDesc = "#{bindings." FirstName.hints.ToolTip}"id ="it2">

< f: validator binding = "#{bindings." FirstName.Validator} "/ >"

< / af:inputText >

< af:inputText value = "#{bindings." Surname.inputValue}"label =" #{bindings. " Surname.hints.label}.

required = "#{bindings." Surname.hints.Mandatory}.

columns = "#{bindings." Surname.hints.displayWidth}.

maximumLength = "#{bindings." Surname.hints.Precision}.

shortDesc = "#{bindings." Surname.hints.ToolTip}"id ="it3">

< f: validator binding = "#{bindings." Surname.Validator} "/ >"

< / af:inputText >

< f: facet name = "footer" >

< af:panelGroupLayout layout = "vertical" id = "pgl1" >

< af:panelGroupLayout layout = "horizontal" id = "pgl2" >

< f: facet "separator" = name >

< af:spacer width = "10" height = "1" id = "s1" / >

< / f: facet >

< af:commandButton actionListener = "#{bindings." First.Execute text}"="First"

Disabled = "#{!}" bindings. PartialSubmit First.enabled}' = 'true '.

ID = "cb1" / >

< af:commandButton actionListener = "#{bindings." Previous.Execute text}"="previous ".

Disabled = "#{!}" bindings. PartialSubmit Previous.enabled}' = 'true '.

ID = "cb2" / >

< af:commandButton actionListener = "#{bindings." Next.Execute text}"="next ".

Disabled = "#{!}" bindings. PartialSubmit Next.enabled}' = 'true '.

ID = "cb3" / >

< af:commandButton actionListener = "#{bindings." Last.Execute text}"="Last ".

Disabled = "#{!}" bindings. PartialSubmit Last.enabled}' = 'true '.

ID = "cb4" / >

< / af:panelGroupLayout >

< af:commandButton text = "Submit" id = "cb5" partialSubmit = "true" / >

< af:commandButton actionListener = "#{bindings.Commit.execute}" text = "Commit" "

Disabled = "#{! Bindings.Commit.Enabled}" id = "cb6" / > "

< / af:panelGroupLayout >

< / f: facet >

< af:inputText value = "#{bindings." Empid.inputValue}"label =" #{bindings. " EmpID.hints.label}.

required = "#{bindings." EmpID.hints.Mandatory}.

columns = "#{bindings." Empid.hints.displayWidth}.

maximumLength = "#{bindings." EmpID.hints.Precision}.

shortDesc = "#{bindings." EmpID.hints.ToolTip}"id ="it4">

< f: validator binding = "#{bindings." EmpID.Validator} "/ >"

< af:convertNumber groupingUsed = 'false' pattern = ' #{bindings. " EmpID.format} "/ >"

< / af:inputText >

< / af:panelFormLayout >

< / f: facet >

< / af:pageTemplate >

< / af:form >

< / af:document >

< / f: view >

< / jsp:root >

Best regards and thanks,

LUN

Hello

Also make sure that the data type of the attribute Civilstatusid and lov attribute should be the same

Tags: Java

Similar Questions

  • I have problem with value NULL when the use CASE statement please help this question

    I have problem with value NULL when the use CASE statement please help this question


    Table: digital_val

    SNO cl C2

    1 San1 11

    2 22 San2

    Actual result: expected to A         B

    A            B                                                                           11        22

    11 NULL

    22 NULL



    query:

    Select case when c1 = "san1" then c2,.

    case If c1 = "san2" then c2 B

    of digital_val

    I'm more curious why, when you select 2 rows, you expect a result of row?

    WITH digital_val

    AS (SELECT 1 AS 'Sno', 'San1"C1, c2 FROM DUAL 11)

    UNION ALL

    2 SELECT AS 'Sno', 'San2"C1, c2 FROM DUAL 22)

    SELECT CASE WHEN c1 is "San1" THEN END AS A c2.

    CASE WHEN c1 = "San2" THEN END AS B c2

    OF digital_val;

    With no other input, if you select 2 rows, you get 2 rows.  One of the other solutions use a max function, but is this really what you want, does not specify?

  • How update the form element in IR with value when it is null when you press Go?

    Hello

    in an international registration, I created a Date picker component. I want this element when the user enters the page to have a default value. I would also like when the user clears this area the corresponding item to get a default value. I realized the 1 but not the 2nd. I need this replacement to the value of the element because he his need in one between day where expression in the report query and I want to have the bind variable only, not NVL them in order to avoid to analyze all the partitions table. Thi point is used as an additional lookup field in the report and it is included in the elements of the Page to submit. Advanced report attributes.
    How can I do this?

    What I put up the atm:

    The source used
    Still, replacing value that exists in session state

    Type of source
    PL/SQL Expression or a PL/SQL function

    Source of value or expression
    TRUNC (SYSDATE)

    and also in default:

    Default value
    RETURN TO_DATE('01/01/1980','DD/MM/RRRR')

    Default value type
    Body of the PL/SQL function

    TIA

    Mrs..,

    Try this, sorry I did not test it ;)

    onblur="if (!this.value){this.value = $v('PX_HIDDEN_DATE_ITEM')}"
    

    Kind regards
    Dan

    http://danielmcghan.us
    http://www.skillbuilders.com

    You can reward this answer by marking as being useful or correct ;-)

  • LOV selection list with submit the value Null

    I have a select list with submit in which another fileld fills based on the selection. I have the TEXT Null in the LOV "Select Vendor" value but I do not know how to set the Null VALUE, while I get this error:

    ORA-01722: invalid number
    Calculation of default value of the element of error ERR-1019: page = 2 name = P2_VEND
    Ok

    I tried the following to the default value of the select list with submit without result:
    Replace (: P2_VEND, '%' | 'null %', null)

    Thanks in advance.

    Hello

    You can set the NULL value - 1 (or any other provider code which may not exist).

    Greetings,
    Roel

    http://roelhartman.blogspot.com/

  • Display of the values null when there is no data

    There are two columns 'A' and 'B' in the report which has values. IF there is no data in the report, it displays the following system message


    + 'No results '.
    + The specified criteria result no data. This is often caused by the application of filters that are too restrictive or contain incorrect values. Please check your filters to ask and try again. The currently applied filters are given below. » +

    My requirement is, indicates a value of zero instead of this message in the table format and should show the table axis 0.

    Please give me your entries and help me find the solution

    Thanks in advance.

    Published by: user10414249 on December 1st, 2009 14:22

    Yes, it is a different problem. Mark this "answered" and open a new thread.

  • When I press buttons to move the focus moves to the INTEGRATION which is not intended

    There is integration at the bottom of the screen, whenever I press each shift key, the focus moves to it. I don't want to, I don't turn it on, not deliberately anyway, this is not wanted, it made the browser unusable.

    How can I disable it [question mark] - [cannot use a shift to display the symbol of question mark real, media or almost anything.]

    It seems to have cleared up to now, maybe a stuck on the keyboard control key.

    You wouldn't believe how much it was frustrating!

    Please cancel the request.

  • I recently created a form to complete for the app e-business of the company. When you press the button submit, he only sent to our Inbox to project and not sent to the e-mail provided in the URL. Can someone help us to program the key to help explain why.

    I recently created a form to complete for the app e-business of the company. When you press the button submit, he only sent to our Inbox to project and not sent to the e-mail provided in the URL. Can someone help us to program the key to help explain why / tell us step by step what we should do?

    OK, I re-read your question. It's actually expected behavior. The user must manually send the email.

    If you want it to be a silent process, then you must either install a script on the local computer of the user who will do this, or use any email but something as a service web to which you directly submit the form data.

  • Getting the value null inserted in the back end when the field is turned off

    Hi gurus,

    I have a TOTAL field that is the sum of the other two fields in a form. I have disabled because do not have the user enter the value. The TOTAL field is the poster of the sum of the values in the front end, but in the back-end, the value is null. Please help me solve this problem. Thanks in advance.

    Have you tried to make the point read-only? Set the read-only item and try. You can do the unalterable element by two methods,

    (1) amend section-> go to read only tab-> read-only Condition Type: always

    (2) create a dynamic Action-> event: loading the Page-> Action: run the JavaScript Code-> Code:

    $('#P1_TEST').attr ('readOnly', true);

    $('#P1_TEST').css ('background-color', '#CDCDCD');

    Tom wrote:

    set the item read-only instead (not editable by the user but will present)

    Set the element value using the da no need to activate the item before submitting because the element is not disabled. Make the point read-only so that it will submit the value to the session and point cannot be changed always.

    Thank you

    Lacombe

  • Android Firefox beta (17) crashes when I press the menu key.

    Hi - I wonder if anyone can shed some light on this issue, that I had with Firefox Android?

    Whenever I press the "menu" button on my phone when running FF (tried with 16 and beta/17), the application crashes immediately. Briefly, I see my Android homescreen, then the page FF asking me to submit a Mozilla crash report. I did, of course, and one of the links is attached.

    I'm a little surprised that I couldn't find any mention on the interwebs on this problem. Maybe can someone let me know what happens?

    See you soon
    Charlie

    You probably have a Meizu-brand phone...

    The problem is that Meizu has changed android.policy.odex the wrong way with value null-dereference error in there...

    If your phone is a Meizu MX, then I can help you, as I have just published an unofficial fix for this evil library updated here:

    http://www.meizume.com/Meizu-MX-rooting-modding/14773-ROM-fix-fixed-policy-Library-Firefox-now-works.html#post158481

  • Bug when I press the &lt; TAB &gt; key

    How to reproduce this bug:

    In new VI, create a Boolean value and control on a tab on the front panel control.

    On the block diagram-> insert this control in while loop.

    Right click-> properties-> navigation key boolean Control-> click on "ignore this tab control.

    Right click on tab-> properties-> button Navigation control-> click on "ignore this tab control.

    Change Set tabs-> 0 for boolean choice order and 1 control of tab-> order

    Now move boolean tab control and run...

    When you press the key, there is a bug.

    How to fix this problem... ?

    I want to disable the tab key, but I have a lot of control... There is a solution for disabled tab key only once?

    I work with Labview 8.5.1 but I tried with Labview 2010 students and there is a bug too.

    Thank you very much for your help!

    (I give you an example, just run and press )

    It is an interesting bug.  I'll take a look at it and possibly to submit a request for correction.

    An idea might be to filter the Tab key before LabVIEW manages:

  • Binding wsdl call when to press the button

    Hi all

    I have a form, in which I have 4 settings, I need to pass these parameters to the WSDL binding when I press the "submit" button. How to do this.

    Thanks in advance

    Ravi

    Hi Bhushan10,

    Bhushan10 wrote:

    Hi all

    I have a form, in which I have 4 settings, I need to pass these parameters to the WSDL binding when I press the "submit" button. How to do this.

    Thanks in advance

    Ravi

    Here are the steps that you can follow:

    • Create a Web Service reference to the WSDL file
    • Create a submit to the Web Service type process to call the Web Service reference, you have created.
    • For the SOAP envelope using substitutions of point for the parameters. (In the example given below, direct page element substitutions are used, but I prefer to assign the value of page elements to the elements of the application (with suite submit calculations).) This will help re - use the web service on a different page if necessary)

    Reference: call to Webservice in the Apex, using the SOA WSDL

    I hope this helps!

    Kind regards

    Kiran

  • Apex. Submit - the value of the claim

    By using a number of different versions of Apex - on this particular server is Apex v4.0.2

    The JavaScript API documentation indicates apex.submit () the definition of the QUERY variable - which I suppose is the point value of standard application used in the Apex.

    I'm currently debugging presentation on the side of the browser and apex.submit () to DISPLAY the value of the request (as a variable p_request). But the value is not accepted or implemented on the side server. With the help of : REQUEST or v('REQUEST) in the regions of the page does not display the value of the validated request. It has the value null. There is no explicit condition of branch on the page.

    Which do not work, is that the elements of page values assigned are submitted and seen by the back-end. For example if P1_NAME is defined in apex.submit (), this value is visible by regions/process page after submission. Unlike the value of demand.

    I'm doing something wrong? Is this a problem with an older version of the Apex?

    BillyVerreynne wrote:

    It works very well. All elements of page Apex that are assigned values, performed with the values and the process/regions/etc on the next page has the correct values.

    The value of the REQUEST is disabled before the exposure treatment page unless it is set in a branch or a URL, this is why he has no value when they are referenced in the next page.

    Set the attribute to query in a branch of post-submit to the target page of &REQUEST. to demand ongoing value available in the page to see the transformation.

  • Turn off the text field (always submits page when you press enter)

    I have an area which allows you to enter search criteria. There are two fields and a button. The 1st field is a selection list that gives a list of columns in a database that can be searched on. The 2nd field is where the user enters the value to search for. The user can submit the search in 2 ways. They can press the button or press return when the cursor is in the 2nd item that is a text field (always submits page when you press enter). The results are then displayed in a region of report below.

    The problem I have, is that if the request is for > 10 seconds and the user gets impatient and hits the Enter key or the button search again the query is returned for a second time (or third or fourth according to the impatience of the user) causing the claim on the basis of data with a negative impact on the performance of the system.

    I know how to handle the search key. On a click event on I turn off the button so that the user cannot click on it again and resubmit the request.

    My question is - how can I turn off "always provides a page when you press enter" text item when the user presses enter? I tried an onclick event, but disabled the front element I could type in anything. Onblur event does not seem to do anything.

    Any ideas would be very appreciated.

    Andy

    Hello

    First of all, one thing to try: attributes of the Page, there is a section for the presentation in double - try setting this option on no.

    Otherwise, using the text field type, adds the following to the INPUT tag:

    onkeypress="return submitEnter(this,event)"
    

    which means, you can call your own function of javascript on the onkeypress event, the final line would be call submitEnter(). But you can set the value of a hidden page element:

    function doEnter(t, e)
    {
     if ($x('P1_SEARCH_RUNNING').value == 0)
     {
      $x('P1_SEARCH_RUNNING').value = 1;
      return submitEnter(t, e);
     }
     else
     {
      return false;
     }
    }
    

    Then, after changing your element to an element of normal text on the attributes of HTML form elements, add in:

    onkeypress="return doEnter(this,event)"
    

    Andy

  • Text field (always submits page when you press enter)

    Hello

    I have two elements (username and password) and two buttons (Submit & cancel) when the user enters the correct DB table entry values and strike button SUBMIT with the < /b > < b > mouse it is able to go to the next internal page does not, up to here everything works absolutely perfect.

    But now, instead of clicking the button "SUBMIT" with the mouse, I want the user to use the functionality of the ENTER key on the keyboard and so I apply the two elements (username and password) as < b > text field (always submits page when you press enter) < /b > and < b > password (submits when you press enter) < /b > respectively.

    Also created a conditional branch and an unconditional branch (with the highest sequence number) by the research of the below thread: -.

    Re: Text field Element submits page when you press ENTER

    but still did not find any success, when I run the page with the correct details in the elements and press button nothing works the same page returns back to me with these two elements as empty?

    any help?


    thxs


    Kind regards
    Kumar

    Hello

    OK - two things...

    First of all, your branch to page 9 was conditional on the SUBMIT button

    Second, you had the condition that "request = Expression 1" where it should be "EXISTS.."

    I removed the button state and changed the condition type. Try it now

    Andy

  • Siri in him sending text with the value 'NULL '.

    When I say, "Siri, text my wife, 'X', ' Siri responds correctly,"here is your message to Jill: 'X'. "" "  "Ready to send it?"  I say 'Yes' and sends the message.  As soon as I get a text from my carrier saying the recipient of the message was invalid.  100% of the time, I see that Siri has sent a text with the value NULL.

    I tried to restart my phone.  I tried to remove and re-add my contacts.  Anyone else having this problem?  Someone knows how to solve?

    If it's by the carrier, you should contact them and see what they receive in return for their side. Ive had Siri send messages for me and I have never seen this one IOS.

Maybe you are looking for