Permalink
Browse files

java8 update: make use of @repeatable

  • Loading branch information...
BalusC committed Apr 16, 2017
1 parent 4dce0ec commit feae34a7daa73b88179d394bb5c12b642dad4918
@@ -38,7 +38,6 @@
import java.util.List;
import java.util.Map;
import javax.faces.application.ResourceDependencies;
import javax.faces.application.ResourceDependency;
import javax.faces.component.FacesComponent;
import javax.faces.component.UIComponent;
@@ -244,10 +243,8 @@
* @since 2.5
*/
@FacesComponent(InputFile.COMPONENT_TYPE)
@ResourceDependencies({
@ResourceDependency(library="javax.faces", name="jsf.js", target="head"), // Required for jsf.ajax.request.
@ResourceDependency(library="omnifaces", name="omnifaces.js", target="head") // Specifically inputfile.js.
})
@ResourceDependency(library="javax.faces", name="jsf.js", target="head") // Required for jsf.ajax.request.
@ResourceDependency(library="omnifaces", name="omnifaces.js", target="head") // Specifically inputfile.js.
public class InputFile extends HtmlInputFile {
// Public constants -----------------------------------------------------------------------------------------------
@@ -21,7 +21,6 @@
import java.io.IOException;
import java.util.regex.Pattern;
import javax.faces.application.ResourceDependencies;
import javax.faces.application.ResourceDependency;
import javax.faces.component.FacesComponent;
import javax.faces.component.UICommand;
@@ -95,10 +94,8 @@
*/
@Deprecated
@FacesComponent(CommandScript.COMPONENT_TYPE)
@ResourceDependencies({
@ResourceDependency(library="javax.faces", name="jsf.js", target="head"), // Required for jsf.ajax.request.
@ResourceDependency(library="omnifaces", name="omnifaces.js", target="head") // Specifically util.js.
})
@ResourceDependency(library="javax.faces", name="jsf.js", target="head") // Required for jsf.ajax.request.
@ResourceDependency(library="omnifaces", name="omnifaces.js", target="head") // Specifically util.js.
public class CommandScript extends UICommand {
// Public constants -----------------------------------------------------------------------------------------------
@@ -16,7 +16,6 @@
import javax.faces.component.FacesComponent;
import javax.faces.event.ComponentSystemEvent;
import javax.faces.event.ListenerFor;
import javax.faces.event.ListenersFor;
import javax.faces.event.PostAddToViewEvent;
import javax.faces.event.PostRestoreStateEvent;
@@ -53,10 +52,8 @@
*/
@FacesComponent(DeferredScript.COMPONENT_TYPE)
@ResourceDependency(library="omnifaces", name="omnifaces.js", target="head")
@ListenersFor({
@ListenerFor(systemEventClass=PostAddToViewEvent.class),
@ListenerFor(systemEventClass=PostRestoreStateEvent.class)
})
@ListenerFor(systemEventClass=PostAddToViewEvent.class)
@ListenerFor(systemEventClass=PostRestoreStateEvent.class)
public class DeferredScript extends ScriptFamily {
// Public constants -----------------------------------------------------------------------------------------------
@@ -20,7 +20,6 @@
import java.util.EnumSet;
import java.util.Set;
import javax.faces.application.ResourceDependencies;
import javax.faces.application.ResourceDependency;
import javax.faces.component.FacesComponent;
import javax.faces.component.UIComponent;
@@ -78,10 +77,8 @@
* @see ScriptFamily
*/
@FacesComponent(Highlight.COMPONENT_TYPE)
@ResourceDependencies({
@ResourceDependency(library="javax.faces", name="jsf.js", target="head"), // Required for jsf.ajax.addOnEvent.
@ResourceDependency(library="omnifaces", name="omnifaces.js", target="head") // Specifically highlight.js.
})
@ResourceDependency(library="javax.faces", name="jsf.js", target="head") // Required for jsf.ajax.addOnEvent.
@ResourceDependency(library="omnifaces", name="omnifaces.js", target="head") // Specifically highlight.js.
public class Highlight extends OnloadScript {
// Public constants -----------------------------------------------------------------------------------------------
@@ -27,7 +27,6 @@
import javax.faces.context.ResponseWriterWrapper;
import javax.faces.event.ComponentSystemEvent;
import javax.faces.event.ListenerFor;
import javax.faces.event.ListenersFor;
import javax.faces.event.PostAddToViewEvent;
import javax.faces.event.PostRestoreStateEvent;
import javax.faces.event.PreRenderViewEvent;
@@ -59,10 +58,8 @@
* @see ScriptFamily
*/
@FacesComponent(OnloadScript.COMPONENT_TYPE)
@ListenersFor({
@ListenerFor(systemEventClass=PostAddToViewEvent.class),
@ListenerFor(systemEventClass=PostRestoreStateEvent.class)
})
@ListenerFor(systemEventClass=PostAddToViewEvent.class)
@ListenerFor(systemEventClass=PostRestoreStateEvent.class)
public class OnloadScript extends ScriptFamily implements SystemEventListener {
// Public constants -----------------------------------------------------------------------------------------------

0 comments on commit feae34a

Please sign in to comment.