Re: cfgrid - data layout options vs some other method

2009-08-02 Thread Cutter (ColdFusion Related)

You can control the layout, by using custom column renderers, which 
you'll have to define after the fact. Here's a short post on creating 
your own custom column renderers:

http://blog.cutterscrossing.com/index.cfm/2007/11/30/CF8-Ajax-Grid-Renderers-and-Events

Les Mizzell wrote:
> If using cfgrid, is it possible to get the data layout to be anything 
> other than 1 database column = 1 grid column?
>
> For example, given fname, lname and address fields, can I stack stuff:
>
> lname, fname
> address
> city, state, zip
>
> Or can I only get
> lname | fname | address | city | state | zip
>
>
> ...and if I *can't* stack stuff, what's the next best cool way to get as 
> close to the editing options that cfgrid offers?
>
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325176
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


cfgrid - data layout options vs some other method

2009-08-02 Thread Les Mizzell

If using cfgrid, is it possible to get the data layout to be anything 
other than 1 database column = 1 grid column?

For example, given fname, lname and address fields, can I stack stuff:

lname, fname
address
city, state, zip

Or can I only get
lname | fname | address | city | state | zip


...and if I *can't* stack stuff, what's the next best cool way to get as 
close to the editing options that cfgrid offers?

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325175
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Twitter oAuth

2009-08-02 Thread Rob O'Brien

I just sent another email on this topic, but didn't see this thread first.
My bad.

Here's a solution I just posted on my blog:
http://bit.ly/SGYrv/

Hope it helps.

Rob


-Original Message-
From: nobosh [mailto:bhellm...@gmail.com] 
Sent: Sunday, July 26, 2009 7:54 PM
To: cf-talk
Subject: Re: Twitter oAuth


Hi Philip,

Did you ever have a chance to write a Twitter/CF/oAuth manual? I'm going
through the same experience you mentioned, trying to figure out
oauth.riaforge.org but haven't been able to find any documentation, examples
or tutorials. 

Any help is appreciated.

Thanks,

Brett


Philip Kaplan-2 wrote:
> 
> 
> In case anyone's interested, I figured it all out with the help of some
> off-list folks.  Contact me if you need help with this.
> Perhaps I will write a quick Twitter/ColdFusion/oAuth manual in the
> future.
> 
> On Mon, Apr 6, 2009 at 7:00 PM, Philip Kaplan  wrote:
> 
>> Anyone here have any experience with oAuth?  Or better yet with Twitter's
>> oAuth implementation?
>> I'm just not making any headway.  I've downloaded this:
>> http://oauth.riaforge.org/
>>
>> But there's very little documentation on the CF oAuth side or on the
>> Twitter side.
>>
>> Anyone ever get oAuth to work?  I don't really know where to start.
>>
>>
> 
> 
> 



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325174
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Twitter + OAuth Integration

2009-08-02 Thread Rob O'Brien

I just wanted to let everyone know that I just posted an article on how to
accomplish Twitter integration with OAuth and ColdFusion.

 

I had a difficult time finding information about this particular topic, so I
hope it helps others.

 

Here's the link to my blog post: http://bit.ly/SGYrv/

 

I hope it's useful.

 

Rob

 

 

 



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325173
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Form in CFWINDOW - currently CHEATING to get parent to refresh...

2009-08-02 Thread Nicholas Stein

I think I am hearing that you get a record set on the parent page and loop 
through it showing the rows in a table.  Then the user clicks a link for a 
record and it opens a new window which edits that record, saves the result back 
to the data store and then closes, updating the record on teh parent page.

If that is the cycle, I would pass the newly edited information back to the 
parent in a callback function in javascript and update the s in the table.  

The edit (child) window can reference the parent with window.opener.  Here is a 
simple tutorial... http://www.webreference.com/js/tutorial1/opener.html

In the example on that link, the update is made to a text box.  In your case 
you could update a series of  or  or  that have ids or names.  
The names could derive from the record id to make them unique.  Another 
possibility is to do the processing back on the parent by calling a function 
from the child.  window.opener.update();

I hope these ideas help you out.

Nick 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325172
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Phillip Perry wants to chat

2009-08-02 Thread Phillip Perry

---

Phillip Perry wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-f23f08bf6f-4171d35757-ad4a8a9fd09d87fd
You'll need to click this link to be able to chat with Phillip Perry.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with Phillip Perry, visit:
http://mail.google.com/mail/a-f23f08bf6f-4171d35757-ad4a8a9fd09d87fd

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into "conversations"
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

Gmail and Google Talk are still in beta. We're working hard to add new features
and make improvements, so we might also ask for your comments and suggestions
periodically. We appreciate your help in making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325171
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Session issues - In words of one syllable please :-)

2009-08-02 Thread Azadi Saryev

Thanks for your feedback, Paul!

I think I have sorted it out. At least I have not had the usual error
emails for almost 5 hours now.

I should mention that I did NOT set Max and Default session timeouts to
same value, but just made sure that Max timeout was less than
session-timeout value in web.xml file. Still seems to have worked...

Cheers,

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/


On 02/08/2009 20:48, Paul Vernon wrote:
> 
>> sorry to resurrect an old thread, but I think I have something to add to
>> it...
>>
>> the same issue has manifested itself on one of my sites about 2 days ago
>> all of a sudden. my error handler started flooding my inbox with
>> "Session is invalid" error reports at a rate of about 80-110 a day.
> 
> There were a couple of things that I did that sorted this out completely.
> 
> 1. Double checked the server was using J2EE sessions.
> 2. Set the maximum timeouts to the same values as the default timeouts in
> the CF Admin.
> 3. Set the session-timeout in the web.xml file to a little more than the
> settings in CF Admin (I added 5 mins).
> 4. (This is the bit I was missing). Set the setClientCookies var in the
> application cfc/cfm to false.
> 
> Because I was missing the last piece, the CFID and CFTOKEN cookies were
> being issued as well as JSESSIONID. This was causing clients to hold onto
> the CFID/CFTOKEN combination (sent to the client) when the JSESSIONID (held
> in server memory) had long since expired. CF was trying its best to
> reconcile both the CFID/CFTOKEN combination with a valid J2EE session and
> was failing as the J2EE session no longer existed and was null... hence the
> error "Session is invalid null"
> 
> HTH
> 
> Paul
> 
> 
> 
> 
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325170
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Session issues - In words of one syllable please :-)

2009-08-02 Thread Paul Vernon

I also forgot to mention...

If you access session information using the SessionFactory then you can
cause this issue to occur too. But I think your specific issue is the same
as mine was.

Paul



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325169
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Session issues - In words of one syllable please :-)

2009-08-02 Thread Paul Vernon

> sorry to resurrect an old thread, but I think I have something to add to
> it...
>
> the same issue has manifested itself on one of my sites about 2 days ago
> all of a sudden. my error handler started flooding my inbox with
> "Session is invalid" error reports at a rate of about 80-110 a day.

There were a couple of things that I did that sorted this out completely.

1. Double checked the server was using J2EE sessions.
2. Set the maximum timeouts to the same values as the default timeouts in
the CF Admin.
3. Set the session-timeout in the web.xml file to a little more than the
settings in CF Admin (I added 5 mins).
4. (This is the bit I was missing). Set the setClientCookies var in the
application cfc/cfm to false.

Because I was missing the last piece, the CFID and CFTOKEN cookies were
being issued as well as JSESSIONID. This was causing clients to hold onto
the CFID/CFTOKEN combination (sent to the client) when the JSESSIONID (held
in server memory) had long since expired. CF was trying its best to
reconcile both the CFID/CFTOKEN combination with a valid J2EE session and
was failing as the J2EE session no longer existed and was null... hence the
error "Session is invalid null"

HTH

Paul




~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325168
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Session issues - In words of one syllable please :-)

2009-08-02 Thread Azadi Saryev

sorry to resurrect an old thread, but i think i have something to add to
it...

the same issue has manifested itself on one of my sites about 2 days ago
all of a sudden. my error handler started flooding my inbox with
"Session is invalid" error reports at a rate of about 80-110 a day.

nothing at all has changed on the server (it's a VPS which i control).

from my error reports i can see that all of the errors are caused by one
and the same process: the rss reader in my own Thunderbird email client
trying to fetch an RSS feed from the site.

The rss feed file (a cfm page) is under the global Application.cfc, so
all app settings (session management etc) apply to it too.

i think that may be the problem - i have no idea if/how Thunderbird
works with sessions... and i also have no idea if other rss readers may
be affected by this (though i suppose i would have gotten an error email
about this - i guess just only me subscribed to the site's feed :( )

i have increased session-timeout setting in web.xml file and made sure
the settings in cf admin do not exceed it, so will now wait and see if
that helps...


Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/


On 17/04/2009 21:46, Paul Vernon wrote:
> 
> Can someone explain why the "Session is invalid null" occurs?
> 
> We have a site on a dedicated server running CF 8 (8,0,1,195765) Standard 
> edition. It gets around 11,000 users a day and for the most part is issue 
> free.
>  
> I've searched HoF etc., I've read the tech notes and I've subsequently 
> altered the session-timeout value in the web.xml config file so the timeout 
> is larger than the session timeout in the CF admin settings. Altering the 
> session-timeout value has *definitely reduced* this error occurring but it 
> hasn't fixed the problem and my gut instinct is that by altering the 
> session-timeout value I'm just hiding the problem rather than dealing with it.
> 
> Prior to altering the value, the error was happening around 60 or 70 times a 
> day, altering the value has reduced this error to a couple of times a day. I 
> suspect increasing the session-timeout value to an even larger number will 
> eradicate the problem but because I don’t understand the mechanics of why 
> it's happening in the first place, this solution just doesn't feel right.
> 
> Also, J2EE sessions are enabled and I see the jsessionid in the headers of 
> requests but I still see CFID and CFTOKEN values too. I may have got this 
> wrong but I thought that the jsessionid negated the need for CFID and CFTOKEN?
> 
> Any explanations as to exactly how the session cookies work and why the 
> session null error happens in the first place are gratefully received!
> 
> Paul
> 
> 
> 
> 
> 
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325167
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4