Google Groups Home
Help | Sign in
passing mach-ii properties into coldspring
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Brian Pickens  
View profile  
 More options Aug 28 2008, 11:50 am
From: Brian Pickens <brian.m.pick...@gmail.com>
Date: Thu, 28 Aug 2008 08:50:20 -0700 (PDT)
Local: Thurs, Aug 28 2008 11:50 am
Subject: passing mach-ii properties into coldspring
Hi guys,

I've seen it mentioned around the mailing list or alluded to but I've
not seen any how to's on how to do it.

How do I pass a mach-ii property into coldspring, mores specifically,
I want to be able to pass this property into a coldspring managed bean.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adrian Moreno  
View profile  
 More options Aug 28 2008, 12:18 pm
From: "Adrian Moreno" <amor...@iknowkungfoo.com>
Date: Thu, 28 Aug 2008 12:18:49 -0400
Local: Thurs, Aug 28 2008 12:18 pm
Subject: re: [Mach-II] passing mach-ii properties into coldspring

I think Andrew Leaf has all of this figured out. He was showing us some code at the last DFW CFUG.

Now if he would only POST IT TO THE LIST! :P

-- Adrian

----------------------------------------
From: Brian Pickens <brian.m.pick...@gmail.com>
Sent: Thursday, August 28, 2008 10:50 AM
To: Mach-II for CFML <mach-ii-for-coldfusion@googlegroups.com>
Subject: [Mach-II] passing mach-ii properties into coldspring

Hi guys,

I've seen it mentioned around the mailing list or alluded to but I've
not seen any how to's on how to do it.

How do I pass a mach-ii property into coldspring, mores specifically,
I want to be able to pass this property into a coldspring managed bean.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leaf, Andrew  
View profile  
 More options Aug 28 2008, 2:22 pm
From: "Leaf, Andrew" <AL...@unitrin.com>
Date: Thu, 28 Aug 2008 13:22:07 -0500
Local: Thurs, Aug 28 2008 2:22 pm
Subject: RE: [Mach-II] Re: passing mach-ii properties into coldspring

I am working on a post and will be putting it on instant spot soon.

Andrew

________________________________

From: mach-ii-for-coldfusion@googlegroups.com
[mailto:mach-ii-for-coldfusion@googlegroups.com] On Behalf Of Adrian
Moreno
Sent: Thursday, August 28, 2008 11:19 AM
To: mach-ii-for-coldfusion@googlegroups.com
Subject: [Mach-II] Re: passing mach-ii properties into coldspring

I think Andrew Leaf has all of this figured out. He was showing us some
code at the last DFW CFUG.

Now if he would only POST IT TO THE LIST! :P

-- Adrian

________________________________

From: Brian Pickens <brian.m.pick...@gmail.com>
Sent: Thursday, August 28, 2008 10:50 AM
To: Mach-II for CFML <mach-ii-for-coldfusion@googlegroups.com>
Subject: [Mach-II] passing mach-ii properties into coldspring

Hi guys,

I've seen it mentioned around the mailing list or alluded to but I've
not seen any how to's on how to do it.

How do I pass a mach-ii property into coldspring, mores specifically,
I want to be able to pass this property into a coldspring managed
bean.<br

CONFIDENTIALITY NOTICE: The information contained in this e-mail and attached document(s) may contain confidential information that is intended only for the addressee(s). If you are not the intended recipient, you are hereby advised that any disclosure, copying, distribution or the taking of any action in reliance upon the information is prohibited. If you have received this e-mail in error, please immediately notify the sender and delete it from your system.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter J. Farrell  
View profile  
 More options Aug 28 2008, 3:42 pm
From: "Peter J. Farrell" <pe...@mach-ii.com>
Date: Thu, 28 Aug 2008 14:42:13 -0500
Local: Thurs, Aug 28 2008 3:42 pm
Subject: Re: [Mach-II] Re: passing mach-ii properties into coldspring

Even better donate your post to the Mach-II wiki as well as this tends
me a common question on the list!  Let me know if you're interested and
need help getting it on the wiki.

And Brian, if you are using the ColdspringProperty -- all M2 properties
are passed into the CS bean factory. Just reference them with the
placeholder syntax:

    <bean id="addressDao"
        class="model.address.address.addressDao_mysql">
        <constructor-arg
name="dbDsn"><value>${dbDsn}</value></constructor-arg>
    </bean>

Best,
.Peter

Leaf, Andrew said the following on 8/28/2008 1:22 PM:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian Pickens  
View profile  
 More options Aug 28 2008, 3:58 pm
From: Brian Pickens <brian.m.pick...@gmail.com>
Date: Thu, 28 Aug 2008 12:58:49 -0700 (PDT)
Local: Thurs, Aug 28 2008 3:58 pm
Subject: Re: passing mach-ii properties into coldspring
ah-ha, see I suspected that but its not explicitly stated anywhere.
Maybe it would be a good idea to place a line in the wiki about this.
Ill do it if you've got a good place for it. Anyway, thanks peter.

On Aug 28, 2:42 pm, "Peter J. Farrell" <pe...@mach-ii.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
.jonah  
View profile  
 More options Aug 28 2008, 4:20 pm
From: ".jonah" <pixel...@gmail.com>
Date: Thu, 28 Aug 2008 13:20:01 -0700 (PDT)
Local: Thurs, Aug 28 2008 4:20 pm
Subject: Re: passing mach-ii properties into coldspring
Now if only we could pass in complex and/or nested properties...
mach-ii.xml:
<property name="generalInfo">
        <struct>
                <key name="siteName" value=" Foo" />
                ...
        </struct>
</property>

coldsrpring services.xml:
    <bean id="addressDao"
class="model.address.address.addressDao_mysql">
        <constructor-arg name="SiteName"><value>$
{generalInfo.siteName}</value></constructor-arg>
        or even:
        <constructor-arg name="generalInfo"><value>${generalInfo}</
value></constructor-arg>
    </bean>

I got excited and thought maybe that's where things were going with
ExpressionEvaluator.cfc in the latest BER. ;)

On Aug 28, 12:42 pm, "Peter J. Farrell" <pe...@mach-ii.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter J. Farrell  
View profile  
 More options Aug 28 2008, 4:31 pm
From: "Peter J. Farrell" <pe...@mach-ii.com>
Date: Thu, 28 Aug 2008 15:31:36 -0500
Local: Thurs, Aug 28 2008 4:31 pm
Subject: Re: [Mach-II] Re: passing mach-ii properties into coldspring

.jonah said the following on 8/28/2008 3:20 PM:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter J. Farrell  
View profile  
 More options Aug 28 2008, 4:35 pm
From: "Peter J. Farrell" <pe...@mach-ii.com>
Date: Thu, 28 Aug 2008 15:35:06 -0500
Local: Thurs, Aug 28 2008 4:35 pm
Subject: Re: [Mach-II] Re: passing mach-ii properties into coldspring

Sorry for the blank reply if that comes through.

You can do that - this is more of  CS concern.  Once M2 passes CS the
properties, you're in the realm of CS's codebase.  You can do what you ask:

<property name="someProperty"><map>${someStruct}</map></property>
<property name="someProperty"><list>${someArray}</list></property>

This functionality was added in the following ticket (submitted by yours
truly):
http://code.coldspringframework.org/browse/CSP-81

Best,
.Peter

.jonah said the following on 8/28/2008 3:20 PM:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
.jonah  
View profile  
 More options Aug 28 2008, 5:04 pm
From: ".jonah" <pixel...@gmail.com>
Date: Thu, 28 Aug 2008 14:04:10 -0700 (PDT)
Local: Thurs, Aug 28 2008 5:04 pm
Subject: Re: passing mach-ii properties into coldspring
Sexy! That works for 1/2 of my examples, but is definitely useful. :)

On Aug 28, 1:35 pm, "Peter J. Farrell" <pe...@mach-ii.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google