NoSuchElementException with SelectOneListBox

Ok, so for some reason I'm getting a NoSuchElementException relating to a SelectOneListBox (I think).
What I've got is this JSF page:
<body>
        <f:view>
            <h:form id="statReport">
            <h:inputHidden id="wpId" value="#{workpackage.wpID}" />
            <h:inputHidden id="projID" value="#{project.id}" />
                <h1><h:outputText value="Add Status Report" /></h1>
                <h:panelGrid columns="3">
                    <h:outputLabel value="Select Work Package" for="wp" />
                    <h:selectOneListbox id="wp" value="#{workpackage.wpID}" required="true">
                        <f:selectItems value="#{viewStatusReportHandler.workPackages}"/>
                    </h:selectOneListbox>
                    <h:message for="wp" errorClass="errorClass"/>
                    <h:outputLabel value="Previous Progress/Problems:" for="prev" />
                    <h:inputText id="prev" value="#{viewStatusReportHandler.statRep.lastProgressProblems}" />
                    <h:message for="prev" errorClass="errorClass"/>
                    <h:outputLabel value="Upcoming Progress/Problems:" for="pres" />
                    <h:inputText id="pres" value="#{viewStatusReportHandler.statRep.plannedProgressProblems}" />
                    <h:message for="pres" errorClass="errorClass"/>
                    <h:outputLabel value="Person Days JS:" for="pdJS" />
                    <h:inputText id="pdJS" value="#{viewStatusReportHandler.statRep.personDaysJS}" required="true"/>
                    <h:message for="pdJS" errorClass="errorClass"/>
                    <h:outputLabel value="Person Days P6:" for="pdP6" />
                    <h:inputText id="pdP6" value="#{viewStatusReportHandler.statRep.personDaysP6}" required="true"/>
                    <h:message for="pdP6" errorClass="errorClass"/>
                </h:panelGrid>
                <div>
                    <h:commandButton id="addStatusReport" action="#{viewStatusReportHandler.createStatusReport}" value="Add Report" />
                </div>
            </h:form>
        </f:view>
    </body>
</html>So, what happens is that once all the fields are filled out by the user and the 'Add Report' button is pressed:
exception
javax.servlet.ServletException
     javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
     org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
java.util.NoSuchElementException
     javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:117)
     javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:144)
     javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:49)
     javax.faces.component.UISelectOne.matchValue(UISelectOne.java:164)
     javax.faces.component.UISelectOne.validateValue(UISelectOne.java:137)
     javax.faces.component.UIInput.validate(UIInput.java:867)
     javax.faces.component.UIInput.executeValidate(UIInput.java:1065)
     javax.faces.component.UIInput.processValidators(UIInput.java:666)
     javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
     javax.faces.component.UIForm.processValidators(UIForm.java:229)
     javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
     javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662)
     com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
     com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
     com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
     javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
     org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)It appears to be some problem that happens during validation? I assume this could be fixed/changed to a different error if I had immediate="true" in my command button, however, I would much rather not have that as I really need the validation.
The Listbox is populated using this method which is in a backing bean:
public List getWorkPackages() {
        List<WorkPackage> wpckgs = statController.getEmployeeWPs(getManager().getId());
        WorkPackages = new ArrayList<SelectItem>(wpckgs.size());
        for (WorkPackage w : wpckgs) {
            SelectItem item = new SelectItem(w.getWpID(), w.getTitle());
            WorkPackages.add(item);
        return WorkPackages;
    }If you need any more information I'll be most happy to add it in.

may sound novice ... BUT ...
but seeing the method i am unable to decide whether WorkPackages is a class or object
WorkPackages = new ArrayList<SelectItem>(wpckgs.size()); // suggests its a object of type List
List<WorkPackage> wpckgs = statController.getEmployeeWPs(getManager().getId()); // suggests its a class ?? List of list ???just a thought may be u can delete all members in list WorkPackage at start of method and then start adding members to it
did u try using sop ... for num of elements in list b4 returning the list
System.out.println("Size is "+WorkPackage.size())

Similar Messages

  • NoSuchElementException with https connection

    Hi,
    I have a strange problem here: Always, when I try to connect to a https server, I get a NoSuchElementException. It happens when I try my own code or when I use the apple of my bank.
    Here is the stacktrace
    java.util.NoSuchElementException
         at java.util.StringTokenizer.nextToken(StringTokenizer.java:232)
         at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:762)
         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.setProxiedClient(DashoA6275)
         at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.superConnect(PluginDelegateHttpsURLConnection.java:329)
         at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.access$100(PluginDelegateHttpsURLConnection.java:44)
         at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection$2.run(PluginDelegateHttpsURLConnection.java:151)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.connect(PluginDelegateHttpsURLConnection.java:146)
         at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.getInputStream(PluginDelegateHttpsURLConnection.java:341)
         at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(DashoA6275)
         at sun.plugin.net.protocol.http.HttpUtils.followRedirects(HttpUtils.java:39)
         at sun.plugin.cache.CachedJarLoader.download(CachedJarLoader.java:311)
         at sun.plugin.cache.CachedJarLoader.load(CachedJarLoader.java:131)
         at sun.plugin.cache.JarCache.get(JarCache.java:177)
         at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(CachedJarURLConnection.java:71)
         at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(CachedJarURLConnection.java:56)
         at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:498)
         at sun.misc.URLClassPath$JarLoader.<init>(URLClassPath.java:459)
         at sun.misc.URLClassPath$2.run(URLClassPath.java:255)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath.getLoader(URLClassPath.java:244)
         at sun.misc.URLClassPath.getLoader(URLClassPath.java:221)
         at sun.misc.URLClassPath.getResource(URLClassPath.java:134)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:132)
         at sun.plugin.security.PluginClassLoader.findClass(PluginClassLoader.java:189)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:112)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
         at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:473)
         at sun.applet.AppletPanel.createApplet(AppletPanel.java:548)
         at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1621)
         at sun.applet.AppletPanel.runLoader(AppletPanel.java:477)
         at sun.applet.AppletPanel.run(AppletPanel.java:290)
         at java.lang.Thread.run(Thread.java:536)Any Clue?
    Big thx,
    LoCal

    Are you still plagued with this problem?
    By the way, I am interested in what you (LoCal) posted in
    Forum Home > New To Java Technology
    Topic: Is it possible to use Microsoft's Java Packages in Forte4Java/JBuilder?
    Please visit there.

  • Troubles with selectOneListbox

    I am using JSF 1.1 and am trying to get a selectOneListbox to work. I get this error:
    org.apache.jasper.JasperException: /Project_uifields.jsp(53,8) Attribute itemvalue invalid for tag selectItem according to TLD
    The error appears to be in this code:
    <h:selectOneListbox id="pickField" size="7">
    <f:selectItem itemValue="Environment" itemLabel="Environment"/>
    <f:selectItem itemvalue="Status" itemLabel="Status"/>
    <f:selectItem itemvalue="Priority" itemLabel="Priority"/>
    <f:selectItem itemvalue="Release" itemLabel="Release"/>
    <f:selectItem itemvalue="Issue Type" itemLabel="Issue Type"/>
    <f:selectItem itemvalue="Function" itemLabel="Function"/>
    <f:selectItem itemvalue="Module" itemLabel="Module"/>
    </h:selectOneListbox>
    What am I doing wrong?

    That'll learn me. I just saw my error. Thanks for
    the tip.You're welcome :)

  • A problem with JTextPane

    I'm making a simple java IDE with a JTextPane. I can get syntax hightlighting to work, but I'm having some strange problems. If you type too fast, the caret jumps to the beginning of the pane and starts putting your text there. I'm also getting a NoSuchElementException with a LinkedList that I use, but have no idea why. The codes kinda long, so I figured it would probably be better to link you to a zip file of my files so you can open them in whatever IDE you prefer instead of having to read them off this site. Here's the URL http://www.freewebs.com/dustpyle_x2/misc/jide.zip
    The MajorGradeDTP class is the driver.
    Any help would be greatly appreciated!

    Please help....No one really likes to download files. If it is to big to post here, then your example is not simple enough.
    Narrow down your example and question and someone here might be willing to look at it.

  • SelectOneListbox get selectedvalue problem

    Hi!
    I have a problem with selectOneListbox and i didn�t get it to work. I hope someone can help me.
    The problem is that i don�t get the selected-value after a command-button click in the form. The output value always is NULL but i need the key or the label to call another method.
    Here�s my code:
    <h:selectOneListbox id="filme" size="1" value="#{alleFilme.selectedFilm}">
    <f:selectItems value="#{alleFilme.filmList}"/>
    </h:selectOneListbox>
    <h:commandButton value="Speichern" action="#{alleFilme.outputTitel}" />
    private List<SelectItem> filmList;
    private String selItem;
    public List<SelectItem> getFilmList()
         filmList = new ArrayList();
         this.getFilme();
         for (Iterator i = this.filme.iterator(); i.hasNext();) {
         Film filmneu = (Film)i.next();
         filmList.add(new SelectItem(filmneu.getIdFilm().toString(), filmneu.getTitel()));      
         return filmList;
    public String getSelectedFilm() {
              return selectedFilm;
         public void setSelectedFilm(String selectedFilm) {
              this.selectedFilm = selectedFilm;
    public void outputTitel()
         System.out.println("Filmname:");
          String filmstring = new String();
          filmstring = this.getSelectedFilm();
          System.out.println(filmstring);
    }thank you in advance!

    1) Which JSF implementation/version?
    2) Is the bean request or session scoped?
    3) Is the action method actually be invoked? I.e. you got "Filename:" in the log too.
    4) What if you narrow down as much as possible to a small testcase with only <h:form>, <h:selectOneListbox> and <h:commandButton> and the appropriate backing bean code? If that don't work, then copypaste the complete code (not parts) of the JSF file as well as the bean.

  • 3 select Box and 2 dynamic one

    Hi guys,
    I have 3 select box.
    First one will change the second one values, and second one will change third one values
    So Im doing this :
    <h:selectOneMenu style="width:320px;" value="#{class.info1}"
                             valueChangeListener="#{class.changeInfo2}"
                             id="info1Id"
                             onchange="enableDisableElements(\'#{rich:clientId('info2Id')}\')">
                <f:selectItem itemLabel="#{messages.IRS_PageBlock1Select1}" itemValue="-1"/>
                <f:selectItems value="#{class.getListInfo1()}"/>
                <a:support event="onchange" reRender="#{rich:clientId('info2Id')}"/>
            </h:selectOneMenu>
    <h:selectOneMenu style="width:320px;" value="#{class.info2}"
                             id="info2Id" required="true" styleClass="disabledTrigger"
                             valueChangeListener="#{class.changeInfo3}"
                             onchange="enableDisableElements(\'#{rich:clientId('info3Id')}\')">
                <f:selectItem itemLabel="#{messages.IRS_PageBlock1Select2}" itemValue="-1"/>
                <f:selectItems value="#{info2List}"/>
                <a:support event="onchange" reRender="#{rich:clientId('info3Id')}"/>
            </h:selectOneMenu>
    <h:selectOneMenu style="width:320px;" value="#{class.info3}"
                             id="info3Id" required="true" styleClass="disabledTrigger">
                <f:selectItem itemLabel="#{messages.IRS_PageBlock1Select3}" itemValue="-1"/>
                <f:selectItems value="#{info3List}"/>
            </h:selectOneMenu>in Java :
    public void changeInfo2(ValueChangeEvent e) {
            newinfo2Id = (Long) e.getNewValue();
            callMethodToUpdateInfo2List();
        public void changeInfo3(ValueChangeEvent e) {
            newinfo3Id = (Long) e.getNewValue();
            callMethodToUpdateInfo3List();
        }callMethodToUpdateInfo2List and callMethodToUpdateInfo3List are methods returning List<SelectItem>
    So when I arrive on my page, select first drop down, second drop down is well updated, but then if I try to change some values in this one I get :
    Caused by java.util.NoSuchElementException with message: ""
    javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:117)
    javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:144)
    javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:49)
    javax.faces.component.UISelectOne.matchValue(UISelectOne.java:164)
    javax.faces.component.UISelectOne.validateValue(UISelectOne.java:137)
    javax.faces.component.UIInput.validate(UIInput.java:867)
    javax.faces.component.UIInput.executeValidate(UIInput.java:1065)
    javax.faces.component.UIInput.processValidators(UIInput.java:666)
    javax.faces.component.UIForm.processValidators(UIForm.java:229)Is it because the render of the component is bad updated ?? or something like that ?
    Thx guys
    Edited by: xtof83 on Jun 12, 2008 8:03 AM

    You may find this article useful: [http://balusc.blogspot.com/2007/10/populate-child-menus.html].

  • Af:SelectManyShuttle trailing list does not display initially any result

    I use af:selectedManyShullte component as follows:
    <af:selectManyShuttle value="#{backing_shuttle.selectedValues}"
    leadingHeader="Available"
    trailingHeader="Selected"
    partialTriggers="funds" leadingDescShown="true"
    trailingDescShown="true" valuePassThru="true">
    <f:selectItems value="#{backing_shuttle.allItems}"
    id="selectItems2"/>
    </af:selectManyShuttle>
    backing_shuttle is based on tutorial ShuttlePageBackingBeanBase managed bean class that uses functionality from ADFUtils class.
    I've configured managed bean properties in faces-config.xml and running jspx file I can see that ="#{backing_shuttle.selectedValues}" are being filled with data. However when a page appears there is initailly no data under the trailingHeader (panel). #{backing_shuttle.allItems} is being filled and that is being shown correctly on a panel.
    Any help would be appreciated

    This is solved, only values that appears in leading list can be displayed in the trailing list. However I have now problem with selectOneListbox adf element.
    The list is dynamically rendered from iterator and I assigned managed bean method to ValueChangedListener but this method is not being called when other value from the list is selected. So now the model is not being refreshed.
    Thx

  • Problem with af:selectOneListbox

    I am having a problem that when my af:selectOneListbox has enough values to display the scroll bar it is truncating the values displayed - anyone able to fix this - i need to have it autosize the width. I have also tried to add  s to the end of my selectItems values but they just get escaped out whether i set the escape to true or false on the selectItem value.

    The problem is that I dont know how wide the contents are - it depends on what the users query returns - the af:selectOneListbox works fine with auto-sizing itself unless the list is long enough to require a scrollbar - then the auto-sizing does not account for that and the scrollbar covers the last 2 characters. - Setting the width would potentially cause it to be too wide in some situations unless i can calculate the number of max number of characters in the list and acurately translate that to a width.
    I have a feeling there might be something in the fusion stylesheet that might effect this and be able to fix it.
    Edited by: user8961442 on Oct 21, 2010 6:45 AM

  • NoSuchElementException when using sequence table in Toplink with Oracle 9i

    Hi,
    UnitOfWork(11608452)--Connection(15933498)--UPDATE SEQUENCE SET SEQ_COUNT = SEQ_COUNT + 1000 WHERE SEQ_NAME = 'ABN_NOTIF_SEQ'
    UnitOfWork(11608452)--Connection(15933498)--SELECT SEQ_COUNT FROM SEQUENCE WHERE SEQ_NAME = 'ABN_NOTIF_SEQ'
    ClientSession(17794660)--Connection(15933498)--commit transaction
    java.util.NoSuchElementException
         at java.lang.Throwable.fillInStackTrace(Native Method)
         at java.lang.Throwable.fillInStackTrace(Compiled Code)
         at java.lang.Throwable.<init>(Compiled Code)
         at java.lang.Exception.<init>(Compiled Code)
         at java.lang.RuntimeException.<init>(Compiled Code)
         at java.util.NoSuchElementException.<init>(NoSuchElementException.java:35)
         at java.util.Vector.firstElement(Compiled Code)
         at TOPLink.Private.DatabaseAccess.DatabasePlatform.sequenceTableGetSequenceNumberNamed(Compiled Code)
         at TOPLink.Private.DatabaseAccess.DatabasePlatform.getSequenceNumberNamed(Compiled Code)
         at TOPLink.Public.PublicInterface.Session.getNextSequenceNumberValue(Compiled Code)
         at TOPLink.Public.PublicInterface.UnitOfWork.getNextSequenceNumberValue(Compiled Code)
         at TOPLink.Private.Descriptors.ObjectBuilder.assignSequenceNumber(Compiled Code)
    This is the error I am getting occasionally. I am using Toplink with custom sequence table and pre-allocation size is 1000.
    Can you Please advise me on this problem.
    Thanks in Advance,
    Durga

    hello,
    i m using msync for synchronization on Pocket PC 2003 with eVB. I dont know about msyncCom.
    i have mentioned a part of my code where the problem is found.
    rsmastbl.Open tblnm, conn, adOpenKeyset, adLockOptimistic
    MsgBox tblnm & " opened"
    'get the key fields to be compared in the query to get required record
    MsgBox rsmastbl.Fields(1).name
    keyfldnm1 = rsmastbl.Fields(1).name
    MsgBox "keyfldnm got value = " & keyfldnm1
    rsmastbl.Close
    MsgBox "keyfldnm got value = " & keyfldnm1
    Now here the value of keyfldnm1 before closing the record set is found to be correct.
    But the message box after closing the record set shows no value in the keyfldnm1.
    its very urgent....
    if anybody can help me
    thanx

  • Events not fired using h:selectOneListbox with valueChangeListener

    I am trying to detect a change to the selection list. My webpage contains
    <?xml version='1.0' encoding='UTF-8' ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:f="http://java.sun.com/jsf/core">
        <h:head>
            <title>Facelet Title</title>
        </h:head>
        <h:body>
            <h:form id="myform">
              <h:inputText valueChangeListener="#{itemSource.itemChanged}" /><br/>
              <h:inputText valueChangeListener="#{itemSource.itemChanged}" /><br/>
              <h:selectOneListbox id="selection"
                                  valueChangeListener="#{itemSource.itemChanged}"
                                  value="#{itemSource.selectedItem}"
                                  size="4">
                <f:selectItems value="#{itemSource.items}"
                   var="item"
                   itemValue="#{item}"
                   itemLabel="#{item.name}"/>
              </h:selectOneListbox>
            </h:form>
        </h:body>
    </html>and my class looks like this
    package com.j2anywhere.demo;
    import java.io.Serializable;
    import java.util.ArrayList;
    import java.util.Collection;
    import javax.faces.bean.ManagedBean;
    import javax.faces.bean.SessionScoped;
    import javax.faces.event.FacesListener;
    import javax.faces.event.ValueChangeEvent;
    * @author alex
    @ManagedBean(name = "itemSource")
    @SessionScoped
    public class ItemSource implements Serializable, FacesListener
      private Collection<Item> items;
      private Item selectedItem;
      public ItemSource()
        items = new ArrayList<Item>();
        for (int index = 0; index < 5; index++)
          items.add(new Item("Item" + index, "Value" + index));
        selectedItem = items.iterator().next();
      public Collection<Item> getItems()
        return items;
      public void setItems(Collection<Item> items)
        this.items = items;
      public Item getSelectedItem()
        System.out.println("getSelectedItem "+selectedItem);
        return selectedItem;
      public void setSelectedItem(Item selectedItem)
        System.out.println("setSelectedItem "+selectedItem);
        this.selectedItem = selectedItem;
      public void itemChanged(ValueChangeEvent event)
        System.out.println("selectItem "+event.getNewValue());
        Object value = event.getNewValue();
        if (value instanceof Item){
          selectedItem = (Item)value;
        else {
          items.add(new Item(value.toString(), value.toString()));
    }However no matter what I do I am not seeing the event being generated in the log. I am using JSF 2.0.2.FCS and tested with both Glassfish3 and Tomcat 6.0.26. Any idea what I am missing.

    Any chance you have a small example of using AJAX ?
    I tried adding
          <h:selectOneListbox id="selection"
                              valueChangeListener="#{itemSource.itemChanged}"
                              value="#{itemSource.selectedItem}"
                              onchange="submit();"
                              size="4">
            <f:selectItems value="#{itemSource.items}"
                           var="item"
                           itemValue="#{item}"
                           itemLabel="#{item.name}"/>
          </h:selectOneListbox>but now I am getting the following reported:
    Conversion Error setting value 'Item{name=Item3value=Value3}' for 'null Converter'.

  • Issue with h:selectManyListBox - java.util.NoSuchElementException

    I facing an issue with <h:selectManyListBoxs in JSF 1.1 with portlets.
    I am using RAD 7.5.3 and server is Web sphere Portal v6.1 Server on WAS 7.
    I have two <h:selectManyListbox moving options from Left to Right which i am doing in Javascript and it is perectly working fine.
    For the right hand side list box i have an additional movement for up and down which i am doing in javascript and it is working fine.
    Now the issue when I move from left to right and click on Save it is working fine. when I try to touch/select the options
    in right hand side list box and click on save i am getting NoSuchElementException in the processValidation phase as shown below.
    (It is not calling the save function at all in this case, it just calling the getLinkedBenchmarks method and failing).
    I added the attribute as immediate= true and the exception is comming now in APPLY_REQUEST phase.
    JSF1054: (Phase ID: PROCESS_VALIDATIONS 3, View ID: /jsp/Test.jsp) Exception thrown during phase execution:
    javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@32fc32fc]
    Caused by: javax.portlet.PortletException
         at com.ibm.faces.portlet.FacesPortlet.processAction(FacesPortlet.java:199)
         at com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:77)
         at com.ibm.wps.propertybroker.standard.filter.PropertyBrokerActionFilter.doFilter(PropertyBrokerActionFilter.java:731)
    Caused by: java.util.NoSuchElementException
         at javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:128)
         at javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:175)
         at javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:60)
         at javax.faces.component.UISelectMany.matchValue(UISelectMany.java:497)
         at javax.faces.component.UISelectMany.validateValue(UISelectMany.java:466)
         at javax.faces.component.UIInput.validate(UIInput.java:875)
         at javax.faces.component.UIInput.executeValidate(UIInput.java:1072)
         at javax.faces.component.UIInput.processValidators(UIInput.java:672)
         at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1047)
         at javax.faces.component.UIForm.processValidators(UIForm.java:235)
         at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1047)
         at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1047)
         at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:673)
         at org.ajax4jsf.framework.ajax.AjaxViewRoot.access$201(AjaxViewRoot.java:53)
         at org.ajax4jsf.framework.ajax.AjaxViewRoot$3.invokeRoot(AjaxViewRoot.java:315)
         at org.ajax4jsf.framework.ajax.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:53)
         at org.ajax4jsf.framework.ajax.AjaxContext.invokeOnRegionOrRoot(AjaxContext.java:191)
         at org.ajax4jsf.framework.ajax.AjaxViewRoot.processValidators(AjaxViewRoot.java:329)
         at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
         at com.ibm.faces.portlet.FacesPortlet.processAction(FacesPortlet.java:189)
         ... 118 more
      JSP code: I tried to add value for the <h:selectManyList it only allowing to add String not Arrays it displays the following warning
    message "Cannot coerce type String[] to java.lang.String"
    <h:selectManyListbox  size="10" id="availableBMId" converter="com.Converter"
         binding="#{lookup.components.availableBMId}" >
         <f:selectItems
              value="#{themeAttributeBean.availableBMs}" />
    </h:selectManyListbox></td>
    <td style="vertical-align: middle;">
    <div id="benchmark_button1" align="center"><hx:graphicImageEx
         id="Benchmark_AllRight" url="/images/AllRight.gif" height="16"
         hspace="2" style="cursor: hand" width="16" title="All Right"
         onclick="return listbox_moveall('#{lookup.clientIds.availableBMId}', '#{lookup.clientIds.linkedBMId}');">
    </hx:graphicImageEx> <br>
    <br>
    <hx:graphicImageEx id="Benchmark_Right" url="/images/Right.gif"
         height="16" hspace="2" style="cursor: hand" width="16" title="Right"                                                  
         onclick="return listbox_moveacross('#{lookup.clientIds.availableBMId}', '#{lookup.clientIds.linkedBMId}');">
    </hx:graphicImageEx> <br>
    <br>
    <hx:graphicImageEx id="Benchmark_Left" url="/images/Left.gif" title="Left"
         height="16" hspace="2" style="cursor: hand" width="16"                                                  
         onclick="return listbox_moveacross('#{lookup.clientIds.linkedBMId}', '#{lookup.clientIds.availableBMId}');">
    </hx:graphicImageEx> <br>
    <br>
    <hx:graphicImageEx id="Benchmark_AllLeft" title="All Left"
         url="/images/AllLeft.gif" height="16" hspace="2"
         style="cursor: hand" width="16"                                             
         onclick="return listbox_moveall('#{lookup.clientIds.linkedBMd}', '#{lookup.clientIds.availableBMId}');">
    </hx:graphicImageEx></div>
    </td>
    <td valign="top">
    <h:selectManyListbox size="10"
         id="linkedBenchmarksId" converter="com.TAPConverter"
         binding="#{lookup.components.linkedBMId}">
         <f:selectItems value="#{themeAttributeBean.linkedBMs}" />
    </h:selectManyListbox></td>
    <td style="vertical-align: middle;">
    <div id="benchmark_button2" align="center">
    <hx:graphicImageEx id="benchmark_up" url="/images/Up.gif" title="Up"
         height="16" hspace="2" style="cursor: hand" width="16"                                                  
         onclick="movePageUp('#{lookup.clientIds.linkedBMId}');"></hx:graphicImageEx>
    <br>
    <hx:graphicImageEx id="benchmark_down" url="/images/Down.gif" title="Down"
         height="16" hspace="2" style="cursor: hand" width="16"                                                  
         onclick="movePageDown('#{lookup.clientIds.linkedBMId}');"></hx:graphicImageEx>
    <br></div>
    *getting teh javascript values in a hiddend value:*
    <h:inputHidden id="hiddenLinkedBms"
    binding="#{lookup.components.hiddenLinkedBenchmarks}" value="#{bean.hiddenLinkedBms}" />
    *Backing Bean code:*
    public Map<String, Index> getAvailableBenchmarks() {
         availableBM = dao.getAllBM();
         if (themeID.intValue() > 0) {          
              linkedBM = dao.getLinkedBenchmarks(themeID.intValue());
              System.out.println("Linked Bench marks in getAvailableBM.. " + linkedBM);
              removeKeys(availableBM, linkedBM);
         return availableBM;
    public Map<String, Index> getLinkedBM() {
         linkedBenchmarks = dao.getLinkedBM(id);
         return linkedBM;
    Additional info:
         I override the equals and hashcode method in the Object class as suggested on the internet.
         I added the Custom converter by implementing javax.faces.convert.Converter and
         @Override
         public String getAsString(FacesContext arg0, UIComponent arg1, Object obj) {
              if(obj == null){
                   return null;
              } else if(obj instanceof Index){
                   final TAPIndex index = (Index) obj;
                   return index.getIndexName().toString();
              } else if(obj instanceof Objective){     
                   final InvestmentObjective invest = (Objective) obj;
                   return invest.getDescription()+" (" + invest.getCode() + ")".toString();
              return obj.toString();
         @Override
         public Object getAsObject(FacesContext arg0, UIComponent arg1, String value) {
                   return value;
    I have no Idea why it is behaving like this. Please help me.Edited by: Joglekar on Sep 17, 2010 10:17 AM

    Here is the proof - Let me know if am doing any thing wrong! FYI, I used JSF portlets in RAD 7.5.3 and Websphere portal server v6.1.
    I have two SelectManyListBox components and moving the options from left to right using Javascript and then select one of the options in the right hand side list box and click on submit. You will see the NosuchElementException.
    I don't have any logic inside my bean class in any of the methods.
    My Test JSP
    <%-- jsf:pagecode language="java" location="/.apt_generated/com/jsp/TestJSP.java" --%><%-- /jsf:pagecode --%><%@taglib
         uri="http://java.sun.com/portlet" prefix="portlet"%><%@taglib
         uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%><%@taglib
         uri="http://java.sun.com/jsf/core" prefix="f"%><%@taglib
         uri="http://java.sun.com/jsf/html" prefix="h"%><%@page language="java"
         contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" session="false"%><portlet:defineObjects />
    <f:view>
    <script language="javascript">
    function listbox_moveall(sourceID, destID) {
         var src = document.getElementById(sourceID); var dest = document.getElementById(destID);
         for(var count=0; count < src.length; count++) {
              var option = src[count];
              try {
                   dest.add(new Option(option.text, option.text), null); //Standard
                   src.remove(count, null);
              } catch(error) {
                   dest.add(new Option(option.text, option.text)); // IE only
                   src.remove(count);
              } count--;
         } return true;
    function listbox_moveacross(sourceID, destID) {
         var src = document.getElementById(sourceID); var dest = document.getElementById(destID);
         var selectedIndex = src.selectedIndex;
         if(selectedIndex == -1){
              alert("Please select to move");
         for(var count=0; count < src.length; count++) {
              if(src[count].selected == true) {
                   var option = src[count];
                   try {
                        dest.add(new Option(option.text, option.value), null); //Standard
                        src.remove(count, null);
                   } catch(error) {
                        dest.add(new Option(option.text, option.value)); // IE only
                        src.remove(count);
                   }  count--;               
    </script>
    <hx:scriptCollector id="scriptCollector1">
         <h:form styleClass="form" id="form1" prependId="false">
         <table BORDER="0" CELLPADDING="1" CELLSPACING="0" bgcolor="eeeeee">
              <tbody>
                   <tr> <td colspan="3"><b>TAP Investment Objectives</b></td> </tr>
                   <tr> <td bgcolor="#bfbfbf"><b>Available List</b></td>      <td width="65"></td>
                        <td bgcolor="#bfbfbf"><b>Linked List </b></td> </tr>
                   <tr><td valign="top">
         <h:selectManyListbox size="10" styleClass="selectManyListbox" id="listbox1">
                   <f:selectItems value="#{selectitems.testJSP.availableBMs.availableBMs.toArray}" id="selectItems2" />
         </h:selectManyListbox></td>
         <td style="vertical-align: middle;"> <div id="objective_button" align="center">
         <hx:graphicImageEx url="/images/AllRight.gif" title="All Right" height="16" hspace="2" width="16"
         onclick="return listbox_moveall('listbox1', 'listbox2');"></hx:graphicImageEx>      <br> </div> </td>
         <td valign="top">
              <h:selectManyListbox size="10" styleClass="selectManyListbox" id="listbox2" >
                   <f:selectItems value="#{selectitems.testJSP.linkedBMs.linkedBMs.toArray}" id="selectItems1" />
              </h:selectManyListbox>
         </td>
              </tr>
              </tbody>
         </table>
         <hx:commandExButton type="submit" value="Submit"
              styleClass="commandExButton" id="button1" action="#{testJSP.save}"></hx:commandExButton>
         </h:form>
    </hx:scriptCollector>
    </f:view>My Backing Bean Class
    package com.jpmorganchase.tap.ui.bean;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.component.UIComponent;
    import javax.faces.event.ActionEvent;
    public class TestUIJSP {
         private List<String> availableBMs;
         private List<String> linkedBMs;
         private UIComponent selectedBindingBMs;
         public UIComponent getSelectedBindingBMs() {
              System.out.println("getSelectedBindingBMs .. " + selectedBindingBMs);
              return selectedBindingBMs;
         public void setSelectedBindingBMs(UIComponent selectedBindingBMs) {
              this.selectedBindingBMs = selectedBindingBMs;
         public TestUIJSP(){
              System.out.println("inside constructor...............");
              availableBMs = new ArrayList<String>();
              availableBMs.add("Venkat");
              availableBMs.add("Narayana");
              availableBMs.add("Joglekar");
              linkedBMs = new ArrayList<String>();
         public List<String> getAvailableBMs() {
              return availableBMs;
         public void setAvailableBMs(List<String> availableBMs) {
              this.availableBMs = availableBMs;
         public List<String> getLinkedBMs() {
              return linkedBMs;
         public void setLinkedBMs(List<String> linkedBMs) {
              this.linkedBMs = linkedBMs;
         public String save(){
              System.out.println("save availableBMs........." + availableBMs);
              System.out.println("save linkedBMs........." + linkedBMs);
              return null;
         public void moveAllLeftToRight(ActionEvent evt){
              System.out.println("availableBMs.." + availableBMs);
              linkedBMs.addAll(availableBMs);
              System.out.println("LinkedBM's");
              availableBMs.clear();
         public void moveLeftToRight(ActionEvent evt){
              System.out.println("availableBMs.." + availableBMs);
    }MyFaces Config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN" "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
    <faces-config>
         <application>
              <state-manager>com.ibm.faces.application.DevelopmentStateManager</state-manager>
              <property-resolver>com.ibm.faces.databind.SelectItemsPropResolver</property-resolver>
              <variable-resolver>com.ibm.faces.databind.SelectItemsVarResolver</variable-resolver>
              <variable-resolver>com.ibm.faces.portlet.PortletVariableResolver</variable-resolver>
              <locale-config><supported-locale>en</supported-locale></locale-config>
              <message-bundle>com.PortletResource</message-bundle>
         </application>
         <factory><faces-context-factory>com.ibm.faces.context.AjaxFacesContextFactory</faces-context-factory>
              <render-kit-factory>com.ibm.faces.renderkit.AjaxRenderKitFactory</render-kit-factory></factory>
         <managed-bean>
                <managed-bean-name>pc_TestJSP</managed-bean-name><managed-bean-class>com.jsp.TestJSP</managed-bean-class>
                   <managed-bean-scope>session</managed-bean-scope>
              </managed-bean><managed-bean>
              <managed-bean-name>testJSP</managed-bean-name><managed-bean-class>com.bean.TestUIJSP</managed-bean-class>
                   <managed-bean-scope>session</managed-bean-scope></managed-bean>
         <lifecycle>     <phase-listener>com.ibm.faces.webapp.ValueResourcePhaseListener</phase-listener></lifecycle>
    </faces-config>
    My Protlet.xml<?xml version="1.0" encoding="UTF-8"?>
    <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" version="1.0" id="com.ibm.faces.portlet.FacesPortlet.c8eddc2f92">
         <portlet>
              <portlet-name>TestProject</portlet-name>
              <portlet-class>com.ibm.faces.portlet.FacesPortlet</portlet-class>
              <init-param><name>com.ibm.faces.portlet.page.view</name><value>/jsp/testJSP.jsp</value></init-param>
              <init-param><name>wps.markup</name><value>html</value></init-param>
              <expiration-cache>0</expiration-cache>
              <supports><mime-type>text/html</mime-type><portlet-mode>view</portlet-mode></supports>
              <supported-locale>en</supported-locale><resource-bundle>com.PortletResource</resource-bundle>
         </portlet>
    </portlet-app>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

  • SelectOneListbox with Integer value?

    Hello
    Maybe I'm stupid... I'm trying to do the following, where #{searchBean.filter.role.code} is of type Integer:
    <m:selectOneListbox id="role" size="1"
         value="#{searchBean.filter.role.code}">
         <f:selectItem itemLabel="VN" itemValue="417" />
         <f:selectItem itemLabel="PI" itemValue="415" />
    </m:selectOneListbox>
    I'm getting the following exception:
    java.lang.ClassCastException: java.lang.String
    I tried with some converters but could not find a solution. It seems that the value of the selectedItems are String and jsf cannot convert the code to String. But why?
    I hope someone can help. Thanks!
    Oliver

    What is it, the 'm' taglib? Is it the Sun JSF implementation? Why aren't you using the 'h' prefix?
    Anyway, the given code should just work, assuming that #{searchBean.filter.role.code} is actually mapped to java.lang.Integer and not null. But I recall some related bugs in one of the ancient JSF RI versions. Which implementation/version are you using? It might be worth upgrading to the latest. If you're using Sun RI 1.0 or 1.1, get the 1.1_02 here: [http://javaserverfaces.dev.java.net]. If your're using Sun RI 1.2 (Mojarra), or if your environment supports Servlet 2.5 / JSP 2.1, then get the latest 1.2 build (currently 1.2_09) from the same site.
    Said that, did you know that you can also just use a <h:selectOneMenu /> instead of a <h:selectOneListbox size="1" />? They are both effectively the same.

  • Help with using selectonelistbox to refresh picklist data

    Hi. I would like to be able to refresh the data in a richfaces picklist (both the left and right sides) when I click on an item in a selectonelistbox. I have tried a number of things to accomplish this, but I have not been able to get it to work. If I hard code data into the picklist for the first display of the page, the picklist displays the data. But when the valuechangelistener event fires and the method loads both sides of the picklist with new data from the DB, only the left side of the picklist gets displayed on the UI. The right side never gets displayed with the currently assigned roles.
    Here are my tags and relevant code sections.
    Thanks for your time.
    Tags:
    <div id="ApplicationRolePickListSection" class="ApplicationRolePickListSection">
    <p>Please choose an application for this user and assign user roles</p>
    <h:panelGrid styleClass="ApplicationRolePickListGrid" columns="2"
                     xmlns="http://www.w3.org/1999/xhtml"
                         xmlns:ui="http://java.sun.com/jsf/facelets"
                         xmlns:h="http://java.sun.com/jsf/html"
                         xmlns:f="http://java.sun.com/jsf/core"
                         xmlns:s="http://jboss.com/products/seam/taglib"
                         xmlns:a4j="http://richfaces.org/a4j"
                         xmlns:rich="http://richfaces.ajax4jsf.org/rich">
    <h:outputText styleClass="ApplicationRolePickListHeadings" value="Choose Application"/>
    <h:outputText styleClass="ApplicationRolePickListHeadings" value="Assign Roles"/>
    <h:selectOneListbox id="applicationSelectionList" styleClass="ApplicationSelectionList" value="#{applicationRoleManager.selectedApplication}" size="8"
                            onchange="submit()"
                              valueChangeListener="#{applicationRoleManager.loadRoleComponentsForApplicationSelection}"
                                    xmlns="http://www.w3.org/1999/xhtml"
                                      xmlns:ui="http://java.sun.com/jsf/facelets"
                                      xmlns:h="http://java.sun.com/jsf/html"
                                      xmlns:f="http://java.sun.com/jsf/core"
                                      xmlns:s="http://jboss.com/products/seam/taglib"
                                      xmlns:a4j="http://richfaces.org/a4j"
                                      xmlns:rich="http://richfaces.ajax4jsf.org/rich">
                   <a4j:support event="onchange" reRender="rolePicklist" />
                   <f:selectItems id="applicationList" value="#{applicationRoleManager.applications}"/>
            </h:selectOneListbox>
              <rich:pickList id="rolePicklist" styleClass="RolePicklist" value="#{applicationRoleManager.assignedRoles}"
                                  xmlns="http://www.w3.org/1999/xhtml"
                                      xmlns:ui="http://java.sun.com/jsf/facelets"
                                      xmlns:h="http://java.sun.com/jsf/html"
                                      xmlns:f="http://java.sun.com/jsf/core"
                                      xmlns:s="http://jboss.com/products/seam/taglib"
                                      xmlns:a4j="http://richfaces.org/a4j"
                                      xmlns:rich="http://richfaces.ajax4jsf.org/rich">
                <f:selectItems id="assignedRoles" value="#{applicationRoleManager.availableRoles}"/>
            </rich:pickList>
    </h:panelGrid>
    </div>Code:
    @Out(required=false)
    private List<SelectItem> availableRoles;
    @Out(required=false)
    private List<String> assignedRoles;
    for(SsoRole ssoRole:applicationRoleList)
    availableRoles.add(new SelectItem(ssoRole.getRoleId().toString(), ssoRole.getName()));     
    for(SsoRole ssoRole:userRoleList)
    logger.debug("*** LOADING ASSIGNED ROLE ID " + ssoRole.getRoleId().toString());
    assignedRoles.add(new String(ssoRole.getRoleId().toString()));     
    ...

    Who says you can't dynamically build a file name each loop iteration?  I like to use the Format String to add the loop counter to a string that then is turned into a file path.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Problem with h:selectOneListBox

    I ve got an arrayList
    private List tempData=new ArrayList();
    'tempData' contains a list of company names eg :-BAN~Bank of America,TCS~Tata Consultancy Services etc etc.Now my jsf page contains h:selectOneListBox
    <h:selectOneListBox id="cmpny" value="#{MyBean.selectedItem}">
    <f:selectItems value="#{MyBean.selectItems}/></h:selectOneListBox>
    How to show the list items in 'tempData' in the <h:selectOneListBox>?How can i link between List <SelectItem> and tempData?

    <h:selectOneListbox value="#{myBean.selectedCompany}">
        <f:selectItems value="#{myBean.selectCompanies}" />
    </h:selectOneListbox>
    private String selectedCompany; // +getter +setter
    private List<SelectItem> selectCompanies; // +getter
    public MyBean() {
        fillSelectCompanies();
    private void fillSelectCompanies() {
        selectCompanies = new ArrayList<SelectItem>();
        for (Company company : companyDAO.list()) {
            selectCompanies.add(new SelectItem(company.getValue(), company.getLabel()));
    }Or if you want to use actual Company objects as SelectItem value, then check this article: [http://balusc.blogspot.com/2007/09/objects-in-hselectonemenu.html]. The selectOneListbox works (and renders when 'size' attribute is not set) exactly the same.
    Edited by: BalusC on 7-okt-2008 20:15 (typo)

  • SelectOneListBox works with Customer Converter Problem

    I am keeping getting validation error when I try to convert SelectOneListBox String value to Name class which contains FirstName and LastName components.
    here is what I did:
    1. SelectOneList has two String items , I assigned the SelectOneList value to Name backend javabean, the source page code is:
    <h:selectOneListbox styleClass="selectOneListbox" id="listbox1" value="#{pc_Test2View.name}">
    <f:selectItem itemValue="Markus Sonnberg" itemLabel="Markus Sonnberg" />
    <f:selectItem itemValue="Roland Paul" itemLabel="Roland Paul" />
    </h:selectOneListbox>
    2. The definition of Name java bean is:
    public class Name implements Serializable{
         protected String firstName = null;
         protected String lastName= null;
    get/set...()
    3. Create the NameConverter class:
    public Object getAsObject(FacesContext context, UIComponent component, String value) {     
              Name name = new Name();
              System.out.println("..... before value: " + value);
              String[] nameComps = value.split(" ");
              name.setFirstName(nameComps[0]);
              name.setLastName(nameComps[1]);
              System.out.println("1st component of name: "+name.getFirstName());
              System.out.println("2nd component of name: "+name.getLastName());
              return name;
    public String getAsString(FacesContext arg0, UIComponent arg1, Object name) {
              return name.toString();
    4. register NameConverter in faces-config.xml
    <converter>
    <converter-for-class>de.impire.javabean.Name</converter-for-class>     
    <converter-class>de.impire.converter.NameConverter</converter-class>
    </converter>
    5. Run the JSF page, from the console, I saw NameConverter is invoked, but the process aborted due to validation error.
    From cosole:
    [05.06.06 14:34:55:234 CEST] 18637864 SystemOut O 1st component of name: Markus
    [05.06.06 14:34:55:234 CEST] 18637864 SystemOut O 2nd component of name: Sonnberg
    On the JSF page, I got :
    Validation error: the value is not valid.
    Some ideas?

    Could it be that the code doesn't find any value in ZCURR_PM_T table for the specified input region?

Maybe you are looking for

  • Acrobat reader not viewing the PDF with dotted lines

    Hi,  We are using Acrobat Reader Version 10. In that version, if we open the PDF which has figures with dotted lines. It is showing as solid lines. We checked the other versions of Acrobat Reader and the same problem persists in the versions 8, 9  an

  • Manually updating podcasts on nano

    I have managed to figure out most of iTunes. But I how I force update of podcasts???? I set it to Manual update but could not find out how to get the updated podcasts to load on computer or to ipod.

  • UV-SO when partitioned and deployed

    Hi there, I have a question related to User-Visible Service Object(UV-SO) when partitioned and deployed. According to TechNote 9674:Service Object Visibility, "if a partition only contains UV-SOs, there will be one of these partitions per user". This

  • Adobe Tutorial Help please?

    Hi, Trying to do the tutorial but have no idea of C#. I have tried running the code through a convertor but keep getting errors. Can anyone convert this from C# to VB <script runat="server"> protected void Page_Load(Object Src, EventArgs E) // Don't

  • Forgot icloud password. After resetting, password recovery email is sent to icloud mail.

    Hello everyone I have recently bought an iphone 4s, and created an icloud account. And when you create an icloud account, it is used for icloud emas as well right? So what happened is that, i forgot my password for icloud account, and after resetting