InputText RichInputText = (RichInputText) root.findComponent ("it1")

Hello

I am using below code to get the value of text entry in scope pageFlow Managed Bean uses do not all attributes

FacesContext facesContext = FacesContext.getCurrentInstance ();

UIViewRoot root = facesContext.getViewRoot ();

InputText RichInputText = (RichInputText) root.findComponent ("it1");

inputText is not able to find the it1

String val = inputText.getValue ();

Please suggest me the Solution

Thank you

Vincent

Hello

Try findComponentInRoot to get the instance of the component:

    /**
     * Locate an UIComponent in view root with its component id. Use a recursive way to achieve this.
     * @param id UIComponent id
     * @return UIComponent object
     */
    public static UIComponent findComponentInRoot(String id) {
        UIComponent component = null;
        FacesContext facesContext = FacesContext.getCurrentInstance();
        if (facesContext != null) {
            UIComponent root = facesContext.getViewRoot();
            component = findComponent(root, id);
        }
        return component;
    }

    /**
     * Locate an UIComponent from its root component.
     * Taken from http://www.jroller.com/page/mert?entry=how_to_find_a_uicomponent
     * @param base root Component (parent)
     * @param id UIComponent id
     * @return UIComponent object
     */
    public static UIComponent findComponent(UIComponent base, String id) {
        if (id.equals(base.getId()))
            return base;

        UIComponent children = null;
        UIComponent result = null;
        Iterator childrens = base.getFacetsAndChildren();
        while (childrens.hasNext() && (result == null)) {
            children = (UIComponent)childrens.next();
            if (id.equals(children.getId())) {
                result = children;
                break;
            }
            result = findComponent(children, id);
            if (result != null) {
                break;
            }
        }
        return result;
    }

Kind regards

Habib

Tags: Java

Similar Questions

  • Getting a value from a text of entry in backing bean element

    I created a component of entering text on a page where I will enter a number, adjustment of Autosubmit as true. ValueChangeListener property is defined as #{test.displayTable} where displayTable is a method defined in managed bean test.

    Now I know to extract the value entered in the text input component by creating a RichInputText variable in the advanced properties.

    But in case the Advanced property is empty, then how I'll be able to recover the value of it? This is the code. I'm not able to get the value entered in the component. I can not even find any method getvalue for her.
    FacesContext facesContext = FacesContext.getCurrentInstance();
    UIViewRoot root = facesContext.getViewRoot();
    RichInputText inputText = (RichInputText) root.findComponent("it1");  // it1 is the id of the input text component
    System.out.println("inputText: "+inputText);
    On the use of my statement, is out getting generated, whereas I had entered in 90.
    inputText: RichInputText[UIXEditableFacesBeanImpl, id=it1]

    Hello

    Always mention your JDev version.

    If you use a valueChangeListener for the field, you can get the value using valueChagedEvent.getNewValue ().

    Arun-

  • How do I get the date from a date. MinValue?

    How can I retrieve the value typed currently dated. MinValue FRONT to be submitted

       <af:inputDate value="#{bindings.When.inputValue}" label="WHEN"
                                shortDesc="#{bindings.When.hints.tooltip}"
                                contentStyle="width:240px;" id="it6" required="true"
                                showRequired="true">
                    <af:convertDateTime pattern="yyyy-MM-dd'T'HH:mm:ss.SSSZ"/>
                  </af:inputDate>
    

    During my action button binding, I try to retrieve the value selected in this field and insert it in another column of the database called «deviceDate»

    I tried the code below, but I get an exception nullpointer to call inputText.getvalue)

    FacesContext facesCtx = FacesContext.getCurrentInstance();
    UIViewRoot root = facesCtx.getViewRoot();
    RichInputText inputText = (RichInputText)root.findComponent("it6");
    s = inputText.getValue().toString();
    

    Try this

    DCBindingContainer bindingContainer = (DCBindingContainer) BindingContext.getCurrent().getCurrentBindingsEntry();
            DCIteratorBinding binding = bindingContainer.findIteratorBinding("");
            Row newRow = binding.getCurrentRow();
            Timestamp dateVal = (Timestamp)newRow.getAttribute("When");
    

    Replace the iteratorname and the data type of the field, likely ones.

    See you soon

    AJ

  • NullPointerException-get the value of a component InputText

    Hi all
    I'm trying to get the value of an inputText component in an application from merger of adf.

    public String cb1_action() {}
    String Val;
    try {}
    FacesContext facesContext = FacesContext.getCurrentInstance ();
    UIViewRoot root = facesContext.getViewRoot ();
    InputText RichInputText = (RichInputText) root.findComponent ("it12");
    Val = inputText.GetValue (). ToString();

    System.out.println ("val =" + val); }
    catch (Exception e) {}
    e.printStackTrace ();
    }
    Returns a null value.
    }
    }

    I get "java.lang.NullPointerException" for the line "val = inputText.getValue () m:System.NET.SocketAddress.ToString ();

    What could be the reason?

    Thank you

    If you use the page template, simply print this id using binding and use
    It should be like pt1:it12
    or something like that

  • disable the value change listener until the previous process is complete

    I use Jdeveloper 12.1.2

    I have a text field that has a value change listener. The listener calls a function that manages a number of process and queries. The function then clears the text entry field and focus the cursor in the text entry field.

    My problem is that the user will enter the text back to back quickly it causes all locked up. Is anyway to prevent the user to enter additional text before the end of the listener.

    I tried the following, but he has not always prevented the user. At the beginning of the listener:

    FacesContext facesContext = FacesContext.getCurrentInstance ();

    UIViewRoot root = facesContext.getViewRoot ();

    InputText RichInputText = (RichInputText) root.findComponent ("it4");

    inputText.setDisabled (true);

    AdfFacesContext.getCurrentInstance () .addPartialTarget (inputText);

    then at the end of the listener, I re activated the field.

    inputText.setDisabled (false);

    AdfFacesContext.getCurrentInstance () .addPartialTarget (inputText);

    Maybe this can help: http://www.jobinesh.com/2010/10/preventing-user-input-on-fusion-web.html

    Dario

  • inputText refresh

    Hello
    There is a CommandButton, an inputText and an outputText page. Then click on the button, I want to skip the validation and set a new value #{pageFlowScope.i}.
    But the inputText may not display the correct value as outputText. Its value is always the same. For example, click once on the button, display outputText '1', inputText display nothing. Double click on the button, display outputText '2', inputText display nothing.
    How to solve it?
    <af:commandButton text="commandButton 1" immediate="true" id="cb1">
            <af:setPropertyListener from="#{pageFlowScope.i + 1}" to="#{pageFlowScope.i}" type="action"/>
    </af:commandButton>
    
    <af:inputText value="#{pageFlowScope.i}" id="it1" >
            <af:validateLength minimum="5"/>
    </af:inputText>
    
    <af:outputText value="#{pageFlowScope.i}" id="ot1"/>

    Hello

    He has reason immediate = "true" the button control.
    You can use the following:

            
              
            
              
                
              
              
    
    // and in test backing bean
    
        public void test(ActionEvent event) {
            Long i = (Long)AdfFacesContext.getCurrentInstance().getPageFlowScope().get("i");
            ((RichInputText)((UIComponent)event.getSource()).findComponent("it1")).setSubmittedValue(i);
        }
    

    Pedja

  • Hi can I reset the value that is assigned to &lt; af:inputtext

    Hi, please find the code below

    IAM trying to find the value on which the user has clicked in the outputtext in a pop up


    < af:forEach var = "item" items = "#{backing_TestSample.friendlist}" >
    < af:inputText value = "#{point}" id = "inputText" >
    < af:clientListener method = "clientMethodCall" type = "click on" / >
    < af:serverListener type = "customEvent" method = "#{backing_TestSample.onPreRender}" / >
    < af:showPopupBehavior popupId = "popup1" triggerType = ' click on ' align = 'afterEnd' >
    < / af:showPopupBehavior >
    < / af:inputText >
    < br >
    < here >
    < / af:forEach >


    < af:popup id = "popup1" >

    < af:inputText text = "Say" id = "inpu1" >


    < f: event listener = "#{backing_TestSample.changePopup}" type = "preRenderComponent" / > "
    < / af:inputText >
    < / af:popup >



    ----------------------------------------------------------------------------------------------

    public list getFriendlist() {}
    frndsList = new ArrayList < String > ();
    frndsList.add ("a");
    frndsList.add ("ba");
    frndsList.add ("c");
    frndsList.add ("d");
    frndsList.add ("f");
    frndsList.add ("g");

    Return this.frndsList;
    }


    {} public void onPreRender (event ClientEvent)
    InputText RichInputText = (RichInputText) event.getComponent ();
    this.chatId = (String) inputText.getValue ();

    }



    {} public void changePopup (ComponentSystemEvent event)


    System.out.println ("change POP" + this.chatId);


    ((RichInputText) FacesContext.getCurrentInstance () .getViewRoot () .findComponent ("inpu1")) .setValue (this.chatId);

    }


    ---------------------------------------------------------------------------

    In the console, I am able to see the correct output, I want to say if I click on 'a' I could see the POS 'POP A change' and even in the pop up it shows me the correct value, but if I click on another aoutputtext value in the menu contextual does not evolve, it's always show the first value that is "a".


    Please let me know what that iam missing to update the values in the pop-up window

    You can set the following property to the pop-up window contentDelivery = "lazyUncached" ?









    contentDelivery = "lazyUncached" >



    Thank you
    Nini

  • Problem with binding components of fragments of page in bean managed when rendered as region

    I detected a problem when I bind a component in a managed bean for a page fragment which is a view of a TaskFlow exposed to JSF as a region.


    This problem happened when I exhibited same TaskFlow as region of two or more instances in the same Joint Strike Fighter. The component that is only returned in the latter region.


    JDeveloper 12 c (12.1.2.0) ADF12c.

    This is the code:

    The page fragment:

    <?xml version='1.0' encoding='UTF-8'?>
    <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <af:panelGroupLayout id="pgl1">
        <af:inputText label="Label 1" id="it1" binding="#{bindingComponentBean.inputText}"/>
        <af:button text="button 1" id="b1"/>
      </af:panelGroupLayout>
    </ui:composition>
    

    Bean managed (within the scope of the request)

    package com.edisa.test.errors.view.backing;
    
    
    import oracle.adf.view.rich.component.rich.input.RichInputText;
    
    
    public class BindingComponentBean {
        private RichInputText inputText;
    
    
        public BindingComponentBean() {
        }
    
    
        public void setInputText(RichInputText inputText) {
            this.inputText = inputText;
        }
    
    
        public RichInputText getInputText() {
            return inputText;
        }
    }
    

    TaskFlow

    <?xml version="1.0" encoding="UTF-8" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-definition id="TestTaskFlow">
        <default-activity>test_fragment</default-activity>
        <managed-bean id="__1">
          <managed-bean-name>bindingComponentBean</managed-bean-name>
          <managed-bean-class>com.edisa.test.errors.view.backing.BindingComponentBean</managed-bean-class>
          <managed-bean-scope>request</managed-bean-scope>
        </managed-bean>
        <view id="test_fragment">
          <page>/fragments/test_fragment.jsff</page>
        </view>
        <use-page-fragments/>
      </task-flow-definition>
    </adfc-config>
    

    JSF page

    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html>
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
        <af:document title="index.jsf" id="d1">
            <af:form id="f1">
                <af:pageTemplate viewId="/oracle/templates/threeColumnTemplate.jspx" id="pt1">
                    <f:facet name="center">
                        <af:panelGridLayout id="pgl1" inlineStyle="border: 1px solid #eee;">
                            <af:gridRow marginTop="5px" height="auto" marginBottom="5px" id="gr1">
                                <af:gridCell marginStart="5px" width="50%" id="gc1" inlineStyle="border: 1px solid #eee;"
                                             halign="stretch">
                                    <af:panelBox text="Region 1" id="pb1">
                                        <f:facet name="toolbar"/>
                                        <af:region value="#{bindings.TestTaskFlow2.regionModel}" id="r2"/>
                                    </af:panelBox>
                                </af:gridCell>
                                <af:gridCell marginStart="5px" width="50%" marginEnd="5px" id="gc2"
                                             inlineStyle="border: 1px solid #eee;" halign="stretch">
                                    <af:panelBox text="Region 2" id="pb2">
                                        <f:facet name="toolbar"/>
                                        <af:region value="#{bindings.TestTaskFlow1.regionModel}" id="r1"/>
                                    </af:panelBox>
                                </af:gridCell>
                            </af:gridRow>
                        </af:panelGridLayout>
                    </f:facet>
                    <f:facet name="header"/>
                    <f:facet name="end"/>
                    <f:facet name="start"/>
                    <f:facet name="branding"/>
                    <f:facet name="copyright"/>
                    <f:facet name="status"/>
                </af:pageTemplate>
            </af:form>
        </af:document>
    </f:view>
    

    Component to bind to the support extended to bean bean would be.

    In fact, it is solely to support the scope of the bean - to distinguish two or more instances of the page fragment component.

    It has the same duration of life as the requestScope, but for different instances of the components parts / declarative, you have separate instances of scope backingBean controlled beans.

    http://adfpractice-Fedor.blogspot.com/2012/03/managed-bean-scopes-for-page-fragments.html

  • Execute code on the UI while the page is loading component

    Hi all

    I'm usng Jdeveloper 11 GR 2.

    I want to call code snippet below to change the properties of the text entry fields and set them to allow the loading of a page-

    FacesContext facesContext = FacesContext.getCurrentInstance ();

    UIViewRoot root = facesContext.getViewRoot ();

    RichPanelFormLayout formClass = (RichPanelFormLayout) root.findComponent ("id");

    List < UIComponent > uiComponentList = formClass.getChildren ();

    for (UIComponent uiComponent: uiComponentList) {}

    If (uiComponent instanceof RichInputText) {}

    ((RichInputText) uiComponent) .setDisabled (true);

    ((RichInputText) uiComponent) .setColumns (100);

    Boolean flag = ((RichInputText) uiComponent) .isChanged ();

    System.out.println ("flag-" + flag);

    }

    At present, the code snippets works well on component of command action but I want the same run when loading the home page without the use of any part of the order.

    Please advise on how to do this.

    Best regards

    Ankit Gupta

    Check out https://blogs.oracle.com/adf/entry/an_epic_question_how_to

    Solution 2 (call to actions) are deprecated in 12 c, so I wouldn't recommend using it.

    Timo

  • Backing bean - scope pageflow

    experts,

    use jdev 11.1.1.5.0 using adfbc.

    I had two grain of bean type.

    and two jspx pages. each grain of backup a utlizse page. ratio 1:1

    am fineshed my conception of my two pages compltly ui. and enter a logical operation on the bean.


    all are complted. but I need a value inputtext only content want to reach illustrated in another text of page output.

    Hold on...


    concept of pageflow tells me something like that

    proablay value of travel from one page to another page. It adapts.

    concept of backing bean teach. values of a work around page itself. not a page to another page.


    Chase now

    but. my much of the work was already done. with backing bean. now that an individual must travel from one page to another page.

    what I can do.


    If you prefer pageflow is a must. I want all change them a bit hard for me. a lot of work I have around him.

    I hope you understand.


    otherwise means here a few examples

    consider a
    I have my grain like this:

    Text1 of entry.
    Text2 entry.
    Text3 entry.
    Text4 entry.

    and some af:table and some af:query Panel. n blah blah n. biindings base many backing bean.



    simply, I needed only special Text4 entry > contnet indicate in another page.

    It's my scenario. No am not yet implemented it. get before implementation. with a notice appropriate (expert) u.

    n then perform it.

    Published by: Les on September 23, 2011 02:25

    Published by: Les on September 23, 2011 02:26

    Hello..
    I'll give you sample cases to do this,
    Page A - Bean
    Page B - Bean B
    These two pages are in a taskflow and scope is pageFlowScope
    pageA

    
    
      
      
      
    
    

    BaenA

    package view;
    
    import javax.faces.event.ActionEvent;
    
    import oracle.adf.view.rich.component.rich.input.RichInputText;
    import org.apache.myfaces.trinidad.context.RequestContext;
    
    public class A {
        private RichInputText it1;
    
        public A() {
            super();
        }
    
        public String cb1_action(ActionEvent ae) {
            // Add event code here...
            RequestContext afContext = RequestContext.getCurrentInstance(); //ur coede
            afContext.getPageFlowScope().put("p_user", it1.getValue());
            System.out.println(":"+ it1.getValue());
            return null;
        }
    
        public void setIt1(RichInputText it1) {
            this.it1 = it1;
        }
    
        public RichInputText getIt1() {
            return it1;
        }
    }
    

    PageB

    
    
      
    
    

    BeanB

    package view;
    
    import oracle.adf.view.rich.context.AdfFacesContext;
    
    public class B {
        String valForOutputText;
        public B() {
            super();
         valForOutputText =  AdfFacesContext.getCurrentInstance().getPageFlowScope().get("p_user").toString();
        }
    
        public void setValForOutputText(String valForOutputText) {
            this.valForOutputText = valForOutputText;
        }
    
        public String getValForOutputText() {
            return valForOutputText;
        }
    }
    

    If you need a source for complete project to send a message to me ([email protected]), TaskFlow and .jspx page not included and I think that above code enough to solve your problem...

    -Suresh

  • ID of JSF component &amp; beans support

    Hello.

    I use Jdeveloper 11 g & ADF faces + ADF task flows. I have 2 issues on backing beans.

    When I create a new JSF page, first of all, I can expose user interface components automatically by selecting chocie appropriate in the dialog box "Create a new JSF Page", in the section of the Page implementation. What happens if I choose "do not automatically expose the user interface components in a managed bean" and I want to expose automatically after creating a page? Do I have to set a pod again and to implement all the components used in the page so far by myself? Is there a way to automatically expose in a class after the creation of the page?

    Second, let's say I automatically exposes the user interface components in a managed bean. I have a text box to enter the page that has an id of "it1. In the bean to support, it is declared like this:

    private RichInputText it1.

    public void setIt1 (RichInputText it1) {}
    This.IT1 = it1;
    }

    public RichInputText getIt1() {}
    return it1;
    }

    and in the page source:

    < 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}.
    Binding = "#{backingBeanScope.backing_userCreatePage.IT1} '"
    ID = "it1" >



    My problem is:
    When I change the value of the 'firstNameTextBox' id in the page designer, statement does not change in the managed bean. Is there a way to change declarations in bean managed to change automatically after you change the ID values?



    Thank you.

    Hello
    On this issue:
    What happens if I choose "do not automatically expose the user interface components in a managed bean" and I want to expose automatically after creating a page?

    After you create a page to display user interface components in a bean managed do this automatically:

    1 - Double click on the page to open it in Design view.
    2 - design (in the above menu bar), choose Page Properties.
    3. in the dialog box properties page check Auto link and a new managed Bean.

    On another issue, I have the same problem, but when I change the page Id I'll his managed Bean and change the code manually.

    Sameh Nassar

  • Call FacesMessage via javascript.

    Hello

    I use Jdev 11.1.1.7.0.

    My requirement:

    I need to display an error message in text through java script. not java.

    I refereed more link.

    http://Ahmed-alzamer.blogspot.com/2014/02/prevent-copycutpaste-in-input-fields.html

    https://community.Oracle.com/thread/2280441?start=0 & tstart = 0

    https://community.Oracle.com/thread/2260370?TSTART=0

    But I can't able to get my desired results.

    .jsff page

    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:f="http://java.sun.com/jsf/core">
    ...
        <af:messages id="m1"/>
    ...
    <af:panelLabelAndMessage label="x No:" id="plam11">
              <af:inputText label="Label 5" id="it1" simple="true" clientComponent = "true"
                            binding="#{viewScope.x.bindxno}"
                            valueChangeListener="#{viewScope.x.xNumberValueChange}">
                <af:clientListener method="validatexeNumber" type="blur"/>
                <af:clientListener method="fieldKeyPress" type="keyPress"/>
              </af:inputText>
              <af:message id="m10" for="0:it1" clientComponent = "true"/>
    </af:panelLabelAndMessage>
    ...
    
    

    External.js

    way 1:
    function fieldKeyPress(event) {
              var charCode = event.getKeyCode();
              if (!testcode(charCode)) {
    AdfPage.PAGE.addMessage('it1', new AdfFacesMessage(AdfFacesMessage.TYPE_ERROR, "Error", "Enter only numbers"));
    AdfPage.PAGE.showMessages('it1');
    event.cancel();
              }
          }
    
    

    way 2:
    function fieldKeyPress(event) {
              var charCode = event.getKeyCode();
              if (!testcode(charCode)) {
    AdfPage.PAGE.addMessage(evt.getSource().getId(), new
    AdfFacesMessage(AdfFacesMessage.TYPE_ERROR, "Error" , "Enter only numbers" )) ;
    event.cancel();
              }
          }
    

    Global error message. Non-input text.

    Please someone help me.

    Thank you.

    Hi svn

    Jspx is

    If you work on jsff in stubborn taskFlow, in this AdfPage.PAGE.addMessage ("it1", new AdfFacesMessage (AdfFacesMessage.TYPE_ERROR, "Error", "Enter the numbers"));

    line, you must change the inputText id, it must be yourRegionid:it1, if you the region id is r1 then there may be r1:it1

    I don't know, therefore to confirm, verify clientId for inputText at the bean using inputTextBinding.getClientId ();

    and also use the same id in js

    Thank you

  • Automatically, click a CommandButton in the JSF page after loaded the page

    I need to automatically, click the command button 'refreshPage' after loading of the JSF page below: (after trying the code in blue comment I'm unhappy. Please help!)

    <? XML version = "1.0" encoding = "UTF - 8"? >
    "< jsp:root xmlns:jsp ="http://java.sun.com/JSP/Page"version ="2.1"
    "xmlns:f ="http://java.sun.com/jsf/core"
    "xmlns:h ="http://java.sun.com/jsf/html"
    "xmlns:AF ="http://xmlns.oracle.com/adf/faces/rich"
    "xmlns:PE ="http://xmlns.oracle.com/adf/pageeditor"
    Cust ="http://xmlns.oracle.com/adf/faces/customizable" >. "

    < f: loadBundle basename = "oracle.webcenter.portalframework.sitestructure.resource.PortalAppPageResource"
    var = "portalResource" / >
    < jsp:directive.page contentType = text/html"; Charset = UTF - 8 "/ >

    < f: view >

    < af:document id = "d1" title = "#{portalResource ['home_title']}" >

    <!-< af:clientListener method = "callRefreshButton" type = "load" / >
    < af:resource type = "javascript" >
    function callRefreshButton()
    {
    var button = AdfPage.PAGE.findComponentByAbsoluteId ("refreshPage");
    ActionEvent.queue (button, true);
    }
    < / af:resource >->

    < af:messages id = "m1" / >
    < af:form id = "f1" >

    < af:pageTemplate value = "#{bindings.pageTemplateBinding.templateModel}" id = "pt1" "
    viewId="/oracle/webcenter/portalapp/pagetemplates/pageTemplate_swooshy.jspx" >
    < name f: attribute = "showNavigation" value = "#{true}" / >
    < f: facet 'content' = name >
    < af:group id = "g1" >
    < af:inputText label = "Label 1" id = "it1" / >
    < / af:group >
    < / f: facet >
    < / af:pageTemplate >

    <!-< af:commandLink id = "refreshPage" text = "refreshPage.
    action = "#{WangBean.reloadPage} '"
    rendered = 'true '.
    inlineStyle = "do-size: small;" color: white; »
    partialSubmit = "true" clientComponent = "true" >
    < / af:commandLink >->

    < af:inputText value = "#{bindings." Sdan8.inputValue}.
    columns = "#{bindings." Sdan8.hints.DisplayWidth}.
    maximumLength = "#{bindings." Sdan8.hints.precision}.
    shortDesc = "#{bindings." Sdan8.hints.ToolTip}"id ="it2.
    Visible = "false".
    inlineStyle = "do-size: medium;" make-weight: bold; ">
    < f: validator binding = "#{bindings." Sdan8.validator} "/ >"
    < af:convertNumber groupingUsed = "false".
    model = ' #{bindings. " Sdan8.format} "/ >"
    < / af:inputText >

    < / af:form >

    < / af:document >
    < / f: view >
    < / jsp:root >

    Timo,

    I got it works!

    What happened is that I didn't notice that the system generated a method of PollEvent by default for me inside my WangBean after I created the af:poll component:

    {} public void reloadPage (PollEvent pollEvent)

    Add your code here

    }

    Once I pasted my code in the vote started working as expected and the inventory button. Component AF:poll solve my problem.

    Thank you very much and I have learned 2 new staffs ADF on your part, am really appreciated.

    Kind regards

    Yi

  • error in panelGridLayout

    Hi am error element af:panelGridLayout are not except the error lies in this line < af:panelGridLayout id = "pgl1" >

    am in jdeveloper 11.1.1.6.0

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

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

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

    ' xmlns:f = ' http://Java.Sun.com/JSF/core "

              xmlns:h=" http://Java.Sun.com/JSF/HTML ">

    < af:panelGridLayout id = "pgl1" >

    < af:gridRow marginTop = '5px' height = 'auto' id = "gr1" >

    < af:gridCell marginStart = "5px" width = "110px" id = "CG6" >

    < af:outputLabel value = 'Short' id = "ol1" / >

    < / af:gridCell >

    < af:gridCell marginStart = "5px" marginEnd = "5px" width = "150px".

    ID = "GCQ4" >

    < af:inputText label = "Label 1" id = "it1" simple = "true" / >

    < / af:gridCell >

    < / af:gridRow >

    < af:gridRow marginTop = '5px' height = 'auto' id = 'gridRow1' >

    < af:gridCell marginStart = "5px" width = "110px" id = "gridCell1" >

    < af:outputLabel value = "Label for a text input" id = "outputLabel1" / >

    < / af:gridCell >

    < af:gridCell marginStart = "5px" marginEnd = "5px" width = "150px".

    ID = "gridCell2" >

    < af:inputText label = "Label 1" id = "inputText1" simple = "true" / >

    < / af:gridCell >

    < / af:gridRow >

    < af:gridRow marginTop = '5px' height = 'auto' id = 'gridRow2' >

    < af:gridCell marginStart = "5px" width = "110px" id = "gridCell3" >

    < af:outputLabel value = 'Text' id = 'outputLabel2' / >

    < / af:gridCell >

    < af:gridCell marginStart = "5px" marginEnd = "5px" width = "150px".

    ID = "gridCell4" >

    < af:inputText label = "Label 1" id = "inputText2" simple = "true" / >

    < / af:gridCell >

    < / af:gridRow >

    < / af:panelGridLayout >

    < / jsp:root >

    The reason is that panelGridLayout is available in 11.1.1.7.0 or 11.1.2.x or 12 c.

    Timo

  • Value comes not properly in javascript

    Hi friends,

    Here's the simple page, I developed. JDeveloper Version is 11.1.2.2.0

    This has 1 inputText (it1), 1 button (cb1) and 3 fields OutputText (ot1, ot2 ot3).

    When I get a value in it1, ot1 and ot3 must be indicated when I go then ot1 and ot2 are to be displayed.

    However when I run the page and click on the command button without entering anything and then it works fine. But when I enter something in

    IT1 and then click on the button, it does not work.

    First time the desired features works but the second time, that is not. Can someone please

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

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

    " < f: view = xmlns:f ' http://Java.Sun.com/JSF/core "xmlns:af =" " http://xmlns.Oracle.com/ADF/faces/rich "> "

    < af:document title = "Test10.jsf" id = "d1" > "

    < af:form id = "f1" >

    < af:panelFormLayout id = "pfl1" >

    < f: facet = 'footer' name / >

    < af:inputText label = "Label 1" id = "it1" value = "#{test10.inputValue}" clientComponent = "true" / > "

    < af:commandButton text = "commandButton 1" id = "cb1" >

    < af:clientListener method = 'showText' type = 'action' / >

    < / af:commandButton >

    < / af:panelFormLayout >

    < af:panelGroupLayout id = "pgl1" >

    < af:outputText value = "" value entered is: "id ="ot1"/ >"

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

    < af:outputText value = "No value entered" id = "ot2" visible = "false" clientComponent = "true" / >

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

    < af:outputText value = "#{test10.inputValue}" id = "ot3" visible = "false" clientComponent = "true" / > "

    < / af:panelGroupLayout >

    < / af:form >

    < f: facet name = "metaContainer" >

    < af:resource type = "javascript" >

    function showText (actionEvent) {}

    model var = actionEvent.getSource ();

    Output 1 var = comp.findComponent ("ot2");

    output2 var = comp.findComponent ("ot3");

    var entry = comp.findComponent ("it1");

    Alert ("value:" + input.value);

    If (input.value == null) {}

    Alert ("inside 1");

    OUTPUT1.setVisible (true);

    } else {}

    Alert ("inside 2");

    output2.setVisible (true)

    }

    }

    < / af:resource >

    < / f: facet >

    < / af:document >

    < / f: view >

    Hello

    That's why

    var entry = comp.findComponent ("it1");

    Alert ("value:" + input.value);


    Try


    input.getSubmittedValue)


    Frank

Maybe you are looking for

  • Is it normal to remove the protective screen of the Mac laptop

    Is it safe to remove the protector from the computer screen mac laptop?  The screen is cracked, and there is a lot of air bubbles; It's on laptop for over a year.

  • Satellite A10-S403D: NO start UP but the LED code flashes (flash)

    Hello I want to understand what is happening to my Satellite. When I try to start it, it does absolutely nothing but orange flashing:Short-Long, short-short-Long, short, Long, Long How can I understand the meaning of the code please? :-( Thank you ve

  • Samsung Tablet 4

    I just installed my new HP4500 printer successfully. Now, I'm trying to print from my Samsung tablet. I downloaded the plug HP thingie. When I print, I get very large print at the top of the paper and it does not accept instructions to change the ori

  • Update problems causing several problems.

    First- I received notice that Windows cannot be updated for some time. I tried the fix where I am to empty a folder and reset it according to the instructions in the menu help. THST didn't work, so I found a forced update on a MS site that was suppos

  • Reset password ISE CLI

    Hi Security Experts, Is it possible to reset/recover password ISE CLI of ISE WebGUI? I am able to enter web gui of ISE, but not able to connect to the CLI. So want to reset/recover password ISE CLI from the GUI. PS: I rate of useful messages. Thank y