Forwarding

1 view
Skip to first unread message

QuickConnect

unread,
May 25, 2010, 2:57:12 PM5/25/10
to Bombax Support
Is there a way to forward a request? Specifically from a Handler to a
bxml file?

If not, is there a way to do server-side includes from within a
Handler?

Thanks,


Lee

Dominic Blais

unread,
May 25, 2010, 3:51:31 PM5/25/10
to Bombax Support
Hello, Lee. Yes, by calling the renderWithTransport: method of the
target BxHandler (or using <?paste ?> if within BXML). Since the BXML
classes are auto-generated, to get the correct singleton use the
handlerInstanceForClassName method in BxApp. The declaration of this
is newly in the beta, but the method itself has been there since at
least version 1.0.0. The signature is as follows:
- (BxHandler *)handlerInstanceForClassName:(NSString *)handlerName;

If it's not clear, please let me know and I'll send an example of its
use.
Sincerely,
Dominic Blais
COO & Hacker-in-Chief

QuickConnect

unread,
May 25, 2010, 6:46:18 PM5/25/10
to Bombax Support
Dominic,

Got it. Thanks.


Lee

Reply all
Reply to author
Forward
0 new messages