How to make any attribute to select one option to read only based on different att

I have two select a choice .one attribute is to create without binding and another is based on the control of data .i don't want to write code in backing bean to make read-only attribute.

Example:
< af:form id = "f1" >
< af:selectOneChoice label = "Label 1" id = "soc1.
autoSubmit = "true" >
< af:selectItem label = 'Y' value = 'Y' id = "si3" / >
< af:selectItem label = "N" value = "N" id = "si1" / >
< / af:selectOneChoice >
< af:selectOneChoice value = "#{bindings." ViewObj.inputValue}.
label = "#{bindings." ViewObj.label}.
required = "#{bindings." ViewObj.hints.mandatory}.
shortDesc = "#{bindings." ViewObj.hints.tooltip}.
ID = "soc2" partialTriggers = "soc1" >
< f: selectItems value = "#{bindings." ViewObj.items}"id ="si2"/ >
< / af:selectOneChoice >
< / af:form >

on the basis of the choice of a second selection select choice should be disable.



I know I need to link select all first choice of backing bean also make self submit true and add partialTriggers in second select only one option.


Please give me advice


Thank you

Prateek

is there a any error

Yes, Af.l1 in your case is the component itself not the value returned by the list.

Change it like this:


     
     
          
          
     
     
          
          
     


package a;
public class A {
     private String l1;

     public A() {
     }

     public void setL1(String l1) {
          this.l1 = l1;
     }

     public String getL1() {
          return l1;
     }
}

Jean Lou

Tags: Java

Similar Questions

  • How to make all the fields on one page read only (for the recipient) without having to make each field read-only?

    How to make all the fields on one page read only (for the recipient) without having to make each field read-only?

    Hello Jmbtexas4,

    By default, you will need to individually click on the fields of the form and check the 'read only' and save it. From now on, it is not possible to select all together and make the changes.

    -Usman

  • the sign less, shrink, &amp; out the buttons at the top right of the page is missing? How to make a comeback. In their place, it is only black?

    the sign less, shrink, & out the buttons at the top right of the page is missing? How to make a comeback. In their place, it is only black? I can click where I know everyone is & it works, but I need to be able to see them. Thanks for your help.


  • How could put editable report column as read only based on the other domain

    Hello world

    I'm new to APEX. I have a modifiable tabular report (SQL query). When I choose the column (which is a selection list) of a certain value, I want column B to be read-only (depending on the result of an another SQL described below). It doesn't seem to be a READ ONLY section in the type of tabular report where I could put my SQL condition.

    In other words, "column B" must be read only based on SQL returning following true or Exists:
    Thus, to determine if column B is ready only, I need the following logic:

    SELECT 'x '.
    of tab1
    where key = (value of column A)
    and the flag = "Y".

    Any help would be greatly appreciated!
    Thank you
    François

    You can only do so if your tabular presentation is a manually created. In this example, it shows how to set this property:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:170

    You can use a case statement to set this property for specific lines.

    SELECT empno,
           CASE
              WHEN ename LIKE 'A%'
                 THEN apex_item.text
                                  (34,
                                   job,
                                   80,
                                   100,
                                   'style="width:170px" readonly="readonly"',
                                   'f34_' || '#ROWNUM#'
                                  )
              ELSE apex_item.text (34,
                                   job,
                                   80,
                                   100,
                                   'style="width:170px"',
                                   'f34_' || '#ROWNUM#'
                                  )
           END job
      FROM emp
    

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Possible to make an element editable for some users and read-only for others

    Is it possible to make an element editable for some users and read only for others?

    I was able to achieve by catches of the select statement that I used to define an authorization scheme, placing in the State of read-only element. However, I would simply refer to the authorization scheme to use caching and to help keep things cleaner for future maintenance.

    Is it possible for a system of authorisation under a condition similar to the way point another element can be referenced by preceding with two reference points (e.g.: P1_First_Name)?

    I accomplished this in one of my applications by setting the value of a hidden Page 0 item on connect, for example P0_ACCESS_PRIVILIGES, and then use the feature 'Read only' integrated into the APEX for each article that I don't read for some users check the value of this element.

  • The selected data source is read-only

    Someone knows how to solve this 'problem '.

    The selected data source is read-only. You cannot change the view configuration.

    Thanks in advance.

    My solution to this has been reset in the field of data and download information again. I know that it is not best practice but it works

  • How to change the areas of region of report in read-only mode?

    How to change the areas of region of report in read-only mode?

    SKUD.

    Add fuction javascript after the page header (or section of function and Javascript variables)

    function disableItems(pRegionStaticId,pDisableFlag) {
      $('#'+pRegionStaticId).find('[name^=f]').each( function(){ /* matches fxx */
        if( $(this).attr('name').match(/f[0-9][0-9]/) ){
          return $(this);
        }
      }).attr('disabled',pDisableFlag);
    }
    

    pRegionStaticId is static Id + the region

    Note that this code specifically disables only the berries of request. Disabled items are not available after the submission (and are therefore different from readonly). But any javascript page can change disabled or readonly points (client side), so you need to check on the side server to validate the data.

    You can disable items to help

    disableItems ("MY_REGION_ID", true);

    and allow them, by passing false

    disableItems ("MY_REGION_ID", false);

  • Why not make a text box read only based on drop-down of work?

    Hello experts.

    I received help on this a few hours ago, and it has worked very well so I closed the discussion and form.  However, now it no longer works and I don't know what I did.

    I have a form with a dropdown list and two text boxes.  The first text box is populated according to the value selected in the drop-down list, I used a simple table of the to do and it works as expected.  I had to bring textbox2 read only based on some selections in the drop-down field.  It worked very well at the beginning, but now it no longer works.  I did not any changes to the form except that I closed and since.

    I try to get the following to work:

    If (this.rawValue is "Junk" again)

    {textbox2.access = "readOnly" ;}

    If (this.rawValue is "More Junk")

    {textbox2.access = "readOnly" ;}

    I put this in the change event using javascript.  I use ARE 8.2 on Windows Vista 32 bit.

    Any help would be greatly appreciated.

    Thank you

    Jerald

    In the case of change you can't get the rawValue... So, use xfa.event.newText to get the modified text...

    Also, you have a space at the end of the value while comparing. In the code below I removed it.

    If (xfa.event.newText is "Junk Again")

    {textbox2.access = "readOnly" ;}

    If (xfa.event.newText == more "junk")

    {textbox2.access = "readOnly" ;}

    Thank you

    Srini

  • Search select one option to get selected value no description

    Hello

    I have a link called 'responsible' (source of data is the list by model).

    The original version has the description and code of two attributes.

    And I select only one option in jsff to represent above.

    In value, replace listner I am discovering current selected information using code below
    ADFUtils.evaluateEL("#{bindings.responsible.items['" + (Integer)valueChangeEvent.getNewValue() + "'].label}");
    But it always gives me the description.

    If I try
    ADFUtils.evaluateEL("#{bindings.responsible.items['" + (Integer)valueChangeEvent.getNewValue() + "'].value}");
    seems that it gives a certain number

    I'm amazing hos to get the code?

    Help needed please

    Try this

        public void StatusChangedListener(ValueChangeEvent valueChangeEvent)
        {
            BindingContext lBindingContext = BindingContext.getCurrent();
            BindingContainer lBindingContainer = lBindingContext.getCurrentBindingsEntry();
            JUCtrlListBinding list = (JUCtrlListBinding) lBindingContainer.get("responsible");
            int newindex = (Integer) valueChangeEvent.getNewValue();
            Object row = list.getDisplayData(); // make sure the data is present
            Row lFromList = (Row)list.getValueFromList(newindex);
            Object lAttribute = lFromList.getAttribute("code");
            String newVal = (String) lAttribute;
            //.....
         }
    

    Timo

  • How to fill a field read-only based on selections from 2 DDlists?

    Follow-up question:

    http://forums.Adobe.com/message/2417876#2417876

    I have 2 drop-down lists.  'Department' and 'unit '.

    The selection in DDlist 'Department' creates a single list in DDlist 'unit '.

    I select the appropriate of these two DDlists elements.

    When I do this, I want the text read-only 'NameOnIDBadge' field is filled with a predefined entry.

    Example:

    In DDlist "Department", select the item «Finance & Administration»

    In DDlist 'Unit', select the 'Food Service' item in the list that appears

    THEN:

    In the text field read-only 'NameOnIDBadge' of the following built-in read-only text appears: "contract food serv.»

    (Thanks to Paul, I already know how to do selection in DDlist 'Department' affect the selection list in DDlist 'Unit')

    "but I don't know how to make the choice of these two DDlists to create a new entry in a text field).

    I have attached a mock-up of the file that I work with...

    If ((firstDDList.rawValue="Whatever") & (secondDDList.rawValue = 'Whatever'))

    yourTextBox.rawValue = "the text on the right"

    This code would go under the second output of DDList event, replace the code I put in there to add the control to the first DDList

  • Select Catalog options have disappeared (only have 1 now on Lightroom open; usually has 10).  Update Adobe Reader immediately prior.

    LR4/W8 system.  System Restore has been completed and don't make any difference.

    Help, please!  This window was my index for several catalogues, names and locations I now do not know.

    I have a tangle of old catalogues etc I don't want to have to sort through.  The list on this window was critical and I need in an emergency.

    The solution is highly appreciated!  Thanks in advance

    ... plugged in the external drive.  Magic!  All back again

  • JavaScript to make the fields to fill in the form read-only?

    How the fields to fill out my form read-only? I created the form, send to clients. Clients fill out the fields and click the submit button. The submit button pulls an automatically generated email and send the pdf file. I want the pdf file to send with the fields read-only. How then?

    This code should do the trick:

    for (var i=0; i		   
  • How to do a table read only based on a button click event

    I have two tables: table of an insert and a single table reading and calculate the button between the two.
    When the user has entered the values of the first array and push the button calculate, the second table is supposed to show the result.
    I want to calculate the first table to read only when the user clicks the button.

    JDev 11.1.1.5.0
    ADF BC

    You will need to write an EL to the readOnly attributes property in the table representing a Boolean parameter and put a PPR on the table during the click on the button calculate

    readOnly=#{pageFlowScope.isCalculateButtonClicked}
    
  • How to reset any attribute of origin of files in a folder in windows 7?

    I was looking for a file in one of my file folder.  I know that the file is there.  So I right click on the folder and check the "hidden" in the "attribute".  Now, I don't see the folder on the C drive.  How to restore the original attributes in the folder and all the files into it?  Thank you.

    Click the Start button and click on your username at the top.

    Massive rearmament of the hidden attributes can be done by right clicking the (my pictures...) the list and select Properties.

    Section of the tab general, check hidden near the bottom and click on apply.

    This will change all files to hidden, click Yes,.

    Then uncheck the hidden box and apply,.

    It will remove the attribute hidden all your files, click Yes,

    Then finally click on apply or save.

  • How to make any component button instances trigger rollOver sound?

    Hello all-

    I use the Button (the one delivered with the CS3 version) component in many places in my AS3 project. I'm coding in .as files, not on the timeline.

    I skinned the button to use the colors that I love. I would now like to 'skin' so that all instances generate a rolling noise, and I'll be darn if I can figure out how.

    I know that I can listen to ROLL_OVER events in each instance of Button. But I have a lot of buttons and it seems kludgy to add the code to each class I have following a button. I hope there is a way I can do * all * instances of the button meet the overthrow the same way. I hope it's like setComponentStyle or modification of the skin for the button; I can do it in one place and it works everywhere.

    I guess I can look on the level of the stage for bubble-ups of ROLL_OVER, imprison those who come from instances Button and handle it from there, but stagewide listeners also seem to be a tad kludgy.

    Is there an elegant way to make all my automagically buttons generate the same reversal sound?

    Thank you very much
    Matthew Ford

    It is a pity there is no response. But in case someone through this topic, FYI, I put on my main view class (to which all the other views and GUI are childed), an addEventListener (MouseEvent.MOUSE_OVER,...). MOUSE_OVER events that propagate.

    Then I see if the event.target is button in the listener function. If this is the case, I trigger the sound.

    Curiously, the ROLL_OVER event supposed to do not appear as expected. It was sometimes and sometimes it didn't. But the docs say that this event is not supposed to bubble for a reason any.

    I still think that there is a better way, and I'd like to hear it. Maybe I just need to make my own clone and the adaptation of the key, but I'm not known yet with the creation of components (SWC) and it seems that everything simply the substitution of the Button class with my own .as file not work not - the rollover functions report errors that they may not be overridden.

Maybe you are looking for