Resolved to null

Hi,
I'm able to show a list through an ADF table, but once I've clicked 'Edit' button, I've got
javax.el.PropertyNotFoundException: Target Unreachable, identifier 'Controller' resolved to null
How can I know where the problem is within the Java class?
Best Regards

I guess you have added the backing bean for the component... the bean that will get displayed in the option will be in backingbean scope.. in your adfc-config.xml or in your task flow.. the scope can be changed when you go to overview tab -> managed bean - > of your taskflow or adfc-config.xml..
here you will find the list of beans associated.. and the option to change the scope for the bean..

Similar Messages

  • ADF Tree table :  Target Unreachable, identifier 'node' resolved to null

    Hi, we are using a tree table:
    <af:treeTable value="#{bindings.FacilitySummaryVO1.treeModel}"
    var="node"
    emptyText="#{bindings.FacilitySummaryVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
    selectionListener="#{bindings.FacilitySummaryVO1.treeModel.makeCurrent}"
    rowSelection="#{pageFlowScope.facilitySummaryHelper.tableSelectionMode}"
    id="tt1" width="100%" contentDelivery="immediate"
    binding="#{backingBeanScope.facilitySummary.facilityTree}"
    autoHeightRows="#{pageFlowScope.facilitySummaryHelper.tableHeight}"
    columnStretching="column:c6">
    <f:facet name="nodeStamp">
    <af:column id="c8" width="5px" headerText=""></af:column>
    </f:facet>
    <af:column id="c5"
    headerText="#{facilitySummary_rb.COLUMN_LABEL_SELECT}"
    width="40" align="center"
    rendered="#{pageFlowScope.facilitySummaryHelper.showColumnSelect}">
    <af:group id="g1">
    <af:panelLabelAndMessage label="" id="plam1">
    <af:selectBooleanCheckbox text="" autoSubmit="true"
    rendered="#{node.ShowSelectCheckBox}"
    valueChangeListener="#{backingBeanScope.facilitySummary.facilitySelectCheckboxEventListener}"
    label="" id="sbc1"
    value="#{node.bindings.SelectedFacilityLandingPage.inputValue}"/>
    </af:panelLabelAndMessage>
    </af:group>
    </af:column>
    <af:column id="c6"
    headerText="#{facilitySummary_rb.COLUMN_LABEL_FACILITY}">
    <af:group id="g2">
    <af:panelGroupLayout layout="horizontal" id="pgl2">
    <af:spacer width="#{node.IndentationWidth}" height="10"
    id="s2"/>
    <af:commandLink text="" textAndAccessKey="#{node.FacilityName}"
    disabled="#{pageFlowScope.facilitySummaryHelper.itemReadonly}"
    visible="#{(node.NodeType == facilitySummary_rb.ACCOUNT_VALUE)? false : true}"
    actionListener="#{backingBeanScope.facilitySummary.treeExpandDiscloseActionListener}"
    id="cl2">
    <af:image source="#{node.NodeImgPath}" id="i2" shortDesc=""></af:image>
    </af:commandLink>
    <af:spacer width="10" height="10" id="s1"/>
    <af:commandLink text="#{node.FacilityName}"
    textAndAccessKey="#{node.FacilityName}" id="cl1"
    actionListener="#{backingBeanScope.facilitySummary.showDetailsActionListener}"></af:commandLink>
    </af:panelGroupLayout>
    </af:group>
    </af:column>
    <af:column id="c12"
    headerText="#{facilitySummary_rb.COLUMN_LABEL_ACTION}"
    width="110"
    rendered="#{pageFlowScope.facilitySummaryHelper.showColumnAction}">
    <af:selectOneChoice valueChangeListener="#{backingBeanScope.facilitySummary.nodeActionValueChangeListener}"
    value="#{node.bindings.SelectActionValue.inputValue}"
    label=""
    unselectedLabel="#{origination_rb.LBL_IB_UNSELECTED_VALUE}"
    readOnly="#{pageFlowScope.facilitySummaryHelper.itemReadonly}"
    id="soc1" autoSubmit="true">
    <f:selectItems value="#{node.NodeAction ==null? pageFlowScope.facilitySummaryHelper.defaultSelectItems : node.NodeAction}"
    id="si2"/>
    </af:selectOneChoice>
    </af:column>
    </af:treeTable>
    af:selectOneChoice has an option to remove the row in the tree table by clearing the VO and populate new data into it. (with the exception of the removed row)
    The row get removed from the vo and the screen but i got this error Target Unreachable, identifier 'node' resolved to null
    No stack trace got printed in the stack trace.
    It works with jdev/adf 11.1.1.1.4. only with jdev/adf 11.1.1.1.5 (JDEVADF_11.1.1.5.0_GENERIC_110409.0025.6013) we're having this error. FacilitySummaryVO doesnt have primary key attribute.
    Data got populated to VO programmatically
    All VO attribute value updatable value is always

    Hi,
    hard to say. Actually the "node" variable reference is only available during tree rendering. So if you have any reference to the "node" variable that is invoked after tree rendering then this would explain the exception
    Frank

  • Unknown property resolving to null in PropertyNotFoundException

    While debugging a DTE issue, we could see that there were no meaningful exceptions other than a PropertyNotFoundException but the arguments that it contained seemed to make little sense.
    The stacktrace is as follows
    javax.el.PropertyNotFoundException: Target Unreachable, '6' resolved to null
    at com.sun.el.parser.AstValue.getTarget(AstValue.java:108)
    at com.sun.el.parser.AstValue.isReadOnly(AstValue.java:149)
    at com.sun.el.ValueExpressionImpl.isReadOnly(ValueExpressionImpl.java:248)
    at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.getUncached
    ReadOnly(EditableValueRenderer.java:489) at
    oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.wasSubmitted(EditableValueRenderer.java:343) at
    oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.decodeInternal(EditableValueRenderer.java:116) at
    oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.decodeInternal(LabeledInputRenderer.java:56) at
    oracle.adf.view.rich.render.RichRenderer.decode(RichRenderer.java:328)
    What does '6' here refer to in the exception? Generally isnt the name of the property that resolved to null supposed to be there?

    Hi,
    have you checks if the page has a reference to "6" somewhere. The error seems to indicate that you used a property reference that actually is no property. This could also in case e.g. you call object.label. If "object" is a string then there is no label in which case "string name" resolves to null
    Frank
    Edited by: Frank Nimphius on Sep 10, 2012 4:19 PM

  • Error: Target Unreachable, identifier 'userMenu' resolved to null

    Hi,
    I wonder if any one could help me please. I am trying de resolve my error from the morning but no result.
    I got an error when I click to my panelMenuItem, the panemenu data works well but the panelMenuitem Action is not.
    the error is as follow:
    javax.el.PropertyNotFoundException: /pages/users/Customer.xhtml @76,72 binding="#{userMenu.addControls()}": Target Unreachable, identifier 'userMenu' resolved to null
            at com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:95)
            at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:244)
            at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:249)
            at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:249)
            at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:249)
            at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:193)
    What i would like to do is to display on the outputPanel the characteristic of the panelMenuItem's option.
    here is my java code:
    public HtmlPanelMenu addControls() {
             FacesContext context = FacesContext.getCurrentInstance();  
             Application application = context.getApplication();
             panelMenu.setId("panelMenu");
             panelMenu.setStyle("width:200px");
             panelMenu.setMode("ajax");
             panelMenu.setIconExpandedGroup("disc");
             panelMenu.setIconCollapsedGroup("disc");
             panelMenu.setIconExpandedTopGroup("chevronUp");
             panelMenu.setIconGroupTopPosition("right");
             panelMenu.setIconCollapsedTopGroup("chevronDown");
             panelMenu.setIconGroupTopPosition("right");
             List childrenMenu = getPanelMenu().getChildren();
            if(authenticatedUser.getProfile().getAccessRight().equals("customer") ) {
                customerProducts();        
                 HtmlPanelMenuGroup panelMenuGroup = new HtmlPanelMenuGroup();
                 panelMenuGroup.setId("Products");
                 panelMenuGroup.setLabel("products");
                 List childrenGroup = panelMenuGroup.getChildren();
                 Iterator it = userProducts.iterator();
                 while(it.hasNext() ) {
                     Product prod = (Product) it.next();
                     HtmlPanelMenuItem panelMenuItem = new HtmlPanelMenuItem();
                     panelMenuItem.setId("panelMenuItem"+prod.getProductId() );
                     panelMenuItem.setLabel(prod.getName() );
                     panelMenuItem.setRendered(true);
        application.createMethodBinding("#{characteristicServiceProduct}", new class [] { ActionEvent } );
                     ELContext eLContext = context.getCurrentInstance().getELContext();
                     MethodExpression me = application.getExpressionFactory().createMethodExpression(eLContext,
                                                                        "#{this.searchServiceProduct(prod)}", null, new Class[]{ActionEvent.class} );
                     panelMenuItem.setActionExpression(me);
                     childrenGroup.add(panelMenuItem);
                     childrenMenu.add(panelMenuGroup);
                     updateOutputPanel();
    return panelMenu;
    public HtmlAjaxOutputPanel addOutputPanel() {
            outputPanel.setId("outputPanel");
            outputPanel.setAjaxRendered(true);
            outputPanel.setTitle("Products caracteristic");
            HtmlOutputText outputText = new HtmlOutputText();
            outputText.setValue("");
            outputPanel.getChildren().add(outputText);
            return outputPanel;
        public void updateOutputPanel(){
            HtmlDataTable dataTable = new HtmlDataTable();
            UIColumn columnName, columnAmount;
            dataTable.setValue("#{characteristicServiceProduct}");
            dataTable.setVar("chSePr");
            columnName = new UIColumn();
            HtmlOutputText outputTextName = new HtmlOutputText();
            outputTextName.setValue("#{chSePr.characteristic.name}");
            columnName.getChildren().add(outputTextName);
            columnAmount = new UIColumn();
            HtmlOutputText outputTextAmount = new HtmlOutputText();
            outputTextAmount.setValue("#{chSePr.amount}");
            columnAmount.getChildren().add(outputTextAmount);
            dataTable.getChildren().add(columnName);
            dataTable.getChildren().add(columnAmount);
            outputPanel.getChildren().add(dataTable);
        }my .xhtml page is as follow
    <rich:panelMenu binding = "#{userMenu.addControls()}"/>
                   <rich:panel>
                        <a4j:outputPanel ajaxRendered="true" binding="#{userMenu.addOutputPanel()}">
                            <!--<h:outputText value="service #{userMenu.service}"/>-->
                        </a4j:outputPanel>
                    </rich:panel>thank you so much
    regards
    bibou

    Well i didn't define the scope. Now it's look better. T've got the followuing error:
    javax.el.PropertyNotWritableException: /pages/users/Customer.xhtml @76,72 binding="#{userMenu.addControls()}": Illegal Syntax for Set Operation
            at com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:98)
            at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:244)
            at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:249)
            at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:249)
    contact1 >> 09:46:37,663 ERROR [ExceptionFilter] handling uncaught exception
    javax.servlet.ServletException: /pages/users/Customer.xhtml @76,72 binding="#{userMenu.addControls()}": Illegal Syntax for Set Operation
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
    Caused by: javax.el.PropertyNotWritableException: /pages/users/Customer.xhtml @76,72 binding="#{userMenu.addControls()}": Illegal Syntax for Set Operation
            at com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:98)
            at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:244)
            at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:249)

  • How to localize "Target Unreachable, identifier 'row' resolved to null"

    Hi everybody
    How can I localize "Target Unreachable, identifier 'row' resolved to null" message?
    Thanks!
    Version
    ADF Business Components 11.1.1.56.60
    Java(TM) Platform 1.6.0_18
    Oracle IDE 11.1.1.3.37.56.60

    Hi Barbara,
    I do not know how to customize the message, but I can tell you how you can make the primary key attributes updateable without receiving such errors.
    ADF Faces use the primary key attributes to produce a rowkey that is used as a row ID in a table model. If you modify the value of a primary key attribute of a row in an <af:table> then the ADF Faces could not be able to find that row after that. In our projects we workaround this problem as follows:
    1) Define in the EO a "service" primary key consisting of a single ROWID attribute of a datatype oracle.jbo.domain.RowID. Base this attribute on the ROWID pseudocolumn of the corresponding DB table and mark the attribute as "Refresh After Insert";
    2) Modify the real primary key to become an alternate key (not in the DB table but in the corresponding ADF Business Components);
    3) Mark the RowID attribute as a key attribute in the VO instead of the real primary key attributes.
    In this way you will never modify at runtime primary key attributes (from ADF's point of view), so you will never lose the corresponding rowkeys and you will never get such errors. Note, that this approach does not require creation of a surrogate (for example, sequence based) primary key in DB.
    Dimitar

  • Target Unreachable, identifier 'viewBundle' resolved to null

    I'm using Jdev 11g to develop JSF application. it works well when I'm run the application within default server within Jdev. but it fails when i deploy it to weblogic server which i've installed ADF libraries.
    it says: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'viewBundle' resolved to null
    which my code in page is like: <c:set var="viewBundle"
    value="#{adfBundle['com.dstintl.hiport.unitpricing.view.ViewBundle']}"/>
    but it works when I use " <f:loadBundle basename="" var=""/>"
    Is it some libraries missing within my war?
    thank you.

    Hi,
    don't think you are missing something.
    Frank
    Edited by: Frank Nimphius on Dec 29, 2008 1:24 PM

  • Identifier 'row' Resolved to Null !!

    Dear All
    i have a Business Component Exist in my JSF Interface as a Table and i made one att Auto Submit = true
    and this true property makes error message for me *"Identifier 'row' Resolved to Null"*
    Please Advise

    Hi,
    row is the default variable that is used to build the table when it initially is rendered. Adter this the row is null as it is no longer needed. In your case the erro points to a wrong referene of his variable in your page source
    Frank

  • #NULL# passed in url resolves to %23NULL# after 4.2 upgrade

    URL target of a branch f?p=&APP_ID.:12:&SESSION.::&DEBUG.::P12_ID,P12_CALC_AP,P12_FLAG,P12_STATUS:#NULL#,&P7_CALC_AP.,7,Planned was working fine until 4.2 upgrade and post upgrade, url resolves the #NULL# to %23NULL# (f?p=18761:12:8013234343420::NO::P12_ID%2CP12_CALC_AP%2CP12_FLAG%2CP12_STATUS:%23NULL#,140201,7,Planned) and on displaying P12_ID it shows #NULL as the value received.
    Has anyone else experienced such behavior?
    I have changed the branch target to f?p=&APP_ID.:12:&SESSION.::&DEBUG.::P12_ID,P12_CALC_AP,P12_FLAG,P12_STATUS:,&P7_CALC_AP.,7,Planned and it seems to be working well on test instance. Is this right solution or is there a better way of resolving this issue ?

    That is the right solution. "#" is a URL reserved character used to indicate the beginning of the fragment identifier part of the URL. It must be escaped to "%23" if passed as data in the URL. Basically you're better off not trying to use "#" in this way.

  • Is this possible in JSF ---  Resolving value of a variable in EL

    Hi All,
    Trying to see if the following EL works in JSF. Btw Im using ADF with Facelets
         <c:set var="_bean1" value="formEditorBean" /> <!-- This will be coming from EL , hardcoded for explaining -->
         <c:set var="_bean2" value="#{_bean1}" />
            <af:outputText value="#{[_bean2].method}" /> <!-- This is not working though -->The value of '_bean2' ends up being a String "formEditorBean", whereas what im looking for is the resolved value of the given string which should be an instance of managed bean 'formEditorBean'. Basically the name of Managed Bean is coming dynamically hence trying to get something like this working.
    Appreciate your help
    Thanks,
    Samba

    Hi Simon,
    My use case is the following
    I have to render dynamic number of checkboxes in a page. Each of the checkbox will have to be bound to a different valueChangeListener. The number of checkboxes and the valueChangeListener method (including the bean name) is not known to me in the xhtml (ie. bean name itself has to be resolved from the EL). This information is available only while rendering the checkbox, hence trying to find a way to provide a valueChangeListener method whose bean name and method name comes from the java side. Hope you got the use case.
    What i have been missing is that whenever i do something like the code below the bean2 always resolves to a String (ie.formEditorBean) and not the class itself (eg.test.formEditorBean@3423432) so the valueChangeListener method fails. However, method name coming from an EL works. One obvious way to achieve the same this is to return the instance of the bean directly to bean2 rather than the string name which i dont want to get into unless there is no scope to solve this at the page level.
    Regarding your suggestion, I tried something like the following but got error "Target unreachable _bean2 resolved to null. Am I doing anything wrong ?
    <c:set var="_bean2" value="#{bean.listenerBeanName}" scope="page"/>
    <c:set var="_method2" value="#{bean.listenerMethodName}" scope="page"/>
    <af:selectBooleanCheckbox .....  valueChangeListener="#{pageScope._bean2[method2]}" autoSubmit="true"... > even tried
    <af:selectBooleanCheckbox .....  valueChangeListener="#{pageScope._bean2.valueChangeListener}" autoSubmit="true"... > Thanks for your help, let me know if you need more info

  • IIF formula with null

    Hi,
    I have problem with IIF in a formula:
    I want this to work:
    IIF (isnull(), "empty", )
    The output should be u201Cemptyu201D or -value, but I only get output -value
    If I use this formula instead I get correct output (u201Cemptyu201D or u201Cxu201D):
    IIF (isnull(), "empty", u201Cxu201D)
    Thanks,
    Tommy

    Hi,
    Please refer to the article below :
    PROBLEM: You are creating a Formula (e.g. within a Crystal Report's Alert Message) and the Alert Message (or other Formula) comes back blank when you are expecting a result.
    EXPLANATION: One of the components of the Formula may result in Null. When this happens, unless it is explicitly dealt with, the entire message (or Formula) will result in Null being returned.
    SOLUTION: Add an IF IsNull() THEN statement before your existing Formula and specify the logic to handle both the case where the given is Null and when it is not Null in your Formula.
    WARNING: Use of the IIF() function will not work here as all arguments of that function are resolved as the function is used and if anyone of them resolves to Null - so too does the entire function.
    [Click here for the link|http://www.usingcrystal.com/6982.html?sessionidkey=sessionidval]
    Regards,
    Clint

  • PL/SQL Object Type - Java oracle.jbo.domain

    PL/SQL Object Type <-> Java oracle.jbo.domain
    can anybody help me, getting my domains to work?
    Following scenario:
    in pl/sql we have an object type called MULTI_LANGUAGE. This type is used for storing multilingual texts as nested table in one(!) column.
    So the object MULTI_LANGUAGE contains a member variable LANGUAGE_COLLECTION of type LANGUAGE_TABLE, which itself is a nested table of objects
    of the type LANGUAGE_FIELD (this again is only a language id and the corresponding content)
    Also the methods setContent(langID, langContent) and getContent(langId) are defined on Object MULTI_LANGUAGE.
    For example: Table having primary key, 2 other columns and one column of object type MULTI_LANGAGE (=nested table of objects)
    |ID|Column1|Column2|  multilingual Column  |
    |--|---------------------------------------|
    |  |       |       |  -------------------  |
    |  |       |       | | 1 | hello         | |
    |  |       |       |  -------------------  |
    |1 | foo   | bar   | | 2 | hallo         | |   <- Row Nr 1
    |  |       |       |  -------------------  |
    |  |       |       | | 3 | ola           | |
    |  |       |       |  -------------------  |
    |--|-------|-------|-----------------------|
    |  |       |       |  -------------------  |
    |  |       |       | | 1 | world         | |
    |  |       |       |  -------------------  |
    |2 | abc   | def   | | 2 | welt          | |   <- Row Nr 2
    |  |       |       |  -------------------  |
    |  |       |       | | 3 | ???  ;-)      | |
    |  |       |       |  -------------------  |
    |--|-------|-------|-----------------------|Now i've tried to modell this structure as an oracle.jbo.domain.
    class MultiLanguage extends Struct having this StructureDef:
    attrs[(0)] = new DomainAttributeDef("LanguageColl", "LANGUAGE_COLL", 0, oracle.jbo.domain.Array.class, 2003, "ARRAY", -127, 0, false, "campusonlinepkg.common.LanguageField");
    and
    class LanguageField extends Struct having this StructureDef:
    attrs[(0)] = new DomainAttributeDef("Id", "ID", 0, oracle.jbo.domain.Number.class, 2, "NUMERIC", -127, 0, false);
    attrs[(1)] = new DomainAttributeDef("Content", "CONTENT", 1, java.lang.String.class, 12, "VARCHAR", -127, 4000, false);
    Is there anything wrong with this StructureDef?
    When running the BC-Browser with -Djbo.debugoutput=console -Djbo.jdbc.driver.verbose=true parameters I get suspect warnings when browsing the records
    [196] Executing FAULT-IN...SELECT NR, NAME FROM B_THESAURI BThesauri WHERE NR=:1
    [197] SQLException: SQLState(null) vendor code(17074)
    [198] java.sql.SQLException: Ungültiges Namensmuster: XMLTEST.null
    ...snip: detail of stack...
    [240] SQLException: SQLState(null) vendor code(17060)
    [241] java.sql.SQLException: Deskriptor konnte nicht erstellt werden: Unable to resolve type "null"
    ...snip: detail of stack...
    [280] Warning:No element type set on this array. Assuming java.lang.Object.
    (XMLTEST is the name of the schema)
    Seems as if the framework can't read the TypeDescriptor or does not know which descriptor to read (XMLTEST.null??)
    Do I have to implement my own JboTypeMap?
    Please help, I'm stuck.
    Thanks in advance, Christian

    Thanks for your suggestion, but it seems to me as if there is one level missing.
    in pl/sql I have following structure:
    Struct MULTI_LANGUAGE (Object type) - outermost
      Array LANGUAGE_TABLE (nested table type)
        Struct LANGUAGE_FIELD (Object type simple) - innermostthe reason why i had to wrap another struct around the array was because it is not possible to define methods on a nested table. this is only possible on objects.
    on the outermost object type (which holds the array of language fields) I needed to define following 2 methods for direct access:
    getContent (langId in number) returns varchar2
    setContent (langId in number, langContent in varchar2)
    I would like to rebuild the same structure in java, because newly written java code should live in perfect harmony with legacy pl/sql code ;-)
    Both applications (Java and pl/sql) have to access the same data as long as migration to java goes on.
    Is this nested structure too much for a Domain?
    Any other suggestions?
    Thanks again, Christian

  • Problem with binding in h:dataTable

    Hi
    I have a problem with h:dataTable, where the table rows are bound to objects (Bean$Line) nested within a backing bean (Bean).
    JSP:
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <html>
      <f:view>
        <head>
          <link href="styles.css" rel="stylesheet" type="text/css"/>
          <title>Sandbox</title>
        </head>
        <body>
          <h:form>
            <h:dataTable value="#{bean.lines}" var="line">
              <h:column>
                <h:outputText value="#{line.id}"/>
              </h:column>
              <h:column>
                <!-- using value = line.lineSelected here works (assuming boolean property Line.lineSelected) --/>
                <h:selectBooleanCheckbox binding="#{line.lineSelected}"/>
              </h:column>
            </h:dataTable>
          </h:form>
        </body>
      </f:view>
    </html>Bean:
    package com.test;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.component.UISelectBoolean;
    public final class Bean {
      private final List<Line> lines;
      public Bean() {
        lines = new ArrayList<Line>();
        lines.add(new Line("one"));
        lines.add(new Line("two"));
        lines.add(new Line("three"));
      public List<Line> getLines() {
        return lines;
       * Nested class in order to access containing class
       * properties etc.
      public static class Line {
        //private boolean lineSelected = false;
        private UISelectBoolean lineSelected;
        private String id;
        public Line(String id) {
          this.id = id;
        /*public boolean isLineSelected() {
          return lineSelected;
        public void setLineSelected(boolean lineSelected) {
          this.lineSelected = lineSelected;
        public UISelectBoolean getLineSelected() {
          return lineSelected;
        public void setLineSelected(UISelectBoolean lineSelected) {
          this.lineSelected = lineSelected;
        public String getId() {
          return id;
        public void setId(String id) {
          this.id = id;
      } // Line
    }The setup works when I use value="#{line.lineSelected}" (assuming the property is defined as boolean in Bean$Line) but as soon as I use a binding, I get the following exception:
    com.sun.rave.web.ui.appbase.ApplicationException: javax.servlet.ServletException: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'line' resolved to null
    at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.cleanup(ViewHandlerImpl.java:594)
    at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:325)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
    faces_config:
    <faces-config version="1.2"
                  xmlns="http://java.sun.com/xml/ns/javaee"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
      <application>
        <locale-config>
          <default-locale>en_GB</default-locale>
          <supported-locale>en_GB</supported-locale>     
        </locale-config>
      </application>
      <managed-bean>
        <managed-bean-name>bean</managed-bean-name>
        <managed-bean-class>com.test.Bean</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
      </managed-bean>
    </faces-config>What am I missing here?
    Help much appreciated
    Lance

    Guys
    Thanks a lot, both of your replies are immensely instructive. Maybe a little background on what I'm trying to do. In the table, I have header rows with dependent line rows. When a check box is ticked in the header, I want the corresponding check boxes in the dependent lines to be checked automatically (in slave fashion and ideally without using JavaScript). My idea was to update the bound components (for the lines) from within the Bean (in response to change on the header). However, given there's only a single component for each column in the table, this of course doesn't make sense.
    I'm trying to get to the typical MVC workflow of a) user updates a View component, b) Controller detects the change and updates the Model, c) The Model fires a property change event, which the View detects and updates appropriately. What's the way to achieve this in JSF (by design)?
    Here's a simple fragment (which does not work):
            <h:dataTable value="#{bean.lines}" var="line">
              <h:column>
                <h:outputText value="#{line.id}"/>
              </h:column>
              <h:column>
                <!-- (1) This is the master and (2) should refresh on update here --/>
                <h:selectBooleanCheckbox onchange="submit()" value="#{line.lineSelected}"/>
              </h:column>
              <h:column>
                <!-- (2) This is the slave and I want this to update in response to a change of (1) above --/>
                <h:selectBooleanCheckbox value="#{line.slaveSelected}"/>
              </h:column>
            </h:dataTable>In the setter method for lineSelected, I'm setting slaveSelected to the new value but the View is not refreshing based on this. How do I get the View to update (each dependent line) based on the new values for slaveSelected?
    Thanks again
    Lance

  • How can I show a error popup and cancel navigation?

    I am using JDeveloper 11.1.1.6 with WL 10.3.5. I am new to ADF / JDeveloper...
    My use case is as follows:
    I have a bounded task flow with two view activities linked by a control flow case. The from activity is a simple table that allows a user to click a commandLink to go to a details page to modify the record (the to activity in described task flow).
    When a user clicks the commandLink to edit the record I need to execute a AM method that returns a boolean based on a PL/SQL procedure. If this AM method returns false I need to inform the user that the record is ineligible for editing and cancel navigation to the details page (stay on the current page). If true is returned I need to allow the user to proceed to the edit page.
    What is the best way to accomplish this? I have looked at http://andrejusb.blogspot.com/2011/10/how-to-disable-action-conditionally.html but I kept getting "navigationContext resolved to null". I have also tried inserting a method call activity in the task flow between the two view activities. Using this approach I am able to execute the AM method but I cannot figure out how to route the user based on the return.
    Am I even close? Any pointers?
    Thanks.
    Edited by: errodr on Apr 18, 2013 12:00 PM

    Hi,
    As another option you can try this way as well,
    1. From View Activity2, put a return control flow case saying "back" to View acitivity1 (this output will be used to go to first view activity from either view activity2 (back button) or loop inside view activity 1
    2. On your command button, in Action property (not Action listener), create a managed bean method and use it to drive the navigation (it expects a string return value)
    3. Inside your managed bean, invoke your AM method and based on true/false of AM value you return either "Back" or <viewactivit2 outcome>
    4. If giving "Back" doesn't work, try to return null and see if that works.
    Ravi Nuka

  • How I can send emails using the client object model?

    I have tried this, but I always get an exception with error message "A recipient must be specified.":
    string webUrl = "http://sharepoint.example.com/";
    EmailProperties properties = new EmailProperties();
    properties.To = new string[] { "[email protected]" };
    properties.Subject = "Test subject";
    properties.Body = "Test body";
    ClientContext context = new ClientContext(webUrl);
    Utility.SendEmail(context, properties);
    context.ExecuteQuery(); // ServerException thrown here
    context.Dispose();
    Server stack trace:
    at System.Net.Mail.SmtpClient.Send(MailMessage message)
    at Microsoft.SharePoint.Utilities.SPUtility.SendEmail_Client(EmailProperties properties)
    at Microsoft.SharePoint.ServerStub.Utilities.SPUtilityServerStub.InvokeStaticMethod(String methodName, XmlNodeList xmlargs, ProxyContext proxyContext, Boolean& isVoid)
    at Microsoft.SharePoint.Client.ServerStub.InvokeStaticMethodWithMonitoredScope(String methodName, XmlNodeList args, ProxyContext proxyContext, Boolean& isVoid)
    at Microsoft.SharePoint.Client.ClientMethodsProcessor.InvokeStaticMethod(String typeId, String methodName, XmlNodeList xmlargs, Boolean& isVoid)
    at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessStaticMethod(XmlElement xe)
    at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessOne(XmlElement xe)
    at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessStatements(XmlNode xe)
    at Microsoft.SharePoint.Client.ClientMethodsProcessor.Process()
    msdn link: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.utilities.utility.sendemail.aspx

    hi
    if you will check the code of SendEmail_Client(EmailProperties properties), you will find that it may only send emails to internal users. May be it was made intentionally in order to prevent spamming from client code. So let's see:
    internal static void SendEmail_Client(EmailProperties properties)
    if (properties.To.Count == 0)
    throw new SPException(SPResource.GetString(web.LanguageCulture, "SendEmailInvalidRecipients", new object[0]));
    AddressReader func = null;
    using (MailMessage mm = new MailMessage())
    func = delegate (MailAddress a) {
    mm.To.Add(a);
    ResolveAddressesForEmail(web, properties.To, func);
    new SmtpClient(SPAdministrationWebApplication.Local.OutboundMailServiceInstance.Server.Address).Send(mm);
    I.e. it adds recipient in ResolveAddressesForEmail() method. Now let's check this method:
    private static void ResolveAddressesForEmail(SPWeb web, IEnumerable<string> addresses, AddressReader func)
    if (addresses != null)
    foreach (string str in addresses)
    if (string.IsNullOrEmpty(str))
    continue;
    SPPrincipalInfo info = ResolvePrincipal(web, str, SPPrincipalType.All, SPPrincipalSource.All, null, false);
    if ((info != null) && (info.PrincipalId > 0))
    if (!string.IsNullOrEmpty(info.Email))
    try
    func(new MailAddress(info.Email, (info.DisplayName != null) ? info.DisplayName : "", Encoding.UTF8));
    catch (FormatException)
    continue;
    if ((string.IsNullOrEmpty(info.Email) && info.IsSharePointGroup) && web.DoesUserHavePermissions(SPBasePermissions.BrowseUserInfo))
    SPGroup byNameNoThrow = web.SiteGroups.GetByNameNoThrow(info.LoginName);
    if (byNameNoThrow == null)
    continue;
    foreach (SPUser user in byNameNoThrow.Users)
    if (!string.IsNullOrEmpty(user.Email))
    try
    func(new MailAddress(user.Email, (user.Name != null) ? user.Name : "", Encoding.UTF8));
    continue;
    catch (FormatException)
    continue;
    continue;
    I.e. at first it tries to resolve user using ResolvePrincipal() method. If it is not resolved (info == null) email is not sent. But if it is - it first checks that email is not empty. If it is not - it adds email to the MailMessage.To recipients list. If
    it is empty it checks whether the principal info represents Sharepoint group. If yes - it will send email to each member of the group.
    So it may be so that you try to send email to external user (which is not supported according to the code above), or resolved principal doesn't have email specified.
    Blog - http://sadomovalex.blogspot.com
    CAML via C# - http://camlex.codeplex.com

  • Problem with ADF security and task flow calls

    Hi.
    I am using JDeveloper 11.1.2.0.0.
    I encountered a problem when tried to apply ADF security to my application.
    The way to reproduce the problem:
    1. Create new Fusion Web Application;
    2. Import Business Components from Tables from any existing schema and add at least one table to the ApplicationModule.
    3. Create "welcome page" (for instance, welcome.jsf). Add a button with fixed action outcome "test".
    4. Create test page, for instance, test.jsf. Drag and drop any view object from Data Controls onto the page and create a form with navigation controls. Add a button with fixed action outcome "return".
    5. Create bounded task flow, name it "test", drag and drop our test page on it - the page will be the default activity. Add a task flow return activity. Add a control flow case from the default view activity to the return activity, set From Outcome property to "return". So our return button should cause the task flow to exit.
    6. Open adfc-config.xml in diagram mode and place our welcome page on it. Then drag and drop the test task flow to create a task flow call activity. Add a control flow case from welcome page to task flow call activity, set the From Outcome property to "test". So our test button should call the test task flow.
    7. Configure application to run the unbounded task flow starting with Welcome view activity.
    At this point all works as expected: when application runs, the welcome page is displayed with test button. Pressing the test button results in displaying the test page, return button leads back to the welcome page.
    Now let's configure ADF Security.
    Run the ADF Security configuration wizard, choose ADF Authentication and Authorization.
    On the second page select Form-Based Authentication, check the Generate Default Pages flag.
    On the third page choose No Automatic Grants.
    On the next page keep the Redirect Upon Successful Authentication unchecked. Press Finish.
    Open jazn-data.xml to configure roles, users and resource grants:
    1. Create application role test-role.
    2. Grant the test-role privileges to view the test task flow.
    3. Create user and grant him the test-role.
    Now we have the public available welcome page and the test page with restricted access.
    When application runs, the welcome page is displayed as expected. Pressing the test button redirect us to auto-generated login page. After successful authorization the test page is displayed. But nothing happens if we click now the return button for the first time. When we click the return button once more, the application crushes with Error-500 and message "Target Unreachable, identifier 'bindings' resolved to null". The exact error trace depends on UI control bindings, but looks like this:
    javax.el.PropertyNotFoundException: //C:/Users/DUDKIN/AppData/Roaming/JDeveloper/system11.1.2.0.38.60.17/o.j2ee/drs/Test1/ViewControllerWebApp.war/test.jsf @10,120 value="#{bindings.Id.inputValue}": Target Unreachable, identifier 'bindings' resolved to null
         at com.sun.faces.facelets.el.TagValueExpression.isReadOnly(TagValueExpression.java:122)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:476)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.getReadOnly(EditableValueRenderer.java:390)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.wasSubmitted(EditableValueRenderer.java:345)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.decodeInternal(EditableValueRenderer.java:116)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.decodeInternal(LabeledInputRenderer.java:56)
         at oracle.adf.view.rich.render.RichRenderer.decode(RichRenderer.java:342)
         at org.apache.myfaces.trinidad.render.CoreRenderer.decode(CoreRenderer.java:274)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:1324)
    (the rest of lines skipped).
    Any suggestions?
    Edited by: user13307311 on Apr 16, 2013 11:39 PM

    @Lovin_JV_941794
    The welcome page is public available since it does not have appropriate PageDef file.
    Login page comes not from the welcome page, it comes after attempt to access the test page. So after the login succeeded the test page appears, because redirect to welcome page after successful login is not configured. I do not need to return the welcome page at this moment, I need to go to the test page.
    It seems the task flow call stack to be destroyed after redirect to login page.
    Edited by: user13307311 on Apr 17, 2013 12:45 AM

Maybe you are looking for

  • ORA-00060: deadlock detected while waiting for resource CLOSE cursor

    Hi, I am a new member of this forum. I am working with a problem we got a few weeks ago. It is from a Pro C batch executable running on 10 threads dealing with >800 data accessed from multiple tables. The error as reported came from a package.functio

  • IOS 5.0 as screwed up my iBooks

    I wonder if anyone can answer tis one (sorry for my spelling, one of my keys is stuck on my keypad).  I upgraded to iOS 5.0 yesterday evening and since ten I am unable to read any books.  It seems tat only some text in eac book is visible and I get t

  • Disable "Open in Browser" via GPO

    I've been asked to disable opening PDFs in Internet Explorer for our environment. The reason required is that we force Sharepoint customers to view any documents in the application for them, ie Word documents open in MS Office and so on. But Adobe Re

  • Errors with moving from Mobile me to iCloud - No answer anywhere on the web that I can find!

    I'm completely up to date with Lion. I'm trying to move from Mobile Me to iCloud, but get an "Unable to complete your move to iCloud because of an unexpected server error" message on my Mac Book Pro when I open system preferences, it tries to finish

  • Vat Report - Vat codes mixed up

    Hi all, When my customer goes to the VAT Report, normally it separates the VAT codes. We have D9, D10, D20, etc. The problem with my customer is that some journal entries are not in the corresponding tax group on the vat report. For example, on the l