ADF ReadOnly InputText

Hello All
i have a read only ADF filed on my screen ,when i am trying to chnage it is value from JavaScript code it does not changed ,but if i replace the read only attribute with disabled it changed but when i submit the page the disabled input text value dose not submitted to the backing bean.
is there a css that make the input text filed locked(like disabled filed).
What i want :
locked input text filed (i.e. user can not change it is value from the component just he can change it from java script code) and when the user submit the form the new value delivered to the backing bean.
Regards
Mohd.Wish

hello,
Your working 'around' ADF but if you want this with javascript I would suggest.
Let the field be readonly for the use.
Create a hidden input field with the same value.
Change the value for that hidden field which is invisible for the user.
The value will be send to the backing bean.
-Anton

Similar Messages

  • Urgent: how to traverse through records using ADF ReadOnly Form

    Hi Guru's,
    I am new to ADF.
    I am having an requirement where i need to show the records in "ADF Read Only Form" where my query fetch more than one record, now i want to traverse through all the record as we do in ADF Table. How can i achieve this using ADF Readonly Form.
    Please suggest me on urgent basis.
    Thanks
    SPC

    Hi,
    What is your JDev version? Did you try setting the rowSelection property of the table?
    Ex :
      <af:table value="#{bindings.EmpView1.collectionModel}" var="row" rows="#{bindings.EmpView1.rangeSize}"
                              emptyText="#{bindings.EmpView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                              fetchSize="#{bindings.EmpView1.rangeSize}" rowBandingInterval="0"
                              selectedRowKeys="#{bindings.EmpView1.collectionModel.selectedRow}"
                              selectionListener="#{bindings.EmpView1.collectionModel.makeCurrent}" rowSelection="single"
                              id="t1">-Arun

  • How to populate a session value into a ADF form InputText

    I have the user name of the person that has logged in as a session variable and what to popluate the created by and/or last updated by columns in an ADF form 10.1.3.0.4
    I tried to load in the save action by adding
    FacesContext fc = FacesContext.getCurrentInstance();
    ExternalContext econ = fc.getExternalContext();
    HttpSession session = (HttpSession)econ.getSession(true);
    this.inputText138 = (CoreInputText)session.getAttribute("UserName");
    but does not work.
    below is code
    from page def:
    <af:inputText value="#{bindings.LastUpdatedBy.inputValue}"
    label="#{bindings.LastUpdatedBy.label}"
    required="#{bindings.LastUpdatedBy.mandatory}"
    columns="#{bindings.LastUpdatedBy.displayWidth}"
    binding="#{mainBean.inputText138}"
    id="inputText138">
    <af:validator binding="#{bindings.LastUpdatedBy.validator}"/>
    from backing bean:
    public void setInputText138(CoreInputText inputText138) {
    this.inputText138 = inputText138;
    public CoreInputText getInputText138() {
    return inputText138;
    public String commandButton23_action() {
    FacesContext fc = FacesContext.getCurrentInstance();
    ExternalContext econ = fc.getExternalContext();
    HttpSession session = (HttpSession)econ.getSession(true);
    this.inputText138 = (CoreInputText)session.getAttribute("UserName");
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    bindings.getOperationBinding("Commit");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    operationBinding = bindings.getOperationBinding("ExecuteWithParams");
    result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    return "printHighHelix";
    }

    Pl post details of OS, database and EBS versions.
    AFAIK, you cannot use multiple WHEN clauses in your control file.
    >
    when (1) = '1' and (431:432) 'CA' and (431:432) '04' and (431:432) '03' and (431:432) '01' and (431:432) 'NF'
    >
    Srini

  • ADF 11g: inputText - mark the hole text when move into text field

    Hallo,
    is it possible to change the behavior of a inputText component in a way that the hole text is marked when changing the focus to this component? In the standard case the cursor is on the left-aligned position of the inputText. The goal would be to achieve a quick-edit mode with an overwriting of the old value.
    Thanks for any advice
    regards
    Markus

    Hi Markus,
    It seems passing parameter to javascript method is not supported in adf or I may not know the way,
    However, I made below changes to the code provided, it selects the text on clicking on the inputtext but doesn't keep the selection, not sure whether this is a bug:
             <af:inputText ... clientComponent="true" id="it1">
                          <af:clientListener method="selectText" type="focus"/>
             </af:inputText>
                function selectText(){ 
                    var it = document.getElementById("<parent-id>:it1::content");
                    it.select();
                }You can use standard jsf h:inputText component for time being, I will reply once I found solution to use it with adf inputText component:
         <h:inputText ... onfocus="selectText(this)"/>
         function selectText(it){
              it.select();
         }Sireesha

  • Adf Readonly table to Editable

    Hi All
    I am using JDev 9.0.5.2. I need an editable table from an adf viewobject. Here is what I do:
    1. I create a view.
    2. On my jsp page I drag a readonly table from my data controls onto the page. There is no editable table option in this version of Jdev.
    3.I drag a create button onto the jsp page.
    Problem
    When I hit create, nothing happens.
    I go to the Ui Model to have a look at the action for the create button and its action is set to create. There are a list of other actions that can be assigned to this button but there is no insert or new action.
    Can anyone help with this
    Thanks

    Hi,
    open the Create action and set it to CreateInsert to create a new record. Note that you have to navigate to a page that has an editable form based on the VO
    Frank

  • Reg: Truncate readOnly InputText

    Hi All,
    For the Read Only InputText I want to truncate the content at some extent (For Eg:30px).
    I wrote custom class like :
    .Truncate af|inputText:read-only.truncate af|inputText::content{
    width:50px;
    height:12px;
    background-color:InactiveCaptiontext;
    border:1px Black dotted ;
    overflow:hidden ;
    } -- But Its not working
    For Eg: InputText having the content : *"Type your message using the form below. When finished, you can optionally preview your post by clicking on the "Preview" tab. Otherwise, click the "Post Message" button to submit your message "*
    I want to display output as "*Type your message..*" .
    Thanks in Advance .

    Try using length() or substring within EL. I never tried though. OR as I mentioned previously you have to manipulate the content in the backing bean.

  • ADF Faces -- af:inputText + autosubmit + navigate to next field.  How?

    Hi,
    I have the following problem:
    I have an ADF Faces inputText component. I have set its autoSubmit property to "true" because I wish to do some additional processing of the value.
    <af:inputText autoSubmit="true" ........... />However, if I change the value and press the "Tab" key, the navigation to the next field does NOT occur. I can only navigate to the next field, if no change has been made to the value of the inputText field.
    Does anybody know how I can force the focus to pass on to the next field even if the inputText's value is changed?
    Best regards,
    Bisser

    Here's a super-minimalistic sample:
    <afh:body>
        <h:form>
            <af:inputText label="Name:" autoSubmit="true"/>
            <af:commandButton text="Submit"/>
        </h:form>
    </afh:body>Just type something in the field and then press the TAB key. The navigation won't happen.
    We use IE6 because that's the client's requirement. The final product must run on IE6. I have tried with IE versions:
    6.0.2900.2180.xpsp.050622-1524 with SP2
    6.0.2900.2180.xpsp_sp2_gdr.070227-2254

  • How to set readOnly property using javascript

    Hi Folks,
    How do I make an inputtext readOnly using javascript?
    I have tried the following
    var textComp = AdfPage.PAGE.findComponent("textId");
    textComp.setProperty('readOnly', 'true');
    var textComp = AdfPage.PAGE.findComponent("textId");
    textComp.readOnly = true;
    var textComp = AdfPage.PAGE.findComponent("textId");
    textComp.setAttribute('readOnly', 'true');None of the above works. Any idea?
    Thanks
    Vishal

    http://docs.oracle.com/cd/E12839_01/apirefs.1111/e12046/oracle/adf/view/js/component/rich/input/AdfRichInputText.html#getReadOnly__
    Get function for attribute for 'readOnly'. This attribute is secured. You may get it, but you may not set it. Any changes to this attribute will not be transmitted to the server.
    Setting readOnly inputText value using javascript.

  • Insert new row into oracle databse through application module usng ADF Form

    I am using Jdeveloper 11.1.2. I am a beginner. I had tried in-built createInsert and commit method to add new row into oracle DB. For that, I had created ViewObject, VOImpl and AMImpl. Then, I created to jsf page. On first page, I dragged and dropped createInsert fn and VO(as ADF-readonly table) from DC Palette. and on second page, I dragged and dropped my VO(as ADF-Form) and commit (as Button) from DC palette. I created task-flow for it. when i click on createInsert button, i redirected to second page. where i filled all the required information on form. After filling, when i clicked commit button, i redirected to first page.(coz i created task flow to return first page after commit). New row is inserted into ADF-table, but when i checked my oracle DB, there was nothing added.
    Thus, I want to use custom method to insert row into OracleDB. So how can i get this? what are the steps required to do this? what programming codes required in Bean.java and AMImpl.java. Or is there any other steps to do this?
    please provide me detail steps and programming code for bean, amimpl or for VOImpl or EOImpl.
    please help me.

    User,
    To insert a row into the db you have to use a VO which is based on an EO (entity object). There is no java class (or impl) needed. You can all do this decoratively.
    All you have to think of is the PK of the new row. You can use Groovy for that (http://tompeez.wordpress.com/2011/09/02/using-groovy-expression-to-set-a-primary-key-with-a-sequence-number/)
    The rest is like you described it yourself. Drag the Vo onto the page, drop it as read only table, drag the createInsert onto the page as button and set up the navigation. On the second page drag the same VO onto the page and drop it as ADF Form. drag the commit operation onto the page as button and setup the navigation back to the first page.
    Timo

  • Not Yet Documented ADF Sample Applications #113.Apply Bind Varible Val @11g

    Hi ,
    I am trying to apply this to 11g but I am facing some weird issues. I am using an editable inline detail table and when I edit a row and refresh the page it adds a new row with the updated value to the table.
    Should I use a different way to Apply Bind Varible Values to Filter View Link Accessor RowSets in 11g ?
    113.Apply Bind Varible Values to Filter View Link Accessor RowSets
    Thanks

    Hi Frank,
    Would really apprecaite your feedback and Muhammad has same issue and he is
    trying work around for this issue using view accessor.
    I read your wonderful blog everytime, I am stuck in problem , I would appreciate ,if you can give me answer to my issue.
    Let us consider : Item , SubItem relationship.
    Component : Item VO , SubItemVO , Item can have many subitem.
    1.Created ItemVO
    2.Create SubItemVO
    3.Create View Link based on ItemVo-ItemId that is FK in SubItem table.
    4.Created JSF page and Dragged ItemVO from Datacontrol to JSF Pagen as ADF ReadOnly Table.
    5.Expanded Item table structure in Structure window and open the detailstamp.
    6.Dragged SubItemVO in detailstamp as ADF ReadOnly table.
    Expected Result :
    1. ItemVO First Row
    1.SubItems belonging to ITEMVO First Row
    2.SubItems belonging to ITEMVO First Row
    2.ItemVO Second Row.
    1.SubItems belonging to ITEMVO Second Row
    Current Result :
    1. ItemVO First Row
    1.SubItems belonging to ITEMVO First Row
    2.SubItems belonging to ITEMVO First Row
    2.ItemVO Second Row.
    1.SubItems belonging to ITEMVO First Row
    2.SubItems belonging to ITEMVO First Row
    Description: Second ItemVO when expanded shows first ItemVO SUBITEMS.
    Thanks,

  • WebGalileo tree integration with adf components

    Hi all:
    I have a project using adf faces, and in one page i am trying to use WebGalileo tree component
    The thing is that i have this page, in the left side is the webgalileo tree, and in the right side are the adf components (inputText, outputText, file upload, adt data table)
    When i click in one of the nodes of the tree, i load data from a database to the adf components; the i can work with that data, edit the values and so on; if i click in another node of the tree i need to recolect that data from the adf components in the backing bean and process them in some way.
    The thing is when i click in another node, i dont have any data in the components in the backing bean; the values i entered doesn't seem to apply to the components in runtime, i guess because there is no form submit when i click on a node, only ajax event listener provided by the webgalileo components
    Is there any way to integrate those two things ?? i mean make them work together well, so i can "see" the values entered in the adf controls when i click another node ??
    Thanks a lot

    Hi,
    Hope these links can help you
    http://www.oracle.com/technology/pub/articles/cioroianu-ajax-data.html
    http://www.oracle.com/technology/pub/articles/vohra-ajax.html
    http://www.oracle.com/technology/pub/articles/nimphius-ajax.html
    http://www.oracle.com/technology/products/jdev/tips/mills/AjaxAutoSuggest/AjaxAutoSuggest.html
    EronYang

  • PageFlowScope in ADF not working properly

    Hi. Experts...
    i am working on oracle JDeveloper 11g and try to consume a remote WSDL service, i have created an adf readonly table with the binding of datacontrol's method it is working fine..
    now i want to pass the selected row value on the next page where i will show the form to update the selected row's records.
    for this i am using setpropertyListener on the button of table page (.jspx page)
    and on next page(also .jspx page) i have set the selected row value in pageFlowScope.result
    when i am trying to get the value of "pageFlowScope.result" it shows the value like-
    [{Return=[{_RETURNEDROW=[{_XWF0V0=0.00, _XWGFVA=0.00, _XWASDT=2010-05-20, _XWGGVA=14.00, _XWBNCD=AG, _XWGIVA=0.00, _XWF1V0=0.00, _XWF0VA=0.00, _XWF3VA=0.00, _XWG4TX=Customer ACC10, _XWGDVA=0.00, _XWBPD0=2010-05-15, _XWIDV0=0.00, _DSDCDE=AU, _XWF1VA=0.00, _XWBAD0=2010-05-14, _XWF2VA=0.00, _XWF6VA=0.00, _XWGEVA=0.00, _XWF4VA=0.00, _XWE0NB=0, _XWBCCD=ACC10, _XWJUN0=0, _XWBQDT=2010-05-08, _XWARDT=2010-05-19, _PERSON=MTT, _XWGAVA=0.00, _XWGCVA=0.00, _CUSNO=1, _XWGBVA=0.00}], returnValue=11, _ERROROBJECT=[{_SQL_CODE=0, _SQL_STATE=00000}]}]}]
    but when i am trying to get the internal value of pageFlowScope.result through-
    pageFlowScope.result.Return._RETURNEDROW._CUSNO
    it show me error
    oracle.adf.model.adapter.dataformat.XMLHandler$DataCollection not have a property "Return"
    or
    pageFlowScope.result._RETURNEDROW._CUSNO
    it show me error
    oracle.adf.model.adapter.dataformat.XMLHandler$DataCollection not have a proerty "_RETURNEDROW"
    so plz guide me how can i get the value of pageFlowScope.result
    please help, its urgent
    regards
    Jayant

    Hi,
    so now how can i get the inernal value of pageFlowScope.result through binding.
    ADF binding ? No, you can't. To use ADF bindings you read values from a business services through a Data Control. The PageFlowScope is a memory scope of the task flows. You access it from Java or EL. However, in your case - as it seems - the memory scope contains structured data and no data objects.
    There is not much I can do for you other than recommending to complete one of the tutorials we have on otn.oracle.com/products/jdev
    Frank

  • How can I filter the rows displayed on an ADF Table ? pls help urgent..

    Hi All,
    I have a page with ADF readonly table, based on who is logging in I want to filter the rows to be displayed when the page is firstly loaded. This page is called from the main menu.
    I have created a custom method in the Application Module Impl :
    public void setInvoiceFilter () {
    ViewObject vo = findViewObject("BrowseInvoice1");
    ViewCriteria vc = vo.createViewCriteria();
    ViewCriteriaRow vcr1 = vc.createViewCriteriaRow();
    vcr1.setAttribute("Userid","xxxx");
    vc.add(vcr1);
    vo.applyViewCriteria(vc);
    vo.executeQuery();
    The question is : where and how should I call this method ?
    is this a correct approach ?
    Thank you very much for your help,
    xtanto

    I assume you're talking about a JSF application.
    I think you should be able to do this in the constructor of a backing bean.
    1) Add an operation binding, bound to your service method, to the page's pageDefinition.
    2) On the JSF page flow Overview tab, add a managed property to the backing bean. Call it, say, myMethod, give it type oracle.bindings.OperationBinding, and give it the value #{bindings.nameOfYourOperationBinding}
    3) Add a myMethod field of type OperationBinding, with getter and setter, to your backing bean class.
    4) In the backing bean class's constructor, add code like:
    myMethod.execute();This will execute the method every time the page is loaded.
    Now, if you want to execute the method only the first time the page is loaded, it's a bit trickier. You need to set, and use, a session variable:
    Map sessionVars = FacesContext.getCurrentInstance().getExternalContext().getSessionMap();
    if (sessionVars.get("hereBefore") == null)
      myMethod.execute();
      sessionVars.put("hereBefore", "true");
    }

  • How do you create table/datagrid programmatically?

    I'm ASP.NET developer and I'm writing my first application in JDeveloper & ADF and I'm having problem thinking through the solution.
    I'm building two JSF pages. First page will display 3 or more input text (text1, text2, text3...) and a ADF read-only table that displays list of records that contain 3 or more fields (field1, field2, field3...). Each input text on the form is related to corresponding fields (i.e. text1 goes with field 1 and so on) in the table. User will enter values in the input text boxes and select a row in the table and click next which will take the user to the second page.
    In the second page I need to take the selected row from table and corresponding input text and create another ADF readonly table (or something that looks lke table or grid). But this table needs to show in each field in the row as:
    - Name of Field 1 from the table on First page.
    - Value of Field 1 from the table on First page.
    - User inputted text 1 value from First page.
    - Checkbox that user can select to indicate if they want to use Field 1 or User entered text value
    I need to create a row for each field in the table on first page. How do you do this in JDeveloper & ADF? I'm in real hurry for this solution so if anyone can help I would greatly appreciate it.
    Thank you.
    Edited by: dansshin on Mar 6, 2010 6:59 AM
    Edited by: dansshin on Mar 6, 2010 7:02 AM

    Hi,
    this is not necessarily an ADF question but a basic JSF how-to question. ADF Faces provides you with JSF components, like RichInputText, RichTable, which are the runtime objects that make a table or a input text field. The table has one to many child components of type RichColumn, which you can either create at design time, if your table wasn't created dynamically, or in Java at runtime (using a managed bean associated with the page).
    You also need to keep the values of the previous page and pass them on to the next. One option is to use attributes in a shared memory scope. For example, you could create a HashMap in session scope and add the input values from the input text fields and the selected row values (as a list or collection). Then when building the table on the scond page, you could get this back and dynamically populate the table.
    However, you better search for a JSF tutorial that deals with such dynamic component creation and then get back to ADF Faces. As said, the question is not ADF specific but a request for a general JSF tutorial that we don't provide
    Frank

  • JBO-35007: Row currency has changed.. when Rollback fom a Dialog page

    Hi All,
    From a page with an ADF Readonly table, I press 'Edit' button to edit some fields (not all) in an edit page as a Dialog page. Both page use same View Object Instance. Edit page has Commit and Rollback button.
    Since it is a dialog page , I add af:returnActionListener to the Rollback button
    If I press Commit its fine. But If I press Rollback, when I back to originating page I get this error :
    1. JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-35007: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[IV 2107 SIU01 ]
    2. JBO-35007: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[IV 2107 SIU01 ]
    How to solve this problem ?
    Thank you for your help,
    xtanto

    Doing a rollback by default clears the caches. This causes view objects to be requeried the next time they are needed, and causes the current row to be reset to the first row in the view object instance's default row set.
    This error means that the row that was current when the browse page was rendered is now no longer the current row. Token validation is set on the page definition for a JSF page. By default, token validation is on.
    To adjust the setting for token validation:
    1. Open the page definition file for the page.
    2. In the Structure window, select the root node for the page definition itself.
    3. In the Property Inspector, use the dropdown list for the
    EnableTokenValidation attribute to set validation to true to turn on token
    validation, or false to turn off token validation.
    Alternatively, if you cause a partial-page update on the base page, it should update it's notion of the current row and that is another way to avoid this error.

Maybe you are looking for