Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.0.0-ga1, 3.1.0-ga1
-
Component/s: liferay-faces-bridge
-
Labels:None
-
Similar Issues:
Description
After developing support for ace:fileEntry, p:fileUpload, and rich:fileUpload in the bridge, it became clear that the bridge's UploadedFile interface was in need of refactoring.
1) Need to align better with the Servlet 3.0 javax.servlet.http.Part interface:
http://docs.oracle.com/javaee/6/api/javax/servlet/http/Part.html
2) Need to align with the ICEfaces FileInfo class
3) Need to align with the PrimeFaces UploadedFile interface
4) Need to align with the RichFaces UploadedFile interface
5) Need to align with the Commons-FileUpload DiskFileItem class
6) Setter methods generally don't belong in interfaces like UploadedFile, especially since it's meant to have a read-only type of encapsulation.
7) Refactor getAttribute(String) and setAttribute(String, Object) to a single getAttributes() method so that it can be used better via EL

Git Commits:
[master cb09fee]
[3.0.x bd46847]