Clean install of MyEclipse (as auto update had this problem)…
There are TWO JSF visual designers listed in the menu.. both with the same name.
Neither can open this file (get a null pointer exception).
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<ui:composition xmlns:c=”http://java.sun.com/jstl/core” xmlns:ui=”http://java.sun.com/jsf/facelets”
xmlns:f=”http://java.sun.com/jsf/core” xmlns:h=”http://java.sun.com/jsf/html”
xmlns:s=”http://jboss.com/products/seam/taglib”>
<br/>
<s:fragment rendered=”#{user.avatar.name == null}”>
<div class=”image_upload_image_area”>
<h:graphicImage value=”/images/no_image.png”/>
</div>
</s:fragment>
<s:fragment rendered=”#{user.avatar.name != null}”>
<div id=”reg_upload_image_area”>
<s:graphicImage value=”#{user.avatar.image}”/>
</div>
</s:fragment>
<!– ***********
Avatar Upload
*********** –>
<s:decorate id=”avatar_decorator” template=”../edit.xhtml”>
<ui:define name=”label”>
<h:outputText value=”#{messages.avatar}” />
</ui:define>
<ui:define name=”content”>
<div>
<s:fileUpload id=”avatar” data=”#{user.avatar.image}” accept=”images/png,images/jpg,images/gif”
contentType=”#{user.avatar.type}” fileName=”#{user.avatar.name}”/>
</div>
<div id=”reg_do_upload_button_area”>
<h:commandButton id=”uploadAttempt” action=”#{userRegistrationController.processAvatarUpload}”
value=”#{messages.general_button_upload_avatar}” type=”submit”>
</h:commandButton>
</div>
</ui:define>
<ui:define name=”hint”>
<s:formattedText value=”#{messages.avatar_upload_hint}” />
</ui:define>
</s:decorate>
</ui:composition>