SelectManyMenu - http://www.primefaces.org/showcase/ui/input/manyMenu.xhtml
SelectCheckboxMenu - http://www.primefaces.org/showcase/ui/input/checkboxMenu.xhtml
They look similar. I need to know when should I use SelectCheckboxMenu over SelectManyMenu. Or they do the same purpose?
Any historical stories behind these 2 components?
Well, do you want a drop down, or a scrollable list? Do you want to show images in the selections, or just text? Try both and pick one that fits your project's needs.
Related
Using wxPython, is it possible to nest a combobox inside other combobox in a similar way to how submenus are nested within menus? I need something similar for a wx.Combobox or a wx.Choice.
Or is there any widget with which this can be done?
Well, there are some possibilities:
wx.lib.combotreebox.ComboTreeBox
wx.combo.OwnerDrawnComboBox
# possibly also:
wx.lib.popupctl
You might also use a button (or some control) to invoke a PopupMenu. It may be confusing for the user though, and you might get into trouble when trying to position the Popup menu correctly. Generally speaking, I advice not to be too creative when making UI.
Have you seen wxpython demo? It is a nice showcase of all possible widgets. You can obtain it from here: https://extras.wxpython.org/wxPython4/extras/
I need to add different shapes and text for describing an image,I need to know is there any component in ICEfaces for that? If not is there any other approach available?
As I am new to JSF, I checked in Icefaces showcase but did not find the solution.I want something like paint where I can add different shapes and text to my image.
Please give me some suggestions in achieving this.
I'm wondering if it was possible to combine different types of primefaces' menus. Basically I wanna have a regular menu but one of the submenues should be tiered. Is this possible and if so, how it is possible?
Edit: the menu should look somewhat like this:
(source: picfront.org)
Thanks nikolaus
Look at the examples http://www.primefaces.org/showcase/ui/menu.jsf. Just add separator where you need it.
//edit
First example is a tiered menu with multiple submenus nested.
I'm using Primefaces p:inplace such that when some text is clicked, it's replaced with an h:selectOneMenu, and from there the user can open the menu and select an option from the drop-down choices. It would be helpful (and alleviate an extra click) if when I clicked the p:inplace element, the selectOneMenu that appeared was already activated with its drop-down options showing, as if the user had clicked it. I've searched for this on Google to no avail, and was wondering if perhaps it is actually possible to do such a thing, even with JavaScript. (I can also use p:selectOneMenu or a selectOneListbox if need be, but it didn't seem like that would help.)
As you say, you could use a selectOneListBox, especially if you have few options(works just fine inside p:inplace). I've never heard of a request like that and I think it's all about the browser (there may be some restrictions regarding an auto-expand).
But you can do a thing that could please you: remove the default option, like:
<f:selectItem itemLabel="Select..." itemValue=""/>
and do some research to find out the most selected option and put that option as a default/first. So most of the people will not even have to expand the select menu.
I found this similar Stack Overflow question today (don't know how I missed it originally):
Can I open a dropdownlist using jQuery
Looks like our fears are right and there's no way to open the drop-down list itself, but a combination of CSS and modifying the element may give me the results I'm looking for. Thanks!
I'm looking for a control that allows me to choose a single option from a list of choices via a dropdown box. The h:singleSelectMenu or h:singleSelectListBox worked well, but now I have a requirement to customize the glyph that triggers the dropdown. I've looked at the RichFaces components, but I don't see anything like a single select box.
Check rich:comboBox.