« Return to Thread: Curious issue with dropdown control?

Re: Curious issue with dropdown control?

by voodark :: Rate this Message:

Reply to Author | View in Thread

I have seen this issue, finally I found out that it is due to mismatch in what I am setting into dropDown in Java and what I am using in JSP.

I have dropDown1.setSelected(iserId); -- this I gave in Java in prerender

But JSP (which is generated) was referring to contactId column in the table

items="#{PortletPage1.contact_DataProvider.options['contact_.contactId,contact_.userId']}"

I changed this to

items="#{PortletPage1.contact_DataProvider.options['contact_.userId,contact_.userId']}" in JSP and then it worked fine

 « Return to Thread: Curious issue with dropdown control?