when i wrote 'bundleLoader' i mean a bean that loads the resource bundle and i 
use resources throw the bean. that way i can sort and do all kind of 
mnipulation on the data before i show it.
i do not use f:loadBundle .

What i want to do is this:

  | <t:dataTable id="myTripsTable" 
  |                     styleClass="data_table"
  |                     var="aTrip" 
  |                     value="#{tripList}" 
  |                     rendered="#{tripList.rowCount>0}"
  |                     cellpadding="2" cellspacing="0" border="0" 
  |                     rowOnMouseOver="this.bgColor='#DEDEDE';" 
  |                     rowOnMouseOut="this.bgColor='#FFFFFF';" >
  | <t:column style="width:30%;">
  |     <s:link view="/TripDetails.jsp" value="#{aTrip.name}" 
action="#{tripManager.selectFromRequest}" propagation="end">
  |             <f:param name="id" value="#{aTrip.id}"/>
  |     </s:link>
  | </t:column>
  | <t:column style="width:20%;">
  |     <h:outputText value="#{aTrip.startDate.time}">
  |             <f:convertDateTime pattern="dd/MM/yyyy"/>
  |     </h:outputText>
  | </t:column>
  | 
  | <t:column style="width:20%;">
  |     <h:outputText value="#{aTrip.country}" />
  | </t:column>
  | 
  | <t:column style="width:5%;">
  |     <a4j:commandLink action="#{tripsManager.selectTripForEdit}" 
  |                                     
oncomplete="openPopup('tripFormPopup',500,250);"
  |                                     reRender="editTripTable">
  |             <h:graphicImage url="images/edit_icon.gif" alt="Edit Trip" 
style="border:0px;" />
  |     </a4j:commandLink>
  | </t:column>
  | <t:column style="width:5%;">
  |     <a4j:commandLink action="#{tripsManager.deleteTrip}" 
  |                                     onclick="if (!window.confirm('Delete 
Trip ?')) return false;"
  |                                     reRender="myTripsTable">
  |             <h:graphicImage url="images/delete.gif" alt="Delete Trip" 
style="border:0px;" />
  |     </a4j:commandLink>
  | </t:column>
  | </t:dataTable>
  | 

look at the: aTrip.country -  the country that the aTrip holds is a key in the 
country resource, i want to display the value.
so i need to do something like this: #{country[ aTrip.country ]}
of course this will not work, so wht will ?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002335#4002335

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002335
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to