Thanks, Filip. I tried to inject RequestGlobals, like I did for normal component, but that doesn't work. It's not correctly injected.
Filip S. Adamsen-2 wrote: > > Have you tried injecting the request directly into your BindingFactory? > > -Filip > > jeffrey ai skrev: >> Hi Folks, >> >> I think I'm missing something here, but would appreciate a shove in the >> right direction. >> I created a new BindingFactory, introduced a new prefix, and successfully >> contributed it to BindingSource. >> I am trying to do the following things in my new BindingFactory, >> ===== >> public Binding newBinding( String description, ComponentResources >> container, ComponentResources component, >> String expression, Location location ) >> { >> final HttpServletRequest request = >> getRequestFromComponent(component); >> >> final String personalizedMessage = >> getPersonalizedMessage(request.getParameter("personID"), expression); >> >> return new LiteralBinding( description, personalizedMessage, >> location >> ); >> } >> ===== >> >> I couldn't find a way to dig the Http request out from the component at >> this >> point -- page expansion phase. >> >> Thanks for any advice, >> Jeffrey Ai > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/T5%3A-Is-there-a-way-to-make-a-BindingFactory-request-aware-tf4884618.html#a13981933 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]