MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
jtichava
Post subject: Java with embedded Jetty - not working autocomplete for JSF  PostPosted: Feb 14, 2012 - 09:22 AM



Joined: Jun 08, 2011
Posts: 5

We are using embedded Jetty + JSF 2 + Primefaces 3 in one of our Java project, so common JAR is a result of this build. We had migrated from Eclipse projects to Maven and there is a problem with this particular project. Build is OK, works fine, but MyEclipse doesn’t know, that this is web project, so there is no autocomplete for JSF and Primefaces components and JSF Beans.

Is there a way, how to setup Maven project with embedded Jetty to work properly with MyEclipse including autocomplete?

Thanks.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Feb 15, 2012 - 12:04 PM



Joined: Nov 11, 2010
Posts: 2148

jtichava ,

I have escalated it to a dev team member. They will get back to you.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
support-tony
Post subject:   PostPosted: Feb 16, 2012 - 06:55 AM



Joined: Mar 09, 2011
Posts: 713

jtichava,

If the maven project is a web project, it should have been recognized as such, on import. However, to get content assist on faces files, you will have to add web capability and jsf capability to the project. Right click on the project, go to the MyEclipse sub-menu and select Add Web Capabilities. If you don't want the wizard to add anything to your project, you should be able to deselect most of the options, or later remove any files or dependencies that were added. Once you have web capabilities, use the same route to add JSF capabilities; again, you can avoid the wizard adding libraries to your project.

If this is not appropriate for your project please let us have more information about the project (such as how it was created and how it is structured, the pom might be useful). Also, please provide the MyEclipse installation details (to get these, go to MyEclipse->Installation Summary->Installation Details).

Please let us know how this works for you.

_________________
Tony
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
jtichava
Post subject:   PostPosted: Feb 16, 2012 - 11:34 AM



Joined: Jun 08, 2011
Posts: 5

Tony,

Thanks for quick answer.
It’s not web project. It’s Java project, because we’re using embedded Jetty, so, we build JAR archive and launch it as “common” Java application (with some class with main(…)).

I figured out it before my first post: import Maven project, then add Web Project Capabilities, then JSF Capabilities and then revert changes from git and everything works fine, but I was hoping that there is a “clever” way how to do this. So, yes, your instructions work too.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-tony
Post subject:   PostPosted: Feb 17, 2012 - 04:30 AM



Joined: Mar 09, 2011
Posts: 713

jtichava,

Thanks for getting back to us, and for the installation details. There is another way to do it. Right click on the project and select Properties. Go to "Project Facets". If you see a link about converting to a faceted project, click it. Then you can add the facets "Dynamic Web Module" and "JavaServer Faces". The latter has further configuration when first selected (a link at the bottom) but I don't think you need that. Now click Apply or OK and you should be all set.

I hadn't thought about this possibility before but it appears to work.

_________________
Tony
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
jtichava
Post subject:   PostPosted: Feb 21, 2012 - 12:44 PM



Joined: Jun 08, 2011
Posts: 5

Tony,

ok, thanks for help.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-tony
Post subject:   PostPosted: Feb 22, 2012 - 04:54 AM



Joined: Mar 09, 2011
Posts: 713

jtichava,

No problem, I'm glad to be of service.

_________________
Tony
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits