Portlet Preferences set by admin only

Hi, I am trying to figure out how to allow an admin to set a portlet
preference for a single instance of the portlet. In IBM and Jetspeed,
this is possible.
For example, I would like to deploy a weather portlet where the only
preference is the zip code for the weather forecast. I don't want each
user to personalize this, I only want to allow the portal admin to set
the zip code and then have that used by all end users of the portlet.
Is this possible in WebLogic?

Hi Chad,
The admin tools have a Portlet Preferences page in both the library and
for each portlet instance in a portal desktop. I can see these pages in my
test environment. Let me know if you have any problems when you try this
stuff:
"Java Portlets"
"Java portlets are based on the JSR 168 specification ..."
http://e-docs.bea.com/wlp/docs92/portlets/building.html#wp1061940
"Managing Portlets Using the Administration Console"
http://e-docs.bea.com/wlp/docs92/portlets/portlet_org.html#wp1007211
"Overview of Portlet Preferences"
http://e-docs.bea.com/wlp/docs92/portlets/portlet_org.html#wp1013151
<Chad McGowan> wrote in message news:[email protected]..
Excellent, thanks for the clarification.
I've download version 9.2 of the portal server and I could not find a way
to set portlet preferences in the admin console.
Are there any tutorials or instructions on how to install and configure a
third-party jsr-168 portlet in 9.2? I want to install the portlet, then
set the preference from the admin console.
Thanks for your help!

Similar Messages

  • Unable to read Portlet Preferences set via Portal Admin

    I have a portlet which should read the preference values set in the portal admin by an administrator.
    I am running the portal as .portal and not in the streaming mode.
    After setting the values in the portal administration I always click on propogate to all instances. But when I run the portal in workshop in debugger mode it is not reading the values as stored in Portal admin but it is showing the values which were stored while creating the portlet in workshop in portlet designer.
    Please help how to make the portlet read the preference values stored via the portal admin console if the user visits the portal as an anonymous user. Any help is greatly appreciated on this subject. I have searched everywhere but have no solution.
    I am using Weblogic Platform 8.1 sp5
    Thanks
    rj

    The portlet preferences set in portal administration reflect only in streaming mode, since streaming mode uses the database that is used by portal administration. If you wish to see the portlet preferences set in portal adminstration, try running in streaming mode.
    But when you run portal from workshop ( which would be file mode), it wouldn't pickup portlet preferences created via portal administration.
    Note: The easiest way to distinguish a streaming mode from file mode is presence of 'appmanager' in URL.
    eg: http://localhost:7001/sampleportal/appmanager/MyPortal/desktop1
    Seenu.

  • Portlet Preference Persistence

    Hi folks,
    We have observed some behaviour which seems kind of strange and was
    hoping someone at BEA or anybody else for that matter could provide us
    with some insight into what we are missing.
    When defining portlet preferences in the admin tool, if we define the
    preference on a portlet in the library, the preference gets persisted
    into the pf_portlet_preference table and the portlet_definition_id is
    inserted into the portlet_instance_id column. However, when we add a
    portlet to a portal and add a preference there, the portlet_instance_id
    gets inserted into the portlet_instance_id column.
    We haven't been able to determine how to differentiate between those ids
    that were definition_ids and those ids that were instance_ids. Of
    course, if there is no mechanism to differentiate between them then this
    is a bug. Can anyone help?
    If it helps, we have set propogate-portlet-preferences to false in
    netuix-config.xml.
    Cheers
    Dennis

    I ran a simple test. I put the following line of code in a JSP and pointed a portlet at it:
    PortletContextFactory.createPortletContext.setSettingValue(SettingType.Portlet, "foo", "bar");
    I put this portlet in three places:
    1) A MyPage
    2) A Community (id 234)
    3) Another Community (id 235)
    When I looked in the database in the PTPREFS table, I was really surprised by what I saw. It created three rows as follows:
    PREFNAME PREFVALUE PREFOBJECTID PREFCLASSID
    foo      bar       0            0
    foo      bar       234          512
    foo      bar       235          512Prior to G6, if my memory serves me correctly, a portlet pref could be set on one community and read on another. I'm not as certain about this point, but I think it could also be set on a MyPage and read on a community (and vice versa).
    If you wanted page-specific or community-specific portlet preferences, you could always append the page id or community id to the pref name. However, following this undocumented design change, there's no way AFAIK to remove the new community-specific nature of portlet prefs.
    Bug or feature? Hard to say. I'd like to get the official word from BEA on whether this was intentional or not and either way, could somebody please update the documentation ? If there's been a major change in the design of the pref model, there ought to be at least a little documentation on it.
    Chris Bucchere | bdg | [email protected] | http://www.thebdgway.com
    Edited by bucchere at 02/12/2007 8:47 PM

  • How to set the portlet preference per user instead of global setting

    Hello All
    I am using IBM JSR168/ JSF, In my portlet Edit mode I am trying to set a value per user preference , but it always set for all other users even this is just a normal user, I think when an administrator set any preference value then those preferences value will be set for all the users. but in my case it is a normal user has right for the edit mode and hence the preference set by the user in edit mode will be set for his portlet instance only. So why it sets for all the users preference???...... Thanks a lot for your help!!!
    here is my code:
    ///////////portlet.xml//////////
    <preference>
                        <name>RowsPerPage</name>
                        <value>25</value>
                        <read-only>false</read-only>
                   </preference>/////////////////////////pageCode in edit mode do the save action/////////////////////////
    public String doSaveAction(){     
               FacesContext ctx = FacesContext.getCurrentInstance();
                  HttpSession session = (HttpSession)ctx.getExternalContext().getSession(false);
                  if(session != null) {
                       session.setAttribute("save", "save");
                       session.setAttribute("Number",Integer.toString(getNumber()));
               return "";
    }/////////////////////store the preference value///////
    public class MyPortlet extends FacesGenericPortlet {
    public void processAction(ActionRequest actionRequest, ActionResponse actionResponse) throws PortletException {
              try{               
                //String save1 = actionRequest.getParameter("save");
                String save = (String) actionRequest.getPortletSession().getAttribute("save");
                if (save != null){
                   PortletPreferences prefs = actionRequest.getPreferences();
                   String number= (String) actionRequest.getPortletSession().getAttribute("Number");
                   prefs.setValue("Number", number);
                   prefs.store();
              }

    Hope someone really can help me for this issue... I just wondering is this related to the user group config in portlet, since the interesting is that this issue is not apply to wpsadmin , but not sure where and how to set other user group that can set the preference no problem??
    Thanks for your time !

  • Accidently changed the "ownership & permissions" access admin setting to "read only"

    In the "Get Info" window on my MacBook hard drive icon, I accidently changed the "ownership & permissions" access admin setting to "read only" & now it won't re-boot the operating system. Just displays the Apple logo & running wheel on a white screen . Any advice on how best to re-set/restore would be very much appreciated, thanks

    This might help. Otherwise, it might be necessary to reinstall.
    https://discussions.apple.com/docs/DOC-2240

  • I have Lion, and I can't see my unread messages count in the dock, even after the preferences set up. I find the Lion Mail too complicated. Leopard was much easier and more simple to use. I only have one account& don't need all the rest. any suggestions

    I have Lion, and I can't see my unread messages count in the dock, even after the preferences set up.
    I find the Lion Mail too complicated. Leopard was much easier and more simple to use. I only have one account& don't need all the rest.
    any suggestions?

    weird.
    It's so frustrating, I got my Mac Book 5 days ago and I'm already having a discussion in the forum.
    Thank you so much for your prompt replies.
    It's past midnight here so I'd better get some rest...
    Good night captfred!

  • My MacAir will not recognise anything inserted into USB port. They work on iMac and I have tried inserting slowly and have set preferences to read "Read only"

    My Mac air running OS X 10.9.3 will not recognise anything in USB ports, even thought they are fine on iMac computer and it has happily read them up until today. I have tried inserting slowly and checked preferences to accept Read only devices. Any ideas?

    Reset PRAM:   http://support.apple.com/kb/PH14222
      Reset SMC.     http://support.apple.com/kb/HT3964
      Choose the appropriate method.
      "Resetting SMC on portables with a battery you should not remove on your own".

  • Store defaul portlet preferences

    Hi,
    I want to implement edit mode for my portlet, where only admins have access. On the edit page, I want to enable the admins to set the default portlet preferences (the same value for all users, not only for the current user)
    How can I best do this. We are using 8.1.5.
    I have tried to use the PreferencePersistenceManager looked up with PortalBeanManager (similar as in VisitorTools) but I got a NameNotFoundException
    Thanks

    Hi,
    Select-Option : MATNR type mara-matnr.
    Ranges : MATNR for MARA-MATNR.
    r_matnr = s_matnr.
    EXPORT R_MATNR to R_MATNR MEMORY ID 'ZID'.
    while retrieving
    IMPORT R_MATNR from R_MATNR MEMORY ID 'ZID'.
    else store it into a DB table of same structure.
    Best regards,
    Prashant

  • Portlet Preferences

    Hi,
    We are observing that when we set the portlet preferences from a JSP page which is included in the normal view of a portlet, the preferences are not saved. However, when we use the same code in a preference page, the settings are saved. Can any one please confirm the portlet preferences can only be saved from the preferences page?
    portletResponse.setSettingValue(SettingType.Admin,
    "tempVal", "hellooooo");
    Thanks.

    Hi there,
    From your snippet of code below, you are seting an administrative preference (SettingType.Admin) this would be set up on the object at the administrative level. You might try using a different type either SettingType.Portlet or SettingType.CommunityPortlet.

  • Sharing portlet preferences among users

    Hello,
    Is it possible to share portlet preferences among users? So that the
    portlet preferences would be stored per portlet instance, and would be
    the same for every user?
    If this is not possible with Java portlets (JSR-168), can it be done
    with other portlet types (JSP portlet, page flow portlet), using the
    PortletPreferences API?
    The JSR-168 specification says:
    "Portlet Specification assumes preference attributes are user specific,
    it does not make any provision at API level or at semantic level for
    sharing preference attributes among users. If a portal/portlet-container
    implementation provides an extension mechanism for sharing preference
    attributes, it should be well documented how the sharing of preference
    attributes works."

    Betsy,
    Does WLP provide a way to allow a user to store only a subset of all
    his portlet preferences (using only JSR 168 api) ?
    My aim is to try to create a JSR 168 compliant portlet where few of
    the preferences are allowed to modified by the user (in the edit
    mode), while all other preferences may be modified only by a portal
    admin (thru admin view). However, the PortletPreferences.store()
    method seems to store values of all current preferences for the
    particular user, with the result that future changes by the admin are
    not reflected for any user who has already customized his
    preferences.You can let the admin propagate changes to the user via admin tools.
    There is an option in admin tools to do that.
    Setting the preference <read-only> attribute to 'true' does not help
    either, as the store method still attempts to store the value and
    then throws a ReadOnlyException.In this case, the setValue/setValues/reset and not the store will throw
    the ReadOnlyException.
    Why does WLP attempt to store all preference values; as opposed to
    setting only those which have been explicitly set using
    PortletPreferences.setValue(key, value)?The implementation does not keep track of changes explicitly in memory.
    Even if it keeps track of changes, I'm not sure if this would solve your
    use case.
    Will BEA be changing this in future releases, and is there a
    work-around for now?The suggested approach is to let admins propagate changes to users.
    Subbu
    >
    Thanks, Betsy
    Although WLP does not support the notion of sharing preferences,
    WLP lets you manage preferences in a hierarchy via the admin tools.
    When an admin sets preferences on a portlet, as long as users don't
    customize their portlets, all users get the same portlet instances,
    and hence share preferences.
    Subbu
    Bob said the following on 02/12/2004 04:08 AM:
    Hello,
    Is it possible to share portlet preferences amongusers? So that the
    portlet preferences would be stored per portletinstance, and would be
    the same for every user?
    If this is not possible with Java portlets(JSR-168), can it be done
    with other portlet types (JSP portlet, page flowportlet), using the
    PortletPreferences API?
    The JSR-168 specification says:
    "Portlet Specification assumes preferenceattributes are user specific,
    it does not make any provision at API level or atsemantic level for
    sharing preference attributes among users. If aportal/portlet-container
    implementation provides an extension mechanism forsharing preference
    attributes, it should be well documented how thesharing of preference
    attributes works."

  • Portlet Preferences - Any way to define templates or bulk load ?

    Hi,
    I have a question regarding portlet preferences. We have need to store metadata
    about a portlet and this metadata is the same for all portlets inside the portlet.
    As we will have in excess of 300 portlets which is expected to rise to around
    2000 - 3000 in the future, it will be incredibly tedious for the portal admin
    to create the preferences for each one (for such items as portlet owner, portlet
    administrator etc)
    Is there a template facility (a bit like user profiles) where we can set up the
    definition with fields and values etc, and apply to a portlet. Or failing that
    a bulk load capability where we can just populate the DB using the portlet_definition_id
    or portlet_instance_id in the preference tables ?
    We are on SP2 by the way.
    TIA
    Martin

    Thanks Subbu,
    That worked.....can you keep us updated on any movement with the SPI as this is
    something that of us very definite importance to us.....
    Thanks for the quick response
    Martin
    Subbu Allamaraju <[email protected]> wrote:
    Martin,
    For some reason in Workshop i dont seem to be able to add preferencesto the portlet
    i am creating. For example i create a JSP and then right click 'GeneratePortlet'
    and it creates me the .portlet file. But when i try to access the preferences
    menu it just gives me 'Remove' and the list is empty. It does not offerthe 'Create'
    Option. I must be missing somethingTry dragging "Preference" from the palette.
    Also even if we could do it at create time in workshop these will bethe same
    for all portlets in the Portal and thus this would need to be doneevery time
    manually and that would leave room for mistakes and people missingfields etc.
    We are looking at a very large number of portlets...
    What would be really nice is to define a 'preferences' property setas user profile
    etc and then
    just apply it...thus not leaving room for errors etc.....
    At this time, the API does not support this scenario. We're considering
    an SPI for a future release, and we'll make sure this scenario gets
    addressed.
    Subbu
    Any thoughts.....?
    Subbu Allamaraju <[email protected]> wrote:
    Martin,
    Have you considered specifying preferences for each portlet while
    creating the portlet in WLW? The recommended approach is to create
    preferences while creating the portlet as the portlet developer ismore
    likely to know what preferences are required and the implications.If
    the default values entered by the portlet developer are meaningful,
    portal admins won't have to change these values.
    Subbu
    Martin Porter said the following on 12/17/2003 07:12 AM:
    Hi,
    I have a question regarding portlet preferences. We have need to storemetadata
    about a portlet and this metadata is the same for all portlets insidethe portlet.
    As we will have in excess of 300 portlets which is expected to riseto around
    2000 - 3000 in the future, it will be incredibly tedious for the portaladmin
    to create the preferences for each one (for such items as portlet
    owner,
    portlet
    administrator etc)
    Is there a template facility (a bit like user profiles) where we canset up the
    definition with fields and values etc, and apply to a portlet. Or
    failing
    that
    a bulk load capability where we can just populate the DB using theportlet_definition_id
    or portlet_instance_id in the preference tables ?
    We are on SP2 by the way.
    TIA
    Martin

  • Portlet Preferences Window

    We are using Plumtree 5.0
    I would like to make the pencil icon for portlet preferences take me directly to the preference page for that portlet rather than to the list of all the portlets for the current page. Does anybody know how to accomplish this?
    Thanks,
    Tommy Wright
    FTN Financial

    Why couldn't it be changed to make the OpenPortletPrefsWindow call when you click on the pencil icon. If there are no preferences then just return a page that says "There are no preferneces for this portlet".
    When a portlet has preferences, could that not simply set a property/flag in the "PTGADGETS" that says it has one? The code already looks up the portlet's title, so why could it not lookup an extra field?
    Why put the pencil icon on every portlet when they all do the same thing? They just take you to the list of portlet preferences where I have to scan the list to find the name of the very same portlet I just clicked on. Once the user finds the name in the list they then have to determine if it has preferences or not by seeing if the name is now a link or not. Even then, they have to click the link to actually edit the preferences. I feel this is a fundemental design flaw in the way portlets work in 5.0.
    My only option in order to enable a more user friendly interface is to remove the pencil icon altogether and force them to use the edit protlet preferences from the menu. Even this does not give the feel that the portlets are independant of each other. Guys, I am really frustrated with this problem and disappointed in the response.

  • I'm running10.8.5. I have tried to install a programme but can't because it is from an unidentified developer. the box says-Your security preferences allow installation of only apps from the Mac App Store and identified developers.how do i install the pro

    i'm running10.8.5. I have tried to install a programme but can't because it is from an unidentified developer. the box says-Your security preferences allow installation of only apps from the Mac App Store and identified developers.how do i install the programme

    macjack gave you the easiest solution. Need to have admin privilieges to change this option.

  • How to make Address Book obey Preferences? I run MacBook Pro 4.1 laptop,  Mac OS X 10.6.8  Address Book 5.0.3 (883) Preferences set at ... General First name following Last name   Sort for Last name Address Format Canada Font size Large Phone format set a

    How to make Address Book obey Preferences?
    I run MacBook Pro 4.1 laptop,  Mac OS X 10.6.8
    Address Book 5.0.3 (883) 
    Preferences set at ...
    General
    First name following Last name 
    Sort for Last name
    Address Format Canada
    Font size Large
    Phone format set at
    +1.123.456.7890
    When application quits - it's all forgotten and it self-resets to
    unwanted configuration.

    Whenever you remove system modifications, they must be removed completely, and the only way to do that is to use the uninstallation tool, if any, provided by the third-party developers, or to follow their instructions. If the software has been incompletely removed, you may have to re-download or even reinstall it in order to finish the job.
    Here are some general guidelines. Suppose you want to remove something called “BrickYourMac.” First, consult the product's Help menu, if there is one, for instructions. Finding none there, look on the developer's website, say www.brickyourmac.com. (That may not be the actual name of the site; if necessary, search the Web for the product name.) If you don’t find anything on the website or in your search, email the developer. While you're waiting for a response, download BrickYourMac.dmg and open it. There may be an application in there such as “Uninstall BrickYourMac.” If not, open “BrickYourMac.pkg” and look for an Uninstall button.
    If you can’t remove software in any other way, you’ll have to erase your boot volume and perform a clean reinstallation of OS X. Never install any third-party software unless you're sure you know how to uninstall it; otherwise you may create problems that are very hard to solve.
    Trying to remove complex system modifications by hunting for files by name often will not work and may make the problem worse. The same goes for "utilities" that purport to remove software.

  • How can i Convert to PDF not Show the Microsoft word in Preferences Setting

    hi,
    i installed Acrobat 9.2.0 professional and ms word 2003 professtion,but i can't convert word to pdf,
    1) File->open(doc file)
    2) its show error
    3) Edit>Preferences >Convert to pdf
    its not Available to Microsoft word
    please help me how can i add in Preferences setting
    by,
    Seenu

    1) First i install Ms Office after then i install Acrobat 9.0 and update 9.2.0
    2) that time also Word to pdf Conversion display same error
    3) and 3 times i reinstall acrobat but not change .
    4) this error my System only show, but same config for other system is not show
    how can i solve, plz help me.
    by,
    Seenu

Maybe you are looking for

  • Can we email more than one photo at once from the iPad?

    It is easy to email a photo from the iPad, one photo at a time, but is it possible to send multiple photos attached to one email from the iPad?

  • Ever since updating to IOS 6, my wifi has not been staying connected

    This is applicable for my iPad and iPhone 4S. My iPhone doesn't connect to my home wifi at all and my iPad has issues staying connected. I never have these issues using my work place's free wifi for either device. At home I lose connection with my Wi

  • Motion 3 wont open

    i upgraded to snow leopard last night and now motion gives me errors when it trys to open, HELP!!!! [email protected]

  • How do I sort alphabetically?

    I inadvertantly asked this in the iTunes for Windows community, so I'm reposting here. When I select Genre, how do I sort the Album titles, or song titles, or artists alphabetically? When I select the Albums view, how do I sort them alphabetically? T

  • New Jdev install - FND_COOKIE_HAS_NO_ICX_ENTRY error while using Lov

    Hi, I installed Jdev recently and am having quite a few issues with it. 1. I could not make the HelloWorld message spit out a message. That is being following up on another thread. I still can't do so. 2. So I went ahead and created the Empsearch tut