From: <sta...@jb...> - 2005-05-10 14:44:40
|
Hi Paul, I'm the one who wrote the MyFaces Portlet integration code. I'm interested in what way you found MyFaces to be more strict than the RI. Thanks in advance for your help, Stan View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877186#3877186 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877186 |
From: gavinc <nu...@jb...> - 2005-05-10 15:16:41
|
Hi Stan, I work with Paul and was the one that moved our stuff over to MyFaces from the Sun RI. There were 2 things we found caused problems that were just due to MyFaces being a bit more strict. We have a couple of components that render themselves but extend UICommand. Because we were not calling setRendererType(null) the button renderer was picked up from UICommand and resulted in buttons appearing on our page right after each use of our component. The other was with save/restoreState. In the Sun RI these don't seem to get called when saving state on the server so most of our components did not implement these methods (as we hadn't neeeded to). MyFaces obviously does call these methods though as when an action link was clicked and the page re-rendered, all the internal state of the components had been reset. Apart from that as Paul said the whole process went very smoothly, until today actually!! I have been trying to get the x:inputFileUpload component to work but to no avail. To use this you must set up the extensionsFilter in web.xml to handle the multipart request. However, because we are using a portal server the filters never get executed, this means that the multipart request reaches the portal/MyFaces in it's raw form and neither know how to deal with that, as a result my page just gets re-drawn! Any ideas how we can get round this problem as we would really like to leverage the work you guys have already done for uploading files. Thanks in advance, Gav View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877199#3877199 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877199 |
From: <roy...@jb...> - 2005-05-10 15:24:31
|
We're using PortletFileUpload from the fileupload package in jakarta commons. You can see how it works in the AdminCMSPortlet... line 923. Not sure if this will help with MyFaces. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877202#3877202 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877202 |
From: <sta...@jb...> - 2005-05-10 15:32:08
|
If you look at section 6.2.5 of the Servlet 2.4 spec you can see how to trigger filters during a forward or include. You specify a tag in your filter mapping. Here is the link to the Servlet 2.4 spec: http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html I think that will at least get you further along. Thanks for the feedback. Stan View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877204#3877204 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877204 |
From: <sta...@jb...> - 2005-05-10 15:43:30
|
As for your other two problems, they are general MyFaces differences and not related to portlet integration. For the second one about saveState/restoreState, you can never rely on them being called or not called (JSF spec 3.2.3.2). You are right in that MyFaces was forcing you to be compliant. I'll have to look at the other one. This is quite interesting as they point to clarifications that need to be made in the spec. Stan View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877211#3877211 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877211 |
From: gavinc <nu...@jb...> - 2005-05-10 15:55:21
|
Roy, Thanks for the pointer, I did find this earlier and am trying to do something similar in the meantime, but it means that my upload page has to be outside a JSF form which makes it more tricky to tie it all together! Stan, Thanks for the info regarding the filters, something I didn't know, I will definitely give it a go. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877214#3877214 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877214 |
From: gavinc <nu...@jb...> - 2005-05-11 08:16:46
|
I tried the filter dispatcher tip you mentioned Stan but unfortunately it didn't work as expected. The filter does now get called but it obviously does something to the request that MyFaces doesn't like as all I get on my page is the word "null"!! I have also remembered another minor issue we ran into with the MyFaces/Portal integration. Before switching over we were able to re-deploy our portlet application but we now get an error. When I turned on debugging I also noticed that MyFaces seems to get initialised twice, so I don't know if this has anything to do with it? It seems you have to have the context listener entry in your web.xml otherwise you get errors when starting the app but when the MyFacesGenericPortlet initialises it also configures MyFaces. It is at this point in the re-deploy that we get the stack trace below: java.lang.IllegalArgumentException: Class org.apache.myfaces.application.ActionListenerImpl is no javax.faces.event.ActionListener at org.apache.myfaces.config.FacesConfigurator.getApplicationObject(FacesConfigurator.java:560) at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:464) at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:215) at org.apache.myfaces.portlet.MyFacesGenericPortlet.initMyFaces(MyFacesGenericPortlet.java:177) at org.apache.myfaces.portlet.MyFacesGenericPortlet.init(MyFacesGenericPortlet.java:120) at javax.portlet.GenericPortlet.init(GenericPortlet.java:342) at org.jboss.portal.portlet.PortletContainer.start(PortletContainer.java:129) One final question, do you plan on putting any error handling mechanism into MyFacesGenericPortlet so that if an error gets thrown we can configure a JSF page to get displayed? (rather than the portlet showing a large stack trace) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877298#3877298 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877298 |
From: <sta...@jb...> - 2005-05-13 14:11:39
|
MyFaces shouldn't be initialized twice. I know there is code in there to check for that, but maybe it isn't working correctly. For the error page, can you add that as a feature request in MyFaces jira? Actually, you can add any issues here. I'll be looking into any portlet-related ones personally. http://issues.apache.org/jira/secure/BrowseProject.jspa?id=10600 Thanks, Stan View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877664#3877664 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877664 |
From: gavinc <nu...@jb...> - 2005-05-20 22:46:38
|
Hi Stan, Sorry it's taken a while but I have added the issues and feature request to JIRA, the keys are as follows: 248 - Initialising twice error 249 - Re-deployment error 250 - Feature request for error page config option Cheers, Gav View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3878626#3878626 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3878626 |
From: echoi1975 <nu...@jb...> - 2005-05-27 17:57:06
|
is the myfaces/portal implementation use more than one jsf component on one page? if so, have you guys seen an y issues using multiple jsfs on one portal page? i'm having problems using the RI JSF with Jboss Portal with multiple JSFs on one portal page... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3879294#3879294 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3879294 |
From: <roy...@jb...> - 2005-05-27 18:16:28
|
I will test the jsf-ri, but i am not hopeful at this point. We are having problems deploying jsf/myfaces on AS4.0.2 period, let alone inside portlets. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3879296#3879296 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3879296 |
From: patrickdalla <do-...@jb...> - 2005-10-06 02:23:38
|
Hi stan, I'm having some problems with MyFacesGenericPortlet implementation. First - I would like to specify an managed bean action to be executed when the portlet mode is changed or when window state is changed. Second - I would like to use navigation rules to specify which is the next viewId to render. The fromviewid of the navigation rule should be a wildcard such as "*". Third - The state of faces application should be persistent. In fact, when I enter edit mode, execute some faces actions and navigation, and come back to view mode, the view mode is displayed well. But, just after that, when I click maximize button the edit page I were before I enter the view mode is displayed. I'm trying to discover how to make such implementations. But if you've already solved this problems please send me the new release. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3899488#3899488 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3899488 |
From: the.marin <do-...@jb...> - 2006-02-03 09:01:59
|
Hello, i would like to know if the inputfileupload problem has been resolved. So i use a jetspeed portal with a webapps portlet. So the webapps view framework is JSF. My app server in Tomcat. I know that's not JBOSS but the problem is the same with the encodtype of the request and the filter which isn't execute... Do you found a solutions? Thanks a lot. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921411#3921411 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921411 |
From: <roy...@jb...> - 2006-02-04 15:26:50
|
Why aren't you asking this in the jetspeed list? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921663#3921663 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921663 |
From: the.marin <do-...@jb...> - 2006-03-16 09:29:46
|
Because the problem is the same in JBoss or Jetspeed. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930595#3930595 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930595 |
From: patrickdalla <do-...@jb...> - 2006-03-16 12:36:04
|
Are you using MyFaces? The problem is with MyFaces implementation of HtmlFileUploadRenderer.java. The decode method doesn't consider PortletRequest. It only works with HttpServletRequest. I've implemented my own renderer to resolve these problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930641#3930641 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930641 |