Hi Wayne,
you can't use a Map as value for dataTable. You need a array,
java.util.List, javax.servlet.jsp.jstl.sql.Result or a java.sql.ResultSet.
try to use a List as messages object.
regards
Volker
Wayne Fay wrote:
> I have a managed SanityCheckBean which saves values in a GenericVO
> object which is then placed into a HashMap.
>
> SanityCheckBean.init():
> messages = new HashMap();
> GenericVO gvo = new GenericVO("database");
> gvo.put("value1", "success");
> gvo.put("value2", dbmeta.getDatabaseProductName());
> messages.put("database", gvo);
>
> SanityCheckBean.getMessages():
> return messages;
>
>
> I have a method GenericVO.getValue(String s) to retrieve these values.
>
> Everything works great in unit tests etc but I just can't get the EL
> right to access the values in my t:dataTable.
>
> <h:dataTable id="messages" value="#{sanityCheckBean.messages}" var="message">
>
> <h:column>
> <h:outputText value="#{message.value('value1')}"/>
> </h:column>
>
>
> I've tried a few things but just can't get it.
>
> Thanks for any help.
> Wayne
>
--
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.