Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

primefaces h:selectManyListbox issue

Anitha Pillai
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<p:panel styleClass="innerPanel_new" id="bstore">
<h:panelGrid columns="2" columnClasses="labelColumn, valueColumn">
<h:outputLabel value="StoreBrands to be Blocked: " styleClass="ioText" />
<h:selectManyListbox style="width:150px;height:80px"
<f:selectItem itemLabel="" itemValue="" />
<f:selectItems value="#{natbudgetMgmtMB.retailerList}"
var="sret" itemValue="#{}" itemLabel="#{}" />



List<BlockedStoreRetailer> blockedRet = natBudgetService.readBlockedRetailers(nbudget.getId(),"N");
if(blockedRet != null && !blockedRet.isEmpty()){
for(BlockedStoreRetailer bret: blockedRet){

public List<StoreRetailer> getBlockedRetailers() {
return blockedRetailers;

public void setBlockedRetailers(List<StoreRetailer> blockedRetailers) {
this.blockedRetailers = blockedRetailers;


problem: When I select multiple values, it get saved correctly.
But when I come back and reload the display screen, even though "blockedRetailers" has value in it, the
values does not appear selected in the screen... Any ideas why?

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic