Managed Bean "Name" Access  with in the Managed Bean

Hi,
I have faces-config.xml in which I have registered a managed bean
and I have a base class for all the managed bean.
The JSP's invoke the action/method defined in the base bean and I want to remove the managed bean from session upon a particular event.
To remove the managed bean from session, as far as I know - we need to know the managed-bean-name in the faces config.
I wanted to know if there is any way to get the name of the managed bean in the faces-config.xml at run time?.
Thanks,

Thanks for your recommendations. The issue that I get stuck on is how to call this method that retrives employee data. When I had the code in the constructor, it executed when I accessed the view.jsp page. Then I populated the fields from the Employee class fields. But once I create non-constructor method, how do I invoke it from my JSF page.

Similar Messages

  • Central Management Store being accessed is not the active store

    We are experiencing issues with our Lync 2013 services after hardening our SQL backend. Even though we have created aliases to the backend database instances and FrontEnd servers is able to access the databases, we are having this error when performing tasks
    like enable-csuser or new-clientpolicy from powershell or Lync control panel:
    ###50023:XdsPublishItems: The central management store being accessed is not the active store. No data can be read or any changes can be made to this store.
    Any suggestions or ideas?

    Here some guidance that must be followed for Lync Servers
    http://blogs.technet.com/b/nexthop/archive/2011/04/12/using-lync-server-2010-with-a-custom-sql-server-network-configuration.aspx
    http://technet.microsoft.com/en-us/library/gg195795(v=ocs.14).aspx
    Have this been followed ?
    Please remember, if you see a post that helped you please click ;Vote As Helpful" and if it answered your question please click "Mark As Answer" Regards Edwin Anthony Joseph

  • Problem with mapping the Entity beans onto database tables

    Hi,
    I got a problem with mapping the Entity beans onto database tables. Here are what I did:
    First Step:
    asant capture-schema
    Second Step:
    capture-schema -driver com.pointbase.jdbc.jdbcUniversalDriver -dburl jdbc:pointbase:server://localhost/sun-appserv-samples -username pbPublic -password pbpublic -table APPLICANT -table APPLICANTSKILL -table CUSTOMER -table LOCATION -table job -table JOBSKILL -table SKILL -out build/agency.dbschema
    The first step was fine. But, in the second step, I got the error message as follow:
    using dburl:jdbc:pointbase:server://localhost/sun-appserv-samples
    using username:pbPublic
    using password:pbpublic
    using driver:com.pointbase.jdbc.jdbcUniversalDriver
    using schemaname:null
    using output file:build/agency.dbschema
    JDO71100: Failed to find a class. Verify that the class is available on your CLASSPATH
    java.lang.ClassNotFoundException: com.pointbase.jdbc.jdbcUniversalDriver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:141)
    at com.sun.forte4j.modules.dbmodel.jdbcimpl.ConnectionProvider.<init>(Co
    nnectionProvider.java:38)
    at com.sun.jdo.api.persistence.mapping.ejb.CaptureSchema.main(CaptureSch
    ema.java:130)
    at com.sun.jdo.spi.persistence.support.ejb.util.CaptureSchemaWrapper.mai
    n(CaptureSchemaWrapper.java:29)
    Thanks for your help!

    You need to add the pbclient.jar or some similar name like that, in the CalssPath.

  • How to handle and Manage Multi DataBase access with LCDS in runtime ?

    Hello there
    I got several customer working with the same application and I wonder how,  with LCDS,  to manage  in a runtime a multi dataBase access; without creating a configuration "mxl" file in
    the folder catalina for each database.
    Indeed, each customer have their own dataBase, and so far, I did not find out how to avoid creating a config xml file in catalina for every single database; which force me to create as well for each customer a  folder application, since the name of the config file in catalina require a folder application to be ran under tomcat....
    Thus, my question is :
    Is there anyway to create only one configuration mxl file in catalina (in the server side) and then from the client side (application) let the user select its environment (meaning its database) to run the application.... this technic can be also used for multi database environment such as : Dev / Test / Prod   environment (or database) where the same application can access to.
    Please if any one have an idea or already delt with; just let me know, because I'm entering in a bootle neck and the situation is getting serioulsy critical....
    Regards

    Hello Ulrich,
    with compact and repair I mean the MSAccess function "Compact and Repair".
    Please follow the link below for more details:
    http://office.microsoft.com/en-us/access-help/compact-and-repair-an-access-file-HP005187449.aspx
    Normally you can execute this function directly in Access or with the Windows ODBC Data Sources Administrator  => "Control Panel" => "Administrative Tools" => "Data Sources (ODBC)"...
     I want to execute this function via cvi code and not by hand ;-).
    Thank you for your support.
    Frank

  • Issue with retrieveing the Manager of a System User in a Custom workflow - CRM 2013

    Issues with custom workflow activity in CRM 2013 On-prem
    I'm trying to pass the Manager of the System
    here is the code that I'm running, it gets to setting the MANAGER and stops
    I put the ran the FetchXML seperatly and it does return a value so I know what bit works
    public class CaseAccountManagerManagersLookup : CodeActivity
    // Inputs
    [Input("Enter Case")]
    [ReferenceTarget("incident")]
    public InArgument<EntityReference> CA { get; set; }
    // Outputs
    [Output("Manager Output")]
    [ReferenceTarget("systemuser")]
    public OutArgument<EntityReference> AMOUT { get; set; }
    protected override void Execute(CodeActivityContext executionContext)
    // Context
    IWorkflowContext context = executionContext.GetExtension<IWorkflowContext>();
    IOrganizationServiceFactory serviceFactory = executionContext.GetExtension<IOrganizationServiceFactory>();
    IOrganizationService service = serviceFactory.CreateOrganizationService(context.UserId);
    //Create the tracing service
    ITracingService tracingService = executionContext.GetExtension<ITracingService>();
    // get the account and renewals manager ID's
    var CASE = CA.Get<EntityReference>(executionContext);
    tracingService.Trace("Case ID = " + CASE.Id);
    try
    // FETCH
    string fetchXml = string.Format(@"
    <fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>
    <entity name='incident'>
    <attribute name='title' />
    <attribute name='incidentid' />
    <order attribute='title' descending='false' />
    <filter type='and'>
    <condition attribute='incidentid' operator='eq' value='{0}' />
    </filter>
    <link-entity name='contact' from='contactid' to='customerid' alias='ak'>
    <link-entity name='account' from='accountid' to='parentcustomerid' alias='al'>
    <link-entity name='systemuser' from='systemuserid' to='bc_dssalesperson' alias='am'>
    <attribute name='parentsystemuserid' />
    </link-entity>
    </link-entity>
    </link-entity>
    </entity>
    </fetch>", CASE.Id);
    EntityCollection case_results = service.RetrieveMultiple(new FetchExpression(fetchXml));
    //tracingService.Trace("fetch has run");
    if (case_results.Entities.Count != 0)
    foreach (var a in case_results.Entities)
    //if (a.Attributes.Contains("ai_parentsystemuserid"))
    tracingService.Trace("set manager id next");
    var MANAGERID = (EntityReference)a.Attributes["parentsystemuserid"];
    tracingService.Trace("manager id set");
    AMOUT.Set(executionContext, MANAGERID);
    throw new InvalidOperationException("Want to see trace");
    tracingService.Trace("end ");
    catch (Exception e)
    throw new InvalidPluginExecutionException("Plugin - CaseAccountManagerManagerLookup - " + e.Message);
    finally
    throw new InvalidOperationException("Want to see trace");
    Pete

    Hello,
    Try to use am.parentsystemuserid instead of just parentsystemuserid.
    Dynamics CRM MVP/ Technical Evangelist at
    SlickData LLC
    My blog

  • Why can't I access my apps. the manager isn't working??

    My Manager, and cloud apps will not open., I get the same message theres an error  on anything that is cc. I have been told this is not an error message. I don't care what it is please can anyone tell me how to fix it as I cant use illustrater or photoshop and no doult anything to do with cc.
    Error
    There was an error with this action. Try again later.
    b6808cc6-135b-4f7f-933f-4a1274bac3b9

    Hi Ashish, I don't know what i did but I was reading through some of the old post and this one stood out so I clicked on it and got my cloud back and I think my apps are updating, silly how a little thing like that can be so exciting. hopefully it has corrected itself.
    , 2012
    1.Romsinha, 
    Aug 26, 2013 12:59 PM   in reply to Monsieur_G
    Report
    Hi Monsieur_G,
    The new Creative Cloud Desktop App looks like a nice and integrated replacement for both the Adobe Application Manager and the Creative Cloud Connection. If you are an existing user of Creative Cloud and are already using the legacy Creative Cloud Connection then you might want to update it using the Adobe Application Manager. To do this, Open the Adobe Application Manager and look for new updates, it should find the new Creative Cloud Desktop App and download it, and install it for you. The older AAM will automatically update itself without any need to uninstall it manually.
    Regards,
    Romit Sinha
    I posted this for anyone else that is having the same problem. This may be the trick after deleting the opm.db file. I found the install box the same as the manager pict. and click on that when it had uploaded i just closed it and it worked. fingers crossed. Thank you again.

  • 'oracle.adf.model.bean.DCDataRow Accessing property using the EL expression

    In my managed bean if I do like this. Its works fine
    public getItems()
    DCBindingContainer bindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding dcIteratorBindings =
    bindings.findIteratorBinding("orderParentWBSListIterator");
    // Get all the rows of a iterator
    Row[] rows = dcIteratorBindings.getAllRowsInRange();
    for (Row row : rows) {
    String csoName= (String)row.getAttribute("CSOName");
    _logger.info(csoName);
    return null;
    -- but if I try like this in my page
    *<af:forEach items="#{bindings.orderParentWBSListIterator.allRowsInRange}" var="wbsItems">*
    *<af:selectItem value="#{wbsItems.CSOName}"*
    *label="#{wbsItems.CSOName}" id="sle1"/>*
    *</af:forEach>*
    Its throw an error, I dont see a reason to get the error. can some one point me the mistake I am doing.,
    <Mar 9, 2013 6:55:05 AM EST> <Warning> <oracle.adfinternal.view.faces.lifecycle.LifecycleImpl> <BEA-000000> <ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
    javax.el.PropertyNotFoundException: The class 'oracle.adf.model.bean.DCDataRow' does not have the property 'csoName'.
    at javax.el.BeanELResolver.getBeanProperty(BeanELResolver.java:547)
    at javax.el.BeanELResolver.getValue(BeanELResolver.java:249)
    at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
    at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
    at com.sun.el.parser.AstValue.getValue(Unknown Source)
    at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
    at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java
    Thanks
    VIpin

    Hi Frank
    Thanks for the help, this Iterator is coming from the BPM, so rows and attributes should be there, I am able to fetch the rows and attribute in my bean as I updated.
    Now if the things updated is wrong then how can I iterate through the all rows in my jspx page, using a foreach.
    Thanks
    Vipin

  • HP Application LifeCycle Management - URL for use with another Project Management Tool

    I'm trying to find a way to get a ALM Requirement URL that will work with other applications.  The URL from the COPY URL option (when right-clicking on the requirement) works for e-mails but I can't seem to get it to work for another project management application (Daptiv).  We would like to insert the QC Requirement link to another application where the user can access the requirements directly when clicking on the QC hyperlink.
    We have HP Application Lifecycle Management Software Version 11.00 Enterprise Edition.
    Any help is greatly appreciated.
    Thanks.

    As Abhishek mentioned we dont need a calc manger or EPMA to migrate classic planning applications. You just need to log into shared services, expand file system and take a file system export, paste the export to the destination environment, now use it as a source and perform an import in the shared services of destination server. It worth having a look at:
    http://blogs.oracle.com/HyperionPlanning/entry/lifecycle_management_from_scratch
    Cheers...!!

  • How SAP Risk Management may be interfaced with SAP Strategy Management?

    Hello,
    Any document, any customer experience around integration between SAP BusinessObjects Strategy Management and SAP BusinessObjects Risk Management would be very appreciated.
    Best regards
    Jean-Luc

    Hi Renaud,
    where you able to create your webservice and use it from GRC RM?
    If yes, I would be interested in - 'How do i connect SAP RM 3.0 with that web service'
    Regards
    Holger

  • How do I set the CoreTable sort column in the managed bean?

    I have a CoreTable with two columns, first name and company, from the managed bean in a session scope, how do I set the company column to be the default/selected sort order?
    Or is that done by binding the af:column to a CoreColumn object in the managed bean, which method would I use?
    <af:column sortProperty="company" sortable="true">
    <f:facet name="header">
    <af:outputText value="#{common.labelCompany}"/>
    </f:facet>
    <af:outputText value="#{row.company}"/>
    </af:column>
    Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Yes, I know, "sortable", see, I even used it in my example. I don't want to disable default sorting.
    What I'm asking is how to have more than one sortProperty. When the user clicks the column heading, I want to sort by "myFirstProperty" AND "mySecondProperty". The sortProperty only seems to allow one sort property.
    One possibility seems to be to programatically add items to the List of SortCriterion objects as in your example, but where would I put this code so that it is executed when the user clicks the column heading, but before the table is sorted.

  • Dynamic managed bean names

    Hi!!
    in my application i make code that must be present in every JSP pages. For that, i put it into a separated JSP page who is included in the other JSP (using <jsp:include> tag).
    My problem is that each JSP who include the repetitive JSP, uses a different managed bean name.
    For example, the page who is included is:
    <f:subview id="navigation">
          <h:inputText value="#{name-of-bean.navigation}" styleClass="inputNav" readonly="true" />
    </f:subview>When this code is included into the pages, each page must use a different "name-of-bean".
    I try with:
    <jsp:include page="navigation.jsp">
         <jsp:param name="beanName" value="AlfaBean" />
    </jsp:include>and in the child JSP:
    <h:inputText value="#{requestScope[param.beanName].navigation}"
    styleClass="inputNav" readonly="true" />but dont work.
    I try with:
    <h:inputText value="#{resources[param.beanName].navigation}"
    styleClass="inputNav" readonly="true" />but dont work.
    Some body can help me??
    PD: Sorry my bad english!!

    JSF creates a managed bean at the time when firstly it evaluates the
    corresponding value binding expression, such as "#{AlfaBean.someProp}".
    Your JSP files include no expression including the name of the bean.
    Although it may be a very tricky code, here is a sample used for you problem:<h:outputText value="" rendered="#{AlfaBean.someProp != null}"/>
    <jsp:include page="navigation.jsp">
         <jsp:param name="beanName" value="AlfaBean" />
    </jsp:include>

  • Adding Set of Session Beans generates client with wrong session bean names

    Hi,
    I am trying to import a set of session beans deployed on Sun Java Sever 8.2 using Netbeans 6.0. on windows XP.
    The problem is that the imported set generated by the IDE has wrong session bean names and out of 8 session beans in the client jar only 6 are shown (and different 6 every time). Also the remote methods of one bean are associated with another bean and every time its a different set of bean clients generated.
    I am really perplexed with this behavior. Any help on this issue will be highly appreciated.

    An RMI/IIOP parameter type must meet one of thefollowing criteria:
    It must be a primitive type, or it must implementeither java.rmi.Remote or java.io.Serializable,
    or it must be an interface for which the runtime typesatisfies the previous criteria,
    or it must be an array containing elements thatsatisfy the previous criteria.This tells you exactly what you need to do.

  • Can I change the name associated with my Apple magic Mouse?

    How do I change the name associated with or the name of my Apple Magic Mouse?

    setting then mouse then set up blue tooth mouse then control click on the mouse name

  • Trying to start up the manager process in a fresh installation

    Version 11.2.1.0.3
    Platform : RHEL 5.4
    To configure manager process in a machine (which is going to be a target server ), I downloaded GG installer from edelivery.
    Unzipped the installable in the desired location. Then I created a basic parameter file for the manager and tried to start up the manager process. But the manager process is not coming up.
    This is what I've done till now after the installation of GG (By installation , I mean Unzipping and Untarring)
    1. set the env variables for the database
    2. Created the parameter file for manager as shown below.
    $ ./ggsci
    Oracle GoldenGate Command Interpreter for Oracle
    Version 11.2.1.0.3 14400833 OGGCORE_11.2.1.0.3_PLATFORMS_120823.1258_FBO
    Linux, x64, 64bit (optimized), Oracle 11g on Aug 23 2012 20:20:21
    Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
    GGSCI (stryker179) 1> info mgr
    Manager is DOWN!
    GGSCI (stryker179) 4> view param mgr
    port 7809
    purgeoldextracts /u04/ggData/dirdat/MS/*, usecheckpoints
    dynamicportlist 7840-7849
    GGSCI (stryker179) 2> start mgr
    Manager started.
    GGSCI (stryker179) 3> info mgr
    Manager is DOWN!I haven't created any gguser at DB level. But that is not a pre-requisite for manager process. Right ?
    -- Regarding the logging of GG's errors
    Wish I could check some logs to see what is causing this issue ?
    Where are the logs (.rpt files) stored ? I believe we have to manually create a directory called dirrpt.
    For , the fresh installation, the dirrpt directory was not created. Only the following directories were found after the installation (Untar)
    $ ls -alrdFt * | grep /
    drwxr-x--- 7 oracle oinstall      4096 Aug 24 07:06 UserExitExamples/
    drwxr-x--- 2 oracle oinstall      4096 Aug 24 07:33 cfg/
    drwxr-x--- 2 oracle oinstall      4096 Aug 24 07:33 dirprm/
    drwxr-x--- 2 oracle oinstall      4096 Aug 24 07:33 dirjar/

    Hi ,
    1. Did you execute CREATE SUBDIRS in GGSCI prompt?
    It will create all the required folders like dirprm,dirrpt,dirdef,dirsql,dirdat...etc
    Db level user is not required for starting the manager process, But you have to create mgr parameter file under dirprm folder , for that you have to execute ,
    GGSCI > EDIT PARAMS MGR
    in that file mention the PORT number , usually it will be 7809 ex, PORT 7809,
    then start the mgr in GGSCI
    GGSCI > START MGR
    again if you are getting MANAGER DOWN message then check the details in ggserr.log file which is available in GG home directory where you have unzipped the binaries .
    Hopefully this will help you
    Annamalai.

  • 12c agent install fails with error - The plug-in configuration for the oracle.sysman.oh monitoring plug-in may have failed

    Hi,
    I am trying to install 12c agent on windows 7 64 bit server by following m.note   .
    It is failing with Agent Configuration failed, please see below error message.
    INFO: length of temp is2
    INFO: Return value:C:\/Oracle/12.1.0.3.0_AgentCore_233/core
    INFO: ** Agent Port Check completed successfully.**
    INFO: ERROR: The Management Agent configuration failed. The plug-in configuration for the oracle.sysman.oh monitoring plug-in may have failed, or this plug-in may not be present in the Management Agent software. Ensure that the Management Agent software has the oracle.sysman.oh monitoring plug-in, if not then retry the operation. If the agent software has the oracle.sysman.oh monitoring plug-in, view the plug-in deployment log C:\Oracle\12.1.0.3.0_AgentCore_233\core\install\logs to check if the plug-in configuration for the oracle.sysman.oh monitoring plug-in failed.
    INFO:
    INFO: perform - mode finished for action: configure
    INFO:
    INFO: You can see the log file: C:\Oracle\12.1.0.3.0_AgentCore_233\core\12.1.0.3.0\cfgtoollogs\oui\configActions2014-10-03_08-48-15-AM.log
    INFO:
    INFO: C:\Oracle\12.1.0.3.0_AgentCore_233>exit /b 3
    INFO: Plugin homes:
    INFO: Plugin homes:
    INFO: C:\Oracle\12.1.0.3.0_AgentCore_233\core\12.1.0.3.0\oui\bin\runConfig.bat ORACLE_HOME=C:\Oracle\12.1.0.3.0_AgentCore_233\core\12.1.0.3.0 RESPONSE_FILE=C:\Oracle\12.1.0.3.0_AgentCore_233\core\12.1.0.3.0\agent.rsp ACTION=configure MODE=perform COMPONENT_XML={oracle.sysman.top.agent.11_1_0_1_0.xml} RERUN=true completed with status=3
    SEVERE: ERROR: Agent Configuration Failed
    Thanks,

    Looks like , J2EE is having a problem connecting to the DB.Pls. chk. the following
    -If you have configured the loop-back adapter , if installing on a local system & updated the /etc/host file with your ip address and host name.
    or if the system is part of some n/w group and has ip address assigned ?
    -Jdk 1.4 version is installed in your system
    -Enough free Disk space available in the system
    -How much RAM your system has which windows version you are using  ?
    -Is the DB is coming up properly ? its error related to this. check the logs.
    -If the ports used by sap install / run used by other services running on the system ? & user have admin. privileges on the system .
    Pls. update with your findings on above same , for the step next ...
    Thanks ,
    Uppal

Maybe you are looking for

  • ORA-07445 and XDB.DBMS_XMLDOM

    Hi, I am receiving the following messages in the alert log: Errors in file d:\oracle\ora10g\dumps\udump\prod_ora_5116.trc: ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [0x3681AB1] [] [] [] [] ORA-06510: PL/SQL: unhandled user-define

  • Is it possible to convert recording to lower resolution ?

    Hi folks, I am using Adobe Captivate, 3 and is it possible to reduce the recordings to lower resolution with out loosing the content ? I have recording once in higher resolution and this has created an issue like the Play back controls are not visibl

  • Patch information

    Dear Experts, I have one confusion over PSU patches i.e. 1. We installed 10.2.0.1 (Base version), then I applied 10.2.0.5(Patch Set 4) patch. Is it called PSU patch ? 2. We apply 10.2.0.5.6 PSU on 10.2.0.5.0, is this also PSU patch ? My question is t

  • How to set query result to emai content?

    Dears, Since user want to get the email with content like a grid format, just like a sql query result with some columns and rows. Is there any simply way to set the sql query result to the email content? Thanks!

  • Why won't my MacBook upgrade to OS X Mavericks?

    I just purchased a MacBook pro that is about 4 years old and is running Mac OS X Server 10.6.8, I have read that my Mac should be compatible for an upgrade to Mavericks but went to the app store to purchase it and it didn't work. It says that my proc