Hey again-
Problem: I've got a java object with a 'String getText(String id)' method. This object acts as an abstraction of a database
(the database contains text content in different languages.)
Now, what I would like to do is send this java object to the jxtemplate generator, and in each jxtemplate access javaobject.getText(id) directly, like this:
${javaobject.getText("Submit_btn_txt")}Now of course this doesn't work, since the jxtemplate generator is only able to access data directly through the variables of an object, not its functions. (Right?)
The only other alternative I'm able to see right now is
A: constructing a java object hardcoded with all the possible getText() element in public variables, or
B: for each jxtemplate, construct a smaller object with only the needed subset of data variables for the current template.
Either way, not an elegant solution given a huge (and growing) database of elements!! Any immediate thoughts\suggestions on the problem?
Regards, Thomas Kjeldahl Nilsson
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
