JPF portlet and setupStateChangeEvent
I have a JPF portlet as below
<?xml version="1.0" encoding="UTF-8"?>
<portal:root xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0"
xmlns:portal="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0 portal-support-1_0_0.xsd">
<netuix:portlet backingFile="com.wellsfargo.ws.weo.backing.EditBacking"
definitionLabel="portlet_48" presentationClass="dashBoard" presentationId="dashBoard" title="test">
<netuix:titlebar>
<netuix:maximize/>
<netuix:delete/>
<netuix:edit contentUri="/content/presentation/test/test/TestController.jpf"/>
</netuix:titlebar>
<netuix:content>
<netuix:pageflowContent action="start" refreshAction="refresh" contentUri="/content/presentation/test/test/TestController.jpf"/>
</netuix:content>
</netuix:portlet>
</portal:root>
JPF code:
package content.presentation.test.test;
import com.bea.netuix.servlets.controls.portlet.backing.PortletBackingContext;
import com.bea.netuix.servlets.controls.window.WindowCapabilities;
import com.bea.netuix.servlets.controls.window.WindowState;
import com.bea.wlw.netui.pageflow.Forward;
import com.bea.wlw.netui.pageflow.PageFlowController;
* @jpf:controller
* @jpf:view-properties view-properties::
* <!-- This data is auto-generated. Hand-editing this section is not recommended. -->
* <view-properties>
* <pageflow-object id="pageflow:/content/presentation/test/test/TestController.jpf"/>
* <pageflow-object id="action:begin.do">
* <property value="80" name="x"/>
* <property value="60" name="y"/>
* </pageflow-object>
* <pageflow-object id="page:index.jsp">
* <property value="160" name="x"/>
* <property value="160" name="y"/>
* </pageflow-object>
* <pageflow-object id="page:edit.jsp">
* <property value="260" name="x"/>
* <property value="160" name="y"/>
* </pageflow-object>
* <pageflow-object id="forward:path#success#edit.jsp#@action:begin.do@">
* <property value="116,170,170,224" name="elbowsX"/>
* <property value="52,52,152,152" name="elbowsY"/>
* <property value="East_1" name="fromPort"/>
* <property value="West_1" name="toPort"/>
* <property value="success" name="label"/>
* </pageflow-object>
* <pageflow-object id="action:start.do">
* <property value="180" name="x"/>
* <property value="60" name="y"/>
* </pageflow-object>
* <pageflow-object id="forward:path#success#index.jsp#@action:start.do@">
* <property value="144,144,160,160" name="elbowsX"/>
* <property value="52,106,106,116" name="elbowsY"/>
* <property value="West_1" name="fromPort"/>
* <property value="North_1" name="toPort"/>
* <property value="success" name="label"/>
* </pageflow-object>
* </view-properties>
public class TestController extends PageFlowController
// Uncomment this declaration to access Global.app.
// protected global.Global globalApp;
// For an example of page flow exception handling see the example "catch" and "exception-handler"
// annotations in {project}/WEB-INF/src/global/Global.app
* This method represents the point of entry into the pageflow
* @jpf:action
* @jpf:forward name="success" path="edit.jsp"
protected Forward begin()
PortletBackingContext pbc = PortletBackingContext.getPortletBackingContext(getRequest());
String state = WindowCapabilities.MAXIMIZED.getName();
if(pbc != null)
pbc.setupStateChangeEvent(state);
String title = pbc.getTitle();
getRequest().setAttribute("message", "In the edit page");
return new Forward("success");
* @jpf:action
* @jpf:forward name="success" path="index.jsp"
protected Forward start()
PortletBackingContext pbc = PortletBackingContext.getPortletBackingContext(getRequest());
pbc.setupStateChangeEvent(WindowCapabilities.NORMAL.getName());
getRequest().setAttribute("message", "Hello");
return new Forward("success");
Question: The portlet is not getting maximized when I click on edit button in my portlet.
Hi,
The Solution is very straight forward.If you are creating a JavaPageFlow based portlet then in JSP you must use beehive netui tag.If you are using simple jsp tag then it will not fullfill your requirement.
Create a pageflow ,in the index.jsp page create a form(with <netui:form action="submitData">) tag.Create two text boxes(<netui:text>) and then create a form bean in the controller which will be associated with the action of the form.
In the controller's submitData action put the value in the request or session and forward to displayData.jsp.
Now create a portlet out of this pageFlow and put on the portal file.
Thanks
Bishnu
Regards
Bishnu
Similar Messages
-
How to do the data binding in JPF portlet
Hi
I want to know how i will get the data from Controller action to my JSP page in JPF portlet.
is there a use of JPF portlet implicit objects
or Portlet Context??You can use ActionOutput in Controller to push data to JSP page and use pageInput in JSP file to catch that data to display.
For example:
@Jpf.Action(
forwards = {
@Jpf.Forward(
name = "index",
path = "/tinhvan/portal/index.jsp",
actionOutputs = {
@Jpf.ActionOutput( name = "userList", required = true, type = java.util.List.class)
protected Forward begin() {
usersList = getUsers();
Forward fw = new Forward("index");
fw.addActionOutput("userList", getUsers());
return fw;
<netui:body>
<netui-data:declarePageInput name="userList" type="java.util.List"/>
<netui:form tagId="searchForm" action="search" method="post">
<netui:select tagId="user" dataSource="actionForm.performedUser" size="1" title="Chọn người dùng cần theo dõi">
<netui:selectOption value="">-- Xem tất cả --</netui:selectOption>
<c:forEach items="${pageInput.userList}" var="user">
<netui:selectOption value="${user}">${user}</netui:selectOption>
</c:forEach>
</netui:select>
</netui:form>
</netui:body>Regards
CuongPT - junior staff - Tinhvan JSC. Vietnam -
I've got a jpf portlet, which has a few actions to take the user to different pages. However, if I go through the actions, next time I click on the portlet, it seems to cache it and take me to the last page I went through, NOT the first page I wanted. And the begin method doesn't seem to get executed again. I've tried to change the properties of the portlet(Cahe Expires to 0 second and Cache Render Dependencies to false) but doesn't seem to work. Does any know how to solve this? Thanks!
Page flow Refresh Action is for refresh.You can always specify 'begin' as the value here.
Specifying a separate action lets you do things like goto a specific page if you want to remember the state of the user etc.
If you generate the urls with _nfls=false whenever you click on a page /book then all pageflows get reset so their begin action will be called always. -
Click on link in one portlet and open in another portlet
how do you click on link in one portlet and open in another portlet?
Hrmm... This is a IBM Question..
Officially this is a meaningless buzzword promoted by IBM. Portals are some sort of Servlet but IBM incapable of explaining how they differ from ordinary Servlets. Some speculate they are used to present a webpage with many services on it such as a search engine, and news that come from diverse sources. The user is able to dynamically configure the contents and layout of the page much like Netscape home pages
I don't understand what yhour asking..
I am assuming you want to call another servlet (portlet)? That would be absurd to do .. You let the HTTP request and XML file to deal with the response of the portlet -
Portlet to JPF Portlet Communication
Hi All,
Can someone tell how to communicate from a JSP Portlet to a JPF Portlet.I have
tried communicating from a JSP Portlet to a JSP Portlet using the Event Manager
mechanism.Is there corresponding attribute of Backing File in a JSP Portlet in
JPF Portlet.
cherio,
ManiHi Mani,
How do you want to communicate to the jpf portlet from the jsp portlet.
If you want to just use a href, the jpf portlet can be referenced by following
/portal_app_name/appmanager/portal_name_created_in_admin_portal/desktop_name?_nfpb=true&_pageLabel=pageLabelName
Let me know if you have any questions.
sathish
"Manikandan" <[email protected]> wrote:
>
Hi All,
Can someone tell how to communicate from a JSP Portlet to a JPF Portlet.I
have
tried communicating from a JSP Portlet to a JSP Portlet using the Event
Manager
mechanism.Is there corresponding attribute of Backing File in a JSP Portlet
in
JPF Portlet.
cherio,
Mani -
Can I use JavaScript HTML Portlet and PDK Portlets
Can I use JavaScript HTML Portlet and PDK Portlets?
My Script works fine with the an HTML portlet but it always gives a an Error Message in the status bar is that normal...
Other then that I have JavaScript in my PDK portlet page it does not work.. it is the the same javascript I use for in my HTML portlet which works in HTML portlets..You'll have to place your JavaScript in the header section of your Portal page. To do so, use HTML/UI templates. For more information, refer to the How to Design and Build Compelling Portal Interfaces whitepaper.
Good luck,
Peter -
WSRP Portlet and Default Minimized Property
Good Morning, i'm working with Oracle WLP 10.3.4 and i have a problem with Default Minimized Property for a Remote Portlet.
I set this property to true for a portlet and if i run it in a local environment this portlet show, correctly, itself minimized.
When i use the same portlet like "remote portlet" -configuring the producer from the administration console- it is not minimized.
There is no way, for a remote portlet, to show itself minimized by default?
Thanks
AlessioHello,
Many thanks for this quick feedback. It does work.
We were configuring our producers & portlets directly through WLP admin console : we were expecting WLP to recognize automatically this "defaultMinimized" flag from the remote portlet and configure the proxy portlet with this flag set as same. It is indeed not the case, so we did as follows :
- Create proxy portlet on our consummer application, with defaultMinimized=true
- Add this portlet to our .portal file
Thanks again.
FLC -
How to export portlets and providers
Hi All,
I have exported some page group and pages and successfully and imported them as well. It worked fine for me. the only problem is I have to register all the providers for the portlets and I need to all those portlets again on the target server.
Does any body has any solution for this ? Is there any way I can also export portlets and their providers ?
I am using OracleAS 10.1.2.
Thanks,You cannot export portlets or providers directly. When a page is exported, all portlet records (and their provider registration details) are exported. During import, after verifying that the provider does not exist already (if it exists, the provider will be reused) it is registered on target. This action is similar to the register providers action in that the list of portlets is generated and they are registered in portlet repository for use in the page being imported.
If the portlet provider is a database provider, you will have to manually migrate the provider schema so that the registration (above) is able to find the necessary objects in target.
Bottomline, for providers you're interested in - create a page with portlet instances from the provider and migrate the page. If the provider requires schema objects to exist, make sure you migrate them first before the import of the page. -
How to create snapshot portlet and snapshot query using server API
How to create snapshot portlet and snapshot query using server API
Regards
DheerajHi Sebastian,
I have used the query and it is working fine. but, How could i include the headers of the query also in to the Excel Sheet.
RehaanKhan. M
see the method discussed here
http://sqlblogcasts.com/blogs/madhivanan/archive/2008/10/10/export-to-excel-with-column-names.aspx
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
BPEL Portlets and Font issue in 10.1.4
We have successfully register the BPEL portlet in Oracle Portal 10.1.4. However, whenever we include a BPEL portlet on a page, it seems to change all the fonts??? Removing the portlet, and the fonts are better again.
Any ideas what might be causing this?
BradWSo, it looks as though the issue is with the Stylesheet used by the portlets. They use TR and TD elements etc which look as though they may override the other stylesheets inside the portal. Bad design by Oracle. Will be adding to my enhancement list...
-
What different between ADF Rich Portlet and Trinidad HTML Portlet?
Hi all,
I've some question about adding portlet to portal pages
What different between ADF Rich Portlet and Trinidaf HTML Portlet?
And benifit of each?
RegardsHi all,
I've some question about adding portlet to portal pages
What different between ADF Rich Portlet and Trinidaf HTML Portlet?
And benifit of each?
Regards -
JSR 168 Portlet and PORTLET_SCOPE session variables
Hi,
I have a JSR-168 portlet that is putting session variables on the PortletSession. I have some variables that use "PORTLET_SCOPE" for that particular portlet. This works fine if I add the portlet directly on a page, no problems. Its able to retrieve and put variables on the PortletSession with PORTLET_SCOPE and retrieve them properly.
The problem comes when when I have my JSR-168 portlet on a page, then select "Publish Page as Portlet", and then add that page (that contains the JSR-168 Portlet) to another page. Now, when I try to retrieve a variable that was put on the PortletSession w/ PORTLET_SCOPE, it returns null. So its like variables put on the PortletSession with PORTLET_SCOPE doesn't work properly if you add it as a page onto another page.
In case that wasn't clear, let's say I have Page1 which contains my JSR-168 portlet and I selected "Publish Page as a Portlet."
If I go to Page1, it works fine, no problems at all.
Now, I have Page 2. I add Page 1 to Page 2. NOW, the Portlet on Page 1 doesn't work properly and I've narrowed it down to a problem with the PortletSession when PORTLET_SCOPE is used. Has anyone else run into this problem? I'm guessing the problem is the fact that page is published as a portlet and PORTLET_SCOPE doesn't work properly. Is this a bug or expected behavior?? If so, is there a workaround?
Thanks in advance.Frank,
The taglib is not in the classpath of the Portal server. We access other methods of the ftl taglib, like <f:webResources relativePath='js/myScripts.js' />at places higher up in the JSP and it has no problems with those ftl taglib calls.
If I understand correctly, since the Portal is hosting a remote portlet, the Portal is only getting html from the remote portlet producer, not the actual JSP to compile into a web page. If that is true, the Portal never sees the taglib code, just the html that is produced from it - so it would not need the taglib in its classpath.
There is something special about the "invoke" method of the taglib where it makes a call back to the Enterprise server. I think when it tries to go back to the Enterprise server, the Portal server has a problem with it.
Thanks.
Edited by marshallbenfield at 08/15/2007 6:02 AM
Edited by marshallbenfield at 08/15/2007 6:03 AM -
What is the difference between JSR 168 portlets and WSRP portlets?
What is the difference between JSR 168 portlets and WSRP portlets?
Here is the difference between JSR168 and WSRP:
The WSRP specification does not make any statements as to implemention. Java's portlet specification, JSR 168, and WSRP are not competing technologies. JSR 168 may be used to define a portlet, and WSRP may be used to define a portlet's operations to remote containers. JSR 168 portlets and WSRP may be used together to define a portlet and to provide remote operations. Similarly, .NET portlets may be created for use with WSRP. Interoperability between JSR 168 and .NET WSRP implementations has been demonstrated -
Downloading portlets and webpage portlet
hello,
i have two questions:
* is it possible to download previously developed portlets, and how? (from where?)
* does there exist a portlet which just simply displays a web page? for example i will just include the URL and the portlet will get the webpage and display it within the portal
thank you in advancehello
I have tried to use iframe in jsp to capture the content of external URL(eg. www.google.com) and it works fine.
Besides, I just want to ask a question if the external site is down, the the iframe tag will return the error page from external web server. Is portal has some features to control the error page to be displayed( i mean the application can refer to specify error URL) when the exteral site is down.
Or any other good suggestion?
Thx in advice -
Web Clipping portlet and pdf files
Hi,
I have created a web clipping portlet which just includes a set of links to HTML and pdf files. When I try to open a link to a pdf file the web clipping portlet fails, but links to the html content work fine
Is it possible using web clipping to open the links to the pdf files and display them in the web clipping portlet ?
Thanks,Hi,
I have created a web clipping portlet which just includes a set of links to HTML and pdf files. When I try to open a link to a pdf file the web clipping portlet fails, but links to the html content work fine
Is it possible using web clipping to open the links to the pdf files and display them in the web clipping portlet ?
Thanks,
Maybe you are looking for
-
AT&T contract reset on Activation (of existing iPhone)
The other day I got back from Apple Repair Services my wifes iPhone that we shipped to them to fix a dead strip on her touch screen. Process was good as they sent us a loaner and we shipped back phone. Well anyhow, when we got the phone back, I went
-
i have tried the following but it didnt help; Hard reset 1. Press and Hold power button till the laptop turns off (5-7 sec approx). 2. Then unplug the AC adaptor. 3. Turn the laptop upside down. 4.
-
Contacts created on the iPhone do not get synced to Outlook Contacts
For some reason, contacts created on the iPhone do not get transferred over to Outlook Contacts. I sync the iPhone to my work computer for Calendar and Contacts. I sync to my home iMac for tunes, video, and photos. So far this is the only problem I'v
-
We have a Livecycle process that gathers data as xml and then merges the data with a form template using the GeneratePDF activity. Later we take the generated PDF and convert it to a tiff with the Output toImage activity. The PDF is 65k in size, bu
-
iCloud says that it will merge all my calendars on my iPhone. Does it means that eaven calendars, ea Google, will be included? Or does it means that only "local" calendars will merge?