Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!
  • 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

javascript error while selecting value from combo box

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

I am using rich suggestion box as combo box due to a requirement. When I select first time value from Suggestion box, it is working fine. But when I try to select the value again from the same suggestion box, I am getting following javascript error.

I need to implement this very urgently. Could anybody suggest, what could be done to resolve this?

Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLInputElement.setSelectionRange]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: suggestionbox.js :: <TOP_LEVEL> :: line 7" data: no]

Code :
<h:panelGrid columns="2">
<h:panelGrid columns="2">
<h:panelGrid columns="2" border="0" cellpadding="0"
cellspacing="0">
<h:inputText style="margin:0px;width:180px;"
id="primaryContact" value="#{sdlRegDetails.primaryContact}" >
</h:inputText>
<h:graphicImage value="/common/images/arrow.png"
onclick="#{rich:component('suggestion1')}.callSuggestion(true)"
alt="" />
</h:panelGrid>
</h:panelGrid>
<a4j:region id="primaryContactArea">
<rich:suggestionbox height="100" width="200"
usingSuggestObjects="false" immediate="true"
suggestionAction="#{scheduleAction.fetchMemberContactList}"
var="cnct" for="primaryContact"
fetchValue="#{cnct.firstName} #{cnct.lastName}"
id="suggestion1">
<h:column>
<h:outputText value="#{cnct.firstName} #{cnct.lastName}"/>
</h:column>
<a4j:support event="onselect" ajaxSingle="true" reRender="primaryContact" ignoreDupResponses="true">
<f:setPropertyActionListener value="#{cnct.contactId}"
target="#{sdlRegDetails.primaryContactId}" />
<f:setPropertyActionListener value="#{cnct.firstName} #{cnct.lastName}"
target="#{sdlRegDetails.primaryContact}" />
</a4j:support>
</rich:suggestionbox>
</a4j:region>
</h:panelGrid>
 
Saloon Keeper
Posts: 27696
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That isn't technically a Javascript error. Nor is is a JSF or Java error.

It's a Window error.

It indicates a bug in Windows itself, so I recommend that you search MSN for possible fixpacks or hotfixes.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic