I can see one quick mistake:
#{savingsBean.recentBlogEntries[#{row}]} should be
#{savingsBean.recentBlogEntries[row]}
On 1/3/06, Marco Mistroni <[EMAIL PROTECTED]> wrote:
> hello all,
> this code results in an error
>
> <f:view>
> <h:form id="savingsForm">
> <h:dataTable value="#{savingsBean.savingsList}" var="row" border="1">
> <h:column>
> <h:outputText value="#{row}"/>
> </h:column>
> <h:column>
> <h:inputText value="#{savingsBean.recentBlogEntries[#{row}]}"/>
> </h:column>
> </h:dataTable>
> <h:panelGroup>
> <h:commandButton id="submitInsert" action="#{savingsBean.insert}"
> value="Insert"/>
> </h:panelGroup>
> </h:form>
> </f:view>
>
>
> at this point
>
> <h:inputText value="#{savingsBean.recentBlogEntries[#{row}]}"/
>
> recentBlogEntries is a Map. i tried, for hte sake of trying, to put in a
> List (savingsList, the one used for DataTable)all keys
> of the Map, and tried to generate inputText for the Map by passing the value
> of #{row} (which woul dbe the key of the map)
>
> it didnt work out..... is that impossible or is my syntax wrong somehow?
>
> thanks and regards
> marco
--
Alexandre Poitras
Québec, Canada