How to set a uniform display size of multiple intermedia image types - wher

I have read "If you want to limit the size of the file that can be uploaded, you can do this as a post generation
step, by adding the maxFileSize property to the <controller> element in the struts-config:
This does not address how to limit the *** display size *** where you have multiple intermedia image types - where the original size is not uniform.
If an image is uploaded where the true image display size is 1024 x 768 - it will display that way in the table/table-form. This will create un-even display size's where previous images sizes where different 384 x 384 and so on.
Is there a way to encode the display size so that *** ALL *** images regardless of their true size are displayed uniformly at least on one dimension (64 x ???)? This is possible when using products such as Dreamweaver or Flash.
BTW - JHS/***JDev*** synergy is truely magnificient!!! Way-To-Go Oracle!!!!!!!!!!! Keep it up!!!!
BG...

Bill,
I did some tests, and was able to reproduce it. The problem is that JHeadstart distinguishes between display types fileDownload and image, but UIX uses the same <media> tag to handle both display types. It will look at runtime whether it must render a hyperlink to download the document, or to render it right away as an image.
To get all images the same size, you can set the display width and height, AND the display type must be set to image.
However, to get the file name used as download link, you must set the FileName attribute AND the display type must be set to "fileDownload" ..
So, to solve your problem, it is easiest to set the displayType to "fileDownload" and set the width and height properties post-generation in the generated UIX page.
In the next release of Jheadstart, we will fix this, and always pick up width, height and fileName settings regardless of the display type.
Note that you should also set the FileName property against the attribute you are using to upload the file.
Steven Davelaar,
JHeadstart Team.

Similar Messages

  • How to set jButton to display hourglass while executing.

    Hi All,
    How to set jButton to display hourglass while executing.
    Here is my code:
        private JButton jButton5 = new JButton();
        jButton5.setText("Refresh");
        jButton5.setBounds(new Rectangle(805, 35, 145, 25));
        jButton5.setBackground(Color.green);
        jButton5.setFont(new Font("Tahoma", 1, 15));
        jButton5.setForeground(Color.blue);
        jButton5.setSize(new Dimension(145, 25));
        jButton5.setModel((ButtonModel)panelBinding.bindUIControl("Execute",jButton5));Thanks.

    user38000 wrote:
    I do not have much experience with Java, my background is database admin, could you please spell out syntax and where introduce hourglass behavior based on the code I posted.While bobear may post his code, my recommendation in this situation is that you are always better to use the advice given, the API and the tutorials to first try to do this yourself and see what happens. Then if it fails, come back with your code attempt.
    One concern of mine, and my main reason for posting is that it seems like your JButton will initialize a task that may take a bit of time to perform (hence the need for the hour-glass). I just want to make sure that you call this task in a background thread such as within a SwingWorker's doInBackground() method. For more on this, please google the Sun tutorial on Concurrency in Swing.
    Much luck!

  • How do i adjust my display size?

    How do I adjust my display size on my ipod touch? It's really drivin me nuts!!!

    If items on the display are magnified, you have the accessibility Zoom feature turned on.  To turn off see:
    iPhone: Configuring accessibility features (including VoiceOver and Zoom)
    Otherwise, please provide more information.

  • How can you change the display size on the task bar

    how do you change the display size on the task bar

    If, however, you want to change the size of the display of the menubar, meaning make the icons and text larger, there is no way to do that directly other than to change the resolution of the screen.
    You can change the as-viewed size of that temporarily by using either -
    • Mouse zoom - if you have a Magic Mouse (Apple wireless mouse), hold down the Control key and use the scroll up and scroll down finger gestures on the mouse.
    • Zoom - go to System Preferences > Universal Access > Seeing and turn on Zoom. You can also use the noted keyboard shortcut to enable/disable this Zoom feature.

  • How to set max row display rows in PO's PLD

    Hi,
    How to set max row display rows in PO's PLD
    Thanks and Best Regards
    Bruce

    Hi
    Max. Rows per Page is depend on PLD Settings and Depend on Repetitive Area Fieds Height.
    Try this,
    1st Case:
    ->> Administration Module.
    ->> System Initialization.
    ->> Open the Print Perferences Window.
    ->> Click General Tab on Print Perferences Window.
    ->> Assign the Max. Rows per Page - 99 (or) your wishes.
    ->> Update the Print Perferences.
    2nd Case:
    ->> Open your PLD.
    ->> Choose Repetitive Area on Field Index Window.
    ->> Click Format Tab on Properties Area Window.
    ->> Assign the Lines in Repetitive Area - Your Wishes .
    ->> Save the PLD.
    Regards,
    Madhan.

  • How to set up the font size or front form by default when I input textbox with adcrobat 7.0

    Hi all,
       When I input front into textbox with Acrobat 7.0 ,  the default font size is times roman, and defaul front size is 9, but i want to change its defaul attribute, so i press "Ctrl + E" ,and it daps textbox tool bar,  then choose and modify attribute ,let them as my dafault configuration, but when i open a new PDF file ,and insert and edit textbox , the front's attribute return before .How to set up my requisite the font size or front form by default ? 

    This is an old version, so I'm not sure it's available there, but try to
    right-click the field using the Object Selection Tool (after you've set it
    up the way you want it) and then select "Use current properties as new
    defaults".

  • How to set up my display to be the main view HELP

    How to set up my external display automatically work as the main display when plugged into my MacBook Pro. I had it set up to work this way on my old MBP but I got a new MBP with Mountian Lion and the Display set up seen different and I can figure out how to make my Apple HD display (about 3 years old) be the main display when I turn on my MBP. Mirror is off when I look at
    System pref’s – Display – Arrangement I just get to pick which display is left and right. I cant remember how it was set up on my old MBP. Mirroring does me no good. Any help will do!!!
    Thanks Brad

    In System Preferences > Displays > Arrangement tab.  Drag the little grey rectangular "menubar" to the other monitor.

  • How to set the maximum heap size on a deployed application?

    I�m running a fairly large java application and am getting java.lang.OutOfMemoryError. I could increase the heap size in my development environment to eliminate this error. However, I don�t know how to set this in a deployed application. We are currently using ant to build our software.
    Another question, when I execute a statement such as java �Xmx512M �cp app.jar. Is it correct to say that the application in app.jar will use to a maximum of 512MB of memory when running?
    Thank you everyone for your help!

    But first, when you say "a deployed environment" do you mean an executable .jar file? This is what I'm using.The term "deploy" is commonly used to refer to deploying an ear file or a war file on an application server.
    I would assume that there is some entry you can include in the .jar's
    Manifest.mf file to specify the maximum memory, but I can't find an example of the entry. <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6197671"></a>

  • How to set the default maximum size for java's heap?

    Hi!
    Im trying to set the default max size for the java heap - but not from the command line.
    I would like to set it higher as default on my computer.. how can I do that?
    thanks!

    >
    ...You may increase the memory heap only when you're launching a new JVM.>Much like IWantToBeBig does.
    OTOH, it this is an app. with a GUI, it is easier to launch it using webstart, and request extra memory in the JNLP descriptor (the webstart launch file).

  • How to set a dropdown display value

    I know how to access the current value of a dropdown box. But how can I set it?
    I have a dropdown box and one of the choices is 'Other'. When 'Other' is selected, a text box is enabled so the user can describe what they mean by 'Other'. Now, I want to make the dropdown more robust where if after selecting 'Other' and providing a comment the user willingly or not makes a different selection, the user is warned that the 'Other' description will be deleted with a choice to proceed or not. If the user proceeds the description is deleted and the text box disabled; if the user doesn't want to proceed with the deletion the text box is left enabled with its value untouched and the dropdown value is reset to 'Other'. This is the part that I can't figure out: how do I reset the display value of the dropdown?
    Thanks for the help!
    Marc

    Ok, thanks Malcolm. Yes, you were correct about using the rawValue property to reset the selected value of the dropdown.
    Why I got so confused is because all my scripting, including trying to reset the newly selected value, was done in the Change event of the dropdown. The rawValue property 'appears' to behave differently here I think because of the order of the events, where it holds the original value through the whole selection process. So essentially, the rawValue during the Change event doesn't hold the newly selected value and will not hold it until the Change event is fully completed.
    So I was able to reset the selected value through the Exit event by using a form variable whose value I set in the Change event. So my Change event uses this line at the right location in my script:
    cancelDDSelection.value = "yes";
    and my Exit event uses the following;
    if (cancelDDSelection.value == "yes") //if the Change event reset this form variable to 'yes'
    this.rawValue = "Other"; //reset the selected value to 'Other'
    cancelDDSelection.value = "no"; //reset the form variable to its default value
    Not sure if there's a better to do this, but all works as I wanted it to now.
    Marc

  • How can I minimise the file size of a greyscale image ?

    Hi,
    What methods are there for making as small as possible the file size of a greyscale image. I need to keep the resolution at 200pixels per inch. The image is going to be big, 5835mm wide and 1780mm tall ! Some of them have some fine soft detail so I need to keep an eye on how that degrades. Others are better.
    Can the same work for colour images or are there different approaches for those ?
    Thanks
    Envirographics

    My need is to enlarge up a plan for placement in, then tracing over in a CAD program, retaining the fine detail prior to tracing. I have some at 1/10th the full size item at 200ppi, others still as digital slr raw files. I have found that less than 200ppi the detail starts to go. considering this, if I am now working full size item surely I would need 200ppi also ? I could try simply enlarging it up 'as is' but would imagine when I am zoomed in that the ability to work closer in would be lost as I would be seeing great big pixels. Certainly taking an image currently raw and making it 200ppi and 5800 wide would give me better detail retention.
    I had hoped for some suggestions on how to save at lesser colour or grey numbers than 256. Some scanning of large plans can for storage purposes use 17 colours for example. Do I need 256 shades of grey, can I save as 64 shades perhaps ? Certainly LZW is the right direction here, retaining detail but using compression. JPG compression starts to frogspawn the edges below quality 6, so losing detail again. What about png or gif, thats what I had hoped for. Does anyone know how to reduce colour palette numbers to 64 or 32 shades ?
    Envirographics

  • How to set java.naming.provider.url when multiple oc4j instances in iAS

    Hi Folks,
    I have problems engaging a connection to a deployed application in a 9.0.3 iAS instance. I created 2 oc4j instance within the iAs instance.
    I wonder how to set up the JNDI provider url?!?
    According http://download-west.oracle.com/docs/cd/A97329_01/web.902/a95879/jndi.htm
    the provider url contains of ormi://host:port/application.
    Unfortunatly I get a connection refused Naming Exception.
    What's wrong?
    Where can I look up the
    java.naming.security.principal
    java.naming.security.credentials
    Are they set by default?
    I tried the following scenario:
    java.naming.provider.url=ormi://host/oc4j-instance/application/
    and a user/password from principals.xml in the application/config directory, but don't have any success.
    So please help me ;-).
    Bye & Thx
    Toby

    This is correct as far as aI remember
    1) java.naming.provider.url = t3://server1:port1,server2:port2
    see
    http://download.oracle.com/docs/cd/E13222_01/wls/docs81/jndi/jndi.html -- Using WebLogic JNDI from a Client in a Clustered Environment

  • How to set the default display date of Calender prompt of SMPortal???

    Good Day!!
    As for as my knowledge, the default date Visible in all Calender prompt will be the
    Starting Date in the Specified date range either "RelativeDateRange" or "AbosoluteDateRange".
    But we have a requirement to set the default date to a date in the middle of the specified range, I don't find any option to specify in Request Offering Wizard or MP's xml file.
    Our scenario is as follows,
        We are trying to customize the CSPP's request offer "Request Virtual Machine", which has a user promt to select Decommission Date for the New VM. We have configured the date prompt as Relative Date range and set the
    Start date as "1 day next to user's current time" and Maximum date to "90 days after relative date".  So the user will get option to select Decomm date from (1-90) days with the defalut date as 1st day next to his current
    time. But our requirement is to set the default available date as 90th date in the above mentioned Relative Date Range.  
         I couldn't find any option in Request offering Wizard as attached below,
          Also I couldn't even find any tag to specify the default display date in the MP's XML file as attached below. Is there any other <tag> can be included inside <Details> tag to accomplish this ??
        Is there any other way to accomplish this???
        Please advise
    Thanks,
    Narayanababu
    Thanks and Regards, Narayana Babu

    This is probably a link editor parameter, see the linker and loader guide.
    Another thing you can do is write your own sbrk() that will log whenever it's called, so you can at least see how many times it's called and with what values. If you really need in-depth instrumentation, write your own heap routines and give them the same names as the CRTL routines. The linker should find yours first and route all memory operations through them. At least, that's the way it worked for me on SunOS 4.1....

  • How to set a maximum download size per connection in the ASA?

    Hi, I would like to avoid big downloads so I want to set a maximum download file size. How can I set the limit MB allowed per connection in the ASA?
    Thanks

    Hello Andrew,
    I got your question, but I think we might be confused here, I did not specify something after the timeout but when you configure it you will see you have the same options
    Here is the configuration options on 8.2.5
    ciscoasa(config-pmap-c)# set connection timeout ?
    mpf-policy-map-class mode commands/options:
      dcd          Configure dead-connection-detection retry interval.
      embryonic    Configure absolute time after which an embryonic TCP connection
                   will be closed, default is 0:00:30.
      half-closed  Configure idle time after which a TCP half-closed connection
                   will be freed, default is 0:10:00
      idle         Configure idle time after which a connection state will be
                   closed.
    Now on an ASA running 8.4.4(9)
    WPLG-ASA-1(config-pmap-c)# set connection timeout ?
    mpf-policy-map-class mode commands/options:
      dcd          Configure dead-connection-detection retry interval.
      embryonic    Configure absolute time after which an embryonic TCP connection
                   will be closed, default is 0:00:30.
      half-closed  Configure idle time after which a TCP half-closed connection
                   will be freed, default is 0:10:00
      idle         Configure idle time after which a connection state will be
                   closed.
    So as you can see same options, no change at all
    Hope that I could help
    Remember to rate all of the helpful posts

  • How to set different pointsize  (Font Size) for different text range in the single textframe.

    I have a one textframe in which i want to  set three different pointsize(font size) for three different text ranges. I have set different tag name for different text ranges . So How can I set different pointsize in the single texmframe.
    Please reply me if anyone is aware of it.
    Thanks,

    Jack,
    Extending Martti's post, you can create an XSLT that will add an element around the ASD2.1 part when you import the XML file into FrameMaker. Then FrameMaker's EDD can format this added element with a font different from the one used in the content element.
    Van

Maybe you are looking for

  • DMS - Document Validity

    Hi to all, Does anybody know if exist a functionality to handle date of validity of a DMS document? I mean, after approving a document (with the "Release Flag"), I need to fix "manually" a date that the document will be "valid to", the date that the

  • Copying photos from the ipod to the computer

    I want to copy pictures from my ipod to my computer. How do I do this?

  • Cannot connect Windows 7 laptop to USB HDD attached to Airport Extreme

    I would appreciate anyone's help regarding the following issue. The situation is as follows: Laptop with Windows 7 installed Laptop connects to Airport Extreme (5th generation) through Wifi An external HDD (WD Elements 1TB) is attached to the Airport

  • Report not downloading completing in Excel

    Hi, We have developed a Z report which i am trying to download in Excel.The report is huge one having 1 lakh line items.When i download the report not all the line items are downloaded in excel. In excel the max rows are 65536 so my question is why a

  • TS3202 This is frustrating and irritating..

    My iPhone will not sync with my iTunes on my MAC, it just keeps saying sync not started because there was a failure to sync. I've closed it and used different iphone cables that I have and nothing seems to be working and it is quite frustrating. Why