Portlet backing file and include

If I have a backing file, is there way to include another page in the
handlePostback() method or preRender() method? Don't want to change the
whole page, just the contents of the portlet...

According to the documentation, here is the difference:
Scoping and Backing Files
The difference between having a backing file as part of <netuix: portlet backingfile =some_value> or part of <netuix: jspContent backingfile=some_value> is related to scoping.
For example, if you have the backing file on the portlet itself, you can actually stop the portlet from rendering. If the backing file is at the jspContent level, the portlet portion of the control tree has already run; you use this implementation to run processes that are specifically for the JSP in the portlet.
See http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/portlets/building.html#wp1077130 for more info.
Brad

Similar Messages

  • Portlet backing file vs content backing file

    Hi,
    could someone explain the differences between a "portlet backing file" and a "content backing file". Both are properties available on a portlet.
    Thx
    Emmanuel

    According to the documentation, here is the difference:
    Scoping and Backing Files
    The difference between having a backing file as part of <netuix: portlet backingfile =some_value> or part of <netuix: jspContent backingfile=some_value> is related to scoping.
    For example, if you have the backing file on the portlet itself, you can actually stop the portlet from rendering. If the backing file is at the jspContent level, the portlet portion of the control tree has already run; you use this implementation to run processes that are specifically for the JSP in the portlet.
    See http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/portlets/building.html#wp1077130 for more info.
    Brad

  • Alternative approaches for Portlet backing File

    Hi All,
    What would be the best alternate approach if i need to replace all the portlet backing files?
    Thanks in Advance,
    Mohan

    Hello Mohan,
    Can you describe your issue in more detail? Why would you need to replace the backing files, and what would you be replacing them with?
    Kevin

  • Is it possible to use a portlet backing file on the dvt_enabler portlet?

    We currently have a 9.2 portal with a simple login form portlet that uses a backing file to do much security checking, authentication against ActiveDir, etc. Our requirement is to convert to WLP 10.3 using the DVT enabler portlet or something like it for login (because DVT/DISC is to be turned on for the portal). will it be possible to specify that backing file against the DVT enabler portlet?

    I'm not sure using the DVT enabler portlet will do what you want. It basically just specifies the render dependencies to bring in the dojo and dvt javascript libraries. It doesn't provide any login support itself; the javascript it brings responds to the logged-in state of the user (accessed via DISC), so something else is required to login the user.
    Greg

  • Calling Portlet Backing File

    Hi,
    Is it possible to call a method from a backing file during the portlet render phase? That is, call it from within the JSP.
    thanks,
    Ricardo Seabra

    so not sure what your use case is...
    you can't call the backing file directly but you can put something in the request and then during the dispose() lifecycle of the backing file you could look for that thing in the request and then call some method.
    Chris Jolley
    Portal Architect

  • Concerning header files and include files

    I presently have a site I created in Frontpage 2003, Gunshows-USA.com.  It has seperate pages for each state and month.  I had a header file called head.shmtl that I included on each page.  This allowed me to create one file and reuse it on 50 different pages.  I was also able to place it on the page in such a way that I could include it under the Title of the page and even iinsert an indiviual banner above the header.shtml.  Will I be able to do basically  the same thing with Dreamwaver 5.5s header and footer function?  If so, is there anything special I need to be aware of?

    I guess I didn't quite explain myself as well as I should have. 
    1st I had used include files on my site for a header and a footer but the site broke and when I got it back up it was necessary to load code for each header file to each page to get it to appear.  I am not presently using include files on the site.  The site was created in FrontPage 2003 and I intend on migrating it to Dreamweaver as soon as I know a little more about what I'm doing with DW
    2nd.  When I had the include files working I did NOT have to change everything on every page when I wanted to change something in the header or footer.  The way I have it set up now I do.
    3rd.  Going through different tutorials books, etc I see that I can create a file with a header, a body, and a footer from the templates that are built into the program.  An example is the 3 column fixed, header and footer. My question is, if I use this layout will that layout follow throughout the site and will I be able to basically do the same as I did when I was using includes?  Will a change to the header file change every header file?
    4th.  Can I position the header file sot that it has space above it.  Or another words can I have the header file appear in the middle of the page?
    5th.  Is if possible to have more than one header or footer file and be able to call the one I want or use all one after another?

  • Problem with import tag in xsl files and include in xsd files

    Hello,
    I've been developing an application using JBoss as server. Then, i created an especific path for xsd and another path for xsl files. In both cases, i created a main file that include (xsd) or import (xsl) the other files. My problem is that i have to specify the exactly path where the imported xsl or the included xsd files are, even though they are in the same path as the main file. What i want to know is how i say that the other xsd and xsl files are in the same path that the main file that is importing them?
    here's an example of my import and include declarations:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:import href="../server/jboss/deploy/application.ear/pack.jar/xsl/transformer1.xsl"/>
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
              elementFormDefault="qualified">
         <xsd:include schemaLocation="../server/jboss/deploy/application.ear/pack.jar/xsd/schema1.xsd"/>
    thanks for your help

    yes, thats not the value returned of
    URL url = this.getClass().
                        getResource("/xsl//transformer.xsl");the expression i posted is an string i'm using to test.... but i think it's not incorrect, because if the files i'm trying to open are not in the path, he throws the following exception:
    java.io.FileNotFoundException: C:\cpqd\isp\tools\third-party\jboss\server\jbossISP1\deploy\cpqd-ispeng-EngEJB-3.3.0.0.ear\cpqd-ispinv-ServiceEJB.jar\xsl\isp_transformer_manufacturer.xsl
        at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:80)
        at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:89)
        at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
        at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xalan.processor.ProcessorInclude.parse(ProcessorInclude.java:323)
        at org.apache.xalan.processor.ProcessorInclude.startElement(ProcessorInclude.java:192)
        at org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:668)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
        at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:972)
        at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:788)
        at br.com.cpqd.oss.isp.service.adapter.FrameworkAdapter.createExternalData(FrameworkAdapter.java:131)
        at br.com.cpqd.oss.isp.service.message.ExternalDataMDBBean.onMessage(ExternalDataMDBBean.java:92)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:458)
        at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
        at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:62)
        at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
        at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:284)
        at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:150)
        at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:90)
        at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
        at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
        at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:372)
        at org.jboss.ejb.Container.invoke(Container.java:709)
        at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:928)
        at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1205)
        at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:276)
        at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904)
        at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:159)
        at org.jboss.mq.SpySession.run(SpySession.java:351)
        at org.jboss.jms.asf.StdServerSession.run0(StdServerSession.java:200)
        at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
        at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
        at java.lang.Thread.run(Thread.java:534)and when the files are in the path, he throws the other exception... thats why i think the problem it's not the URL....

  • Detection portlet backing file under weblogic portal

    Hi all
    I am try to work out a interportlet communication example under instruction listed below
    http://download.oracle.com/docs/cd/E13218_01/wlp/docs92/portlets/ipc.html#wp1025202
    Everything works fine until add action to a backing file. I cannot find such option under event handler wizard. From the documentation, it mentions that
    "The Invoke BackingFile selection will not appear unless a backing file is detected by WebLogic Portal. "
    Is any way that can trigger weblogic portal to detect particular backing file? or any example that I can refer to setup such action manually?
    Any help would be apprectiate, thanks.
    wayne

    Hello Wayne,
    The WebLogic Portal forum is a better place to ask WLP questions:
    WebLogic Portal
    However, to answer your question, you can add a backing file to the portlet in Workshop, or manually in the .portlet file as described (at the bottom of the section) here:
    http://download.oracle.com/docs/cd/E13218_01/wlp/docs92/portlets/building.html#wp1077130
    Kevin

  • How to use portlet backing file if I choose book properties edit table true

    I don't know how to use the property,please tell me!
    thank you

    If you want a backing file to be run while rendering a book, you should specify your file in Backing property of the book. Is that what you are trying to do?

  • JNI header files and /include

    Does anyone know where the JNI classes and what .jar file if need be or just what classes jni.c header file(s)are dependant upon, and do they reside in JRE 1.3.0 or 1.3.1, or do I need the JDK version to obtain these, also isn't there suppose to be a JAVA_HOME/include directory where JNI stuff is or at all, or did that all change in 1.3 and up. I thought I remember there being one 1.17 and 1.2ish JDK's if not JRE installs. Any help would be greatly appreciated. Thanks. Trask.

    and what jar are they in or what is the path to them from JAVA_HOME

  • Exporting data to a csv file and include column names

    I am creating a SSIS package which creates a .csv file.  The package works fine except it is not putting the column names as the first row.
    How do I get the column names to also export?
    Thanks,
    ~John

    SQL Server 2012 T-SQL has the new FORMAT command:
    SELECT FORMAT(CONVERT(MONEY,123456.78),'c0','en-US'), -- $123,457
    FORMAT(CONVERT(MONEY,123456.78),'c2','en-US'), -- $123,456.78
    FORMAT(CONVERT(MONEY,123456.78),'c2','en-GB'), -- £123,456.78
    FORMAT(CONVERT(MONEY,123456.78),'c2','de-DE') -- 123.456,78 €
    Prior to SS 2012:
    SELECT CONVERT(varchar(40),CONVERT(MONEY,123456.78),1) -- 123,456.78
    SSIS Import/Export Wizard:
    http://www.sqlusa.com/bestpractices/ssis-wizard/
    Kalman Toth SQL 2008 GRAND SLAM
    New Book: SQL Programming & Database Design Using Microsoft SQL Server 2012

  • WSRP portlets - consumer-side backing files

    I'm trying to find a way to send the consumer-side portlet instance label and the desktop definition label into my WSRP portlets. The BEA WSRP documentation indicates that using a backing file is the way to do this. The only problem is that even though creating a backing file and extracting the two strings is straightforward, it isn't clear how to go about communicating the information from the backing file to the WSRP portlets, since the session and request spaces are independent. I could use some recommendations. Thanks in advance.

    There is limited support for this in 10.3, in 10.3.2 there are some javascript libraries to help you add parameters to URL.
    In 10.3 your best bet is as follows:
    Do NOT modify the URL, instead do a POST to your actionUrl and pass in the parameter in the POST body. You, will also need to do use a PortletXMLHttpRequest to avoid getting the entire page returned.
    Good luck,
    Nate

  • No backing file methods in dropdown

    I am working through the <b>Establishing Interportlet Communications by Using Custom and Page Flow Event Handlers: An Example</b>http://edocs.bea.com/wlp/docs81/ipcguide/custevent.html#999127
    I have created my backing files in step2 and have completed much of step 3. However, when I get to the point in the tutorial where I am to choose the backing file method, there is nothing in the dropdown. The backing files have been compiled and the classes are in WEB-INF/classes/backing folder.
    Any ideas what might be causing this?

    Stephen Davidson wrote:
    I am working through the <b>Establishing Interportlet Communications by Using Custom and Page Flow Event Handlers: An Example</b>http://edocs.bea.com/wlp/docs81/ipcguide/custevent.html#999127
    I have created my backing files in step2 and have completed much of step 3. However, when I get to the point in the tutorial where I am to choose the backing file method, there is nothing in the dropdown. The backing files have been compiled and the classes are in WEB-INF/classes/backing folder.
    Any ideas what might be causing this?I think that you just point to the backing file and not a method
    specifically. If you override the preRender method, it always gets
    executed prior to rendering whatever resource (desktop, book, page or
    portlet you have it bound to) and if you override the handlePostBack
    method, it gets executed whenenever you do post back to the portal.

  • Backing Files Stop Working For No Apparent Reason.  Help?

    I have a portal application accessing a remote WSRP PageFlow portlet. The remote portlet populates a backing file and the producer application reads the data. It was working fine and then it stopped working for no apparent reason. The data was simply null, no errors or warnings. I put traces in the backing file and verified that the life-cycle methods were indeed being called and that data was there, and yes, both were indeed the case. Data is being set on the SimpleStateHolder and it's just not transferring over to the producer side.
    In order to rule out environmental issues, I've done this on multiple machines. Also, I started a whole new project, got backing file setup, verified that it worked, started developing with it and one time I deployed and it was broken again. I rolled out the changes I had just made but it didn't matter. The earlier code still failed to work although it had been working moments earlier.
    So, any ideas? Has anybody else encountered backing file issues like this and if so do you have any suggestions on debugging or fixing them?
    Ryan

    I have a portal application accessing a remote WSRP PageFlow portlet. The remote portlet populates a backing file and the producer application reads the data. It was working fine and then it stopped working for no apparent reason. The data was simply null, no errors or warnings. I put traces in the backing file and verified that the life-cycle methods were indeed being called and that data was there, and yes, both were indeed the case. Data is being set on the SimpleStateHolder and it's just not transferring over to the producer side.
    In order to rule out environmental issues, I've done this on multiple machines. Also, I started a whole new project, got backing file setup, verified that it worked, started developing with it and one time I deployed and it was broken again. I rolled out the changes I had just made but it didn't matter. The earlier code still failed to work although it had been working moments earlier.
    So, any ideas? Has anybody else encountered backing file issues like this and if so do you have any suggestions on debugging or fixing them?
    Ryan

  • ErrorJarUpdate on deploying portlet war file

    I'm trying to deploy a war file of portlets. Upon running pdeploy, I get the following errors in the pdeploy.debug log:
    10/07/2004 10:11:00:617 AM CDT: Thread[main,5,main]
    ERROR: Exception:
    com.sun.portal.portlet.cli.PortletDeployerException: errorJarUpdate
    at com.sun.portal.portlet.cli.PDDeploy.process(PDDeploy.java:219)
    at com.sun.portal.portlet.cli.PortletDeployerCommand.runCommand(PortletDeployerCommand.java:209)
    at com.sun.portal.portlet.cli.PortletDeployerMain.main(PortletDeployerMain.java:54)
    Syntax of pdeploy command is correct, passwords are valid for both portal server admin and webserver admin and it doesn't appear to be related to file permissions - this is a stand-alone test environment so permissions are fairly wide open.
    Suggestions on what else to look for?
    Dana

    How are you specifying the "pdeploy" command?
    I have actually ran into issues attempting to run pdeploy jsr 168 portlet WAR files and have discovered that you can get the "errorJarUpate" error for any generic issue from everything to having a bad element in one of your "xml" files to having an issue with your GenericPortlet implementation.
    Have you tried running this with a simple "helloworld" type of portlet?

Maybe you are looking for

  • Exporting to Excel from Aria People Search

    Is it possible to export to Excel from Aria People Search. I would like to output the Org Chart (built in) and the Tree (I created) to an Excel file. Does anyone know how to do this? Thanks, Tom

  • CS4: Text tool is broken

    When I use the Text tool or selected a text object, the dropdown in the Properties panel where it says Static Text / Dynamic Text / Input Text is not working. For instance, it's on Static Text and I change it to Dynamic Text and it stays on Static Te

  • Misunderstanding of "textual form"...

    (3) Class PatientRecord Implement the PatientRecord class(DONE). Declare all the required instance variables together with their set and get methods(DONE). Also implement a method that provides a summary of the whole record in textual form(What does

  • If I have a DVD, am I able to download it onto my ipad like I am able to with CDs for music? If so, how?

    If I have a DVD, am I able to download it onto my ipad like I am able to with CDs for music? If so, how?

  • Problem with full screen flash background

    I want to use a shockwave swf animation as a full screen background for a captivate presentation. If I use, 'rest of movie' to display this swf background, then any objects I try to put on top get covered over by the animation... ie. I can't see them