Multi Selection
One important feature of sb:multi is the
- headerIcons (false, true)
- listIcons (false, true)
- counter (false, true)
- label (String)
<jtp:sbMulti handler="#{sbMultiBean.sbhLocale}" update="@form :grid" headerIcons="true" listIcons="true" counter="true" label="Flags">
<h:outputText value="#{var.name[localeCode].lang}"/>
</jtp:sbMulti>
@Named @ViewScoped
public class SbMultiBean extends AbstractJeeBean implements SbToggleBean
{
final static Logger logger = LoggerFactory.getLogger(SbMultiBean.class);
private static final long serialVersionUID = 1L;
protected final SbMultiHandler<IoLocale> sbhLocale; public SbMultiHandler<IoLocale> getSbhLocale() {return sbhLocale;}
public SbMultiBean()
{
sbhLocale = new SbMultiHandler<>(IoLocale.class,this);
}
@PostConstruct
public void init()
{
super.initSecurity();
sbhLocale.setList(fUtils.all(IoLocale.class,3));
sbhLocale.preSelect(JeeFacade.LocaleCode.en);
}
@Override
public void toggled(SbToggleSelection handler, Class<?> c) throws JeeslLockingException, JeeslConstraintViolationException
{
}
}