• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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: 25482
180
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.
 
Creativity is allowing yourself to make mistakes; art is knowing which ones to keep. Keep this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic