HOWTO : Portletizing Faces/EJB/Toplink onto Webcenter. Gotchas&Fixes

I thought I'd share some helpful links and tips.
If you develop ADF Faces portlets by the book you'll run into a couple of problems when trying to deploy them on the Standalone OC4J, and a couple more when deploying to Webcenter.
I followed the ADF tutorial here...
http://www.oracle.com/technology/obe/ADF_tutorial_1013/10131/index.htm
Chapter 11 contains info about some extra steps that you need to carry out in order to deploy onto Webcenter.
That chapter instructs you to create a Deployment Project, within which you create your deployment profile. That works well while you are deploying just the Faces/EJB/Toplink application. When you come to 'portletize' your JSF pages however, the deployment procedure seems to skip the WSRP/WSDL packaging step. You should be seeing this in the deployment output page.
"Creating WSDLs for the WSRP Application - WSDLs for the WSRP Application have been created"
It works OK if you create the ear deployment profile within your View Controller project - which contains the portlet.xml file.
See the Portletizing viewlet here
http://www.oracle.com/technology/products/webcenter/owcs_10132_demos.html
- they use the same deployment profile for both Faces and Portlet deployment - stored in the faces project.
When editing the portlet.xml file DefaultPage.view variable, miss out the "faces" part of the path to your initial JSF page - or you will get this error:-
"SEVERE: oracle.adf.model.portlet.binding.PortletBindingException"
See this thread...
Re: JSF Portlets Bug
Even if you have successfully deployed to Standalone OC4J, when you deploy to Webcenter you will get an error about "oracle.wsrp" shared library. Follow the advice on this thread to sort things out ...
Re: PDK with OC4J 10.1.3
Having successfully run my portletized Faces/Toplink pages served from Webcenter within a client JSF app in Jdeveloper, my next step is to deploy and run that portlet consumer on Webcenter.
So far I'm getting MDSRuntimeException when I access the expected url.
I believe I should look here next..
http://download-uk.oracle.com/docs/cd/B32110_01/webcenter.1013/b31074/jpsdg_deploy.htm#BIHFCJDD
I'll add more to this thread as I make more progress.
Good luck everyone!
Donald.

In the viewlet
http://www.oracle.com/technology/products/webcenter/owcs_10132_demos.html
the user is prompted for an 'MDS' location.
I didn't get that prompt. This problem is mentioned on another thread - the answer was to make sure the deployment profile being used was specifically a WebCenter deployment profile. I'm sure I didn't see that option in my "New..." list - until I shut down and restarted Jdeveloper. Exact name of profile type is "WebCenter Application WAR".
I have it now. Having been prompted for an MDS location (created an empty folder for this) when I deployed my portlet client to my standalone OC4J, at last the client app runs from standalone!
I think I still need to carry out some instructions from here
http://download-uk.oracle.com/docs/cd/B32110_01/webcenter.1013/b31074/jpsdg_deploy.htm#BIHFCJDD
in order to create a 'targeted EAR file' for deployment to WebCenter itself.
Message was edited by:
Mechos

Similar Messages

  • Portlet window size changes in Webcenter

    We have a custom portlet that is deployed in Webcenter in AviTrust using the Application Page Template. As we step through the screens in the portlet, the width of portlet window changes. The portlet content itself is in a div and does not specify a specific pixel width.
    I'm fairly new to this but the way I understand the DIV tag, the width of the DIV tag is determined by the enclosing container. This would imply that the width of the Webcenter containers enclosing the portlet content is not fixed.
    I know one can fix the size fluctuation by setting the size of the portlet after it is added to a page. Is there any other way to stop the size change without actually specifying a fixed width in pixels?
    Much appreciated if anyone could comment on this behaviour in Webcenter so I can be sure of the possible fixes for this issue!
    Thanks heaps.

    Thanks.
    I dont like full screen mode, I prefer to keep the window at a size which is comfortabe for me to work.
    From what you have said, it seems as if I cant prevent the main window from constantly changing size each tyime I select fit to screen.
    I am baffled, because I have been using Phtotoshop CS4 with a window size setting which stays the same regardless of how I zoom the image/canvas. Odd isn't it?
    Regards

  • ADF/EJB/toplink on websphere 6.0

    Hi ,
    I am trying to deploy a simple application ADF-JSF calling an EJB and using toplink to map to the database.
    This works fine in the jdev env, however iam unable to deploy and run this in websphere.
    So i developed a sample hello world jsf page in jdev and tried to deploy the same in the websphere.
    I had followed the steps given in the 10.1.3. document on how to deploy to websphere.
    Looks like I have issues similar to "http://forums.oracle.com/forums/thread.jspa?messageID=2312499&#2312499"
    Does anyone have any idea ?
    -TIA

    Yes I did.
    I changed the "war" class loading policy to "Application" and class loader policy to "server last".
    This is the error i got
    [2/8/08 0:35:26:422 EST] 00000032 ApplicationMg A WSVR0200I: Starting application: webapp1
    [2/8/08 0:35:26:750 EST] 00000032 WebGroup A SRVE0169I: Loading Web Module: webapp1.war.
    [2/8/08 0:35:26:812 EST] 00000032 jsp E com.ibm.ws.jsp.taglib.TldParser logParseErrorMessage Failed to parse Tag Library [META-INF/html_basic.tld]: JSPG0235E: The JSP container failed to load the TagExtraInfo class [com.sun.faces.taglib.FacesTagExtraInfo]
    [2/8/08 0:35:26:812 EST] 00000032 jsp W com.ibm.ws.jsp.taglib.TagLibraryCache loadTldsFromJar jsp error failed to load tld in jar. uri = [WEB-INF/lib/jsf-impl.jar]
    com.ibm.ws.jsp.JspCoreException: org.xml.sax.SAXException: JSPG0235E: The JSP container failed to load the TagExtraInfo class [com.sun.faces.taglib.FacesTagExtraInfo]
         at com.ibm.ws.jsp.taglib.TldParser.parseTLD(TldParser.java:256)
         at com.ibm.ws.jsp.taglib.TagLibraryCache.loadTldsFromJar(TagLibraryCache.java(Compiled Code))
         at com.ibm.ws.jsp.taglib.TagLibraryCache.loadLibJarMap(TagLibraryCache.java:185)
         at com.ibm.ws.jsp.taglib.TagLibraryCache.<init>(TagLibraryCache.java:90)
         at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.<init>(JSPExtensionProcessor.java:143)
         at com.ibm.ws.jsp.webcontainerext.JSPExtensionFactory.createExtensionProcessor(JSPExtensionFactory.java:96)
         at com.ibm.ws.webcontainer.webapp.WebApp.initializeExtensionProcessors(WebApp.java:1068)
         at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:363)
         at com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:114)
         at com.ibm.ws.webcontainer.VirtualHost.addWebApplication(VirtualHost.java:127)
         at com.ibm.ws.webcontainer.WebContainer.addWebApp(WebContainer.java:776)
         at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:729)
         at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:140)
         at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:360)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1019)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1028)
         at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:538)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:724)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:683)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1161)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
    [2/8/08 0:35:26:844 EST] 00000032 jsp E com.ibm.ws.jsp.taglib.TldParser logParseErrorMessage Failed to parse Tag Library [META-INF/jsf_core.tld]: JSPG0235E: The JSP container failed to load the TagExtraInfo class [com.sun.faces.taglib.FacesTagExtraInfo]
    [2/8/08 0:35:26:844 EST] 00000032 jsp W com.ibm.ws.jsp.taglib.TagLibraryCache loadTldsFromJar jsp error failed to load tld in jar. uri = [WEB-INF/lib/jsf-impl.jar]
    com.ibm.ws.jsp.JspCoreException: org.xml.sax.SAXException: JSPG0235E: The JSP container failed to load the TagExtraInfo class [com.sun.faces.taglib.FacesTagExtraInfo]
         at com.ibm.ws.jsp.taglib.TldParser.parseTLD(TldParser.java:256)
         at com.ibm.ws.jsp.taglib.TagLibraryCache.loadTldsFromJar(TagLibraryCache.java(Compiled Code))
    my web.xml is listed below.
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
    <description>Empty web.xml file for Web Application</description>
    <filter>
    <filter-name>adfFaces</filter-name>
    <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>jsp</servlet-name>
    <servlet-class>com.ibm.ws.webcontainer.jsp.servlet.JspServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    </web-app>
    `

  • File download from a portletized ADF app running in webcenter spaces.

    Hi,
    I am having trouble downloading non static files from a portletized(with ADFPortletBridge) ADF application running as a portlet producer in Webcenter spaces .
    This is my scenario :
    Jdev : 11.1.1.3
    Webcenter : 11.1.1
    The ADF app has a query page, that uses the af:query component to do a query and display results on a table. This table data need to be exported as a file with some changes like splitting address to component city and state columns .
    The ADF app makes use of af:filedownloadlistener to get this(HTML formatted file with an .xls ext is our current preference to get it to open in excel, but could be anything) done . The ADF app works just fine, but as section 30.2.5.5 in the web center dev guide points out http://download.oracle.com/docs/cd/E14571_01/webcenter.1111/e10148/jpsdg_bridge.htm#CACBHDEF
    > The <af.fileDownloadActionListener> component is not supported.
    The actual behavior however is that the export happens when triggered, but the component keep serving up the same file it created the first time it got invoked every subsequent time. The same file is served even across sessions.
    The alternatives I've considered so far are :
    1. <af:exportCollectionActionListener> - Exports what you see on the UI table. Would not work for us, because our exported data is different than whats on screen. (eg: whole addresses are displayed as a single column, but broken down as component city and state columns in exported data )
    UPDATE : <af:exportCollectionActionListener> exhibits the same behavior as <af.fileDownloadActionListener> in a portlet environment. The first time after deployment it works, and every subsequent time (across sessions) it serves up the same file it first generated.
    2. redirect to a servlet - admittedly half baked idea - fiire an action that will generate the report, then put it in sessionScope , redirect to a servlet that would pick up the report from session and stream it to the user by setting the servlet's response content type. Very unsure if this would fly in a portlet environment (sorry, I'm new to portlets) and even if it does, section 30.2.5.2 in the web center dev guide says :
    Do not redirect or forward a request within your JSP. JSR 168 only supports requestDispatcher.include(). The use of httpServletResponse.sendRedirect() or requestDispatcher.forward() results in exceptions and errors. Am I overlooking some feature that would let me do this or whats the recommended method to achieve this functionality of exporting a file generated at run-time in a portlet environment ?
    Edited by: Jeevan Joseph on Oct 14, 2010 1:02 PM

    I'm facing the same problem. Do you have any news on this issue?

  • Ajax4JSF not working using Portlet Faces Bridge

    Hi,
    Whenever i am including an ajax tag of poll in my JSF page, the portlet becomes unavailable(This is the only tag i am using in JSF).I have made a filter of Ajax4JSf in web.xml.Also if i remove this tag portlet works.
    (Please help me out with same.)
    <a4j:poll interval="2000" action="#{ServiceFaultIndex.fetchRefreshData}" />
    The error i am getting is :-
    Jul 25, 2008 11:59:12 AM oracle.adfinternal.view.faces.renderkit.html.portlet.PortletRenderer preRender
    SEVERE: oracle.adf.model.portlet.binding.PortletBindingException: Unable to get portlet response (Internal Error) for portlet binding ServiceFaults6_1
         at oracle.adf.model.portlet.binding.PortletBinding.getPortletRendition(PortletBinding.java:529)
         at oracle.adfinternal.view.faces.renderkit.html.portlet.PortletRenderer.preRender(PortletRenderer.java:417)
         at oracle.adfinternal.view.faces.renderkit.html.customizable.ShowDetailFrameRenderer.encodeBegin(ShowDetailFrameRenderer.java:227)
         at oracle.adf.view.faces.component.UIXComponentBase.encodeBegin(UIXComponentBase.java:593)
         at oracle.adfinternal.view.faces.renderkit.RenderUtils.encodeRecursive(RenderUtils.java:39)
         at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRenderer.java:242)
         at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeAllChildren(CoreRenderer.java:265)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:65)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:117)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:147)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:60)
         at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:169)
         at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
         at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:645)
         at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:568)
         at oracle.adf.view.faces.webapp.UIXComponentTag.doEndTag(UIXComponentTag.java:100)
         at mdssys.viewcontroller._public__html._dfbfbbf_jspx._jspService(_dfbfbbf_jspx.java:102)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.mds.jsp.MDSJSPFilter.doFilter(Unknown Source)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:287)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
         at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Regards,
    Alpa
    Message was edited by:
    user648923

    Hi,
    ever thought of posting this question to the JBOSS forum? Didi you try the af:poll component instead ?
    Frank

  • Adf faces tutorial - Toplink model is out of sync with the database.

    When running the adf faces tutorial I encountered some problems. The starter workspace uses toplink and the model should be based on the OE schema database objects. However the Customers class is different from the database table, especially the custAddress (but also the phoneNumbers).
    Thus when running the application, the creation and update of a customer (with data for the address) raises the following error:
    javax.faces.FacesException: #{ManageCustomers.doUpdate}: javax.faces.el.EvaluationException: Exception [TOPLINK-4002] (Oracle TopLink - 10g Developer Preview 3 (10.1.3.0 ) (Build 041116)): oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-00932: inconsistent datatypes: expected OE.CUST_ADDRESS_TYP got CHAR
    Error Code: 932
    Besides, the application is not able to display the address properly (due to the same problem) but shows something like: oracle.sql.STRUCT@43e and it cannot display the order_date (timestamp with timezone) correct.
    I get the impression that the toplink model is based on an old or modified OE schema and has not been updated. I like the tutorial, but I would appreciate it when it is correct and does not contain such flaws as descibed. Please update the workspace.

    Ship missing arch files to the standby arch dest manually and initiate recovery of the standby db.No need to regenerate the controlfiles. You might want to investigate the reason why they were not sent to the standby db.

  • Portlet 2.0 Support in WebCenter 11g

    Will there any support of portlet 2.0 (JSR 286) in WebCenter 11g?

    According to the current plans, we will have support for WSRP 2.0, which addresses most of the limitations of the portlet 1.0 spec (JSR 168).
    Peter

  • How BPM studio developed(generated) project be deployed onto WebCenter?

    Do as the tutorial of BPM studio, it tells to click run and there is already a test portal that can run and test the Process, I really don't know where the studio put the packaged files on the test portal environment and how it works.
    My question is in our requirement purpose, we will use the the feature that oracle tells BPM can be integrated with WebCenter, so how to deploy the BPM studio developed project on WebCenter? What configuration I need to do?
    Thanks ...

    If you want to run your process inside the portal (webcenter, alui), then you have to install your standalone BPM server with the workspace extension (WE). WE does the Webcenter/ALUI integration: portlets and sso. After your BPM WE configuration you can just import portlet and webservice settings with a pte file generated by the config wizard. You can use Process Community out of the box or setup your own communities.
    Please read carefully the documentation especially paragraph "Integrating Oracle BPM with AquaLogic Interaction":
    http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/config_guide/index.html
    Hope this helps.

  • Migrate portlets deployed on Liferay to WebCenter

    Is there a way to convert a JSR-168 portlet WSRP portlet so that it can be deployed on WebCenter?
    The latest version of JDeveloper (11.1.2) supports importing of Maven projects but it does not support creation of WebCenter Applications.
    The Version 11.1.1.5 of JDeveloper Supports WebCenter Application creation but we were unable to import a maven project. We Want to port our portlets (JSR 168) running on liferay to WebCenter.
    Any hints on same would be helpful.
    Thanks

    I tell this also in all my courses I give.
    Standards are good but in the end when you migrate from one system to another, you almost always end up with rewriting the whole app...
    Most of the time you are interacting with the portal itself from within your portlet which completly removes the idea of loose coupling between portlet and portal.
    Then there is the JSR168 standard. If you are using inter portlet communication then you are using some special technique owned by the portal which measn that it cannot be migrated.
    Another thing is security. WebCenter does not work according the JEE roles which means that if you have defined security in your portlets in Liferay and used security, it will not work in webcenter unless you use WS-Security and configure quite a lot of mapping and security stores.
    SO as you can see, standards are good and well but in the end they are more a pain in the ....

  • Portlet Javascript not working in webcenter portal application

    Hi,
    the javascript in my portlet is working fine when i deploy it as a separate application, but when i consume it in a portal application it doesnt work.
    here is the javascript that i am using in my portlet.
    <af:document id="d1">
    <trh:script>
    function displayTabbedPanel(actionEvent){
    AdfPage.PAGE.findComponent('tabbedPanel').setVisible(true);
    function enableDisable(actionEvent){
    document.getElementById(AdfPage.PAGE.findComponent('thisMonth').getClientId()).disabled=true;
    document.getElementById(AdfPage.PAGE.findComponent('nextMonth').getClientId()).disabled=true;
    document.getElementById(AdfPage.PAGE.findComponent('targetDate').getClientId()).disabled=false;
    document.getElementById(AdfPage.PAGE.findComponent('targetEnd').getClientId()).disabled=false;
    function enableDisableInputBox(actionEvent){
    document.getElementById(AdfPage.PAGE.findComponent('thisMonth').getClientId()).disabled=false;
    document.getElementById(AdfPage.PAGE.findComponent('nextMonth').getClientId()).disabled=false;
    document.getElementById(AdfPage.PAGE.findComponent('targetDate').getClientId()).disabled=true;
    document.getElementById(AdfPage.PAGE.findComponent('targetEnd').getClientId()).disabled=true;
    function validateDate(actionEvent){
    var targetEnd = actionEvent.getSource();
    var targetStart = AdfPage.PAGE.findComponent('targetDate');
    var popup = AdfPage.PAGE.findComponent('msg');
    var startDateValue = targetStart.getValue();
    var endDateValue = targetEnd.getValue();
    var month = startDateValue.getMonth();
    var day = startDateValue.getDate();
    var year = startDateValue.getYear();
    var startDate = new Date(year,month,day);
    month = endDateValue.getMonth();
    day = endDateValue.getDate();
    year = endDateValue.getYear();
    var endDate = new Date(year,month,day);
    if(startDate>endDate){
    alert("END DATE IS INVALID FOR SELECTED START DATE");
    document.getElementById(AdfPage.PAGE.findComponent('submit').getClientId()).disabled=true;
    else{
    document.getElementById(AdfPage.PAGE.findComponent('submit').getClientId()).disabled=false;
    function checkAlphanumeric(actionEvent){
    var requestor = actionEvent.getSource();
    var re = /^[a-zA-Z_0-9]$/;
    if (! re.test(requestor.getValue()))
    { alert("Please enter alphanumeric only");
    document.getElementById(AdfPage.PAGE.findComponent('submit').getClientId()).disabled=true;
    else{
    document.getElementById(AdfPage.PAGE.findComponent('submit').getClientId()).disabled=false;
    </trh:script>
    Thanks,
    Dhiraj

    You mean you have exposed the taskflow and consumed it as a portlet in Webcenter ?
    You may want to check it on the Webcenter Portal forum too - WebCenter Portal

  • Persisting collection of Strings - EJB,  TopLink

    I am a student and I have to write small java EE application.
    I am writing in NetBeans 5.5 and use Java Application Server, EJB 3.0 and TopLink.
    In my system, teachers make tasks (stored on server) and pupils have to solve them.
    Possible answers defined by teacher, while viewed by a pupil, have to in the same order, as the teacher defined. I think, list of strings would by the easiest solution to store possible answers.
    @Entity
    public class Task implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    private String question;
    private List possibleAnswers;
    public Task(String q, List a) {
    possibleAnswers = a;
    question = q;
    /* setters and getters */
    possibleAnswers is a list of Strings.
    When I left possibleAnswers unitialized, the task is persisted properly(just possibleAnswers is a null)
    The problem is, when I initialize list(with new ArrayList() or new LinkedList()), persisting fails. It doesn`t matter whether this list is empty or not.
    java.rmi.RemoteException: Transaction aborted
    I found this link:
    http://www.oracle.com/technology/products/ias/toplink/doc/10131/main/_html/relmapun010.htm#CHDHHGBG
    Can I use it in my project? How?

    What error do you get? You should see the exception in your server's log.
    Typically for a List you need to specify what it references, and how to map it.
    i.e.
    @Basic
    private List<String> possibleAnswers;
    This would serialize the List into a binary field in the database, which is what I would assume the default would do as well.
    You could also map it as a @OneToMany, but then you would need an Answer class instead of just a String.
    In TopLink you could map a collection of Strings to a seperate table using a DirectCollectionMapping, this mapping type is not part of JPA, but you could use a DescriptorCustomizer to add this mapping to your TopLink descriptor.

  • Rendering Portlet True through Programmatically in Webcenter Portal App

    Hi,
    In web-center portal application,
    in home.jspx i have dragged & dropped a portlet and declaratively i had given portlet as False, i want to make it True through programmatically, based on some condition in Bean.
    How can i achieve this...?
    Regards.

    Hi.
    adfp:porlet tag haven't "visible" property then you have to follow next steps:
    - Surround your adfp:portlet with a panelGroupLayout or layout component:
    <af:panelGroupLayout id="pgl1" visible="#{myBean.showPortlet}">
                    <adfp:portlet value="#{bindings.LocationPortlet1_1}"
                                  id="portlet1"/>
    </af:panelGroupLayout>- Layout component visible property binding to a boolean property of a manage bean.
    public class MyBean {
       private boolean showPortlet;
       private RichPanelGroupLayout yourLayout;
       public MyBean() {
          showPortlet = false;
    }- If you want show Portlet then change showPortlet and apply PPR to Layout component
    IF YOU ARE IN JAVA OUT OF MYBEAN
    ... // your code
    MyBean myBean = (MyBean) JSFUtils.resolveExpression("#{myBean}");
    myBean.setShowPortlet(true);
    AdfFacesContext.getCurrentInstance().addPartialTarget(myBean.getYourLayout());IF YOU ARE IN MYBEAN CLASS
    ... // your code
    this.showPortlet = true;
    AdfFacesContext.getCurrentInstance().addPartialTarget(this.yourLayout);If you want to do PPR in JSPX then:
    <af:panelGroupLayout id="pgl1" visible="#{not empty viewScope.showPortlet ? viewScope.showPortlet : false}">
          <adfp:portlet value="#{bindings.LocationPortlet1_1}" id="portlet1" partialTriggers="test"/>
    </af:panelGroupLayout>
    <af:commandButton text="anyAction" id="test">
         <af:setActionListener from="true" to="#{viewScope.showPortlet}"/>
    </af:commandButton>Regards

  • Where can I download the Portlet Faces Bridge Library for JDeveloper 10.1.3

    Thanks

    It should be in 10.1.3.3 and newer versions. You can get more details on the WebCenter site for this - http://www.oracle.com/technology/products/webcenter/index.html

  • Maximize window state from within portlet faces hyperlink?

    Does anyone know how to implement/force window state from a hyperlink? I want to maximize the portlet window when any hyperlink is clicked from within the default view mode. The javax portlet api tags allow you to set this attribute like <portlet:actionURL windowState="maximized"/>. Is there a similar way to do this from within Creator's use of jsf? Or, am I going to have to do this within the class files? Thanks much

    Yes, does anyone know how to maximize a portlet? Thanks.

  • I was updating my iphone to ios 8 and it went into recovery mode. i went onto itunes to fix it and it said i needed to update my phone. when i clicked on it it said it would take 500  hrs and kept going on, then it would crash. plz help. :(

    yesterday i tried updating to Ios 8. i new there were going to be some problems but i decided to do it. i started the update and less than a half hour into it my phone completely crashed.it went into recovery mode so i connected it to iTunes. i hit restore and update . it gave me and estimated time that kept going up. finally when it got to 800 hours it stopped and said an error occurred. i tried it again and the same error occurred. i am very disappointed in this because i greatly need my phone for school and other important things. i wasn't gonna wait that time anyway. i would like to know if there is anyway i don't have to update, get out of this screen without waiting forever, speed up the time, or get my computer to not crash when it gets to so many hours. (i have windows) plz help me out asap!!!

    I have experienced a similar error with the iPhone 4S.  The new version of iTunes will not let me restore the phone, it must be updated and nothing appears to be happening.  Suffice it to say I am not amused.  Apple needs to work this out - I had trouble updating to 8.0.2 as well.

Maybe you are looking for

  • XML Structure Conversion using JAVA Mapping

    Hi Experts, I am having a requirement in which i want to convert the contents of source xml structure into a string and map it to the target field. Source Structure: <SRC> <Node1>ABCD</Node> <Node2>XYZ</Node2> <Node3>1234</Node> </SRC> Target Structu

  • Nokia 5800 - does not synchronise calendar and con...

    I have my Nokia 5800 Exp Music connected by USB CABLE to PC Suite 7.0.9.2 (that is the version recommened on the Nokia site for 5800). The laptop is on 32 bit Vista Enterprise. PC Suite does not sychronise MS Outlook Calendar and Contacts - the follo

  • Timed Out , OK i wanna instal the firmware instead !!

    After 10 times of downloading the ios 5 .. and getting the " it's timed out " thing .. I downloaded the firmware for my iPod 4G .. I JUST CAN'T INSTALL IT ! .. I Click it and there is no changes .. HELP PLZ it been hours ..

  • IOS 4.x.x. not working with some car stereos?

    This last friday I bought a Pioneer car stereo, the 4200ub to be exact, and whenever I try to use the usb input on it it gets error-19. Error-19 is a communication error with the stereo and the iPhone. I've tried new cables, to reboot the phone, unpl

  • WARNING message when i start up itunes

    although my Itunes is working properly it keeps giving me a WARNING message saying "it was not properly installed. If you wish to import of burn cds you need to reinstall." Is there a way to fix this problem or even get rid of the message i've tried