Custom Application's Model Bundle in Webcenter Spaces

I created a custom ADF application (MVC) that has a portlet entry. The application has a model, connecting to an oracle database, and a view controller, showing the model's view objects in JSF fragments. I created two ".properties" files, ModelBundle_en and ModelBundle_ar, that contain the same keys as the default ModelBundle created when I used the attributes control hints.
The application works prefectly fine when deployed on the IntegeratedWebLogicServer that comes with JDeveloper 11.1.1.2.0. But when I deploy it on Webcenter and show it on spaces, the application initially gets the right locale and displays the labels correcty, then when i navigate between the pages, it displays the labels based on the browser's locale and not spaces' locale. However, if I refresh the page, it displays the labels correctly; i.e. from spaces' locale.
The only solution I found so far, was adding the model bundle in faces-config.xml, then using the EL Expression, #{modelBundle['Key']}, instead of using the attributes label, #{attribute.hints.label}. I would prefer to use the arrtibutes label, so that when i drag an drop a component, I don't have to manually refer to the bundle in the component's value.
Does anyone have a solution please?

My taskflow is actually using a datasource that i have configuered for webcenter spaces also but when i look at the logs, it tells me the following:
javax.naming.NameNotFoundException: While trying to look up comp/env/jdbc/workshopDS in /app/webapp/webcenter/312050545.; remaining name 'comp/env/jdbc/workshopDS.
Any idea how can this be the error even after having thee datasource configuered?
Regards
Ajay

Similar Messages

  • How to display applications in tabs on a single page in webcenter spaces

    Hi,
    I am working on a project in Webcenter spaces where we have a welcome page with few hyperlinks on a bar in the top section .Each hyperlink is associated with an application url. The requirement is when a user clicks on any link, it should populate a tab in the page displaying the application.
    For ex, if we have the links on the top as "google", "yahoo", "bing", etc, clicking on each one of them, should open tabs below displaying the respective home page. It should not open the application in a new browser but a tab in the same page. Also, the tabs are just page fragments (.jsff). As user clicks more links, more tabs are opened ( if that application is already not open).
    In short, we are replacing opening of a new browser to opening a tab in the same browser ( when clicking an application link).
    The issue is - how do I get the content of a website (or an application) into a tab in webcenter spaces dynamically. We tried using Pagelet producer but they need to be predefined. Also, each application url need to contain the session cookie, so user need not login to the application again.
    Any alternate strategy to acheive the same result is also welcome.

    Not 100%. Although, I did find out that I can use an Inline Frame layout component which can take a url as one of its property. Thus, I can dynamically pass this property and make the layout render the application. Beyond this, the control will be transferred to application and I hope it will work. We are still in the process of playing with the components.

  • Coherence POF java.io.NotSerializableException on standalone Webcenter spaces server.

    Hi,
    I’m using coherence(V3.6.1) with POF serialization in ADF web application. I have setup local coherence server node and Jdev integrated webcenter server in my local system(windows 7 OS), the application works perfectly when I run in local Jdeveloper integrated server. But when I deploy the application on dev environment ( standalone webcenter spaces server v11G on Unix OS) we are getting exception “(Wrapped) java.io.NotSerializableException: com.enbridge.co.ux.coherence.pojos.CommodityPojo”
    It seems that POF is not configured properly on the standalone webcenter (spaces) server, please help finding out the solution for this issue. On standalone webcenter spaces server is there any extra configurations we have to do?
    The error logs and configuration filess I have used:
    1. Exception logs:
    <14-Jun-2013 3:43:04 o'clock AM MDT> <Error> <HTTP> <BEA-101216> <Servlet: "MMFBootStrapServlet" failed to preload on startup in Web application: "MMFUIPortal-Portal-context-root".
    (Wrapped) java.io.NotSerializableException: com.enbridge.co.ux.coherence.pojos.CommodityPojo
                    at com.tangosol.util.ExternalizableHelper.toBinary(ExternalizableHelper.java:215)
                    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ConverterValueToBinary.convert(PartitionedCache.CDB:3)
                    at com.tangosol.util.ConverterCollections$ConverterMap.put(ConverterCollections.java:1578)
                    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ViewMap.put(PartitionedCache.CDB:1)
                    at com.tangosol.coherence.component.util.SafeNamedCache.put(SafeNamedCache.CDB:1)
                    Truncated. see log file for complete stacktrace
    Caused By: java.io.NotSerializableException: com.enbridge.co.ux.coherence.pojos.CommodityPojo
                    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
                    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
                    at java.util.ArrayList.writeObject(ArrayList.java:570)
                    at sun.reflect.GeneratedMethodAccessor983.invoke(Unknown Source)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                    Truncated. see log file for complete stacktrace
    2.     2.  tangosol-coherence-override.xml:
    <?xml version='1.0'?>
    <coherence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns="http://xmlns.oracle.com/coherence/coherence-operational-config"
               xsi:schemaLocation="http://xmlns.oracle.com/coherence/ coherence-operational-config coherence-operational-config.xsd">
      <cluster-config>
        <member-identity>
          <cluster-name>mmf_Coh_Cluster</cluster-name>
        </member-identity>
        <multicast-listener>
          <address>224.3.6.0</address>
          <port>60001</port>
          <time-to-live>0</time-to-live>
        </multicast-listener>
        <serializers>
          <serializer>
            <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
            <init-params>
              <init-param>
                <param-type>java.lang.String</param-type>
                <param-value system-property="pof.config">mmfui-pof-config.xml</param-value>
               </init-param>
            </init-params>
          </serializer>
        </serializers>
      </cluster-config>
      <configurable-cache-fact0ry-config>
        <init-params>
          <init-param>
            <param-type>java.lang.String</param-type>
            <param-value system-property="tangosol.coherence.cacheconfig">mmfui-cache-config.xml</param-value>
          </init-param>
        </init-params>
      </configurable-cache-fact0ry-config>
    </coherence>
    3. mmfui-cache-config.xml
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
    <defaults>
        <serializer>pof</serializer>
    </defaults>
      <caching-scheme-mapping>
        <cache-mapping>
          <cache-name>mmfcache</cache-name>
          <scheme-name>ExamplesPartitionedPofScheme</scheme-name>
        </cache-mapping>
      </caching-scheme-mapping>
      <caching-schemes>
        <distributed-scheme>
          <scheme-name>ExamplesPartitionedPofScheme</scheme-name>
          <service-name>PartitionedPofCache</service-name>
          <serializer>
          <instance>
            <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
            <init-params>
             <init-param>
                <param-type>String</param-type>
                <param-value system-property="pof.config">mmfui-pof-config.xml</param-value>
              </init-param>       
            </init-params>
          </instance>
          </serializer>
          <backing-map-scheme>
            <local-scheme>
              <!-- each node will be limited to 250MB -->
              <high-units>250M</high-units>
              <unit-calculator>binary</unit-calculator>
            </local-scheme>
          </backing-map-scheme>
          <autostart>true</autostart>
        </distributed-scheme>
      </caching-schemes>
    </cache-config>
    4. mmfui-pof-config.xml
    <?xml version="1.0"?>
    <!DOCTYPE pof-config SYSTEM "pof-config.dtd">
    <pof-config>
      <user-type-list>
        <!-- coherence POF user types -->
        <include>coherence-pof-config.xml</include>
        <!-- com.tangosol.examples package -->
        <user-type>
          <type-id>1001</type-id>
          <class-name>com.enbridge.co.ux.coherence.pojos.CommodityPojo</class-name>
        </user-type>
      </user-type-list>
    </pof-config>
    5. ~-cache-server.sh file on coherence distribution
    COHERENCE_HOME=/u01/app/oracle/product/fmw11g/coherence_3.6
    JAVA_HOME=/usr/java/jdk1.6.0_24
    PATH=$PATH:$JAVA_HOME/bin
    CONFIG_HOME=/u01/app/oracle/product/fmw11g/coherence_3.6/mmfconfig
    # specify the JVM heap size
    MEMORY=512m
    if [ ! -f ${COHERENCE_HOME}/bin/cache-server.sh ]; then
      echo "coherence.sh: must be run from the Coherence installation directory."
      exit
    fi
    if [ -f $JAVA_HOME/bin/java ]; then
      JAVAEXEC=$JAVA_HOME/bin/java
    else
      JAVAEXEC=java
    Fi
    COH_OPTS=$COH_OPTS  -Dtangosol.coherence.distributed.localstorage=true -Dtangosol.coherence.cluster=mmf_Coh_Cluster -Dtangosol.coherence.clusterport=60001 -Dtangosol.coherence.clusteraddress=224.3.6.0 -Dtangosol.coherence.cacheconfig=~/mmfui-cache-config.xml
    JAVA_OPTS="-Xms$MEMORY -Xmx$MEMORY -Dtangosol.pof.enabled=true -Dtangosol.pof.config=~/mmfui-pof-config.xml"
    $JAVAEXEC $COH_OPTS -server -showversion $JAVA_OPTS -cp "$COHERENCE_VAR:$CONFIG_HOME:$COHERENCE_HOME/lib/coherence.jar:$COHERENCE_HOME/lib/coherence-common-1.5.0.jar:pojoClasses.jar" com.tangosol.net.DefaultCacheServer $1
    6.COHERENCE_PROPERTIES variable added in setDomainEnv.sh file:
    COHERENCE_PROPERTIES=-Dtangosol.coherence.distributed.localstorage=false -Dtangosol.coherence.clusteraddress=224.3.6.0 -Dtangosol.coherence.clusterport=60001 -Dtangosol.coherence.cluster=mmf_Coh_Cluster -Dtangosol.coherence.override=~/tangosol-coherence-override.xml  -Dtangosol.coherence.cacheconfig=~/mmfui-cache-config.xml -Dpof.config=~/ mmfui-pof-config.xml
    JAVA_PROPERTIES=-Dplatform.home=${WL_HOME} -Dwls.home=${WLS_HOME} -Dweblogic.home=${WLS_HOME} ${COHERENCE_PROPERTIES}

    does the below class implement java.io.Serializable
    com.enbridge.co.ux.coherence.pojos.CommodityPojo
    if not implement serializable

  • Discussion and Announcement Services in webcenter Spaces + Active Directory

    I had successfully customized Discussion and announcement Services in webcenter spaces using the default authenticator user WEBLOGIC. And it was working fine.
    I was able to post and configure announcement and also able to create forums and threads in webcenter spaces.
    Now i have Successfully integrated my ACTIVE DIRECTORY to WLS. And now i want to configure discussion and announcement using active directory users. i am facing problem in it. I am able to login to Webcenter spaces as well as 8890/owc_discussions and also in 8890/owc_discussions/admin (jive forum admin) using AD users. i have also given admin roles to ACTIVE directory users in 8890/owc_discussions/admin under Global Settings -> Admins & Moderators .
    When I tried to configure Discussion and announcement Services in webcenter spaces it gives me errors like.....
    (1) The service did not get provisioned.
    (2) failure to authenticate the user *******, due to: Unable to connect to discussion server.*
    Do i need to make changes in keystore.properties & jive_crypto.jar ? Do i need to make a new connection in EM inside WebCenter > Service Configuration.
    Please help.
    Thanks

    Have you set up ws-security between your webcenter and discussion server? If not you need to set it up to get rid of the authentication error.
    Are you setting up a single-sign on between all webcenter components using OAM? If so there is an additional step to add/update owc_discussions.sso.mode property under discussion admin.

  • Authentification from tow LDAP in webcenter spaces

    My customer need to open authentification in webcenter spaces for all his employees and for his partners which are saved on tow different LDAP directory.
    How can i do to allow authentification from this tow LDAP directory?
    Regards.
    CMN

    In Weblogic Console,
    Go to Security Realm - myrealm - Providers, select New
    Type your new Realm name, for example MSAD,select type ActivityDirectoryAuthentication and OK.
    In myrealm providers you'll see your new provider, click in reoder and put the new provider at first position. Do not restart server yet.
    Select your new provider, in Commom tab select Control Flag as SUFFICIENT.
    Go to Provider Specifc Tab, this is the configurantion tab, put your MSAD configuration.
    The principal field is the user that bind in your MSAD to search your MSAD users.
    User Base DN, is base that contains users.
    User From Name Filter: (&(sAMAccoauntName=%u)(objectclass=user))
    User Name Attribute: sAMAccountName.
    Apply all configurations, go to myrealm providers, select DefaultAuthentication and change Control Flag to SUFFICIENT.
    Restart you Admin and all your managed servers.
    Hope that help you.

  • How to add Content workflow to Webcenter spaces/ custom application

    I would like to add Content work-flows ( Add - review - publish of content) to Webcenter spaces.so that users of Spaces/ application can work with add- publish-review cycle. I want to know if any thing like portlet or something available that can be added.
    I have a webcenter 11g associated with OCS 10.1.3. Does the suites Content Portlet Suite/Content Integration Suite contain these workflows? Please help me in this regard thanks.
    Thanks,
    indra.

    Yes. it is the same way. once the Portletsuite is integrated you can create a workflow in Oracle conent server using Workflow Manager Applet. Extenal Identity store needs to be configured.
    But I have some problem with webcenter spaces users on external Ldap server. In contribution checkout step ,I am not getting the checkout link. i am getting exception like "not suffient privilage".
    But the workflow seems to work fine in idc application.
    Unable to get schema fields. User 'auser' does not have sufficient privileges
    * !csUserEventMessage,auser,CIS!$!csSchErrorGettingFields!csUserInsufficientAccess,auser
    intradoc.common.ServiceException: !csSchErrorGettingFields!csUserInsufficientAccess,auser
         at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor*
    I created Users in webspaces using Own Registration feature. User gets created on Ldap server. And I am able to log on to the content server. If anybody happend to know more on this ,please reply.
    Edited by: indra_owc on Dec 21, 2009 7:03 PM

  • Deploy a custom taskflow to WebCenter Spaces

    Hi All,
    Weblogic Server: 10.3.5
    JDeveloper: 11.1.1.6
    OS: Windows 7
    I'm current trying to upload a custom ADF taskflow that i've created in JDeveloper to Oracle WebCenter Spaces. I have followed the Oracle Support Note Doc ID 1362187.1 (How to Create a Task Flow in JDeveloper and Deploy to WebCenter Spaces), it was extremley helpful but having issues extending Spaces, which includes my customer taskflow which is deployed as a library.
    Oracle WebCenter Spaces is up and running
    1) Initially that the Ant Scripts supplied does not complete successfully in particular the "Clean-Stage" and "Deployed-Shared-Library".
         Clean-Stage is now at a stage where it failed with the following error message:
    BUILD FAILED*
    C:\jdev\Sandpit11.1.1.6\mywork\DesignWebCenterSpaces\WebCenterSpacesExtensionLibrary\internal-targets.xml:77: if doesn't support the nested "isgreaterthan" element.*
    I believe it has something to do with the version of ant-contrib but can't quite get it to work. Other various blogs and posts talk about AntContrib requires version 1.5 or above, I believe jdeveloper is using 1.7.1. I'm also currently using ant-contrib-1.0b3. I've also tried using ant-contrib-1.0b2 but that doesn't work either.. So how is this Ant Script meant to work if the error message is that the IF statement doesn't support nested "isgreaterthan"?
    2) deploy-shared-lib Ant Script
    This is was major headache and still doesn't work properly. I'm current at the error message below
    No stack trace available.*
    *+[exec] Current Status of your Deployment:+*
    *+[exec] Deployment command type: deploy+*
    *+[exec] Deployment State : failed+*
    *+[exec] Deployment Message : weblogic.deploy.api.spi.exceptions.ServerConnectionException: [J2EE Deployment SPI:260041]Unable to upload 'C:\jdev\Sandpit11.1.1.6\mywork\DesignWebCenterSpaces\WebCenterSpacesExtensionLibrary\exploded\extend.spaces.webapp.war' to 't3://wcaptst01:7001'+*
    3) I kinda gave up using the Ant Scripts cleaning deploying autmatically, so i decided to create a deployment profile and deploy it the usual way. I can deploy the new shared library to the Weblogic server ok and it can see it as per Oracle Support Note DOC ID 1362187.1 but the issue arises when i try to restart the Spaces Managed Server in the Enterprize Manager... the container starts up the Spaces application will not load causing an error:
    +Caused By: weblogic.management.DeploymentException: Error: Unresolved Webapp Library references for "ServletContext@424697505[app:webcenter module:/wcsdocs path:/wcsdocs spec-version:2.5 version:11.1.1.4.0]", defined in weblogic.xml [Extension-Name: MotoringBookServiceTaskFlowLib, exact-match: false]+*
    When i log into the Weblogic Server Console, i can see the *MotoringBookServiceTaskFlowLib* as a "Type" of Library..
    Any assitance with any of the points above would be most appreciated!
    Edited by: Eddie Phan on Jan 4, 2013 3:20 PM

    Have you created the datasource on your weblogic server? The error means that you do not have created the datasource on your server.
    based upon the name, it is the default JDev creates. Best what you can do is create a jndi name yourself and then edit the datacontrol so it will use the jndi name.
    In order to create a jndi in weblogic, go to your console:
    http://localhost:7001/console (this is for my local machine)
    From the left menu you can find the data source in "Services" => JDBC => Data sources
    Create a new one and give it a JNDI name for example "jdbc/TSTDS"
    Make sure you also set the target of the data source. If you aren't using the latest version you have to edit your datasource after creation and select the target tab and select which server you want to use the datasource on. If you are using the latest version you will be asked to select the target.
    You than have to edit the configuration of your datacontrols so they are using that source.
    Make sure you select "JDBC DataSource" and not "JDBC URL". The datasource name must be the one you entered in the JNDI field. Exactly the same, it is case sensitive.
    Hope this helps.

  • WebCenter Spaces: Customise Resource Bundles?

    Does anyone know if and how the webcenter spaces resource bundles may be customised or overridden?
    I need to rename the "My Group Spaces" tab to a custom name. I see that the label is obtained (within webcenter java code) from a resource bundle "oracle.webcenter.webcenterapp.resource.WebCenterResourceBundle".
    Thanks in advance,
    Bijesh

    Read this white paper: http://www.oracle.com/technetwork/middleware/webcenter/owcs-r11-extend-spaces-wp-132596.pdf
    Page 42: Renaming the personal space tab.
    The paper should also explain how to create your own resource bundle.

  • WebCenter Spaces Extensions - Problems creating custom header

    Hi,
    I'm looking for a way of branding the WebCenter Spaces application so that (among others) I can place my own html fragment above the Primary Tab to render a header and hide out-of-the-box global tool bar, secondary tabs and and the side bar. As far as I understood from the "Extending WebCenter Spaces" document (Link: [http://www.oracle.com/technology/products/webcenter/pdf/owcs_r11_extend_spaces_wp.pdf]) I should be able to do this by creating my own custom shell.
    I have taken the gsDefault shell provided within the extendwebcenterspaces.zip file and I got to remove the unwanted bars. Unfortunately I could not get to add my own html fragment for the header. What I have done for this purpose is to change this piece of code in the shell-config.xml:
    <shellContent id="gsDefault" displayName="#{uib_o_w_w_r_WebCenter.LABEL_SPACE_MAXIMIZED_CHROME}"
    pageTemplate="/oracle/webcenter/webcenterapp/view/templates/WebCenterAppShellTemplate.jspx">
    with this one:
    <shellContent id="gsDefault" displayName="#{uib_o_w_w_r_WebCenter.LABEL_SPACE_MAXIMIZED_CHROME}"
    pageTemplate="*/custom*/oracle/webcenter/webcenterapp/view/templates/*Custom*WebCenterAppShellTemplate.jspx">
    For making my custom JSPX file I have taken the default one and made the following change:
    Where there was:
    <f:facet name="top">
    <wcshell:panel name="PrimaryTabBar">
    <af:region id="wc_prm"
    value="#{bindings.shell_PrimaryTabBar.regionModel}"/>
    </wcshell:panel>
    </f:facet>
    I have placed the following code:
    <f:facet name="top">
    <af:panelStretchLayout id="pt_psl1">
    <!--f:facet name="bottom"/>
    < f:facet name="start"/ >
    < f:facet name="end"/-->
    <f:facet name="top">
    <af:image source="/ExtendWebCenterSpaces-StaticFiles-context-root/images/Header.jpg"
    shortDesc="BB 360 Header"
    id="pt_i1"/>
    </f:facet>
    <f:facet name="center">
    <wcshell:panel name="PrimaryTabBar">
    <af:region id="wc_prm"
    value="#{bindings.shell_PrimaryTabBar.regionModel}"/>
    </wcshell:panel>
    </f:facet>
    </af:panelStretchLayout>
    </f:facet>
    I have followed the steps indicated in the document for deploying the custom extensions several times (including, adding the extra java parameter, redeploying and restarting). I know the jspx is accessible as when I try to get it directly from a browser I get a response instead of the page not found page.
    Is this the rightway fo doing it? Am I missing something? Which steps could I follow to identify the underlying problem?
    Thank you very much.

    Marcos,
    I am trying to create new site template and getting below error for wcshell:panel.
    "No grammer available for namespace http://xmlns.oracle.com/webcenter/shell, content of element panel cannot be validated"
    Do you know which JSP Tag Libraries i need to add?
    Thanks
    JP

  • Adding Custom screen for Create Space functionality in WebCenter Spaces

    I need some information on WebCenter Spaces.
    By default there are couple of parameters such as Space name, description, tag, url, status (Public, Private) etc. is required to create the Space with the Out-of-the-box screen in Spaces. But we have a requirement to create Group Space with some additional parameters too.
    I am finding a solution for that. Can we build a task flow with all the parameters that we need to create the Spaces ? If that is possible, can we use Spaces API to create the space and then deploy that task flow in Spaces ?
    Please let me know if there are any other options.

    Hi.
    Yes you can. Build a Task Flow consuming Spaces API (WebService or REST) and setting custom properties to it.
    Steps that you have to follow is:
    - Use API to create your group Space:
    //create the Space
    GroupSpaceWSMetadata gsMetadata =
    client.createGroupSpace("Databases", "Databases" "A community for people interested in databases", "databases, oracle", "CommunityofInterest");
    //print the Space GUID to provide confirmation of creation
    System.out.println("GUID: " + gsMetadata.getGuid());- You can add programmatically custom attributes:
    //create the custom attribute
    client.setCustomAttribute("Databases", "Vendors", "List of vendors", "java.lang.String", "Oracle, IBM");Code is from WebCenter Spaces API off doc: http://docs.oracle.com/cd/E25178_01/webcenter.1111/e10148/jpsdg_spaces.htm#CIHIJBIG
    Regards.

  • Deployed Captcha Code on webcenter spaces using customized Task Flow

    Dears,
    i am using Captcha Code, make new Task flow and fragment to be deployed on webcenter spaces, the code working correctly when am execute RUN from JDeveloper 11.1.1.4.0, but when i deploy it on webcenter spaces version 11.1.1.5 and call this Task Flow from webcenter spaces the image not appear(Actually its Servlet code).
    as mentioned on Oracle PDF (http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html ) -- > How-to use Captcha with ADF Faces and Oracle ADF
    add Servlet on web.xml, then make Managed Bean Code (add it into faces-config.xml) , then create new task flow and call the method that execute the Managed Bean from ADF Task Flow Page.
    1 - Servlet on web.xml :
    <servlet>
    <servlet-name>CaptchaServlet</servlet-name>
    <servlet-class>nl.captcha.servlet.SimpleCaptchaServlet</servlet-class>
    <init-param>
    <param-name>width</param-name>
    <param-value>250</param-value>
    </init-param>
    <init-param>
    <param-name>height</param-name>
    <param-value>75</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>CaptchaServlet</servlet-name>
    <url-pattern>/captchaservlet.jpg</url-pattern>
    </servlet-mapping>
    2 - Managed Bean :
    public void callMethod() {
    FacesContext fctx = FacesContext.getCurrentInstance();
    ExternalContext ectx = fctx.getExternalContext();
    HttpServletRequest request = (HttpServletRequest)ectx.getRequest();
    Captcha captcha = (Captcha)ectx.getSessionMap().get(Captcha.NAME);
    try {
    request.setCharacterEncoding("UTF-8");
    } catch (UnsupportedEncodingException e) {
    //bad luck - but ignore
    System.out.println("UTF not supported !");
    String answer = (String)ectx.getRequestMap().get("bestGuess");
    if (answer != null && captcha.isCorrect(answer)) {
    sendMail();
    SendMail_ToExternal();
    } else {
    fctx.addMessage(null,
    new FacesMessage(FacesMessage.SEVERITY_ERROR, "Please write the number shown in the Picture",
    null));
    i am download the Captcha JAR from Oracle : http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html , Download Captcha an using it as Task Flow to deploy it on webcenter spaces, but as i told you when i Run this code from JDeveloper working correctly, but the problem when i deploy it on webcenter spaces the Servlet code with image not appear. i wanna to know if servlet code working with deployed task flows on webcenter spaces or not ?
    Please Advise..
    Thanks

    Dear Bijesh Krishnadas,
    I did not add the servlet configuration to webcenter spaces yet, just add the Servlet to web.xml to ADF application, i will try to do the steps you are sent to me ? many thanks Bijesh Krishnadas

  • WebCenter Spaces Security Model question

    Hi All,
    I am working on WebCenter Spaces PS3. Wanted to check with forum users if the below given scenario is achievable using WC Spaces ?
    Scenario: In a SubSpace say "Oracle HCM" there are multiple groups say HRP_US, HRP_AU etc.. , Now the SubSpace has some Event component included in the page. Is is possible to restrict the access of Event_1 to only HRP_US and Event_2 to only HRp_AU ?
    NOTE: The Event_1 and Event_2 component (Calandar) are included in the same page.
    I was able to show/hide the component on the page using the show component property, But I also want that Adminstrator for these 2 groups should have access to only their group event component. If this can be done, how?

    Just to see if i understand your question correctly.
    You want a apge with 2 components Event1 and Event2 but depending on the group you want to show either Event1 or Event2, you don't want to show both of them.
    This can be done by using the rendered attribute on the component. You can use the security context and check to see if the user is in a specific group so the EL for the rendered attribute would be
    #{securityContext.userInRole[' HRP_AU']} If the user does not have the role, the EL will return false and the component will not be visible.

  • How can I incorporate new backing beans into a Webcenter Spaces Server?

    I am using the WebCenterSpaces application in Customization Developer Role to make changes to some taskflows for a customer. In order to implement a desired change in the Nav Model for the customer, I had to write 3 very small backing beans. They compiled fine, the taskflow let me add them as managed beans. It even new about these backing beans, presumably because I compiled them. I made changes to the .jsff file to use them and that worked fine. However the metadata.mar created when I deploy the application does not have these new classes, so they will not get put into the WC_Spaces server when I use WLST to import the metadata. Can anybody tell me how to get new backing beans into WebCenter Spaces?
    I cant be the only one who has had to do this.
    Thanks.

    I don't know if you can import as part of the metadata import but an alternative will be to create a shared library out of your java classes and referencing the shared lib in spaces.

  • Change default text in adf faces component in Webcenter Spaces

    Hi ,
    Here is the link that I found to change the default text in adf faces component. http://www.oracle.com/technetwork/developer-tools/adf/learnmore/49-skin-component-labels-169191.pdf
    Scenario is simple :
    Taskflow "ABC" is used in webcenter space through imported Library in spaces App. Taskflow "ABC"  have the pageFragment "view1" and fragment has a adf table on that page. I was trying to change the "Detach" text using below code in above provided instruction. 
    { "af_panelCollection.LABEL_DETACH_TABLE_DLG", "Any name for the Detachable Table" },
    { "af_panelCollection.LABEL_DETACH_TREE_TABLE_DLG", "Any name for the Detachable Tree Table" }
    Query/Problem : I did change in the trinidad-skins.xml of DesignWCSpaces app ... redeployed the war.. But the text didn't changed. The above steps worked fine for individual ADF application ... SO what's wrong with implementation on Webcenter Spaces ?

    Hi.
    Basically you have to do the following:
    Create an ADF JAR Library including your Skin (JS, Images, CSS Skin, Resources Bundles and trinidad-skins.xml)
    Deploy the ADF JAR Library as Shared-lib in WebLogic.
    Include in your weblogic.xml of the WebCenter Portal (Formerly Spaces) deployment via DesignWebCenterSpaces or the new extension the reference to the shared-lib.
    Restart WebCenter Portal (Spaces). When starting WebCenter Portal (Spaces) it looks inside of the Classpath for all trinidad-skins.xml files.
    Setup your custom skin for a Space and test.
    If the Skin is not selectable in the Administration Console then register your new skin downloading/updating/uploading from the MDS the generic-site-resources.xml file of the default scope GUID.
    If you still have issues then may I priorize a Blog entry explaining this .
    Regards.

  • Multi Language Portal on WebCenter Spaces

    Hi all,
    we have a project to implemet bilingulal (Arabic/English) portal for a client, if you have an experiance before please share it with me
    i need to know how to deal with Arabic/English reagarding the below
    1. temaplate
    2. Navigations
    3. pages
    4. content
    5. Announcements
    Thanks,

    Hi,
    Are you sure to implement it in webcenter spaces ?Or thinking to build custom webcenter spaces ?
    Anyways, in both the applications support multilingual.Here multilingual means text's values and some images are changing with language selection.There is no automatic language translation.Everywhere you have to use resource bundles to maintain text levels.
    1)Template : Same template can be used for both the languages.If you need to use some texts in template then better to use resourse bundles and provide text's key,values in resource bundles.If you have some image kind of thing based on language then you need to use JSTL to check the current language.
    2)Navigations :Here also you have to use resource bundles to build multilingual navigation.
    3)pages:What you need in pages to achieve multilingual ?ADF/Webcenter layout's support left-to-right and right-to-left direction.You need to change the content /lebels based on language selection.Levels can be maintained by resource -bundles and content can be managed by UCM/ static contents.
    4)Contents: can be managed by UCM. Make two folder one for English and another for Arabic .Therefore you can maintain both contents under generic folder name.
    5)Announcements :It is completely based on user's input.If user provides arabic content then it will show arabic and so for english. Although the lebels of announcement taskflows will change according to language selection.If you need to show arabic and english announcements ,then you need to use two taskflow.
    you can get more informations on :http://docs.oracle.com/cd/E25054_01/webcenter.1111/e10148/jpsdg_languages.htm#CJAIIAJF
    Regards,
    Hoque

Maybe you are looking for

  • I am using the same Apple id for my iPhone and iPad! Does this cause a problem with apps?

    I Was told I should use a whole different I'd with my iPad because if I have both my phone and iPad with the same Apple id it will cause conflict with the apps on each of them. Does this happen?

  • How do I install new firmware for WRT160N?

    Okay, I'm having the same DNS problems that everyone else seems to be having with this router. Wireless devices work fine, but my desk PC consistently fails to connect. If one of the wireless devices is actively sending/receiving packets, my desk mac

  • How to call a function in a class from the main timeline?

    Hey Guys I have a project in Flash with four external AS files, which are linked to items in the library using AS linkage. What I want to do is call a function in one of these files from the main timeline, how would I go about doing this? I'm not cur

  • I want to run single instance of my class ?

    i have a class with name Abc, i want when my Abc class is in running mode then i cant run my Abc class again untill my Abc class not exit. i want to do that in pure java, i have one logic but it is not proper salution. my logic is that when my progra

  • Bluetooth headset device embed with HP ProBook 4530s

    Hi there. I want to connect any bluetooth device with my HP ProBook 4530s on windows 7 64 bit.. What will be the proper way to do this? Which device should i buy to acomlish this task? Also, "Artheros" bluetooth drivers are properly installed on my l