Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

array in message.properties

843844May 16 2007 — edited May 18 2007
hello,
i wonder if it is possible in jsf:
i would like to give out the messages in the datatable, stored in messages.properties.
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<f:loadBundle basename="myPackage.messages" var="myMsg"/>

<h:dataTable value="#{myBean.myList}" var="my">
          <h:outputText value="#{myMsg.msg}"/>
<:/h:dataTable>
and in my messages.properties i would have something like an array of string:
msg = {first, second, third}
so supposed myList has 3 elements i would like to get table with 3 rows with values: first, second, third.
could be sth. like that realized and how to do this exactly?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 15 2007
Added on May 16 2007
1 comment
122 views