Skip to content

Commit

Permalink
added a b:selectMultiMenu demo
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanrauh committed Jul 11, 2015
1 parent 1d180f4 commit 0dc9087
Show file tree
Hide file tree
Showing 40 changed files with 3,149 additions and 0 deletions.
8 changes: 8 additions & 0 deletions AddingPrimeFaces5.3/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/target/
rebel.xml
.metadata
.settings
dist
.faces-config.xml.jsfdia
.project
.classpath
9 changes: 9 additions & 0 deletions AddingPrimeFaces5.3/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# BootsFaces-Examples: PanelGrid, PrimeFaces and AngularFaces
This demo shows demonstrates some of the features covered in the "What's new in PrimeFaces 5.2" article on http://www.beyondJava.net.

Run this as a Tomcat application. The URL to start typically is http://localhost:8080/AddingPrimeFaces52/index.jsf

Tested on:
<ul>
<li>Tomcat 8.0 / Oracle Mojarra 2.2.10</li>
</ul>
116 changes: 116 additions & 0 deletions AddingPrimeFaces5.3/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.beyondjava</groupId>
<artifactId>AddingPrimeFaces52</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>war</packaging>
<name>AddingPrimeFaces52</name>
<url>http://www.beyondjava.net</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<repositories>
<repository>
<id>prime-repo</id>
<name>PrimeFaces Maven Repository</name>
<url>http://repository.primefaces.org</url>
<layout>default</layout>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>net.bootsfaces</groupId>
<artifactId>bootsfaces</artifactId>
<version>0.6.7-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.omnifaces</groupId>
<artifactId>omnifaces</artifactId>
<version>1.10</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>5.2.RC3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.primefaces.themes</groupId>
<artifactId>bootstrap</artifactId>
<version>1.0.10</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>de.beyondjava</groupId>
<artifactId>angularFaces-core</artifactId>
<version>2.1.5</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>ApplicationServer</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<dependencies>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.2.11</version>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>Mojarra</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<dependencies>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.2.11</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>2.2.11</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>MyFaces</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<dependencies>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-api</artifactId>
<version>2.2.7</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-impl</artifactId>
<version>2.2.7</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>
</profiles>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package de.beyondjava.bootsfaces.examples;

import java.util.Date;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

@ViewScoped
@ManagedBean
public class Person {

private String firstName;
private String lastName;
private Date birthdate;
public Date getBirthdate() {
return birthdate;
}
public void setBirthdate(Date birthdate) {
this.birthdate = birthdate;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
/*
* Copyright 2012 OmniFaces.
*
* Licensed 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.omnifaces.component.output.cache;

import java.io.Serializable;

/**
* Interface that abstracts a simple get and put operation for a concrete cache implementation.
* <p>
* Note that this takes Strings for both key and value since it's not intended as a general cache solution, but is
* something specific for the {@link Cache} component which caches rendered output.
*
* @since 1.1
* @author Arjan Tijms
*
*/
public interface Cache extends Serializable {

/**
* Gets a value from the cache
*
* @param key
* the key under which a value was previously stored
* @return The previously stored value, or null if no such value exists
*/
String get(String key);

/**
* Gets a value from the cache
*
* @param key
* the key under which a value was previously stored
* @return The previously stored value, or null if no such value exists
*/
Object getObject(String key);

/**
* Stores a value in the cache
*
* @param key
* the key under which a value is to be stored
* @param value
* the value that is to be stored
*/
void put(String key, String value);

/**
* Stores a value in the cache
*
* @param key
* the key under which a value is to be stored
* @param value
* the value that is to be stored
*/
void putObject(String key, Object value, int timeToLive);

/**
* Stores a value in the cache
*
* @param key
* the key under which a value is to be stored
* @param value
* the value that is to be stored
* @param timeToLive
* the amount of time in seconds for which the cached value is valid from the time it's being added to
* the cache. It's provider specific whether the cache implementation will actually remove (evict) the
* entry after this time has elapsed or will only perform a check upon accessing the cache entry.
* Whatever method the implementation chooses; after this time is elapsed a call to
* {@link Cache#get(String)} should return null.
*/
void put(String key, String value, int timeToLive);

/**
* Gets a named attribute from the cache entry identified by the key parameter.
* <p>
* This in effect implements a 2-level multi-map, which the single main value stored in the first level, and the
* optional attributes stored in the second level.
*
* @param key
* key that identifies the first level cache entry
* @param name
* name of the attribute in the second level
* @return the value associated with the {key, name} hierarchy.
* @since 1.2
*/
Object getAttribute(String key, String name);

/**
* Stores a named attribute in the cache entry identified by the key parameter.
*
* @param key
* key that identifies the first level cache entry
* @param name
* name of the attribute in the second level
* @param value
* value associated with the {key, name} hierarchy.
* @param timeToLive
* the amount of time in seconds for which the cached value is valid. Only used when there's no first
* level entry yet. See {@link Cache#putAttribute(String, String, Object, int)}
* @since 1.2
*/
void putAttribute(String key, String name, Object value, int timeToLive);

/**
* Removes a value from the cache
*
* @param key
* the key under which a value is to be stored
*/
void remove(String key);
}
Loading

0 comments on commit 0dc9087

Please sign in to comment.