SimpleFormSelect Tag Property 'Size' Doesn't Work!

Hello, I have created a JSP that uses the SimpleFormSelect Tag, and I have a problem with the size property of it:
<SimpleForm name="testForm" target="xxx.jsp" method="post">
<SimpleFormSelect name="testSelect" displaymode="list" size="10">
<SimpleFormOption value="1">number 1</SimpleFormOption>
<SimpleFormOption value="2">number 2</SimpleFormOption>
<SimpleFormOption value="3">number 3</SimpleFormOption>
</SimpleFormSelect>
</SimpleForm>
This should display a list box that is 10 items high, but the height remains at 1. What am I doing wrong?

Try using multiple="true". Look at the following example: http://otn.oracle.com/docs/products/ias/doc_library/90200doc_otn/wireless.902/a90485/xml4.htm#1033402
Kalle

Similar Messages

  • About:config tabs min size doesn't work

    about:config tabs min size doesn't work.

    The about:config settings for setting tab widths have been removed from Firefox 4, to set tab width you can use the Custom Tab Width extension - https://addons.mozilla.org/firefox/addon/custom-tab-width

  • JTextField - Setting the column size doesn't work. Help, please.

    Hi,
    I want to set the column size of a text field from another text field by the input from the user. However, it just doesn't work. The following is my code. Just check out the last anonymous inner class action listener. Somehow i can get the user text, but it just doesn't work.
    Thanks for any helpful inputs.
    * Introduction to Java Programming: Comprehensive, 6th Ed.
    * Excercise 15.11 - Demonstrating JTextField properties, dynamically.
    * @Kaka Kaka
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.Border;
    import javax.swing.border.LineBorder;
    import javax.swing.border.TitledBorder;
    public class Ex15_11 extends JFrame{
        // Create two text fields and three radio buttons
        private JTextField jtfUserText = new JTextField(10);
        private JTextField jtfColumnSize = new JTextField(new Integer(10));
        private JRadioButton jrbLeft = new JRadioButton("Left");
        private JRadioButton jrbCenter = new JRadioButton("Center");
        private JRadioButton jrbRight = new JRadioButton("Right");
        public static void main(String[] args){
            Ex15_11 frame = new Ex15_11();
            frame.pack();
            frame.setTitle("Excercise 15.11 - Text Field Property");
            frame.setLocationRelativeTo(null);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
        // Start of Constructor
        public Ex15_11(){
            // Set the the frame layout
            setLayout(new BorderLayout(5, 5));
            // Create three panels and two labels
            JPanel jpText = new JPanel();
            JPanel jpHorizontalAlignment = new JPanel();
            JPanel jpColumn = new JPanel();
            JLabel jlblTextField = new JLabel("Text Field");
            JLabel jlblColumn = new JLabel("Column Size");
            // Create a button group for the radio buttons to be grouped
            ButtonGroup group = new ButtonGroup();
            // Group the radio buttons
            group.add(jrbLeft);
            group.add(jrbCenter);
            group.add(jrbRight);
            // set a titled border for a panel
            jpHorizontalAlignment.setBorder(new TitledBorder("Horizontal Alignment"));
            // Create a line border
            Border lineBorder = new LineBorder(Color.BLACK, 1);
            // the all the components to their corresponding panels
            jpText.add(jlblTextField);
            jpText.add(jtfUserText);
            jpHorizontalAlignment.add(jrbLeft);
            jpHorizontalAlignment.add(jrbCenter);
            jpHorizontalAlignment.add(jrbRight);
            jpColumn.setBorder(lineBorder);
            jpColumn.add(jlblColumn);
            jpColumn.add(jtfColumnSize);
            // add the panels to the frame
            add(jpText, BorderLayout.NORTH);
            add(jpHorizontalAlignment, BorderLayout.WEST);
            add(jpColumn, BorderLayout.EAST);
            jrbLeft.addActionListener(new ActionListener(){
                // Handle event
                public void actionPerformed(ActionEvent e) {
                    jtfUserText.setHorizontalAlignment(SwingConstants.LEFT);
            jrbCenter.addActionListener(new ActionListener(){
                // Handle event
                public void actionPerformed(ActionEvent e) {
                    jtfUserText.setHorizontalAlignment(SwingConstants.CENTER);
            jrbRight.addActionListener(new ActionListener(){
                // Handle event
                public void actionPerformed(ActionEvent e) {
                    jtfUserText.setHorizontalAlignment(SwingConstants.RIGHT);
            // Register the listener for the coloum size
            jtfColumnSize.addActionListener(new ActionListener(){
                // Handle event
                public void actionPerformed(ActionEvent e) {
                    System.out.println(Integer.parseInt(jtfColumnSize.getText()));
                    jtfUserText.setColumns(Integer.parseInt(jtfColumnSize.getText()));
    }Edited by: ChangBroot on Dec 16, 2008 6:13 PM

    don't forget to revalidate the JPanel after changing the components it holds:
        jtfColumnSize.addActionListener(new ActionListener()
          // Handle event
          public void actionPerformed(ActionEvent e)
            System.out.println(Integer.parseInt(jtfColumnSize.getText()));
            jtfUserText.setColumns(Integer.parseInt(jtfColumnSize.getText()));
            jpText.revalidate();
        });This will tell the jpText JPanel's layout manager to relayout the components that this JPanel holds. It should resize your JTextField. Note that in order to call this from within the anonymous inner ActionListener jpText will need to be declared "final". Either that or declared as a class field.

  • Custom Page Sizes doesn't work

    I have set up a few custom page sizes but when I try to used them, it doesn't work. Well once in blue moon it does.
    I can't find a consistent way that it does. I have read all the online help and followed the process to the letter, but when I select the page size under Paper Size it doesn't change the paper size.

    J,
    There definitely are problems with Custom Page sizes. I don't have enough specifics to formulate what I would consider good feedback to Apple, something that they could easily act on.
    I can tell you that if you set your System Preferences > International > Formats > Measurement Units: US and Set your Pages > Preferences... > Rulers > Ruler Units: Inches, you can create the size you want and it will stay selected and not pop back to the default. Here's what I have:
    Again, I know that there's a problem. If you wish, you can use the setup I outlined and get the job done and later take up the cause of fixing whatever is going on with the CM units.
    To Fruhulda, you noted that 9 cm by 6 cm is a size that fails as J described - and I confirmed here. However to get a successful size I found that I could use 3.53" X 2.35" (8.97CM X 5.97CM), a very close compromise. There clearly are problems with measurement units in Page Setup.
    Regards,
    Jerry

  • Property.state doesn't work

    Hallo everybody. I am using Flash Builder not since much time but i learned basilar things.. One of these things is that if i have a flex component and in my applications i have 2 states, state1 and state2, if i want to change a property (es. width) of that component in state1 and i wish it can be different in state2 i can write like this:
    width.state1
    width.state2
    This works always. Now, i just created my own component. The name of this component is "mioPannello":
    <?xml version="1.0" encoding="utf-8"?>
    <s:Panel xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx">
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
         <![CDATA[
              public var rett_titolo_bottom:int;
              public var rett_centrale_top:int;
              public var rett_centrale_bottom:int;
              public var font_label:Number;
    ]]>
    </fx:Script>
    </s:Panel>
    As you can see, i just created my 4 properties which i will use in my own skin. The name of this skin is "mioPannello_skin":
    <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:mx="library://ns.adobe.com/flex/mx"
        xmlns:s="library://ns.adobe.com/flex/spark" width="100%" height="100%" bottom="0" creationComplete="aCreazioneCompletata(event)">
        <s:states>
            <s:State name="normal" />
            <s:State name="disabled" />
        </s:states>
        <fx:Metadata>
            [HostComponent("componenti.mioPannello")]
        </fx:Metadata>
    <fx:Script>
    <![CDATA[
    import componenti.mioPannello;
    import mx.collections.ArrayList;
    import mx.events.FlexEvent;
    [Bindable]
    public var font_label:Number;
    public function aCreazioneCompletata(event:FlexEvent):void
         this.rett_titolo.bottom = hostComponent.rett_titolo_bottom;
         this.rett_centrale.top = hostComponent.rett_centrale_top;
         this.rett_centrale.bottom = hostComponent.rett_centrale_bottom;
         this.font_label = hostComponent.font_label;
    ]]>
    </fx:Script>
    <s:Rect id="rett_sfondo" height="90%" width="100%" bottom="0">
    <s:fill>
    <s:SolidColor color="#BDCCD4"/>
    </s:fill>
    </s:Rect>
    <s:Rect id="rett_centrale" height="100%" width="90%" horizontalCenter="0">
    <s:stroke>
    <s:SolidColorStroke caps="none" color="#FFFFFF" joints="miter" miterLimit="10" weight="1"/>
    </s:stroke>
        </s:Rect>
        <s:Rect id="rett_titolo" alpha="0.71" height="100%" width="80%" top="0" horizontalCenter="0">
        <s:fill>
        <s:SolidColor color="#E8EBF2"/>
        </s:fill>
        </s:Rect>
        <s:Label id="titleDisplay"
    top="5"
        color="#FFFFFF"
        fontWeight="bold"
        fontFamily="Myriad Pro" fontSize="{font_label}"
        horizontalCenter="0"/>    
    </s:SparkSkin>
    When i call my component in my application, i can set property values in this way:
    <componenti:mioPannello width="100%" height="100%" title="panel title" skinClass="skins.mioPannello_skin" rett_titolo_bottom="15" rett_centrale_bottom="10" rett_centrale_top="30" font_label="12"/>
    Everything works good if i have just 1 state, but if, in my application i have 2 states, state1 and state2, the code doesn't work. So, if i write:
    <componenti:mioPannello width="100%" height="100%" title="panel title" skinClass="skins.mioPannello_skin" rett_titolo_bottom.state2="5" rett_titolo_bottom="15" rett_centrale_bottom="10" rett_centrale_top="30" font_label="12"/>
    rett_titolo_bottom.state2="5" it should change in state2 (or not??) but it doesn't change... It takes always the value 15 as it is in main state.
    Why this thing happen??.. I though i just created a normal property... How can i change that property in each different state. I hope you understand my problem and can help me..
    Sry for bad english
    Thx for all
    Max   

    Ok, i solved my problem. The problem was that i was applying my properties in the CreationComplete event but now i changed it and i applied the new value through render Event and it works fine.
    Thx a lot CoreyRLucier
    Max

  • Reduce File Size doesn't work!

    When I click the (new) option 'Reduce File Size' in Keynote '09 the app prompts a estimated new size which is smaller than the current size. When I click on 'Reduce' the app doesn't do anything except for showing an error report which tells me something like: "..the file size was not reduced", for all of the files included. They are just regular .jpg/.png and .psd files. Did anyone else notice this bug..?

    PeterBreis0807 wrote:
    I'd say if it is a very large file with multiple large images, it might not be actually freezing, just taking its sweet time.
    It's why I leave Activity Monitor running when I use iWork applications.
    This way, I know ifd the app is dead or if it's heavily busy.
    Either that or it has nothing to do. It trims and reduces the resolution of bitmap images to 72dpi. There will be a fair bit of work if you have transparency in the document.
    It doesn't do a very good job IMHO and to reduce the file by 90% is a big ask.
    The 'Reduce FileSize' feature isn't linked to the 'export to PDF' feature.
    As explained, before applying "Reduce file size" it's good practice to "Reduce Image File Size".
    This will drop the parts of the pictures which aren't displayed.
    The asked task doesn't imply a reduction of the pictures by 90%.
    As I already wrote several times, it's more efficient to crop images to the really used area *_before inserting them in a Pages document_*.
    A Pages document is huge by nature because the Index.xml file describing its contents is highly verbose.
    If the document was saved with the 'embed Preview.pdf' feature active, the size of this PDF is adding a lot of used space.
    I'd print to pdf and reduce the quality in Acrobat Pro.
    Most of us don't own Acrobat Pro.
    I feel that it would be a bit silly to buy an application whose price is : 450$ as a complement for a 80$ set of applications.
    Before doing that, I would
    (a) crop pictures before inserting them
    (b) try to enhance Pages behaviour for free installing enhanced PDF filters.
    Yvan KOENIG (VALLAURIS, France) dimanche 29 août 2010 09:53:44

  • Attribute size doesn't work in selectone_listbox

    i'm trying to display a listbox with 12 items using this:
    <h:selectone_listbox
    title="#{bundle.funciones_noinscritas}"
    styleClass="listbox"
    size="12"
    id="listUnRegistered"
    value="#{admin.selectedFuncion}">
    <f:selectitems value="#{admin.funcionesNoInscritasList}" />
    </h:selectone_listbox>but it's rendered with all the items in admin.funcionesNoInscritasList.
    what i'm doing wrong? somebody can help me, please?

    This behavior is actually correct according to the beta spec, which says that this component always displays all the items - though a bug that "size" was accepted at all as an attribute on the tag.
    However: this is currently going to change for the final release. selectone_listbox and selectmany_listbox will support "size" as you'd expect. selectone_menu and selectmany_menu will not support "size" (and the tags won't contain "size").
    So, I'd either:
    - Leave your code as is, and it'll display right in 1.0 without change.
    - Use <h:selectone_menu> with size="12", but be ready to change your code for 1.0
    -- Adam Winer

  • Minimum Font Size doesn't work

    I've set Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size to 10 pt, but when I use Zoom Out, I get smaller fonts: The relation between font sizes on a page is kept.
    What I want is FF 1.5 behavior: Minimum Font Size is honored even on Zoom Out, which results in shrinking the headlines only and finally ending with all Text in the same size after some repetitions of Zoom Out.
    I have disabled Tools > Options > Content : Fonts & Colors > Advanced > "Allow pages to choose their own fonts, instead of my selections above".
    I have set Minimum Font Size for several encodings, but maybe the reason for the current behavior is a missing UTF-8 setting in the Tools > Options > Content : Fonts & Colors > Advanced > "Fonts for" listbox ? Most pages including this support.mozilla.com use that encoding.

    Main Menu -> View -> Zoom -> Zoom Text Only

  • Array Size doesn't work correctly after "Auto-indexed Tunnel"

    Array Size returns value even if Empty Array is detected after "Auto-indexed Tunnel" tha generates 2D array.
    See example + VI with correct output as I expected.
    OR
    There is problem with generating 2D array --- It's empty. 1D array is generated in right way. 100 x 0 but not Emptu Array.
    Attachments:
    ArraySize_Bug.vi ‏9 KB
    ArraySize_Corrected.vi ‏19 KB

    Not a bug. This is correct behavior that is consistent with other parts of LabVIEW.
    The decision to handle multi-dimensional arrays like this was made long ago and is an enshrined part of the LabVIEW language spec. It will not be changed.

  • Struts tag html:link doesn´t work in Safari

    *Very important question for our company!*
    I´m trying to optimize our web application( www.seb.de) for Safari browser.
    The problem is that Safari don´t display Struts <html:link> on the page. On the page should be a button "delete" at the right side.
    Button Code:
    <html:link>
    href="DeleteMail"
    newFlow="true"
    styleClass="a_delete"
    bundle="<%=SebMailBoxConstants.BUNDLESEBMAIL%>"
    titleKey="Delete"
    </html:link>
    There is a styleClass "a_delete", which this button uses:
    a.a_delete
    background-image: url('icon/icon_delete.gif');
    background-repeat: no-repeat;
    width: 12px;
    padding-right: 12px;
    margin-top: 2px
    Please help me to solve this problem.
    Best regards,
    Sergei.
    SEB Group.

    same thing here, I've talked to apple twice and no resolution
    if you move the screen up you can usually get the links to work
    also when I do Google searches I can get to the second page of results and then I can go no further

  • jsp:forward ... tag in servlet doesn't work in 7.0

              I have a problem with <jsp:forward ... > command.
              I found a post in the newsgroups that this is a bug traced by
              CR078071 and I am stucked because of this problem. Please, send me a patch.
              

              I have a problem with <jsp:forward ... > command.
              I found a post in the newsgroups that this is a bug traced by
              CR078071 and I am stucked because of this problem. Please, send me a patch.
              

  • Cfdocument doesn't work with my font size

    Hi All,
    My font size doesn't work inside my cfdocument using css
    Here is my code:
    In My css file I have this:
    body {     font-family:"times new roman";     font-size: 18px;     line-height: 20px; } 
    The font is a TTF and it shows in my cfadmin as:
    Font Family Font Face Postscript Name Font Type Useable In Path
    times new roman
    Times New Roman
    TimesNewRomanPSMT
    TRUETYPE
    PDF/FlashPaper
    c:\windows\fonts\times.ttf
    I try using postscript name and the same issue. If I increase the font size it actually reduce the size on the screen.
    I'm using windows 2008 with CF8 with the latest hotfix 8,0,1,195765
    Any ideas?
    Thanks in advance.
    Johnny

    Don't know why didn't show my code.
    Here is the code:
    <cfdocument format="flashpaper" pagetype="letter" fontembed="yes" margintop="0.3" marginbottom="1.25" marginleft="1" marginright="1.25" unit="in">
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
    <head>
        <style type="text/css" media="screen">
            @import url(assets/css/preview.css);
        </style>
    </head>

  • Attributecollection feature doesn't work properly in cfinput tag.

    Attributecollection feature doesn't work properly in cfinput
    tag.
    Id specified is not used but name property instead.
    Steps to reproduce bug:
    1. Use code:
    <cfform>
    <cfset st = StructNew()>
    <cfset st.name = "ab">
    <cfset st.id = "a_b">
    <cfinput attributecollection="#st#" />
    <cfinput name="ac" id="a_c" />
    </cfform>
    Results:
    Output:
    <form name="test" id="test" action="/test/form.cfm"
    method="post" onsubmit="return _CF_checktest(this)">
    <input name="ab" id="ab" type="text" />
    <input name="ac" type="text" id="a_c" />
    </form>
    Expected results:
    <form name="test" id="test" action="/test/form.cfm"
    method="post" onsubmit="return _CF_checktest(this)">
    <input name="ab" id="a_b" type="text" />
    <input name="ac" type="text" id="a_c" />
    </form>
    Is this a bug?

    Thanks for bringing this issue to light.
    We are looking into it.

  • Apache Sling JCR Resource Resolver doesn't work for the anchor tags which is been rendered through j

    Certainly I realized that Apache Sling JCR Resource Resolver doesn't work for the anchor tags which is been rendered through jquery or javascript.
    e.g.
    In Felix Console , in Apache Sling JCR Resource Resolver configuration I have added following mapping.
    /content/myproject/-/
    So If any anchor tag is there like <a href="/content/myproject/en.html"> click me </a> then it will be mapped to "/en.html" automatically.
    But the problem is there in following scenario.
    I have an anchor tag as follows.
    <a href="#" id="test"> click here </a>
    And I am assigning the href to anchor through JQUERY.
    <script>
    $("#test").attr("href","/content/myproject/en.html");
    </script>
    Ideally this should have been mapped to "/en.html".
    But it is not mapping to "/en.html". It still shows "/content/myproject/en.html".
    How to resolve this.
    Thanks,
    Sai

    In a servlet you have access to the resourceResolver so if you know which attributes contain links then it's relatively easy to apply resourceResolver.map to those links.
    Your challenge is clearly how do you know which attributes are links and which aren't. Its is the same challenge that makes parsing the response and rewriting it on the way out difficult - the JSON doesn't have any semantic meaning so how do identify which attributes require rewriting. There really is no good answer ot that question in my experience - all the options have down sides.
    Create some convention - all attributes matching this pattern X get mapped before being converted to JSON (could be attributes whose name ends in link, or it could a convention applied to the value of the attribute - if the attribute is a string that starts with /content apply the resource resolver mapping. In this case you have train your developers to follow this convention which is the down side.
    Create some configurable list of attribute names that require mapping. This is brittle, requires training and is easy to break.
    Implement a client side version of the resource resolver mapping. It wouldn't be as full proof as server side mapping (because that takes into account but you could make it work for simple logic like stripping of /content/site/en. If ou are just trying to solve the simple version of this issue - stripping off the top of the repository path this might be your best option.
    Not worry about it and set up Apache 301 redirects that catch any long URLs and redirect them to short URLs (so configure apache to look for any URL matching /content/site/en and strip off /content/site/en and do a 301 redirect to the shortened URL. You end up with a lot of extra HTTP request because of all the 301s but it would work (I wouldn't recommend this option - but it is possible).

  • Create Slideshow Display sequence property doesn't work

    Create Slideshow Display sequence property doesn't work,
    I have selcted random but the slideshow always plays in order. I searched the scripts for any logi related to this and other properties set, but cannot find any refernce to any of these propoerties:
    transType='Random' transTime='1' firstImage='1' dispSequence='1'>
    How can I make the slideshow start  with a random image each time?
    thanks
    s

    Hello,
    I am back on this question, about how to get the non-flash version of the Creatr Slideshow v1.6 to display the images in a random sequence. Can anyone point me in the right direction, please?
    thanks
    juno

Maybe you are looking for

  • Upload Data Periodically using FV75 based on Customer No

    Hi Guys, I'm very new to SAP. Here i'm facing one problem that i've to upload Data from File to SAP for FV75 transaction. I tried Recording but it's not possible. Then i tried BAPI like MRM_PARKED_INVOICE_ACCDATA,  AC_DOCUMENT_PARKING_NO_UPDATE, and

  • Fixing white balance

    How do you fix the white balance in Camera Raw by selecting an area that should be white if there are no good samples of white? Will bringing in a white swatch to white image be acceptable to white balance off? Thanks.

  • Transporting master data

    Hi All, I have heard the we should not transport master data.Can somebody pls tell me what are repurcassions if i do so?Can you give me the list of some SAP notes where SAP doesnt recommend to transport master data? Archit

  • No sound in firefox [solved]

    Hello comunity, i have a problem with my firefox. I would like to listen to music with spotify, but get not a tone. When i start firefox through the terminal i get: Failed to open VDPAU backend libvdpau_r600.so: Kann die Shared-Object-Datei nicht öff

  • [Q] StreamCorruptedException

    Hello, I'm using a simple EJB 2.0 bean with a findByPrimaryKey() method. A piece of the stack trace is: javax.ejb.FinderException: Exception raised in findByPrimaryKey java.io.StreamCorruptedException: InputStream does not contain a serialized object