How to customize a Java Portlet

Hi!
I'm writing a portlet in Java, with functionality I can't get
out of the standard Portal components.
This portlet will be used at a couple of different places, and
woiuld need to be differently initialized depending on where
it's used, but I haven't found a way to do that yet.
For a standard portlet, say a report, I can have bind variables
that can be configured through the portlets customization menu.
Is that possible to do with a Java portlet, and if it is, how is
it done?
///Yours, Jens Carlberg

Hi Jens,
There are a couple of PDK articles and samples that cover this
topic:
A Primer on End-User Personalization
http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/
articles/primer.preference.storage.html
How to Add Customization to your Java Portlet:
http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/
articles/adding.customization.html
JSP Services Portlet
HelloWorld Java Portlet
You can also watch two recorded online eSeminars on Java portlet
development at http://portalstudio.oracle.com/servlet/page?
pageid=832&dad=ops&_schema=OPSTUDIO
PDK-Java
Building Java Portlets
Finally, it's worth to check out the portlets in the Community
Contributions section, as some of those demonstrate how to
implement portlet customization.
Peter

Similar Messages

  • How to customize the Java Concurrent Program(PO Output for Communication)

    Hi,
    How to customize the Java Concurrent Program(PO Output for Communication)
    I need to add the Line level Ship To Address ,Line Notes and Extended Price fields on Java Concurrent Program.
    Please any body help/guide me in this regard.

    Hi,
    Changing Java Conc. program for "PO Output for Communication" is difficult.
    Actually, if you observe closely, "PO Output for Communication" program uses PO<HEADER/LINES..>_XML views.
    So if you could change these views and add your requireed columns to it, you can automatically see your changes in XML data file.
    See if the following link will you to get there.. http://chandramatta.blogspot.com/
    thanks,
    Matt

  • Reg: how to customize a java file

    Hi,
    I have a requirement where i need to modify the message which is right now being thrown on one of the seeded page.
    So for that i identified the place from where it is being thrown. It is from AccountHelper.java which is one of the standard page. So how to extend this and also how to tell the application that it needs to refer this new file instead of the standard one.
    Thanks,

    Hi Jens,
    There are a couple of PDK articles and samples that cover this
    topic:
    A Primer on End-User Personalization
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/
    articles/primer.preference.storage.html
    How to Add Customization to your Java Portlet:
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/
    articles/adding.customization.html
    JSP Services Portlet
    HelloWorld Java Portlet
    You can also watch two recorded online eSeminars on Java portlet
    development at http://portalstudio.oracle.com/servlet/page?
    pageid=832&dad=ops&_schema=OPSTUDIO
    PDK-Java
    Building Java Portlets
    Finally, it's worth to check out the portlets in the Community
    Contributions section, as some of those demonstrate how to
    implement portlet customization.
    Peter

  • How to make a java portlet using workshop?

    I installed weblogic 8.1 portal and the jsr168 support package.
    Can I make a java portlet (not jsp/html) using workshop? How?
    If I can, to make a new portlet should I drag a class file or java file to portal
    Thanks,
    Jason

    In workshop do:
    F1 (for help)
    Take a look at
    => Tutorials => Portal tutorial
    Geoffrey
    "Jason" <[email protected]> schreef in bericht
    news:3f9700f0$[email protected]..
    >
    I installed weblogic 8.1 portal and the jsr168 support package.
    Can I make a java portlet (not jsp/html) using workshop? How?
    If I can, to make a new portlet should I drag a class file or java file toportal
    Thanks,
    Jason

  • Question: How can I convert Java portlets into iViews? ...

    Hi David,
    Thank you for reading this post.  Currently, I have java portlets and have
    some questions converting them to iViews.  I have the iView conditions
    listed below with my questions:
    <u><b>iView Conditions:</b></u>
    <b>1. Usage of Correct Naming Conventions:</b>  If possible, can you show me a sample of
    the correct naming conventions?
    <b>2. Single Sign On:</b>  If possible, can you please elaborate more on this and possibly provide
    an example?
    <b>3. Session State (During the entire usage of an iView, session state
    and transaction integrity must be maintained)</b>. If possible, can you please elaborate more on this and possibly provide an example?
    <b>4.  Browser Independence (An iView must work with all supported versions of at least one browser type supported by Enterprise Portal).</b>  If possible, can you list supported versions?
    <b>5.  Look and Feel (The iView must present data in the Enterprise Portal
    look and feel and allow for the different personalization options that
    are possible with the SAP Enterprise Portal).</b>  If possible, can you please elaborate more on this and possibly provide an example?
    <b>6. Error Messages (The iView must be implemented in a way that provides
    default/ relevant/ meaningful error messages)</b> If possible, can you please elaborate more on this and possibly provide
    an example?
    <b>7. No Hard-Coded Paths </b> I understand this but just to make sure, can
    you possibly provide an example?
    <b>8. Special Characters (iViews must be able to depict reserved HTML
    characters)</b>
    If possible, can you please elaborate more on this and possibly provide
    an example?
    Thank you so much for your time and look forward to your
    response.
    Thank you,
    Baggett

    Hi, this question is addressed to anyone who could help, my apologies for any confusion.
    Thank you,
    Baggett

  • Building and Deploying Java Portlets

    I want to build a java portlet, the typical HelloworldApp.class. I've created the provider.xml file, the HelloWorldApp.class and I'm ready to deploy the provider. I follow the orders of the "How to build a Java Portlet" document. Then I go to the "Configuring OC4J" section where it says to refer tha article "Packaging and Deploying your provider". There, in the "Packaging your Provider" paragraph, says: 2. extract the template war file..." Where is that file?? Can anybody help. It's supposed to be an easy procedure. Isn't it? The same prosedure is followed to build a jsp portlet and a servlet portlet. Please help!!!
    Best Regards
    George Drepaniotis

    hi
    template.war file is in pdk.zip.
    it is in the template.ear file. when you extract template.ear file you can see that.
    i waste very much time to find it.i understand that
    oracle help documents are so complex and not clear.
    there are many products versions.and there is no organization to productbased documentation.
    if you know how to create .war and .ear file in windows200 please announce me.
    best regards

  • How to export/import customization infromation from a java portlet?

    I created a java portlet using the methods in oracle.portal.provider.v2.personalize and oracle.portal.provider.v2.preference packages as described in the document adding.customization.pdk.java.v2.html. I am using DBPreferenceStore instead of FilePreferenceStore for my application.
    When I am migrating from development to production, how do I export/import the portlet customizations to the new environment along with the pages?

    Here is an Oracle doc explaining how to use PrefenceStores (File and limited DB)
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/ARTICLES/HOW.TO.USE.PDKJAVA.PREFSTORE.V2.HTML
    But more directly applicable, the last paragraph of the API class documentation for DBPreferenceStore explains the information needed to do this.
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/JPDK/apidoc/oracle/portal/provider/v2/preference/DBPreferenceStore.html
    It explains what table is used to store the data, the default is "JPDK_PREFERENCE_STORE2". And explains that if you use your own, you have to specify the table name in the provider.xml. Since you don't seem to know which table, the implication is that you used the default (and were lucky enough that it was installed...it wasn't on my install of the jpdk).
    You should be able to extract the appropriate data from the "JPDK_PREFERENCE_STORE2" table.
    I hope this helps.

  • How to make a GUI java portlet?

    how can i make a Gui java portlets with JDeveloper?

    Check out the Portal Development Kit (PDK) available at http://portalstudio.oracle.com/
    Hope this helps,
    Rob

  • How can I get the orclownerguid (unique user number) in Java Portlet?

    Hi,
    I find a unique number for each portal user in OID, it calls orclownerguid.
    And I try to obtain this number in my portlet Java with the JPDK.
    How can I get the orclownerguid in Java Portlet with JPDK?
    thanks
    regards
    jerome laforge

    Hello,
    I just realized that I missunderstood your question.
    We have several way to pass (and send) parameter to a portlet:
    - OracleAS Portal page parameters that allow the browser user to define the way the parameter is send to the portlet
    - generic URL parameter (public parameters)
    - private paramter (a parameter that is targetted to a single portlet instance)
    In you case, you can use public parameter, but you have to explicitly says that your portlet consume URL parameters, so set the passAllUrlParams tag to true in the provider.xml file.
    Also I invite you to read the sample we have in the PDK that show how to use private parameter and page/portlet parameters, and the associated articles you can find on http://portalstudio.oracle.com
    Regards
    Tugdual Grall

  • Java portlet customization depending user belongs an OID group

    Hi
    I have developped a Java portlet with a customization display, depending user belongs a specific OID group or not.
    I used a preparedStatement to call the wwsec_api.is_user_in_group PL/SQL procedure.
    My problem is that it seems that OID does not close connections as our portal falls after 2 or 3 days when I install this portlet in production.
    Therefore I wonder if there is a bug in the API wwsec_api.is_user_in_group (if it close OID connection after returning the boolean result).
    Is there a more efficient way in a Java portlet to check if a user belongs an OID group ?
    Is there a bug in wwsec_api.is_user_in_group ?
    Thanks for your help,
    Best Regards,
    Jean-Christophe

    Hi Rajiv,
    I tried out the following code for getting the database reference which I got from some posts on net.
    tcDataProvider db;
                        tcUtilityFactory tcu;
                        ConfigurationClient.ComplexSetting config = ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
                        final Hashtable env2 = config.getAllSettings();
                        tcu = new tcUtilityFactory(env2, "xelsysadm","Password");
                        tcBaseUtility mBaseUtil = (tcBaseUtility) tcu.getUtility("Thor.API.Base.tcUtilityOperationsIntf");
                        DBReference=mBaseUtil.getDataBase();
    But when I execute the code, I get an error :
    Error while getting utility Thor.API.Base.tcUtilityOperationsIntf[Ljava.lang.StackTraceElement;@619eeaaThis must be at the getUtility method call.
    Can you please guide me as to what I might be doing wrong here?
    Thanks,
    $id

  • Java portlet customization depending user in a group

    Hi
    I have developped a Java portlet with a customization display, depending user belongs a specific OID group or not.
    I used a preparedStatement to call the wwsec_api.is_user_in_group PL/SQL procedure.
    My problem is that it seems that OID does not close connections as our portal falls after 2 or 3 days when I install this portlet in production.
    Therefore I wonder if there is a bug in the API wwsec_api.is_user_in_group (if it close OID connection after returning the boolean result).
    Is there a more efficient way in a Java portlet to check if a user belongs an OID group ?
    Is there a bug in wwsec_api.is_user_in_group ?
    Thanks for your help,
    Best Regards,
    Jean-Christophe

    We used Java JNDI API's to check if a user was in a group, but were unable to get what are the list of groups the user is a memeber of.,
       * Checks if the specified userDN is a member of the specified groupDN.
       * @param userDN  Distinguished name of the user
       * @param groupDN Distingushed name of the group
       * @return  true - if the user belongs to the group, else false
       * @exception NamingException if any directory operation fails
      public boolean isUserInGroup(String userDN,String groupDN)
        throws NamingException {
        boolean ingroup = false;
        // Filter to check if the user DN is a member
        // A user is a member of a group if the uniqueMember attribute of that group entry
        // has the user DN value.
        String filter = "(uniqueMember="+userDN+")";
        // Initialize search controls to search with scope as sub tree
        SearchControls searchControls = new SearchControls();
        searchControls.setSearchScope(SearchControls.SUBTREE_SCOPE) ;
        // Set the attributes to be returned
        searchControls.setReturningAttributes(new String[]{"cn"});
        // Search under the specified group
        NamingEnumeration  results = dirctx.search(groupDN, filter, searchControls);
        // If the search has results, then the user is a member
         if (results.hasMore()) {
             ingroup = true;
         }  // else user not present, i.e defaulted
         return ingroup;
      }Regards
    Elango.

  • How to retrieve which user-agent in a java portlet?

    Is there a way to get http user-agent info about which browser requested a page with a portlet from within the java portlet?
    It seems like the request.getHeader() always returns the same value no matter what browser we use.
    Have also tried portletRenderRequest.getOriginalHeader() but this method also returns the same result.
    Does the PPE replace these headers or what..?
    Regards,
    Per A Jorgensen

    Hi Per A Jorgensen,
    I see what you mean. I just deployed a simple portlet which displays the user-agent header property.
    Here are my observations:
    1. If you access the page as user1 from Mozilla, I see the following:
    Browser Agent:      Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 RPT-HTTPClient/0.3-3 RPT-HTTPClient/0.3-3
    2. If I now access this page from IE, as user1, then I still see my browser agent as:
    Browser Agent:      Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 RPT-HTTPClient/0.3-3 RPT-HTTPClient/0.3-3
    3. If I now access this page from IE, as user2, then i see the following details:
    Browser Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) RPT-HTTPClient/0.3-3 RPT-HTTPClient/0.3-3
    4. Now I access the same page from Mozilla (after logging out of user1) as user2, I see the following:
    Browser Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) RPT-HTTPClient/0.3-3 RPT-HTTPClient/0.3-3
    Hmm.. interesting.. it looks like, whoever access the provider first, fixes the user-agent. I need to investigate more into it to find out information as to why this is happening.
    In the mean-time, you can be rest assured that as long as you dont have multiple user's accessing the portlet as the same user, you will get the correct information.
    thanks,
    Harsha

  • URGENT:How to pass parameter to page from java portlet

    Hi,
    All i need to do is to pass a parameter from my custom java portlet to an omniportlet. Is it achievable? If so, please point me direction!
    Thanks,
    Ceren

    Hmm yeah or else you could use java.net.URLEncoder.encode(String s) to encode it automatically.
    (java.net.URLDecoder.decode(String s) decodes btw)

  • I can not hide borders in/with Java portlets

    I not know, is this Oracle bug, but:
    1) I have unchecked "Show borders" in Default Customization. - This helps not.
    2) In R1 was methods show/hide Borders. In R2 these methods was not!!!
    N.B. !!! These methods is not deprecated, but in R2 these methods not exists! Why?
    3) In R1 I have possibility to construct in edit/default customization form with buttons Apply/OK/Cancel. How can I construct this form in JSP (Default customization)?
    4) In xml_tag_reference_v2.html is:
    Usage with class oracle.portal.provider.v2.render.RenderManager:
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <showPage>string</showPage>
    <autoRedirect>boolean</autoRedirect>
    <charSet>iana_charset</charSet>
    <contentType>mime_type</contentType>
    <pageExpires>number</pageExpires>
    <pageParameterName>string</pageParameterName>
    <renderContainer>boolean</renderContainer>
    <renderCustomize>boolean</renderCustomize>
    </renderer>
    renderContainer - Defines whether RenderManager should automatically render the portlet's container (border and title) before and after processing/invoking the page.
    renderCustomize - Defines whether RenderManager should automatically render the portlet's container (border and title) in "Edit" and "EditDefaults" modes before and after processing/invoking the page.
    My question: if I set renderContainer to FALSE, then I do not have border with Java portlet. But, I do not have customization form buttons in edit/default customizations!!! I have set renderCustomize to true, but this not helps.
    Can any help me?! I must hide borders, who comming with JSP portlets. Thanks in advance.
    Cheslav

    go to settings/itunes & app store tap on the ID  and then view account, log in  and have a look at payment information to see available payment options

  • How to customize events, execute stored procedures using JSF and ADF BC

    As a java beginner, I started with developing simple web application using JSF and ADF business component through visual and declarative approach. I need to know how to customize events, execute stored procedures, invoke functions on triggering events associated with rich controls. for eg. how to write customized functions on button click or checkbox click events to achieve business requirement and can be modified whenever required.
    Edited by: 792068 on Aug 31, 2010 9:40 PM

    Which business layer is prefered to create interactive data model: 1. ADF business components or 2. Enterprise JavaBeans using Java persistance API (JPA) or 3. Toplink 4. Portlets
    which minimizes writing low level codes and how much OOPS knowledge is required for creating above business layer binding data to viewcontroller layer?

Maybe you are looking for