Portlet Edit Mode (customize)

Hi,
i have a portlet with edit mode on. i want to open a form when
the user clicks customize link. How to do this.
ur suggestion are welcome.
thanks

Hi,
there is a WebCenter forum where you can post Portlet specific questions
WebCenter Portal
Frank

Similar Messages

  • How to make a redirect without auto-redirect from the portlet "edit" mode?

    How to make a redirect without auto-redirect from the portlet "edit" mode?
    I use some sofisticated customizing with server-side validation of the form data. I want to redirect to the page of the portlet "show" mode and to the "edit" mode depending on the validation results. How can I do it?

    Heay.....this worked for me.
    I am able to change the mode programatically from edit to show.
    HttpPortletRendererUtil.handleEditAction(portletRenderRequest,"OK");
    I removed Apply , OK and Cancel buttons and applied my own Submit and Back button in Personalize mode and then change the mode to show on click of Back button using the above mentioned statement.
    Thanks
    ~Neeraj Sidhaye
    Try_Catch_Finally @ Y !
    ExtremePortal @ Gmail Dot Com

  • How to remove default Apply, OK and Cancel buttons in portlet edit mode.

    Hi,
    Iam facing problem in customizing default edit mode of portlet, my question is how to remove those default buttons and how to implement our own links for SAVE and CANCEL functionality. Because if we implement our own <form> in edit JSP page then default form will override our own <form> and default buttons works rather then our own forms.
    Please someone help me on this.
    Thanks
    Abhishek

    Ah, this one is easy, if im not mistaken, set this tag in your provider.xml
    <renderCustomize>false</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.
    This however means you have to write your own renderer for the customize page. Then you can add your own code for the buttons and the events behind them.
    I created my own derived container and added this line to my provider.xml
    <containerRenderer class="nl.rsm.eventCalendar.myContainerRenderer"/>
    This is however for rendering the showmode of the servlet, dont know if this is the same
    render class for the editmode.
    Do you realy need custom save functionality, Oracle also has something called DBPreferenceStore, you can store self defined attributes into the database. Perhaps this is sufficiant enough.
    anyway good luck, if you find out all the correct steps to take, please share, im also interested

  • Portlet edit mode & window state

    Hi!
    I am developing a portlet that needs to be user-customizable. Hence it has an edit mode. When I publish this portlet and use it in a webcenter app, the portlet becomes maximized when accessing the edit screen. Is there a way to prevent this? I prefer the portlet to stay in normal mode at almost all of the time.
    Regards,
    Jeroen van Veldhuizen

    Hi,
    there is a WebCenter forum where you can post Portlet specific questions
    WebCenter Portal
    Frank

  • Portlet Edit Mode in a Remote Portlet doesn't work with JSP

    I am facing a strange problem. I created a protelet and attached the edit to a JSP Page(edit.jsp). When I create a portlet of this and display in a portal, the edit works fine in case of a local portlet. But when the same is made as a remote portlet, I get an Operation failed fault.
    The exception is:
    Fault: {urn:oasis:names:tc:wsrp:v1:types}OperationFailed
    Internal Server Error: Page Flow [testPortlet.edit.edit.jsp] is invalid..; nested exception is: java.lang.IllegalStateException: Page Flow [testPortlet.edit.edit.jsp] is invalid
    Does anyone know why the edit in a remote portlet works only with a page flow?

    There is no edit mode defined in this portlet.
    Subbu
    Chandra Mouli Parameswaran wrote:
    Here you go!. This is the portlet file on the producer side.
    <?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 definitionLabel="portlet_2" title="ViewQuotesController">
    <netuix:titlebar/>
    <netuix:content>
    <netuix:pageflowContent contentUri="/viewQuotes/ViewQuotesController.jpf"/>
    </netuix:content>
    </netuix:portlet>
    </portal:root>

  • WLP 10 & Portlet Edit Mode

    Hi,
    is it possible (and how) to call a pageflow action in place of a jsp for
    the portlet's edit mode ?
    Emmanuel

    From Workshop 10.0, you can add an Edit mode to the portlet's titlebar
    (e.g. drag from the Palette, right click on the titlebar). Then, select
    the Edit Mode in the outline or editor window, go to the Properties
    view, select the Content Path entry, and push the "..." button. A dialog
    will popup which prompts if the you want to select a jsp or a pageflow;
    choosing pageflow will give a class picker. Select your pageflow class.
    The Content Path attribute will become the /a/b/Controller.jpf uri of
    the pageflow.
    Greg

  • Upload functin works in Edit mode but not in View mode

    I am using the Oracle AS 10g PDK to integrate struts application into Portal. I found the upload function works fine in portlet edit mode, but it doesn't work in view mode (Go to the "The page cannot be found" and URL is "http://servername/portal/page"). Does anybody know the reason.

    Hi there
    Can you post a screen capture of what your Timeline looks like?
    Odds are your Click Box is pausing in a weird place.
    Cheers... Rick
    Helpful and Handy Links
    Begin learning Captivate 5 moments from now! $29.95
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcererStone Blog
    Captivate eBooks

  • Add Content button not rendered inside Portlets on edit mode

    Hi,
    I have a requirement where administrators will add some external content(Add content) either from taskflow or portlet and that external content (along with taskflow output) will be shown to the users based on some logic performed inside the taskflow/portlet bean code.
    This PanelCustomziable should render AddContent button inside the portlet when pressing ctrl shiftE, but its no doing so? Where as the same PanelCustomizable renders AddContent button inside the taskflow on edit page? Any settings or changes needs to be done to make it work in porlet when consumed in portal?
    a)taskflow cannot be selected for this purpose, as there will be only a single instance of the taskflow across the portal and it cannot retain runtime MDS changes to a specific instance (Unless we design the ADF taskflow with MDS customization layer). By default, any runtime change in one taskflow instance will be propagated to all the other taskflow instances of the portal.
    (For eg.. Admin drops this taskflow onto a page1 and adds a image(external content) using the button AddContent inside the taskflow because of PanelCustomizable and close the page. He drops the same taskflow from RC only to find that the changes he done on page1 is being retained here ..its not resuable because of no MDS per instance)
    So we selected Portlet for this purpose, as it has the inbuilt personalization framework. Admin can personalize each portlet instance and drops on the the same page and diff page again. But with portlets, Add Content is not rendered.
    Its not just external content, the taskflow / porltet has some logic to perform and displays some output based on the ruleId which is the input parameter.
    Taskflow or jsff code
    ==================
    <cust:panelCustomizable id="pc1">
    <cust:showDetailFrame text="rules content" id="sdf1"
    shortDesc="rules content">
    <af:panelGroupLayout id="pg1" >
    <af:outputText label="RuleId" id="ot1" clientComponent="true"/>
    </af:panelGroupLayout>
    </cust:showDetailFrame>
    </cust:panelCustomizable>

    Can you please post this question to weblogic.developer.interest.portal
    newsgroup.
    Thanks
    "Lodewijk Spijker" <[email protected]> wrote in message
    news:3f165945$[email protected]..
    Hi,
    i am using Workshop 8.1 (GA release july) and i have discovered a bug (ora
    feature) with respect to the beta version.
    i have created a simple portlet with a view mode and an edit mode. When i
    place the portlet on the very first page of a one book portal, it works
    perfectly. However, i have a book with three pages and placed the portleton
    the second page. Now when i put the portlet in edit mode, by clicking the
    edit button, i am directed to the first page of the portal and the portlet
    will not show.
    Inspection learned that the URL generated for the edit button, didn't
    contain the _pagelabel parameter. When i added the parameter manually it
    works fine.
    A final remark is that the buttons in the titlebar have no icons thebrowser
    can load.
    hope someone can help me out,
    Lodewijk

  • How to customize 'Edit Mode' screen buttons

    Does anyone know how to customize the buttons on the screen in 'Edit Mode' of Java portlets?
    I would like to change the text of the buttons intead of the standard 'Apply, OK and Cancel'.
    Please advise.
    Thanks.

    You could actually change these Labels on the buttons by modifying the DefaultContainerRenderer for the required PortletDefinition. By default every mode renders data using the DefaultContainerRenderer class, this class is capable of painting the Headers and Footers.
    You need to write a new class MyDefaultContainerRenderer extending from DefaultContainerRenderer and override the method renderDesignFormBodyBegin(..).
    You should be very careful in overriding this method as not to effect the base fucntionality. Also these Labels are actually NLS compliant so you also need to make sure to be NLS compliant for the new labels.
    Finally, you need to specify the PortletDefinition to make use of new MyDefaultContainerRenderer excluding the default one by adding the following tag under portlet definition tag:
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>1</id>
    <name>portletName</name>
    <title>portlet Title</title>
    ...... <b><containerRenderer>your.company.package.MyDefaultContainerRenderer</containerRenderer></b>
    <render class=".......>
    </portlet>

  • Bug or feature : Using portlets with edit mode on a page in the portal

    Hi,
    i am using Workshop 8.1 (GA release july) and i have discovered a bug (or a
    feature) with respect to the beta version.
    i have created a simple portlet with a view mode and an edit mode. When i
    place the portlet on the very first page of a one book portal, it works
    perfectly. However, i have a book with three pages and placed the portlet on
    the second page. Now when i put the portlet in edit mode, by clicking the
    edit button, i am directed to the first page of the portal and the portlet
    will not show.
    Inspection learned that the URL generated for the edit button, didn't
    contain the _pagelabel parameter. When i added the parameter manually it
    works fine.
    A final remark is that the buttons in the titlebar have no icons the browser
    can load.
    hope someone can help me out,
    Lodewijk

    Can you please post this question to weblogic.developer.interest.portal
    newsgroup.
    Thanks
    "Lodewijk Spijker" <[email protected]> wrote in message
    news:3f165945$[email protected]..
    Hi,
    i am using Workshop 8.1 (GA release july) and i have discovered a bug (ora
    feature) with respect to the beta version.
    i have created a simple portlet with a view mode and an edit mode. When i
    place the portlet on the very first page of a one book portal, it works
    perfectly. However, i have a book with three pages and placed the portleton
    the second page. Now when i put the portlet in edit mode, by clicking the
    edit button, i am directed to the first page of the portal and the portlet
    will not show.
    Inspection learned that the URL generated for the edit button, didn't
    contain the _pagelabel parameter. When i added the parameter manually it
    works fine.
    A final remark is that the buttons in the titlebar have no icons thebrowser
    can load.
    hope someone can help me out,
    Lodewijk

  • Edit mode in JSR168 Portlet

    Hi all,
    I m using Portal version 10.1.4 and developing JSR168 Portlet using JDeveloper 10.1.2.1.0 (Build 1913).
    There is a edit mode in my portlet and i have done entry for this mode in portlet.xml and also implemented doEdit() method.
    inside doEdit() method i have also written response.setContentType("text/html");
    Successfully deployed the .ear and also registered the WSDL url.
    But when i click on the Personalize link of the portlet then a page comes with a message
    Error: Could not get markup. The cookie or session is invalid or there is a runtime exception.
    And the error in wsrp_default_island_1\application.txt is
    javax.portlet.PortletModeException: Portlet mode "edit" is not allowed in current context
         at oracle.webdb.wsrp.server.PortletURLImpl.setPortletMode(Unknown Source)
    Could any one tell me where i m doing wrong.
    help will be appreciated..
    Thnx
    ~Neeraj Sidhaye
    Try_Catch_Finally @ Y !
    ExtremePortal @ Gmail Dot Com

    Hi Harsha,
    Actually there is a problem with setPortletMode method of PortletURL.
    When i use
    PortletURL portletURL=renderResponse.createActionURL();
    portletURL.setPortletMode(PortletMode.EDIT); (Although it is not required , but in case if situation occurs like if i want to change the mode then it will fail)
    In this case if i click on Personalize link then it is throwing an exception.
    Is it bug with Oracle Portal , i don't know....
    When i comment that code then every thing is working perfectly for me
    and the required jsp is rendering in Edit mode of the Portlet.
    Comments ans Suggestions are welcome at 24*7 :-)
    Thnx
    ~Neeraj Sidhaye
    Try_Cactch_Finally @ Y !
    ExtremePortal @ Gmail Dot Com

  • Edit Mode in Portlet

    Hi,
    Why do we have an edit mode in portlet? What is the advantage of reason for having this mode ? If all edit operations can be done using view mode itself , why do we need edit mode?
    Regards,
    vivek

    Hi,
    Edit Mode could be used to set portlet preferences.
    You may want to set the maximum number of entries to be displayed at a time(in view mode) to some value.
    In weather portlet you may wish to set the units to Fahrenheit or Celsius.
    Thanks,
    Sriram

  • Acceptable uris for edit mode in portlets

    Hi,
    I have been experimenting with setting URIs for edit mode in portlets.
    It seems that the only two acceptable types of URI are those in the
    portal project and those that point to a file in the filesystem. It
    does not seem possible to forward on to a webapp in the same project, or
    to an external URL outside of the application.
    Is there a way to do this, or is this not possible?
    The use case I am trying to implement is for all portlets to use a
    generic edit page that is maximised. The page will be populated with
    the available values for personalization for the portlet that the
    request came from, and on submit, will return to the portlet and persist
    changes.
    Cheers
    Dennis

    Dennis said the following on 02/05/2004 08:21 AM:
    Hi,
    I have been experimenting with setting URIs for edit mode in portlets.
    It seems that the only two acceptable types of URI are those in the
    portal project and those that point to a file in the filesystem. It I guess you're using JSR168 portlets, with PortletRequestDispatcher to
    include some content for a given mode/state. PortletRequestDispatcher
    can only be used to include JSPs within the same webapp.
    does not seem possible to forward on to a webapp in the same project, or
    to an external URL outside of the application.
    Is there a way to do this, or is this not possible?This is possible, but you must roll out your own code to include
    external content.
    The use case I am trying to implement is for all portlets to use a
    generic edit page that is maximised. The page will be populated with
    the available values for personalization for the portlet that the
    request came from, and on submit, will return to the portlet and persist
    changes.Why not deploy that JSP in the same webapp so that it can be included?
    Subbu

  • Need to customize close button in edit mode

    Dear Experts,
    I have a requirement where i have implemented separate close button to come back to normal mode from edit mode (ctrl+shift+E). So i just to remove the close button which comes by default for pageCustomizable . Is there any way to customize this button ?
    Jdev:11.1.1.6
    Thanks
    Sushanth

    Hey Daniel,
    That was the exact thing i was looking for thank you ! For folks who come across similar customization use case , here is what i did,
    For pe:pageCustomizable component in your page, goto property inspector --> Appearance tab --> toolbarLayout --> message stretch statusindicator newline menu addonpanels stretch help newline concurrencymessage
    Here is the complete list for toolbarLayout - message stretch statusindicator newline menu addonpanels  button stretch help newline concurrencymessage
    Thanks
    Sushanth

  • How to add URLs in apage without using edit mode

    Hello everybody.
    We have Portal 9.0.4.1 under Solaris, and we are just beggining using it :-)
    We created a section for links (to urls) in the home page of each user. We would like our users to add links to their most used pages (for example, metalink.oracle.com), but we do not want them to enter in edit mode, we would like some functionallity like the "add portlet" in the customize option.
    Any help will be very apreciated.
    Thanks in advance.
    Lisandro

    The example is generic and not hardcoded to any region on the page ... but has the same "warning" that Mark mentioned about this example not working in future versions if Oracle changes the URL structure:
    The Add Item example shows how to create a new item type ...adding an item of this type to any region allows you to add content to that region
    The Edit Item example show how to show a edit link or icon next to the item in view mode.
    Add Item
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    This code sample shows how to create an item allows the content contributor to add items to the page group/page/region that the sample item is placed in.
    If you want your content contributor to add items to multiple regions on a page, add the sample item to all regions that you wish to expose this functionality in.
    Step 1: Create a PL/SQL procedure
    Create the following procedure:
    Create or Replace Procedure <schema>.ADDITEM_URL
    p_itemid IN VARCHAR2,
    p_pageid IN VARCHAR2,
    p_siteid IN VARCHAR2)
    as
    v_url varchar2(2000);
    v_region varchar2(2000);
    v_looplink varchar2(2000);
    v_host varchar2(2000);
    begin
    select folder_region_id into v_region
    from portal.wwsbr_all_items
    where id = p_itemid and
    caid = p_siteid;
    if instr(portal.wwctx_api.get_host, ':') = 0 then
    v_host := portal.wwctx_api.get_host;
    else
    v_host := substr(portal.wwctx_api.get_host,
    1,
    (instr(portal.wwctx_api.get_host, ':')-1))
    || '%3A'
    || substr(portal.wwctx_api.get_host,
    (instr(portal.wwctx_api.get_host, ':')+1));
    end if;
    v_looplink := 'http%3A%2F%2F'
    || v_host
    || '%2Fportal%2Fpage%3F_pageid%3D'
    || p_siteid
    || '%2C'
    || p_pageid
    || '%26_dad%3D'
    || portal.wwctx_api.get_dad_name
    || '%26_schema%3D'
    || portal.wwctx_api.get_product_schema
    || '&p_containerpageid='
    || p_pageid;
    v_url := portal.wwctx_api.get_base_url
    || 'portal.wwv_additem.selectitemtype?'
    || 'p_cornerid=' || p_pageid
    || '&p_siteid=' || p_siteid
    || '&p_regionid=' || v_region
    || '&p_looplink=' || v_looplink;
    htp.p('<a href="' || v_url || "><img src="/images/additem.gif"</a>');
    exception
    when others then
    htp.p('error');
    end;
    Once the procedure has been created, grant EXECUTE permission to PUBLIC.
    Step 2: Create a custom item type
    This custom item type will be associated with the PL/SQL procedure created above. Placing an item of this type on a page will give the content contributor something to click on while the page is in view mode to call the add item wizard.
    Go to the Procedures tab of the new item type and associate with PL/SQL procedure.
    Ensure the “Display Procedure Results With Item” checkbox is checked.
    Step 3: Add item of type “Add_Item” to a page.
    1.     Configure the Page Group to allow items of your new type to be added
    2.     Add an item of type “add_item” to your page.
    3.     For the region containing your new item, in the properties, ensure the “Associated Functions” attribute is in the Displayed Attributes list.
    Edit Item
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    This code sample draws an Edit icon for content contributors to click on while the page is in view mode to edit the item with the default Edit Item wizard.
    Step 1: Create a PL/SQL procedure
    Create or Replace Procedure <schema>.EDITITEM_URL
    p_itemid IN VARCHAR2,
    p_pageid IN VARCHAR2,
    p_siteid IN VARCHAR2)
    as
    v_looplink varchar2(2000);
    v_url varchar2(2000);
    v_subtype varchar2(2000);
    v_itemtype varchar2(2000);
    v_catid varchar2(2000);
    v_catcaid varchar2(2000);
    v_parentid varchar2(2000);
    v_host varchar2(2000);
    begin
    select subtype
    ,itemtype
    ,category_id
    ,category_caid
    ,parent_item_id
    into v_subtype
    ,v_itemtype
    ,v_catid
    ,v_catcaid
    ,v_parentid
    from portal.wwsbr_all_items
    where id = p_itemid and
    caid = p_siteid;
    if instr(portal.wwctx_api.get_host, ':') = 0 then
    v_host := portal.wwctx_api.get_host;
    else
    v_host := substr(portal.wwctx_api.get_host,
    1,
    (instr(portal.wwctx_api.get_host, ':')-1))
    || '%3A'
    || substr(portal.wwctx_api.get_host,
    (instr(portal.wwctx_api.get_host, ':')+1));
    end if;
    v_looplink := 'http%3A%2F%2F'
    || v_host
    || '%2Fportal%2Fpage%3F_pageid%3D'
    || p_siteid
    || '%2C'
    || p_pageid
    || '%26_dad%3D'
    || portal.wwctx_api.get_dad_name
    || '%26_schema%3D'
    || portal.wwctx_api.get_product_schema
    || '&p_containerpageid='
    || p_pageid;
    v_url := portal.wwctx_api.get_base_url
    || 'portal.wwv_edit_tab.edititem?'
    || 'p_thingid=' || p_itemid
    || '&p_cornerid=' || p_pageid
    || '&p_siteid=' || p_siteid
    || '&p_subtype=' || v_subtype
    || '&p_itemtype=' || v_itemtype
    || '&p_topicid=' || v_catid
    || '&p_topicsiteid=' || v_catcaid
    || '&p_cornerlinkid='
    || '&p_parentid=' || v_parentid
    || '&p_action=update'
    || '&p_currcornerid=' || p_pageid
    || '&p_language='
    || portal.wwctx_api.get_nls_language
    || '&p_looplink=' || v_looplink;
    htp.p('<a href="' || v_url || "><img src="/images/ed-item.gif"</a>');
    exception
    when others then
    null;
    end;
    Step 2: Associate Procedure with Item Types
    For every item type that you wish to supply an edit icon to show while the page is in view mode, call the EDITITEM_URL procedure created in the step above.
    Step 3: Show Associated Function attribute
    In order for the procedure associated with the item type to execute, you must ensure the region properties are set on the Style/Attributes tab have the Associated Function listed as one of the Displayed Attributes.

Maybe you are looking for