You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by st...@apache.org on 2012/05/14 18:01:09 UTC

svn commit: r1338265 - /myfaces/extensions/cdi/trunk/examples/jsf-playground/clientside_windowhandler_jsf20/src/main/java/org/apache/myfaces/examples/jsf20/config/SampleClientConfig.java

Author: struberg
Date: Mon May 14 16:01:08 2012
New Revision: 1338265

URL: http://svn.apache.org/viewvc?rev=1338265&view=rev
Log:
EXTCDI-285 enable a sample ClientConfig

this demonstrates how to set the bgcolor on the intermediate
windowhandler.html page

Added:
    myfaces/extensions/cdi/trunk/examples/jsf-playground/clientside_windowhandler_jsf20/src/main/java/org/apache/myfaces/examples/jsf20/config/SampleClientConfig.java   (with props)

Added: myfaces/extensions/cdi/trunk/examples/jsf-playground/clientside_windowhandler_jsf20/src/main/java/org/apache/myfaces/examples/jsf20/config/SampleClientConfig.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/examples/jsf-playground/clientside_windowhandler_jsf20/src/main/java/org/apache/myfaces/examples/jsf20/config/SampleClientConfig.java?rev=1338265&view=auto
==============================================================================
--- myfaces/extensions/cdi/trunk/examples/jsf-playground/clientside_windowhandler_jsf20/src/main/java/org/apache/myfaces/examples/jsf20/config/SampleClientConfig.java (added)
+++ myfaces/extensions/cdi/trunk/examples/jsf-playground/clientside_windowhandler_jsf20/src/main/java/org/apache/myfaces/examples/jsf20/config/SampleClientConfig.java Mon May 14 16:01:08 2012
@@ -0,0 +1,39 @@
+/*
+ * 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.myfaces.examples.jsf20.config;
+
+import javax.enterprise.inject.Specializes;
+import javax.faces.bean.SessionScoped;
+
+import org.apache.myfaces.extensions.cdi.jsf.api.config.ClientConfig;
+
+/**
+ * Sample of a specialized ClientConfig to tweak the background color
+ * of the intermediate page.
+ */
+@Specializes
+@SessionScoped
+public class SampleClientConfig extends ClientConfig
+{
+    @Override
+    public String getBodyAttributes()
+    {
+        return "bgcolor=\"#cccccc\"";
+    }
+}

Propchange: myfaces/extensions/cdi/trunk/examples/jsf-playground/clientside_windowhandler_jsf20/src/main/java/org/apache/myfaces/examples/jsf20/config/SampleClientConfig.java
------------------------------------------------------------------------------
    svn:eol-style = native