How to make HtmlSelectManyCheckBox scrollable

Hi,
I have a requirement like , have to create the checkbox list dynamically.
I am doing it through the binding. But i want to make the HtmlSelectManyCheckBox should be scrollable.
I am doing as belwo
HtmlPanelGrid innerGrid = new HtmlPanelGrid();
               innerGrid.setWidth("150%");     
               innerGrid.setStyle("height:150px; border:2px; overflow-x: scroll; overflow-y: scroll;");
HtmlSelectManyCheckbox selectBox = new HtmlSelectManyCheckbox();
               selectBox.setBorder(3);
               selectBox.setLayout("pageDirection");
               selectBox.setStyleClass("selectManyCheckbox");
               selectBox.setTitle(catVO.getCatName());
               // adding the selectitems to select many list box
               UISelectItems items = new UISelectItems();
               items.setValue(catVO.getInterestItems());               
               selectBox.getChildren().add(items);
innerGrid.getChildren.add(selectBox);Though i set the style of the grid to be scrollable , but its not working properly.
Plz help me , how to make it scrollable.

hari_honey wrote:
Thank u , ok how to apply the styles or style class to the HtmlPanelGroup.Uh, just the same way.
And i have to create the lists dynamically , and i dont have the count of the number of panelGroups.You already have the count of checkboxes.
How can i put them in table.The same way.

Similar Messages

  • How to make JList scrollable left right?

    Hi,
    How to make JList scrollable left right?
    Ty.

    jList MyList = new JList();
    JScrollPane  sp = new JScrollPane(MyJList,JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);then the horizontal (and vertical if its the case) scrollbar will show up
    hope this helps

  • How to make chart scrollable?

    Hi everybody,
    I want to ask how to make a chart become scrollable (just like a chart with a scroll bar that help us see all content in this chart when this content become to large).
    Because my line chart adding series data based on real time, so the content change dynamically. And when the content change, I don't want the axis change its size to fit the chart size, because it make the line chart smaller and narrow.
    I have seen in JavaFx Ensemble the example *"Advanced Stock Line Chart Sample"*, it seem like what I looking for. But this chart clear the old data after a period. I want chart to keep the old data and when I want to review, just scroll back
    Can anyone give me suggestion?

    Have you looked at ScrollPane.... http://docs.oracle.com/javafx/2/api/javafx/scene/control/ScrollPane.html
    You can just throw your chart in there. Then if your chart gets bigger then the screens dimensions the ScrollPane will become scrollable.

  • How to make JFrame scrollable?

    How can I make a JFrame scrollable? So that when I resize the JFrame to a smaller size the contents remain accessible? The way it is now is that when I resize a JFrame I can't access the components that fall out of the window (I'm using absolute component positioning within the JFrame). I thought adding two scrollbars to take care of this would be easy, but so far I haven't been able to get it right. Any suggestions would be appreciated.

    Why dont you put all your components in a JPanel, add a scrollpane to it and then add that JPanel to
    ur JFrame.
    += KRR

  • How to make a scrollable applet

    How do I make an applet scroallable? Not a scrollpane within an applet but instead make the whole contentpane for the applet as a scrollable pane if the content within the applet�s contentpane is too small to view all the added content. Or if the applet is added to a frame to be run as an application and the frame size is decreased.
    That is, how do I make a scrollpane that fills the whole contentpane for the applet and is resized together with the applet�s contentpane? What do I for example have to add to this little applet to make it�s contentpane scrollable?
    public class Applet extends javax.swing.JApplet
        public void init()
            // Initialization of the applet pane
            getContentPane().setBackground(java.awt.Color.WHITE);
            getContentPane().setLayout(null);
            // Adds some content
            JLabel label = new JLabel("Applet application");
            label.setSize(100, 20);
            label.setLocation(10, 10);
            getContentPane().add(label);
    }It is probably very easy but I can�t figure it out myself yet, I am still too new to Swing : )

    Thank you for your answer, but I am not quite happy yet ...
    What is it so bad with use of null-layout? I have found that I can use exact positioning using setLocation if I set use null-layout which I can�t with for example BorderLayout. It is even worse, the BorderLayout makes the UI ugly by size of the content to fill one out of five "cells". But I know I am wrong when I say nul-layout is fine because many other also complains on null-layout, I just don�t know why I am wrong?
    But any way, with null-layout, something like this ...
           JPanel contentPane = new JPanel(new java.awt.BorderLayout());
           getContentPane().add(new JScrollPane(contentPane));
           JScrollPane scrollpane = new JScrollPane();
           scrollpane.getViewport().add(getContentPane());
           // Initialization of the applet pane
           contentPane.setBackground(java.awt.Color.WHITE);
           contentPane.setLayout(null);
           contentPane.add(table);do I just get a white empty area. If I instead use a BorderLayout like in your example do the table fill the whole space, and that does not look too beautiful. Couldn�t I instead get a pane with some absolute positioned elements that has some space around them scrollable?
    I guess I am on the wrong direction now : ) but I then need someone to teach me why?

  • How to make a SCROLLABLE Table in ADF Faces ?

    Hi All,
    I want to make my ADF Table Scrollable (both Horizontally & vertically). It means when I have 30 rows on the table, I can make it only display 10 rows visible, then scroll it vertically.
    Also If I have wide tables(many columns) I can scroll it horizontally.
    Is it possible with ADF Faces ?
    (I look at FrameBorderLayout, but it seems not be able to do that )
    Thank you,
    xtanto

    Hi,
    What about the Horizontal scrolling ?
    for exampe :
    I have about 15 columns, the full page width can only shows 10, so I need to scroll horizontally, But I don't want to scroll the page, only the table.
    Is there any ADF Faces components for this ?
    or any commercial JSF components ?
    Thank you,
    xtanto

  • How to make JScrollPane scrollable only in the y- direction

    Hai,
    can some one help me fix this one. I need to create a JScrollPane which is scrollable only in the y direction.

    Hi everyone,
    Create the JScrollPane in this way
    JScrollPane ScrollPane1 = new ScrollPane(JComponent,
    VERTICAL_SCROLLBAR_ALWAYS,
    HORIZONTAL_SCROLLBAR_NEVER);Richard West

  • How to make JMenu scrollable

    What to do if I have too many items in my Menu?
    Can I implement somthing similar scrolling and how?

    see http://forum.java.sun.com/thread.jsp?forum=57&thread=483165
    ;o)
    V.V.

  • How to make the editable col. in alv grid scrollable?

    friends,
        i have made the last col. in my alv grid editable..even though i have declared it as char of length 255, it's showing only 50 characters in the grid..but when i try to type beyond 50 characters, it's not allowing...how to make it scrollable so that it extends beyond 50 char. and capture all the characters typed in that col.? pl suggest..thanks all..
    Sathish. R

    Hi, u can extend the length of your last field.
    LOOP AT t_fieldcat INTO ls_fcat.
        CASE ls_fcat-fieldname.
          WHEN text-001.
            ls_fcat-outputlen = c_10.                    "10
          WHEN text-002.
            ls_fcat-outputlen = c_20.                    "20
          WHEN text-003.                                  "your lastfield
            ls_fcat-outputlen = c_255.                  "255
                "do nothing
        ENDCASE.
    *fixed column
        ls_fcat-fix_column = c_x.
    *changes to take effect
        MODIFY t_fieldcat FROM ls_fcat.
        IF sy-subrc = 0.
          "do nothing
        ENDIF.
        CLEAR ls_fcat.
      ENDLOOP.

  • How to make dos window scrollable under win98?

    Hi, I am using win98, every time when I run my GUI application, whenever I got bunch of error message that can not be displayed in one window, I will miss the original error information. Can anyone tell me how to make my dos window scrollable so that I can view all error message.
    Thanks a lot.

    I don't think that you can do this. There is another way, however: When java throws an exception, if it is not caught in your program, it is sent to the standard error, which is the console. You can simply reset this to be a file, so you can read this to get all the error info. Try using the following code in your main method:
      public static void main(String[] arg) {
        try {
          System.setErr(new PrintStream(new FileOutputStream(new File("Errors"))));
          //instantiate your main class here
          MyClass mc=new MyClass(); //or whatever
        } catch (Exception _ex) {     
          System.out.println("An error occurred"); //exception get sent to standard error automatically, so there
                                  //is no real need to catch this exception. However, I use it to display
                                  //a message on the console to let me know an error has occurred.
          System.err.println(_ex.getMessage()); //and finally, print the exception to file
          _ex.printStackTrace();
      }

  • How to make a second scrollbar

    hello,
    I'm making an ipad version of a news paper in indesign but I have a little problem.
    I made a scroll bar for the menu so you can scroll through all the news.
    now I want to make a second scroll bar on the same page so when you click on an article you can scroll through the text.
    It doesn't work to make another layer in your Scrollable content and in your layer 1 and name them the same. Like I made the first scrollbar
    You also can't make a second layer called Scrollable Content.... so I have no idea how to make a second scrollbar
    please help me
    Thank you

    already got the answer ^^ thanks anyway but please help me with my other problem : http://forums.adobe.com/message/3977205#3977205

  • How to make view automatically scroll when keyboard show up

    Hi all
    I'm like a totally noob for objective-c coding, let alone the iPhone programing. :P
    Anyway, I somehow manage to create a simple application that receive input via UITextField, do some simple math, then display the result in other UITextFields (which can act as a input vice versa).
    Problem is, when I use the UITextField at the buttom of the screen as an input, the keyboard will block that text field out of my view, so I could not see what I'm typing at all.
    That's the question. How to make my view scrollable, and make it simply scroll itself out of the way when the keyboard is shown? I already inherit my view from UIScrollView, but don't know what to do next. Can you guys help enlighten me, please?
    Thanx

    Of course, if you're dealing with textFields, you should change a few things try something like that in your .m file :
    - (void)textFieldDidBeginEditing:(UITextField *)theTextField
    if ([theTextField isEqual:yourTextField])
    // Restore the position of the main view if it was animated to make room for the keyboard.
    if (self.view.frame.origin.y >= 0)
    [self setViewMovedUp:YES];
    // Animate the entire view up or down, to prevent the keyboard from covering the author field.
    - (void)setViewMovedUp:(BOOL)movedUp
    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:0.3];
    // Make changes to the view's frame inside the animation block. They will be animated instead
    // of taking place immediately.
    CGRect rect = self.view.frame;
    if (movedUp)
    // If moving up, not only decrease the origin but increase the height so the view
    // covers the entire screen behind the keyboard.
    rect.origin.y -= kOFFSETFORKEYBOARD;
    rect.size.height += kOFFSETFORKEYBOARD;
    else
    // If moving down, not only increase the origin but decrease the height.
    rect.origin.y += kOFFSETFORKEYBOARD;
    rect.size.height -= kOFFSETFORKEYBOARD;
    self.view.frame = rect;
    [UIView commitAnimations];
    - (void)keyboardWillShow:(NSNotification *)notif
    // The keyboard will be shown. If the user is editing the author, adjust the display so that the
    // author field will not be covered by the keyboard.
    if ([yourTextField isFirstResponder] && self.view.frame.origin.y >= 0)
    [self setViewMovedUp:YES];
    else if (![yourTextField isFirstResponder] && self.view.frame.origin.y < 0)
    [self setViewMovedUp:NO];
    #pragma mark - UIViewController delegate methods
    - (void)viewWillAppear:(BOOL)animated
    // watch the keyboard so we can adjust the user interface if necessary.
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:)
    name:UIKeyboardWillShowNotification object:self.view.window];
    - (void)viewWillDisappear:(BOOL)animated
    [self setEditing:NO animated:YES];
    // unregister for keyboard notifications while not visible.
    [[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardWillShowNotification object:nil];
    be sure to invoke the method when you dismiss the keyboard, so that the view "falls back" to its normal state:
    if (self.view.frame.origin.y < 0)
    [self setViewMovedUp:NO];
    Of course, declare the method
    (void)setViewMovedUp:(BOOL)movedUp;
    in the .h file
    and the #define you will use in you .m file :
    // the amount of vertical shift upwards keep the text field in view as the keyboard appears
    #define kOFFSETFORKEYBOARD 50.0
    // the duration of the animation for the view shift
    #define kVerticalOffsetAnimationDuration 0.30
    good luck !

  • Make animation scrollable without large stage?

    Hi,
    I've seen many videos showing how to make an animation scrollable but so far, they all involve using a large stage in the composition. I'm looking for ways to export the animation into a Wordpress page, so I'd like to avoid having a huge dive inside the page that's already built.

    Hi Vivekuma,
    Thanks for the code, but does it work on stage that's the same size of the animation (300px wide x 400px tall)? Imagine a a bracelet composed of two pngs. I'm trying to make them open/close as the user scrolls up or down through the page.
    At first, I was able to accomplish that by placing the two pngs in a stage with a large height (2000px) a parallax code and a library from http://cdn.edgecommons.org/. All this, in Edge Animate.
    Thing is, I'd like the stage to be 400px tall, export the animation as a package and insert it at the bottom of a Wp page so the animation reacts to the scroll bar that the page already has.
    So far, I've tried using the html output and nest it into another div, but that seems to "break" the animation. I also used a plugin called Edge Suite, which easily uploads the animate package but it doesn't react to scrolling.

  • I was able copy the hardrive of my old macbook from "My Passport" onto the desktop on an older iMac. but i dont know how to make my hardrive and user name be the main one since someone had used it in the past and had their info on the comp. please help!

    I recently broke my 2008 macbook. i was able to use an external hardrive to back up my data onto My Passport. I was going to buy a new computer but a friend told me sher had an older version of the iMac. (not sure how old but it doesnt have a camera if that helps) i was able to hook it up and turn it on but i ran into a few problems. 1) the "authentic" user or whatever it says is someone who previously used the computer. i added me as a user but im not sure how to make me the main user. 2) after hooking up My Passport, i was able to drag my files and copy them to the desktop.(i think i did it correctly) now, i dont know how to make my hard drive and applications and iformation the "main " info. The current apps on the iMac are super old versions of iTunes and iPhoto and such. 3) while trying to open the apps from my macbook on the iMac, it said it didnt have the right software to open these apps.
    I am so computer illiterate so someone please help!!! Also, i do not have internet in my new apartment yet so if there is a way to make this happen without using the internet that would be preferred. sorry for the horrible spelling and poorly written paragraph.
    THANK YOU!!

    You are not going to be able to run your old system from the backup on this old computer as the hardware is incompatible.
    You need to get a new computer or a refurbished one.

  • How to make column headers in table in PDF report appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp

    Hi my name is vishal
    For past 10 days i have been breaking my head on how to make column headers in table appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp.
    Given below is my code in c# on how i export datas from different tables in sql server to PDF report using iTextSharp:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Data.SqlClient;
    using iTextSharp.text;
    using iTextSharp.text.pdf;
    using System.Diagnostics;
    using System.IO;
    namespace DRRS_CSharp
    public partial class frmPDF : Form
    public frmPDF()
    InitializeComponent();
    private void button1_Click(object sender, EventArgs e)
    Document doc = new Document(PageSize.A4.Rotate());
    var writer = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    doc.SetMargins(50, 50, 50, 50);
    doc.SetPageSize(new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.LETTER.Width, iTextSharp.text.PageSize.LETTER.Height));
    doc.Open();
    PdfPTable table = new PdfPTable(6);
    table.TotalWidth =530f;
    table.LockedWidth = true;
    PdfPCell cell = new PdfPCell(new Phrase("Institute/Hospital:AIIMS,NEW DELHI", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK)));
    cell.Colspan = 6;
    cell.HorizontalAlignment = 0;
    table.AddCell(cell);
    Paragraph para=new Paragraph("DCS Clinical Record-Assigned Dialyzer",FontFactory.GetFont("Arial",16,iTextSharp.text.Font.BOLD,BaseColor.BLACK));
    para.Alignment = Element.ALIGN_CENTER;
    iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
    png.ScaleToFit(105f, 105f);
    png.Alignment = Element.ALIGN_RIGHT;
    SqlConnection conn = new SqlConnection("Data Source=NPD-4\\SQLEXPRESS;Initial Catalog=DRRS;Integrated Security=true");
    SqlCommand cmd = new SqlCommand("Select d.dialyserID,r.errorCode,r.dialysis_date,pn.patient_first_name,pn.patient_last_name,d.manufacturer,d.dialyzer_size,r.start_date,r.end_date,d.packed_volume,r.bundle_vol,r.disinfectant,t.Technician_first_name,t.Technician_last_name from dialyser d,patient_name pn,reprocessor r,Techniciandetail t where pn.patient_id=d.patient_id and r.dialyzer_id=d.dialyserID and t.technician_id=r.technician_id and d.deleted_status=0 and d.closed_status=0 and pn.status=1 and r.errorCode<106 and r.reprocessor_id in (Select max(reprocessor_id) from reprocessor where dialyzer_id=d.dialyserID) order by pn.patient_first_name,pn.patient_last_name", conn);
    conn.Open();
    SqlDataReader dr;
    dr = cmd.ExecuteReader();
    table.AddCell("Reprocessing Date");
    table.AddCell("Patient Name");
    table.AddCell("Dialyzer(Manufacturer,Size)");
    table.AddCell("No.of Reuse");
    table.AddCell("Verification");
    table.AddCell("DialyzerID");
    while (dr.Read())
    table.AddCell(dr[2].ToString());
    table.AddCell(dr[3].ToString() +"_"+ dr[4].ToString());
    table.AddCell(dr[5].ToString() + "-" + dr[6].ToString());
    table.AddCell("@count".ToString());
    table.AddCell(dr[12].ToString() + "-" + dr[13].ToString());
    table.AddCell(dr[0].ToString());
    dr.Close();
    table.SpacingBefore = 15f;
    doc.Add(para);
    doc.Add(png);
    doc.Add(table);
    doc.Close();
    System.Diagnostics.Process.Start("AssignedDialyzer.pdf");
    if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.Yes)
    var writer2 = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    else if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.No)
    this.Close();
    The above code executes well with no problem at all!
    As you can see the file to which i create and save and open my pdf report is
    AssignedDialyzer.pdf.
    The column headers of table in pdf report from c# windows forms using iTextSharp are
    "Reprocessing Date","Patient Name","Dialyzer(Manufacturer,Size)","No.of Reuse","Verification" and
    "DialyzerID".
    However the problem i am facing is after execution and opening of document is my
    column headers in table in pdf report from
    c# and datas in it all appear in bold.
    I have browsed through net regarding to solve this problem but with no success.
    What i want is my pdf report from c# should be similar to following format which i was able to accomplish in vb6,adodb with MS access using iTextSharp.:
    Given below is report which i have achieved from vb6,adodb with MS access using iTextSharp
    I know that there has to be another way to solve my problem.I have browsed many articles in net regarding exporting sql datas to above format but with no success!
    Is there is any another way to solve to my problem on exporting sql datas from c# windows forms using iTextSharp to above format given in the picture/image above?!
    If so Then Can anyone tell me what modifications must i do in my c# code given above so that my pdf report from c# windows forms using iTextSharp will look similar to image/picture(pdf report) which i was able to accomplish from
    vb6,adodb with ms access using iTextSharp?
    I have approached Sound Forge.Net for help but with no success.
    I hope anyone/someone truly understands what i am trying to ask!
    I know i have to do lot of modifications in my c# code to achieve this level of perfection but i dont know how to do it.
    Can anyone help me please! Any help/guidance in solving this problem would be greatly appreciated.
    I hope i get a reply in terms of solving this problem.
    vishal

    Hi,
    About iTextSharp component issue , I think this case is off-topic in here.
    I suggest you consulting to compenent provider.
    http://sourceforge.net/projects/itextsharp/
    Regards,
    Marvin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • IDOC not receiving in XI

    Hi - Using PI 7.0 and checked all the configurations and read all the related blogs but i don't see the IDOC coming into XI. Checked the SM58 on R3 and does not show any errors. I checked the WE02 on XI system and shows a status of 60 and 56. Status

  • Two people with the same comcast email adresses on two phones

    It used to  be that My wife and I shared the same Comcast email address and the mail came to both of our Windows phones. Something happened and she does not get Comcast mail anymore

  • Authorization based on AP group

    Hi, I am running WLC 7.4.100 and ISE 1.2. With Flexconnect APs. In ISE I have a condition that say "Radius: Called-Station-ID CONTAINS ssid" in a Policy Set. This works fine and in ISE I can see the attribute on the devices: Called-Station-ID 7c-95-f

  • P group and P org

    Hello , Is there any relationship between Purachasing group and Purchasing orgnisation ? Kindly explain... Regards Pravin

  • New MBP battery won't charge unless closed

    I've had my 17' MBP for 3 months and I'm having more issues with it than my last 2 macbooks combined. My problem now is that the battery won't charge unless the laptop is closed, and yes, I use only Apple authentic chargers. I first thought it was a