Need horizontal scrollbar for af:selectManyChoice

Hi,
I use JDeveloper Studio Edition Version 11.1.1.7.0
There is a field for which we use af:selectManyChoice ADF component.
The component is displaying the vertical scrollbar to show all the values automatically.
And width wise the component is expanded to show values. But, its not expanded to show the value which has maximum value.
Can we add a property to instruct the component to take the maximum width of the values in the list?
Or can we add a horizontal scrollbar to the component?
Attached the screenshot.
Regards,
Tamil

Hi,
you can try CSS overflow:scroll to get a scrollbar. However, the width might be easier to set using CSS and can also be computed by a managed bean property
http://www.w3schools.com/cssref/pr_pos_overflow.asp
Frank

Similar Messages

  • Apex 5.0, Horizontal scrollbar for Interactive Report  and Pivot Format

    Hi,
    i would like to know how to have an horizontal scrollbar for an interactive report (5.0) after making a pivot from the user interface; i have a lot of columns and without the pivot the horizontal scrollbar appears . After it doesn't appear.
    I tried with the Region Header <div style="overflow:auto;"> and Region Footer </div>  but without success.
    Regards
    Gianpaolo

    Hi gianpagi,
    gianpagi wrote:
    i would like to know how to have an horizontal scrollbar for an interactive report (5.0) after making a pivot from the user interface; i have a lot of columns and without the pivot the horizontal scrollbar appears . After it doesn't appear.
    I tried with the Region Header <div style="overflow:auto;"> and Region Footer </div>  but without success.
         Please mention the theme and template you are using for the Interactive Report.
         Can you re-produce the issue on apex.oracle.com and share the workspace credentials, so that can have closer look at the issue?
    Regards,
    Kiran

  • Horizontal scrollbar for JComboBox - Not workable under Mac

    By referring to this thread Re: Horizontal scrollbar for JComboBox across multiple look and feel I try to provide horizontal scroll bar for JComboBox to my clients.
    private void adjustScrollBar() {
        //if (this.getItemCount() == 0) return;
        Object comp = this.getUI().getAccessibleChild(this, 0);
        if (!(comp instanceof JPopupMenu)) {
            return;
        JPopupMenu popup = (JPopupMenu) comp;
        // Works fine under Windows and Ubuntu Linux
        // However, in OSX 10.6.4
        // javax.swing.Box$Filler cannot be cast to javax.swing.JScrollPane
        JScrollPane scrollPane = (JScrollPane) popup.getComponent(0);
        scrollPane.setHorizontalScrollBar(new JScrollBar(JScrollBar.HORIZONTAL));
        scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    }The above code will cause ClassException under OSX 10.6.4. (Works fine for Windows and Linux)
    Any suggestion to resolve this problem. Sorry. I do not have a Mac machine. Hence, can't experiment out much with it.
    Thanks

    The following code works quite well for me.
        private void adjustScrollBar() {
            final int max_search = 8;
            // i < max_search is just a safe guard when getAccessibleChildrenCount
            // returns an arbitary large number. 8 is magic number
            JPopupMenu popup = null;
            for (int i = 0, count = this.getUI().getAccessibleChildrenCount(this); i < count && i < max_search; i++) {
                Object o = this.getUI().getAccessibleChild(this, i);
                if (o instanceof JPopupMenu) {
                    popup = (JPopupMenu)o;
                    break;
            if (popup == null) {
                return;
            JScrollPane scrollPane = null;
            for (int i = 0, count = popup.getComponentCount(); i < count && i < max_search; i++) {
                Component c = popup.getComponent(i);
                if (c instanceof JScrollPane) {
                    scrollPane = (JScrollPane)c;
                    break;
            if (scrollPane == null) {
                return;
            scrollPane.setHorizontalScrollBar(new JScrollBar(JScrollBar.HORIZONTAL));
            scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
        }

  • Horizontal scrollbar for JComboBox

    Hi,
    I want to use Horizontal scrollbar for JComboBox which i have used as an editor for table column cell and the matter in drop down list is larger but the width of column of a table is relatively small
    Any suggetions!
    Thanks and regards,
    Nilesh

    Hi,
    I want to use Horizontal scrollbar for JComboBox which i have used as an editor for table column cell and the matter in drop down list is larger but the width of column of a table is relatively small
    Any suggetions!
    Thanks and regards,
    Nilesh

  • Horizontal scrollbar for plot legend

    Hello,
    The plots in my plot legend for a graph can have quite long names so it would be great having a horizontal scrollbar.
    Quote from here
    >>To add a scroll bar to a plot legend, right-click the plot legend and select Visible Items»Horizontal Scrollbar or Visible Items»Vertical Scrollbar from the shortcut menu.
    I can see the entry horizontal scrollbar, but it is always grayed out, what's wrong?
    Thanks a lot for your help!
    Cheers,
    Rico

    I think you are misinterpreting the use of the scrollbar.  If you have a lot of plots on your graph, then you can use the scrollabr to not show all the plots at once and this allows you to scroll through the list.  It does not allow you to make the plot legend smaller to hide long names and scoll across.
    So, if you resize the plot to be horizontal, then you can display the horizontal scrollbar:
    If you resize it vertically, then you can display the vertical scrollbar:
    Message Edited by Matthew Kelton on 05-09-2008 12:09 PM
    Attachments:
    Plot legend horizontal.png ‏2 KB
    Plot legend vertical.png ‏2 KB

  • Horizontal Scrollbar for af:selectOneListBox

    Hi
    Is there a way to fix the width of af:selectOneListbox such that for list values that are longer than stipulated width, a horizontal scrollbar can also be introduced to browse these values?
    I cannot pre-determine the longest item as values within af:selectOneListbox is loaded dynamically.
    Thanks a lot in advance!

    Hi,
    you can try CSS overflow:scroll to get a scrollbar. However, the width might be easier to set using CSS and can also be computed by a managed bean property
    http://www.w3schools.com/cssref/pr_pos_overflow.asp
    Frank

  • Horizontal scrollbar for JTable

    Hi folks,
    I just created a JTable with 15 columns. As number of columns are more, I am not able to view all data. Probabaly I would need a Horizonatal scrollbar. I used setPreferredScrollableViewportSize(), but it doesn't help me. Can u pls any body help me to make it work out?
    Thanx in advance.
    Regards,
    Ayyappan.

    Hi chuanhaochiu,
    Thanx for immmediate reply. I have already put JTable in JScrollBar. I am comfortably getting the vertical scrollbars when more rows are added. I am not able to get only the horizontal bar.
    Ayyappan G.

  • How to render Inline scrollbars for a table

    Hi All,
    I'm using a large table with nearly 30 columns with the width property of the table set to 2200 and No wrap is set to TRUE on all the columns.
    Is there any possible way to render inline horizontal scrollbar for the table instead of rendering the scrollbars on an OAF page ?
    Please help me.
    Regards
    Srikanth Enuguru

    I cant help you with the Inline scroll bar you are looking for (dont think we have anything like this in OA Framework). But you can ponder over the idea of showing another region using hide/show feature. You can use this region to show all the additional information for which you need so many columns.
    Regards
    Sumit

  • How to create Horizontal scrollbar

    I am using Form6i, how to create a horizontal scrollbar for a multi-record block?
    Thanks!

    A horizontal scroll bar is not an object that you can drag or resize like a vertical scrollbar. It is implicitly created when needed.
    To get a horizontal scroll bar, you have to place the items you want to scroll on a STACKED CANVAS and set property Show Horizontal Scroll Bar of this canvas to Yes.

  • Horizontal Scrollbar in a JTextPane

    How can I specify whether or not there is a horizontal scrollbar for a JTextPane? The JTextPane is held within a JScrollPane, but if I try and do:
    scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
    I just end up with a pointless scrollbar on the JScrollPane which doesn't do anything, because the text in the JTextPane still wraps onto the next line.
    Any ideas?
    Thank-you.

    Use this code to cancel the line wrapping of the text pane.
    JTextPane textPane = new JTextPane() {
        public boolean getScrollableTracksViewportWidth() {
            return false;
        public void setSize(Dimension d) {
            if (d.width < getParent().getSize().width)
                d.width = getParent().getSize().width;    
            super.setSize(d);
    };

  • Horizontal Scroll for Apex 4

    I need horizontal scroll for a page in Apex 4. I saw an old thread about horizontal scroll using Apex 3.2. Below is the link for that thread where vee gave some plugin code to achieve this scrolling:
    horizontal bar Scroolling.
    I saved the code in the thread as js file and tried to import it as a plugin but the import was unsuccessful saying that was not a plugin file.
    Has anybody done it in Apex 4? I will be grateful for guidance to achieve this.
    Thanks

    Hi,
    For horizontal scroll copy your theme 15 standard report theme to new name.
    Change template Before Rows to
    <table summary="" cellspacing="0" id="report_#REGION_STATIC_ID#">
    <tr>
    <td>
    <table class="t15standard" summary="" cellspacing="0" #REPORT_ATTRIBUTES#>And template After Rows to
    </td></tr></table>
    <tr>
        <td colspan="99" class="t15afterrows">
            <span class="left">#EXTERNAL_LINK##CSV_LINK#</span>
            <table style="float:right;text-align:right;" summary="pagination">#PAGINATION#
    </table>
        </td>
    </tr></table>Horizontal/Vertical scroll, you need create same kind custom template I have in sample application for page 1 report
    Regards,
    Jari
    Edited by: jarola on Apr 20, 2011 5:56 PM

  • Scrollbar for the datatable

    Hello Friends,
    I need the scrollbar for datatable.
    I would like to explain my pbm with code.
    <h:form>
    <div style="overflow:auto;width:55%;height:45px;top:235px;left:219px;position:absolute;">
    <h:datatable>...</h:datatable>
    </div>
    </h:form>
    The above works fine but if the same is put in a panelgrid I get scrollbar anad table in a different locations and scrollbar doesnt scroll..ie
    <h:form>
    <h:panelGrid>
    <div style="overflow:auto;width:55%;height:45px;top:235px;left:219px;position:absolute;">
    <h:datatable>...</h:datatable>
    </div></h:panelGrid>
    </h:form>
    I wanted the datatable with scrollbar to be placed inside a panelgrid...
    can anyone help me out to get datatable with scrollbar.
    Thanks and Regards,
    Sonara.

    With all your help I got a scrollbar to work around the datatable just fine. But I got another problem now. Since I have the DIV tag's style's height and width fixed, when the number of rows in my table is less than I expected, I get a blank area below the table in the scroll area. This happens because you hardcode the DIV tag's width and height. Is there any way of avoiding this area that appears. Is a JSF scroll bar custom component my only option?

  • Need help creating horizontal scrollbar in graphic timelime (built in AI)!

    I am trying to use Catlyst to build an interactive scrollbar on a graphic timeline build in Adobe Illustrator,  I want to be able to scroll from one end of timeline to the other.  Can anyone help?  Thanks! 

    Can you post a screenshot of the timeline you are trying to convert. It will help in accurate response.
    You would probably need to do it in two step:
    - Have the graphic timeline converted into Datalist element, and make the data repeatable.
    - Create a Horizontal Scrollbar component and add it to the datalist component (timeilne)
          - If you have the Horizontal scrollbar designed, then select it and convert it to a Horizontal Scroll component (using the HUD - the black overlay that comes up when you select a graphic element)
          - After conversion you would need to define the parts of the H. Scrollbar (Track, thumb, right button, left button). Note: It helps if you designed your H. Scrollbar with these components in AI/PSD.
    - Now come back to the artboard, and select the H. Scrollbar by clicking on it.
    - Cut the H. Scrollbar
    - Click the Datalist element, and go to Edit Parts (in HUD)
    - Paste the H . Scrollbar inside the Datalist element. This will attach the scrollbar to the data.
    Hope this helps,
    Fu

  • Slow Swipe experience for Horizontal Scrollbar, in iphone & ipad

    Hi All,
    I put images in a DIV and enabled the Horizontal Scrollbar. The swipe action is too slow/short in iphone and ipad. I was expecting the device to translate scrollbar into a natural swipe behavior. By natural swipe behavior I mean the same sort of swipe experience you get when you scroll a web page vertically on iphone.
    Link to website: www.fieldrecording.info
    The experience is the same for both Chrome & Safari on iPhone. Below is the code related to the main div wrapping all images:
    sym.$("Group").css({ width:$(window).width(), overflow:"auto", overflowY: "hidden", })
    I found some tutorials on Jquery & CSS tricks, but I would like to know if Edge has some built in solutions to solve Swipe/Scroll interactions in a single attempt.
    http://css-tricks.com/the-javascript-behind-touch-friendly-sliders/

    Hi,
    Below link may helpful for you.
    ADF Table Horizontal Scrollbar

  • To disable the horizontal scrollbar and to create a next button to navigate

    To disable the horizontal scrollbar and to create a next button to navigate through the records. At present I create a JSF page and drag and drop my table view and then using the Tuning property I have limited the number of records to be shown. But I need to add a button and then code it to display the next few records. Can someone kindly suggest a suitable mechanism to get this accomplished.
    Edited by: 888970 on Oct 2, 2011 10:15 PM

    Hi Erp,
    At present these are the entries that I have in my JSPX page.
    I have a Table, Iterator and a Input List of Values. As per the scenario, I want a few rows to appear on the table for which I wanted to disable the horizontal scroll bar and then once I click on the list of values it must prompt me with the remaining page numbers.
    Earlier there are about 150 records in the table. I want to show them as 15 per page.
    For which I have added the Iterator and a LOV component code in my JSPX page.
    <af:iterator id="i1"
    value="#{bindings.NsEventDetailsView1.collectionModel}"
    var="row"
    binding="#{pageFlowScope.testPageBean.myIterator}"/>
    <af:inputListOfValues label="Label 1"
    popupTitle="Search and Result Dialog" id="ilov1"/>
    Then I created the bean class as per the example.
    Below is the bean class:
    import javax.faces.event.ValueChangeEvent;
    import oracle.adf.view.rich.context.AdfFacesContext;
    import org.apache.myfaces.trinidad.component.UIXIterator;
    import org.apache.myfaces.trinidad.event.AttributeChangeEvent;
    public class TestPagebean {
    public TestPagebean() {
    public void i1ov1_valueChangeListener(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    private UIXIterator myiter;
    public void setI1(UIXIterator myiter) {
    this.myiter=myiter;
    public UIXIterator getmyiter() {
    this.myiter=myiter;
    public UIXIterator setmyiter() {
    return myiter;
    UIXIterator valueIterator = getmyiter();
    if (!valueChangeEvent.getNewValue().equals(valueChangeEvent.getOldValue())) {
    int newPage =
    Integer.parseInt(valueChangeEvent.getNewValue().toString());
    int pageStart = (newPage) * valueIterator.getRows();
    valueIterator.setFirst(pageStart);
    AdfFacesContext.getCurrentInstance().addPartialTarget(valueIterator);
    But i am getting errors in the bean class.
    1. Block expecting }
    2. public UIXIterator getmyiter() {
    this.myiter=myiter;
    Return Statement missing
    3. Block expecting {
    4. Type or variable 'valueChangeEvent' not found
    5. Method 'getNewValue' not found
    6. Method 'getOldValue' not found
    7. Method 'toString' not found
    Can you suggest a possible solution?

Maybe you are looking for

  • What is the meant of "line 66"?

    I meet a set of access management as follows, does anyone know the use of line 66? Thanks line con 0 stopbits 1 line aux 0 line 66 (////////// why line 66 required ??) no activation-character no exec transport preferred none transport input all trans

  • Is Adobe going to make me reconfigure my apps each time it updates?

    Just finished updating and I open PS CC and I have to reset my configuration...Adobe have a problem with the way I use the product or can they not preserve where I have my pallettes?

  • Inserting MobileMe Videos into IWeb

    I have three questions about inserting MobileMe Videos into iweb. 1) I used the "insert from MobileMe" command in iWeb and it allows me to insert a video but I can't change the size of the video. Do you know how I can change the size. 2) I have some

  • My ipod separated the artist twice. Help!

    Hi, i bought an ipod three months ago and when i go view my music by artists, there are two or three different tabs for the same artist. I've checked and double checked that they are spelt the same and still nothing works. All i want is that the arti

  • How to calculate standard deviation of a certain number of points?

    Hi, I have an application that I acquire force signals and pu then on a array. I need to calculate the standard deviation and the mean each a certain number of points, 1000 for example. I'm having problems with this, if you can help me I'd be thankfu