bvb1909
bvb1909

Reputation: 201

java.lang.IllegalArgumentException ajax row select

If i select a row in my Datatable i always following : Feb 24, 2014 1:01:42 AM com.sun.faces.context.PartialViewContextImpl processPartial Information: java.lang.IllegalArgumentException: argument type mismatch . The Problem is ajax tag. If i remove it i get no exception

i use primefaces 4.0 and jsf 2.1

<p:dataTable id="inboxTable" var="task_toUser" value="#{taskboxBean.taskboxInboxList}" paginator="true"
            widgetVar="inboxTable" rows="5" selection="#{taskboxBean.selectedTaskbox}"
            selectionMode="single" rowKey="#{task_toUser.ID}" emptyMessage="" paginatorPosition="bottom"
            >

            <p:ajax event="rowSelect" update=":contentForm, :postForm:tabViewPosts:trashTable,  :postForm:tabViewPosts:inboxTable, :postForm:tabViewPosts:sentTable "
                listener="#{taskboxBean.onTaskboxRowSelect}" />


            <p:column headerText="Post" filterBy="FROM_USER.FIRST_NAME" filterMatchMode="contains">
                <h:outputText
                    value="#{task_toUser.TASKBOX.FROM_USER.FIRST_NAME} #{task_toUser.TASKBOX.FROM_USER.LAST_NAME} (#{task_toUser.TASKBOX.FROM_USER.EMAIL})" />


                <p:commandButton disabled="true" style="float:right" icon="ui-icon-mail-closed"  rendered="#{!task_toUser.IS_SEEN}"/>
                <p:commandButton disabled="true" style="float:right"  icon="ui-icon-mail-open"  rendered="#{task_toUser.IS_SEEN}"/>
                <br/>
                <h:outputText value="#{task_toUser.TASKBOX.TASKTYPE.NAME}   " />
                <h:outputText style="font-weight: bold; " value="#{task_toUser.TASKBOX.TASKBOX_SUPPLIER.NEW_SUPPLIER.NAME}"/>
                <br />
                <h:outputText value="#{task_toUser.TASKBOX.CREATE_TIMESTAMP}" />
            </p:column>

        </p:dataTable>

Upvotes: 0

Views: 556

Answers (1)

bvb1909
bvb1909

Reputation: 201

i solved the problem. The problem is that the ArrayList is from another Type than the Selection and xhtml casted it automatically.

Upvotes: 1

Related Questions