Set Java Portlet margin at zero?? specifivally java portlet?

Hello,
I have a strange situation.. I have external CSS controlling the margin around HTML code for HTML & Java Portlets (among other things). For HTML portlets it works fine, and visual alignments are ok with the other regions in the page.
But the same HTML code (keeping aside forms and validations etc) when depolyed as a java portlet shows a margin all around... maybe 5 pixels.
im working with this in css...
body {
     margin-left: 0px;
     margin-top: 0px;
     margin-right: 0px;
     margin-bottom: 0px;
I tried with "Zero" spacing around regions & portlets in the region attributes...
any ideas?

Please check to see if the errorneous XML files have zero size. If so, the installation will fail. Try to copy a sample XML from somewhere else.
BTW, I didn't install the Portlet Container on a standalone OC4J container. I did it on a Oracle 9iAS container in which I have OC4J_xxx where I can copy the sample XML files.

Similar Messages

  • Is there a way to set the printed margins to zero. I want to fill the whole page, as much as the printer allows.

    Normally Firefox prints Title, URL, time and page number on the four corners of the printed page. I want to remove printing of this
    information and instead print the page out to the corners limited by
    what the printer allows. I know how to stop printing the URL etc. but then I get empty margins. I want to set this margins to zero so Firefox prints on the whole paper sheet. As it is now I will have to use another browser that doesn't insert unwonted margins.

    Is there a way to set the FOLDERS window in Adobe Bridge as a Column view like in Mac OSX Finder?
    No, but it is very nice idea, add it to the feature request page:
    http://feedback.photoshop.com/photoshop_family/

  • Setting java.library.path property in java code

    Hi,
    i'd like to set java.library.path property in java code to load a dll-library. I know that a funtional way is to run JVM with parameter -Djava.library.path=c:\tmp, but I need it do it IN CODE.
    I'v tried this:
    System.setProperty("java.library.path", "c:\\tmp");
    System.loadLibrary("libapr");The library 'libapr.dll' is situated really in 'c:\tmp' directory, but I get 'java.lang.UnsatisfiedLinkError: no libapr in java.library.path' exception.
    It seems like the already running java program doesn't use actual java.library.path set in previous step.
    Is there any possibility to set java.library.path property in java code?
    Thanx
    Brny

    I think the following code should work:
    // Reset the "sys_paths" field of the ClassLoader to null.
              Class clazz = ClassLoader.class;
              Field field = clazz.getDeclaredField("sys_paths");
              boolean accessible = field.isAccessible();
              if (!accessible)
                   field.setAccessible(true);
              Object original = field.get(clazz);
              // Reset it to null so that whenever "System.loadLibrary" is called, it will be reconstructed with the changed value.
              field.set(clazz, null);
              try {
                   // Change the value and load the library.
                   System.setProperty("java.library.path", "c:\\tmp");
                   System.loadLibrary("libapr");
              finally {
                   //Revert back the changes.
                   field.set(clazz, original);
                   field.setAccessible(accessible);
    The idea is to make the static field "sys_paths" null so that it would construct the paths from the changed value.

  • Setting java runtime option through java program

    I want to set java runtime options(like -verbose, -ea) through java program instead of setting them through command promt. (Like, I can set -D options through System.setProperty() method). Is there any way out?

    I want to set java runtime options(like -verbose,
    -ea) through java program instead of setting them
    through command promt. (Like, I can set -D options
    through System.setProperty() method). Is there any
    way out?I don't think you can (at least not for the Sun JVM).
    The command-line options for the JVM are used when the
    JVM is created, which precedes the loading of the class
    files representing your application. At that time it is too
    late to set the start-up options for the JVM which is already
    up and running.

  • Setting java.ext.dirs property at start-up vs. runtime

    I've been trying to invoke an input method (based on Java IMF). I'd like to place a lang_im.jar file, packaged as installed extensions, at an arbitrary directory, say, C:/foo, other than lib/ext to bypass system security/privilege issues that prevent one from copying lang_im.jar into lib/ext. I found that setting "java.ext.dirs" system property at start-up time, e.g.,java -Djava.ext.dirs=C:/foo -jar myprogram.jarallowed me to activate the input method, but setting it at runtime by placingSystem.setProperty("java.ext.dirs", "C:/foo");at the top of main() changed the extension directory but did not load the installed extension at the specified directory. Apparently, the extension mechanism behavior varies in the cases of before and after classloading, I guess.
    How can I make it so that setting the property at runtime will work the same as at start-up? Thanks.
    Quan

    Can anyone help?

  • Cannot set page margins to zero

    I am exporting a Crystal report using HTML 4.0 format.  When the report is viewed via a browser the white space in the margins is being displayed.  I have tried to zero out the margins to eliminate this issue but Crystal Reports will not let me set the margin values to zero.  I am currently running 11.0.0.1282  Is this a know issue and is it fixed in any product updates?

    The margins are an issue because they are the causing unnecessary white space my web pages.  I am exporting this report as a single  page (deselected Separate HTML Pages).  So I have 2-3 lines of white space every place where there would be a page break.  This has to be a bug because no one would want this white space on a web page. 
    In addition here is the help text that I copied directly out of Crystal regarding these margins:
    Note:    When you are exporting to a single file (that is, you have cleared the Separate HTML Pages check box) all blank space in headers and footers, as well as top and bottom page margins, is included. If you don't want to see blank spaces in your HTML file, suppress empty header and footer sections and set the top and bottom page margins to zero in the Page Setup dialog box.
    Am I missing something here????

  • Setting Java Properties

    Hi everybody. I have been looking around, but can't find anywhere where you set Java Properties (the one's you get via System.getProperty() ) in the iAS. Our current application has a lot of these properties, and in order for getting it running on the iAS I must be able to specify Java Properties. Does anybody know where I do this (it's an OC4J mod, not JServ).
    Regards, Magnus Edevag
    [email protected]

    It's easy - in each OC4J container there is a "server" link (down at the left side). In following screen there are three lines (again at the bottom) - last one is called Java properties. It is where you specify startup parameters for JVM. BTW, you can find them in opmn/conf/opmn.xml. Sometimes, if you hit the wrong button you have to go there and edit directly.
    Myrra

  • Does Solaris10 for x86 allow me to set java jvm heap size up to 3G

    Does Solaris10 for x86 allow me to set java jvm heap size up to 3G,is it really true solaris only take 512M memory address space?I can only set 2668M(2.5G)on linux cause linux kernel take 1G memory address space.Thanks~~

    [url http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html]Runtime seems to have some useful methods...

  • Setting a global margin for any documents to print

    Hello,
    On a Mac running OS X, I have a ruby/java script allowing me to open a Microsoft Word document and print it as a PDF (and extra stuffs, but that's not part of the problem). During the conversion from Word to PDF for most of my documents I get a dialog saying 'A footer of section X is outside of the printable area of the page...'. What I would like to do is not to write a script to click 'yes' when a dialog open but to try to set the default margin for printing to 0. In the 'page setup', there is an option to create customized 'paper size', with a giving width, height and margins (that I can set to 0). By default the paper size is selecting A4, but I would like to find a way to set this paper size as a default to my customized paper size for any document opened on Microsoft Word or printed as PDF!  If I select manually the customized paper size after I open the document on Word, I can print it without having the dialog.
    So my question is to know if there is a way to set a global margin for printing to 0 (let me know if I need to use Acrobat Pro, Distiller etc.), whatever the way is.
    Thank you very much!
    Vincent

    Alan,
    There is nothing specific with the SDK that you have to print a marketing document such as a Sales Order, PO, etc.  What you may want to look at in the 2005A SDK is the "PrintEvent" object.  This event lets you catch a print event in the SAP Business One application, get the relevant data that is sent to the printer and then edit it using a third-party editing tool such as Crystal Reports. The PrintEvent event provides an exit point that allows you to integrate third-party tools for reporting and document editing.
    You can look at the sample code for the PrintEvent here ...
    ..\Program Files\SAP\SAP Business One SDK\Samples\COM UI\VB.NET\20.PrintEvent
    HTH,
    Eddy

  • Remove language from 'set language' portlet

    Hello
    We installed 4 languages with our portal. In one page group I did the translation for 3 of the 4 languages.
    Now, if I add the 'set language' portlet to one of the portal pages of that page group, all the 4 languages (not only the 3 of the translations!) were shown.
    How can I get the 'set language' portlet only to show the 3 translated languages?
    Thanks,
    Chrigel

    Hi,
    you should use the ConfigTool to edit the UME property ume.admin.wd.locales as described here
    [http://help.sap.com/saphelp_nw70/helpdata/EN/45/fff338e19134dde10000000a1553f7/frameset.htm]
    Remember to restart the Java AS afterwards.
    Regards, Ane

  • Report 3.0 : How to set the printer margin??

    Hi all,
    In report previewer, I am able to set the printer page margin
    mannally.
    Then, If, I've get some reports by RUN_PRODUCT in batch mode,
    how can I set the page margin??
    Regards,
    Andrew
    null

    Hi amole,
    one more doubt,
    Iam new to use BAPI_ENTRYSHEET_CREATE.
    What are the mandatory fields that should be passed to it to create SES ( Service Entry Sheet ).
    The data given to me is:
      Purchase Ord number,
      Activity Number,
      Rate,
      Quantity,
      External Number.
      Is the above data is enough to create SES.
      please clarify.

  • Can you set the print margins in Preview?

    Simple question: Is there a way to set the print margins when printing an image from Preview?
    Thanks,
    -ME

    EagleSongs wrote:
    I can set margins in other programs (like Photoshop, Word, Excel, Firefox, Chrome...), but there does not seem to be a setting for margins when printing from Preview. I don't want to resize the image, just get it to print in a certain position on the paper (template form).
    In the case of Photoshop, you are placing an image on a canvas and can position the image to suit. Word and Excel have a Page Setup menu that lets you set the margin positions - which know since you have got the output you wanted. There is no Page Setup menu for most, if not all, Apple applications like Preview. Instead parts of the Page Setup menu have been added to the print dialog but margins is not one of them.
    EagleSongs wrote:
    However, I was trying to find a way to print from Preview and get it to position the image on the page the way I want.
    Understood. Unfortunately you don't get that option in Preview. The image will be centred - both horizontal and vertical - based on the paper size and the printer you have selected in the print dialog. You could create a custom paper size with the margins you want to position the image and then use that custom paper in Preview. But your workaround of using Word gives you more control over the positioning of the image.

  • Setting Negative Forecast Values to Zero

    In 7.0 we used a option - Setting Negative Forecast Values to Zero.
    But after upgrade to 7.3 this option is missing and I can find any information about this.
    Can we open the option in 7.3?
    Anatoly

    Hi,
    thanks for your reply.
    mls qos
    interface GigabitEthernet3/34
    description *** DATA VLAN 35 - VOICE VLAN 34 ***
    switchport
    switchport trunk native vlan 36
    switchport trunk allowed vlan 34,36
    switchport mode trunk
    mls qos trust dscp
    no cdp enable
    spanning-tree portfast trunk
    If i don't include the global 'mls qos' command then the voice packets keep the dscp 46 value.  If I add the mls qos command this causes the switch to set the dscp values to zero.
    Thanks again 
    ps.  there are some other mls commands on the switch... i don't know if these could interfere but they were already on there so i'm reluctant to remove them..

  • Top Margin Woes: Setting the "Before" Margin for Every Page in a Section

    Hi,
    I've scoured the forums to no avail on this one. I am trying to create a document where the text in Section 1 appears 1 inch from the top of each page and 2 inches from the top of each page in Section 2. Should be pretty straightforward, right? Please tell me it is! I'm using Pages '09 (version 4.0.5).
    Right now, the document margin is set to 1 inch from the Top, so Section 1 is fine. For Section 2, when setting the Before margins after a Layout Break (in the Layout Inspector under the Layout tab), only the first page of that section gets a Before margin of 2 inches. Every page after that in Section 2 is still 1 inch from the top.
    Suggested Workaround Attempted
    I tried the "Move Object to Section Master" workaround, but the menu item "Format > Advanced > Move Object to Section Master" is disabled when performed on an "inline" object, which is what is required to force the text down from the top of each page in Section 2. Turning it into a "floating" object enables the "Move Object to Section Master" menu item, but since it is floating. the text for that section is not pushed down, the rectangle is just displayed in the background of each page in Section 2.
    Any ideas on how to solve my Top margin woes would be much appreciated!

    Hello
    To push a text down in the text body using the clean way which means setting space after, requires that we have already a paragraph which means a chunk of text ended by a paragraph break.
    It's exactly what I do.
    Most of the time, we don't put a paragraph break at the end of a header so it's not a paragraph and so, we can't define the space after value.
    My tip just gives it the status of paragraph allowing me to define space after the clean way. The dirty one was to insert several returns to adjust the height which I carefully rejected.
    It's exactly what we discovered some months ago:
    we can't set space before (above) at top of a page because there is no paragraph before (above) in the page.
    As far as I know, the  "Use Previous Headers and Footers" must always be set correctly. I'm remembering a thread which became huge because the OP can't understand that he had to define these properties correctly to get correct results with his captured pages.
    I wish to add that at this time we don't know exactly what the OP want to achieve.
    Maybe he want to move down the top of the print area and the header.
    You can't do that with your tip.
    With mine, I just insert a paragraph break at the beginning of the header.
    Yvan KOENIG (VALLAURIS, France) vendredi 8 juillet 2011 17:50:30
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Using Set Language portlet

    hello
    i managed to use the Set Language Portlet well, however, when i click the set language portlet the following Action is called http://address:7777/orasso/orasso.wwctx_app_language
    my client is not happy about opening port 7777, how can we instruct the Portel to use a different port
    best regards
    Ammar Sajdi
    amman

    Is it possible you could give us more information such as
    - What version of portal are you using
    - Are you searching with Oracle Text turned on or off
    - What are you searching for (i.e. items, pages etc)
    - Are the things you are searching for translated
    - Is the page group translated
    etc.

  • Mls qos trust dscp??? is setting my DSCP values to zero!?

    Hi,
    I was just doing some testing to ensure that the command 'mls qos trust dscp' is working on my 6509 switches before rolling out QoS.
    Before adding any configuration I could see using wireshark that traffic from my Avaya 9608 handset was coming through with a DSCP value of 46 (as it is supposed to).
    I then added the command 'mls qos' (at global level)
    on examining the wireshark output this time, the DSCP value had been set to zero (i.e. it defaulted it to best effort)
    I then expected by adding the commmand 'mls qos trust dscp' on the interface the phone is connected to that the DSCP value would would again be left alone?
    does anybody know why this is happening?
    Many thanks in advance.
    Andy

    Hi,
    thanks for your reply.
    mls qos
    interface GigabitEthernet3/34
    description *** DATA VLAN 35 - VOICE VLAN 34 ***
    switchport
    switchport trunk native vlan 36
    switchport trunk allowed vlan 34,36
    switchport mode trunk
    mls qos trust dscp
    no cdp enable
    spanning-tree portfast trunk
    If i don't include the global 'mls qos' command then the voice packets keep the dscp 46 value.  If I add the mls qos command this causes the switch to set the dscp values to zero.
    Thanks again 
    ps.  there are some other mls commands on the switch... i don't know if these could interfere but they were already on there so i'm reluctant to remove them..

Maybe you are looking for

  • How does jdbc fetch a set of records in oracle

    Hi, Oracle does not support server side cursors,if so how does jdbc fetch a set of records(set by setFetchSize(), which is 10 by default) each time I say rs.next().Does this mean Query is re-executed to fetch the next set of records? Can some body th

  • Problem Sign-in in the tomcat

    I created a servlet which handling user login. The login itself is based on the web.xml, it is run well on windows environment, but not in linux. Although, i have invalidated the session when the user logout, the next user who login still use the pre

  • Release management

    Hi , I am supposed to create these procedures through program .Anyone please give me the program to create the PO release strategy & Purchase Requisition release strategy. Thanks

  • Handling 404 errors and web robots

    I'm using CFMX 6.1. We handle our own errors for page not found (404 errors). But I'm finding that web spiders/robots from search engines such as Yahoo or Google seem to index these "page not found" custom pages. I want them to get the message that t

  • Re: Can anyone explain the delay?? No phone line n...

    I have received message today from BT saying they are try contact me today. No one call me, but they send a message. I'm a bit tired of waiting for connection... My order status says my activation date will be on the 4th Aug, but there is already del