Hey,
Does anyone know how to make the checkboxes lay in a horizontal direction?
Thanks Much
I do not know of any way to accomplish that. If you want to use an Option list, you can use the UltraOptionSet and set the MaxColumnWidth and ItemSpacingHorizontal to achieve that type of display.
Let me know if that helps.
Thanks
Jason
Thanks for answering so quickly. I don't know if that will work since I'm using the JSF/Java. I was kind of hoping that the component had an orientation="portrait" or "landscape" ... no such luck so far... I haven't tried the style="..." yet.
Here is a snippit of the jsf code
<ig:checkBoxList id="averagePeriods" binding="#{page.periodsForAverage}" dataSource="#{page.periodsForAverageList}" tooltip="Choose the measurement periods you would like to use for the average" style="white-space: nowrap; font-style: normal; font-family: Arial, Verdana, Sans-Serif; font-size: 11px; font-weight: normal"/>
Eric:
None of the core components (h: and f: ) support AJAX "out of the box" but you can get them to with a little javascript code. Basically, you want to connect the "onclick" method of your check boxes to our ig.SmartSubmit method. The details for doing that are in the AJAX section of our online demos at http://www.componentsforjsf.com. If you look at Example #3 "Invoking AJAX from Javascript" you'll see how to do it.
Thanks for posting!Jim
Thanks Jim,
Will the h:selecteManyCheckbox support the smart refresh stuff? The application that I'm writting is kinda like that example you guys have with the Countries / Cities ( http://java.samples.infragistics.com/NetAdvantage/JSF/2008.1/featurebrowser/webinput/checkBoxList/index.faces ). So someone will select a, in my case, month year ( ie feb08 ) and this will generate a second set of check boxes. Then they can select another month year that will add to that second set etc...
I figured that I'd ask the question first before I invest a lot of time with it since I have so much stuff to do.
Eric
Hi Eric:
Unfortunately, right now, there's no way to do that. However adding this ability is easy and it is one of several tweaks that we'll have added to the product over the next few months. For now you can use the core component h:selecteManyCheckbox which includes a "layout" attribute. You can use this component with our AJAX framework as described in the online examples at http://www.componentsforjsf.com.
Best,
Jim
Oh man, I blew that one. For some reason I was thinking Windows Forms .NET. Let me loop James Cook in on this, he is our PM for Java. I will forward him the thread and he can give us an answer.
Sorry about that,