facebook

JSF Designer not working

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #271080 Reply

    Russ
    Member

    Here is my situation involving JSF and ME 5.5.1GA:

    1. We have a JSF project which was not created with ME. When we look at the *.faces file, the JSF Designer throws and exception about the content within the file.

    2. What I have done is stepped back and created a new Web project and added the JSF capability to it. I have dropped the *.faces file into the new project and the tool is still getting an error.

    Here is the stacktrace from the tool:

    
    java.lang.NullPointerException
        at com.genuitec.eclipse.webdesigner3.src.SourceEditSystem.getSourceDocument(SourceEditSystem.java:233)
        at com.genuitec.eclipse.webdesigner3.design.DesignEditSystem.synchronize(DesignEditSystem.java:164)
    

    When I go and check what editors I have associated with this type of file extension, there are none. Next, I associate the file with the following editors:

      MyEclipse Visual JSF Designer (default)
      MyEclipse Visual JSF Designer

    but I still was getting the errors.

    What I learned was the content types (*.jsf, *.faces) were not set with under the JSP content types.

    Windows->Preferences->General->Content Types->Text->JSP->JSF Page

    I hope this helps others!

    Cheers[/list]

    #271089

    Riyad Kalla
    Member

    Russ,
    Are things working for you now? It’s true that these extension types aren’t registered out of the box, because by default FacesServlet maps requested pages with the appropriate extension a page with the same name and a .jsp extension in the background.

    So if you want to change the default extension you do need to do some legwork as you did.

    #271103

    Russ
    Member

    Riyad:

    I have several new developers working in ME and we were getting the exception when we double clicked on the faces file using the out-of-the-box settings. We want to view the page using the JSF Designer within ME so I just changed some association and made them explicitly. It’s good to hear this is the way it should be setup….

    Russ

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: JSF Designer not working

You must be logged in to post in the forum log in