<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: New App &#8211; Purchase Tracker</title>
	<atom:link href="http://www.barneyb.com/barneyblog/2006/09/17/new-app-purchase-tracker/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.barneyb.com/barneyblog/2006/09/17/new-app-purchase-tracker/</link>
	<description>Thoughts, rants, and even some code from the mind of Barney Boisvert.</description>
	<lastBuildDate>Thu, 11 Sep 2014 09:58:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: PaulH</title>
		<link>https://www.barneyb.com/barneyblog/2006/09/17/new-app-purchase-tracker/comment-page-1/#comment-409</link>
		<dc:creator>PaulH</dc:creator>
		<pubDate>Wed, 20 Sep 2006 06:59:05 +0000</pubDate>
		<guid isPermaLink="false">http://barneyb.com/barneyblog/?p=181#comment-409</guid>
		<description>eclipse? might as well be notepad ;-) if you do complex rb get a good rb management tool, save your brains for something else.

never used that val() trick, it takes care of numeric casts? sounds great. thanks for the info. event after all this time, i learn something new about cf every week i think.
</description>
		<content:encoded><![CDATA[<p>eclipse? might as well be notepad ;-) if you do complex rb get a good rb management tool, save your brains for something else.</p>
<p>never used that val() trick, it takes care of numeric casts? sounds great. thanks for the info. event after all this time, i learn something new about cf every week i think.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barney</title>
		<link>https://www.barneyb.com/barneyblog/2006/09/17/new-app-purchase-tracker/comment-page-1/#comment-408</link>
		<dc:creator>Barney</dc:creator>
		<pubDate>Tue, 19 Sep 2006 01:14:31 +0000</pubDate>
		<guid isPermaLink="false">http://barneyb.com/barneyblog/?p=181#comment-408</guid>
		<description>Notepad.  How about Eclipse&#039;s Java properties file editor.  And written in UTF-8 with Ant to convert them to ASCII with Unicode escapes.  Notepad.  Sheesh.  ;)

Regarding the MessageFormat numeric stuff, I&#039;ve haven&#039;t run across any issues that using val() in the arrayAppend call didn&#039;t solve.  Without that, however, plenty of issues.  On another app, I&#039;d run into a couple weirdnesses where CF passes a java.lang.Double into a {0,number,integer} format and the formater balks.  I think I just used {0,number} in this app, even for integer values, so it wouldn&#039;t have arisen.

I&#039;ve always gone with the dotted notation to differentiate the camel casing.  Otherwise is it the &#039;purchase title&#039; item of the &#039;add&#039; screen, or is it the &#039;title&#039; item on the &#039;add purchase&#039; screen?</description>
		<content:encoded><![CDATA[<p>Notepad.  How about Eclipse's Java properties file editor.  And written in UTF-8 with Ant to convert them to ASCII with Unicode escapes.  Notepad.  Sheesh.  ;)</p>
<p>Regarding the MessageFormat numeric stuff, I've haven't run across any issues that using val() in the arrayAppend call didn't solve.  Without that, however, plenty of issues.  On another app, I'd run into a couple weirdnesses where CF passes a java.lang.Double into a {0,number,integer} format and the formater balks.  I think I just used {0,number} in this app, even for integer values, so it wouldn't have arisen.</p>
<p>I've always gone with the dotted notation to differentiate the camel casing.  Otherwise is it the 'purchase title' item of the 'add' screen, or is it the 'title' item on the 'add purchase' screen?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PaulH</title>
		<link>https://www.barneyb.com/barneyblog/2006/09/17/new-app-purchase-tracker/comment-page-1/#comment-407</link>
		<dc:creator>PaulH</dc:creator>
		<pubDate>Mon, 18 Sep 2006 22:19:37 +0000</pubDate>
		<guid isPermaLink="false">http://barneyb.com/barneyblog/?p=181#comment-407</guid>
		<description>actually since you&#039;re using PropertyResourceBundle, you&#039;re passing in the rb file location &amp; reading it. so there is no need for it to be on the classpath, it can be anywhere that cf can read. rb files have to be on the classpath only for ResourceBundle. that&#039;s why i have two java style rb CFCs (javaRB which doesn&#039;t need the classpath &amp; rbJava which does).

well we only use MessageFormat w/rb so that&#039;s where we stuck it (and we have enough i18n CFCs running around as it is). you&#039;re the 1st person to call it wierd though ;-) btw we&#039;ve had some issues where numeric data needed to be cast for MessageFormat to swallow it.

&quot;addPurchaseTitle&quot; would be a better choice. or use an addPurchase rb file w/the addPurchase related keys in that. what are you using to manage these? notepad ;-) you can get extra weirdness w/cf as that comes out like a structure&#039;s dotted notation (this just came up last week w/somebody&#039;s app falling down on railo). as most folks slap the rb into a shared scope per locale.</description>
		<content:encoded><![CDATA[<p>actually since you're using PropertyResourceBundle, you're passing in the rb file location &amp; reading it. so there is no need for it to be on the classpath, it can be anywhere that cf can read. rb files have to be on the classpath only for ResourceBundle. that's why i have two java style rb CFCs (javaRB which doesn't need the classpath &amp; rbJava which does).</p>
<p>well we only use MessageFormat w/rb so that's where we stuck it (and we have enough i18n CFCs running around as it is). you're the 1st person to call it wierd though ;-) btw we've had some issues where numeric data needed to be cast for MessageFormat to swallow it.</p>
<p>"addPurchaseTitle" would be a better choice. or use an addPurchase rb file w/the addPurchase related keys in that. what are you using to manage these? notepad ;-) you can get extra weirdness w/cf as that comes out like a structure's dotted notation (this just came up last week w/somebody's app falling down on railo). as most folks slap the rb into a shared scope per locale.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barney</title>
		<link>https://www.barneyb.com/barneyblog/2006/09/17/new-app-purchase-tracker/comment-page-1/#comment-406</link>
		<dc:creator>Barney</dc:creator>
		<pubDate>Mon, 18 Sep 2006 21:57:43 +0000</pubDate>
		<guid isPermaLink="false">http://barneyb.com/barneyblog/?p=181#comment-406</guid>
		<description>Paul,

The locale bits are there, but using ResourceBundle.getBundle() isn&#039;t workable without adding your .properties files to the classpath.  That&#039;s the dependancy I was looking to avoid.

I know I haven&#039;t enabled locale-based selection support in the resource bundle loader.  Honestly, the i18n was kind of a free bonus, I was externalizing the strings strictly so I could change the terminology on the site easily.  I&#039;ll add in the locale selection at some point, but I didn&#039;t need it up front, so I didn&#039;t code it in.  ;)

There is MessageFormat support in there to, a simple UDF in Application.cfm that takes the string to format and then Java5-style varargs for the formatting arguments.  I suppose it could go on the resource bundle class, but that seems like a weird place to put it.  It has nothing to do with resource bundles, but everything to do with formatting in your UI.  

Regarding the non-kosher message keys, I don&#039;t quite follow.  That&#039;s just the way I&#039;ve always done it, because it seemed reasonable enough.  What&#039;s the &quot;right&quot; way to do it?</description>
		<content:encoded><![CDATA[<p>Paul,</p>
<p>The locale bits are there, but using ResourceBundle.getBundle() isn't workable without adding your .properties files to the classpath.  That's the dependancy I was looking to avoid.</p>
<p>I know I haven't enabled locale-based selection support in the resource bundle loader.  Honestly, the i18n was kind of a free bonus, I was externalizing the strings strictly so I could change the terminology on the site easily.  I'll add in the locale selection at some point, but I didn't need it up front, so I didn't code it in.  ;)</p>
<p>There is MessageFormat support in there to, a simple UDF in Application.cfm that takes the string to format and then Java5-style varargs for the formatting arguments.  I suppose it could go on the resource bundle class, but that seems like a weird place to put it.  It has nothing to do with resource bundles, but everything to do with formatting in your UI.  </p>
<p>Regarding the non-kosher message keys, I don't quite follow.  That's just the way I've always done it, because it seemed reasonable enough.  What's the "right" way to do it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PaulH</title>
		<link>https://www.barneyb.com/barneyblog/2006/09/17/new-app-purchase-tracker/comment-page-1/#comment-405</link>
		<dc:creator>PaulH</dc:creator>
		<pubDate>Mon, 18 Sep 2006 21:05:28 +0000</pubDate>
		<guid isPermaLink="false">http://barneyb.com/barneyblog/?p=181#comment-405</guid>
		<description>if you&#039;re on java enabled cf, then locale bits should be &quot;there&quot; w/out any classpath issues, though i&#039;m really not sure about BD, is that what you meant?

your rb keys aren&#039;t very &quot;kosher&quot;. it would be better not to have dotted keys &quot;addPurchase.title&quot; (if you&#039;re doing this to manage these, get an rb tool w/logical groups, etc. instead). the rb CFC&#039;s rb finding logic isn&#039;t robust, normally you start w/the full rb file &amp; locale (something_en_US.properties) &amp; start chopping back until you hit the base rb (something.properties) or die trying. i guess you might grab my javaRB.cfc it also uses PropertyResourceBundle so it can work w/out the rb files being on the classpath. it also contains a MessageFormat function.

anyway, great to see you kept i18n in mind when you developed this. and it looks to be a pretty useful app.

thanks.</description>
		<content:encoded><![CDATA[<p>if you're on java enabled cf, then locale bits should be "there" w/out any classpath issues, though i'm really not sure about BD, is that what you meant?</p>
<p>your rb keys aren't very "kosher". it would be better not to have dotted keys "addPurchase.title" (if you're doing this to manage these, get an rb tool w/logical groups, etc. instead). the rb CFC's rb finding logic isn't robust, normally you start w/the full rb file &amp; locale (something_en_US.properties) &amp; start chopping back until you hit the base rb (something.properties) or die trying. i guess you might grab my javaRB.cfc it also uses PropertyResourceBundle so it can work w/out the rb files being on the classpath. it also contains a MessageFormat function.</p>
<p>anyway, great to see you kept i18n in mind when you developed this. and it looks to be a pretty useful app.</p>
<p>thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barney</title>
		<link>https://www.barneyb.com/barneyblog/2006/09/17/new-app-purchase-tracker/comment-page-1/#comment-404</link>
		<dc:creator>Barney</dc:creator>
		<pubDate>Mon, 18 Sep 2006 13:58:12 +0000</pubDate>
		<guid isPermaLink="false">http://barneyb.com/barneyblog/?p=181#comment-404</guid>
		<description>Ah, but what if you&#039;re not deploying to the web root?  For example, if I have an app at /app1, and another at /app2?  They would both have to depend on ColdSpring located /coldspring, which means not only do both apps depend on code that isn&#039;t included in them (thereby creating a dependancy that can&#039;t be managed except for manually remembering), it also forces both of them to be compatible with the SAME version of ColdSpring.

So it&#039;s still an environment mapping, even though it&#039;s not server-wide, just web-root wide.</description>
		<content:encoded><![CDATA[<p>Ah, but what if you're not deploying to the web root?  For example, if I have an app at /app1, and another at /app2?  They would both have to depend on ColdSpring located /coldspring, which means not only do both apps depend on code that isn't included in them (thereby creating a dependancy that can't be managed except for manually remembering), it also forces both of them to be compatible with the SAME version of ColdSpring.</p>
<p>So it's still an environment mapping, even though it's not server-wide, just web-root wide.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kurt Wiersma</title>
		<link>https://www.barneyb.com/barneyblog/2006/09/17/new-app-purchase-tracker/comment-page-1/#comment-403</link>
		<dc:creator>Kurt Wiersma</dc:creator>
		<pubDate>Sun, 17 Sep 2006 18:58:16 +0000</pubDate>
		<guid isPermaLink="false">http://barneyb.com/barneyblog/?p=181#comment-403</guid>
		<description>I don&#039;t really understand your ColdSpring comment. All you have to do is place the coldspring directory in your web root, no mapping is required.</description>
		<content:encoded><![CDATA[<p>I don't really understand your ColdSpring comment. All you have to do is place the coldspring directory in your web root, no mapping is required.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
