1. The method getRequestContext() is undefined for the type IRequestCycle.

The RequestContext doesn't exist anymore. Now we have the Infrastructure 
object. Also, in order to support portlets, the Infrastructure object doesn't 
give you HttpServletRequest or HttpServletResponse objects, but instead give 
you a custom object called WebRequest and WebResponse. If you want a reference 
to the actual HttpServletRequest, you can inject it into the page. With 
Tapestry annotations, that's done like this:

@InjectObject("service:tapestry.globals.HttpServletRequest")
public abstract HttpServletRequest getRequest();

I'm not sure how to get a reference to the Servlet or ServletConfig, but I'm 
reasonably certain that it would be in a similar manner.

2. The method getServiceParameters() is undefined for the type IRequestCycle

IRequestCycle.getServiceParameters() is now 
IRequestCycle.getListenerParameters().

3. The method getObject(Class) in the type IBinding is not applicable
   for the arguments (String, Class<Browser>)

Retrieval of values from Ibinding objects has been simpllified; you now just 
call getObject(), or getObject(Class) if you want to perform an assignability 
check. So yeah, calling .getObject(Browser.class) should work just fine.

5. (What happened to 4? :))org.apache.tapestry.event.PageRenderListener; is not 
used in TP4
   what should I use here?

PageRenderListener was split into PageBeginRenderListener and 
PageEndRenderListener.


The information is kind of spread around, so I can understand that it's a bit 
hard to find, but there are several pages to look to for this kind of help. 
Here are some I found useful:

User's Guide:
http://tapestry.apache.org/tapestry4.1/usersguide/index.html

Component Reference:
http://tapestry.apache.org/tapestry4.1/components/index.html

Tapestry Wiki:
http://wiki.apache.org/tapestry/

JavaDocs:
http://tapestry.apache.org/tapestry4.1/apidocs/index.html


Robert J. Walker


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to