Binding a UIComponent to a BackingBean

Hi, i see no sence of using
binding-attribute.
Why is it "nice" to have a component as my Bean-Property instead of
an Integer or String... (if i enter age or name in the web-form) ?
Can anyone help?
thanks!

can you give me please a code-example
of, what i could do senceful with my bunded-component
in
my BackingBean?The "repeater" component in the components demo (shipped with JavaServer Faces) illustrates one use case for binding a component instance in a backing bean. In "repeater.jsp", we see three different components bound to the backing bean:
* <d:data_repeater ... binding="#{repeaterBean.data}" .../>
* <h:selectBooleanCheckbox ... binding="#{repeaterBean.checked}" .../>
* <h:selectBooleanCheckbox ... binding="#{repeaterBean.created}" .../>
The source code for the backing bean is class RepeaterBean.java, in the "src/demo/model" subdirectory.
The binding for the <d:data_repeater> tag makes the UIData component instance that underlies the entire table available to the backing bean. This makes it very easy for the event listeners for the "Previous Page" and "Next Page" buttons, for example, to manipulate the "first" property. (See the previous() and next() methods).
The binding for the "checked" column was useful because there is no corresponding property in the model data bean. The fact that a particular row is checked is a purely UI state issue, so is easier to just reference the corresponding component directly, rather than trying to add an arbitrary boolean property to the customer bean.
The binding for the "created" component (which is not actually displayed, since it has rendered=false) was created for a similar reason, to allow the backing bean's event handler to specifically note which rows represent new data (i.e. created by the create() method) versus rows that were pulled from the existing database. In a real application, this would be used in the save() method to distinguish which rows needed to be inserted versus which ones needed to be updated.
As you can also see, most of the other components on this page use the value binding approach, because there was no need for the backing bean to manipulate anything other than the value itself. Both styles can be used together; just pick the one that makes the most sense for your particular needs.
Craig McClanahan
PS: For extra fun, you can replace the <d:data_repeater> tag with <h:dataTable> if you want, and use the standard renderer for editable data tables. For even more fun, you can customize RepeaterRenderer if you want to change details of the HTML that is emitted for the table.

Similar Messages

  • The problem of the binding a UIcomponent ...

    Hi.here
    The problem of the binding a UIcomponent I met.
    there are some codes of the login.jsp:
    <h:form>
    userName:<h:inputText id="userid" binding="#{Login.userid}" required="true"></h:inputText>
    password<h:inputSecret id="password" binding="#{Login.password}" required="true"></h:inputSecret><br>
    <h:commandButton value="’ñŒð" action="#{Login.Login_Checked}"></h:commandButton>
    </h:form>
    -----------faces-config.xml--------------------------
    <managed-property>
    <property-name>userid</property-name>
    <property-class>javax.faces.component.html.HtmlInputText</property-class>
    <value>userid</value>
    </managed-property>
    <managed-property>
    <property-name>password</property-name>
    <property-class>javax.faces.component.html.HtmlInputSecret</property-class>
    <value/>
    </managed-property>
    When I was running the page,the Exeption came out! As following:
    javax.servlet.ServletException: Error performing conversion of value userid of type class java.lang.String to type class javax.faces.component.html.HtmlInputText for managed bean Login._
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:249)_
    Can you help me?

    I hava do ii as you say . Now I give you the javaBean code:
    package com.jsfdemo;
    import javax.faces.component.html.HtmlInputSecret;
    import javax.faces.component.html.HtmlInputText;
    * @author Administrator
    public class Login {
         private HtmlInputText userid;
         private HtmlInputSecret password;
         public Login() {
         public HtmlInputText getUserid() {
              return userid;
         public void setUserid(HtmlInputText userid) {
              this.userid = userid;
         public HtmlInputSecret getPassword() {
              return password;
         public void setPassword(HtmlInputSecret password) {
              this.password = password;
         public String Login_Checked()
    *          try{*
    *               if(userid.getValue().equals("myeclipse")&& password.getValue().equals("myeclipse"))*
    *               return "success";*
    *          else*
    *               return "failure";*
    *          catch(NullPointerException e)*
    *               System.out.println("exception: " + e.getMessage());*
    *               return "failure";*
    Is it this?

  • Bind a UiComponent to manage bean

    Hi
       jdeveloper 11.1.1.7
    i need to refresh a inputText programatically .so
    How can i assign a inputText to  UiComponent in the managed bean ?
    thanks

    The parameter you pass to the addPartialTarget method is indeed the java representation of a ui component. In your code I miss the component you want to refresh.
    The normal way to get the component reference is to look it up in the page structure by its id. For this you can use e.g.
    Edwin Biemond's blog http://biemond.blogspot.com/2009/11/find-uicomponent-in-adf-task-flow.html
    Binding the component directly to the bean is only a possibility if the beans memory scope is request.
    Timo

  • ?? Figure out which JSF UIComponent caused a BackingBean "get" method call?

    Hi,
    I have a little problem with using JSF UIComponents and Backing beans.
    I have an JSF Input TextField and this textField points to a backing bean attribute "Data.value" (to store the input). Code:
    <h:inputText styleClass="entryInput"
    id="textNumberOfServersInput"
    value="#{AllData.value}">
    </h:inputText>
    The Backing bean for that looks like this (just the really important stuff):
    public class AllDataBean
    String value = null;
    public String getValue()
    return value;
    public void setValue(String string)
    value = string;
    Now my problem is that, when calling the "getValue()" method I want to know which UIComponent caused that getValue() method call. I would like to know that UIComponent's ID. In the above example (textField) this id would be "textNumberOfServersInput" . HOW CAN I GET THE requesting UIComponent 's ID ?
    At the end my getValue method should look like this:
    public String getValue()
    String requestingUIComponentID = IWouldLikeToKnowThat();
    return value;
    Thanks

    Ahh, that's interesting. But any component can do a get. In other
    words, you can have several components that point to the same bean
    property. Assuming your pages are fairly static in nature, you could
    instrument them with JSTL c:set calls to manually stick an identifier
    into the namespace. Something like this:
    <h:form id="form">
    <c:set var="doAGet" scope="request" value="button" />
    <h:commandButton id="button" value="#{bean.label}" />
    <c:remove var="doAGet" scope="request" />
    <c:set var="doAGet" scope="request" value="text" />
    <h:outputText id="text" value="#{bean.label2}" />
    <c:remove var="doAGet" scope="request" />
    </h:form>
    Then, in your backing bean, you could do:
    public String getLabel() {
    FacesContext context = FacesContext.getCurrentInstance();
    String id = (String)
    context.getExternalContext().getRequestMap().get("button");
    id = "form:" + id;
    UIComponent component = context.getViewRoot().findComponent("id");
    It's clunky but it works. I'll ask the EG if they think we should add
    the ability for the get() to more easily discover the calling component,
    if any.
    Ed (EG Member)

  • Template UI Logic and backingbean

    Hi,
    I'm new to adf and i'm trying to build a sample project with jDevelopper 11.1.2.1.0 for my company to know if we can switch to it.
    I've go a use case to implement but i've got some issues to understand how i can do it.
    I must create a view with :
    1) a top zone with a toolbar (and other stuff)
    2) a center zone with a panel tabbed
    2.a) In the first tab, a bounded table with some columns
    2.b) In the second tab a splitter
    2.b.i ) In the first facet of the splitter a second bounded table with some other columns (but linked to the same iterator)
    2.b.ii) In the second facet of the splitter a form (to edit the data)
    3) a bottom zone with a statut toolbar.
    I've created my toolbar with a declarative component following the adf corner [079. Strategy for implementing global buttons in a page template|http://www.oracle.com/technetwork/developer-tools/adf/learnmore/79-global-template-button-strategy-360139.pdf], my toolbar have 5 buttons (create, edit, save, cancel and delete).
    I then created a template for placing panel, and table splitter ui components with a backingbean used for binding the ui components (in backingbean scope, its' important cause the template could be on the same page with nested template tag)
    I've created a taskflow following the adf corner [007.How to cancel an edit form, undoing changes with ADFm savepoints|http://www.oracle.com/technetwork/developer-tools/adf/learnmore/007-cancelform-savepoint-169126.pdf] for the edit form
    I created a page that inherits my template, placed the declarative component toolbar at the top, placed the two bounded datatable in the facets of the template, and finally created a normal region calling the taskflow.
    When i click on the create button, the template backing bean receive the "event" and handle it, changing a task flow parameter.... (updating the region)
    My taskflow update and show me the create form... no problem....
    But if the user is on the first tab, he sees nothing. So i would like to change the disclosed property of the showDetailItems of the panelTabbed.
    I then created a variable in the pageDef of the template that would store a boolean value if the page is in EditMode or not. (create and edit is edit mode. save, cancel and delete is not)
    I created a contextual event to listen when that variable change, like that a datacontrol from a bean with a single public method could handle that change :
    onIsEditModeChanged(boolean newValue){
     getGUI().swicthShowDetailItem(newValue);
    }The method try to get the backingbean of the template (with a el expression), and then call a updatePanel(Boolean newValue) for changing the disclosed property of the showDetailItems :
    public BackingBeanTemplate001 getGUI()
     FacesContext context = FacesContext.getCurrentInstance();
     ELContext eLContext = context.getELContext();
     ExpressionFactory expressionFactory = context.getApplication().getExpressionFactory();
     ValueExpression createValueExpression =
     expressionFactory.createValueExpression(eLContext, "#{backingBeanScope.backingBeanTemplate001}", BackingBeanTemplate001.class);
     return (BackingBeanTemplate001)createValueExpression.getValue(eLContext);
    public void swicthShowDetailItem(Boolean newValue) {
     if (newValue) {
      if(!showDetail2.isDisclosed()){
       showDetaill1.setDisclosed(false);
       showDetaill2.setDisclosed(true);
    }Here's my issue :
    When the onIsEditModeChanged method is called the backingbean of the template doesn't exist in the context.
    So adf create a new instance of it but doesn't fill the ui component references of the page so i can't change the properties cause i get a NPE.
    of course showDetail2 and showDetail1 have their binding property set :
    <af:showDetailItem text="showDetail1" id="pt_sdi1" stretchChildren="first" binding="#{backingBeanScope.backingBeanTemplate001.showDetail1}">
    And
    <af:showDetailItem text="showDetail2" id="pt_sdi1" stretchChildren="first" binding="#{backingBeanScope.backingBeanTemplate001.showDetail2}">the backingBeanScope.backingBeanTemplate001 is referenced in adfc-config.xml :
    <managed-bean id="__5">
         <managed-bean-name>backingBeanTemplate001</managed-bean-name>
         <managed-bean-class>org.darkink.test.backingbean.template.BackingBeanTemplate001</managed-bean-class>
         <managed-bean-scope>backingBean</managed-bean-scope>
    </managed-bean>If i put a button IN the template that change my attribut value :
    public void switchAction(ActionEvent actionEvent) {
             BindingContext bindingContext = BindingContext.getCurrent();
             DCBindingContainer bindingContainer = (DCBindingContainer)bindingContext.getCurrentBindingsEntry();
             AttributeBinding binding = (AttributeBinding)bindingContainer.getControlBinding("isEditModeAttr");
             binding.setInputValue(true);
    }I dont have the NPE, at the "JSF Invoke Application" the bean already exists in the context (it is created at the "JSF Restore View") and all the ui component are NOT null.
    BUT if a place my button in the page that inherits the template and i call that method :
    public void switchAction(ActionEvent actionEvent) {
             BindingContext bindingContext = BindingContext.getCurrent();
             DCBindingContainer bindingContainer = (DCBindingContainer)bindingContext.getCurrentBindingsEntry();
             DCBindingContainer bcPtb1 = (DCBindingContainer)bindingContainer.get("ptb1");
             AttributeBinding binding = (AttributeBinding)bcPtb1 .getControlBinding("isEditModeAttr");
             binding.setInputValue(true);
    }everything works the same BUT at the "JSF Invoke Application" the bean doesn't exist in the context (so adf create it, BUT doesn't fill the ui component bindings).
    The strange thing is that at the "JSF Restore View" the backingbean is well created and filled with the ref of the ui components....
    So here's my questions :
    1) Why there is a difference when my button is on the template and when it's on the page ??? (with the backingbean)
    2) Why the backingbean is not fully created (only the constructor is called and not the ui components bindings)
    3) How can i realise my use case ?
    4) Is there another method to implement UI Logic with template ?
    5) Is there a better way to do this ?
    6) How to get the context of the template ?
    Thanks a lot for all of you who had the patience to read all of this, i know it's a lot
    but i didn't know how to explain my problem without all thoses explanations.
    I've read all the adf corner and all the given pdf books on the site (that i've found) trying to search for a solution and
    didn't find one. So please don't tell me read the books, or the solution is already documented...
    It would be a lot more helpfull to explain me why it's not working or why what a did is not a good solution.
    Sorry for my poor english too.
    Thanks a lot....
    Angle
    P.S 1:
    In the swicthShowDetailItem method i've tried to change for using this :
    if (newValue) {
     RichShowDetailItem c = (RichShowDetailItem)getComponent("pt1:pt_pt1:pt_sdi2");
     if (!c.isDisclosed()) {
        ((RichShowDetailItem)getComponent("pt1:pt_pt1:pt_sdi1")).setDisclosed(false);
        c.setDisclosed(true);
    }It's working... but ugly and not efficient... so for me it's not a good answer....
    P.S 2:
    Another solution that i've found is that i could create an hidden button on the template
    that call the change event and in the page create a button that queue a click event
    on that button but for me it's not a solution.
    P.S 3:
    I dont like a JavaScript solution neither. for me, if a can bind my ui components to a backingbean
    i want to be able to use them !!!
    Edited by: 915518 on 19 févr. 2012 12:04
    Edited by: 915518 on 19 févr. 2012 12:10

    Hi,
    There will not any performance issue as such as all the code will be executed by the same Dialog workprocess in the application server.
    But it is alwys good to keep you flow logic and application logic seperated, so flow logic just calls the methods and the methods are in a different component like a static method of a class or function module in a function group.
    Best thing is Function Group as you can have screens in a Function pool.
    Regards,
    Sesh

  • Property name syntax that UIComponent is bound to

    Hi,
    I am wondering if there are any restrictions on the name of the variable (property) that I bind my UIComponent to?
    In particular, I ran into problems when I wanted that variable name to start with capital letter. That is, I have a Java been with the following code, and try to bind <outputText binding=#{MyBean.MyVariable} /> with appropriate entry in the faces-config.xml.
    private HtmlTextOutput MyVariable = new HtmlTextOutput();
    public void setMyVariable(HtmlTextOuput text)
    MyVariable = text;
    public HtmlTextOutput getMyVariable()
    return MyVariable;
    As a result, I got an error that JSF cannot find property MyVariable in the java class com.vadim.MyBean.
    However, if I change variable name to start with lower case, e.g. myVariable, things work just fine.
    I wonder if this is known limitation, or weather I am hitting some sort of a bug...
    Thanks in advance,
    Vadim.

    I believe this is just part of the JavaBeans spec. JSTL and JSF expression languages look for property methods that start with "get" and "set". The Java naming convention states that you should name your methods with a lower case letter , capitalizing the first letter of new words in the method name. so:
    Say you have a field, String name;
    the getter for it would be getName()
    JSF and JSTL expressions languages expect you to follow the naming convention and do their own internal capitalizing of the method names to find them. By not sticking to the spec, you're throwing off this mechanism and an method not found error is coming back.
    John

  • Why Does FacesContext.addMessage Accept a String?

    Hello,
    For the life of me I can't figure this one out; please let me know if my thinking is incorrect here.
    FacesContext.addMessage accepts two arguments, a String and a FacesMessage instance. The FacesMessage instance makes sense; it encapsulates all information regarding a message to the user. Why it doesn't support I18N under the covers, I don't know. This is, however, very easy to fix.
    What I don't understand is the String instance argument. What is it used for? Sure, if I happen to bind a UIComponent, which also happens to have an h:message attached to it, to a managed bean I can programmatically add messages to the UIComponent. So, why is there no UIComponent.addMessage? Why the call to UIComponent.getClientId?
    Furthermore, from a dumb API user (that's me) perspective, FacesContext.addMessage( String, FacesMessage) together with <h:messages id='...'/> seems to imply that FacesContext.addMessage( "selectiveMessage", ...) will only display that message for <h:messages id='selectiveMessage'/>, and no other h:messages tags. Unfortunately, even using globalOnly there is no way to have two mutually exclusive sets of messages that are not attached to a UIComponent.
    This would not even be an issue except for the rendering order of JSP interfering with the allegedly stateful nature of the JSF components. For example, I have a set of status messages to the user, displayed above a dataTable. If the dataTable is empty, I want to display a nice "Listing is empty" status message to user instead of an empty table. However, since the messages are on top of the dataTable in the JSP page, the message does not show up until after refresh. The quick solution was to put another set of messages specifically for the empty table message under the table where everybody (all the components at least) already knows the state of dataTable. Unfortunately, can't have two mutually exclusive sets of messages.
    So, we now have a very complex solution of custom behavior hard-wired into an h:messages subclass to solve a very simple problem of not displaying an empty table.
    The good news is, aside from a few very annoying but certainly not show-stopping issues like this JSF is proving to be as good as its hype.
    Thanks, JSF team!
    Tim

    Actually, this is incorrect. You must have a direct reference to the component instance to access the clientId. Filling in a String value that matches the for="..." attribute in h:message does not work. Furthermore, since UIComponent.getClientId requires a FacesContext instance argument, you end up with something like this:
    FacesContext.getCurrentInstance().addMessage(
     this.getComponent().getClientId(
      FacesContext.getCurrentInstance()
     new FacesMessage( "This is not I18N!")
    V/s this:
    this.getComponent().addMessage( "i18nKey");
    I do agree that JSF needs some input to get better. Hence this post.
    Tim

  • Access the UI components in the managed bean

    I am newbie in Jdeveloper and just read the book of "Quick start guide to oracle developer"
    I am confused of the steps of accessing the UI component of the page
    e.g.
    public void salesman_valueChanged(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    getCommission().setDisabled(true);
    if (valueChangeEvent.getNewValue().equals("SA_REP")) {
    getCommission().setDisabled(false);
    getCommission is supposed to return the UI Component instance of text box commission.
    How can I implement this?
    Thanks.

    getCommission is supposed to return the UI Component instance of text box commission.Bind your UIComponent to your managedBean (you would need to register this in teh taskflow or adfc-config.xml) . This can be done using the Binding attribute in the Advanced tax for the inputText component.
    "binding=<MemoryScope_onlyIfOtherThanRequestScope.BeanName>.commission" .. this will generate a getCommission() & setCommission() method which can be used.
    Also please modify the code below to have a PPR on the component else it will not refresh on the UI-
    +public void salesman_valueChanged(ValueChangeEvent valueChangeEvent) {+
    +// Add event code here...+
    getCommission().setDisabled(true);
    +if (valueChangeEvent.getNewValue().equals("SA_REP")) {+
    getCommission().setDisabled(false);
    +}+
    AdfFacesContext.getCurrentInstance().addPartialTarget(getCommission());
    +}+

  • Error: command_link in data_table header

    This is an error report of JSF1.0Beta (I did not find it yet reported)
    Command links in a header section of a data_table invoke the associate Action X. times instead of one single time. (X is the number of rows currently shown in teh data_table).
    The same command_link anywhere else works just fine!
    Here teh sample code
    <h:data_table id="table"
    styleClass="list"
    binding="#{ItemSearchBean.dataTable}"
    value="#{ItemSearchBean.backingBeans}"
    var="bean">
    <h:column>
    <f:facet name="header">
    <h:command_link id="submit-removeAll" action="#{ItemSearchBean.removeAllAction}">
    <h:graphic_image url="/images/remove.png" alt="#{bundle.Command_remove_all_label}" />
    </h:command_link>
    </f:facet>
    <h:selectboolean_checkbox id="selected" value="#{bean.selected}"/>
    </h:column>

    This bug has already been reported:
    http://forum.java.sun.com/thread.jsp?forum=427&thread=481280
    Don't think there is a workaround yet. :(

  • Get Binding and Iterator from UIComponent

    I have a pageTemplate with a reusable menu which contains: navigation buttons (previous, next, ... records), commit and rollback operations, and create/Delete Record.
    My pages could contain components which have more than one IteratorBinding, for example a couple of tables master/detail.
    My first idea was this:
    I have to add for each BindingIterator, all record actions with the same pattern name: <operationName><IteratorName>, then I could execute the correct operation in the actionListener for each button with a simple search on the pageTemplateBean.
        public void onFirstClicked(ActionEvent actionEvent) {
            BindingContext bctx = BindingContext.getCurrent();
            DCBindingContainer bindings = (DCBindingContainer)bctx.getCurrentBindingsEntry();
            String iteratorName = (String) JSFUtils.resolveExpression("#{viewScope.focusComponentIteratorName}");
            String operationName = "First"+iteratorName;
            OperationBinding oper = (OperationBinding)bindings.get(operationName);
            oper.execute();
    For this, I have to Know which is the last UIComponent which had the focus and get its Binding Iterator.
    I have added a ClientListener and ServerListener programmatically for get the UIComponent which has the focus in each moment. (pageLoad with f:event JSF2).
    JavaScript code in PageTemplate:
    <af:resource type="javascript">
          function clientFocusMethodCall(event) {
              component = event.getSource();
              AdfCustomEvent.queue(component, "focusComponentEvent", null, true);         
              event.cancel();
        </af:resource>
    Create ClientListener and ServerListener programmatically:
        private void addFocusListenerComponent(UIComponent c) {
            ClientListenerSet cls = new ClientListenerSet();
            cls.addListener("focus","clientFocusMethodCall");
            cls.addCustomServerListener("focusComponentEvent", JSFUtils.getClientMethodExpression("#{pageFragmentTemplateBean.handleFocusComponentRequest}"));
            //----------------------- INPUT --------------------
            if (c instanceof RichInputText) {            
                RichInputText it = (RichInputText)c;
                it.setClientComponent(true);           
                it.setClientListeners(cls);
            } else if(c instanceof RichSelectOneChoice) {
                RichSelectOneChoice it = (RichSelectOneChoice)c;
                it.setClientComponent(true);
                it.setClientListeners(cls);
    After that, I have this Event, which is launched after every focus event.
    public void handleFocusComponentRequest(ClientEvent event){     
            System.out.println("handleFocusComponentRequest "+event.getComponent().getClientId());
            System.out.println("---"+event.getParameters().get("payload")); 
            UIComponent c = event.getComponent();       
    The next step is get the AttributeBinding and IteratorBinding and save them in ViewScope variables, but I dont Know how get it.
    PS: Commit and Rollback operations are easier since the are common to the ApplicationModule.
    jdeveloper 12c, 12.1.2.0.0

    Hi Frank.
    I had found the second strategy but I didn't know how can update references at runtime.
    My application has a MDI Desktop, in that I could have few programs opened at same time.
    Each programa had a unique menu with the navigation and record operations buttons.
    Now I will explain my issue with and example:
    In a region, rendered a PageFragment where is showing a Master Detail tables. For this I'll have exposed a Previous Record operation for the Master and the Detail (and the others buttons too).
    When a inputText from Master take the focus, the "previous" button have to reference to the Previous Operatiron of Master Iterator. Same situation when focus is in a inputText of detail Iterator.
    Then the previous button have to dynamically change the operation reference after each focus action.
    I think I am really close to the resolution, but I dont Know how can I get the Iterator binding for each UIComponent rendered in the page.
    Thanks in advance.

  • Actual binding value in backingbean

    Hello,
    we are using ADF BC, ADF Faces with JDeveloper 10.1.3.0.
    On jspx form we have dynamic list (selectOneChoice), defined in PageDef.
    <variableIterator id="variables">
    <variable Name="paramEntid" DefaultValue="S2" Type="java.lang.String"/>
    </variableIterator>
    <list id="EnterpriseView1Entid" IterBinding="variables"
    StaticList="false" ListOperMode="0"
    ListIter="EnterpriseView1Iterator">
    <AttrNames>
    <Item Value="paramEntid"/>
    </AttrNames>
    <ListAttrNames>
    <Item Value="Entid"/>
    </ListAttrNames>
    <ListDisplayAttrNames>
    <Item Value="Name"/>
    </ListDisplayAttrNames>
    </list>
    On choice the method ValueChangeListener works. This method is defined in BackingBean class.
    public void changeEnt(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    DCBindingContainer dcbc;
    dcbc = (DCBindingContainer)this.getBindings();
    System.out.println( dcbc.getVariableManager().getVariableValue("paramEntid"));
    BUT after choice the value of binding passed to ValueChangeListener method remains old.
    Why can't we obtain current value of binding?
    Is there any other way to execute method after choice where we could use binding?
    thanks in advance

    Dear Sam
    While using the standard report CJI3 - Project Information System - Actual Cost, choose the column "Business Transaction" and apply a filter for "Not Equal To" KOAO - Settlement.
    It will display only the actual cost for the project excluding the settlement line items.
    Hope this helps...
    Regards
    Kaashif M

  • PageFragments BackingBean scope table binding issue

    Hi,
    We have an ADF table (with id resultTable) in a page fragment and we have a binding for it in backingBeanScope. A page can have multiple page fragments embedded as regions and popups. All of these pageFragments have ADF table with the same id (resultsTable). We observed that when we bind these tables to backingBeanScope, the table columns are getting jumbled. We are seeing few columns of one table appear in other.
    When we change the binding to pageFlowScope, every thing seem to work fine.
    binding="#{pageFlowScope.ResultsBean.resultsTable}"> --- This is working fine
    binding="#{backingBeanScope.resultsTable}"> --- Columns are getting jumbled with this
    We are not able to figure out why this is happening. Is it because we are using the same resultsTable variable in backingBeanScope for all tables in all page fragments and popups? Any help is highly appreciated.
    Thanks,

    Hi,
    you need to let us know how you integrate the page fragments to the page. Are you using ADF Regions? Which Oracle JDeveloper version do you use ?
    Note that the difference between the two options of yours
    binding="#{pageFlowScope.ResultsBean.resultsTable}"> --- This is working fine
    binding="#{backingBeanScope.resultsTable}"> --- Columns are getting jumbled with this
    is that using the pageFlowScope, all tables use the same data instance. Also, why is #{backingBeanScope.resultsTable} not #{backingBeanScope.ResultsBean.resultsTable} ?
    Frank

  • BackingBean Method call from Task flow isnot getting  the Binding Container

    Hi All,
    I am trying to call a backing bean method from a task flow using method call activity, where my page belongs to.
    In this method I am trying to get the binding container,
          DCBindingContainer dcbindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
          OperationBinding operationCreate = dcbindings.getOperationBinding("CreateInsert"); but it is evaluating to null and throwing null pointer exception.
    javax.el.ELException: java.lang.NullPointerException
         at com.sun.el.parser.AstValue.invoke(AstValue.java:161)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at oracle.adf.controller.internal.util.ELInterfaceImpl.invokeMethod(ELInterfaceImpl.java:168)
         at oracle.adfinternal.controller.activity.MethodCallActivityLogic.execute(MethodCallActivityLogic.java:161)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(ControlFlowEngine.java:989)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:878)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:777)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:551)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:147)
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleAdfcNavigation(NavigationHandlerImpl.java:109)
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:78)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)I guess, I miss something in this process, but no idea what it is ...!!!!
    Any help will be appreciated.
    I am using Studio Edition Version 11.1.1.3.0
    Ranjith

    Hi Arun,
    In my task flow i am calling a jspx page as a popup,
    through my jspx page I can do all these operations,
    but the problem is when I am trying to call a method written in the Backing bean of that page, at that time only the method is not getting the bindings.
    Create insert operation is there in the bindings....
    Ranjith

  • Binding component properties to an array in a backingBean

    Hi,
    JDev : 11.1.1.5.0
    I guess the subject represents my question!
    how is it possible to bind a property of a Component (eg . af:column) .DisplayIndex to an array in a backing bean?
    something like this :
    displayIndex="#{pageFlowScope.MyBackingBean.MyAttributeProperties[0].displayIndex}"
    Thank you,
    Shahab

    Hi,
    not only does your subject line explain the question, you almost provides the answer.
    if #{pageFlowScope.MyBackingBean.MyAttributeProperties[0]} is a HashMap (not Array) that returns a Java object then if this Java object has a JavaBean property (setter/getter) for displayIndex then #{pageFlowScope.MyBackingBean.MyAttributeProperties[0].displayIndex} returns the value. So basically you need to create an HashMap of objects, not an array.
    Frank

  • How to identify which UIcomponent called generic ValueChangeListener? HELP

    Using Jdev. 11.1.1.2.0
    In my jsff I've got an af:iterator that layout components. Each of these component uses the same generic ValueChangeListener.
    In the ValueChangeListener I want to check which component did the change - and for some components issue a PartialTrigger command.
    Problem is; How do I know which component called the listener? I'm not in control of the component Id - so I can't use this. I'm not able to dynamically bind to BackingBean UIcomponent. The ClientAttribute works for af:input but not for af:selectOneChoice...
    Any ideas?

    Hi,
    af:iterator stamps its children, which means that there are no individual component instances created. To PPR a component you refresh the base component (the one that gets stamped). In your case, go with John Stegeman's recommendation or use af:forEach if you need individual component instances to be created. Event then however, John's suggestion will work best
    Frank

Maybe you are looking for

  • How to install creative suite 4 on windows 8.1?

    I have a new Windows 8.1 laptop and am trying to install Creative Suite 4 on it.     I was able to do this on another laptop with 8.1, but that was over a year ago.   When I tried installing to the new computer from the CD, I got a message that "the

  • Not working:HDMI Audio and Enlightenment17

    Hi Been searching hard to get my new install up and humming.  A couple of problems are hounding me.  I would be very grateful for help. Audio via an HDMI cable out of a little Sony TV I am using as a monitor is not working.  Alsamixer shows two SPDIF

  • Task list creation in plant maintenance.

    Hi All, I have the function module /ISDFPS/TASKLIST_CREATE which was used in my program under one more Z function module, we have a XI integration also here earlier we were using service pack SP10 so this program was working fine as integration with

  • Cannot burn or see burn option

    Using Itunes 10 and even the previous Itunes could'nt burn or see the burn options in the lower right hand corner, if anyone can be of any assistance please help..... Thanks itunes for Imac

  • After Installing Bitdefender 2011 Firefox is very slow and worse when multiple tabs are open

    Firefox performs very poorly after I installed Bitdefender 2011. There was no such problem with Bitdefender 2009. When multiple tabs are open, switching between them is not possible until tab contents are completed.