How can I change Portlet Title

Hi,
I need to dynamically change the portlet title.
The portlet is a JSP and at run time determines what to show in the title bar.
Thanks for help.
Aamer.

hi
Here is what you need to do -
1) In your provider.xml file set the "renderContainer" tag for the specified portlet to false
2) Make sure in the "edit" page region section for the region containing your portlet, the two
checkboxes for "render header" and "render borders" is CHECKED. Becuase, this overrides what you
do at the provider.xml level
3) Now you have control on rendering the borders and headers
4) In your JSP portlet - have this code -
xxxContainerRenderer cntr = new xxxContainerRenderer();
PrintWriter pout = new PrintWriter(out);
SimpleParameterMap pm = new SimpleParameterMap();
pm.putParameterValue(PortletContainerRenderer.PORTLET_TITLE,"YOUR RUNTIME DEFINED TITLE"));
cntr.renderShowHeader(pr,pout,pm);
--- your content ---
cntr.renderShowFooter(pr,pout,pm);
regards
-Ananth Makaram

Similar Messages

  • How can i change the title and image of  published exe

    Hi ,
    I have published a fla file in exe format .
    how can i change the title and image of this exe? do I ve to
    use some of the available softwares in the market? cant i do the
    customised setting in the flash player itself?

    On Fri, 4 Apr 2008 06:21:15 +0000 (UTC), "mFlexDev"
    <[email protected]> wrote:
    > I have published a fla file in exe format .
    > how can i change the title and image of this exe?
    I beleave the easiest way is to use PEResourceExplorer,
    Resource
    Hacker or similar software to modify EXE resources, such as
    window
    title and window icon.

  • How can i change the title in the system form 'Sales Order Form'

    hai
    how can i change the title in the system form 'Sales Order Form'  and then how can i call this form?

    Hi Sanjoy,
    You find the form property like this :
    SAPbouiCOM.Form oForm = null;
    oForm = SBO_Application.Forms.Item(pVal.FormUID);
    oForm.Title = "New Title";
    Michael

  • Hi, how can i change my title for miss to mr?

    I was just wondering how i could change my title from miss to mr?
    Anyone who knows?
    Thanks.

    iTunes -> Store menu -> View My Account
    Log in, locate the Billing Address section, and click the "edit" link at the right. You can change the salutation there.
    Regards.

  • How can I change the title of a song from the finder menu?

    I need to chnage the title of a song (not on iTunes) so It will works with any software I use to listen music.
    I can change the file name but then when i play on itunes i still see "track 14" ?
    How can I do It?

    Hi,
    You need to change the song title in iTunes. This will also change the file name.
    Jim

  • How can I change a title in I books

    I have a ton of PDF files in iBooks. The All have very vague titles. How can I retitle and organize? I'm on ipad2

    I downloaded Notability from the App Store, 69 pence, to change the file name of new PDF downloads. But I had to export existing PDFs to my iMac to change their file names, and then import back to iPad. Took several hours.
    Martin

  • How can I change the title I see on my application

    I'm aware it may seem a silly question, but I don't know how to change the title I see on my application. I don't mean the name of the application, but the one appears above on the page. If I change simply the name of the application this dosn't change on the page when I reun the application.
    Where do I have to change it? Tabs, lists, where else?
    Thanks!

    In the Application Definition (Shared Components) create a substitution string APP_NAME. Enter some value there. In the page template header add this:
    &lt;title>&APP_NAME.&lt;/title>Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    https://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • How can I change the title backgrounds in a project from a converted movie trailer theme?

    I converted a movie trailer theme (action) to a movie. The title backgrounds are all red but I like the effects. I would like the background color to be blue. Thanks for your help!

    Unfortunately I tried doing a swap with a color background and it looks like it doesn't let you just drag a replacement background in. So the best you can expect is to drag a color background from the Map tool browser (it has a globe icon on it) and drag it next to the background you want to use, set the duration to be the same length. Drag the tite block to the new color background clip. Then delete the background from the original Movie trailer version.

  • How can I change the title in the window at any time?

    As title

    setTitle
    public void setTitle(String title)
    Sets the title for this frame to the specified string.
    Parameters:
    title - the title to be displayed in the frame's border
    title - the title to be displayed in the frame's border. A null value is treated as an empty string, "".
    See Also:
    getTitle()
    for an example:
    // get project name and set window title accordingly
    String oldTitle = new String("");
    oldTitle = <windowname>.getTitle();
    <windowname>.setTitle(oldTitle + " - " + projectName;

  • How can I change the year of an album in itunes11 without changing the years of all titles?

    How can I change the year of an album in itunes11 without changing the years of all titles. For example: the reissues of an 1982 album has a 1995 bonus track, but I want it to be sorted as an '82 album? In earlier versions, when itunes sorted my album "by year", it took the year of the first title as the album's year (which makes a lot of sense). In itunes 11, however, the /highest/ year of any title in an album is taken to be the album's year. This upsets my entire catalogue. Can this be changed, will this be changed?

    Highlight all of the songs,File>Get Info, change the genre

  • How can I change the running head on the title page only?

    For APA formatting the running head needs to run throughout a paper, but only on the title page is it preceeded by "Running Head:". How can I change the running head on this page only?

    Menu > Insert > Section Break
    Click your cursor in the new (2nd) section.
    Menu > View > Show Inspector
    Inspector > Layout > Section > Page Numbers > uncheck Continue from previous section
    Menu is the menu at the top of your screen when you are in Pages, or anywhere else on the Mac. very hard to miss.
    Yes that is kind of a dumb question.
    Peter

  • Can I change the title of my book from govtapo ship to big brothers money?  how do i do it?

    Can I change the title of my book from Govtapo Ship to Big Brother's Money?  How do I do this in iBookstore? 

    Hi,
    You need to change the song title in iTunes. This will also change the file name.
    Jim

  • Change Portlet Title Color

    Hi,
    This questions is for Weblogic Portal.
    How can i change the portlets title color dynamically based on java condition.
    Thanks

    There is a weblogic portal forum.
    I believe this would be a better place for your question(WebLogic Portal

  • Bookmarks toolbar changed from the right side of the drop-down menu to the left. How can I change it back on Firefox 4.0.1 for Mac?

    I just updated to Firefox 4.0.1. Some changes I don't like, especially that the Bookmarks toolbar opens to the left of the drop-down menu instead of the right. How can I change it?

    You may have bookmarks that have long title. Firefox 4 shows the full text of the bookmark name, so if it doesn't fit with opening to the right side the Firefox will open to the left side. You can scroll through the list and make the bookmarks with a long name shorter.
    * [[How do I use bookmarks?]]

  • How can I change the name of item in TableViewController iOS

    How can I change the name of item in TableViewController? I want to be able to change the title of an item if I added one. Code:
    //  ViewController.m
    //  Movie List
    //  Created by Damian on 20/02/15.
    //  Copyright (c) 2015 Tika Software. All rights reserved.
    #import "ViewController.h"
    @interface ViewController ()
    These outlets to the buttons use a `strong` reference instead of `weak` because we want
    to keep the buttons around even if they're not inside a view.
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *editButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *cancelButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *deleteButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *addButton;
    // A simple array of strings for the data model.
    @property (nonatomic, strong) NSMutableArray *dataArray;
    @end
    #pragma mark -
    @implementation ViewController
    - (void)viewDidLoad
        [super viewDidLoad];
         This option is also selected in the storyboard. Usually it is better to configure a table view in a xib/storyboard, but we're redundantly configuring this in code to demonstrate how to do that.
        self.tableView.allowsMultipleSelectionDuringEditing = YES;
        // populate the data array with some example objects
        self.dataArray = [NSMutableArray new];
        NSString *itemFormatString = NSLocalizedString(@"Movie %d", @"Format string for item");
        for (unsigned int itemNumber = 1; itemNumber <= 0; itemNumber++)
            NSString *itemName = [NSString stringWithFormat:itemFormatString, itemNumber];
            [self.dataArray addObject:itemName];
        // make our view consistent
        [self updateButtonsToMatchTableState];
    #pragma mark - UITableViewDelegate
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
        return self.dataArray.count;
    - (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath
        // Update the delete button's title based on how many items are selected.
        [self updateDeleteButtonTitle];
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
        // Update the delete button's title based on how many items are selected.
        [self updateButtonsToMatchTableState];
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
        // Configure a cell to show the corresponding string from the array.
        static NSString *kCellID = @"cellID";
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellID];
        cell.textLabel.text = [self.dataArray objectAtIndex:indexPath.row];
        return cell;
    #pragma mark - Action methods
    - (IBAction)editAction:(id)sender
        [self.tableView setEditing:YES animated:YES];
        [self updateButtonsToMatchTableState];
    - (IBAction)cancelAction:(id)sender
        [self.tableView setEditing:NO animated:YES];
        [self updateButtonsToMatchTableState];
    - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
        // The user tapped one of the OK/Cancel buttons.
        if (buttonIndex == 0)
            // Delete what the user selected.
            NSArray *selectedRows = [self.tableView indexPathsForSelectedRows];
            BOOL deleteSpecificRows = selectedRows.count > 0;
            if (deleteSpecificRows)
                // Build an NSIndexSet of all the objects to delete, so they can all be removed at once.
                NSMutableIndexSet *indicesOfItemsToDelete = [NSMutableIndexSet new];
                for (NSIndexPath *selectionIndex in selectedRows)
                    [indicesOfItemsToDelete addIndex:selectionIndex.row];
                // Delete the objects from our data model.
                [self.dataArray removeObjectsAtIndexes:indicesOfItemsToDelete];
                // Tell the tableView that we deleted the objects
                [self.tableView deleteRowsAtIndexPaths:selectedRows withRowAnimation:UITableViewRowAnimationAutomatic];
            else
                // Delete everything, delete the objects from our data model.
                [self.dataArray removeAllObjects];
                // Tell the tableView that we deleted the objects.
                // Because we are deleting all the rows, just reload the current table section
                [self.tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationAutomatic];
            // Exit editing mode after the deletion.
            [self.tableView setEditing:NO animated:YES];
            [self updateButtonsToMatchTableState];
    - (IBAction)deleteAction:(id)sender
        // Open a dialog with just an OK button.
        NSString *actionTitle;
        if (([[self.tableView indexPathsForSelectedRows] count] == 1)) {
            actionTitle = NSLocalizedString(@"Are you sure you want to remove this movie?", @"");
        else
            actionTitle = NSLocalizedString(@"Are you sure you want to remove these movies?", @"");
        NSString *cancelTitle = NSLocalizedString(@"Cancel", @"Cancel title for item removal action");
        NSString *okTitle = NSLocalizedString(@"OK", @"OK title for item removal action");
        UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:actionTitle
                                                                 delegate:self
                                                        cancelButtonTitle:cancelTitle
                                                   destructiveButtonTitle:okTitle
                                                        otherButtonTitles:nil];
        actionSheet.actionSheetStyle = UIActionSheetStyleDefault;
        // Show from our table view (pops up in the middle of the table).
        [actionSheet showInView:self.view];
    - (IBAction)addAction:(id)sender
        [self.dataArray addObject:@"New Movie"];
        // Tell the tableView about the item that was added.
        NSIndexPath *indexPathOfNewItem = [NSIndexPath indexPathForRowself.dataArray.count - 1) inSection:0];
        [self.tableView insertRowsAtIndexPaths:@[indexPathOfNewItem]
                              withRowAnimation:UITableViewRowAnimationAutomatic];
        // Tell the tableView we have finished adding or removing items.
        [self.tableView endUpdates];
        // Scroll the tableView so the new item is visible
        [self.tableView scrollToRowAtIndexPath:indexPathOfNewItem
                              atScrollPosition:UITableViewScrollPositionBottom
                                      animated:YES];
        // Update the buttons if we need to.
        [self updateButtonsToMatchTableState];
    #pragma mark - Updating button state
    - (void)updateButtonsToMatchTableState
        if (self.tableView.editing)
            // Show the option to cancel the edit.
            self.navigationItem.rightBarButtonItem = self.cancelButton;
            [self updateDeleteButtonTitle];
            // Show the delete button.
            self.navigationItem.leftBarButtonItem = self.deleteButton;
        else
            // Not in editing mode.
            self.navigationItem.leftBarButtonItem = self.addButton;
            // Show the edit button, but disable the edit button if there's nothing to edit.
            if (self.dataArray.count > 0)
                self.editButton.enabled = YES;
            else
                self.editButton.enabled = NO;
            self.navigationItem.rightBarButtonItem = self.editButton;
    - (void)updateDeleteButtonTitle
        // Update the delete button's title, based on how many items are selected
        NSArray *selectedRows = [self.tableView indexPathsForSelectedRows];
        BOOL allItemsAreSelected = selectedRows.count == self.dataArray.count;
        BOOL noItemsAreSelected = selectedRows.count == 0;
        if (allItemsAreSelected || noItemsAreSelected)
            self.deleteButton.title = NSLocalizedString(@"Delete All", @"");
        else
            NSString *titleFormatString =
            NSLocalizedString(@"Delete (%d)", @"Title for delete button with placeholder for number");
            self.deleteButton.title = [NSString stringWithFormat:titleFormatString, selectedRows.count];
    @end

    Hey JB001,
    Sounds like you have more going on than just a simple issue with Home Sharing and more dealing with Wi-Fi syncing. Start with the article below and see if that may resolve it.
    iTunes 10.5 and later: Troubleshooting iTunes Wi-Fi syncing
    http://support.apple.com/kb/TS4062
    If it does not work out, then may I suggest contacting Apple for further assistance to walk you through it or just take that time that you were talking about to sort it out.
    Contact Apple Support
    https://getsupport.apple.com/GetproductgroupList.action
    Regards,
    -Norm G.

Maybe you are looking for

  • Qty Rounding in PO

    Hi All I want to do rounding in the existing unit of measure. e.g. my requirement generated is 33 EA and 1 Pac = 10 EA. If i take PAC as ordering unit, system creates PO of 3 PAC. This is fine absolutely. I want rounding in base unit of measurement.

  • How to change my subscription country

    Hi, I have a subscription with a UK phone number forwarding to Thailand. The problem is I have now moved back to the UK and don't know how to send my calls to my UK mobile number. Please help, thanks! **EDITED FOR PRIVACY**

  • How can I get sigalg attribute from a given X509 certificate

    Hi, I am verifying my client's digigital signature like this String sigalg = "SHA1WithRSA"; Signature sig = Signature.getInstance(sigalg); sig.initVerify(pubKey); sig.update(sEnvelope.getBody().toString().getBytes()); return sig.verify(Base64.decode(

  • Anybody have screen shots for Solaris8

    Anybody have screen shots for Solaris8? I just ordered it, and I can't wait for it to arrive in my mail box!

  • Using safari or any app that uses internet is timing out

    I have backed up my phone, reset my network settings and still it times out with 5 bars and 3g access. what to do.