the primefaces picklist examples contains declaration
<p:picklist id="pojopicklist" value="#{picklistview.themes}" var="theme" effect="bounce" itemvalue="#{theme}" itemlabel="#{theme.displayname}" showsourcecontrols="true" showtargetcontrols="true" showcheckbox="true" responsive="true" showsourcefilter="true" showtargetfilter="true" filtermatchmode="contains" converter="theme">
what converter="theme"
refer to? possible reference value of var
, that's not valid converter it? extracting example separate java ee project , running on glassfish 4.1 not surprisingly causes failure ~named object theme not found
(see https://github.com/krichter722/jsf-picklist-example provision git repository).
in showcase themeconverter.java file missing , in there can see real name being used , notice 'theme' typing error. use below code in sample project.
<p:picklist id="pojopicklist" value="#{picklistview.themes}" var="theme" effect="bounce" itemvalue="#{theme}" itemlabel="#{theme.displayname}" showsourcecontrols="true" showtargetcontrols="true" showcheckbox="true" showsourcefilter="true" showtargetfilter="true" filtermatchmode="contains" converter="themeconverter" responsive="true">
i try fix in github project also.
Comments
Post a Comment