How to include a CSS from another project

Hi all,
I'm developing an AbstractPortalComponent which uses some of my own defined stylesheets. I can include the stylesheet defined in my own project by this:
com.sapportals.portal.prt.resource.IResource myStyle =
request.getResource("css", "css/my_nav.css");   
response.include(request, myStyle);
Now I need to include another CSS but from another project.
I tried also to get the response and write the HTML code but it writes it into the <BODY></BODY> tag and the CSS is not used when rendering the document:
...</head>
<body class="prtlBody urFontBaseFam urScrl">
<LINK REL=stylesheet HREF="/irj/portalapps/myProject/css/zglobal.css" TYPE="text/css">
Does anybody know the solution?
Thanks in advance,
Romano

There are document hooks that you can use to insert things into the response of a page being written to the client.
Therefore, if you create a service which implements the IDocumentHookListener, you will then need to implement the
String doDocumentHook(int documentPosition, IPortalComponentRequest request, IPortalComponentResponse response)
and
void doDocumentHook(int documentPosition, IPortalComponentRequest request, IPortalComponentResponse response)
The first method, that returns a String, you can basically check where in the document you would like to write code, something like
switch (documentPosition) {
  case IDocumentHookListener.HEAD_SECTION_BEGIN :
    return "some string";
    break;
  case IDocumentHookListener.HEAD_SECTION_END :
    return "some other string";
    break;
The second method, simply writes out the String returned from the first method to the response, i.e.
  response.write(doDocumentHook(documentPosition, request));
I hope this helps
Darrell

Similar Messages

  • How to call a process from another project

    Hi;
    How to calling a process from another process in another project? Which activity that i need or web service, direct binding? I use 11g

    Hi Tulasi ;
    I have wsdl of the process i need to call. Also wsdl address on the server. But CALL activity can't use to service call. CALL activity can use only to reusable process call.
    I think, this operation must make on composite.xml. But I have a same problem with this method and it don't work.
    I create a base process that looking at below. It's include a direct binding. Is it include a direct binding?
    [Base Process|http://d1201.hizliresim.com/t/s/21wqu.png]
    Then i create a process that call to base process:
    [Caller Process|http://d1201.hizliresim.com/t/s/21wqx.png]
    I paste to base process' wsdl address on the server. Then i select port type (BaseProcessPortType) and a warning has occured that you see the picture above. Base Process contain Oracle SOA Composite Type. What's the wrong? It happened for Callback Port Type.
    And second question is what's the Address? (under Reference Binding Setails option).
    I think, i create the this direct binding correctly, i call to base process into my caller process via service activities.

  • Using css from another project

    I've been trying to create a "Theme" project in Flex 3 that can be included in my numerous other projects. Is there a way to do that currently? All it has in it right now is a styles.css file, but when I try to link that to a different project it doesn't work. Do I really need to copy my css to each project every time I make a change?
    Thanks,
    Philippe

    Hi,
    You create theme swc from css files. Check this livedoc's page for more info
    http://livedocs.adobe.com/flex/3/html/help.html?content=styles_12.html
    css files can also be compiled into swfs which can be loaded at run time.
    http://livedocs.adobe.com/flex/3/html/help.html?content=styles_01.html

  • OSB : How can we copy  actions from one project folder to other projects?

    How can we copy actions from one project folder to other projects in OSB?
    For eg:
    I have a service call out action in Project1/proxySer1
    I want to copy this to Project2/proxySer2.
    Espicially, in our case error handling callout is common to all of our projects and we should be able to copy from one to another.
    Edited by: user10367892 on Aug 20, 2009 12:28 PM

    Thank you for the reply.
    It was my fault. I was on two different servers, while i was doing this and so didn't work. But copy /past action works as you suggested.
    Can I select multiple actions from one stage and paste to different proxy service? I have too many options to copy/paste and hence I have this question.
    Is there any other way of copying all selected actions in one stage to another, but not the complete stage itselft?

  • Reg:how to include a report in another report.

    Hi,
    Can anyone please tell me how to call a report from another report.
    My requirement is for example please see the below requirement :
    In report1 I write the logic.
    Zreport1.
    select kunnr name1 from kna1 into table itab.
    loop at itab.
    write: / itab-kunnr,itab-name.
    endloop.
    In report 2 i write the declaration.
    Zreport2.
    Tables:kna1.
    data:begin of itab occurs 0,
    kunnr like kna1-kunnr,
    name1 like kna1-name1,
    end of itab.
    Now I want to include or call the report1 in report2 .Can anyone please tell me how it can be done??

    Hi,
    write the submit statement as SUBMIT ZREPORT1 AND RETURN  in ZREPORT2 program..
    If you dont execute the ZREPORT1 independently then its better you write that in a ZINCLUDE... and
    include that in your second program where ever necessary..
    for that check this...
    +ZINCLUDE+
    select kunnr name1 from kna1 into table itab.
    loop at itab.
    write: / itab-kunnr,itab-name.
    endloop.
    *ZINCLUDE ends here...
    *Use the above ZINCLUDE as below...
    Report Zreport2.
    Tables:kna1.
    data:begin of itab occurs 0,
    kunnr like kna1-kunnr,
    name1 like kna1-name1,
    end of itab.
    INCLUDE ZINCLUDE. " this will do the task mentioned in the include above...
    I would rather suggest to go for the second method that is _ Specifying ZINCLUDE_ coz for the first one.. you need to
    have data declarations and which is not necessary for just a simple select query.. if you are processing
    any further in the first program then go for the first method_( SUBMIT STATEMENT)_ by declaring the necessary variables..
    This would solve your issue...
    Good luck
    Narin
    Edited by: Narin Nandivada on Sep 9, 2008 4:37 PM

  • Importing single bin from another project

    Do any of the experts (or former Avid users) know how to import a single bin from another project into the current project - is this possible in CS6? Also is there anything like the dupe detection in Avid? On the subject of Speech to text (analysis) does this improve over time - i.e. is there a learning system such as in Dragon Naturally Speaking that will reduce the gibberish somewhat? Thanks

    Hi Mike,
    You can only import an entire Premiere Pro project, or a selected sequence, into your current PP project.  If you want to import just a single Bin, you can:
    Make a copy of the project you want to import, and then, in the Project window, delete all media outside the Bin you you want to keep.  Now import that modified project with only 1 Bin.
    Put all of your Bin's media on a new sequence, and then import just that sequence into PP.  Only the media associated with that sequence will be copied into your master project.
    Import your entire PP project and delete all media outside your Bin from within your master project.
    No dupe detection as of yet.  If you haven't already, please send Adobe a Feature Request here: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform&promoid=EWQQL.  The more people ask this, the better the chances we'll finally get it (I miss it from FCP).
    As for Speech to text, I don't use it so I don't know.  Hopefully someone else will chime in.
    Hope this helps.  Cheers!

  • How can i import contacts from another AIM account to this new one

    If you reference my last ichat question, you will see that I have had serious problems and had to create a new account.
    How can I import contacts from another AIM account to this new one??

    Hi,
    Use AIM for Mac and use the Export and Import features.
    Other than that it is a question on making sure every Single Buddy has more than just their Screen name in the IChat Address Card so it is added to the Address Book and dragging them back from there
    9:08 PM Thursday; February 7, 2008

  • How to refer one view from another view?

    Hi,
    I have 2 views in my Adobe Flash Builder mobile app. I need to refer the first view in my second view.
    How to refer one view from another view? Or how to create a reference to a view wherever needed?

    I don't need any data from my first view. In a certain flow, I need to make my first view to be invisible.
    for eg., My First view is in portrait mode. I change the device to Landscape. In the landscape mode, I want to show a completely different view (second view).
    In this case, what happens is, I see my first view in Landscape mode for a second. Then the second view appears. When I change to Landscape mode, only the second view should be seen. I need to make my first view to be completely invisible in the OnOrientationChanging event of
    StageOrientationEvent
    As stage object and StageOrientationEvent works at application level, I need to know how to refer my first view object in the application level.
    private function onOrientationChanging(soe:StageOrientationEvent):void
          MyFirstView.Visible = False; ====> don't know how to refer MyFirstView here
    Is my question clear now?

  • How to include one view into another view

    Hi SDN's,
                   Could any please tell me,How to include one view into another view.
    In my requirment.I want to create a 'Z' view for an interface .In that  view i have to take,
    1) Ship-to-email adrr by
                              LIKP-KUNNR -> KNA1-ADRNR
                              KNA1-ADRNR -> ADR6-ADDRESNUMBER.
    2) E-mail addr of person who created the document.i.e
        LIKP-ERNAM -> USR21-BNAME.
        USR21-ADDRESNUMBER ->  ADR6-ADDRESNUMBER 
        USR21-PERSNUMBER -> ADR6-PERSNUMBER.
       In both the case we have to pass ADDRESSNUMBER to ADR6 table.
    If we pass these condition it fails,B'Coz at a time it passes Two ADDRESSNUMBER and a PERSNUMBER.
    So i created two which fetches only the email addr of  person who created the document.and another view fetches Ship-to-email addr.
    Now i want to include the second view into first view . Is it possible?or please
    tell me someother way to get these email addresses in a single view.

    hi
    as per my knowledge, nested views are not possible. However, while creating a new view, selection method will not giv u option to select the already created view(S) except the tables..i think so.
    regards,
    shamim

  • How to access icloud account from another iphone

    My iphone fell in the water. I am on vacation and need to access info from my calendar. How can i do it from another iphone device?

    Just enter your account details under:
    Settings > Mail, Contacts, Calendar
    and add your account.
    Finished.

  • How can i get data from another database SQL Server use database link from

    I have a database link from Oracle connect to SQL Server database with user cdit connect default database NorthWind.How can I get data from another database(this database in this SQL Server use this database link)?

    hi,
    u should see following documentation:
    Oracle9i Heterogeneous Connectivity Administrator's Guide
    Release 1 (9.0.1)
    Part Number A88789_01
    in it u just go to chapter no. 4 (using the gateway),,u'll find ur answer there.
    regards
    umar

  • How can i transfer songs from another itunes other than mine

    how can i transfer songs from another itunes other than mine

    Purchases made under 1 Apple ID are permanently associated with that Apple ID and CANNOT be transferred to another Apple ID.  So if you want to keep those songs, you'll need to always have access to your dad's account.
    B-rock

  • How can i copy songs from another library to my itunes library with homesharing?

    How can i copy songs from another library to my itunes library with homesharing?  I see the other libraries, but cannot drag the songs into my library.  The help window says to use the "show menu" at the bottom, but I don't have that menu with itunes 11.

    You can do this in 2 ways.
    1) You can enable the sidebar and you can drag and drop like you used to be able to.  To turn on Sidebar in iTunes 11, go to View > Show Sidebar
    2) Another way is to connect to your Home Share from the drop-down menu from the left (where it says Music) and select your Home Share.  Once you are connected to your Home Share, select Music and you should see a button that says "All Items" and on the right, you should see the Import button.  To copy, select the songs you want to import and then click on Import.

  • HOW TO CALL A FORM FROM ANOTHER FORM

    HOW TO CALL A FORM FROM ANOTHER FORM [local machine]

    Balraj wrote:
    HOW TO CALL A FORM FROM ANOTHER FORM [local machine]The way you asked question is this bit of request or order?
    Secondly, you used capital latters which are being treated as Shouting Language. So, always try to switch off the Capslock of your keyboard.
    Thirdly, you are very lazy to serach on forum or google for your problem instead of waiting someone to anwer your question.
    Your should seriously have a look at FAQ.
    http://wikis.sun.com/display/Forums/Forums+FAQ
    Also here.
    http://www.catb.org/~esr/faqs/smart-questions.html
    Please read documentation for the initial questions.
    -Ammad

  • New iphone 6 with ios 8.0 crushed and didnt open again. call center told me that use itunes to update 8.0.2 but server is too slow and didnt let me download it. it stopts in the middle of the session. how can i download it from another link or server

    new iphone 6 with ios 8.0 crushed and didnt open again. call center told me that use itunes to update 8.0.2 but server is too slow and didnt let me download it. it stopts in the middle of the session. how can i download it from another link or server. by the way i try to dowload from turkey.

    anyone help me there? )=

Maybe you are looking for

  • Current Date in the Text Field

    Hi, I have got a requirement where i have one text field and one data/time field. Once we select the date from the date field, the date selected in the date field should be reflected in text field in the format DD.MM.YY along with some other text. fo

  • Search for text in a PDF

    Is there a Livecycle component that will help me find the pages where a phrase is found?  If so, what is it?  And, can you provide an example?

  • Oracle 10 g 10.2.1.0 Express Edition Installation on Windows 7 Ultimate

    I am tried to Install Oracle 10 g 10.2.1.0 on Windows 7 Ultimate.The Installation was Completed without any error. But i am restart my machine the oracle was not connect. It shows following Error Message: ora-010304 oracle not available How i am Solv

  • Error message Servfail

    Hi Experts, If i try to nslookup directly with GSS ip address. I do get a responce with vip ip address. When i use my local dns server.. where i have an entry to saying my authorative server for domain x.com is GSS. If use the dns server ip address .

  • URGENT: Large web provider problem

    We are running Portal v3.0.9 & JPDKv1 with V1 of the URL Services installed. We setup a very large prover.xml with 760 portlets. All the portlets are URL services and they only thing that differs with each portlet is the URL that the XML is retrieved