blob: de48b6b18f620287d4ebcb3c7a25e0d9c3033771 [file] [log] [blame]
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
* 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.
-->
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition template="/WEB-INF/templates/layout.xhtml">
<ui:define name="title">CODI JSF 2.0 Client Side WindowHandler Demo</ui:define>
<ui:define name="content">
<h1 style="color:red">Dev-Demo (purpose: only for tests during development)</h1>
<p>
This example shows you the powerful functions of the new
client side window handler.
</p>
<p>
It determines the identity of a browsers window or tab by
using the <b>window.name</b> to hold a unique identifier.
This windowId will be transfered to the server with a small
JavaScript page which gets served upfront to the original
page. You don't even need to add the windowId parameter
to the URL!
</p>
<p>
The current windowId is: <h:outputText value="#{currentWindowContext.id}"/><br/><br/>
</p>
<h:form>
<h:commandLink value="next" action="next"/>
</h:form>
<h:outputText value="#{conversationDemoBean1.value}"/><br/>
<h:link value="ViewAccessScoped example" outcome="viewAccessBeanPage.xhtml"/><br/>
<h:outputLink value="noCodiPage.xhtml">Page without Codi scoped beans</h:outputLink><br/>
<h:outputLink value="listsample/sampleList.xhtml">List sample</h:outputLink>
<h:messages globalOnly="true"/>
</ui:define>
</ui:composition>
</html>