struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edgar P. Dollin" <ed...@blue-moose.net>
Subject RE: Some taglibs are missing a few common attributes.
Date Wed, 05 Mar 2003 16:05:13 GMT
Unfortunately, you can't use <bean:message> as the value of an
attribute.  Are you suggesting that the user does

	<c:set var="titlevalue">
		<bean:message key="my.title bundle="mybundle" />
	</c:set>
	<html-el:text property="mypro" title="${titlevalue}" />

That seems a little disconcerting.

Edgar

> -----Original Message-----
> From: David Graham [mailto:dgraham1980@hotmail.com] 
> Sent: Wednesday, March 05, 2003 9:41 AM
> To: 'struts-dev@jakarta.apache.org'
> Subject: Re: Some taglibs are missing a few common attributes.
> 
> 
> I definitely don't think we should support replacement args 
> because then the 
> html tags turn into messaging tags.  A bundle attribute might 
> be nice but 
> the bean:message or preferably fmt:message tags are more flexible.
> 
> David
> 
> 
> 
> >From: "James Mitchell" <jmitchell@apache.org>
> >Reply-To: "Struts Developers List" <struts-dev@jakarta.apache.org>
> >To: "Struts Developers List" <struts-dev@jakarta.apache.org>
> >Subject: Some taglibs are missing a few common attributes.
> >Date: Wed, 5 Mar 2003 06:04:08 -0500
> >
> >
> >We allow titleKey for the html:frame, altKey and titleKey for 
> >html:button, and a few others, but do not allow a way to specify the 
> >bundle or args.
> >
> >Besides the obvious...
> >
> >  <bean:define id="myMessage">
> >	<bean:message key="my.title"/>
> >  <bean:define>
> >
> >  <html:sometag title="<%=myMessage%>"/>
> >
> >...work-around, I'm wondering if we should add this.
> >
> >
> >I think we shouldn't.  I think the work-around is a much 
> more flexible 
> >and generally better solution given the options available with 
> >bean:message.
> >
> >Your thoughts?
> >
> >
> >--
> >James Mitchell
> >Web Developer/Struts Evangelist http://jakarta.apache.org/struts/
> >
> >"People demand freedom of speech to make up for the freedom 
> of thought 
> >which they avoid."
> >     - Soren Aabye Kierkegaard (1813-1855)
> >
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: struts-dev-help@jakarta.apache.org
> 
> 
> _________________________________________________________________
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-dev-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


Mime
View raw message