OK, I got it going. Here is the code I ended up using:
div.addPara(T_TokenMessage.parameterize(title));
But notice that T_TokenMessage is still of the type Message, it did
not change to String.
I have another file in which I need to have string type, and I can't
seem to make that happen. Here is the code I want to make more
configurable:
String subject = "File(s) for \"" + title + "\" requested
from Deep Blue";
String message = "Dear " + requestor_name + ",\n\n" +
"Thank you for your interest. However, we are sorry to have to inform
you that the author has chosen not to send the file(s) you
requested.\n\nBest regards,\n\nDeep Blue\[email protected]";
ReqEmail2 email =
RequestItemManager2.getEmail(subject, message);
Notice taht subject and message have to be strings.
On Thu, Oct 3, 2013 at 6:16 PM, Andrea Schweer <[email protected]> wrote:
> Hi Jose,
>
> On 04/10/13 10:03, Jose Blanco wrote:
>> I'm working on a patch for RequestCopy, and I have some global strings
>> I want to declare so that other users can then change these strings.
>> I thought messages.xml would be the place to do that.
>
> That's sounding good so far and my first thought would indeed be
> messages.xml.
>
>> I want to use them as Strings not Message type.
>
> That's the bit where it would be very helpful to explain _why_ you want
> to do this. It might also help if you gave us the actual text you're
> wanting to use rather than just some example text. I still suspect that
> parameterising will be the way to go rather than using Strings, but it's
> hard to verify that without knowing what you're actually trying to achieve.
>
> cheers,
> Andrea
>
> --
> Dr Andrea Schweer
> IRR Technical Specialist, ITS Information Systems
> The University of Waikato, Hamilton, New Zealand
>
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette