Publish a file content as portlet
Hi
I need to see the content of an HTML file directly in a portal page.
I used an html portlet with an iframe to the url portlet but it contains bug if the access right on the page the file is uploaded into is more restrictive than the acces right than the individual file one.
I tried a direct url portlet but it does not work if the url deals with a portal item.
Does somebody see any other solution ?
Regards
Arnaud
If it's a URL accessible file, you can use Web Clipping. Alternatively, you can create a Java/JSP portlet that renders the HTML file as it's content.
For details, refer to the Portal Developer's Guide.
Similar Messages
-
How to publish a File Content Item via EDK?
I'm trying to publish a "File Content Item" via the EDK.
CS EXPLORER
Recall, that a "File Content Item" is different than a (regular) "Content Item" in that (via CS Explorer) it's a content item with no user-defined data entry template (when you right-click, the "Edit Data Entry Template..." menu item is not listed). Yet, somehow, it can still be published (via the Explorer), --which is great because I need to FTP this file to another server.
EDK
However, even though the (file) content item's EDK "Publishable" property indicates "true", it cannot be published via the IContentItemManager.PublishContentItem() method, which is returning the following error message...
The required object was not found... content item... containing Data Entry Template... with attached Presentation Template (with UUID null)... (DataItemUuidNotFound...)
In other words, the File Content Item has a (system defined) "/Definitions/File" data entry template, which has no attached presentation template. This leads me to believe that File Content Items are published differently (than Content Items).
Or, is there a flag that I can pass along to "file_upload.jsp" to get it to auto-publish the File Content Item it creates?
thanks,
MichaelHey there,
Animate doesn't publish to HTTPS, but this is something you can control on your own when uploading to a secure server. Also be aware that the Animate runtime is served over HTTP so you'll have to upload this component to serve from your server as well.
Sarah -
Displaying doc/txt file contents from portlet
Hi, Can someone pls give a hint on how to do this:
One "book" type content created, with a doc file uploaded. The "publisher " for
this content is set to "sams".
create a content selector which retrieves only this (content) book correctly.
create two portlets. one portlet with above content selector inserted, displays
the publisher name with a hyperlink.
I want the other portlet to display the contents of the file uploaded, for this
publisher. I could establish portlet comm. and could display other properties
of the book such as "author/titile" on the second portlet, but want to know how
to display the uploaded file contents.
thanks much,
-developerAs far as retriving the contents of an uploaded file...
If your XML document has been loaded into Content Management as a binary
property, you have two options:
a) to directly inline the content into the JSP, do something like this:
<cm:getProperty id="node" name="binaryPropertyName" failOnError="true"
isMultiple="false"/>
(This assumes node holds a reference to the Content Management Node
object (perhaps retrieved via a <cm:getNode> tag)
b) to retrieve the value into a script variable for more processing, do
something like this:
<%
Property bodyProp= (Property)node.getProperty("binaryPropertyName");
InputStream in= node.getPropertyBytes( bodyProp.getId() );
// dont forget to close the InputStream
String result=null;
InputStreamReader reader= new InputStreamReader(in);
StringBuffer streamContents= new StringBuffer();
char[] data= new char[8192];
int charsRead;
while ((charsRead = reader.read(data)) > 0 )
streamContents.append(data, 0, charsRead);
result= streamContents.toString();
%>
-Steve
"portal developer" <[email protected]> wrote in message
news:40ae343d$[email protected]..
>
Hi, Can someone pls give a hint on how to do this:
One "book" type content created, with a doc file uploaded. The "publisher" for
this content is set to "sams".
create a content selector which retrieves only this (content) bookcorrectly.
>
create two portlets. one portlet with above content selector inserted,displays
the publisher name with a hyperlink.
I want the other portlet to display the contents of the file uploaded,for this
publisher. I could establish portlet comm. and could display otherproperties
of the book such as "author/titile" on the second portlet, but want toknow how
to display the uploaded file contents.
thanks much,
-developer -
Is it possible to create a new template in content server like "_news" or "announcement" ?
There's probably not a developer in the forum that doesn't uncheck that box the moment they rebuild their machine/ennvironment. Changing the format of error messaging is hardly a fix for the error itself. Personally, I'm uploading 'file content items' now. I create the content in notepad and then upload > file content item. Then create a portlet that uses the pre-existing (was installed w/ publisher using their pte) 'published content item' web service. Go into the portlet's settings and associate the portlet w/ the content item you uploaded. Voila.
As far as using their rich text editor to create new content, I personally have no need anymore. However I'm sure our content managers will probably have to soon so I hope our latest installation will accommodate them w/o error, because I've never been aware of an actual fix to this problem. -
I tried to deploy the Hello World JSP application to Azure from Eclipse following the instructions at http://msdn.microsoft.com/library/azure/hh690944%28VS.103%29.aspx. Got the following error when trying to import Publish Settings file downloaded from Azure
Management portal:
Importing MyMSDN.publishsettings file failed. Reason: failed to parse file. Ensure publish settings version is 1.0.
Could someone help me solve this problem? Thanks.Hi huihuang,
It seems there is some issue with your publishsettings file, could you open this file and copy the content here? Or please have a look at this article:
http://gauravmantri.com/2012/09/14/about-windows-azure-publish-settings-file-and-how-to-create-your-own-publish-settings-file/ for more information about it.
Best Regards,
Jambor
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Problem with images in content management portlet
Hi all,
I'm trying to use the content management portlet provided with Bea WLP 8.1 SP4, but I've a problem with the images (they're not displayed at all, only a lot of red "X"s). Some how it seems to be a problem with the Taglib render. It tries to get the resourceRootPath to post it in front of the src path in the image tag and it always includes the parameter that are in the URL.
I followed the instructions in the help of workshop, so I think I've imported every needed files. Moreover, the images are in the right folder tree. The wired thing is, that the My Content Portlet works fine.
Any help for a newbie???
Cheers,
CordHi Cord,
I was having that same problem, and I couldn't find anything on this website either. I tried creating a new portal project and following the directions exactly again, but it didn't work there either. It works in the sample portal.
So I contacted BEA Support, and they were able to provide me with a solution:
The file url-template-config.xml (in the WEB-INF directory) has to be modified and have the {url:currentPage} parameter removed in order to get the images working for the content management portlet. For now, do this only in the section <!-- URL templates -->. Leave the other places like in WSRP etc as it is.
I actually took it out of the WSRP places too, by accident, but I don't use WSRP anyway, and everything else seems to be working fine. And the images show up!
Hope this works for you too,
Beth -
How to do handle multiple JSP file in one portlet?
Hi...
I studied the JPDK for multipage..
What the example do, is just link from page 1 to page 2.
What i want to do is..
I have a jsp called infoForm.jsp as a portlet.
When i clicked submit button, a second page (getForm.jsp) will grab the data and will process it and send the result back to the infoForm.jsp.
Can anybody help me on this?
Thanks..Akshay,
If am not wrong, you are trying to upload files using your portlet. Then you expect the content from the uploaded file should be available at the provider midtier to your portlet JSPs. There are certain issues wrt file upload using a web provider.
Since, the PPE & JPDK communicate using SOAP over HTTP/S, they cannot handle the requests where content type is multipart, as is the case with file uploads. Hence the solution to this is to upload that file in the Portal content area & not to bring it to the provider midtier. There was a DB portlet available on Knowledge Exchange that could do this. So please visit Knowledge Exchange & search for the DB portlet for file upload.
If there is anything else that you desire, please let me know.
Regards,
Abhinav -
The 'Edit folder' link doesn't appear in content area portlet (URGENT)
Hi! I made three content areas, and published them as portlets in a page. However, when I enter the page as an authorized user, I don't see the 'Edit folder' link on any content area portlet. But if I enter to any of the content area pages with the same user, I see the link
Is this a bug? What could be the reason?
Thanks a lot!
Luistry this...
Edit the page where you added the portlets. Click the edit defaults link next to each of the portlets and scroll down to make sure the show Edit Link checkbox is checked. I don4t see any Edit Link checkbox when I edit the portlet's defaults!!
What should it be? -
Podcast Publisher supported files problem
I recently used podcast publisher and podcast capture to make a podcast. When I try to import an MP3 to podcast publisher, the file format is not supported. Why is that?
I think Apple has re-done the Podcast suite as of late. It's now called Podcast Publisher. I also have Pocast Capture that allows me to capture on remote machines and submit the content – doing this however seems to work fine for submitting it, but the content never shows up on the nominated podcast in PodcastPublisher...
-
Viewing an HTML file in a portlet &
Dear reader:
I need to view an HTML file in a portlet according to a specified parameter passed via URL address, can i use url.display_url or not, and how? and if not what should i use?
and related to that how can i call a portlet (or a page published as portlet)to override an existing one (programatically)?
thank you for your time.Check out the multi page portlet in the February PDK for an example of how to display a second portlet in place of the first portlet. As for your first question, please try posting your question to the Oracle Portal Development Kit (PDK) forum, where you'll find the expertise you require.
-
Hi,
I've set the page assigned to some content area as the homepage
for public users. In this way, when a user enters the site or
when he/she logouts, Portal shows that page.
The problem is that the portlet corresponding to the content
area page shows nothing! Changing the url (like
http://site/pls/fortal30/folder/...) gets the correct answer.
How can I change this behavior?
TIADid you use the generic folder portlet on the page, or did you
publish the folder as a portlet? If you used the generic folder
portlet, did you select the folder as a customization, or did
you use Edit Defaults.
Assuming that you used the generic folder portlet, and that you
customized it (vs. using edit defaults), you need to do the
following:
- Publish the folder as a portlet, and replace the generic
portlet with the published folder portlet (this is the
recommended alternative)
or
- Use edit defaults to select the folder you want in the generic
folder portlet.
Regards,
Jerry -
Error with Authentication and Content Presenter Portlet
I was just testing an application i'm developping when I realize that something was wrong with almost all the content presenter portlets in my portal... after authenticate into my portal i get this at log files
<9/03/2009 10:04:08 AM GMT-06:00> <Error> <netuix> <BEA-423166> <An exception or error occurred in the backing file [com.bea.content.ui.framework.ContentUIPortletBacking] while executing its handlePostbackData method. It was java.lang.IllegalStateException: Unable to retrieve the current portlet instance information.
java.lang.IllegalStateException: Unable to retrieve the current portlet instance information.
at com.bea.content.ui.framework.services.PortletManagementService.getPortletSessionConfigurationKey(PortletManagementService.java:2726)
at com.bea.content.ui.framework.services.PortletManagementService.hasReturnedFromConfiguration(PortletManagementService.java:938)
at com.bea.content.ui.framework.ContentUIPortletBacking.handlePostbackData(ContentUIPortletBacking.java:139)
at com.bea.netuix.servlets.controls.Backable$Impl.handlePostbackData(Backable.java:166)
at com.bea.netuix.servlets.controls.AdministeredBackableControl.handlePostbackData(AdministeredBackableControl.java:83)
Truncated. see log file for complete stacktrace
>
java.lang.NullPointerException
at login.LoginBacking.handlePostbackData(LoginBacking.java:43)
at com.bea.netuix.servlets.controls.Backable$Impl.handlePostbackData(Backable.java:166)
at com.bea.netuix.servlets.controls.AdministeredBackableControl.handlePostbackData(AdministeredBackableControl.java:83)
at com.bea.netuix.servlets.controls.window.Window.handlePostbackData(Window.java:606)
at com.bea.netuix.nf.ControlLifecycle$2.visit(ControlLifecycle.java:180)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:324)<9/03/2009 10:07:56 AM GMT-06:00> <Error> <netuix> <BEA-423166> <An exception or error occurred in the backing file [com.bea.content.ui.framework.ContentUIPortletBacking] while executing its handlePostbackData method. It was java.lang.IllegalStateException: Unable to retrieve the current portlet instance information.
java.lang.IllegalStateException: Unable to retrieve the current portlet instance information.
at com.bea.content.ui.framework.services.PortletManagementService.getPortletSessionConfigurationKey(PortletManagementService.java:2726)
at com.bea.content.ui.framework.services.PortletManagementService.hasReturnedFromConfiguration(PortletManagementService.java:938)
at com.bea.content.ui.framework.ContentUIPortletBacking.handlePostbackData(ContentUIPortletBacking.java:139)
at com.bea.netuix.servlets.controls.Backable$Impl.handlePostbackData(Backable.java:166)
at com.bea.netuix.servlets.controls.AdministeredBackableControl.handlePostbackData(AdministeredBackableControl.java:83)
Truncated. see log file for complete stacktrace
>
at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:130)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)
at com.bea.netuix.nf.Lifecycle.runInbound(Lifecycle.java:184)
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:159)
at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:388)
at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:258)
at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:199)
at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:251)
at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:686)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.bea.portal.tools.servlet.http.HttpContextFilter.doFilter(HttpContextFilter.java:60)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:336)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.bea.jsptools.servlet.PagedResultServiceFilter.doFilter(PagedResultServiceFilter.java:82)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3393)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
I do not know why is this happening, cause Authentication works, except for that ugly exception that I think is thrown after trying to render the content presenter portlets
Some of the content presenter portlets work(I mean i can see it's content and can be modified)fine but the ones recently added don't Does anybody knows the reason???
It does not work even when i start a new project.I'm using the sample at wlp docs
package login;
import com.bea.netuix.servlets.controls.content.JspContentContext;
import com.bea.netuix.servlets.controls.content.backing.AbstractJspBacking;
import com.bea.p13n.security.Authentication;
import com.bea.portlet.GenericURL;
import com.bea.portlet.PostbackURL;
import javax.security.auth.login.LoginException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class LoginBacking extends AbstractJspBacking {
private static final long serialVersionUID = 1L;
public static final String REDIRECT_ACTION = "redirect";
public boolean handlePostbackData(HttpServletRequest request, HttpServletResponse response) {
if (isRequestTargeted(request)) {
if (request.getParameter(GenericURL.STATE_PARAM) == null) {
String username = request.getParameter("username");
String password = request.getParameter("password");
PostbackURL url = PostbackURL.createPostbackURL(request, response);
if (username != null && password != null) {
try {
Authentication.login(username, password, request, response);
catch (LoginException le) {
request.setAttribute("loginErrorMessage3", new String("true"));
return false;
else if (request.getParameter("logout") != null) {
Authentication.logout(request);
url.addParameter(GenericURL.LOADSTATE_PARAM, "false");
url.addParameter(GenericURL.PAGE_LABEL_PARAM, "login");
try {
JspContentContext jspContext = JspContentContext.getJspContentContext(request);
jspContext.sendRedirect(url.toString());
catch (Exception ie) {
ie.printStackTrace();
return true;
In fact the problem is at the line that executes redirection ... jspContext.sendRedirect(url.toString()); -
How to catch XML Publisher bursted file from Workflow
Hello,
I have to catch xml publisher bursted file in oracle workflow and send it as the content of mail (not like attachment).
Does anyone know if this is possible and how can I do it?
Any help is appreciated, thanks in advance!
Regards
Iveoracle seeded XDO regions is available to integrate concurrent program in the page.
You got to extend this RN oracle.apps.xdo.oa.common.DocumentViewerRn.xml
And oracle.apps.xdo.oa.common.DocumentHelperAPI, should help you to download or View from the page
Its straight forward , given in the doc i guess.
Let me pull the metalink note for this. -
i keep getting "an unknown error" when publishing to file or publishing all to mobileme...
It still works if i just publish to mobileme.
Any ideas?
Im trying to get my site going on go daddy, and kinda really need it in a folder...If you are still getting the error then its likely that you have a corrupt domain file.
To prove this, quit iWeb, create a new folder on your desktop and drag your domain file out of - Home Folder/Library/Application Support/iWeb - into this.
Relaunch iWeb to force it to create a new domain file, add some content and try publishing to a folder.
If this works, your original file is corrupt. -
Tracker 0.8.3 and file content indexing
Hi forum,
yesterday I decided to reinstall meta tracker for indexing my system but I had some problems: I don't need to index file contents, I just want to index file names and the possibility to tag files. But in the tracker config dialog there isn't any kind of check box for disabling the content indexing. Does anyone know how to disable file content indexing and why is this option disabled in tracker 0.8.3-1?
Thanks,
RiefHi,
A product compatibility is determined by 3 parts:
The product has passed Windows certification requirements and received a logo.
The app publisher or device manufacturer stated this products works with Windows 8\8.1\RT\7....
Windows 8.1 is designed with compatibility in mind.If an app or device ran on Windows 8, our goal is that it should run on Windows 8.1. During Windows development, we test most of the popular products and we are providing compatibility statements based
on this testing. For products we have not tested, compatibility statements for Windows 8.1 are being provided based on the product's compatibility status for Windows 8.
Microsoft will also take user's feedback into account and make updates accordingly, so it might take some time to update a status.
Yolanda Zhu
TechNet Community Support
Maybe you are looking for
-
Problem with Display.setCurrentItem() using J2ME-Polish
Hi, I am fairly new to J2ME-polish and have encountered a situation that I am having a problem with. I am loading a form with a number of String Items. When I display the form I would like to focus to the last String Item that has been placed on the
-
How do I get my money back? I tried to buy a phone from Verizon over the phone. They sent me a refurbished phone (without my knowledge) that allowed me to activate a pay as you go account. Then the phone would not open, so I could not use the account
-
Want to add company logo in sharepoint site 2013 login page..
hi, I am trying to setup a customize SharePoint login page with company logo, while searching I found that it requires FBA authentication enabled which I did. now I have challenge, how to add company logo in SharePoint login page so while heats to si
-
Mov streaming preload stop page content loading
Web content trouble: I have a quicktime movie in a module page on my site. Works well except that the page stop loading when it reach the video. Only after the compleate loading, the rest of the page is loaded, preventing the visitors to read. Whats
-
Anybody knew, why i can not access this document? I am in the middle of project implementation, and Oracle support direct me to this document, but for some reason, can not find it.