Single Selection
The component jtp:sbSingle supports the following attributes
- icon : Will be shown as a icon before the text
<jtp:sbSingle handler="#{sbhSingleBean.sbhLocale}" update="@form :grid"
label="#{sbhSingleBean.sbhLocale.selection.name[localeCode].lang}">
<h:outputText value="#{var.name[localeCode].lang}"/>
</jtp:sbSingle>
@Named @ViewScoped
public class SbhSingleBean extends AbstractJeeBean implements SbSingleBean
{
final static Logger logger = LoggerFactory.getLogger(SbhSingleBean.class);
private static final long serialVersionUID = 1L;
private final SbSingleHandler<IoLocale> sbhLocale; public SbSingleHandler<IoLocale> getSbhLocale() {return sbhLocale;}
public SbhSingleBean()
{
sbhLocale = new SbSingleHandler<IoLocale>(IoLocale.class,this);
}
@PostConstruct
public void init()
{
super.initSecurity();
sbhLocale.update(fUtils.all(IoLocale.class,3));
}
@Override
public void selectSbSingle(EjbWithId item) throws JeeslLockingException, JeeslConstraintViolationException
{
logger.info(item.toString());
}
}