Re: Jboss Portal + Wicket (Portlet)
Hi Suli, Thanks much for the details. Where did you get calss JbossPortletResourceURLFactory? This is exactly what I am missing. I can't find it in jboss portal, wicket1.3 download, or apache portal bridge1.04. If this is your own implementation, can you please post the code? init-param namePortletResourceURLFactory/name valuewicket.tetst.common.JbossPortletResourceURLFactory/value /init-param -- View this message in context: http://www.nabble.com/Jboss-Portal-%2B-Wicket-%28Portlet%29-tp14953943p14998263.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jboss Portal + Wicket (Portlet)
JbossPortletResourceURLFactory is my custom class. As far as I know Jboss Portal team hasn't implemented it yet, so I did the job (it's not a big thing though as u can see in my previous letter). So check my last letter for the code ... especially the part And my implementation of PortletResourceURLFactory ;). Good luck! PS: my surname is Zsolt ;) Markqt wrote: Hi Suli, Thanks much for the details. Where did you get calss JbossPortletResourceURLFactory? This is exactly what I am missing. I can't find it in jboss portal, wicket1.3 download, or apache portal bridge1.04. If this is your own implementation, can you please post the code? init-param namePortletResourceURLFactory/name valuewicket.tetst.common.JbossPortletResourceURLFactory/value /init-param - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jboss Portal + Wicket (Portlet)
Finally, I got Wicket1.3 portlet working in JBoss portal 2.6.3 - after fixing a few bugs in JBoss's PortletWindowUtils class. When I tried the EditableLable AJAX component, I got following error using Firefox: Error: wicketAjaxGet is not defined Source File: http://localhost:8080/portal/auth/portal/default/default/Wicket13PortletWindow?mode=edit Line: 1 The error is different in I.E. - complaining about Wicket undefined. script type=text/javascript id=wicket-ajax-portlet-flag!--/*--![CDATA[/*!--*/ Wicket.portlet=true /*--]]*//script Süli Zsolt wrote: JbossPortletResourceURLFactory is my custom class. As far as I know Jboss Portal team hasn't implemented it yet, so I did the job (it's not a big thing though as u can see in my previous letter). So check my last letter for the code ... especially the part And my implementation of PortletResourceURLFactory ;). Good luck! PS: my surname is Zsolt ;) Markqt wrote: Hi Suli, Thanks much for the details. Where did you get calss JbossPortletResourceURLFactory? This is exactly what I am missing. I can't find it in jboss portal, wicket1.3 download, or apache portal bridge1.04. If this is your own implementation, can you please post the code? init-param namePortletResourceURLFactory/name valuewicket.tetst.common.JbossPortletResourceURLFactory/value /init-param - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Jboss-Portal-%2B-Wicket-%28Portlet%29-tp14953943p15011074.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jboss Portal + Wicket (Portlet)
Hi Süli, How did you configure PortletResourceURLFactory for JBoss portal? I got the following error when trying the example: Caused by: javax.portlet.PortletException: Portlet RolesAuthApplication is incorrectly configured. Init parameter PortletResourceURLFactory not specified, nor as context parameter org.apache.portals.bridges.common.PortletResourceURLFactory or as property in org/apache/wicket/protocol/http/portlet/WicketPortlet.properties in the classpath. 13:57:19,593 ERROR [STDERR] at org.apache.wicket.protocol.http.portlet.WicketPortlet.init(WicketPortlet.java:153) 13:57:19,593 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.initPortlet(PortletContainerImpl.java:359) 13:57:19,593 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:233) Süli Zsolt wrote: Hi! I have been trying to make Wicket (1.3.0) work with Jboss Portal (Jboss 4.2.2 and Portal 2.6.1. or 2.6.3.) for 2 weeks. Everything is ok, except AJAX calling. (This portlet works like charm on Jetspeed2.) So let's see what we know... Ajax Request reaches the server, and it gives me a respond too. The problem is, that the respond doesn't contain an lt;ajax-responsegt;nbsp;element, as this error says (from the WICKET AJAX DEBUG window) ERROR: Errornbsp;whilenbsp;parsingnbsp;response:nbsp;Couldnbsp;notnbsp;findnbsp;rootnbsp;lt;ajax-responsegt;nbsp;element INFO: Invokingnbsp;post-callnbsp;handler(s)... WicketAjaxGet JS functions has this String as first parameter: http://localhost:8080/portal/portal/default/wickethelloportlet/WicketHelloPortletPortletWindow?action=2amp;_wuview=%2Fwickethelloportlet%2F%3Fwicket%3Ainterface%3D%3A0%3Ac1-link%3A%3AIBehaviorListener%3A0%3Aamp;_ru=true I debugged JbossPortal, and I saw that the HttpServletRequest has a _wuview parameter, but it doesn't appear in the generated PortletRequest (as a parameter). (If I call that URL directly from the browser, it generates an lt;ajax-responsegt; element and the _wuview parameter still exists in the PortletRequest.) So my RequestTarget will be [EMAIL PROTECTED] pageClass=wicket.test.HomePage, notnbsp; org.apache.wicket.request.target.component.listener.BehaviorRequestTarget. Does anybody has luck with Wicket + Jboss Portal? What am I doing wrong? Any help would be appreciated! Thx in advance! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Jboss-Portal-%2B-Wicket-%28Portlet%29-tp14953943p14988555.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jboss Portal + Wicket (Portlet)
Hi Markqt, I followed the instructions I found on this page: http://cwiki.apache.org/WICKET/portal-howto.html So my web.xml looks like this: ?xml version="1.0" encoding="ISO-8859-1"? web-app xmlns=MailScanner has detected a possible fraud attempt from "java.sun.com" "http://java.sun.com/xml/ns/j2ee" xmlns:xsi=MailScanner has detected a possible fraud attempt from "www.w3.org" "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=MailScanner has detected a possible fraud attempt from "java.sun.com" "http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4" display-namewickethelloportlet/display-name filter filter-namewickethelloportlet/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationClassName/param-name param-valuewicket.test.WicketApplication/param-value /init-param /filter context-param param-nameorg.apache.wicket.detectPortletContext/param-name param-valuetrue/param-value /context-param filter-mapping filter-namewickethelloportlet/filter-name url-pattern/wickethelloportlet/*/url-pattern dispatcherREQUEST/dispatcher dispatcherINCLUDE/dispatcher /filter-mapping /web-app --- In the portlet.xml I added these lines portlet ... init-param nameServletContextProvider/name valueorg.jboss.portal.bridge.JBossServletContextProvider/value /init-param init-param namePortletResourceURLFactory/name valuewicket.tetst.common.JbossPortletResourceURLFactory/value /init-param ... /portlet And my implementation of PortletResourceURLFactory: public class JbossPortletResourceURLFactory implements PortletResourceURLFactory { public String createResourceURL( PortletConfig portletConfig, RenderRequest renderRequest, RenderResponse renderResponse, Map portletArg ) throws PortletException { PortletURL url = "" // - maybe I should use renderResponse.createRenderURL(); if (portletArg != null) { url.setParameters(portletArg); } return url.toString(); } public String createResourceURL() { return null; } } I hope this helps! Zsolt Süli Markqt wrote: Hi Süli, How did you configure PortletResourceURLFactory for JBoss portal? I got the following error when trying the example: Caused by: javax.portlet.PortletException: Portlet RolesAuthApplication is incorrectly configured. Init parameter PortletResourceURLFactory not specified, nor as context parameter org.apache.portals.bridges.common.PortletResourceURLFactory or as property in org/apache/wicket/protocol/http/portlet/WicketPortlet.properties in the classpath. 13:57:19,593 ERROR [STDERR] at org.apache.wicket.protocol.http.portlet.WicketPortlet.init(WicketPortlet.java:153) 13:57:19,593 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.initPortlet(PortletContainerImpl.java:359) 13:57:19,593 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:233) Süli Zsolt wrote: Hi! I have been trying to make Wicket (1.3.0) work with Jboss Portal (Jboss 4.2.2 and Portal 2.6.1. or 2.6.3.) for 2 weeks. Everything is ok, except AJAX calling. (This portlet works like charm on Jetspeed2.) So let's see what we know... Ajax Request reaches the server, and it gives me a respond too. The problem is, that the respond doesn't contain an lt;ajax-responsegt;nbsp;element, as this error says (from the WICKET AJAX DEBUG window) ERROR: Errornbsp;whilenbsp;parsingnbsp;response:nbsp;Couldnbsp;notnbsp;findnbsp;rootnbsp;lt;ajax-responsegt;nbsp;element INFO: Invokingnbsp;post-callnbsp;handler(s)... WicketAjaxGet JS functions has this String as first parameter: http://localhost:8080/portal/portal/default/wickethelloportlet/WicketHelloPortletPortletWindow?action=""> I debugged JbossPortal, and I saw that the HttpServletRequest has a _wuview parameter, but it doesn't appear in the generated PortletRequest (as a parameter). (If I call that URL directly from the browser, it generates an lt;ajax-responsegt; element and the _wuview parameter still exists in the PortletRequest.) So my RequestTarget will be [EMAIL PROTECTED] pageClass=wicket.test.HomePage, notnbsp; org.apache.wicket.request.target.component.listener.BehaviorRequestTarget. Does anybody has luck with Wicket + Jboss Portal? What am I doing wrong? Any help would be appreciated! Thx in advance! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
Jboss Portal + Wicket (Portlet)
Hi! I have been trying to make Wicket (1.3.0) work with Jboss Portal (Jboss 4.2.2 and Portal 2.6.1. or 2.6.3.) for 2 weeks. Everything is ok, except AJAX calling. (This portlet works like charm on Jetspeed2.) So let's see what we know... Ajax Request reaches the server, and it gives me a respond too. The problem is, that the respond doesn't contain an ajax-responseelement, as this error says (from the WICKET AJAX DEBUG window) ERROR: Errorwhileparsingresponse:Couldnotfindrootajax-responseelement INFO: Invokingpost-callhandler(s)... WicketAjaxGet JS functions has this String as first parameter: http://localhost:8080/portal/portal/default/wickethelloportlet/WicketHelloPortletPortletWindow?action=""> I debugged JbossPortal, and I saw that the HttpServletRequest has a _wuview parameter, but it doesn't appear in the generated PortletRequest (as a parameter). (If I call that URL directly from the browser, it generates an ajax-response element and the _wuview parameter still exists in the PortletRequest.) So my RequestTarget will be [EMAIL PROTECTED] pageClass=wicket.test.HomePage, not org.apache.wicket.request.target.component.listener.BehaviorRequestTarget. Does anybody has luck with Wicket + Jboss Portal? What am I doing wrong? Any help would be appreciated! Thx in advance! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]