Skip to content

Commit

Permalink
issue #2 reverted @nAmed because CDI is not activated in the project
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanrauh committed May 30, 2015
1 parent c6894b2 commit 1bed5b6
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 43 deletions.
9 changes: 2 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@
<dependency>
<groupId>de.beyondjava</groupId>
<artifactId>angularFaces-core</artifactId>
<version>2.1.4</version>
<version>2.1.5</version>
</dependency>
<!-- coming soon: <dependency> <groupId>de.beyondjava</groupId> <artifactId>angularFaces-widgets</artifactId>
<version>2.2.0-SNAPSHOT</version> </dependency> -->
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>5.1</version>
<version>5.2</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -103,11 +103,6 @@
<version>1.10</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<version>1.2</version>
</dependency>
</dependencies>
<profiles>
<profile>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/net/bootsfaces/demo/BarcodeBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
*/
package net.bootsfaces.demo;

import javax.faces.bean.ManagedBean;
import javax.faces.view.ViewScoped;
import javax.inject.Named;

/**
* This bean is used by the PrimeFaces barcode demo.
* @author Stephan Rauh, http://www.beyondjava.net
*/
@ViewScoped
@Named
@ManagedBean
public class BarcodeBean {
private String code39 = "1234567890128";
private String protocol = "http://";
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/net/bootsfaces/demo/CarBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@

package net.bootsfaces.demo;

import javax.inject.Named;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/** A simple bean for demo purposes. */
@javax.enterprise.context.RequestScoped
@Named
@RequestScoped
@ManagedBean
public class CarBean {
@NotNull
private String brand=null;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/net/bootsfaces/demo/ClockBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
import java.io.Serializable;
import java.util.Calendar;

import javax.enterprise.context.RequestScoped;
import javax.inject.Named;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

/**
* @author Stephan Rauh, http://www.beyondjava.net
*/
@Named
@ManagedBean
@RequestScoped
public class ClockBean implements Serializable {
private static final long serialVersionUID = 5497787734011747081L;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/net/bootsfaces/demo/DateBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
import java.io.Serializable;
import java.util.Date;

import javax.enterprise.context.RequestScoped;
import javax.inject.Named;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
*
* @author TheCoder4eu
*/
@Named
@ManagedBean
@RequestScoped
public class DateBean implements Serializable {
private static final long serialVersionUID = -7642332089180105956L;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/net/bootsfaces/demo/InformBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

import java.io.Serializable;

import javax.enterprise.context.RequestScoped;
import javax.inject.Named;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
*
* @author TheCoder4eu
*/
@Named
@ManagedBean
@RequestScoped
public class InformBean implements Serializable {
private static final long serialVersionUID = 3776366707374123185L;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/net/bootsfaces/demo/ItemBean.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package net.bootsfaces.demo;

import javax.enterprise.context.RequestScoped;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.model.ArrayDataModel;
import javax.faces.model.DataModel;
import javax.inject.Named;

/**
* Data Model Bean for Items
* @author Thecoder4.eu
*/
@Named
@ManagedBean
@RequestScoped
public class ItemBean {

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/net/bootsfaces/demo/LoremIpsumBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@

import java.util.StringTokenizer;

import javax.enterprise.context.RequestScoped;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.model.ArrayDataModel;
import javax.faces.model.DataModel;
import javax.inject.Named;

/**
* Data Model Bean for Items
* @author Thecoder4.eu
*/
@Named
@ManagedBean
@RequestScoped
public class LoremIpsumBean {

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/net/bootsfaces/demo/PollDemoBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

import java.util.Date;

import javax.enterprise.context.RequestScoped;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.event.ActionEvent;
import javax.inject.Named;

@RequestScoped
@Named
@ManagedBean
public class PollDemoBean {

private int counter=0;
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/net/bootsfaces/demo/SemaphoreBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
import java.util.List;
import java.util.Map;

import javax.inject.Named;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.validation.constraints.NotNull;

/** A simple bean for demo purposes. */
@javax.enterprise.context.RequestScoped
@Named
@RequestScoped
@ManagedBean
public class SemaphoreBean {
@NotNull
private String color = null;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/net/bootsfaces/demo/SettingsBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@

package net.bootsfaces.demo;

import javax.enterprise.context.RequestScoped;
import javax.inject.Named;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/** A simple bean for demo purposes. */
@RequestScoped
@Named
@ManagedBean
public class SettingsBean {
private int value1;
private int value2;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/net/bootsfaces/demo/TestBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

import java.io.Serializable;

import javax.enterprise.context.RequestScoped;
import javax.inject.Named;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
*
* @author TheCoder4eu
*/
@Named
@ManagedBean
@RequestScoped
public class TestBean implements Serializable {
private static final long serialVersionUID = -332002335165889800L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
import java.util.ArrayList;
import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.event.ComponentSystemEvent;
import javax.faces.view.ViewScoped;
import javax.inject.Named;

@Named
@ManagedBean
@ViewScoped
public class SoccerTeamBean implements Serializable {
private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
import java.util.Date;

import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.context.FacesContext;
import javax.inject.Named;

import org.primefaces.context.RequestContext;
import org.primefaces.event.SelectEvent;

@Named
@ManagedBean
public class CalendarView {

private Date date1;
Expand Down

0 comments on commit 1bed5b6

Please sign in to comment.