I would think this is a good situation for pragma=no-cache.
On Wed, Oct 6, 2010 at 6:30 PM, Al Musella, DPM
wrote:
>
>Just wanted to mention it so others don't repeat it.
> I have a webpage that lets you scroll through a few pages of listings
> with a previous 50 / next 50 button. Someone
in CF9 using CFGRID, for some reason I cannot get it to be 100% the width of
the cflayout. I know you can set the width but it's in px which is no good to
me. i would like it i could make the width just 100% but its not accepted. any
other way to make the with 100% of when inside a cflayout
~
Just wanted to mention it so others don't repeat it.
I have a webpage that lets you scroll through a few pages of listings
with a previous 50 / next 50 button. Someone complained that the
page was being cached on their phone and they were seeing old data. I
couldn't reproduce the problem,
Thanks Jochem.
-Original Message-
From: Jochem van Dieten [mailto:joch...@gmail.com]
Sent: Wednesday, October 06, 2010 3:10 PM
To: cf-talk
Subject: Re: CF wait for rendering?
On Wed, Oct 6, 2010 at 5:43 PM, Jason Durham wrote:
> Message The resource I:\temp\148B8F9B-9360-3A68-13B177C57
> No, actually not, unless I missed it. Evaluate is against my religion,
> but I might make an exception if there isn't any other way and I care
> enough. It's an odd language feature to work around,
> argumentCollection (args by name) exists, but there's no positional
> equivalent.
It's not that
On Wed, Oct 6, 2010 at 5:43 PM, Jason Durham wrote:
> Message The resource I:\temp\148B8F9B-9360-3A68-13B177C579EF0537.pdf was not
> found.
> Detail The root cause was: ''.
>
> One event fires to create a PDF and send an email (with attachment). I'm
> wondering if is trying to attach a PDF tha
No, actually not, unless I missed it. Evaluate is against my religion,
but I might make an exception if there isn't any other way and I care
enough. It's an odd language feature to work around,
argumentCollection (args by name) exists, but there's no positional
equivalent.
Thanks,
Dave
On Wed,
> Hmmm, not sure what you mean by "build a method call to the original
> method, and write the values positionally by iterating through the
> array". Do you mean write it out to disk or VFS? I'd thought of that,
> but wasn't super fond of the idea, since unless I'm missing something,
> you'd have
You're right, I did misread your last post, sorry. But it's still not
super practical as a generic SES-URL-to-method-call dispatcher, unless
I'm still not getting what you mean. You'd need to inspect each method
before you called it to find out how many args it takes, pad the array
out that far, a
Hmmm, not sure what you mean by "build a method call to the original
method, and write the values positionally by iterating through the
array". Do you mean write it out to disk or VFS? I'd thought of that,
but wasn't super fond of the idea, since unless I'm missing something,
you'd have to do that
Re-read my last post. If you know that the method will accept x number of
arguments. And your array may have anywhere from 1 to x possible values then
write a function to pad your array with (x - arraylen) null values.
Like this:
On Wed, Oct
> Missing the point. The method already exists and has other callers,
> who pass separate arguments by name or position. I'm not redesigning
> its API to take an array of arguments. I want to generically pass in a
> set of ordered arguments to it.
How about writing a new method that takes two arg
Missing the point. The method already exists and has other callers,
who pass separate arguments by name or position. I'm not redesigning
its API to take an array of arguments. I want to generically pass in a
set of ordered arguments to it.
Dave
On Wed, Oct 6, 2010 at 1:57 PM, Michael Grant wrot
I gave you a perfectly viable, easy to implement solution.
On Wed, Oct 6, 2010 at 1:55 PM, enigment wrote:
>
> Imagine an SES URL processor somewhat analogous to what Django
> provides, with a regex match that captures specific segments of the
> incoming URL and passes them to the requested
Imagine an SES URL processor somewhat analogous to what Django
provides, with a regex match that captures specific segments of the
incoming URL and passes them to the requested method. Yes I know about
ColdCourse, and the related ColdBox plugin etc, I was just thinking
about alternate approaches.
It's also pretty unusual to not have any idea how many arguments you are
passing into a method. There are many more elegant approaches to your switch
suggestion. The primary one being writing code that has structure and passes
in the expected amount of arguments each time. Another one would be tha
It's unusual for a method to take an array of its arguments, rather
than individual ones. Situation is something like a dispatcher; the
methods already have defined arguments, say Widgets.search(widgetName,
widgetCategory, widgetID). It'd be pretty weird for it to take an
array containing those th
Thank you Dave, that was very succinct and helpful.
Cheers,
Judah
On Wed, Oct 6, 2010 at 9:03 AM, Dave Watts wrote:
>
>> Matt, do you know of a good rundown on the difference between This and
>> Variables scope in a CFC? I have a basic understanding of it but it is
>> always been something I wa
Dave,
Why don't you just pass in the array?
On Wed, Oct 6, 2010 at 12:38 PM, enigment wrote:
>
> @Michael: What I'm looking for is the positional equivalent of
> argumentCollection. If it wasn't for that, you'd think the same about
> passing a structure of arguments -- any object yo
@Michael: What I'm looking for is the positional equivalent of
argumentCollection. If it wasn't for that, you'd think the same about
passing a structure of arguments -- any object you pass will be
treated as a single argument. But argumentCollection trumps that. I
even tried a structure with keys
Okay, let me come up with something that would explain my situation better.
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive:
Whoops.. read the rest of the email below.
var I = positionalArgs.iterator();
var arg = "";
while( i.hasNext() ) {
arg = i.next();
SomeComponent.someMethod(arg);
}
That will call someMethod() for each array value. You could use a For loop
with "i LTE arrayLen(positionalArg)" if
As you can see anything you put in the args that's derived from CF is going
to be treated as arg1.
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz
> Objects have methods. If you store objects, they still have methods.
> Why do you think this could be a problem?
>
> You haven't explained what you're trying to do and *why* you think
> having the methods callable is... anything other than expected
> behavior.
>
> Sorry if I'm not being very hel
> Matt, do you know of a good rundown on the difference between This and
> Variables scope in a CFC? I have a basic understanding of it but it is
> always been something I wanted to make sure I understood the fine
> distinctions in, kind of like the difference between var scoped
> variables and th
So parse the list inside your method. Or create an argument collection out
of your array and pass it in.
On Wed, Oct 6, 2010 at 11:47 AM, enigment wrote:
>
> Thanks for chiming in Michael.
>
> Using ArrayToList would pass all three values as a single string. I'm
> looking for a generic way to
This is untested...
SomeComponent.someMethod(evaluate(ArrayToList(positionalArgs)));
-Original Message-
From: enigment [mailto:enigm...@gmail.com]
Sent: Wednesday, October 06, 2010 10:48 AM
To: cf-talk
Subject: Re: Positional argument collection
Thanks for chiming in Michael.
Using A
Thanks for chiming in Michael.
Using ArrayToList would pass all three values as a single string. I'm
looking for a generic way to pass each array element as an individual
argument, regardless of how many there are. Take another look at the
examples I gave.
Dave
On Wed, Oct 6, 2010 at 11:02 AM,
I've run into a situation where this exception is being thrown...
Message The resource I:\temp\148B8F9B-9360-3A68-13B177C579EF0537.pdf was not
found.
Detail The root cause was: ''.
One event fires to create a PDF and send an email (with attachment). I'm
wondering if is trying to attach a PDF
I'm not exactly sure what you're asking but would some variation of this
work for you?
SomeComponent.someMethod(ArrayToList(positionalArgs));
Of course you may need to qualify the list etc if you are passing strings,
but I think that suits your example.
On Wed, Oct 6, 2010 at 10:54 AM, enigmen
Say I have an array of values, arbitrary length, that I want to pass
as the arguments to a method.
For example, with this:
positionalArgs = ['foo', 'bar', 42]; // this varies, may be any length
I want to make this call:
SomeComponent.someMethod('foo', 'bar', 42);
Is there a positional equiva
At work we use AccuRev, which is expensive, and flawed, but on the
whole really great. It has a stream inheritance model that means
changes in an earlier release stream automatically flow to later
releases unless there are changes to the same file there already. Also
has integrated issue tracking,
It also depends on your SDLC, and workflow for releases as well.
I use SVN Externals for common code across applications as well, and the one
thing that I do is have only a stable release structure in SVN for any
application.
This means that a developer can code, make changes to all the heart's
It's a really good question, and one that I have no real good answer for.
I think if you are used to working on a common set of files, you do things a
little bit differently than when you have your own copy.
We rarely have the issue of people leaving broken files, not in the least
because your
On 6/10/2010 6:59 PM, Michael Christensen wrote:
>
> Thank you all for the great answers.
>
> I would like to throw a (potential) monkey wrench into the situation by
> saying, that we develop on a common set of files.
>
> How does that play into things?
If that is the case then the distributed e
Thank you all for the great answers.
I would like to throw a (potential) monkey wrench into the situation by saying,
that we develop on a common set of files.
How does that play into things?
Once again thanks for your time.
36 matches
Mail list logo