Can we override the Desktop LAF for Pages using backing Files ?

Hi
I have the following Look And Feel related requirement.
We have an global application level Skin which was applied at the desktop level using the .laf file.
But some of the pages require a totally different Look and Feel apart from the one defined at the desktop level.
To put the question in the other way,
Can we override the skin & skeleton defined at the Desktop level using the backing file (for page or portlet) ?
The following is the code snippet, which i used in the backing file to achive the above.
LookAndFeel lookAndFeel = LookAndFeel.getLookAndFeel(request);
lookAndFeel.setSkin(y_skin);
lookAndFeel.setSkeleton(y_skeleton);
     lookAndFeel.reinit();
Here the y_skin & y_skeleton are the new set of skin & skeletion which i have created for the page.
when i ran the above snippet in the portal framework, i found the desktop level skin is getting applied
to the pages insted of the y_skin & y_skeleton.
Any help or directions .... for dynamically changing the skin & skeletion for pages will be appreciated.
Thanks & Regards
- Sachi

What you are doing looks valid.
this is the code that i have
public void init(HttpServletRequest request, HttpServletResponse response)
// Get the session from the request
HttpSession session = request.getSession();
// Get the LookAndFeel object from the PrimaryTheme in the request
LookAndFeel lookAndFeel = LookAndFeel.getLookAndFeel(request);
if (request.getParameter("defaultButton") != null)
//System.out.println("default skin selected");
session.setAttribute("skin", "default");
if (request.getParameter("textButton") != null)
//System.out.println("text skin selected");
session.setAttribute("skin", "text");
if (request.getParameter("classicButton") != null)
//System.out.println("classic skin selected");
session.setAttribute("skin", "classic");
String selectedSkin = (String) session.getAttribute("skin");
if (selectedSkin != null)
//System.out.println("setting skin and skeleton to: '" + selectedSkin + "'");
lookAndFeel.setSkin(selectedSkin);
lookAndFeel.setSkeleton(selectedSkin);
lookAndFeel.reinit();
}

Similar Messages

  • How can I set the desktop image for client computers?

    How can I set the desktop image for client computers using ARD or terminal?

    How can I set the desktop image for client computers using ARD or terminal?

  • After restoration of files via time capsule my status changed to "Guest" and I can't find the pass word for changing it back to Registered user. Any Help?

    after restoration of files via time capsule my status changed to "Guest" and I can't find the pass word for changing it back to Registered user. Any Help?

    Hey mate I had this same problem exept instead of my recording disappearing my Chorus that went for 8 bars extended out to 20 bars lol and I used auto tune on it and it sounds like t-pain on a very bad day so it sounds like it does a few things when it comes up that error

  • How can I change the desktop icon for ny google calendar?

    I'm new at this. I have managed to put google calendar on the desktop of my iPad but don't like the icon. How can I get a new one?

    There is no provision for changing icons on the iPad.

  • Can I override the default ReadObjectQuery for an entity and specify my own call

    Hi,
    I am trying to override the default ReadObjectQuery and the ReadAllQuery for an entity and supply my own call.The entities have to be read from the database using a StoredProcedure.I tried doing something like
    Descriptor desc=evt.getSession().getDescriptor(Configuration.class);
    desc.getQueryManager().setReadObjectQuery(new ReadObjectQuery());
    StoredProcedureCall call = new StoredProcedureCall();
    call.setProcedureName("CONFIGSVC");
    call.addUnamedArgument("CATEGORY");
    call.addUnamedArgument("CFGKEY");
    call.addUnamedArgument("VALUE");
    desc.getQueryManager().getReadObjectQuery().setCall(call1);
    desc.getQueryManager().getReadObjectQuery().addArgument("CATEGORY");
    desc.getQueryManager().getReadObjectQuery().addArgument("CFGKEY");
    desc.getQueryManager().getReadObjectQuery().addArgument("VALUE");
    When I try to execute the query
    ExpressionBuilder builder = new ExpressionBuilder();
    Expression expr = (builder.getField("category").equal("GOESVC.GETTDEV")).and(
              new ExpressionBuilder().getField("configKey").equal("GOESVC.REQ")).and(
              new ExpressionBuilder().getField("value").equal("$ENV.$ORIGIN.GOESVC.REQ"));
    ReadObjectQuery query = new ReadObjectQuery(Configuration.class, expr);
    session.executeQuery(query);
    I can see in the log that it completely ignores the call I set and tries to execute using the default call and that too with incorrect mappings between the "entity" field names and the actual database field names.
    2002.11.01 08:50:52.640--ClientSession(8218801)--Thread[main,5,main]--#executeQuery(ReadObjectQuery(com.fmrco.gett.toplink.Configuration))
    2002.11.01 08:50:52.750--ServerSession(7721862)--Thread[main,5,main]--Connection(5230193)--SELECT CFGKEY, CATEGORY, VALUE FROM CONFIG_ETT WHERE (((category = 'GOESVC.GETTDEV') AND (configKey = 'GOESVC.REQ')) AND (value = '$ENV.$ORIGIN.GOESVC.REQ'))
    2002.11.01 08:50:53.375--ClientSession(8218801)--Thread[main,5,main]--EXCEPTION [TOPLINK-4002] (TopLink - 9.0.3 with StoredProcedureCall patch [email protected] 28/10/2002 (Build 423)): oracle.toplink.exceptions.DatabaseException
    EXCEPTION DESCRIPTION: java.sql.SQLException: [SQL0206] Column CONFIGKEY not in specified tables.
    INTERNAL EXCEPTION: java.sql.SQLException: [SQL0206] Column CONFIGKEY not in specified tables.
    How to I solve this issue?
    Thanks,
    Harini

    Hi,
    The "ReadObjectQuery" in a descriptor's query manager can only be used to change the primary key read query. It will be used only for a ReadObjectQuery that either has a selection key, selection object, or an expression that exactly matches the primary key.
    If you have a non-primary key query that you want to use, you can add it as a named query to the descriptor's query manager.
    I'm not sure of the primary key of your descriptor, assuming that it is a 3 part composite key, then your ReadObjectQuery procedure is defined correctly in the descriptor. However the ReadObjectQuery is incorrect, you must use "get" not "getField", also you must use a single expression builder.
    i.e.
    ExpressionBuilder builder = new ExpressionBuilder();
    Expression expr = (builder.get("category").equal("GOESVC.GETTDEV")).and(
    builder get("configKey").equal("GOESVC.REQ")).and(
    builder.get("value").equal("$ENV.$ORIGIN.GOESVC.REQ"));
    ReadObjectQuery query = new ReadObjectQuery(Configuration.class, expr);
    session.executeQuery(query);
    you could also do,
    Vector key = new Vector(3);
    key.add("GOESVC.GETTDEV");
    key.add("GOESVC.REQ");
    key.add("$ENV.$ORIGIN.GOESVC.REQ");
    ReadObjectQuery query = new ReadObjectQuery(Configuration.class);
    query.setSelectionKey(key);
    session.executeQuery(query);
    If the descriptor primary key is not 3 part, then add this query as a named query.
    Descriptor desc=evt.getSession().getDescriptor(Configuration.class);
    ReadObjectQuery query = new ReadObjectQuery();
    StoredProcedureCall call = new StoredProcedureCall();
    call.setProcedureName("CONFIGSVC");
    call.addUnamedArgument("CATEGORY");
    call.addUnamedArgument("CFGKEY");
    call.addUnamedArgument("VALUE");
    query.setCall(call);
    query.addArgument("CATEGORY");
    query.addArgument("CFGKEY");
    query.addArgument("VALUE");
    desc.getQueryManager().addQuery("findConfigSVC", query);
    To execute the query,
    Vector arguments = new Vector(3);
    arguments.add("GOESVC.GETTDEV");
    arguments.add("GOESVC.REQ");
    arguments.add("$ENV.$ORIGIN.GOESVC.REQ");
    session.executeQuery(Configuration.class, "findConfigSVC", arguments);

  • I can't download the extended instruments for Garageband using the money on my iTunes account

    I cannot seem to download the extended instruments in garageband despite having suffiecient funds on my itunes account to pay for it.

    Make sure your payment method is accepted >  iTunes Store / Mac App Store:  Accepted forms of payment
    Keep in mind, purchases are subject to any applicable taxes or fees that would be added to the purchase price so make sure there are sufficient funds available >  iTUNES STORE / MAC APP STORE:  TERMS AND CONDITIONS

  • Can we get the L7 data for packet using jpcap

    Hi ,
    I am new to jpcap library. I want to retrieve the layer information from the Pcap file. I captured the packets on my interface and saved as pcap file. Now I want to retrieve the Layer 7 data (like http request and responses) from the pcap files. Is it possible using jpcap library???
    I am really strucked at this point in my project...:(

    Hi,
    You try ur logic in
    do                      ---endo.
    after describing the table .
    Do the loop for the number of records available.
    i.e. as per your logic.
    describe table i_hdr line h_lines.
    do h_lines times.
    put your above code and enddo.
    Hope this will work.

  • How do I change the desktop Icon for an external hard drive?  I have gone to "Get Info" and tried dragging and dropping  several formats of pictures and the icon changes to the generic image of that file type.

    how can I change the desktop icon for an external hard drive.  Using LaCies and Dimple hard drives.

    One of the things I've found with OS X (at least with Snow Leopard, which is my first excursion into OS X), is that all too often the thumbnail displayed on a file, whether a file created or one downloaded, is a false thumbnail. That is, when you do a Get Info on the file the icon in the upper left is the generic icon for that file type, rather than the thumbnail displayed in Finder. Makes it a bit difficult to copy.
    Apparently Finder uses Preview in the background to generate the displayed thumbnail without actually creating one.
    What I've resorted to doing, particularly with graphic images, is to process them with GraphicConverter - I have its prefs set to automatially add thumbnails and previews. With an individual file this means opening it in GC and doing a Save As. However, a much easier and faster way is when there are two or more such files; I put them in a common folder and drop the folder onto GC. GC then opens them in a catalog view, in the process adding real thumbnails and previews to each automatically. Doesn't take long to do several hundred files that way.

  • Where can i find the conversion exits for date

    hi
    where can i find the conversion exits for date

    Hi,
    Use function modules to convert data into fiscal year and week.once you get week then you can calcute period,
    quarter and half years based on that week.For this the function modules are
    1..UMC_CALDAY_TO_FISCPER
    2..DATE_TO_PERIOD_CONVERT
    Regards,
    swami.

  • How can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.

    How can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.

    Hi
    Please take a look to this thread Re: Can I refresh the browser rather than open a new tab?

  • I have just downloaded the latest update for Pages on my iPad and now it can no longer open up documents in iCloud and then just shuts down. What The.

    i have just downloaded the latest update for Pages on my iPad and now it can no longer open up documents in iCloud and then just shuts down. What The.

    Before the reset quit Pages like this:
    Double click the Home button to show the screen with running and recently used apps. Each app icon will have a sample page above it. Flick up on the page (not the app icon) and the page will fly away and the app icon will disappear. This quits that app.

  • Where can I purchase the serial number for Iworks, or purchase Pages for OSX 4.11? Thanks very much force for your help! Andrea

    Hi,
    Where can I purchase the serial number for Iworks, or purchase and download Pages for OSX 4.11?
    Thanks so much in advance for your help!
    Andrea

    You can search Google, eBay, Amazon, and Craigslist to find an old version of iWork for a PPC Mac. Probably needs to be iWork 6 or earlier.

  • My LG Optimus Zone is having software issues and I can't access the Recovery Menu for a Factory Reset

    My LG Optimus Zone is having software issues and I can't access the Recovery Menu for a Factory Reset. It was working fine until I went to activate it and update the PRL. It turns on, but Freezes on the LG Logo. it currently goes into the LG Download Mode, and When I restore with LG's Mobile Support Tool, It finishes, reboots, and stays at the boot Logo. I was wondering if I can possibly get a replacement phone? This is a little upsetting, as i was hoping to have it transfered from prepaid to postpaid service next month

    Who is your Internet Service Provider...?
    Do you have any computer which is able to go online wirelessly...?
    Have you forwarded any ports on the router...?
    Try to adjust the wireless settings on the router and check...
    Open an Internet Explorer browser page on your wired computer(desktop).In the address bar type - 192.168.1.1 and press Enter...Leave Username blank & in Password use admin in lower case...
    Under the Wireless tab,Change the SSIS(Network Name) to some unique name.Change the Channel Width to 20MHz only and Channel to 11,click on save settings.Under the Wireless Security subtab,Change the Security to WEP and type any ten digit number in key1 as the network security key,click on save settings..Under the Advanced Wireless Settings,Change the Beacon Interval to 75,Change the Fragmentation Threshold to 2304,Change the RTS Threshold to 2304 and Click on Save Settings...
    Also,for the gaming system,check this link.

  • How do I have my iphone (3gs) override the desktop address book when syncing with iTunes?

    My desktop address book is incorrect and I can't seem to restore it from time machine.  My iphone contacts are correct.  How can I have the iphone override the desktop address bookwhen I sync it with iTunes?

    For some reason during the sync it finally asked me what to do about the conflict - it hadn't asked me before.  So problem has been fixed.  Thanks.

  • My external hard drive is 'seen' by my iMac and I can go into the Finder and open files and folders. I am using the hard drive for Time Machine back up. However Time Machine says it can't find the drive. Same thing has happened with Final Cut Express.

    My new LaCie external hard drive is 'seen' by my iMac and I can go into the Finder and open files and folders. I am using the hard drive for Time Machine back up. However Time Machine says it can't find the drive.
    The same thing happened recently between Final Cut Express and my other LaCie external hard drive used as the Scratch disk. It fixed itself.
    I've run out of ideas. Help would be very much appreciated. Thanks.

    have you done some searches on FCPx and time machine? Is there a known issue with using a TM drive with FCPx? dunno but ...wait...I'll take 60 sec for you cause I'm just that kind of guy....   google...." fcpx time machine problem"  Frist page link 
    http://www.premiumbeat.com/blog/fcpx-bug-best-practices-for-using-external-hard- drives-and-final-cut-pro-x/
           You cannot have time machine backups on your hard drive if you intend to use it in FCPX.
    booya!

Maybe you are looking for