Hello,
I got the sample portlet XPRInvoiceAjaxPortlet from
http://java.net/projects/portlet-container/sources/svn/show/trunk/samples/XPRInvoiceAjaxPortlet
I have deployed this to the OpenPortal Portlet Container and seems that AJAX
works great also if multiple other portlets are deployed.
I want to embbed this in my webapp that uses the portletdriver. I did the
following:
---------
1) Include <portlet-container-home> [1]/lib/portletdriver.jar in
the WEB-INF/lib of your webapplication
2) Add the PortletDriverFilter configuration to your web.xml
<filter>
<filter-name>portletDriverFilter</filter-name>
<filter-class>com.sun.portal.portletcontainer.driver.PortletDriverFilter</filter-class>
</filter> <filter-mapping>
<filter-name>portletDriverFilter</filter-name>
<url-pattern>/portlet.jsp</url-pattern> </filter-mapping>
3) Include the portlet in your jsp(i.e portlet.jsp in this example)
<%@taglib uri="
http://portlet-container.dev.java.net" prefix="pcdriver"%>
<pcdriver:portlet portletName="WelcomePortlet"
applicationName="WelcomePortlet" > <h2
class="portlet-title"><pcdriver:title/></h2> <pcdriver:render/>
</pcdriver:portlet>
---------
But now the AJAX receives a response that contains not only contenct form the
portlet but also the original page?
------
<xml....><ajax resp..>
<html>
wep page of the web app that contains the portlet..
-------
Someone could help?
Thanks
[1]
http://portlet-container.java.net/public/UserGuide.html#Portlet_Container_Home
--
[Message sent by forum member 'tom.cerny']
View Post: http://forums.java.net/node/801362