Seriously stuck on managed bean for tree

Hello,
I've been trying for two days to figure out how to get selectable links on my tree, so I'm hoping someone can help me.
I've gotten lots of advice from people here and from tutorials, but everybody giving it is so advanced that they miss the simple things that I don't know how to do.
I'm trying to follow this tutorial:
http://technology.amis.nl/blog/?p=2094
And already I've reached two problems.
My first is that I don't seem to have the package nl.amis.adffaces.tree which is used in the first grey code section on that page.
The second problem is that I don't understand where to type the code that is in the grey.
So I have a few specific questions and I really hope someone can help me out.
1. How do I get the package nl.amis.adffaces.tree ?
2. Where do I put that first code? If it's a managed bean or a class or whatever, can you please tell me how to make that, because I don't know how.
3. Am I following the right tutorial? I just want the folders and nodes on my tree to be selectable and show the details in a separate table on the page.
4. Once I can figure out how to make a managed bean, how do I connect my tree to it? I was told to click binding but that only gives options for the rules that decide the nodes of the tree.
Thanks again,
Nelson

Ah yes, thanks!
That and Shay's post in my other thread (Tree Drill Down for people searching this later)
have really helped me. I have my binding set up properly and everything now!
I've just got some problems with errors in my selectCurrentRowWithKey actions.
It's a bit confusing in the link but if I have more than one primary key for a view, then it will send ALL of them when I use an action like that, right?
Because I have a view link that links the node in my tree to another view that is shown in a table, but I get an error saying it can't find the key [2 2 1204] when really (I think) it should only be trying to pass [1204].

Similar Messages

  • One Managed Bean for a set of pages

    Can I have one Managed Bean (request scope) for a set of pages using Creator? Or should I have one Managed Bean for each page?
    Thanks in advance,
    Juan

    Hi,
    Please take a look at the following threads:
    http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=51481
    http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=54165
    http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=51912
    Hope this hepls
    Regards,
    Rk.

  • Data Palette not showing Managed Beans for Dynamic Web Project, JSF 2.1

    Hello.
    I have a problem in OEPE (oepe-juno-distro-win32.zip), where the Data tab in Palette shows no Managed Beans,
    even if I created them in the ManagedBeans in faces-config.xml using the Faces Config Editor.
    I have created a Dynamic Web Project with these Facets:
    Dynamic Web Module 3.0
    Java 1.7 (JDK 1.7_21)
    Java Annotation Processing Support 5.0
    JavaScript 1.0
    JavaServer Faces 2.1
    JSTL 1.2
    Oracle WebLogic Web App Extensions 12.1.1
    I am using Oracle WebLogic Server 12c 12.1.1 zip distribution for hosting the application.
    For example, I have a UserBean Managed Bean of Session scope, that has 3 String fields
    and the respective getters and setters.
    I create a "test.jspx" file, and from the Palette -> Tags tab -> JSF HTML I drag a Form into
    the new file so I can connect it to UserBean and generate a form to enter its details.
    I select the "Generate a form tag and content from data" and in the Choose Bean dialog
    there is none of my Beans.
    What could be the problem?
    Thanks in advance.
    Edited by: 997841 on Apr 30, 2013 6:09 PM
    I forgot to mention the Oracle WebLogic Web App Extensions version 12.1.1 and that also
    for JSF 2.1 the "sub-directory" Faces Configuration below the project in Project Explorer is not
    existent, as in projects created with earlier versions of JSF.

    Yes, they are both listed under the WebLogic System Libraries.
    This is the content of .classpath file when using WebLogic System Library:
    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
         <classpathentry kind="src" path="src"/>
         <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/Oracle WebLogic Server 12c (12.1.1) JRE">
              <attributes>
                   <attribute name="owner.project.facets" value="java"/>
              </attributes>
         </classpathentry>
         <classpathentry kind="src" path=".apt_src">
              <attributes>
                   <attribute name="optional" value="true"/>
              </attributes>
         </classpathentry>
         <classpathentry kind="con" path="oracle.eclipse.tools.weblogic.lib.system">
              <attributes>
                   <attribute name="owner.project.facets" value="jst.web"/>
              </attributes>
         </classpathentry>
         <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
         <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
         <classpathentry kind="con" path="oracle.eclipse.tools.weblogic.lib.shared/jstl/exact/1.2"/>
         <classpathentry kind="output" path="build/classes"/>
    </classpath>
    And this is the content when using User Library with Mojarra:
    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
         <classpathentry kind="src" path="src"/>
         <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/Oracle WebLogic Server 12c (12.1.1) JRE">
              <attributes>
                   <attribute name="owner.project.facets" value="java"/>
              </attributes>
         </classpathentry>
         <classpathentry kind="src" path=".apt_src">
              <attributes>
                   <attribute name="optional" value="true"/>
              </attributes>
         </classpathentry>
         <classpathentry kind="con" path="oracle.eclipse.tools.weblogic.lib.system">
              <attributes>
                   <attribute name="owner.project.facets" value="jst.web"/>
              </attributes>
         </classpathentry>
         <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
         <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
         <classpathentry kind="con" path="oracle.eclipse.tools.weblogic.lib.shared/jstl/exact/1.2"/>
         <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/JSF 2.1 (Mojarra 2.1.6-FCS)">
              <attributes>
                   <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
                   <attribute name="owner.project.facets" value="jst.jsf"/>
              </attributes>
         </classpathentry>
         <classpathentry kind="output" path="build/classes"/>
    </classpath>

  • Scope of managed bean for a modifiable list

    I have a business entity set stored in database. I want to show them with JSF as elements of a list with each element having a delete button. If the database changes in the background because entitites are removed or inserted, the delete function certainly must work well.
    I'm clear of the key stuff I have to use:
    -a managed bean, probably containing some list coming from database through dao or o/r mapper.
    -some iterator, e.g. t:dataList (using Tomahawk)
    -h:commandButton with action referring to methods in the managed-bean's elements.
    The question is, what usually would be the scope of the managed-bean.
    If the scope is "request", delete function may work wrong when database changes between the first and the "delete" request.
    -First request: managed-bean created with ids and event handlers.
    -Database changes: new entity is inserted.
    -Secont request: managed-bean created with id-s and event handlers according to the new database content. id-s have been shifted.
    It may help if I override somehow the default id generation of the JSF, by using directly id-s of business entities but I think it's an unproposed hack.
    If the scope of the managed bean is "session", the delete function works well, however we've a lot of stuff to store in the session.
    So, what would be the scope of the managed-bean?
    Or a completely different approach should be used?

    hi,
    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">
    <!-- ***************Country************-->
    <managed-bean>
    <managed-bean-name>countryMBean</managed-bean-name>
    <managed-bean-class>com.tnhsp.mbeans.CountryMBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <!-- ***************country************-->
    <navigation-case> <!-- DEfault mode - Fetches all data in datatable -->
    <from-outcome>fetch_country</from-outcome>
    <to-view-id>/hospitalAdmin/country/countryDisplayContent.jsp</to-view-id>
    <redirect/>
    </navigation-case>
    <navigation-case> <!-- Displayes the screen to add data -->
    <from-outcome>add_country</from-outcome>
    <to-view-id>/hospitalAdmin/country/countryCreateContent.jsp</to-view-id>
    <redirect/>
    </navigation-case>
    </faces-config>
    MBEAN:-----
    public class CountryMBean {
    @EJB
    CountrySRemote countrySRemote;
    private Country country = new Country();
    public CountryMBean() {
    System.out.println("countryMBean.countryMBean()");
    country = new Country();
    fc = FacesContext.getCurrentInstance();
    public String actionAdd() {
    renderFlag = 1;
    errorStatus = "";
    System.out.println("countryMBean. - actionadd");
    retValue = "add_country";
    setLinkMode(ADD_MODE");
    setDisableCodeField("false");
    saveStatus = "false";
    listEmptyStatus = "false";
    country = new Country();
    Date dt = new Date();
    country.setEffectFromDt(dt);
    country.setCreatedDate(dt);
    country.setLastUpdatedDate(dt);
    country.setCreatedUser("user");
    country.setLastUpdatedUser("user");
    System.out.print("returning from actionadd");
    return retValue;
    Please help.

  • Manage bean for pop up getting called when parent screen is getting loaded

    Hi,
    I have designed two jspx . One having pop up code and other one (parent) from which the pop up will open. Problem is after I have put the pop up code in my Perent screen both the manage beans are getting invoked when parent screen is getting rendered which i dont want . Please help me out regarding how to avoid this?

    where did you register the managed Beans ?
    Which version of Jdev do you use ?
    Also how did you include your popup code in the jpsx - by jsp include or by using regions ?

  • Need a common manage bean for page and its fragments

    Hi,
    I'm using Jdev 11.1.2.3.0. I have a page and its fragments (i using <af:region> to include these fragments).
    I want to create a mutual bean used for that page and its fragments.
    Beause my page fragments are contained in other BTF, so i cannot use PageFlow Bean scope and
    I don't want to use session scope and application scope.
    Could someone have any ideas ?
    Thank you.

    Hi Frank,
    I used Shared DC, but now I got an issue
    I have <af:panelGroupLayout> in my page fragment and i want to bind it to RichPanelGroupLayout in my common bean (already create Data Control for this bean).
    I cannot do this, I just can bind attributes of RichPanelGroupLayout to my page fragment.
    Do you have any ideas? Can we bind directly RichPanelGroupLayout in DC to page fragment like this: <af:panelGroupLayout id="panelGroupLayout11" layout="scroll" *binding="#{bindings.panelGroupLayout}"* ...
    Thank you very much
    Thanh Hoang

  • Enterprise Manager Bean (for BC4J)

    Hi all,
    Does anyone know who would be the correct person to talk to about the BC4J EM Bean? I got various responses at OracleWorld; apparently the integration of this bean was overseen by the EM team but actually developed by another (makes sense). Only thing is I'm not sure if the glitch I'm seeing is EM acting up or the bean (I suspect the bean). I'm getting odd behaviour in certain cases and would like to discuss it further w/ someone who is familiar w/ the implementation. I dread logging this as a TAR...
    Thanks in advance,
    /SFL

    DB Control Repository is needed to run EM. To create it you can use emca or dbca command.
    See http://download-west.oracle.com/docs/pdf/B12013_01.pdf
    Paul

  • Managed Beans vs. POJO Data Control for sharing data

    Hi,
    I am currently using JAX-WS proxy client and POJO Data Controls to retrieve data from web services. This data needs to be shared across users. Normally I would use application scoped managed beans for this, but since I prefer using data controls and the binding layer, would using static POJO Data Control classes achieve the same thing?

    Hi,
    Data Controls don't exist across user sessions so in your use case use a managed bean in application scope. If you want to make this available from a Data Control
    - create a POJO
    - Use EL in the POJO to access the managed bean
    - Create a DataControl from the POJO
    This way the Data Control exposes the data as an API but itself always reaches out to the managed bean as a data store/cache
    Frank

  • Specify factory for managed bean

    Hello,
    I'm new to JSF and find myself duplicating a lot of code. For example, I have several pages that display data in the exact same way, even though the data collections vary (i.e. one page displays Country instances; the other State instances). Right now, I'm creating a managed bean for each type, but the beans only differ in how they populate the data (i.e. the bean for Country knows to load its data from resource X, whereas the bean for State uses a separate resource). Is there a way to specify a factory for initializing beans, or a way to pass arguments to the constructor, so that I could just use a single managed bean, with my JSF pages specifying how they want the bean initialized (i.e. for Countries, rather then States)? Am I misunderstanding some thing about managed beans? Under a servlet app, I would just populate the bean and then forward the client- I'm struggling with how to duplicate that need in JSF. Thanks for your help. Take care.

    Hello,
    I'm new to JSF and find myself duplicating a lot of code. For example, I have several pages that display data in the exact same way, even though the data collections vary (i.e. one page displays Country instances; the other State instances). Right now, I'm creating a managed bean for each type, but the beans only differ in how they populate the data (i.e. the bean for Country knows to load its data from resource X, whereas the bean for State uses a separate resource). Is there a way to specify a factory for initializing beans, or a way to pass arguments to the constructor, so that I could just use a single managed bean, with my JSF pages specifying how they want the bean initialized (i.e. for Countries, rather then States)? Am I misunderstanding some thing about managed beans? Under a servlet app, I would just populate the bean and then forward the client- I'm struggling with how to duplicate that need in JSF. Thanks for your help. Take care.

  • How to pop up a browser window from a managed bean?

    I have a user case like this:
    User login our home website. He/she clicks a button. Control flow goes to a managed bean (MB here after) to check some conditions. If conditions are met, instead of sending the user back to the home page, the user will be presented a new web site (e.g. forums.oracle.com) in a popup window on top of our home site.
    Can we invoke a website in a adf popup? If so, how to do that? If not, any idea on how to develop this use case?
    Any idea is appreciated.

    Sorry, I have updated the previous reply with the required inputs.
    For convenience, putting it again;
    if you need to check for some condition and then invoke the browser, you could use the following code in your managed bean for af:commandButton for Action.
    import javax.faces.context.FacesContext;
    import org.apache.myfaces.trinidad.render.ExtendedRenderKitService;
    import org.apache.myfaces.trinidad.util.Service;
    public class TestURLPageBean {
    public TestURLPageBean() {
    super();
    public String onClick() {
    *// Check for the condition here and invoke the browser only if it is true*
    if (true) {
    ExtendedRenderKitService erks =
    (ExtendedRenderKitService)Service.getRenderKitService(FacesContext.getCurrentInstance(),
    ExtendedRenderKitService.class);
    StringBuilder script = new StringBuilder();
    script.append("window.open('http://www.google.com');");
    erks.addScript(FacesContext.getCurrentInstance(),
    script.toString());
    return null;
    Thanks,
    Navaneeth

  • How to attach simple Spring code as managed bean into amx:listView (list view in adf mobile application)

    I found very simple code to fetch facebook feed here:
    3.&amp;nbsp;Facebook API Binding
    it uses Spring Framework. I already added spring support into jDeveloper.
    code to fetch feed is something like this:
    String accessToken = "f8FX29g..."; // access token received from Facebook after OAuth authorization
    Facebook facebook = new FacebookTemplate(accessToken);
    List<Post> feed = facebook.feedOperations().getFeed();
    I created managed bean for my amx:listView - Facebook.java. And inserted this code. But of course it is not enough. I need somehow to add spring managed bean (not like mine).
    Can you help me with that?

    Thanks for your answer. But its too wasteful for my app to run additional server. My app is very simple so i do not need server side. May be there is another way, without Spring. I mean something simpler then raw JDK 1.4 - some ready-made tool for the needs of these?
    Thanks in advance

  • Not working Manage bean

    Dear experts,
    Im using JDeveloper 11.1.2.2.0
    I created manage bean for cetain command button in my jsf page.
    This is the code of MB:
    package common.model.view;
    import javax.faces.event.ActionEvent;
    public class abc {
    public abc() {
    public void getSelectedRow(ActionEvent actionEvent) {
    // Add event code here...
    System.out.println("Testing.......");
    But after running the web page, it shows following error when clicking the command button.
    Pls advice me to solve this.
    Thanks
    Charith
    <MethodExpressionActionListener> <processAction> Received 'javax.el.PropertyNotFoundException' when invoking action listener '#{xxxxxxxx.yyyyyyy}' for component 'cb1'
    <MethodExpressionActionListener> <processAction> javax.el.PropertyNotFoundException: //C:/Users/charithk/AppData/Roaming/JDeveloper/system11.1.2.2.39.61.83.1/o.j2ee/drs/LifePolicy/LifePolicyViewCntWebApp.war/LifePolicyPage.jsf @75,117 actionListener="#{xxxxxxxx.yyyyyyy}": Target Unreachable, identifier 'xxxxxxxx' resolved to null
         at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:107)
         at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:148)
         at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:824)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:179)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:112)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:106)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:970)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:351)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:207)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    It looks like the bean was not found. Did you define it in your adfc-config.xml or a btf config? Ensure the names of the bean defined in one of the former config files match. Otherwise, verify proper scope of the bean.

  • Managed Bean in Task Form

    Hi!Oracle Fusion Middleware 11.1.1.5.0, Oracle JDeveloper 11g.
    I post this thread in this section because of the type of project I am working in (SOA Application).
    I am trying to customize a BPEL Task Form.
    After I made a project using Fusion Web Application, I could confirm that the managed beans for some ADF Faces components were working and the form (an .jspx page that I would run on Integrated Web Logic Server) was functional.
    I made a project using SOA Application.
    I made a BPEL Process with a Human Tak and using the Launch Task Form Wizard I made a form.
    Then I started adding ADF Faces components that are using managed beans, just like in the other project.
    When I deploy the project, all the components using the beans just dont show up. If I dont use the components with the managed beans the form appears normally.
    Is there some additional requirement to make the bindings with the managed beans in the Task Form?
    To clarify the question below I have some printscreens:
    1. SelectOneChoice "Rubrica" component with value binding from the ActionListenerOK java class;
    http://i43.tinypic.com/x4j0ol.jpg
    2. Showing the Expression Builder for the above value binding;
    http://i42.tinypic.com/14mdxqq.jpg
    3. Method Expression Builder for a Button Component;
    http://i41.tinypic.com/2r38tw2.jpg
    4. The managed beans list for the form page;
    http://i41.tinypic.com/rbjqt2.jpg
    5. How the form appears when using the components with java bean bindings;
    http://i39.tinypic.com/34pghh0.jpg
    6. How the form appears when delete the components with tha java bindings;
    http://i41.tinypic.com/2mwwkuo.jpg

    &lt;af:outputText value="Authenticated User: #{securityContext.userName}" id="ot2"/>
    or via standard j2se apis (Subject.getSubject(..))
    hth clemens (http://blogs.oracle.com/soabpm)

  • Managed bean in both adfc-config.xml and faces-config.xml file

    hi,
    i can see that it's possible to declare managed bean in both adfc-config.xml and faces-config.xml file.
    is there any difference? which one is recommended?
    read here - http://www.jaypillai.com/tag/adf/
    but still not clear.
    thanks.

    Hi.
    As you know ADF is a framework based on JSF.
    In faces-config.xml you define general application manage beans. It offers you define manage beans for all application using JSF default scopes (application, session, request).
    In adfc-config.xml you define general application manage beans using ADF Scopes. It means that you can use JSF default ones including "view, pageFlow and backing".
    My recommendation is use only one point entry for your general manage beans. Use adfc-config.xml because allow you to use more scopes.
    Regards.

  • How invalidate a session managed bean

    I have a faces-config. xml file with the following content:
    <managed-bean>
    <managed-bean-name>pc_mybean</managed-bean-name>
    <managed-bean-class>mybean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    For some reasons I needed to put it as session.
    Now I would like to know if there is a way to invalidate the session bean. Does someone know? How can I access to the bean with my java code?
    Thanks a lot.
    Didi

    the method to invalidate the bean:
         public static void resetManagedBean(String beanName) {
              getValueBinding(getJsfEl(beanName)).setValue(FacesContext.getCurrentInstance(), null);
         private static ValueBinding getValueBinding(String el) {
              return getApplication().createValueBinding(el);
         public static String getJsfEl(String value) {
              return "#{" + value + "}";
         }

Maybe you are looking for