From: mholzner <nu...@jb...> - 2005-04-29 17:52:20
|
Let me start with: whoever implemented this code and expects to be able to cast a portlet request to a http servlet request sucks as a developer ;) That out of the way: if there is enough demand for such a 'feature' it might make sense to add it, but it is fundamentally wrong, and completely against the idea of the portlet spec, so forget I even said that :) ...back to my original statement: the code sucks. You should work on the ORACLE side of the fence to fix this issue; the portal actually does the right thing. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3875965#3875965 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3875965 |
From: <ju...@jb...> - 2005-04-29 18:03:00
|
I could not say something better View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3875968#3875968 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3875968 |
From: sven.schulz <nu...@jb...> - 2005-05-02 14:04:41
|
Standards are important and adhering to them should be mandatory. However reality itself has some normative power. As of my knowledge several Portal implementors (GridSphere, Websphere) go the dirty way and make their PortalRequest classes implement HttpServletRequest. The same is true for third party libraries like MyFaces or ADF Faces. Their developers seem to rely on the castability of the PortalRequest. I am not happy with this, but having to abandon a great JSF component implementation or a great Portal Server because they aren't interoperable would be a tragedy. The guys at ADF Faces didn't respond to my inquiry. Since ADF is closed source there is no chance to adapt their implementation to make it work with JBoss. If there is any chance of you adapting the JBoss implementation, let me know. If not, we think of making the changes by ourselves. This is clearly an interim solution, but an option in our eyes. If you are aware of any issues or pitfalls with doing that, please, let us know. Regards, Sven View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3876139#3876139 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3876139 |
From: <roy...@jb...> - 2005-05-02 14:36:37
|
I'm curious... what is it you need from HTTPServletRequest that is not found in PortletRequest? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3876143#3876143 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3876143 |
From: <ju...@jb...> - 2005-05-02 14:42:07
|
Jetspeed portal bridges has a good way to circumvent this. | public interface ServletContextProvider | { | ServletContext getServletContext(GenericPortlet portlet); | | HttpServletRequest getHttpServletRequest(GenericPortlet portlet, PortletRequest request); | | HttpServletResponse getHttpServletResponse(GenericPortlet portlet, PortletResponse response); | } | We are implementing it on our side. I think it is a reasonable agreement between the portal and the bridges as usual. In that case running oracle ADF would need to use that implementation through an adapter. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3876144#3876144 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3876144 |
From: sven.schulz <nu...@jb...> - 2005-05-02 14:50:15
|
Roy, I don't know why the ADF crew is doing what they do (remember it's closed source). I believe that they are simply not aware that there are other options to access e.g. context values using FacesContext. Julien, I'm happy to hear that. Could you elaborate on how to use this adapter and state when it will be available? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3876146#3876146 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3876146 |
From: bluca <nu...@jb...> - 2005-05-10 08:39:51
|
I develop a new web application with tomcat and jsf. I'm totally new to jboss portal and oracle adf faces. I think your solution is a good solution. Is there some baisc documentation about jboss portal and oracle adf faces integration ? (Thank you and sorry for my english) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877116#3877116 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877116 |
From: <ju...@jb...> - 2005-05-10 08:45:43
|
actually it is not an on going effort of the portal team but rather a personnal effort of sven. sven, could it be contributed back in any form (documentation or code) ? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877120#3877120 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877120 |
From: sven.schulz <nu...@jb...> - 2005-05-10 11:26:00
|
After a lot of code introspection and a try and error session ADF Faces and MyFaces are working in JBoss Portal 2.0 RC. However I don't feel good about the solution. I modified the Sun JSF RI Portal bridge. When it comes to access the critical objects (Context, Request, Response, ...) I introspect the call stack and check if ADF or MyFaces class is invoking the respective method. If so I get the underlying Servlet specific object via the JBoss Bridge Framework and return it instead of the portal specific class. As you can see my solution is quite ugly. However it works and will suffice until a better integration concept is available. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877142#3877142 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877142 |
From: <ju...@jb...> - 2005-05-10 14:36:21
|
you don't need to modify anything to use myfaces into jboss portal. we have a sample available here : http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossPortalSamples View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877177#3877177 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877177 |
From: <roy...@jb...> - 2005-05-10 14:48:40
|
Ack! I haven't posted the MyFaces sample. Was going to rebuild them all. The sample I have only works with RC1 - this release. I will post it now anyway. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877187#3877187 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877187 |
From: sven.schulz <nu...@jb...> - 2005-05-10 14:58:08
|
I think that's not quite true. As soon as the resource servlet of MyFaces is involved things break, since the MyFaces developers employ a nasty cast to ServletRequest or ServletContext (can't remember what exactly) in the AddResource class. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877191#3877191 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877191 |
From: <ju...@jb...> - 2005-05-10 14:58:46
|
I was not aware of that. Could you describe what does that resource servlet ? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877192#3877192 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877192 |
From: sven.schulz <nu...@jb...> - 2005-05-10 15:10:50
|
Oh, I am not deeply involved. However I try to explain, what I think it does. When a complex component like a tree is rendered external resources like images for the decorations are necessary. These resources are provided by a filter (so it's a filter, not a servlet) that is configured in web.xml | <!-- MyFaces Extensions Filter --> | <filter> | <filter-name>extensionsFilter</filter-name> | <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class> | </filter> | | | | | The filter is configured to be invoked whenever the request URL matches /faces/*. | | | | Here is the javadoc of the class: | | | | anonymous wrote : This is a utility class to render link to resources used by custom components. Mostly used to avoid having to include in the head of the pages before using a component.anonymous wrote : | | | | | | | | I think it is not only used for images but also for Javascript and the like. | | | | | | | | Another use case of the filter is to handle file uploads (multipart requests). View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877194#3877194 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877194 |
From: sven.schulz <nu...@jb...> - 2005-05-10 15:12:24
|
Ups, messed up the markup. Sorry for that. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877198#3877198 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877198 |
From: sven.schulz <nu...@jb...> - 2005-05-10 15:19:22
|
I have encountered another problem with using JSF in the JBoss Portal. When using a commandLink tag a href="#" is rendered by the default renderer. When this is encoded as an action URL org.jboss.portal.portlet.impl.PortletResponseImpl.encodeURL comes up with an IllegalArgumentException saying that the url is invalid. Any idea for a quick fix for that? What is a valid URL. I think it should be possible to prepend the portlet URI, but how can this be done? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877200#3877200 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877200 |
From: gavinc <nu...@jb...> - 2005-05-10 15:28:16
|
I'm seeing problems trying to use the MyFaces extensions filter too. I have just posted a response to another thread about this (http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3877199#3877199). Basically we are trying to upload files using MyFaces but running into issues with the filter. For us it is not getting executed at all! Gav View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877203#3877203 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877203 |
From: sven.schulz <nu...@jb...> - 2005-05-10 15:34:53
|
I have a running example of MyFaces in JBoss Portal with the tree2 component. Since it is using resources (images and Javascript) I deduce that the filter is executed. Perhaps your filter mapping is not set appropriately. It should be something like | <!-- MyFaces resource filter mapping --> | <filter-mapping> | <filter-name>extensionsFilter</filter-name> | <url-pattern>/faces/*</url-pattern> | </filter-mapping> | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877206#3877206 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877206 |
From: sven.schulz <nu...@jb...> - 2005-05-10 15:55:32
|
"sven.schulz" wrote : I have encountered another problem with using JSF in the JBoss Portal. When using a commandLink tag a href="#" is rendered by the default renderer. When this is encoded as an action URL org.jboss.portal.portlet.impl.PortletResponseImpl.encodeURL comes up with an IllegalArgumentException saying that the url is invalid. Any idea for a quick fix for that? What is a valid URL. I think it should be possible to prepend the portlet URI, but how can this be done? By replacing the #-URI by a simple / things are working again. But I am not quite sure, if the implementation of PortletResponseImpl.encodeURL should really insist on URI being absolute or begin with a /. Is this required by the spec? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877215#3877215 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877215 |
From: bluca <nu...@jb...> - 2005-05-11 12:38:20
|
thank you. And what about JBoss portal and JSF. How do you feel ? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877334#3877334 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877334 |
From: kanthrao <nu...@jb...> - 2005-08-22 19:37:18
|
Is there some documentation or code sample to integrate oracle adf faces with jboss portal? I am currently trying to use ADF faces EA17 with JBOSS portal (jboss-portal-2.0-jboss-4.0.2). I get this exception | java.lang.ClassCastException | at com.sun.faces.portlet.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:56) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:192) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.portal.portlet.impl.PortletRequestDispatcherImpl.execute(PortletRequestDispatcherImpl.java:71) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:324) | at org.jboss.portal.server.servlet.CommandFilter.doFilter(CommandFilter.java:54) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) | at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574) | at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499) | at org.jboss.portal.portlet.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:113) | at com.sun.faces.portlet.ExternalContextImpl.dispatch(ExternalContextImpl.java:126) | at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130) | at com.sun.faces.portlet.ViewHandlerImpl.renderView(ViewHandlerImpl.java:122) | at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:146) | at com.sun.faces.portlet.LifecycleImpl$RenderResponsePhase.execute(LifecycleImpl.java:540) | at com.sun.faces.portlet.LifecycleImpl.phase(LifecycleImpl.java:246) | at com.sun.faces.portlet.LifecycleImpl.render(LifecycleImpl.java:188) | Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3891103#3891103 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3891103 |
From: jgarg <do-...@jb...> - 2006-02-23 19:03:51
|
Sven, Is there any way you can share the code changes you made to Sun JSF RI Portal bridge. I would appreciate it. It will help me greately if you can provide step-by-step instructions to make ADF work with Jboss Portal Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925908#3925908 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925908 |