I've been bitten a few times in the past by having such strings in the java files and i've since considered it a good practice to always move them to resourcebundles - perhaps it's worth a try...
On Mon, Mar 29, 2010 at 14:11, Mark Allan <mark.al...@ed.ac.uk> wrote: > On 23 Mar 2010, at 12:30 pm, Mark Allan wrote: > >> On 23 Mar 2010, at 12:14 pm, Thiago H. de Paula Figueiredo wrote: >> >>> On Tue, 23 Mar 2010 09:07:49 -0300, Mark Allan <mark.al...@ed.ac.uk> >>> wrote: >>> >>>> I know I can use the OutputRaw element, and most of the time it works >>>> fine, but I can't use that inside an alt tag for my images. >>> >>> Why don't you write a simple Image component that writes your <img> tag >>> programatically? It would even make sense even in reusability, as all the >>> <img> attributes seem to come from the same object. >> >> Hi Thiago, thanks for your reply. >> >> There are a few reasons I don't want to write a custom component: >> 1) Once I'm finished developing the software, the front-end of the site >> needs to be maintained by someone who only knows HTML, so I'm trying to keep >> the <t: /> components to a minimum. I suspect she'll get confused if she >> sees Image components being used, and I doubt her validator software would >> like it either. >> 2) I'd really like to get rid of all the outputraw components in my Gaelic >> pages for ease of maintaining the templates in the future. >> 3) It's not only images I'm having this problem with, I was just using it >> as an example. > > I don't suppose anyone's got any other suggestions for solutions to this > problem please? > > Thanks > Mark > > > -- > The University of Edinburgh is a charitable body, registered in > Scotland, with registration number SC005336. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr Tapestry / Tacos developer Open Source / JEE Consulting --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org