Disable the inputText based on the value selected on SelectOneRadio

Hi guys
With the help of Jdev 11 g Release 1.
I have a page with a selectOneRadio which has an option or NOT.
Here's an inputText which is only enabled when the user selects No.
I have a valueChangeEvent on the selectOneRadio that checks if this OPTION is enabled then it blanks to the inputText. AutoSubmit was true on selectOneRadio.
However, this does not work.
When I select No., the inputText is not getting activated. There is a partial trigger on it as well.
The below code:

< af:selectOneRadio label = "#{ebundle.» FORM5_UNSERVICEABLE}.
ID = 'sor1"layout ="horizontal ".
autoSubmit = 'true '.
Binding = "#{pageFlowScope.ForBean.SERVICEABLE} '"
showRequired = 'true '.
valueChangeListener = "#{pageFlowScope.ForBean.servicebleChange}" >
< af:selectItem label = "Yes" value = "Y" id = "si2" / >
< af:selectItem label = "" value = "N" id = "si1" / >
< / af:selectOneRadio >

< af:inputText id = "it2" rows = "3" columns = "100".
Binding = "#{pageFlowScope.ForBean.Reason} '"
"Disabled =' #{pageFlowScope.ForBean.SERVICEABLE.Value =="Y"}"
partialTriggers = 'sor1' / >

{} public void servicebleChange (ValueChangeEvent valueChangeEvent)
try {}
If (this.serviceable.getValue () == "Y") {}
this.reason.setValue (BLANK);

AdfFacesContext.getCurrentInstance () .addPartialTarget (this.pgl_reason); n < panelGroupLayout encompassing the inputText >
} ElseIf (this.serviceable.getValue () == "N") {}

AdfFacesContext.getCurrentInstance () .addPartialTarget (this.pgl_reason);
}


} catch (Exception e) {}
e.printStackTrace ();
}
}

Any help... I have done the above with select box Boolean, but it doesn't seem to work with selectOneRadio.

The af:selectItem do not have a connection to the managed bean. All that is not selected, the managed bean has no binding value.

Tags: Java

Similar Questions

  • How to render components based on the value selected in a list of values

    Hello
    I created a form of the ADF. I have a drop down that is a list of values. I want to toggle certain fields based on the values selected in the menu drop-down. Could you please let me know how to do it in the ADF?

    Kind regards
    Murielle

    Hello

    It should work. It is important to note that in case you use a component selectOneChoice for category then the value returned by #{bindings. Category.inputValue}
    is the index of the selected value in the list and not the value auto. To get the value, you must use ' #{bindings. " Category.attributeValue}"in the disabled state.

    If the problem is no display of code in your page to take a look.

    Gabriel.

  • A drop-down list can do the calculation based on the value selected in a drop down list?

    Form Acrobat X Pro Adobe

    Can I have a drop down list create a calculation based on the value selected in the menu drop-down?

    We have a set lunch and want the user to choose to be "A lunch', 'Lunch B'"C Lunch"or"just the milk. "

    It is for each of the 5 days of the week. There are therefore 5 drop downs, which have all the same 4 above choice.

    If the user chooses among the 3 lunches and then put $2.00 in the total box at the end of the line. If 'Just the milk' may put 0.50 in the box.

    The total area at the end of the line must keep a record of all 5 days and give a total.

    So if someone chooses lunch A LUN, sea and Sun and just milk for Tuesday and Thursday and then the total for this week must be $7,00

    Is it possible by using code or something?

    I did it in Excel, but we need it is an Adobe pdf file.

    TIA

    OK the total box has a 10 all the time to make it look like $ 2.00 for

    everything.

    Before even that I chose something there are 10 in the box.

    I am a newbie to Adobe scripting Total used VB/A .NET etc ' 1980

    However.

    Can you do any debugging in code?

    Initialize the sum

    var sum = 0;

    Make a loop on the drop-down list boxes and add the cost of the invoice sum

    for (var i = 1; i)< 6;="" i="" +="1)">

    Sum += getField("Week1Day"_+_i).value == 'just milk? 0.50: 2,00;

    }

    Set this field to the amount

    Event.Value = sum;

  • dynamically display title based on the value selected in the column picker

    Hi all
    Would it be possible to display the title of the dynamic report based on the value selected in the column picker. Suppose I have two State of the column and region. When I choose the status in the column picker the title of the report will show 'Summary of the situation' when I'll choose the region then the title will change to "summary of the region. Please help me...

    Hello

    Check your mail before I send the entire process with screenshots.

    Concerning

    NGO

  • 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

  • Display the values selected in a multiple selection prompt

    Is it possible to display all the values selected from a multiple selection prompt? One who is not in a mini report with a filter = promt tabular. I need in the narrative field.

    I don't have anythign to find at the moment which gives no other alternatives.

    Don't know why you need in the view of the narrative, but outside of what you mentioned (prompt = filter), there is no way to store multiple values in a variable to use in the same report selections. But you know that if you chose the way you mentioned, you could do this:

    (1) to your "mini-report" switch to the display of explanatory text.

    (2) since there is only a single column, type @1 in the narrative field.

    (3) consider the maximum number of values that a user would choose 10. Then in the 'lines to display' set 10.

    (4) in the line separator, put in a comma and press the SPACEBAR (this will add a space after the comma).

    (5) now drag this report to the dashboard and the button report properties, select 'View', then select your narrative point of view.

    HTH,

  • How to disable the "security selection" correctly?

    Hello experts!

    How to disable the "security selection" correctly?

    ! http://img689.imageshack.us/img689/2748/28668107.PNG!

    Thank you!

    Hello...

    Open the "Catalog Manager" and
    Access Shared-> 'Shared Folder Name' (ex: Sample Sales)-> _Portal.

    You will find all of the dashboards. Open the dashboard that you have already enabled selection. In this dashboard folder, you will find a folder with the name more: _selections *.

    Delete the file _selections *.

    You will get Enable option still finish at the top.

    All the best

  • How update the column in the table based on the value selected in apex4.1

    Hi all
    I have the following tables,
    leave_type table,it has the following fields,
    1.emp_name,
    2.sick
    3.casual
    and it has the values as follows,
    emp_name                  sick             casual
    guru                           10                10
    mishra                         10                10
    leave_master table and it includes the following fields
    1.emp_name,
    2.leave_type
    3.no_of_days
    I have the form based on the table "leave_master"
    Here, the leave_type has the LOV which includes.
    sick and casual.

    When the form is filled out and clicked on the button submit,
    I need to update the column leave_type in table leave_type,
    for example,.
    if 
    emp_name:guru
    leave_type:sick
    no_of_days:3
    then I want to update the leave_type column,
    sick sick = - no_of_days for the 'guru' of name
    That is to say, ill = 10-3 = 7

    then the leave_type of the table must be,
    emp_name                       sick             casual
    guru                                 7                10
    mishra                              10               10
    someone can such me what code or method I can use?
    Thank you.

    Published by: Gurujothi on May 24, 2012 21:54

    Published by: Gurujothi on May 24, 2012 21:54

    Try something like this...

    BEGIN
    IF: PXX_LEAVE_TYPE = "Sick" THEN
    UPDATE LEAVE_TYPE
    THE PATIENT VALUE = SICK -: PXX_NO_OF_DAYS
    WHERE EMP_NAME =: PXX_EMP_NAME;
    ON THE OTHER
    UPDATE LEAVE_TYPE
    DEFINE CASUAL = CASUAL -: PXX_NO_OF_DAYS
    WHERE EMP_NAME =: PXX_EMP_NAME;
    END IF;
    COMMIT;
    END;

  • Turn off/on a tabular Form attribute depending on the value selected in another attribute

    Dear Experts,

    I have

    1. an attribute in the form that is a select statement list containing 2 static values:

      • Family
      • Only

    and I have

    2 another attribute of tabular presentation that is display text (escape special characters, does not save the State), this attribute is also a link to another page.

    My requirement is when I select the family of another select list this attribute must be enabled and when I select one it should be disabled.

    Kindly help out me experts!

    Thank you and best regards,

    Madonna

    Hey Madonna,

    Please take a look at your page. I added a dynamic action that can be triggered by a change in the Type 'accompany' - selection list. dynamic action to display or hide the link 'Add family' according to the value of the selection list. the code of the dynamic action is as follows:

    $('.myClass').each (function () {}

    If ($(this).) Val() == 'Family') {}

    $(this) .parent () .parent ().find('.open_modal').show)

    } else {}

    $(this) .parent () .parent ().find('.open_modal').hide)

    }

    })

    where 'myClass' is the class that gave you to the selection list, and the "open_modal" is the class that gave you for the link.

    I used a show and hide because you cannot disable a link.

    I would like to know if that's what you had in mind.

    Kind regards

    Vincent

  • How to change the values of a from the values selected in another LOV LOV

    Hello

    I have a requirement in the ADF where there are two LOVs. The values in the second LOV based on the values that I selected in the 1st LOV should change dynamically.
    In addition, the 1st LOV accepts 3 values for each value that I select, a different query is executed to fill the 2nd LOV.
    I have a gross thought I can use 3 different read only view objects containing these 3 queries. And according to the value that I select in the 1st LOV I can run the object matching the view of the bean to support. But my doubt is how to link the results of this query that is executed to fill the 2nd LOV.

    Thanks in advance.

    Published by: 886591 on September 21, 2011 04:48

    Kouadio,

    All your queries based on the table? If Yes, you can use a variable binding for the lov attribute relative to the query to run on the LOV child.

    If they are based on different tables, you can create 3 different lovs for the child attribute and select what lov seem based on the parent attribute.

    Here are a few examples.

    http://andrejusb.blogspot.com/2011/03/ADF-BC-dependent-lov-11g-ps2ps3-bug-and.html

    http://andrejusb.blogspot.com/2008/12/Groovy-multiple-lovs-per-attribute-in.html

    Arun-

  • Disable the unwanted selection on the hover function

    Once again, my Lenovo Thinkpad 430 (running Windows 7) is constantly selecting what the pointer is sitting on. This happens regularly, and it drives me crazy. I was able to cure it in the past, but today I was unable to do so. The feature "Activate a window by hovering over it with a mouse" in Windows is NOT selected. Windows is configured to require a double click to open a window. Several times in the past, I have disabled the function of 'type' in the Lenovo touchpad (touchpad is the only pointer device that I use), but today I can't even find these settings to make sure that they are always disabled. I forget to do?

    I solved this. I installed a software update of the ultranav device, which allowed me to open the ultranav settings and change the settings again.

  • How can we show the values selected from a tree in a selectmanylistbox

    How can show us the selected values from a tree in a selectmanylistbox?

    Hello

    You can use a reference to an instance of the component RichTree and call getSelectedRowKeys on this subject. The selected rowKey allow you then eye-uo coup nodes in the tree. You can use a custom on the tree selection listener to be informed of each selection. There is also an API for the keys from line deselected, you need to delete nodes to select list much. Select it many list will get its data from a bean managed discovers brought (so values survive subsequent applications)

    Frank

  • Need help on how to load lov accoding to the value, select locale

    Hello
    My scenario is, I'll have two buttons. A single button for local (English) and another button for local (Nl) Dutch.
    I have a table of database that hold the 2 columns, which are en and Nl.
    I load this value of columns using a Lov
    When I click on the en button, Lov sholud load according to valus in the database column in and when I click on Nl it touches sholud charge Lov according to the values in the Nl column.

    I use a managed Session bean that allows to set the locale.

    I've implemented this scenario, but I had some bad problems.
    (1) my implemented method is not recommended as a best practice
    (2) lov dosagesn can't change until I click a value to this topic.

    In the query select lov, I used the link variable and value as adf.context.expressionEvaluator.evaluate('#{UserPreferences.language}')

    It is not recommended, so please help me to do this with best practices.
    Thank you.

    in your bean writing managed code below

            FacesContext facesContext = getFacesContext();
            Application app = facesContext.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = facesContext.getELContext();
            ValueExpression valueExp =
                elFactory.createValueExpression(elContext, "#{data." +"APPLICATION_MODULE_NAME" +".dataProvider}",Object.class);
    
                AppModuleImpl am =(AppModuleImpl)valueExp.getValue(elContext);       // here AppModuleImpl is the application module Impl class name
                ViewObject myVO = am.findViewObject("VIEW_OBJECT_NAME");
                myVO.setNamedWhereClauseParam("BIND_VARIABLE_NAME", "VALUE_OF_BINDVARIABLE");
               myVO.executeQuery();
    

    and test, hopefully this solves the problem :)

  • Select / option with cfquery - how to pass the value selected in the downform field

    I have a form that has a drop-down list selection/basic option using a cfquery result.  I would use the value that the user selects to pre-fill an editable field "title" more far along on the form.  For example:

    < do action = "" index.cfm? fuseaction = sendEmail "method ="POST"name ="email_approval"enctype =" multipart/form-data">"
    < table width = '500' border = "1" cellspacing = "0" cellpadding = "2" align = "center" >
    < b >
    < td align = "left" > request ID: < table >
    < td align = "left" width = "100" > < b > < cfoutput > #RequestId # < / cfoutput > < / b > < table >
    < td align = "left" > Application: < table >
    < td align = "left" width = "400" > < b > < cfoutput > #this_request.app_abbrev # < / cfoutput > < / b > < table >
    < td align = "left" > WR / RD #: < table >
    < td align = "left" width = "400" > < b > < cfoutput > #this_request.request_number # < / cfoutput > < / b > < table >
    < /tr >
    < b >
    < td align = "left" > Email Type: < table >
    < td align = "left" colspan = "2" >
    < select name = "approval_type" size = "1" >
    < cfoutput query = "approval_types" >
    < option value = "" #approval_types.approval_descrip # "style =" do-size: 8pt "> #approval_types.approval_descrip # < / option >"
    < / cfoutput >
    < / select >
    < table >
    < td align = "left" > < table >
    < td align = "left" > Date: < table >
    < td align = "left" > < b > < cfoutput > #dateformat (Now (), ' MM/DD/YYYY') # < / cfoutput > < / b > < table >
    < /tr >

    < cfset subjectLine = "#RequestId #" & "" & "Request approval" and the "#approval_types.approval_descrip #" >
    < script type = "text/javascript" language = "JavaScript" >
    < cfoutput >
    var #toScript (subjectLine, "jsLine") #.
    < / cfoutput >
    < /script >

    < script type = "text/javascript" language = "JavaScript" >
    setValue() function
    {
    document.getElementById('subject').value = jsLine;
    }
    < /script >


    < b >
    < td align = "left" > subject: < table >
    < td align = "left" colspan = "5" >
    "< b > < input type ="Text"name ="topic"required ="Yes"size ="70"maxlength = onClick =" setValue () "70"; ' > < / b >
    < table >
    < /tr >
    .......

    When the user gets to the field for the object the onClick préremplira the field with the value combined with < cfset subjectLine = "#RequestId #" & "" & "#approval_types.approval_descrip #" & "Application for leave" >.  regardless of what is selected, it uses the first element in the query list because it is what is rendered when the form is loaded (who won).  I tell me that I need an onChange event of javascript for the select statement for the drop, but can not find a way to pass this variable javascript back to form CF.  Any ideas, or am I stuck?

    Thanks in advance for your ideas!

    Unless you use a more recent version of CF (I think 7 or 8-9), in which case if the form is a FORM, and then select is a CFSELECT, and the fields are CFINPUT, you can use BIND = "" in the CFINPUTs to detect the @change of the CFSELECT and fill accordingly. "

    ^_^

    PS: I love JavaScript, I'm a JScriptin' fool, sometimes... but if this can be managed by CF, why not?  (shrug)

  • using the value selected in selectOneChoice as a variable to execute the method

    I have already created data for session bean method controls so I can drag and drop on the jsp. This works very well when you enter data in the fields of text input, but I really need first future value of an initial page and the second future value in the menu drop-down. I don't know how to get the value or how to connect the button during execution.

    The method accepts two values
    value 1, org is? (how do I in another page? Actually, I rendered for this input field set to false if she does not appear)
    value 2, typeId in a drop-down list of selectonechoice (how to handle the soc for the information? Currently, it seems that it is just passing the elementAt number, I have to get the actual value for the selected item. Where can I get it back?)

    I have a ready to run the method on the session bean that needs to take these values. (of course the inputvalue to the soc was not typeId, but I changed it. Values for the soc are in fact from another method, carried out earlier.)

    That's what I have so far:
    I have my waiting on info text entry field to be filled from the previous page (currently I entered manually it)
    I have my population selectonechoice
    A button with the method execute, already set (b/c I initially used drag - move to test my method)

    Sorry to repeat myself so much.

    Thank you!

    By passing a value between pages:
    http://download.Oracle.com/docs/CD/E15523_01/Web.1111/b31973/af_lifecycle.htm#BABIHDAA

    Getting a value from an item in the list:
    http://www.Oracle.com/technology/products/jdev/tips/Mills/ListValue/listbindingvalue.html
    http://blogs.Oracle.com/Shay/2009/11/getting_the_value_from_a_selec.html

Maybe you are looking for

  • Jet 7 stuck to clear TPM [Yes] [no]

    Successfully done an install of Windows 10, having strange problems and tried a reset of the device. Took awhile to get to 100%, and after it reboots it is stuck to a black screen with text of the blue/white box asking clear the TPM. I can't make a s

  • Satellite C650 - boring Toshiba button on Google Analytics

    Hello I see this annoying button whenever I go on Google Analytics and don't know how to get rid of it.Its a button with two screens (laptop and desktop... Black monitor). When I click it I get a black box that has:"Toshiba Media Controller plugin""N

  • HP did not provide FedEx tracking number

    I ordered a laptop HP pavillion on 22 October 14 and took the 5-7 standard delivery service. HP sent me the expected delivery date is Nov. 3. On Oct. 31, I received an email from HP confirmation that my order is shipped and they gave a link to the Fe

  • Exe LbView output read

    Hi, I created a LabView executable that is running some test of framgrabbing on a camera system. The outgoing result is a Boolean value that I want to read when I return from the exe somehow. I saw that there was a way to enter arguments with this st

  • Card mother UT35UMADDR3

    Can someone help me find a motherboard very schematic for a motherboard Intel UT35UMADDR3 of a HP Pavilion dv6-1000 Laptop Thank you very much Jim Shepherd