deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject [1/2] git commit: DELTASPIKE-289 add sample ClientWindowConfig
Date Fri, 17 May 2013 08:26:57 GMT
Updated Branches:
  refs/heads/master fa2d87485 -> fc063b934


DELTASPIKE-289 add sample ClientWindowConfig


Project: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/commit/1fe1191d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/tree/1fe1191d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/diff/1fe1191d

Branch: refs/heads/master
Commit: 1fe1191dcc823281c2e2f857c24f3ee5c610b206
Parents: fa2d874
Author: Mark Struberg <struberg@apache.org>
Authored: Fri May 17 08:07:46 2013 +0200
Committer: Mark Struberg <struberg@apache.org>
Committed: Fri May 17 10:25:08 2013 +0200

----------------------------------------------------------------------
 .../example/window/SampleClientWindowConfig.java   |   37 +++++++++++++++
 1 files changed, 37 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/blob/1fe1191d/deltaspike/examples/jsf-examples/src/main/java/org/apache/deltaspike/example/window/SampleClientWindowConfig.java
----------------------------------------------------------------------
diff --git a/deltaspike/examples/jsf-examples/src/main/java/org/apache/deltaspike/example/window/SampleClientWindowConfig.java
b/deltaspike/examples/jsf-examples/src/main/java/org/apache/deltaspike/example/window/SampleClientWindowConfig.java
new file mode 100644
index 0000000..69f573c
--- /dev/null
+++ b/deltaspike/examples/jsf-examples/src/main/java/org/apache/deltaspike/example/window/SampleClientWindowConfig.java
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.deltaspike.example.window;
+
+import javax.enterprise.inject.Specializes;
+import javax.faces.context.FacesContext;
+
+import org.apache.deltaspike.jsf.spi.scope.window.DefaultClientWindowConfig;
+
+/**
+ * A sample ClientWindowConfig
+ */
+@Specializes
+public class SampleClientWindowConfig extends DefaultClientWindowConfig
+{
+    @Override
+    public ClientWindowRenderMode getClientWindowRenderMode(FacesContext facesContext)
+    {
+        return ClientWindowRenderMode.CLIENTWINDOW;
+    }
+}


Mime
View raw message