I'm working now at JSF 2.2 portlet project for WebSphere 8.5 using Primefaces 5.2. This time I have a problem with primefaces fileupload component. After searching for solution I found that the primefaces fileupload component doesn't work in WebSphere Portal, because IBM jsf portlet bridge doesn't support file uploading.
Can anyone help me to resolve this issue?
I cannot change my project to use another framework, because the 95% of project already is done and I didn't know about this problem at the beginning of project.
If it is not possible, then is there any way to uploading a file within my project?
If it is possible, please, give me solution preferably with detailed documentation.
Thanks.
Related
WebSphere v9.0.0.2 full profile does not provide anymore JSF v1.2 support it seems
Q: What about "legacy" apps that are written in JSF v1.2 + facelets (facelets was not part of the JSF standard at this time), can they be deployed to WAS v9.0 or are we stuck to WAS v8.5.5?
I didn't find a way in the doc to deploy a JSF v1.2 app on WAS v9.0 and my many tries were unsuccessful (problems with jar jsf-facelets.jar amongst other problems)
Q: Is there a workaround for deploying such apps on WAS v9.0?
We need also to deploy sucha apps on Liberty v16.0.0.4...
The best option will be to migrate your application to support JSF 2.2, which shouldn't be terribly difficult. There is some IBM documentation here for migrating your application from JSF 1.2 to JSF 2.0. Since your application already uses Facelets, however, you should be able to migrate your app via configuration changes; the instructions in this answer will probably be more helpful.
It is also possible to configure WebSphere to use a third party JSF provider - in that case, you could provide your own version of JSF 1.2 for your application. Documentation for that is here
Instructions for providing a custom JSF implementation:
Add the third-party listener to the web.xml file.
Add the third-party JSF implementation Java™ archive (JAR) files and its required dependant JAR files to the application as an isolated shared library and associate it with your application:
Move the JSF JAR files and all third-party libraries referenced by the JSF JAR files and UI component plug-ins (for example, PrimeFaces) to a directory outside of the application.
Create the isolated shared library. See topic Creating shared libraries for information about how to create the shared library.
Ensure that the classloader is set to PARENT_FIRST, the default value. To view the current configuration in the administrative console panel, click Applications > Application Types > WebSphere enterprise applications > application_name > Class loading and update detection.
I'm looking for some tutorials about portlet in internet, but i can't find a good one. I need to migrate a portlet deployed in websphere 6 to jboss 7, i have some questions about it and i hope you can help me
is it possible migrate a portlet from websphere to jboss 7? I understand that you need a portlet container and i can't find that reference in jboss 7
I found in jboss page a project called GateIn, that looks like be a portlet container, is this correct?
A portlet developed in websphere can migrate to other application server without modification in your code?
None of my co-workers know about portlet, and because the few examples in internet, i think this is a almost deprecated solution, is this correct?
thanks!
1) Yes. Portlets are defined in a JSR specification (v1 is JR-168 and v2 ios JSR-286). Which means as long you have a portlet that complies with spec, you should be able to move it to any portlet container that complies with the spec.
2) Yes, GateIn is a portlet container.
3) As long as the portlet isn't calling any WebSphere specific API calls, you should be able to move it to another portlet container.
4) Portlets are far from deprecated. There are multiple portlet containers (WebSphere Portal, Liferay, GateIn and still a few more). Many of these containers still receive frequent updates and are being deployed for new websites.
There should be a sufficient amount of tutorials / discussion around the web if that's what you mean by "examples". Even looking on SO, you can find new portlet questions.
1- Yes this is possible, the only requirement you have is that your portlet should be a JSR168/286 compliant ().
2- Yes gatein is the eXo&Jboss Portal including a Portlet Container.
3- Yes, if it is a JSR 168/286 compliant portlet and does not depend on a Websphere API
4- No, there are many products using Portlet technologies like Gatein, eXo Platform or Liferay
Here are some portlet samples that could help you https://github.com/gatein/gatein-portal/tree/3.5.x/examples/portlets
I developped an application (spring, hibernate) and i must convert it to liferay Project
how i can do it?
please could you help me
thank you.
A solution would be to build your application using Spring Portlet MVC, the Portlet version of Spring MVC. Then you will be able to deploy your application as a Portlet on Liferay.
Spring hibernate and liferay have nothing in common.
Spring and hibernate are frameworks : one for managing bean, other for database mapping (orm).
Liferay is a portal.
So you can't migrate automatically a project to liferay.
BUT, you can :
integrate your project using social widgets into a liferay portal
if your project have some standard portlets, you should have no problem to copy them in a liferay environment
for other case, you will need to rewrite your code to adapt to liferay api
I wrote a simple spring mvc portlet and I copied to "deploy" in liferay it is not automatically getting deployed to tomcat's webapp folder.
Further it is deploying only when the tomcat is restarted.
Also the portal having the spring mvc portlet is not automatically refreshed with the new content.
I had to remove it and add it again.
I tried with a simple portlet app and everything happens automatically by default.
Can you tell me what I am missing here in spring mvc portlet app.
Any suggestions would be helpful..
This link from liferay forum might help you.
Just check if the property auto.deploy.interval=0 or auto.deploy.enabled=false is not set.
am very new to java ee and am trying to develop an app with JSF. I tried to define my own flow definition "language" 'chuckles' when i realised there had to be an enterprise class plugin out there for the purpose. With the help of google, i then stumbled upon Spring Web Flow and the specs are exactly what i need. I am using NetBeans 7.0 and Glassfish 3.1. Now problem is i have spent two full days trying to figure out how configure the vrious components to work together. I downloaded spring-webflow-2.3.0.RELEASE. I am stuck on the next step. The netbeans 7 i have comes bundled with Spring Framework 3.0.2.RELEASE and Spring Web MVC 3.0.2.RELEASE.
If anyone knows of a good basic guideline on how to configure spring webflow to work with JSF in netbeans, please help me out. Hope i did not sound too stupid.
regards,