• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

<h:selectManyListbox giving problem while submitting.

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using <h:selectManyListbox control. I have list of names. On click on a button i am passing the selected contacts to another selectmanylistbox using javascript.

when I submit i am getting below error.

sourceId=emailTemplate_1:emailTemplateForm:toList[severity=(ERROR 2), summary=(emailTemplate_1:emailTemplateForm:toList: Validation Error: Value is not valid), detail=(emailTemplate_1:emailTemplateForm:toList: Validation Error: Value is not valid)]

here is the code snippet:

<h:selectManyListbox id="contactRoleList" size="10" value="#{emailTemplateBean.rolesList1}" style="width:200px">
<f:selectItems value="#{emailTemplateBean.list11}" /> - > getting data from backing bean.
</h:selectManyListbox>

<button type="button" name="addTO" value="Add to Send List" onclick="javascript:processChange(this)">Add to Send List</button>


<h:selectManyListbox id="toList" size="6" value="#{emailTemplateBean.rolesList2}" style="width:200px">
<f:selectItems value="#{emailTemplateBean.list22}" /> - > list22 initialized at backing bean. - this will be having the data from first list box.
</h:selectManyListbox>

on submit i am getting above mentioned error.

can you please help me in this.. i struckup here...

here is the javascript code.

if($("#emailTemplate_1\\:emailTemplateForm\\:contactRoleList option:selected").length>0)
{
$("#emailTemplate_1\\:emailTemplateForm\\:contactRoleList option:selected").appendTo('#emailTemplate_1\\:emailTemplateForm\\:toList');
}

-Kiran
 
reply
    Bookmark Topic Watch Topic
  • New Topic