How to set fixed size for inputfile text field

Hi all,
I am using inputfile component to test file uploading so I created a simple upload page. When I finished upload the file, the input text field will "shrink" its size and change the size to adjust the file name. Is there any way to set a fix size for input text field?
Here is some part of the code:
<af:form id="f1" usesUpload="true">
<af:panelHeader text="File Uploader" id="ph1">
<af:inputFile label="File to upload" id="if1" autoSubmit="true" valueChangeListener="#{fileBean.fileUpdate}"
value="#{fileBean.file}" partialTriggers="if1"
columns="50"/>
</af:panelHeader>
<af:commandButton text="Save" id="cb1"/>
FileBean:
public void fileUpdate(ValueChangeEvent valueChangeEvent) {
RichInputFile inputFileComponent = (RichInputFile)valueChangeEvent.getComponent();
UploadedFile newFile = (UploadedFile)valueChangeEvent.getNewValue();
UploadedFile oldFile = (UploadedFile)valueChangeEvent.getOldValue();
Thanks,
Jerry

you can set columns attribute in af:inputfile. Please see highlighted area i have inserted to you code
<af:form id="f1" usesUpload="true">
<af:panelHeader text="File Uploader" id="ph1" columns = "34" >
<af:inputFile label="File to upload" id="if1" autoSubmit="true" valueChangeListener="#{fileBean.fileUpdate}"
value="#{fileBean.file}" partialTriggers="if1"
columns="50"/>
</af:panelHeader>
<af:commandButton text="Save" id="cb1"/>

Similar Messages

  • How to set max size for a custom field ucm11g

    Hi,
    I need to set maximum length to a custom field created in ucm11g 11.1.1.6
    The field's data type is Text and for example i want to limit the length to 10 characters
    Any example how to do this ??
    Regards
    Carlos

    Hi ,
    If you are looking to limit the number of characters that can be entered to the field from GUI then a global side effect and rule combination will help you achieve it . It would be something like this :
    This is done by leveraging Side Effects under Rules - Rules Activation Conditions. You also need to set the Rule as Global for this to be effective across the system.
    In there the following has to be set:
    <$dDocTitle:maxLength=80$>
    <$dDocName:maxLength =50$>
    Set the above side effect in the rules and corresponding Profile need to refer it for being able to limit the number of characters that can be entered for Title and Content ID.
    Custom metadata too can be controlled in the same way . For example, if metadata "Version" need to limit the number of characters being entered then "Side Effects" to be set is as follows :
    <$xVersion:maxLength=50$>
    NB - the maxLength parameter is not supported for fields of type Memo. It will only take effect on standard text fields.
    Thanks,
    Srinath

  • How to set fixed size for JTextField?????????

    you can create a textfield like
    JTextField text=new JTextField(8);
    here the constructor takes 8 as the width of textfield , not the size,
    if you type more the 8 characters, it takes it happily,
    i need that it only takes 8 characters, not more then that,
    after 8 character, the cursor should not move forward,
    can anybody help me???/

    Have a look at the following thread for an explanation:
    http://forum.java.sun.com/thread.jsp?forum=54&thread=101704

  • How to set percentage size for layout? for example : VBox,HBox,AnchorPane,.

    how to set percentage size for layout? for example : VBox,HBox,AnchorPane,......
    like HTML
    &lt;div width=&quot;640px&quot; height=&quot;480px&quot;&gt;
    &lt;div widht=&quot;50%&quot; height=&quot;60%&quot;/&gt;
    &lt;div widht=&quot;30%&quot; height=&quot;60%&quot;/&gt;
    &lt;div widht=&quot;20%&quot; height=&quot;60%&quot;/&gt;
    &lt;/div&gt;
    -----

    This is not supported. You can file a feature request at http://javafx-jira.kenai.com

  • How to set the size for height of iView tray?

    Hi,
    I have created a ABAP webdynpro component and integrated this comp with iView. Then i integrated iView into Page in portal. That is working fine.
    But the size of tray/window which is displayed in the page is very small.
    How to increase the height of that Tray/window/iView containing my component?

    Hi,
    By changing the maximum automatic height and Minimum automatic height property of the iview you can set the size for height of your iview.
    to do this follow the setps:
    goto content administrator -> portal content -> your folder where you created your iview or directly to your iview -> right click -> open -> object,
    and now in property category choose appearance-Size from the drop down menu and set the above properties to your required height.
    if you want the end user to modify this property set the property to read/write .
    *********please reward points if the information is helpful to you********************

  • How to disable auto-complete for a text field?

    I didn't find any attribute that controls this. Thanks!

    Hi,
    Recently I needed to use this feature, and after some research I found the answer.
    Just sharing the solution.
    I am aware that the auto-complete is a browser setting. But is there a way to let APEX not save the items entered before? Write a javascript?
    Because I have implemented Google suggest for a text field. Every time the suggestions pop up, the auto-complete items will also appear at the same time, which is very annoying.Put on your Page Item > Element > HTML Form Element Attributes : autocomplete="off"
    Bytes

  • How to set image size for importing photos from a digital camera

    I'm using Iphoto 6 and am a novice user of my new digital camera. The camera is set to HQ image quality. Initially when I imported photos from the camera into IPhoto, the images were very large (over 1 meg) and produced good quality 4X6 prints. Now when I import photos from the same camera still set to HQ image quality, the photos are very small (less than 100 kb) after being imported into IPhoto. I think I must have changed some kind of setting in IPhoto that affects the size of an imported image, but I can't find where that is or how to change it back so that the size is not changed when imported. Can someone please help me with this? Thanks!
    IMAC G5   Mac OS X (10.3.9)   my other computer is a Dell Dimension L500CX running Windows XP Pro

    Dave, thanks for clarifying Toad's response for me - I was just too ignorant to connect the dots from his responses. As you said, there were 2 versions - 1 in the original folder and 1 in data; the original folder had the photos that were 1 mb. We must have pulled from that folder previously to print photos not realizing they existed in 2 places. So when we found these thumbnail photos, we just thought they were the real thing. Where can you go to learn about the struction and hierarchy of the photos in terms of what Iphoto does to an image when you import it? Is it in Iphoto help somewhere? Thanks so much for your help with this, and you too Toad for leading me down the path.
    If you're getting the size from Finder, I think Old
    Toad's question makes a lot of sense. Is the file
    you're looking at, somewhere in a folder called
    "Data" in iPhoto Library? That 56k sounds about the
    right size for a thumbnail.
    If you do a search for the image name, both the
    actual photo and the small thumbnail are stored with
    the same image, e.g. abc.jpg
    IMAC G5   Mac OS X (10.3.9)   my other computer is a Dell Dimension L500CX running Windows XP Pro

  • How to set default size for published SWF in Catalyst CS5.5

    I create a 800*600 pixel project in Catalyst CS5.5 and published it as .swf.
    But when I opened the published .swf, the default size is smaller than 800*600. I have to resize it by myself.
    So is there any method that I can set the default size for published .swf?
    Thank you guys! Best regards.
    Nick

    When you start new Flash Catalyst project, you have the option to enable resizing
    This setting is enabled by default.
    If you need to change this later, you can go into Modify > Artboard settings.
    Now when you publish your project, the width and height will be used instead.
    As to manually editting the HTML file, there are 3 tag sets that define the width and height of the project (to handle various browsers). You will need to adjust the values in each of those tag sets. You should only need to do this if you can't republish the file.
    Chris

  • How to set output size for mp4?

    Hello,
    I'm having a problem with the export of a Captivate video tutorial.
    The output size is w 1440 x h 900 pixels. It comes out looking fine, but as soon as we put it through any other transcoding process as required by our own workflows, the image quality deteriorates.
    Now, I've read in this forum that any alteration of the size of the image will cause this deterioration in quality. Effectively, the dimensions of the transcoded output from our own video editors are much smaller than those of the input mp4.
    However, we would like to keep that smaller size because it makes for better performances in video streaming.
    Is there any way in Captivate to set the dimensions for the mp4 output to be smaller? The 1440 x 900 dimensions are already different from the capture area (the whole screen), so it seems they are independent from the capture settings.
    Thanks to anyone who can help.
    Elisa Roselli
    Technical Documentation Manager
    Cambridge Imaging Systems

    Apple no longer supports Safari for Windows  >  Apple apparently kills Windows PC support
    Use either IE or Chrome.

  • How to set memory size for JRE

    hi all,
    Is there anyone know how to set the JRE memory size?
    My run my applet application onto browser and I want to increase to size of memory. Such as -ms 128m -mx256m.
    please help.
    regards,
    elvis

    The suggestion could be convert applet into WebStart application which is quite similar to applet (at least
    it is distributed similar way, resides within sandbox etc) but allows to specify memory size as you requested.

  • How to set the size for Popup with contains a Region

    Hi,
    i use ADF 11g (JDEVADF_11.1.1.1.0_GENERIC_090615.0017.5407) with ADF Faces as Frontend.
    I have a Region (with many content) in a popup. When I call the popup the size of the popup is very small.
    If i set explicit the width and height in px it works, but if I set the width and height in % it doesn't works.
            <af:popup id="p1">
              <af:dialog id="pw2" type="ok"
                         partialTriggers="t1:showBook">
                <af:region value="#{bindings.bookkeydata1.regionModel}" id="r1"
                           inlineStyle="width:850.0px; height:600px;"/>
              </af:dialog>
            </af:popup> It is possible to get the max. height and witdth from the browser-window in a Bean and set it dynamicly to the region?
    To set the size in px is not the best solution I think.
    kind regards
    Martin

    Hi,
    Try setting percentages using af:panelStretchLayout inside a popup.
    Thanks.

  • How to set maxWidth in tabular form Text Field

    Text Fields do not have maxWidth property in tabular forms. Is there any way to set maxWidth using the Element Attributes field? Or at least create a Validation process to let the user know why an error appears if he/she enters more than the allowed characters in a text field.
    Thanks
    Francisco.

    >>
    This information should appear in the user'smanual.
    Francisco.There should be a working MAXLENGTH attribute that
    defaults to the correct length based on the data
    dictionary.Hi,
    been trawling through the forums for the same problem, found this solution which works a treat (thanks! ). But agree that the software should actually allow you to define this anyway, rather than bodge, fool, amend, bridge or circumnagivate (sp?) the software.

  • Set background color for conditional text fields by click of button.

    Hi,
    I am new to apex, the scenario is when i click on a button i.e. Save, it shoulld compare 2 fields P1 and P2 which are text fields.
    If the value of P1 is greaterthan P2 then the whole P1 text field background color should change to "Red" otherwise in any other condition the P1 field should be "Green" color.
    In which section the color function should be called on the Save button?
    On the page in the HTML Header section i have added the below code but the background color is not getting set.
    <script type="text/javascript">
    function fncChangeColor()
    var num1 = $v('P1');
    var num2 = $v('P2');
    if ( num1 > num2 ) {
    document.getElementById("P1").style.background = "RED";
    else {
    document.getElementById("P1").style.background = "GREEN";
    </script>
    Can any one help me in moving ahead with this scenario with a detailed information.
    Thanks,
    Priyanka.

    Hi,
    Call function on button URL target
    javascript:fncChangeColor()If button should submit page, then I think you do not need color field to green.
    Just change to run submit function.
    <script type="text/javascript">
    function fncChangeColor(){
    var num1 = $v('P1');
    var num2 = $v('P2');
    if ( num1 > num2 ) {
      $x("P1").style.background = "RED";
      return false;
    apex.submit({request:"YOUR_REQUEST"});
    </script>Regards,
    Jari

  • How to calculate the size of a Text Field?

    Is there a way to calculate the number of characters allow in a Text Field? If a uer type over this number of characters a popup window will appear telling the user that he/she has too much texts. Of course I could use the Limit Length, but I have to manually put texts into this text field and count them. If the Limit Lenth number is too small, the texts does not fill the whole text field. If the number is too big then the texts does not get printed.

    There would be no easy way to do this. You'd need to do some pretty fancy calculations, it would all depend on the size of the field, what font is used, the font size, whether it's been bolded, underlined, italicized, etc etc.
    What are you trying to accomplish? Make it so that the user can type in the text field until it fills and then have it stop without scroll bars coming up to allow him to keep typing?
    Chris
    Adobe Enterprise Developer Support

  • How to set default size for .chm window?

    I know there is an answer at grainge.org, but it seems to be
    referring only to a .chm using skins, which I am not.
    Anybody know how to make the default size of the .chm larger?
    thanks, Leisa

    Lacona,
    The default window size is set in your windows properties
    dialog in RoboHelp. It can also be set manually in the .hhp file
    before you compile. If you open the .hhp file in a text editor,
    such as Notepad, you will see a [WINDOWS] section and for each
    window defined there will be a series of numbers. One of these is a
    vector [in square brackets] that defines the original position.
    These are absolute screen pixels.
    In older versions of RoboHelp, one of which I use, there was
    a limit to the size of the window RH would allow but when I changed
    the .hhp, RoboHelp didn't try to overwrite it unless I reopened the
    Windows properties dialog. I'm not sure how the latest versions
    handle this but you might try editing the .hhp with Notepad and
    then compiling the .chm.
    John

Maybe you are looking for

  • Is the Mini-Dvi adapter suppose to click into the back on the Mac mini?

    Is the Mini-Dvi adapter suppose to click into the back on the Mac mini? It does on my mac book but not on the Mac mini. I sort of have to just jam it in there, no nice clicking sound, and it does not feel very secure.

  • Is possible paging in HTML output?

    Hi,i show a simple table with 25,000 rows(10 columns) in html format but is very heavy and low for the web browser, There is some way to show the results of 1,000 in 1,000? do you understand me? I upload an image example here -> http://img87.imagesha

  • How to create dll with visual c++ 6.0

    I have create two file ( file.h, file.cpp) I make a new project in visual c++ 6.0, to make dll wizard. and then I add code (file.h, file.cpp) in this project. But when i build it has a error.: fatal error C1010: unexpected end of file while looking f

  • E not assigned Error when running Data Manager

    Hi, When I try to import Master Data from BW to BPC, All the ID's are loaded correctly, however I get an error message that :E not assigned when I run the Data Manager even though I have the Language set to "E". Any inputs are appreciated. thanks, Va

  • Storage problem: Other taking up 150GB

    Hi, i dont seem to be able to find a solution to this problem. 50 % of my drive is marked as other. any ideas what this is or how i can reduce it? thanks.