Customization of Portlet

Hi,
I'm using JPDK 1.4, Portal 3.0.8.9.8 on Win 2000.
I've tried following the example on customization of the MyFirstPortlet and I'm having the following problems:
1. The greeting messasge doesn't get updated at all. Only the title gets updated. Any clue?
2. The Customize page is showing 2 sets of the header and footer, i.e. the Customize Banner and the OK, Apply and Cancel buttons. If I remove the lines, renderCustomizeFormHeader and renderCustomizeFormFooter, it appears ok but the title and greeting do not get updated.
3. Apparently, the documentation in PDK is not updated. A lot of the classes, tags referenced in the documentation are outdated and I spent lots of time trying to figure out why certain errors were generated.
I would appreciate it very much if someone could help me.
Regards,
Alex Tan

Hi,
Your suggestion for my 2nd problem works like a charm.
I've realised if I use BaseCustomization, I could customize the greeting. I don't quite know how to use NameValuePersonalizationObject though. Appreciate if you could show me some code.
Now, I've got a serious problem after I've tried using NameValuePersonalization. I can't even run a normal portlet using BaseCustomization. I got the following error:
[23/05/2001 21:14:54:529 CST] hello3/FilePersonalizationManager Error instantiating Hello3Customization :
[23/05/2001 21:14:54:529 CST] hello3/FilePersonalizationManager Error instantiating Hello3Customization :
[23/05/2001 21:14:54:549 CST]
java.io.IOException:
at oracle.portal.provider.v1.FilePersonalizationManager.createDataObject(FilePersonalizationManager.java:1000)
at oracle.portal.provider.v1.FilePersonalizationManager.create(FilePersonalizationManager.java:294)
at oracle.portal.provider.v1.PortletRendererUtil.getDefaultEditData(PortletRendererUtil.java:792)
at oracle.portal.provider.v1.PortletRendererUtil.getLanguageDefaultEditData(PortletRendererUtil.java:810)
at oracle.portal.provider.v1.PortletRendererUtil.getUserEditData(PortletRendererUtil.java:825)
at oracle.portal.provider.v1.PortletRendererUtil.getEditData(PortletRendererUtil.java:703)
at hello3.hello3._jspService(_hello3.java:61)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java)
at oracle.jsp.JspServlet.internalService(JspServlet.java, Compiled Code)
at oracle.jsp.JspServlet.service(JspServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at oracle.portal.provider.v1.http.JspRenderer.renderBody(JspRenderer.java:116)
at oracle.portal.provider.v1.RenderManager.render(RenderManager.java:164)
at oracle.portal.provider.v1.http.ServletProviderResponse.showPortlet(ServletProviderResponse.java:376)
at oracle.portal.provider.v1.http.HttpProvider.dispatchProviderAction(HttpProvider.java:613)
at oracle.portal.provider.v1.http.HttpProvider.service(HttpProvider.java:374)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:402)
at org.apache.jserv.JServConnection.run(JServConnection.java:260)
at java.lang.Thread.run(Thread.java:479)
My provider.xml is
<provider class="oracle.portal.provider.v1.http.DefaultProvider" session="true">
<portlet class="oracle.portal.provider.v1.http.DefaultPortlet" resource="Hello3Bundle" version="1">
<id>1</id>
<name>MyThirdPortletJSP</name>
<title>My Third Portlet - JSP</title>
<description>This is my third portlet implemented in JSP.</description>
<timeout>5</timeout>
<timeoutMessage>My Third Portlet timed out</timeoutMessage>
<showEdit>true</showEdit>
<showEditDefault>true</showEditDefault>
<showPreview>false</showPreview>
<showDetails>true</showDetails>
<hasHelp>true</hasHelp>
<hasAbout>true</hasAbout>
<acceptContentType>text/html</acceptContentType>
<renderer class="oracle.portal.provider.v1.RenderManager">
<appPath>/hello3</appPath>
<appRoot>d:\oracle\iSuites\Apache\Apache\htdocs\hello3</appRoot>
<showPage>hello3.jsp</showPage>
<editPage>hello3custom.jsp</editPage>
<editDefaultsPage>hello3custom.jsp</editDefaultsPage>
<aboutPage>about.htm</aboutPage>
<helpPage>help.htm</helpPage>
<showDetailsPage>hello3fullscreen.jsp</showDetailsPage>
<renderContainer>true</renderContainer>
<renderCustomize>false</renderCustomize>
</renderer>
<personalizationManager class="oracle.portal.provider.v1.http.DefaultPortletPersonalizationManager">
<dataClass>Hello 3Customization</dataClass>
</personalizationManager>
</portlet>
</provider>
Am I missing something?
Regards,
Alex
null

Similar Messages

  • Customize from portlet full-screen

    I am calling a portlet in full-screen view ('STARS3.TEACHERS_CLASS_ROSTER.show'). I would like to give the user the option of customizing the parameters (row order, break etc.). What can I do to give them the option to 'cutomize' these options in full_screen mode.

    Hi,
    You can call the customization form of the component like this 'STARS3.TEACHERS_CLASS_ROSTER.show_parms'. The user should have customize privilege on the component.
    Thanks,
    Sharmila

  • Customize on portlet header

    Hi all,
    Is there a way to not display the "customize" link on the portlet header? I am currently using the portlet header to display the name of the form that the user will work on, and there cannot remove the header.
    Thanks

    Hi,
    Please check the following article: http://technet.oracle.com:89/ubb/Forum70/HTML/000965.html
    Hope this helps.
    Regards,
    Jatinder

  • Need to remove the "customize" from a portlet

    Hi Everyone,
    Hoping someone can help with this...
    I would like to remove the "customize" link from the portlet header. There are no user servicable parts inside when the portlet appears, it has essentially all it needs to function properly.
    Can I make a PL/SQL call before the page is rendered to disable this?
    Is there an example somewhere I have not yet found?

    I'm sorry most of these options won't help.
    1) Header will disappear altogether, Including title.
    2) The same problem
    3) If you don't give Edit privileges to a folder you still will be able to customize the portlet.
    4) Can work, but it is very time consuming to create a portlet with the same functionality as the folder portlet. I heard that this will be solved anyway in future releases.
    Another option is giving the header (customize) text the same color as the background (using page style). But this option also has disadvantages.
    a. You will still be able to click on customize (although you cannot see the text)
    b. In some browser you still see the underline.
    Regards,
    Bram
    null

  • Basic portlet customization

    Hi,
    We are developing a portal using Oracl10g portal
    I just added the Baisc Portlet in the portal page, but it has button with title "GO"
    How can i customize that portlet to change the button title to "STart Search" inspite of "GO" ?
    Regards
    Mohamed Hammed

    hi mohammad
    i am facing the same problem so if u solve it please let me know

  • Customizable and non-customizable Portlets

    Hello
    We are trying to design a web site that will allow a central area administrator to publish a few portlets in a page (Navigation bar, banner etc.). This cannot be modified by users.
    However, there are a few portlets within the same page which the user wants to modify (typically HTML portlets, news etc.)
    How do I do this? Can I have portlet level security access (modifiable or not?)?
    Thanks
    Tam.
    null

    Customization privilege can be granted by page or by tab. The right to customize a portlet is granted by the portlet developer. If the user has any level of customization privilege on a page, and the portlet supports customization, the user will see the customize link.
    For folder portlets, the page owner can turn off the customize link in the Edit Defaults page for the portlet (this requires release 3.0.9 of Portal).
    For other built-in portlets that display a Customize link by default (such as the HTML portlet), you can turn off the portlet header to prevent users from customizing the portlet.
    If you're building custom portlets or using Portal application components, you can explicity grant customize privilege to users and groups.
    As for Add/Move/Delete, in 3.0.9 the folder portlet allows you edit items directly in the portlet - you don't have to navigate to the content area.
    I hope that's the information you're looking for.
    Regards,
    Jerry

  • Unable to bind portlet parameter with page parameter in webcenter portal

    Hi All,
    I am trying to bind portlet parameter with the page parameter so that I can ahieve some business requirements.
    Here is what I did,
    In my Portlet producer application:
    1) Created standards based portlet (jsr 286) with view.jspx and edit.jspx with rest of the things being default.
    2) In my portlet.xml created two parameters and assigned these parameters to the portlet created above.
    3) In the view.jspx added couple of output label adf components in the page.
    4) deployed this to integrated weblogic server.
    In my WC portal application:
    Created a new page and added the portlet to this page( WSRP connection already exists).
    deployed portal application on integrated server.
    In the edit mode of the page I added one page parameter(Param1) and some default (constant) value added.
    What I want is this:
    when Param1 value is One display first output label and
    when Param1 value is Two display second output label.
    I am using jdev 11.1.1.5.0 with integrated weblogic server.

    There is no need to use page parameters for this.
    You also have two types of parameters depending on what you want...
    1) Preferences: these parameters can be used on a user based level. This means that users can personalize the portlets. When a user change the value of a preference, it is only applied for that specific user
    2) Public parameters: these parameters are used to customize the portlet. The value you set in these parameter apply for all users.
    I have made a simple example to show these two differences: http://www.yonaweb.be/PortletTest.zip
    The portlet has 4 inputText on it. The first two can be set by specifying One or Two into the preference.
    The other 2 inputText uses the value of the public parameter.
    You should only deploy the portlet and consume it in a webcenter application. In the webcenter application, you don't need to do anything special. All is done in the portlet.
    I am guessing you don't have written the code that will get the value of the parameter:
    in case of a preference you will get the value by following code:
       PortletRequest request = (PortletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
       PortletPreferences preferences = request.getPreferences();
       return preferences.getValue("outputparam", "One");In case of a public parameter (for customization instead of personalization) you use following code to retreive the value of a public parameter:
    PortletRequest req = (PortletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
      String param = (String)req.getParameter("PublicParam");
      if(param == null)
          return "Three";
      return param;This code can also be found in the sample portlet application.

  • NEXT button on report portlet shows 10 rows-maximum rows per page=9999

    I created a report with the DB Provider portlet. I set the maximum rows per page to 9999 when displayed as a portlet and as a full page. I put the portlet on a page and it only shows 10 rows and then the next button.
    If there are exactly 10 rows I get the next button. If I click it the next page loads with no data. If there are less than 10 rows there is no button.
    If I create a new portlet it does not do this. I'm only having the problem with one portlet now but I've seen it in the past. I usually just build the portlet again but I would like to know how to fix it.
    I can't customize the portlet because of bug #3467032.

    Select customize and set the number of rows to 9999. I'm guessing that it's currently set to 10.

  • Making a form portlet reusable by allowing a parameter to be passed to it

    I have a form that allows maintenance on records. I need to filter the records that a user can maintain, (and insert) based on a column value. I can accomplish this by setting the default value for the (hidden) column. When I query and maintain the records in the form it behaves correctly by only affecting the records for the default value. Now I want to place the form into multiple pages as a portlet.
    The goal is to be able to change the default value for the portlet (reuse). I've seen many postings on how to pass things to and from forms, but nothing seems to address allowing a user to easily customize the portlet.
    Any bright people out there have a creative solution to this?

    I discovered the way to do this is by making the form based on a procedure and creating link to the form. When a form is based on a table or view, the link will pass field information and return records, when a form is based on a procedure there are no records to retrieve so it sets values passed as default.

  • Using Blance Score Card Portlets

    Hi,
    I have installed portal 3.0.9 for use with Oracle Applications according to metalink note 146469.1.
    I'm attempting to deploy the Oracle Balance Score Card 5.0.2 Portlets and I'm having the following problem.
    Background:
    I have created two applications users with different responsibilities.
    I have created a score card which each of my two users have full access to.
    I created a portal page with the KPI indicator portlet.
    The portlet is set to view the scorecard and KPI's I have created.
    Problem:
    When I login to portal as Apps user 1, I can see the scorecard, if I log into the portal as Apps user 2, I'm getting an access denied error in the KPI portlet.
    If I customize the portlet as user 2, make no changes but press apply then I can see the KPI, but If I log back into the portal as Apps user 1 I then get the access denied error again.
    Can any one explain this security model ?? Will I need a different portal page for every Apps user ?? ( there could be 1000's)
    Any help would be I great help.

    Nanda - for mobile dashboards, you cannot really expand the column width at run time. Another work-around we did for a recent mobile dashboard implementation was to enable the scorecard property "Rows are selectable".
    In this way, when you long press any cell of the scorecard, the complete text gets displayed in a separate bubble (something like a mouse over value). This can be really helpful when you have real estate constraints.

  • Customization Form at top populate Report Results at Bottom of Page??

    Is it possible to develop a customization form and its report on the same page?
    Here is the scenario. We want the customization form on the top of the Portal page, and then we want the results of the query form (the report results) to populate in the bottom of the Portal page. The customer desires this so they can still see what information they queried on to get the specified report results.
    Does anyone know a way to do this or has anyone successfully developed it?

    The customization form portlet would need to pass the parameter(s) to the other portlet. You may want to check out the parameter passing portlet samples in the PDK. The Smart Web Services Portlets work in a similar way too.
    If you want end users to show what their previously set parameters were, the customization portlet should read the previously passed parameters (along with the report portlet) and show them.
    You may also consider building a report using the wizards. Components can take parameters very easily through the Portal 9.0.2 (Oracle9iAS v2) page parameters feature.

  • Customizing the Recent Objects Portlet

    Hi,
    I want my Recent Objects portlet to show only those items added to specific page group.I dont find that option anywhere when I customize that portlet.
    Thanx
    -Vipul

    Hi,
    This is not possible. There is a favorites portlet which you can use to bookmark important links.
    Thanks,
    Sharmila

  • How can I put "Favorites"portlets for various users in a page?

    How can i put in a page two "Favorites" portlets (one for each user that log on into the page and one for each group of users that logon into the page),so each
    user can customize (add favorites,delete favorites,..) it's own "Favorites" portlet and the other "Favorites" portlet is only customizable by a
    group of user,so if the user log on is not in that group can't customize the portlet.

    The favorites portlet is set up to work this way automatically. You put one version on a page, and the customizations are stored for each individual user. So the same portlet displays different favorites based on the logged in user. At this point, there is no way to define favorites for a group.

  • Changing Portlet header text dynamically

    I trying to change the Portlet header text depending on the value of a selected page parameter. e.g. I selected the FTSE 100 stocks link on a page and I want the portlet to display the list of stocks and the banner to say "FTSE 100" similarly if I pick the NASDAQ link I want the same portlet to list the NASDAQ stocks and the banner to say "NASDAQ". I have the stocks changing using dynamic pages and page parameters but I can't seem to get at the portlet banner title variable. I working on the latest portal release.

    Hi Lisa,
    It just so happens that the "Portlet Wizard" in JDeveloper creates the default edit view to modify the page title. Here is the code it created:
    <pre>
    // Get the PortletRenderRequest and Writer
    PortletRenderRequest pr = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    PrintWriter out = pr.getWriter();
    // Display a greeting
    String userName = pr.getUser().getName();
    out.println("<p>Hello " + userName + ".</p>");
    out.println("<p>This is the <b><i>Edit</b></i> render mode!</p>");
    // Customize the portlet title
    String actionParam = PortletRendererUtil.getEditFormParameter(pr);
    String action = request.getParameter(actionParam);
    String title = pr.getParameter("filebrowse_title");
    NameValuePersonalizationObject data = null;
    try
    data = (NameValuePersonalizationObject)PortletRendererUtil.getEditData(pr);
    catch(AccessControlException ae)
    throw new ServletException(ae);
    catch(PortletNotFoundException pnfe)
    throw new ServletException(pnfe);
    // Cancel automatically redirects to the page, so
    // will only recieve OK or APPLY
    if (action != null)
    data.setPortletTitle(title);
    try
    PortletRendererUtil.submitEditData(pr, data);
    catch(AccessControlException ae)
    throw new ServletException(ae);
    return;
    // Otherwise just render the form
    title = data.getPortletTitle();
    out.println("<table border='0'><td width='20%'>");
    out.println("<p align='right'>Title:</p></td><td width='80%'>");
    out.println("<input type='TEXT' name='filebrowse_title' value='" + title + "'>");
    out.println("</td></table>");
    </pre>
    I hope this helps!!!
    -Sean

  • Displaying category portlets in alphabetic order

    Hi Folks,
    When I publish a Category Portlet all items inside this portlet appear in a randomic order.
    I wish they could appear in alphabetic order.
    Is that possible ? How can I do it ?
    Thanks!

    The items in a category portlet are sorted by the folder and the region id within the folder.
    It is not possible to provide a sort order for the items currently, however in 9.0.2, this portlet will be replaced by a customizable search portlet, which allows different sorting options.

Maybe you are looking for

  • Can't create Form! Why? Any ideas?

    I used a wizard to create a form. But when i click on finish button, nothing happens. I waited for some time and the clicked on navigator. The form wasn't there in my provider (where are reports and charts). I used find with the name of my form and f

  • Regarding the BAPI calls without input

    Hi all, We are developing on webdynpro component. I came across a scenario where we call the BAPI through Adaptive BAPI model. This bapi doesnt take any input parameters but returns 7 tables with data. So, My problem here is i am not getting output i

  • 1Z0-117 topics

    Looking at http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&get_params=p_exam_id:1Z0-117&p_org_id=&lang= , i noticed that the principal categories of topics are SQL Statement Tuning and Parallel Queries (those with red).

  • Download PSE 12?

    To cure a PC problem I have reinstalled Windows 64 Bit on my PC which means I need to reinstall PSE 12.  I have a record of the serial number but I can't find where to download the files from as any link to a download on the Adobe site takes me to PS

  • Fixed QT problem with 7.2 download, but can't start windows even in safe md

    Last night I fixed the iTunes problem with my old computer (which my iPod is linked to), and this morning when I tried to start up, I got an UNMOUNTABLEBOOTVOLUME. I tried to start safe, and it sends me back to the UBV with a STOP: 0X000000ED message