Hi Dale,

The reason why i have this is because the mapping name is the same
name as the application name and a fellow developer would like to be
able to change the application name and create a new mapping with the
app name, so i cannot hard code the app name when calling a
component.

hope this makes sense,


On May 25, 3:58 pm, "Dale Fraser" <[EMAIL PROTECTED]> wrote:
> Not that I know of,
>
> Why you would have an application name in your package i'm not sure.
>
> You would normally organize your classes as
>
> com.company.module.submodule.Class
>
> You can probably do a switch,
>
> <cfswitch expression="# APPLICATION.APPNAME#">
>         <cfcase value="fred">
>                 <cfargument name="test" type="fredcore.packages.types.test"
> required="true">
>         </cfcase>
>         <cfcase value="barney">
>                 <cfargument name="test"
> type="barneycore.packages.types.test" required="true">
>         </cfcase>
> </cfswitch>
>
> But this is going to get ugly quickly. Perhaps if you explain why the
> application name is part of the package structure I can offer more
> assistance.
>
> Regards
> Dale Fraser
>
> http://dalefraser.blogspot.com
>
> -----Original Message-----
> From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
>
> Of Rony
> Sent: Friday, 25 May 2007 3:49 PM
> To: cfaussie
> Subject: [cfaussie] CF Argument issues
>
> Hi all,
>
> I am trying to pass a user defined object into another function:
>
> I have the following:
>
> <cfargument name="test"
> type="#APPLICATION.APPNAME#core.packages.types.test" required="true">
>
> But doing this  I get the following error :
>
>  " This expression must have a constant value. "
>
> Is there a way around this?
>
> Thanks,


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to