P M Gupta

Greenhorn
+ Follow
since Sep 30, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by P M Gupta

Hi

I am facing EL Syntax exception in my jsf page.

I am using myfaces JSF Implementation. I have a data table , with data scorller. I have to be show only one row in table and provide pagination. When ever user press the next icon in the pagination, I want to capatue the row details that are displayed.

for this I have written a action listner ( t:updatActionLister)for next button. For update action listern I am using EL expression to get the displayed row object. and assing to property in my managed bean.

When I am running below code I am getting below exception.

javax.faces.el.ReferenceSyntaxException - Cannot convert index to int for base java.util.ArrayList and index #{pageIndex}


Can any body help me to solve this issue.

Thanks in Advnce
Madhu

---------------
The JSF code
--------------
<h:form >

<h:panelGroup id="body">
<h:panelGrid columns="1" styleClass="scrollerTable2" columnClasses="standardTable_ColumnCentered" >
<t:dataTable id="data"
styleClass="scrollerTable"
headerClass="standardTable_Header"
footerClass="standardTable_Header"
rowClasses="standardTable_Row1,standardTable_Row2"
columnClasses="standardTable_Column,standardTable_ColumnCentered,standardTable_Column"
var="citation"
value="#{detailBaselineInputSelectionForm.citationsList}"
preserveDataModel="false"
rows="#{detailBaselineInputSelectionForm.rowCount}"
border="1">

<t:column width="100%">
<h:outputText styleClass="standard_bold" value="#{baselinecreator_messages['xpath']}" /><f:verbatim><br/></f:verbatim>
<h:outputText value="#{citation.xpath}" /><f:verbatim><br/></f:verbatim><f:verbatim><br/></f:verbatim>
<h:outputText styleClass="standard_bold" value="#{baselinecreator_messages['dms_serialnumber']}" /><f:verbatim><br/></f:verbatim>
<h:outputText value="#{citation.citingId}" /><f:verbatim><br/></f:verbatim><f:verbatim><br/></f:verbatim>
<h:outputText styleClass="standard_bold" value="#{baselinecreator_messages['sequence_number']}" /><f:verbatim><br/></f:verbatim>
<h:outputText value="#{citation.sequenceNr}" />
</t:column>


<f:facet name="footer" >
<t:dataScroller id="scroll_1"
fastStep="10"
pageCountVar="pageCount"
pageIndexVar="pageIndex"
styleClass="scroller"
paginator="false"
paginatorMaxPages="9"
paginatorTableClass="paginator"
paginatorActiveColumnStyle="font-weight:bold;"
immediate="true"
rowsCountVar="rowsCount"
firstRowIndexVar="firstRowIndex"
lastRowIndexVar="lastRowIndex"
actionListener="#{detailBaselineInputSelectionForm.scrollerAction}">

<f:facet name="previous" >
<t:graphicImage url="images/arrow-previous.gif" border="1" alt="Previous" />
<t:updateActionListener value="#{detailBaselineInputSelectionForm.citationsList['#{pageIndex}']}" property="#{detailBaselineInputSelectionForm.currentCitation}"></t:updateActionListener>
</f:facet>
<f:verbatim>     </f:verbatim>
<f:facet name="next">
<t:graphicImage url="images/arrow-next.gif" border="1" alt="Next" />
</f:facet>
<h:outputFormat value="#{baselinecreator_messages['document_citations']}" styleClass="standard" >
<f:param value="#{rowsCount}" />
<f:param value="#{displayedRowsCountVar}" />
<f:param value="#{firstRowIndex}" />
<f:param value="#{lastRowIndex}" />
<f:param value="#{pageIndex}" />
<f:param value="#{pageCount}" />
</h:outputFormat>
</t:dataScroller>

</f:facet>
</t:dataTable>

</h:panelGrid>
15 years ago
JSF