Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-2312

Prevent getLabel() method from being generated in InputFileBase.java for bridge:inputFile

    Details

      Description

      Currently when the alloy-generator is run in the bridge-impl Maven module, it generates the following method:

      	@Override
      	public String getLabel() {
      
      		String label = super.getLabel();
      
      		if (label == null) {
      
      			javax.faces.context.FacesContext facesContext = javax.faces.context.FacesContext.getCurrentInstance();
      
      			if (facesContext.getCurrentPhaseId() == javax.faces.event.PhaseId.PROCESS_VALIDATIONS) {
      				label = com.liferay.faces.util.component.ComponentUtil.getComponentLabel(this);
      			}
      		}
      
      		return label;
      	}
      

      However this causes a compile failure since liferay-faces-bridge-api.jar does not depend on liferay-faces-bridge-impl.jar.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                liferay-faces-2.1.5-ga6
                liferay-faces-2.2.5-ga6
                liferay-faces-3.0.5-legacy-ga6
                liferay-faces-3.0.5-ga6
                liferay-faces-3.1.5-ga6
                liferay-faces-3.2.5-ga6
                liferay-faces-4.2.5-ga6