Note that there are some explanatory texts on larger screens.

plurals
  1. POCode jumps to unknown class while executing method in backing bean
    primarykey
    data
    text
    <p>I have a problem where I call a method in the backing bean which is supposed to update a list after which a rich:datagrid is rerender on my xhtml page to reflect the changes.Via debugging I can confirm that the method is called succesfully however it jumps out of the method after one iteration throught the list and goes to a different class(not one of my classes).It never returns to the method and the datagrid is also never rerendered.</p> <p>Below is the relevant html and java code. HTML:</p> <pre class="lang-html prettyprint-override"><code>&lt;table width="650px"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="325px" align="left"&gt;&lt;h:outputText style="white-space: pre; font-weight: normal; font-family: Tahoma; font-size: 11px"&gt;Name :&lt;/h:outputText&gt; &lt;h:inputText id="searchName" size="25" value="#{myBean.searchName}"&gt;&lt;/h:inputText&gt;&lt;/td&gt; &lt;td width="325px" align="left"&gt;&lt;h:outputText style="white-space: pre; font-weight: normal; font-family: Tahoma; font-size: 11px"&gt;Surname :&lt;/h:outputText&gt; &lt;h:inputText id="searchSurname" size="25" value="#{myBean.searchSurname}"&gt;&lt;/h:inputText&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td width="325px" align="left"&gt;&lt;h:outputText style="white-space: pre; font-weight: normal; font-family: Tahoma; font-size: 11px"&gt;ID :&lt;/h:outputText&gt; &lt;h:inputText id="searchId" size="25" value="#{myBean.searchId}"&gt;&lt;/h:inputText&gt;&lt;/td&gt; &lt;td width="325px" align="left"&gt;&lt;h:outputText style="white-space: pre; font-weight: normal; font-family: Tahoma; font-size: 11px"&gt;Status :&lt;/h:outputText&gt; &lt;h:inputText id="searchStatus" size="25" value="#{myBean.searchStatus}"&gt;&lt;/h:inputText&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align="right"&gt;&lt;a4j:commandButton action="#{myBean.searchRecords}" value="Search" render="dataList"&gt;&lt;/a4j:commandButton&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; </code></pre> <p>Java:</p> <pre class="lang-java prettyprint-override"><code>public void searchRecords(){ if(dataList == null){ dataList = searchList; } searchList = Collections.&lt;ListObj&gt;emptyList(); for (ListObj obj : dataList) { if((obj.getName().contains(searchName)) | (obj.getSurname().contains(searchSurname)) | (obj.getIdNumber().contains(searchId)) | (obj.getStatus().equalsIgnoreCase(searchStatus))){ searchList.add(obj); } } } </code></pre> <p>The code jumps to the unkown class on searchList.add(obj).I am using Apache MyFaces JSF 2.1, RichFace 4.3 and Java 1.6. I think this might have something to do with the JSF lifecycle as my understanding of the lifecycle is severly lacking,but I could be wrong about that for the same reason.I am in the process of reading a post by BalusC about the lifecycle though.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload