Hi there,

I've already writen to you the same text, but I had had some problems with
my mail-client and my emails were lost, so I dont know, if anybody answer
me. I'm sorry for this...

I'd like to ask you if there is any possiblity to title columns by strings
that are saved in ApplicationResources.

This means that I would like something like this:

<display:table name="personList" scope="request">
  <display:column property="id" title="UID"/>
  <display:column property="jmeno" title="Name" />
  <display:column property="prijmeni" title="Surname" />
 </display:table>

I'd like to replace it with:

<display:table name="personList" scope="request">
  <display:column property="id" key="person.UID.title"/>
  <display:column property="jmeno" title="person.Name.title" />
  <display:column property="prijmeni" title="person.Surname.title" />
 </display:table>

This attribute "key" will place the strings found under the key-value in
localised appResources in the same place as attribute "title" with one
advatage -- the placed strings are localised.

I think it's clear to understand me want I would like to do.

Is there any possiblity how to do it?

Second think I'd like to know is something about Wrapper class.

I'm using
<display:table name="personList" scope="request"
decorator="cz.master.dbTest.PersonWrapper">
  <display:column property="id" title="UID" />
  <display:column property="jmeno" title="Jmeno" />
  <display:column property="prijmeni" title="Prijmeni" />
  <display:column property="actionLinks" title="" />
 </display:table>

and PersonWrapper has method named "getActionLinks" that look like this:

public String getActionLinks()
 {
  PersonBean person = (PersonBean)this.getObject();

  return "<A HREF=\"updatePerson.do?id=" + person.getId() +
"&amp;action=edit\"><IMG SRC=\"./images/edit.gif\" CLASS=\"invisible\"
TITLE=\"<bean:message key=\"action.edit.title\"/>\"></A><A
HREF=\"updatePerson.do?id=" + person.getId() + "&amp;action=delete\"><IMG
SRC=\"./images/delete.gif\" CLASS=\"invisible\"></A>";
}

As you can see, the output of this method are two images with mapped actions
(edit and delete). I would like to place TITLE to this images so that when
user hower the image, the quick label shows (classical HTML TITLE tag). This
is not problem, but the problem for me is, to output the localised title
that is load form appResources. Is there any possiblity, how to do it???

Please, could you help me.

Thanks very much
Sporak



-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to