diff --git a/booking-faces/src/main/webapp/WEB-INF/config/webmvc-config.xml b/booking-faces/src/main/webapp/WEB-INF/config/webmvc-config.xml index 963c48f..b15bf83 100644 --- a/booking-faces/src/main/webapp/WEB-INF/config/webmvc-config.xml +++ b/booking-faces/src/main/webapp/WEB-INF/config/webmvc-config.xml @@ -1,10 +1,9 @@ + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:faces="http://www.springframework.org/schema/faces" + xsi:schemaLocation=" + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd + http://www.springframework.org/schema/faces http://www.springframework.org/schema/faces/spring-faces-2.4.xsd"> diff --git a/primefaces-showcase/pom.xml b/primefaces-showcase/pom.xml new file mode 100644 index 0000000..f3a4355 --- /dev/null +++ b/primefaces-showcase/pom.xml @@ -0,0 +1,238 @@ + + + 4.0.0 + org.springframework.webflow.samples + primefaces-showcase + Spring Web Flow and PrimeFaces Showcase + war + 1.0.0-BUILD-SNAPSHOT + + + 1.5 + 3.2.1.RELEASE + 2.4.0.BUILD-SNAPSHOT + 3.1.3.RELEASE + 1.6.1 + + + + + + org.springframework + spring-webmvc + ${springframework-version} + + + commons-logging + commons-logging + + + + + org.springframework.webflow + spring-faces + ${springwebflow-version} + + + org.springframework.security + spring-security-core + ${springsecurity-version} + + + org.springframework + * + + + + + org.springframework.security + spring-security-config + ${springsecurity-version} + + + org.springframework + * + + + + + org.springframework.security + spring-security-web + ${springsecurity-version} + + + org.springframework + * + + + + + + org.slf4j + slf4j-api + ${org.slf4j-version} + + + org.slf4j + jcl-over-slf4j + ${org.slf4j-version} + runtime + + + org.slf4j + slf4j-log4j12 + ${org.slf4j-version} + runtime + + + log4j + log4j + 1.2.16 + runtime + + + + javax.inject + javax.inject + 1 + + + + javax.servlet + servlet-api + 2.5 + provided + + + javax.servlet.jsp + jsp-api + 2.1 + provided + + + javax.servlet + jstl + 1.2 + + + + com.sun.faces + jsf-api + 2.1.7 + + + com.sun.faces + jsf-impl + 2.1.7 + + + + org.primefaces + primefaces + 3.4.2 + + + + commons-fileupload + commons-fileupload + 1.2.1 + + + commons-io + commons-io + 1.4 + + + + javax.validation + validation-api + 1.0.0.GA + + + org.hibernate + hibernate-validator + 4.0.2.GA + + + + junit + junit + 4.7 + test + + + + + + + springsource + SpringSource Repository + http://repo.springsource.org/release + true + + + + jboss + JBoss Maven Release Repository + https://repository.jboss.org/nexus/content/repositories/releases + false + + + java.net + Java.net Repository for Maven + http://download.java.net/maven/2/ + false + + + primefaces + Prime Technology Maven Repository + http://repository.primefaces.org + default + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + ${java-version} + ${java-version} + + + + org.apache.maven.plugins + maven-eclipse-plugin + 2.8 + + true + false + 2.0 + + **/.svn/** + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + install + install + + sources + + + + + + org.codehaus.mojo + tomcat-maven-plugin + 1.0-beta-1 + + + + diff --git a/primefaces-showcase/src/main/java/org/springframework/samples/webflow/ajax/UserBean.java b/primefaces-showcase/src/main/java/org/springframework/samples/webflow/ajax/UserBean.java new file mode 100644 index 0000000..c99501c --- /dev/null +++ b/primefaces-showcase/src/main/java/org/springframework/samples/webflow/ajax/UserBean.java @@ -0,0 +1,54 @@ +package org.springframework.samples.webflow.ajax; + +import java.io.Serializable; + +import org.springframework.binding.message.MessageBuilder; +import org.springframework.util.StringUtils; +import org.springframework.webflow.execution.RequestContext; + +public class UserBean implements Serializable { + + private static final long serialVersionUID = 1L; + + private String firstName; + + private String lastName; + + public String createEmailSuggestion(RequestContext context) { + + boolean haveFirst = StringUtils.hasText(firstName); + boolean haveLast = StringUtils.hasLength(lastName); + + if (haveFirst && haveLast) { + return firstName + "." + lastName + "@fastmail.com"; + + } else if (haveFirst) { + return firstName + "@fastmail.com"; + + } else if (haveLast) { + return lastName + "@fastmail.com"; + + } else { + context.getMessageContext().addMessage( + new MessageBuilder().error().defaultText("Please enter a first or a last name of both!").build()); + return ""; + } + } + + public String getFirstName() { + return firstName; + } + + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + public String getLastName() { + return lastName; + } + + public void setLastName(String lastName) { + this.lastName = lastName; + } + +} diff --git a/primefaces-showcase/src/main/java/org/springframework/samples/webflow/autocomplete/FormBean.java b/primefaces-showcase/src/main/java/org/springframework/samples/webflow/autocomplete/FormBean.java new file mode 100644 index 0000000..5889685 --- /dev/null +++ b/primefaces-showcase/src/main/java/org/springframework/samples/webflow/autocomplete/FormBean.java @@ -0,0 +1,29 @@ +package org.springframework.samples.webflow.autocomplete; + +import java.io.Serializable; + +public class FormBean implements Serializable { + + private static final long serialVersionUID = 1L; + + private String value; + + private Person person; + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public Person getPerson() { + return person; + } + + public void setPerson(Person person) { + this.person = person; + } + +} diff --git a/primefaces-showcase/src/main/java/org/springframework/samples/webflow/autocomplete/Person.java b/primefaces-showcase/src/main/java/org/springframework/samples/webflow/autocomplete/Person.java new file mode 100644 index 0000000..3afbdd5 --- /dev/null +++ b/primefaces-showcase/src/main/java/org/springframework/samples/webflow/autocomplete/Person.java @@ -0,0 +1,26 @@ +package org.springframework.samples.webflow.autocomplete; + +import java.io.Serializable; + +public class Person implements Serializable { + + private static final long serialVersionUID = 1L; + + private long id; + + private String name; + + public Person(long id, String name) { + this.id = id; + this.name = name; + } + + public long getId() { + return id; + } + + public String getName() { + return name; + } + +} diff --git a/primefaces-showcase/src/main/java/org/springframework/samples/webflow/autocomplete/PersonConverter.java b/primefaces-showcase/src/main/java/org/springframework/samples/webflow/autocomplete/PersonConverter.java new file mode 100644 index 0000000..4003126 --- /dev/null +++ b/primefaces-showcase/src/main/java/org/springframework/samples/webflow/autocomplete/PersonConverter.java @@ -0,0 +1,44 @@ +package org.springframework.samples.webflow.autocomplete; + +import java.util.ArrayList; +import java.util.List; + +import javax.faces.component.UIComponent; +import javax.faces.context.FacesContext; +import javax.faces.convert.Converter; +import javax.faces.convert.FacesConverter; + +import org.springframework.util.StringUtils; + +@FacesConverter(value="personConverter") +public class PersonConverter implements Converter { + + private static List cache = new ArrayList(); + + static { + cache.add(new Person(0L, "Jamie Carr")); + cache.add(new Person(1L, "Jean Cobbs")); + cache.add(new Person(2L, "John Howard")); + cache.add(new Person(3L, "John Mudra")); + cache.add(new Person(4L, "Julia Webber")); + } + + public Object getAsObject(FacesContext context, UIComponent component, String value) { + if (StringUtils.hasText(value)) { + for (Person p : cache) { + if (p.getName().equals(value)) { + return p; + } + } + } + return null; + } + + public String getAsString(FacesContext context, UIComponent component, Object value) { + if (value != null) { + return String.valueOf(((Person) value).getName()); + } + return null; + } + +} diff --git a/primefaces-showcase/src/main/java/org/springframework/samples/webflow/autocomplete/PersonService.java b/primefaces-showcase/src/main/java/org/springframework/samples/webflow/autocomplete/PersonService.java new file mode 100644 index 0000000..fb42817 --- /dev/null +++ b/primefaces-showcase/src/main/java/org/springframework/samples/webflow/autocomplete/PersonService.java @@ -0,0 +1,39 @@ +package org.springframework.samples.webflow.autocomplete; + +import java.util.ArrayList; +import java.util.List; + +import org.springframework.stereotype.Service; + +@Service +public class PersonService { + + private static List cache = new ArrayList(); + + static { + cache.add(new Person(0L, "Jamie Carr")); + cache.add(new Person(1L, "Jean Cobbs")); + cache.add(new Person(2L, "John Howard")); + cache.add(new Person(3L, "John Mudra")); + cache.add(new Person(4L, "Julia Webber")); + } + + public List suggestNames(String text) { + List results = new ArrayList(); + for (int i = 0; i < 10; i++) { + results.add(text + i); + } + return results; + } + + public List suggestPeople(String text) { + List results = new ArrayList(); + for (Person p : cache) { + if (p.getName().toLowerCase().startsWith(text.toLowerCase())) { + results.add(p); + } + } + return results; + } + +} diff --git a/primefaces-showcase/src/main/java/org/springframework/samples/webflow/jsf/FacesHelper.java b/primefaces-showcase/src/main/java/org/springframework/samples/webflow/jsf/FacesHelper.java new file mode 100644 index 0000000..6ee95c5 --- /dev/null +++ b/primefaces-showcase/src/main/java/org/springframework/samples/webflow/jsf/FacesHelper.java @@ -0,0 +1,21 @@ +package org.springframework.samples.webflow.jsf; + +import javax.faces.context.FacesContext; + +import org.springframework.stereotype.Component; + +@Component +public class FacesHelper { + + /** + * This method can be used in a Facelets View to render a box around conditionally. + * Note that this is only necessary with vanilla JSF. With PrimeFaces you can use + * or . + * + * @return true if there are messages to display + */ + public boolean isError() { + return FacesContext.getCurrentInstance().getMessages().hasNext(); + } + +} diff --git a/primefaces-showcase/src/main/java/org/springframework/samples/webflow/modal/ModalAction.java b/primefaces-showcase/src/main/java/org/springframework/samples/webflow/modal/ModalAction.java new file mode 100644 index 0000000..fdb240f --- /dev/null +++ b/primefaces-showcase/src/main/java/org/springframework/samples/webflow/modal/ModalAction.java @@ -0,0 +1,16 @@ +package org.springframework.samples.webflow.modal; + +import javax.faces.application.FacesMessage; +import javax.faces.context.FacesContext; + +import org.springframework.stereotype.Component; + +@Component +public class ModalAction { + + public void addInfoMessage(String summary) { + FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, summary, null); + FacesContext.getCurrentInstance().addMessage(null, message); + } + +} diff --git a/primefaces-showcase/src/main/java/org/springframework/samples/webflow/poller/CurrentTimeBean.java b/primefaces-showcase/src/main/java/org/springframework/samples/webflow/poller/CurrentTimeBean.java new file mode 100644 index 0000000..d6ed60b --- /dev/null +++ b/primefaces-showcase/src/main/java/org/springframework/samples/webflow/poller/CurrentTimeBean.java @@ -0,0 +1,14 @@ +package org.springframework.samples.webflow.poller; + +import java.util.Date; + +import org.springframework.stereotype.Component; + +@Component +public class CurrentTimeBean { + + public Date getTime() { + return new Date(); + } + +} diff --git a/primefaces-showcase/src/main/java/org/springframework/samples/webflow/upload/FileUploadController.java b/primefaces-showcase/src/main/java/org/springframework/samples/webflow/upload/FileUploadController.java new file mode 100644 index 0000000..7afd2af --- /dev/null +++ b/primefaces-showcase/src/main/java/org/springframework/samples/webflow/upload/FileUploadController.java @@ -0,0 +1,22 @@ +package org.springframework.samples.webflow.upload; + +import javax.faces.application.FacesMessage; +import javax.faces.context.FacesContext; + +import org.primefaces.event.FileUploadEvent; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.stereotype.Component; + +@Component +public class FileUploadController { + + private Logger logger = LoggerFactory.getLogger(FileUploadController.class); + + public void handleFileUpload(FileUploadEvent event) { + logger.info("Uploaded: {}", event.getFile().getFileName()); + FacesMessage msg = new FacesMessage("Succesful", event.getFile().getFileName() + " is uploaded."); + FacesContext.getCurrentInstance().addMessage(null, msg); + } + +} diff --git a/primefaces-showcase/src/main/java/org/springframework/samples/webflow/validation/Account.java b/primefaces-showcase/src/main/java/org/springframework/samples/webflow/validation/Account.java new file mode 100644 index 0000000..bd8f3de --- /dev/null +++ b/primefaces-showcase/src/main/java/org/springframework/samples/webflow/validation/Account.java @@ -0,0 +1,49 @@ +package org.springframework.samples.webflow.validation; + +import java.io.Serializable; +import java.util.Date; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Past; + +import org.hibernate.validator.constraints.NotEmpty; + +public class Account implements Serializable { + + private static final long serialVersionUID = 1L; + + @NotEmpty + private String firstName; + + @NotEmpty + private String lastName; + + @Past + @NotNull + private Date dateOfBirth; + + public String getFirstName() { + return firstName; + } + + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + public String getLastName() { + return lastName; + } + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + public Date getDateOfBirth() { + return dateOfBirth; + } + + public void setDateOfBirth(Date dateOfBirth) { + this.dateOfBirth = dateOfBirth; + } + +} diff --git a/primefaces-showcase/src/main/java/org/springframework/samples/webflow/validation/Reservation.java b/primefaces-showcase/src/main/java/org/springframework/samples/webflow/validation/Reservation.java new file mode 100644 index 0000000..7a95977 --- /dev/null +++ b/primefaces-showcase/src/main/java/org/springframework/samples/webflow/validation/Reservation.java @@ -0,0 +1,76 @@ +package org.springframework.samples.webflow.validation; + +import java.io.Serializable; +import java.util.Date; + +import org.springframework.binding.message.MessageBuilder; +import org.springframework.binding.message.MessageContext; +import org.springframework.binding.validation.ValidationContext; + +public class Reservation implements Serializable { + + private static final long serialVersionUID = 1L; + + private Date startDate; + + private Date endDate; + + private boolean stateValidationEnabled; + + private boolean globalValidationEnabled; + + public void validateEdit(ValidationContext validationContext) { + if (stateValidationEnabled && startDate.after(endDate)) { + MessageContext messageContext = validationContext.getMessageContext(); + messageContext.addMessage(new MessageBuilder().error().code("startDateBeforeEndDate.viewState").build()); + } + } + + public void validate(ValidationContext validationContext) { + if (globalValidationEnabled && startDate.after(endDate)) { + MessageContext messageContext = validationContext.getMessageContext(); + messageContext.addMessage(new MessageBuilder().error().code("startDateBeforeEndDate.global").build()); + } + } + + public boolean validateDates(MessageContext messageContext) { + if (startDate.after(endDate)) { + messageContext.addMessage(new MessageBuilder().error().code("startDateBeforeEndDate.validationMethod").build()); + return false; + } + return true; + } + + public Date getStartDate() { + return startDate; + } + + public void setStartDate(Date startDate) { + this.startDate = startDate; + } + + public Date getEndDate() { + return endDate; + } + + public void setEndDate(Date endDate) { + this.endDate = endDate; + } + + public boolean isStateValidationEnabled() { + return stateValidationEnabled; + } + + public void setStateValidationEnabled(boolean stateValidationEnabled) { + this.stateValidationEnabled = stateValidationEnabled; + } + + public boolean isGlobalValidationEnabled() { + return globalValidationEnabled; + } + + public void setGlobalValidationEnabled(boolean globalValidationEnabled) { + this.globalValidationEnabled = globalValidationEnabled; + } + +} diff --git a/primefaces-showcase/src/main/resources/JsfMessageResources.properties b/primefaces-showcase/src/main/resources/JsfMessageResources.properties new file mode 100644 index 0000000..497baf8 --- /dev/null +++ b/primefaces-showcase/src/main/resources/JsfMessageResources.properties @@ -0,0 +1,6 @@ +# +# Overrides default pattern in JSF for Bean Validation messages from "{0}" to "{1} {0}" where +# the {0} is the Bean Validation constraint message (e.g. "may not be empty") and {1} is the +# field name or the field label if defined (e.g. "First name"). +# +javax.faces.validator.BeanValidator.MESSAGE={1} {0} \ No newline at end of file diff --git a/primefaces-showcase/src/main/resources/ValidationMessages.properties b/primefaces-showcase/src/main/resources/ValidationMessages.properties new file mode 100644 index 0000000..6d06929 --- /dev/null +++ b/primefaces-showcase/src/main/resources/ValidationMessages.properties @@ -0,0 +1,4 @@ +# +# Overrides the default message for the @NotNull constraint. +# +javax.validation.constraints.NotNull.message=must be provided \ No newline at end of file diff --git a/primefaces-showcase/src/main/resources/log4j.xml b/primefaces-showcase/src/main/resources/log4j.xml new file mode 100644 index 0000000..7c0fb13 --- /dev/null +++ b/primefaces-showcase/src/main/resources/log4j.xml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/faces-config.xml b/primefaces-showcase/src/main/webapp/WEB-INF/faces-config.xml new file mode 100644 index 0000000..a72b7fa --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/faces-config.xml @@ -0,0 +1,11 @@ + + + + + JsfMessageResources + + + diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/ajax-jsf/flow.xml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/ajax-jsf/flow.xml new file mode 100644 index 0000000..ddfb30f --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/ajax-jsf/flow.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/ajax-jsf/view.xhtml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/ajax-jsf/view.xhtml new file mode 100644 index 0000000..6b3161e --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/ajax-jsf/view.xhtml @@ -0,0 +1,51 @@ + + + +JSF 2 ajax with commandButton and f:ajax + + +
Files to review:
+

+ Flow definition and view.xhtml in src/main/webapp/WEB-INF/flows/ajax-jsf
+ Java classes ~/ajax/UserBean.java, ~/jsf/FacesHelper.java +

+
+
+ + + +
+ User Details + + + + + Email suggestion: + + +

+ First Name:
+ +

+

+ Last Name:
+ +

+
+

+ + + + +

+
<h:commandButton value="Suggest" action="suggest" >
+    <f:ajax execute="@form" render="@form" />
+<h:commandButton/>
+
+
+ +
\ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/ajax-primefaces/flow.xml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/ajax-primefaces/flow.xml new file mode 100644 index 0000000..ddfb30f --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/ajax-primefaces/flow.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/ajax-primefaces/view.xhtml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/ajax-primefaces/view.xhtml new file mode 100644 index 0000000..c838931 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/ajax-primefaces/view.xhtml @@ -0,0 +1,47 @@ + + + +Ajax With PrimeFaces CommandButton + + +
Files to review:
+

+ Flow definition and view.xhtml in src/main/webapp/WEB-INF/flows/ajax-primefaces
+ Java class ~/ajax/UserBean.java +

+
+
+ + + + + + Email suggestion: + + + +

+ First Name:
+ +

+

+ Last Name:
+ +

+

+   + +

+
+
+<p:commandButton value="Suggest" action="suggest" execute="@form" update="@form"/>
+
+
+
+ +
\ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/ajax-render-action/flow.xml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/ajax-render-action/flow.xml new file mode 100644 index 0000000..e705484 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/ajax-render-action/flow.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/ajax-render-action/view.xhtml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/ajax-render-action/view.xhtml new file mode 100644 index 0000000..a0e0924 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/ajax-render-action/view.xhtml @@ -0,0 +1,46 @@ + + + +Ajax with Server-Side Render Action + + +
Files to review:
+

+ Flow definition and view.xhtml in src/main/webapp/WEB-INF/flows/ajax-render-action
+

+
+
+ + + + + + Email suggestion: + + + +

+ First Name:
+ +

+

+ Last Name:
+ +

+

+   + +

+
+
+<p:commandButton value="Suggest" action="suggest" />
+
+
+
+ +
\ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/autocomplete/flow.xml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/autocomplete/flow.xml new file mode 100644 index 0000000..b3c8c0f --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/autocomplete/flow.xml @@ -0,0 +1,15 @@ + + + + + + + + + + \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/autocomplete/view.xhtml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/autocomplete/view.xhtml new file mode 100644 index 0000000..5f0ccac --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/autocomplete/view.xhtml @@ -0,0 +1,45 @@ + + + +Auto-complete + + +
Comments:
+

+ Flow artifacts in src/main/webapp/WEB-INF/flows/autocomplete
+ Java classes in package ~/autocomplate +

+
+
+ + + + +
+
+ +
+
+
+ +
+ +

String Value: ${formBean.value}

+

Person: ${formBean.person.name}

+
+
+

+   +
+

+
+ +
+ +
\ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/file-upload/flow.xml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/file-upload/flow.xml new file mode 100644 index 0000000..3458c0a --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/file-upload/flow.xml @@ -0,0 +1,13 @@ + + + + + + + + \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/file-upload/view.xhtml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/file-upload/view.xhtml new file mode 100644 index 0000000..2056a28 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/file-upload/view.xhtml @@ -0,0 +1,28 @@ + + + +Ajax With PrimeFaces CommandButton + + +
Files to review:
+

+ Flow definition and view.xhtml in src/main/webapp/WEB-INF/flows/ajax-primefaces
+ Java class ~/upload/FileUploadController.java +

+
+
+ + + + + + + + +
\ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/modal-dialog-in-view/flow.xml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/modal-dialog-in-view/flow.xml new file mode 100644 index 0000000..4978db6 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/modal-dialog-in-view/flow.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/modal-dialog-in-view/view.xhtml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/modal-dialog-in-view/view.xhtml new file mode 100644 index 0000000..6aae7ba --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/modal-dialog-in-view/view.xhtml @@ -0,0 +1,40 @@ + + + +Modal Dialog In View + + +
Comments:
+

+ Flow definition and view.xhtml in src/main/webapp/WEB-INF/flows/modal-dialog-in-view
+ Java class ~/modal/ModalAction.java +

+
+
+ + + + + + + + + + + + + +

+ + +
+
+ +
+
+ +
\ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/parent-flow.xml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/parent-flow.xml new file mode 100644 index 0000000..c02771f --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/parent-flow.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/poller/flow.xml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/poller/flow.xml new file mode 100644 index 0000000..20216d2 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/poller/flow.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/poller/view.xhtml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/poller/view.xhtml new file mode 100644 index 0000000..93561e4 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/poller/view.xhtml @@ -0,0 +1,43 @@ + + + +Polling + + +
Comments:
+

+ Polling occurs every 3 seconds once started
+ Review flow definition and view.xhtml in src/main/webapp/WEB-INF/flows/poller +

+
+
+ + + + + +
+ +
+
+
+ + + +
+
+
+<p:poll widgetVar="poller" interval="1" update="contentPanel" autoStart="false"/>
+<p:commandButton value="Start" action="start" update="contentPanel" onclick="poller.start()"/>
+<p:commandButton value="Stop" action="stop" update="contentPanel" onclick="poller.stop()"/>
+
+
+
+
+ +
\ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/spring-security-taglib/flow.xml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/spring-security-taglib/flow.xml new file mode 100644 index 0000000..8a558b0 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/spring-security-taglib/flow.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/spring-security-taglib/view.xhtml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/spring-security-taglib/view.xhtml new file mode 100644 index 0000000..3ac96be --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/spring-security-taglib/view.xhtml @@ -0,0 +1,124 @@ + + + +Spring Security Facelets Tag Library + + +
Files to review:
+

+ Flow definition and view.xhtml in + src/main/webapp/WEB-INF/flows/spring-security-taglib
+ Taglib declaration in web.xml
+ Taglib file src/main/webapp/WEB-INF/springsecurity.taglib.xml
+ Spring security configuation src/main/webapp/WEB-INF/spring/security-config.xml +

+
+
+ + +

+ You're currently logged in as '${currentUser.name}' +

+ +

+ <sec:authorize ifAllGranted="ROLE_USER, ROLE_APPLE_USER"> + + Lorem ipsum dolor sit amet + + ... + </sec:authorize> +

+ +

+ <sec:authorize ifAllGranted="ROLE_USER, ROLE_ANDROID_USER"> + + Lorem ipsum dolor sit amet + + ... + </sec:authorize> +

+ +

+ <sec:authorize ifNotGranted="ROLE_APPLE_USER"> + + Lorem ipsum dolor sit amet + + ... + </sec:authorize> +

+ +

+ <sec:authorize ifNotGranted="ROLE_ANDROID_USER"> + + Lorem ipsum dolor sit amet + + ... + </sec:authorize> +

+ +

+ <sec:authorize ifAnyGranted="ROLE_APPLE_USER, ROLE_ANDROID_USER"> + + Lorem ipsum dolor sit amet + + ... + </sec:authorize> +

+ +

+ <h:outputText ... rendered="\#{sec:areAllGranted('ROLE_USER, ROLE_APPLE_USER')}" /> + + ... +

+ +

+ <h:outputText ... rendered="\#{sec:areAllGranted('ROLE_USER, ROLE_ANDROID_USER')}" /> + + ... +

+ +

+ <h:outputText ... rendered="\#{sec:areNotGranted('ROLE_APPLE_USER')}" /> + + ... +

+ +

+ <h:outputText ... rendered="\#{sec:areNotGranted('ROLE_ANDROID_USER')}" /> + + ... +

+ +

+ <h:outputText ... rendered="\#{sec:areAnyGranted('ROLE_APPLE_USER, ROLE_ANDROID_USER')}" /> + + ... +

+ + +

+ <h:outputText ... rendered="\#{sec:isAllowed('/secured/appleUser', 'POST'}" /> + + ... +

+ +

+ <h:outputText ... rendered="\#{sec:isAllowed('/secured/androidUser', 'POST'}" /> + + ... +

+ + + + + + +
+ +
\ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/top-flow-with-embedded-subflow/embedded-flow/confirmation.xhtml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/top-flow-with-embedded-subflow/embedded-flow/confirmation.xhtml new file mode 100644 index 0000000..54331f4 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/top-flow-with-embedded-subflow/embedded-flow/confirmation.xhtml @@ -0,0 +1,29 @@ + + + +Embedded Flow: Confirmation + + +
+
+ + + + + + Email suggestion: + + +

+ + +

+
+
+ +
\ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/top-flow-with-embedded-subflow/embedded-flow/flow.xml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/top-flow-with-embedded-subflow/embedded-flow/flow.xml new file mode 100644 index 0000000..deb8b0c --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/top-flow-with-embedded-subflow/embedded-flow/flow.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/top-flow-with-embedded-subflow/embedded-flow/main.xhtml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/top-flow-with-embedded-subflow/embedded-flow/main.xhtml new file mode 100644 index 0000000..47dcb7b --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/top-flow-with-embedded-subflow/embedded-flow/main.xhtml @@ -0,0 +1,34 @@ + + + +Embedded Flow: User Details + + +
+
+ + + + +

+ First Name:
+ +

+

+ Last Name:
+ +

+

+   + +

+
+
+
+ +
\ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/top-flow-with-embedded-subflow/flow.xml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/top-flow-with-embedded-subflow/flow.xml new file mode 100644 index 0000000..0ea2e2e --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/top-flow-with-embedded-subflow/flow.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/top-flow-with-embedded-subflow/main.xhtml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/top-flow-with-embedded-subflow/main.xhtml new file mode 100644 index 0000000..0110b33 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/top-flow-with-embedded-subflow/main.xhtml @@ -0,0 +1,57 @@ + + + +Top Flow Container + + +

+ This is the landing page for the top flow. From her you can launch the embedded sub-flow + without ever causing this part of the page to be reloaded. +

+
    +
  • + Note the mode=embedded input attribute passed to the sub-flow in + src/main/webapp/WEB-INF/flows/top-flow-with-embedded-subflow/flow.xml. + This instructs the subflow to launch in embedded mode and avoid flow execution redirects + during Ajax requests. +
  • +
  • + Also notice the identical form ids used on all three view pages. + This is required in order for the client-side JSF JavaScript to replace the form contents. +
  • +
+
+ + +
+
+
Some text to the left
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut + labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris + nisi ut aliquip.

+
+
+

Embedded Sub-Flow Area

+ + +

+   + +

+
+
+
+
Some text to the right
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut + labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris + nisi ut aliquip.

+
+
+
+ +
\ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/validation-bean/edit.xhtml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/validation-bean/edit.xhtml new file mode 100644 index 0000000..867e9fa --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/validation-bean/edit.xhtml @@ -0,0 +1,61 @@ + + + +Standard JSR-303 Bean Validation + + +

+ Flow definition and view.xhtml in src/main/webapp/WEB-INF/flows/validation-bean
+ Java class with JSR-303 validation annotations ~/validation/Account.java
+ Customized @NotNull constraint message in src/main/resources/ValidationMessages.properties
+ Customized pattern used by JSF for Bean Validation in src/main/resources/org/springframework/samples/webflow/JsfMessageResources.properties
+ Registration of JsfMessageResources.properties in src/main/webapp/WEB-INF/faces-config.xml +

+
+
+ + + + +
+
+ +

+ First Name:
+ +

+

+ Last Name:
+ +

+

+ Date of Birth:
+ +

+

+   + +

+
+
+

+ By default JSF does not include field names in messages resulting from standard bean validation. + For example instead of seeing "First name may not be empty" you would see "may not be empty". + To change this behavior we've customized the pattern used by + javax.faces.validator.BeanValidator.
+ See the following for details:
+ src/main/webapp/WEB-INF/faces-config.xml + src/main/resources/org/springframework/samples/webflow/JsfMessageResources.properties
+

+
+
+
+
+
+ +
\ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/validation-bean/flow.xml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/validation-bean/flow.xml new file mode 100644 index 0000000..42e041a --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/validation-bean/flow.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/validation-bean/review.xhtml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/validation-bean/review.xhtml new file mode 100644 index 0000000..af627b0 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/validation-bean/review.xhtml @@ -0,0 +1,45 @@ + + + +Standard JSR-303 Bean Validation + + +
Files to review:
+

+ Flow definition and view.xhtml in src/main/webapp/WEB-INF/flows/bean-validation
+ Java class with JSR-303 validation annotations ~/validation/Account.java +

+
+
+ + + + + +

+ First Name:
+ +

+

+ Last Name:
+ +

+

+ Date of Birth:
+ +

+

+   + +

+
+
+
+
+ +
\ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/validation-model/edit.xhtml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/validation-model/edit.xhtml new file mode 100644 index 0000000..8f6f0b2 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/validation-model/edit.xhtml @@ -0,0 +1,90 @@ + + + +Model Validation + + +
Files to review:
+

+ Flow definition and views in src/main/webapp/WEB-INF/flows/validation-model
+ Java model with validation methods ~/validation/Reservation.java +

+
+
+ + + + + + + +
+
+

+ Start Date:
+ +

+

+ End Date:
+ +

+
+

+ + Enable state validation
+ + Enable global validation +

+
+

+ + +

+
+
+

Types of validation used on this form:

+
    +
  1. JSF component validation based on "required" attribute on start/end date tags
  2. +
  3. Model validation method invoked by convention for this state only
  4. +
  5. Model validation method invoked by convention for any view states of the current flow
  6. +
  7. Validation method invoked directly in a transition
  8. +
+
+
+
+
+ +

+ Validation by convention relies on model methods with a special signature.
+ First you need to declare the model on the view-state using the "model" attribute.
+ Then you add one or more validation methods to the model object.
+ For example see the following methods on ~/validation/Reservation.java:
+ public void + Reservation.validateEdit(ValidationContext) matches to the view state called "edit".
+ public void + Reservation.validate(ValidationContext) matches to all view states in the flow.
+

+
+ + +

+ You can choose to invoke a validation method during a specific transition.
+ The validation method registers errors and returns false to prevent the transition + and display the error(s). +

+
+

+ Don't forget to disable state and global validation by convention.
+ Those validations are invoked first and they will prevent the transition altogether! +

+
+
+
+
+ +
\ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/validation-model/flow.xml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/validation-model/flow.xml new file mode 100644 index 0000000..c3b2dc0 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/validation-model/flow.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/validation-model/messages.properties b/primefaces-showcase/src/main/webapp/WEB-INF/flows/validation-model/messages.properties new file mode 100644 index 0000000..1c9cd01 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/validation-model/messages.properties @@ -0,0 +1,3 @@ +startDateBeforeEndDate.viewState=End date is earlier than the start date (state validation by convention) +startDateBeforeEndDate.global=End date is earlier than the start date (global validation by convention) +startDateBeforeEndDate.validationMethod=End date is earlier than the start date (validation method invocation) \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/flows/validation-model/review.xhtml b/primefaces-showcase/src/main/webapp/WEB-INF/flows/validation-model/review.xhtml new file mode 100644 index 0000000..1f6d0ff --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/flows/validation-model/review.xhtml @@ -0,0 +1,41 @@ + + + +Model Validation + + +
Files to review:
+

+ Flow definition and view.xhtml in src/main/webapp/WEB-INF/flows/validation-model
+ Java model with validation methods ~/validation/Reservation.java +

+
+
+ + + + + +

+ Start Date:
+ +

+

+ End Date:
+ +

+

+   + +

+
+
+
+
+ +
\ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/layouts/standard.xhtml b/primefaces-showcase/src/main/webapp/WEB-INF/layouts/standard.xhtml new file mode 100644 index 0000000..740ffc6 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/layouts/standard.xhtml @@ -0,0 +1,37 @@ + + + + + + + JSF 2, Spring Web Flow, and PrimeFaces Showcase + + + + + + +
+
+

JSF 2, PrimeFaces, and Spring Web Flow

+

+ +

+
+
+
+ +
+
+ +
+
+
+
+ diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/spring/appServlet/controllers.xml b/primefaces-showcase/src/main/webapp/WEB-INF/spring/appServlet/controllers.xml new file mode 100644 index 0000000..e43d8fe --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/spring/appServlet/controllers.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/spring/appServlet/servlet-context.xml b/primefaces-showcase/src/main/webapp/WEB-INF/spring/appServlet/servlet-context.xml new file mode 100644 index 0000000..74a9275 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/spring/appServlet/servlet-context.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/spring/appServlet/webflow.xml b/primefaces-showcase/src/main/webapp/WEB-INF/spring/appServlet/webflow.xml new file mode 100644 index 0000000..e68958e --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/spring/appServlet/webflow.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/spring/root-context.xml b/primefaces-showcase/src/main/webapp/WEB-INF/spring/root-context.xml new file mode 100644 index 0000000..e33465c --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/spring/root-context.xml @@ -0,0 +1,9 @@ + + + + + + + diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/spring/security-config.xml b/primefaces-showcase/src/main/webapp/WEB-INF/spring/security-config.xml new file mode 100644 index 0000000..35cd3bb --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/spring/security-config.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/springsecurity.taglib.xml b/primefaces-showcase/src/main/webapp/WEB-INF/springsecurity.taglib.xml new file mode 100644 index 0000000..ea37d89 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/springsecurity.taglib.xml @@ -0,0 +1,31 @@ + + + + http://www.springframework.org/security/tags + + authorize + org.springframework.faces.security.FaceletsAuthorizeTagHandler + + + areAllGranted + org.springframework.faces.security.FaceletsAuthorizeTagUtils + boolean areAllGranted(java.lang.String) + + + areAnyGranted + org.springframework.faces.security.FaceletsAuthorizeTagUtils + boolean areAnyGranted(java.lang.String) + + + areNotGranted + org.springframework.faces.security.FaceletsAuthorizeTagUtils + boolean areNotGranted(java.lang.String) + + + isAllowed + org.springframework.faces.security.FaceletsAuthorizeTagUtils + boolean isAllowed(java.lang.String, java.lang.String) + + \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/views/home.xhtml b/primefaces-showcase/src/main/webapp/WEB-INF/views/home.xhtml new file mode 100644 index 0000000..6522621 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/views/home.xhtml @@ -0,0 +1,127 @@ + + + + + + +

+ Note that in "development" mode you can make changes to flow definitions without the + need to restart the server. The development mode is specified in + src/main/webapp/WEB-INF/spring/appServlet/webflow.xml. +

+
+
+ + + + + + +
    +
  • + + +
    + Ajax request and responses with h:commandButton + nested f:ajax tag. +
  • +
  • + + +
    + Ajax request and response with the PrimeFaces commandButton. +
  • +
  • + + +
    + Integration between the Web Flow render action and PrimeFaces partial rendering. +
  • +
+
+ + +
    +
  • + + +
    + PrimeFaces Auto-complete component. +
  • +
  • + + +
    + Display a modal dialog without leaving the current view state. +
  • +
  • + + +
    + Top flow with a sub-flow embedded within it without causing any redirects or a full page refresh. +
  • +
  • + + +
    + Shows PrimeFaces poller component accesses server-side Web Flow data. +
  • +
+
+ + +
    +
  • + + +
    + JSR-303 Bean Validation Annotations. +
  • +
  • + + +
    + Web Flow specific mechanism with validation methods in the model object. +
  • +
+
+ + +
Comments:
+
    +
  • + + +
    + Demonstrates use of the Spring Security Facelets tag library. +

    + The above flow definition is protected with Spring Security. + You'll be redirected to a login page the first time. +

    +
  • +
  • + + +
    + Uses the PrimeFaces fileUpload component to demonstratie uploading a file. +
  • +
+
+ + + +
+ +
+
diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/views/login.xhtml b/primefaces-showcase/src/main/webapp/WEB-INF/views/login.xhtml new file mode 100755 index 0000000..8657782 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/views/login.xhtml @@ -0,0 +1,66 @@ + + + +Login + + +
Configuration to review:
+
    +
  • Spring Security filter and taglib declarations: src/main/webapp/WEB-INF/web.xml
  • +
  • Spring Security configuration: src/main/webapp/WEB-INF/spring/security-config.xml
  • +
  • Taglib file: src/main/webapp/WEB-INF/springsecurity.taglib.xml
  • +
+
+
+ + +
+ +
+ Your login attempt was not successful, try again.
+ Reason: #{sessionScope.SPRING_SECURITY_LAST_EXCEPTION.message} +
+
+ +
+

+ User: +
+ + + + +

+

+ Password: +
+ +

+

+ + Don't ask for my password for two weeks +

+

+ +

+
+
+
+
+
Username/password pairs:
+
    +
  • joe/joe1
  • +
  • pete/pete1
  • +
+
Roles assigned:
+
    +
  • joe has ROLE_USER and ROLE_APPLE_USER
  • +
  • pete has ROLE_USER and ROLE_ANDROID_USER
  • +
+
+
+
\ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/WEB-INF/web.xml b/primefaces-showcase/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000..6a5aec8 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,113 @@ + + + + + + + contextConfigLocation + /WEB-INF/spring/root-context.xml + + + + org.springframework.web.context.ContextLoaderListener + + + + + + springSecurityFilterChain + org.springframework.web.filter.DelegatingFilterProxy + + + + springSecurityFilterChain + Spring MVC Servlet + + + + + + + javax.faces.DEFAULT_SUFFIX + .xhtml + + + + + javax.faces.PROJECT_STAGE + Development + + + + + javax.faces.FACELETS_REFRESH_PERIOD + 1 + + + + + Faces Servlet + javax.faces.webapp.FacesServlet + 1 + + + + + Faces Servlet + *.faces + + + + + + Spring MVC Servlet + org.springframework.web.servlet.DispatcherServlet + + contextConfigLocation + /WEB-INF/spring/appServlet/servlet-context.xml + + 1 + + + + Spring MVC Servlet + /app/* + + + + PrimeFaces FileUpload Filter + org.primefaces.webapp.filter.FileUploadFilter + + + + PrimeFaces FileUpload Filter + Spring MVC Servlet + + + + + javax.faces.FACELETS_LIBRARIES + /WEB-INF/springsecurity.taglib.xml + + + + + + index.html + + + \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/index.html b/primefaces-showcase/src/main/webapp/index.html new file mode 100644 index 0000000..2adbac5 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/index.html @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/icons/cross.png b/primefaces-showcase/src/main/webapp/styles/blueprint/icons/cross.png new file mode 100755 index 0000000..1514d51 Binary files /dev/null and b/primefaces-showcase/src/main/webapp/styles/blueprint/icons/cross.png differ diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/icons/key.png b/primefaces-showcase/src/main/webapp/styles/blueprint/icons/key.png new file mode 100755 index 0000000..a9d5e4f Binary files /dev/null and b/primefaces-showcase/src/main/webapp/styles/blueprint/icons/key.png differ diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/icons/tick.png b/primefaces-showcase/src/main/webapp/styles/blueprint/icons/tick.png new file mode 100755 index 0000000..a9925a0 Binary files /dev/null and b/primefaces-showcase/src/main/webapp/styles/blueprint/icons/tick.png differ diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/ie.css b/primefaces-showcase/src/main/webapp/styles/blueprint/ie.css new file mode 100755 index 0000000..bbc1e5c --- /dev/null +++ b/primefaces-showcase/src/main/webapp/styles/blueprint/ie.css @@ -0,0 +1,36 @@ +/* ----------------------------------------------------------------------- + + + Blueprint CSS Framework 0.9 + http://blueprintcss.org + + * Copyright (c) 2007-Present. See LICENSE for more info. + * See README for instructions on how to use Blueprint. + * For credits and origins, see AUTHORS. + * This is a compressed file. See the sources in the 'src' directory. + +----------------------------------------------------------------------- */ + +/* ie.css */ +body {text-align:center;} +.container {text-align:left;} +* html .column, * html div.span-1, * html div.span-2, * html div.span-3, * html div.span-4, * html div.span-5, * html div.span-6, * html div.span-7, * html div.span-8, * html div.span-9, * html div.span-10, * html div.span-11, * html div.span-12, * html div.span-13, * html div.span-14, * html div.span-15, * html div.span-16, * html div.span-17, * html div.span-18, * html div.span-19, * html div.span-20, * html div.span-21, * html div.span-22, * html div.span-23, * html div.span-24 {display:inline;overflow-x:hidden;} +* html legend {margin:0px -8px 16px 0;padding:0;} +ol {margin-left:2em;} +sup {vertical-align:text-top;} +sub {vertical-align:text-bottom;} +html>body p code {*white-space:normal;} +hr {margin:-8px auto 11px;} +img {-ms-interpolation-mode:bicubic;} +.clearfix, .container {display:inline-block;} +* html .clearfix, * html .container {height:1%;} +fieldset {padding-top:0;} +textarea {overflow:auto;} +input.text, input.title, textarea {background-color:#fff;border:1px solid #bbb;} +input.text:focus, input.title:focus {border-color:#666;} +input.text, input.title, textarea, select {margin:0.5em 0;} +input.checkbox, input.radio {position:relative;top:.25em;} +form.inline div, form.inline p {vertical-align:middle;} +form.inline label {position:relative;top:-0.25em;} +form.inline input.checkbox, form.inline input.radio, form.inline input.button, form.inline button {margin:0.5em 0;} +button, input.button {position:relative;top:0.25em;} \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/buttons/icons/cross.png b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/buttons/icons/cross.png new file mode 100755 index 0000000..1514d51 Binary files /dev/null and b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/buttons/icons/cross.png differ diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/buttons/icons/key.png b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/buttons/icons/key.png new file mode 100755 index 0000000..a9d5e4f Binary files /dev/null and b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/buttons/icons/key.png differ diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/buttons/icons/tick.png b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/buttons/icons/tick.png new file mode 100755 index 0000000..a9925a0 Binary files /dev/null and b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/buttons/icons/tick.png differ diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/buttons/readme.txt b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/buttons/readme.txt new file mode 100755 index 0000000..a8c2b57 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/buttons/readme.txt @@ -0,0 +1,32 @@ +Buttons + +* Gives you great looking CSS buttons, for both and + + + Change Password + + + + Cancel + diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/buttons/screen.css b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/buttons/screen.css new file mode 100755 index 0000000..bb66b21 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/buttons/screen.css @@ -0,0 +1,97 @@ +/* -------------------------------------------------------------- + + buttons.css + * Gives you some great CSS-only buttons. + + Created by Kevin Hale [particletree.com] + * particletree.com/features/rediscovering-the-button-element + + See Readme.txt in this folder for instructions. + +-------------------------------------------------------------- */ + +a.button, button { + display:block; + float:left; + margin: 0.7em 0.5em 0.7em 0; + padding:5px 10px 5px 7px; /* Links */ + + border:1px solid #dedede; + border-top:1px solid #eee; + border-left:1px solid #eee; + + background-color:#f5f5f5; + font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif; + font-size:100%; + line-height:130%; + text-decoration:none; + font-weight:bold; + color:#565656; + cursor:pointer; +} +button { + width:auto; + overflow:visible; + padding:4px 10px 3px 7px; /* IE6 */ +} +button[type] { + padding:4px 10px 4px 7px; /* Firefox */ + line-height:17px; /* Safari */ +} +*:first-child+html button[type] { + padding:4px 10px 3px 7px; /* IE7 */ +} +button img, a.button img{ + margin:0 3px -3px 0 !important; + padding:0; + border:none; + width:16px; + height:16px; + float:none; +} + + +/* Button colors +-------------------------------------------------------------- */ + +/* Standard */ +button:hover, a.button:hover{ + background-color:#dff4ff; + border:1px solid #c2e1ef; + color:#336699; +} +a.button:active{ + background-color:#6299c5; + border:1px solid #6299c5; + color:#fff; +} + +/* Positive */ +body .positive { + color:#529214; +} +a.positive:hover, button.positive:hover { + background-color:#E6EFC2; + border:1px solid #C6D880; + color:#529214; +} +a.positive:active { + background-color:#529214; + border:1px solid #529214; + color:#fff; +} + +/* Negative */ +body .negative { + color:#d12f19; +} +a.negative:hover, button.negative:hover { + background-color:#fbe3e4; + border:1px solid #fbc2c4; + color:#d12f19; +} +a.negative:active { + background-color:#d12f19; + border:1px solid #d12f19; + color:#fff; +} diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/fancy-type/readme.txt b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/fancy-type/readme.txt new file mode 100755 index 0000000..85f2491 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/fancy-type/readme.txt @@ -0,0 +1,14 @@ +Fancy Type + +* Gives you classes to use if you'd like some + extra fancy typography. + +Credits and instructions are specified above each class +in the fancy-type.css file in this directory. + + +Usage +---------------------------------------------------------------- + +1) Add this plugin to lib/settings.yml. + See compress.rb for instructions. diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/fancy-type/screen.css b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/fancy-type/screen.css new file mode 100755 index 0000000..028e05b --- /dev/null +++ b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/fancy-type/screen.css @@ -0,0 +1,71 @@ +/* -------------------------------------------------------------- + + fancy-type.css + * Lots of pretty advanced classes for manipulating text. + + See the Readme file in this folder for additional instructions. + +-------------------------------------------------------------- */ + +/* Indentation instead of line shifts for sibling paragraphs. */ + p + p { text-indent:2em; margin-top:-1.5em; } + form p + p { text-indent: 0; } /* Don't want this in forms. */ + + +/* For great looking type, use this code instead of asdf: + asdf + Best used on prepositions and ampersands. */ + +.alt { + color: #666; + font-family: "Warnock Pro", "Goudy Old Style","Palatino","Book Antiqua", Georgia, serif; + font-style: italic; + font-weight: normal; +} + + +/* For great looking quote marks in titles, replace "asdf" with: + asdf” + (That is, when the title starts with a quote mark). + (You may have to change this value depending on your font size). */ + +.dquo { margin-left: -.5em; } + + +/* Reduced size type with incremental leading + (http://www.markboulton.co.uk/journal/comments/incremental_leading/) + + This could be used for side notes. For smaller type, you don't necessarily want to + follow the 1.5x vertical rhythm -- the line-height is too much. + + Using this class, it reduces your font size and line-height so that for + every four lines of normal sized type, there is five lines of the sidenote. eg: + + New type size in em's: + 10px (wanted side note size) / 12px (existing base size) = 0.8333 (new type size in ems) + + New line-height value: + 12px x 1.5 = 18px (old line-height) + 18px x 4 = 72px + 72px / 5 = 14.4px (new line height) + 14.4px / 10px = 1.44 (new line height in em's) */ + +p.incr, .incr p { + font-size: 10px; + line-height: 1.44em; + margin-bottom: 1.5em; +} + + +/* Surround uppercase words and abbreviations with this class. + Based on work by Jørgen Arnor Gårdsø Lom [http://twistedintellect.com/] */ + +.caps { + font-variant: small-caps; + letter-spacing: 1px; + text-transform: lowercase; + font-size:1.2em; + line-height:1%; + font-weight:bold; + padding:0 2px; +} diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/icons/doc.png b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/icons/doc.png new file mode 100755 index 0000000..834cdfa Binary files /dev/null and b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/icons/doc.png differ diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/icons/email.png b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/icons/email.png new file mode 100755 index 0000000..7348aed Binary files /dev/null and b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/icons/email.png differ diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/icons/external.png b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/icons/external.png new file mode 100755 index 0000000..cf1cfb4 Binary files /dev/null and b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/icons/external.png differ diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/icons/feed.png b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/icons/feed.png new file mode 100755 index 0000000..315c4f4 Binary files /dev/null and b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/icons/feed.png differ diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/icons/im.png b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/icons/im.png new file mode 100755 index 0000000..79f35cc Binary files /dev/null and b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/icons/im.png differ diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/icons/pdf.png b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/icons/pdf.png new file mode 100755 index 0000000..8f8095e Binary files /dev/null and b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/icons/pdf.png differ diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/icons/visited.png b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/icons/visited.png new file mode 100755 index 0000000..ebf206d Binary files /dev/null and b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/icons/visited.png differ diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/icons/xls.png b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/icons/xls.png new file mode 100755 index 0000000..b977d7e Binary files /dev/null and b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/icons/xls.png differ diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/readme.txt b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/readme.txt new file mode 100755 index 0000000..3cb1b2c --- /dev/null +++ b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/readme.txt @@ -0,0 +1,18 @@ +Link Icons +* Icons for links based on protocol or file type. + +This is not supported in IE versions < 7. + + +Credits +---------------------------------------------------------------- + +* Marc Morgan +* Olav Bjorkoy [bjorkoy.com] + + +Usage +---------------------------------------------------------------- + +1) Add this line to your HTML: + \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/screen.css b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/screen.css new file mode 100755 index 0000000..6d3d47f --- /dev/null +++ b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/link-icons/screen.css @@ -0,0 +1,40 @@ +/* -------------------------------------------------------------- + + link-icons.css + * Icons for links based on protocol or file type. + + See the Readme file in this folder for additional instructions. + +-------------------------------------------------------------- */ + +/* Use this class if a link gets an icon when it shouldn't. */ +body a.noicon { + background:transparent none !important; + padding:0 !important; + margin:0 !important; +} + +/* Make sure the icons are not cut */ +a[href^="http:"], a[href^="mailto:"], a[href^="http:"]:visited, +a[href$=".pdf"], a[href$=".doc"], a[href$=".xls"], a[href$=".rss"], +a[href$=".rdf"], a[href^="aim:"] { + padding:2px 22px 2px 0; + margin:-2px 0; + background-repeat: no-repeat; + background-position: right center; +} + +/* External links */ +a[href^="http:"] { background-image: url(icons/external.png); } +a[href^="mailto:"] { background-image: url(icons/email.png); } +a[href^="http:"]:visited { background-image: url(icons/visited.png); } + +/* Files */ +a[href$=".pdf"] { background-image: url(icons/pdf.png); } +a[href$=".doc"] { background-image: url(icons/doc.png); } +a[href$=".xls"] { background-image: url(icons/xls.png); } + +/* Misc */ +a[href$=".rss"], +a[href$=".rdf"] { background-image: url(icons/feed.png); } +a[href^="aim:"] { background-image: url(icons/im.png); } \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/rtl/readme.txt b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/rtl/readme.txt new file mode 100755 index 0000000..4c46535 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/rtl/readme.txt @@ -0,0 +1,10 @@ +RTL +* Mirrors Blueprint, so it can be used with Right-to-Left languages. + +By Ran Yaniv Hartstein, ranh.co.il + +Usage +---------------------------------------------------------------- + +1) Add this line to your HTML: + \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/rtl/screen.css b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/rtl/screen.css new file mode 100755 index 0000000..7e7ccdb --- /dev/null +++ b/primefaces-showcase/src/main/webapp/styles/blueprint/plugins/rtl/screen.css @@ -0,0 +1,110 @@ +/* -------------------------------------------------------------- + + rtl.css + * Mirrors Blueprint for left-to-right languages + + By Ran Yaniv Hartstein [ranh.co.il] + +-------------------------------------------------------------- */ + +body .container { direction: rtl; } +body .column, body div.span-1, body div.span-2, body div.span-3, body div.span-4, body div.span-5, body div.span-6, body div.span-7, body div.span-8, body div.span-9, body div.span-10, body div.span-11, body div.span-12, body div.span-13, body div.span-14, body div.span-15, body div.span-16, body div.span-17, body div.span-18, body div.span-19, body div.span-20, body div.span-21, body div.span-22, body div.span-23, body div.span-24 { + float: right; + margin-right: 0; + margin-left: 10px; + text-align:right; +} + +body div.last { margin-left: 0; } +body table .last { padding-left: 0; } + +body .append-1 { padding-right: 0; padding-left: 40px; } +body .append-2 { padding-right: 0; padding-left: 80px; } +body .append-3 { padding-right: 0; padding-left: 120px; } +body .append-4 { padding-right: 0; padding-left: 160px; } +body .append-5 { padding-right: 0; padding-left: 200px; } +body .append-6 { padding-right: 0; padding-left: 240px; } +body .append-7 { padding-right: 0; padding-left: 280px; } +body .append-8 { padding-right: 0; padding-left: 320px; } +body .append-9 { padding-right: 0; padding-left: 360px; } +body .append-10 { padding-right: 0; padding-left: 400px; } +body .append-11 { padding-right: 0; padding-left: 440px; } +body .append-12 { padding-right: 0; padding-left: 480px; } +body .append-13 { padding-right: 0; padding-left: 520px; } +body .append-14 { padding-right: 0; padding-left: 560px; } +body .append-15 { padding-right: 0; padding-left: 600px; } +body .append-16 { padding-right: 0; padding-left: 640px; } +body .append-17 { padding-right: 0; padding-left: 680px; } +body .append-18 { padding-right: 0; padding-left: 720px; } +body .append-19 { padding-right: 0; padding-left: 760px; } +body .append-20 { padding-right: 0; padding-left: 800px; } +body .append-21 { padding-right: 0; padding-left: 840px; } +body .append-22 { padding-right: 0; padding-left: 880px; } +body .append-23 { padding-right: 0; padding-left: 920px; } + +body .prepend-1 { padding-left: 0; padding-right: 40px; } +body .prepend-2 { padding-left: 0; padding-right: 80px; } +body .prepend-3 { padding-left: 0; padding-right: 120px; } +body .prepend-4 { padding-left: 0; padding-right: 160px; } +body .prepend-5 { padding-left: 0; padding-right: 200px; } +body .prepend-6 { padding-left: 0; padding-right: 240px; } +body .prepend-7 { padding-left: 0; padding-right: 280px; } +body .prepend-8 { padding-left: 0; padding-right: 320px; } +body .prepend-9 { padding-left: 0; padding-right: 360px; } +body .prepend-10 { padding-left: 0; padding-right: 400px; } +body .prepend-11 { padding-left: 0; padding-right: 440px; } +body .prepend-12 { padding-left: 0; padding-right: 480px; } +body .prepend-13 { padding-left: 0; padding-right: 520px; } +body .prepend-14 { padding-left: 0; padding-right: 560px; } +body .prepend-15 { padding-left: 0; padding-right: 600px; } +body .prepend-16 { padding-left: 0; padding-right: 640px; } +body .prepend-17 { padding-left: 0; padding-right: 680px; } +body .prepend-18 { padding-left: 0; padding-right: 720px; } +body .prepend-19 { padding-left: 0; padding-right: 760px; } +body .prepend-20 { padding-left: 0; padding-right: 800px; } +body .prepend-21 { padding-left: 0; padding-right: 840px; } +body .prepend-22 { padding-left: 0; padding-right: 880px; } +body .prepend-23 { padding-left: 0; padding-right: 920px; } + +body .border { + padding-right: 0; + padding-left: 4px; + margin-right: 0; + margin-left: 5px; + border-right: none; + border-left: 1px solid #eee; +} + +body .colborder { + padding-right: 0; + padding-left: 24px; + margin-right: 0; + margin-left: 25px; + border-right: none; + border-left: 1px solid #eee; +} + +body .pull-1 { margin-left: 0; margin-right: -40px; } +body .pull-2 { margin-left: 0; margin-right: -80px; } +body .pull-3 { margin-left: 0; margin-right: -120px; } +body .pull-4 { margin-left: 0; margin-right: -160px; } + +body .push-0 { margin: 0 18px 0 0; } +body .push-1 { margin: 0 18px 0 -40px; } +body .push-2 { margin: 0 18px 0 -80px; } +body .push-3 { margin: 0 18px 0 -120px; } +body .push-4 { margin: 0 18px 0 -160px; } +body .push-0, body .push-1, body .push-2, +body .push-3, body .push-4 { float: left; } + + +/* Typography with RTL support */ +body h1,body h2,body h3, +body h4,body h5,body h6 { font-family: Arial, sans-serif; } +html body { font-family: Arial, sans-serif; } +body pre,body code,body tt { font-family: monospace; } + +/* Mirror floats and margins on typographic elements */ +body p img { float: right; margin: 1.5em 0 1.5em 1.5em; } +body dd, body ul, body ol { margin-left: 0; margin-right: 1.5em;} +body td, body th { text-align:right; } \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/print.css b/primefaces-showcase/src/main/webapp/styles/blueprint/print.css new file mode 100755 index 0000000..fdb8220 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/styles/blueprint/print.css @@ -0,0 +1,29 @@ +/* ----------------------------------------------------------------------- + + + Blueprint CSS Framework 0.9 + http://blueprintcss.org + + * Copyright (c) 2007-Present. See LICENSE for more info. + * See README for instructions on how to use Blueprint. + * For credits and origins, see AUTHORS. + * This is a compressed file. See the sources in the 'src' directory. + +----------------------------------------------------------------------- */ + +/* print.css */ +body {line-height:1.5;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;color:#000;background:none;font-size:10pt;} +.container {background:none;} +hr {background:#ccc;color:#ccc;width:100%;height:2px;margin:2em 0;padding:0;border:none;} +hr.space {background:#fff;color:#fff;visibility:hidden;} +h1, h2, h3, h4, h5, h6 {font-family:"Helvetica Neue", Arial, "Lucida Grande", sans-serif;} +code {font:.9em "Courier New", Monaco, Courier, monospace;} +a img {border:none;} +p img.top {margin-top:0;} +blockquote {margin:1.5em;padding:1em;font-style:italic;font-size:.9em;} +.small {font-size:.9em;} +.large {font-size:1.1em;} +.quiet {color:#999;} +.hide {display:none;} +a:link, a:visited {background:transparent;font-weight:700;text-decoration:underline;} +a:link:after, a:visited:after {content:" (" attr(href) ")";font-size:90%;} \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/screen.css b/primefaces-showcase/src/main/webapp/styles/blueprint/screen.css new file mode 100755 index 0000000..c18b9a5 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/styles/blueprint/screen.css @@ -0,0 +1,280 @@ +/* ----------------------------------------------------------------------- + + + Blueprint CSS Framework 0.9 + http://blueprintcss.org + + * Copyright (c) 2007-Present. See LICENSE for more info. + * See README for instructions on how to use Blueprint. + * For credits and origins, see AUTHORS. + * This is a compressed file. See the sources in the 'src' directory. + +----------------------------------------------------------------------- */ + +/* reset.css */ +html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;} +body {line-height:1.5;} +table {border-collapse:separate;border-spacing:0;} +caption, th, td {text-align:left;font-weight:normal;} +table, td, th {vertical-align:middle;} +blockquote:before, blockquote:after, q:before, q:after {content:"";} +blockquote, q {quotes:"" "";} +a img {border:none;} + +/* typography.css */ +html {font-size:100.01%;} +body {font-size:75%;color:#222;background:#fff;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;} +h1, h2, h3, h4, h5, h6 {font-weight:normal;color:#111;} +h1 {font-size:3em;line-height:1;margin-bottom:0.5em;} +h2 {font-size:2em;margin-bottom:0.75em;} +h3 {font-size:1.5em;line-height:1;margin-bottom:1em;} +h4 {font-size:1.2em;line-height:1.25;margin-bottom:1.25em;} +h5 {font-size:1em;font-weight:bold;margin-bottom:1.5em;} +h6 {font-size:1em;font-weight:bold;} +h1 img, h2 img, h3 img, h4 img, h5 img, h6 img {margin:0;} +p {margin:0 0 1.5em;} +p img.left {float:left;margin:1.5em 1.5em 1.5em 0;padding:0;} +p img.right {float:right;margin:1.5em 0 1.5em 1.5em;} +a:focus, a:hover {color:#000;} +a {color:#009;text-decoration:underline;} +blockquote {margin:1.5em;color:#666;font-style:italic;} +strong {font-weight:bold;} +em, dfn {font-style:italic;} +dfn {font-weight:bold;} +sup, sub {line-height:0;} +abbr, acronym {border-bottom:1px dotted #666;} +address {margin:0 0 1.5em;font-style:italic;} +del {color:#666;} +pre {margin:1.5em 0;white-space:pre;} +pre, code, tt {font:1em 'andale mono', 'lucida console', monospace;line-height:1.5;} +li ul, li ol {margin:0 1.5em;} +ul, ol {margin:0 1.5em 1.5em 1.5em;} +ul {list-style-type:disc;} +ol {list-style-type:decimal;} +dl {margin:0 0 1.5em 0;} +dl dt {font-weight:bold;} +dd {margin-left:1.5em;} +table {margin-bottom:1.4em;width:100%;} +th {font-weight:bold;} +thead th {background:#c3d9ff;} +th, td, caption {padding:4px 10px 4px 5px;} +tr.even td {background:#e5ecf9;} +tfoot {font-style:italic;} +caption {background:#eee;} +.small {font-size:.8em;margin-bottom:1.875em;line-height:1.875em;} +.large {font-size:1.2em;line-height:2.5em;margin-bottom:1.25em;} +.hide {display:none;} +.quiet {color:#666;} +.loud {color:#000;} +.highlight {background:#ff0;} +.added {background:#060;color:#fff;} +.removed {background:#900;color:#fff;} +.first {margin-left:0;padding-left:0;} +.last {margin-right:0;padding-right:0;} +.top {margin-top:0;padding-top:0;} +.bottom {margin-bottom:0;padding-bottom:0;} + +/* forms.css */ +label {font-weight:bold;} +fieldset {padding:1.4em;margin:0 0 1.5em 0;border:1px solid #ccc;} +legend {font-weight:bold;font-size:1.2em;} +input[type=text], input[type=password], input.text, input.title, textarea, select {background-color:#fff;border:1px solid #bbb;} +input[type=text]:focus, input[type=password]:focus, input.text:focus, input.title:focus, textarea:focus, select:focus {border-color:#666;} +input[type=text], input[type=password], input.text, input.title, textarea, select {margin:0.5em 0;} +input.text, input.title {width:300px;padding:5px;} +input.title {font-size:1.5em;} +textarea {width:390px;height:250px;padding:5px;} +input[type=checkbox], input[type=radio], input.checkbox, input.radio {position:relative;top:.25em;} +form.inline {line-height:3;} +form.inline p {margin-bottom:0;} +.error, .notice, .success {padding:.8em;margin-bottom:1em;border:2px solid #ddd;} +.error {background:#FBE3E4;color:#8a1f11;border-color:#FBC2C4;} +.notice {background:#FFF6BF;color:#514721;border-color:#FFD324;} +.success {background:#E6EFC2;color:#264409;border-color:#C6D880;} +.error a {color:#8a1f11;} +.notice a {color:#514721;} +.success a {color:#264409;} + +/* grid.css */ +.container {width:950px;margin:0 auto;} +.showgrid {background:url(src/grid.png);} +.column, div.span-1, div.span-2, div.span-3, div.span-4, div.span-5, div.span-6, div.span-7, div.span-8, div.span-9, div.span-10, div.span-11, div.span-12, div.span-13, div.span-14, div.span-15, div.span-16, div.span-17, div.span-18, div.span-19, div.span-20, div.span-21, div.span-22, div.span-23, div.span-24 {float:left;margin-right:10px;} +.last, div.last {margin-right:0;} +.span-1 {width:30px;} +.span-2 {width:70px;} +.span-3 {width:110px;} +.span-4 {width:150px;} +.span-5 {width:190px;} +.span-6 {width:230px;} +.span-7 {width:270px;} +.span-8 {width:310px;} +.span-9 {width:350px;} +.span-10 {width:390px;} +.span-11 {width:430px;} +.span-12 {width:470px;} +.span-13 {width:510px;} +.span-14 {width:550px;} +.span-15 {width:590px;} +.span-16 {width:630px;} +.span-17 {width:670px;} +.span-18 {width:710px;} +.span-19 {width:750px;} +.span-20 {width:790px;} +.span-21 {width:830px;} +.span-22 {width:870px;} +.span-23 {width:910px;} +.span-24, div.span-24 {width:950px;margin-right:0;} +input.span-1, textarea.span-1, input.span-2, textarea.span-2, input.span-3, textarea.span-3, input.span-4, textarea.span-4, input.span-5, textarea.span-5, input.span-6, textarea.span-6, input.span-7, textarea.span-7, input.span-8, textarea.span-8, input.span-9, textarea.span-9, input.span-10, textarea.span-10, input.span-11, textarea.span-11, input.span-12, textarea.span-12, input.span-13, textarea.span-13, input.span-14, textarea.span-14, input.span-15, textarea.span-15, input.span-16, textarea.span-16, input.span-17, textarea.span-17, input.span-18, textarea.span-18, input.span-19, textarea.span-19, input.span-20, textarea.span-20, input.span-21, textarea.span-21, input.span-22, textarea.span-22, input.span-23, textarea.span-23, input.span-24, textarea.span-24 {border-left-width:1px!important;border-right-width:1px!important;padding-left:5px!important;padding-right:5px!important;} +input.span-1, textarea.span-1 {width:18px!important;} +input.span-2, textarea.span-2 {width:58px!important;} +input.span-3, textarea.span-3 {width:98px!important;} +input.span-4, textarea.span-4 {width:138px!important;} +input.span-5, textarea.span-5 {width:178px!important;} +input.span-6, textarea.span-6 {width:218px!important;} +input.span-7, textarea.span-7 {width:258px!important;} +input.span-8, textarea.span-8 {width:298px!important;} +input.span-9, textarea.span-9 {width:338px!important;} +input.span-10, textarea.span-10 {width:378px!important;} +input.span-11, textarea.span-11 {width:418px!important;} +input.span-12, textarea.span-12 {width:458px!important;} +input.span-13, textarea.span-13 {width:498px!important;} +input.span-14, textarea.span-14 {width:538px!important;} +input.span-15, textarea.span-15 {width:578px!important;} +input.span-16, textarea.span-16 {width:618px!important;} +input.span-17, textarea.span-17 {width:658px!important;} +input.span-18, textarea.span-18 {width:698px!important;} +input.span-19, textarea.span-19 {width:738px!important;} +input.span-20, textarea.span-20 {width:778px!important;} +input.span-21, textarea.span-21 {width:818px!important;} +input.span-22, textarea.span-22 {width:858px!important;} +input.span-23, textarea.span-23 {width:898px!important;} +input.span-24, textarea.span-24 {width:938px!important;} +.append-1 {padding-right:40px;} +.append-2 {padding-right:80px;} +.append-3 {padding-right:120px;} +.append-4 {padding-right:160px;} +.append-5 {padding-right:200px;} +.append-6 {padding-right:240px;} +.append-7 {padding-right:280px;} +.append-8 {padding-right:320px;} +.append-9 {padding-right:360px;} +.append-10 {padding-right:400px;} +.append-11 {padding-right:440px;} +.append-12 {padding-right:480px;} +.append-13 {padding-right:520px;} +.append-14 {padding-right:560px;} +.append-15 {padding-right:600px;} +.append-16 {padding-right:640px;} +.append-17 {padding-right:680px;} +.append-18 {padding-right:720px;} +.append-19 {padding-right:760px;} +.append-20 {padding-right:800px;} +.append-21 {padding-right:840px;} +.append-22 {padding-right:880px;} +.append-23 {padding-right:920px;} +.prepend-1 {padding-left:40px;} +.prepend-2 {padding-left:80px;} +.prepend-3 {padding-left:120px;} +.prepend-4 {padding-left:160px;} +.prepend-5 {padding-left:200px;} +.prepend-6 {padding-left:240px;} +.prepend-7 {padding-left:280px;} +.prepend-8 {padding-left:320px;} +.prepend-9 {padding-left:360px;} +.prepend-10 {padding-left:400px;} +.prepend-11 {padding-left:440px;} +.prepend-12 {padding-left:480px;} +.prepend-13 {padding-left:520px;} +.prepend-14 {padding-left:560px;} +.prepend-15 {padding-left:600px;} +.prepend-16 {padding-left:640px;} +.prepend-17 {padding-left:680px;} +.prepend-18 {padding-left:720px;} +.prepend-19 {padding-left:760px;} +.prepend-20 {padding-left:800px;} +.prepend-21 {padding-left:840px;} +.prepend-22 {padding-left:880px;} +.prepend-23 {padding-left:920px;} +div.border {padding-right:4px;margin-right:5px;border-right:1px solid #eee;} +div.colborder {padding-right:24px;margin-right:25px;border-right:1px solid #eee;} +.pull-1 {margin-left:-40px;} +.pull-2 {margin-left:-80px;} +.pull-3 {margin-left:-120px;} +.pull-4 {margin-left:-160px;} +.pull-5 {margin-left:-200px;} +.pull-6 {margin-left:-240px;} +.pull-7 {margin-left:-280px;} +.pull-8 {margin-left:-320px;} +.pull-9 {margin-left:-360px;} +.pull-10 {margin-left:-400px;} +.pull-11 {margin-left:-440px;} +.pull-12 {margin-left:-480px;} +.pull-13 {margin-left:-520px;} +.pull-14 {margin-left:-560px;} +.pull-15 {margin-left:-600px;} +.pull-16 {margin-left:-640px;} +.pull-17 {margin-left:-680px;} +.pull-18 {margin-left:-720px;} +.pull-19 {margin-left:-760px;} +.pull-20 {margin-left:-800px;} +.pull-21 {margin-left:-840px;} +.pull-22 {margin-left:-880px;} +.pull-23 {margin-left:-920px;} +.pull-24 {margin-left:-960px;} +.pull-1, .pull-2, .pull-3, .pull-4, .pull-5, .pull-6, .pull-7, .pull-8, .pull-9, .pull-10, .pull-11, .pull-12, .pull-13, .pull-14, .pull-15, .pull-16, .pull-17, .pull-18, .pull-19, .pull-20, .pull-21, .pull-22, .pull-23, .pull-24 {float:left;position:relative;} +.push-1 {margin:0 -40px 1.5em 40px;} +.push-2 {margin:0 -80px 1.5em 80px;} +.push-3 {margin:0 -120px 1.5em 120px;} +.push-4 {margin:0 -160px 1.5em 160px;} +.push-5 {margin:0 -200px 1.5em 200px;} +.push-6 {margin:0 -240px 1.5em 240px;} +.push-7 {margin:0 -280px 1.5em 280px;} +.push-8 {margin:0 -320px 1.5em 320px;} +.push-9 {margin:0 -360px 1.5em 360px;} +.push-10 {margin:0 -400px 1.5em 400px;} +.push-11 {margin:0 -440px 1.5em 440px;} +.push-12 {margin:0 -480px 1.5em 480px;} +.push-13 {margin:0 -520px 1.5em 520px;} +.push-14 {margin:0 -560px 1.5em 560px;} +.push-15 {margin:0 -600px 1.5em 600px;} +.push-16 {margin:0 -640px 1.5em 640px;} +.push-17 {margin:0 -680px 1.5em 680px;} +.push-18 {margin:0 -720px 1.5em 720px;} +.push-19 {margin:0 -760px 1.5em 760px;} +.push-20 {margin:0 -800px 1.5em 800px;} +.push-21 {margin:0 -840px 1.5em 840px;} +.push-22 {margin:0 -880px 1.5em 880px;} +.push-23 {margin:0 -920px 1.5em 920px;} +.push-24 {margin:0 -960px 1.5em 960px;} +.push-1, .push-2, .push-3, .push-4, .push-5, .push-6, .push-7, .push-8, .push-9, .push-10, .push-11, .push-12, .push-13, .push-14, .push-15, .push-16, .push-17, .push-18, .push-19, .push-20, .push-21, .push-22, .push-23, .push-24 {float:right;position:relative;} +.prepend-top {margin-top:1.5em;} +.append-bottom {margin-bottom:1.5em;} +.box {padding:1.5em;margin-bottom:1.5em;background:#E5ECF9;} +hr {background:#ddd;color:#ddd;clear:both;float:none;width:100%;height:.1em;margin:0 0 1.45em;border:none;} +hr.space {background:#fff;color:#fff;visibility:hidden;} +.clearfix:after, .container:after {content:"\0020";display:block;height:0;clear:both;visibility:hidden;overflow:hidden;} +.clearfix, .container {display:block;} +.clear {clear:both;} + +/* fancy-type */ +p + p {text-indent:2em;margin-top:-1.5em;} +form p + p {text-indent:0;} +.alt {color:#666;font-family:"Warnock Pro", "Goudy Old Style","Palatino","Book Antiqua", Georgia, serif;font-style:italic;font-weight:normal;} +.dquo {margin-left:-.5em;} +p.incr, .incr p {font-size:10px;line-height:1.44em;margin-bottom:1.5em;} +.caps {font-variant:small-caps;letter-spacing:1px;text-transform:lowercase;font-size:1.2em;line-height:1%;font-weight:bold;padding:0 2px;} + +/* buttons */ +a.button, button {display:block;float:left;margin:0.7em 0.5em 0.7em 0;padding:5px 10px 5px 7px;border:1px solid #dedede;border-top:1px solid #eee;border-left:1px solid #eee;background-color:#f5f5f5;font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif;font-size:100%;line-height:130%;text-decoration:none;font-weight:bold;color:#565656;cursor:pointer;} +button {width:auto;overflow:visible;padding:4px 10px 3px 7px;} +button[type] {padding:4px 10px 4px 7px;line-height:17px;} +*:first-child+html button[type] {padding:4px 10px 3px 7px;} +button img, a.button img {margin:0 3px -3px 0 !important;padding:0;border:none;width:16px;height:16px;float:none;} +button:hover, a.button:hover {background-color:#dff4ff;border:1px solid #c2e1ef;color:#336699;} +a.button:active {background-color:#6299c5;border:1px solid #6299c5;color:#fff;} +body .positive {color:#529214;} +a.positive:hover, button.positive:hover {background-color:#E6EFC2;border:1px solid #C6D880;color:#529214;} +a.positive:active {background-color:#529214;border:1px solid #529214;color:#fff;} +body .negative {color:#d12f19;} +a.negative:hover, button.negative:hover {background-color:#fbe3e4;border:1px solid #fbc2c4;color:#d12f19;} +a.negative:active {background-color:#d12f19;border:1px solid #d12f19;color:#fff;} \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/src/forms.css b/primefaces-showcase/src/main/webapp/styles/blueprint/src/forms.css new file mode 100755 index 0000000..b491134 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/styles/blueprint/src/forms.css @@ -0,0 +1,65 @@ +/* -------------------------------------------------------------- + + forms.css + * Sets up some default styling for forms + * Gives you classes to enhance your forms + + Usage: + * For text fields, use class .title or .text + * For inline forms, use .inline (even when using columns) + +-------------------------------------------------------------- */ + +label { font-weight: bold; } +fieldset { padding:1.4em; margin: 0 0 1.5em 0; border: 1px solid #ccc; } +legend { font-weight: bold; font-size:1.2em; } + + +/* Form fields +-------------------------------------------------------------- */ + +input[type=text], input[type=password], +input.text, input.title, +textarea, select { + background-color:#fff; + border:1px solid #bbb; +} +input[type=text]:focus, input[type=password]:focus, +input.text:focus, input.title:focus, +textarea:focus, select:focus { + border-color:#666; +} + +input[type=text], input[type=password], +input.text, input.title, +textarea, select { + margin:0.5em 0; +} + +input.text, +input.title { width: 300px; padding:5px; } +input.title { font-size:1.5em; } +textarea { width: 390px; height: 250px; padding:5px; } + +input[type=checkbox], input[type=radio], +input.checkbox, input.radio { + position:relative; top:.25em; +} + +form.inline { line-height:3; } +form.inline p { margin-bottom:0; } + + +/* Success, notice and error boxes +-------------------------------------------------------------- */ + +.error, +.notice, +.success { padding: .8em; margin-bottom: 1em; border: 2px solid #ddd; } + +.error { background: #FBE3E4; color: #8a1f11; border-color: #FBC2C4; } +.notice { background: #FFF6BF; color: #514721; border-color: #FFD324; } +.success { background: #E6EFC2; color: #264409; border-color: #C6D880; } +.error a { color: #8a1f11; } +.notice a { color: #514721; } +.success a { color: #264409; } diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/src/grid.css b/primefaces-showcase/src/main/webapp/styles/blueprint/src/grid.css new file mode 100755 index 0000000..352e0e2 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/styles/blueprint/src/grid.css @@ -0,0 +1,281 @@ +/* -------------------------------------------------------------- + grid.css + * Sets up an easy-to-use grid of 24 columns. + + By default, the grid is 950px wide, with 24 columns + spanning 30px, and a 10px margin between columns. + + If you need fewer or more columns, namespaces or semantic + element names, use the compressor script (lib/compress.rb) + + Note: Changes made in this file will not be applied when + using the compressor: make changes in lib/blueprint/grid.css.rb +-------------------------------------------------------------- */ + +/* A container should group all your columns. */ +.container { + width: 950px; + margin: 0 auto; +} + +/* Use this class on any div.span / container to see the grid. */ +.showgrid { + background: url(src/grid.png); +} + + +/* Columns +-------------------------------------------------------------- */ + +/* Sets up basic grid floating and margin. */ +.column, div.span-1, div.span-2, div.span-3, div.span-4, div.span-5, div.span-6, div.span-7, div.span-8, div.span-9, div.span-10, div.span-11, div.span-12, div.span-13, div.span-14, div.span-15, div.span-16, div.span-17, div.span-18, div.span-19, div.span-20, div.span-21, div.span-22, div.span-23, div.span-24 { + float: left; + margin-right: 10px; +} + +/* The last column in a row needs this class. */ +.last, div.last { margin-right: 0; } + +/* Use these classes to set the width of a column. */ +.span-1 {width: 30px;} + +.span-2 {width: 70px;} +.span-3 {width: 110px;} +.span-4 {width: 150px;} +.span-5 {width: 190px;} +.span-6 {width: 230px;} +.span-7 {width: 270px;} +.span-8 {width: 310px;} +.span-9 {width: 350px;} +.span-10 {width: 390px;} +.span-11 {width: 430px;} +.span-12 {width: 470px;} +.span-13 {width: 510px;} +.span-14 {width: 550px;} +.span-15 {width: 590px;} +.span-16 {width: 630px;} +.span-17 {width: 670px;} +.span-18 {width: 710px;} +.span-19 {width: 750px;} +.span-20 {width: 790px;} +.span-21 {width: 830px;} +.span-22 {width: 870px;} +.span-23 {width: 910px;} +.span-24, div.span-24 { width:950px; margin-right:0; } + +/* Use these classes to set the width of an input. */ +input.span-1, textarea.span-1, input.span-2, textarea.span-2, input.span-3, textarea.span-3, input.span-4, textarea.span-4, input.span-5, textarea.span-5, input.span-6, textarea.span-6, input.span-7, textarea.span-7, input.span-8, textarea.span-8, input.span-9, textarea.span-9, input.span-10, textarea.span-10, input.span-11, textarea.span-11, input.span-12, textarea.span-12, input.span-13, textarea.span-13, input.span-14, textarea.span-14, input.span-15, textarea.span-15, input.span-16, textarea.span-16, input.span-17, textarea.span-17, input.span-18, textarea.span-18, input.span-19, textarea.span-19, input.span-20, textarea.span-20, input.span-21, textarea.span-21, input.span-22, textarea.span-22, input.span-23, textarea.span-23, input.span-24, textarea.span-24 { + border-left-width: 1px!important; + border-right-width: 1px!important; + padding-left: 5px!important; + padding-right: 5px!important; +} + +input.span-1, textarea.span-1 { width: 18px!important; } +input.span-2, textarea.span-2 { width: 58px!important; } +input.span-3, textarea.span-3 { width: 98px!important; } +input.span-4, textarea.span-4 { width: 138px!important; } +input.span-5, textarea.span-5 { width: 178px!important; } +input.span-6, textarea.span-6 { width: 218px!important; } +input.span-7, textarea.span-7 { width: 258px!important; } +input.span-8, textarea.span-8 { width: 298px!important; } +input.span-9, textarea.span-9 { width: 338px!important; } +input.span-10, textarea.span-10 { width: 378px!important; } +input.span-11, textarea.span-11 { width: 418px!important; } +input.span-12, textarea.span-12 { width: 458px!important; } +input.span-13, textarea.span-13 { width: 498px!important; } +input.span-14, textarea.span-14 { width: 538px!important; } +input.span-15, textarea.span-15 { width: 578px!important; } +input.span-16, textarea.span-16 { width: 618px!important; } +input.span-17, textarea.span-17 { width: 658px!important; } +input.span-18, textarea.span-18 { width: 698px!important; } +input.span-19, textarea.span-19 { width: 738px!important; } +input.span-20, textarea.span-20 { width: 778px!important; } +input.span-21, textarea.span-21 { width: 818px!important; } +input.span-22, textarea.span-22 { width: 858px!important; } +input.span-23, textarea.span-23 { width: 898px!important; } +input.span-24, textarea.span-24 { width: 938px!important; } + +/* Add these to a column to append empty cols. */ + +.append-1 { padding-right: 40px;} +.append-2 { padding-right: 80px;} +.append-3 { padding-right: 120px;} +.append-4 { padding-right: 160px;} +.append-5 { padding-right: 200px;} +.append-6 { padding-right: 240px;} +.append-7 { padding-right: 280px;} +.append-8 { padding-right: 320px;} +.append-9 { padding-right: 360px;} +.append-10 { padding-right: 400px;} +.append-11 { padding-right: 440px;} +.append-12 { padding-right: 480px;} +.append-13 { padding-right: 520px;} +.append-14 { padding-right: 560px;} +.append-15 { padding-right: 600px;} +.append-16 { padding-right: 640px;} +.append-17 { padding-right: 680px;} +.append-18 { padding-right: 720px;} +.append-19 { padding-right: 760px;} +.append-20 { padding-right: 800px;} +.append-21 { padding-right: 840px;} +.append-22 { padding-right: 880px;} +.append-23 { padding-right: 920px;} + +/* Add these to a column to prepend empty cols. */ + +.prepend-1 { padding-left: 40px;} +.prepend-2 { padding-left: 80px;} +.prepend-3 { padding-left: 120px;} +.prepend-4 { padding-left: 160px;} +.prepend-5 { padding-left: 200px;} +.prepend-6 { padding-left: 240px;} +.prepend-7 { padding-left: 280px;} +.prepend-8 { padding-left: 320px;} +.prepend-9 { padding-left: 360px;} +.prepend-10 { padding-left: 400px;} +.prepend-11 { padding-left: 440px;} +.prepend-12 { padding-left: 480px;} +.prepend-13 { padding-left: 520px;} +.prepend-14 { padding-left: 560px;} +.prepend-15 { padding-left: 600px;} +.prepend-16 { padding-left: 640px;} +.prepend-17 { padding-left: 680px;} +.prepend-18 { padding-left: 720px;} +.prepend-19 { padding-left: 760px;} +.prepend-20 { padding-left: 800px;} +.prepend-21 { padding-left: 840px;} +.prepend-22 { padding-left: 880px;} +.prepend-23 { padding-left: 920px;} + + +/* Border on right hand side of a column. */ +div.border { + padding-right: 4px; + margin-right: 5px; + border-right: 1px solid #eee; +} + +/* Border with more whitespace, spans one column. */ +div.colborder { + padding-right: 24px; + margin-right: 25px; + border-right: 1px solid #eee; +} + + +/* Use these classes on an element to push it into the +next column, or to pull it into the previous column. */ + + +.pull-1 { margin-left: -40px; } +.pull-2 { margin-left: -80px; } +.pull-3 { margin-left: -120px; } +.pull-4 { margin-left: -160px; } +.pull-5 { margin-left: -200px; } +.pull-6 { margin-left: -240px; } +.pull-7 { margin-left: -280px; } +.pull-8 { margin-left: -320px; } +.pull-9 { margin-left: -360px; } +.pull-10 { margin-left: -400px; } +.pull-11 { margin-left: -440px; } +.pull-12 { margin-left: -480px; } +.pull-13 { margin-left: -520px; } +.pull-14 { margin-left: -560px; } +.pull-15 { margin-left: -600px; } +.pull-16 { margin-left: -640px; } +.pull-17 { margin-left: -680px; } +.pull-18 { margin-left: -720px; } +.pull-19 { margin-left: -760px; } +.pull-20 { margin-left: -800px; } +.pull-21 { margin-left: -840px; } +.pull-22 { margin-left: -880px; } +.pull-23 { margin-left: -920px; } +.pull-24 { margin-left: -960px; } + +.pull-1, .pull-2, .pull-3, .pull-4, .pull-5, .pull-6, .pull-7, .pull-8, .pull-9, .pull-10, .pull-11, .pull-12, .pull-13, .pull-14, .pull-15, .pull-16, .pull-17, .pull-18, .pull-19, .pull-20, .pull-21, .pull-22, .pull-23, .pull-24 {float: left; position:relative;} + + +.push-1 { margin: 0 -40px 1.5em 40px; } +.push-2 { margin: 0 -80px 1.5em 80px; } +.push-3 { margin: 0 -120px 1.5em 120px; } +.push-4 { margin: 0 -160px 1.5em 160px; } +.push-5 { margin: 0 -200px 1.5em 200px; } +.push-6 { margin: 0 -240px 1.5em 240px; } +.push-7 { margin: 0 -280px 1.5em 280px; } +.push-8 { margin: 0 -320px 1.5em 320px; } +.push-9 { margin: 0 -360px 1.5em 360px; } +.push-10 { margin: 0 -400px 1.5em 400px; } +.push-11 { margin: 0 -440px 1.5em 440px; } +.push-12 { margin: 0 -480px 1.5em 480px; } +.push-13 { margin: 0 -520px 1.5em 520px; } +.push-14 { margin: 0 -560px 1.5em 560px; } +.push-15 { margin: 0 -600px 1.5em 600px; } +.push-16 { margin: 0 -640px 1.5em 640px; } +.push-17 { margin: 0 -680px 1.5em 680px; } +.push-18 { margin: 0 -720px 1.5em 720px; } +.push-19 { margin: 0 -760px 1.5em 760px; } +.push-20 { margin: 0 -800px 1.5em 800px; } +.push-21 { margin: 0 -840px 1.5em 840px; } +.push-22 { margin: 0 -880px 1.5em 880px; } +.push-23 { margin: 0 -920px 1.5em 920px; } +.push-24 { margin: 0 -960px 1.5em 960px; } + +.push-1, .push-2, .push-3, .push-4, .push-5, .push-6, .push-7, .push-8, .push-9, .push-10, .push-11, .push-12, .push-13, .push-14, .push-15, .push-16, .push-17, .push-18, .push-19, .push-20, .push-21, .push-22, .push-23, .push-24 {float: right; position:relative;} + + +/* Misc classes and elements +-------------------------------------------------------------- */ + +/* In case you need to add a gutter above/below an element */ +.prepend-top { + margin-top:1.5em; +} +.append-bottom { + margin-bottom:1.5em; +} + +/* Use a .box to create a padded box inside a column. */ +.box { + padding: 1.5em; + margin-bottom: 1.5em; + background: #E5ECF9; +} + +/* Use this to create a horizontal ruler across a column. */ +hr { + background: #ddd; + color: #ddd; + clear: both; + float: none; + width: 100%; + height: .1em; + margin: 0 0 1.45em; + border: none; +} + +hr.space { + background: #fff; + color: #fff; + visibility: hidden; +} + + +/* Clearing floats without extra markup + Based on How To Clear Floats Without Structural Markup by PiE + [http://www.positioniseverything.net/easyclearing.html] */ + +.clearfix:after, .container:after { + content: "\0020"; + display: block; + height: 0; + clear: both; + visibility: hidden; + overflow:hidden; +} +.clearfix, .container {display: block;} + +/* Regular clearing + apply to column that should drop below previous ones. */ + +.clear { clear:both; } diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/src/grid.png b/primefaces-showcase/src/main/webapp/styles/blueprint/src/grid.png new file mode 100755 index 0000000..b7539f6 Binary files /dev/null and b/primefaces-showcase/src/main/webapp/styles/blueprint/src/grid.png differ diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/src/ie.css b/primefaces-showcase/src/main/webapp/styles/blueprint/src/ie.css new file mode 100755 index 0000000..214b879 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/styles/blueprint/src/ie.css @@ -0,0 +1,76 @@ +/* -------------------------------------------------------------- + + ie.css + + Contains every hack for Internet Explorer, + so that our core files stay sweet and nimble. + +-------------------------------------------------------------- */ + +/* Make sure the layout is centered in IE5 */ +body { text-align: center; } +.container { text-align: left; } + +/* Fixes IE margin bugs */ +* html .column, * html div.span-1, * html div.span-2, +* html div.span-3, * html div.span-4, * html div.span-5, +* html div.span-6, * html div.span-7, * html div.span-8, +* html div.span-9, * html div.span-10, * html div.span-11, +* html div.span-12, * html div.span-13, * html div.span-14, +* html div.span-15, * html div.span-16, * html div.span-17, +* html div.span-18, * html div.span-19, * html div.span-20, +* html div.span-21, * html div.span-22, * html div.span-23, +* html div.span-24 { display:inline; overflow-x: hidden; } + + +/* Elements +-------------------------------------------------------------- */ + +/* Fixes incorrect styling of legend in IE6. */ +* html legend { margin:0px -8px 16px 0; padding:0; } + +/* Fixes wrong line-height on sup/sub in IE. */ +sup { vertical-align:text-top; } +sub { vertical-align:text-bottom; } + +/* Fixes IE7 missing wrapping of code elements. */ +html>body p code { *white-space: normal; } + +/* IE 6&7 has problems with setting proper
margins. */ +hr { margin:-8px auto 11px; } + +/* Explicitly set interpolation, allowing dynamically resized images to not look horrible */ +img { -ms-interpolation-mode:bicubic; } + +/* Clearing +-------------------------------------------------------------- */ + +/* Makes clearfix actually work in IE */ +.clearfix, .container { display:inline-block; } +* html .clearfix, +* html .container { height:1%; } + + +/* Forms +-------------------------------------------------------------- */ + +/* Fixes padding on fieldset */ +fieldset { padding-top:0; } + +/* Makes classic textareas in IE 6 resemble other browsers */ +textarea { overflow:auto; } + +/* Fixes rule that IE 6 ignores */ +input.text, input.title, textarea { background-color:#fff; border:1px solid #bbb; } +input.text:focus, input.title:focus { border-color:#666; } +input.text, input.title, textarea, select { margin:0.5em 0; } +input.checkbox, input.radio { position:relative; top:.25em; } + +/* Fixes alignment of inline form elements */ +form.inline div, form.inline p { vertical-align:middle; } +form.inline label { position:relative;top:-0.25em; } +form.inline input.checkbox, form.inline input.radio, +form.inline input.button, form.inline button { + margin:0.5em 0; +} +button, input.button { position:relative;top:0.25em; } \ No newline at end of file diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/src/print.css b/primefaces-showcase/src/main/webapp/styles/blueprint/src/print.css new file mode 100755 index 0000000..d303029 --- /dev/null +++ b/primefaces-showcase/src/main/webapp/styles/blueprint/src/print.css @@ -0,0 +1,85 @@ +/* -------------------------------------------------------------- + + print.css + * Gives you some sensible styles for printing pages. + * See Readme file in this directory for further instructions. + + Some additions you'll want to make, customized to your markup: + #header, #footer, #navigation { display:none; } + +-------------------------------------------------------------- */ + +body { + line-height: 1.5; + font-family: "Helvetica Neue", Arial, Helvetica, sans-serif; + color:#000; + background: none; + font-size: 10pt; +} + + +/* Layout +-------------------------------------------------------------- */ + +.container { + background: none; +} + +hr { + background:#ccc; + color:#ccc; + width:100%; + height:2px; + margin:2em 0; + padding:0; + border:none; +} +hr.space { + background: #fff; + color: #fff; + visibility: hidden; +} + + +/* Text +-------------------------------------------------------------- */ + +h1,h2,h3,h4,h5,h6 { font-family: "Helvetica Neue", Arial, "Lucida Grande", sans-serif; } +code { font:.9em "Courier New", Monaco, Courier, monospace; } + +a img { border:none; } +p img.top { margin-top: 0; } + +blockquote { + margin:1.5em; + padding:1em; + font-style:italic; + font-size:.9em; +} + +.small { font-size: .9em; } +.large { font-size: 1.1em; } +.quiet { color: #999; } +.hide { display:none; } + + +/* Links +-------------------------------------------------------------- */ + +a:link, a:visited { + background: transparent; + font-weight:700; + text-decoration: underline; +} + +a:link:after, a:visited:after { + content: " (" attr(href) ")"; + font-size: 90%; +} + +/* If you're having trouble printing relative links, uncomment and customize this: + (note: This is valid CSS3, but it still won't go through the W3C CSS Validator) */ + +/* a[href^="/"]:after { + content: " (http://www.yourdomain.com" attr(href) ") "; +} */ diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/src/reset.css b/primefaces-showcase/src/main/webapp/styles/blueprint/src/reset.css new file mode 100755 index 0000000..fc0788c --- /dev/null +++ b/primefaces-showcase/src/main/webapp/styles/blueprint/src/reset.css @@ -0,0 +1,38 @@ +/* -------------------------------------------------------------- + + reset.css + * Resets default browser CSS. + +-------------------------------------------------------------- */ + +html, body, div, span, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, code, +del, dfn, em, img, q, dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td { + margin: 0; + padding: 0; + border: 0; + font-weight: inherit; + font-style: inherit; + font-size: 100%; + font-family: inherit; + vertical-align: baseline; +} + +body { + line-height: 1.5; +} + +/* Tables still need 'cellspacing="0"' in the markup. */ +table { border-collapse: separate; border-spacing: 0; } +caption, th, td { text-align: left; font-weight: normal; } +table, td, th { vertical-align: middle; } + +/* Remove possible quote marks (") from ,
. */ +blockquote:before, blockquote:after, q:before, q:after { content: ""; } +blockquote, q { quotes: "" ""; } + +/* Remove annoying border on linked images. */ +a img { border: none; } diff --git a/primefaces-showcase/src/main/webapp/styles/blueprint/src/typography.css b/primefaces-showcase/src/main/webapp/styles/blueprint/src/typography.css new file mode 100755 index 0000000..6cc099c --- /dev/null +++ b/primefaces-showcase/src/main/webapp/styles/blueprint/src/typography.css @@ -0,0 +1,106 @@ +/* -------------------------------------------------------------- + + typography.css + * Sets up some sensible default typography. + +-------------------------------------------------------------- */ + +/* Default font settings. + The font-size percentage is of 16px. (0.75 * 16px = 12px) */ +html { font-size:100.01%; } +body { + font-size: 75%; + color: #222; + background: #fff; + font-family: "Helvetica Neue", Arial, Helvetica, sans-serif; +} + + +/* Headings +-------------------------------------------------------------- */ + +h1,h2,h3,h4,h5,h6 { font-weight: normal; color: #111; } + +h1 { font-size: 3em; line-height: 1; margin-bottom: 0.5em; } +h2 { font-size: 2em; margin-bottom: 0.75em; } +h3 { font-size: 1.5em; line-height: 1; margin-bottom: 1em; } +h4 { font-size: 1.2em; line-height: 1.25; margin-bottom: 1.25em; } +h5 { font-size: 1em; font-weight: bold; margin-bottom: 1.5em; } +h6 { font-size: 1em; font-weight: bold; } + +h1 img, h2 img, h3 img, +h4 img, h5 img, h6 img { + margin: 0; +} + + +/* Text elements +-------------------------------------------------------------- */ + +p { margin: 0 0 1.5em; } +p img.left { float: left; margin: 1.5em 1.5em 1.5em 0; padding: 0; } +p img.right { float: right; margin: 1.5em 0 1.5em 1.5em; } + +a:focus, +a:hover { color: #000; } +a { color: #009; text-decoration: underline; } + +blockquote { margin: 1.5em; color: #666; font-style: italic; } +strong { font-weight: bold; } +em,dfn { font-style: italic; } +dfn { font-weight: bold; } +sup, sub { line-height: 0; } + +abbr, +acronym { border-bottom: 1px dotted #666; } +address { margin: 0 0 1.5em; font-style: italic; } +del { color:#666; } + +pre { margin: 1.5em 0; white-space: pre; } +pre,code,tt { font: 1em 'andale mono', 'lucida console', monospace; line-height: 1.5; } + + +/* Lists +-------------------------------------------------------------- */ + +li ul, +li ol { margin: 0; } +ul, ol { margin: 0 1.5em 1.5em 0; padding-left: 3.333em; } + +ul { list-style-type: disc; } +ol { list-style-type: decimal; } + +dl { margin: 0 0 1.5em 0; } +dl dt { font-weight: bold; } +dd { margin-left: 1.5em;} + + +/* Tables +-------------------------------------------------------------- */ + +table { margin-bottom: 1.4em; width:100%; } +th { font-weight: bold; } +thead th { background: #c3d9ff; } +th,td,caption { padding: 4px 10px 4px 5px; } +tr.even td { background: #e5ecf9; } +tfoot { font-style: italic; } +caption { background: #eee; } + + +/* Misc classes +-------------------------------------------------------------- */ + +.small { font-size: .8em; margin-bottom: 1.875em; line-height: 1.875em; } +.large { font-size: 1.2em; line-height: 2.5em; margin-bottom: 1.25em; } +.hide { display: none; } + +.quiet { color: #666; } +.loud { color: #000; } +.highlight { background:#ff0; } +.added { background:#060; color: #fff; } +.removed { background:#900; color: #fff; } + +.first { margin-left:0; padding-left:0; } +.last { margin-right:0; padding-right:0; } +.top { margin-top:0; padding-top:0; } +.bottom { margin-bottom:0; padding-bottom:0; }