Uploaded image for project: 'PUBLIC - Liferay IDE'
  1. PUBLIC - Liferay IDE
  2. IDE-1408

invalid edit.xhtml generated by new Liferay JSF Portlet wizard

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.1.0
    • Component/s: Wizards > JSF
    • Labels:
      None

      Description

      create another portlet as follows:
      right click -> New -> Liferay JSF Portlet
      Next
      Name: "parts"
      Display Name: Parts Portlet
      Title: Parts Portlet
      Portlet Modes: check "Edit"
      View Template: Liferay Faces Alloy
      Next
      Finish

      Expected results:
      the edit.xhtml file generated should look almost identical to the view.xhtml file generated by the new Liferay Plugin Project wizard. Maybe it should say "in edit mode" instead of "in view mode", but otherwise they should be identical.

      Actual results:
      The generated edit.xhtml file for the edit mode view is invalid xhtml.

      The incorrect portlet edit.xhtml is missing some tags and closing tags, and looks like this:

      <?xml version="1.0"?>
      
      <f:view
      	xmlns="http://www.w3.org/1999/xhtml"
      	xmlns:c="http://java.sun.com/jsp/jstl/core"
      	xmlns:f="http://java.sun.com/jsf/core"
      	xmlns:h="http://java.sun.com/jsf/html"
      	xmlns:ui="http://java.sun.com/jsf/facelets"
      	xmlns:aui="http://liferay.com/faces/aui"

      The correct edit.xhtml should look like the output when generating using new Liferay Plugin Project, something like this:

      <?xml version="1.0"?>
      
      <f:view
      	xmlns="http://www.w3.org/1999/xhtml"
      	xmlns:c="http://java.sun.com/jsp/jstl/core"
      	xmlns:f="http://java.sun.com/jsf/core"
      	xmlns:h="http://java.sun.com/jsf/html"
      	xmlns:ui="http://java.sun.com/jsf/facelets"
      	xmlns:aui="http://liferay.com/faces/aui"
      >
      	<h:head />
      	<h:body>
      		<h:outputText value="#{i18n['wab-hello-world']}" /> in edit mode.
      	</h:body>
      </f:view>

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 37 weeks, 5 days ago

                Packages

                Version Package
                2.1.0