Hi Guillaume,
Your sourceData declaration in your JSP should have had a '#' in front
of the value (I think):
sourceData="#{viewjobs.mapDataProvider1}"
Also, make sure that the viewjobs bean has a method called
getMapDataProvider1() which returns a MapDataProvider instance.
Good luck!
Ken Paulsen
https://jsftemplating.dev.java.net
Guillaume Ferry wrote:
>
> Hi,
>
> Sorry for the previously truncated message.
>
> I'm using Woodstock JSF in order to display a simple table layout.
>
> Basically, I have a Woodstock table, to which I link a MapDataProvider
> instance, with sourceVar / sourceData attributes.
>
> I do the following stuff (this is a fragment of the real JSP page)
>
> <webuijsf:table id="processingTable" width="100%">
> <webuijsf:tableRowGroup id="tableRowGroup1" rows="10"
> sourceData="{viewjobs.mapDataProvider1}" sourceVar="mapKey">
> <webuijsf:tableColumn headerText="Documents" id="column"
> sort="column">
> <webuijsf:accordion id="accordion1">
> <webuijsf:accordionTab id="accordionTab1" title="Détails">
> <webuijsf:staticText id="text1"
> text="#{mapKey.value[0].progress"/>
> </webuijsf:accordionTab>
>
> </webuijsf:accordion>
> </webuijsf:tableColumn>
> </webuijsf:tableRowGroup>
> </webuijsf:table>
>
> Now, here are the backing structures:
>
> viewjobs is the bean associated with this JSP page.
>
> The map has this signature : HashMap<String, DocumentProcessing[]>
>
> DocumentProcessing is an object that contains, amongt others, a
> property 'progress' : setter / getter exist.
>
> When I process this code, Tomcat fails to render the page : with the
> following error :
>
> ATTENTION: phase(RENDER_RESPONSE
> 6,com.sun.faces.context.FacesContextImpl_at_154ec5) threw exception:
> com.sun.rave.web.ui.appbase.ApplicationException:
> org.apache.jasper.el.JspPropertyNotFoundException: /viewjobs.jsp(23,75)
> '#{mapKey.value[0].progress}' java.lang.IllegalArgumentException: 0
> org.apache.jasper.el.JspPropertyNotFoundException: /viewjobs.jsp(23,75)
> '#{mapKey.value[0].progress}' java.lang.IllegalArgumentException: 0
>
> If anyone already tried to use MapDataProvider with a table, or
> experienced the same errors, I would be glad to share some info :)
>
> Thanks in advance,
>
> Best regards.
>
> Guillaume Ferry.
>