This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes EL Syntax exception - javax faces el ReferenceSyntaxException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "EL Syntax exception - javax faces el ReferenceSyntaxException " Watch "EL Syntax exception - javax faces el ReferenceSyntaxException " New topic
Author

EL Syntax exception - javax faces el ReferenceSyntaxException

P M Gupta
Greenhorn

Joined: Sep 30, 2005
Posts: 1
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%">
<hutputText styleClass="standard_bold" value="#{baselinecreator_messages['xpath']}" /><f:verbatim><br/></f:verbatim>
<hutputText value="#{citation.xpath}" /><f:verbatim><br/></f:verbatim><f:verbatim><br/></f:verbatim>
<hutputText styleClass="standard_bold" value="#{baselinecreator_messages['dms_serialnumber']}" /><f:verbatim><br/></f:verbatim>
<hutputText value="#{citation.citingId}" /><f:verbatim><br/></f:verbatim><f:verbatim><br/></f:verbatim>
<hutputText styleClass="standard_bold" value="#{baselinecreator_messages['sequence_number']}" /><f:verbatim><br/></f:verbatim>
<hutputText 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>
<hutputFormat 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}" />
</hutputFormat>
</t:dataScroller>

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

</h:panelGrid>
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

I'm not into JSF (yet ;) ) but shouldn't it look like this :


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EL Syntax exception - javax faces el ReferenceSyntaxException
 
Similar Threads
Component ID .... has already been found in the view with t:dataScroller.
Datascroller buttons disappear
DataTable issue with DataScroller ???
Nested datatable/datapaginator
Need help in display the page number in the data scroller