/magstudentportal/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/magstudentportal/trunk

« back to all changes in this revision

Viewing changes to src/main/java/beans/ConfigBean.java

  • Committer: Gustav Hartvigsson
  • Date: 2017-08-23 07:33:51 UTC
  • mto: (15.1.9 magstudentportal-more-db)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: gustav.hartvigsson@gmail.com-20170823073351-el0kay8wsdejx9tj
* Added JUnit and javax.faces dependancies to the pom.xml.
* Added a ConfigBean, so that some settings and such
  that are used in many places be easier to handle.
* Made the page_header.xhtml template strings from the ConfigBean.
* Started to add tests.

* TODO; Figure out why the balls <h:head> ans <h:body> is not renderd.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import java.io.Serializable;
 
2
 
 
3
import javax.faces.bean.*;
 
4
 
 
5
 
 
6
@SuppressWarnings({ "serial", "deprecation" })
 
7
@ManagedBean(name = "configBean", eager = true)
 
8
@ApplicationScoped
 
9
public class
 
10
ConfigBean implements Serializable {
 
11
  /****************************************************************************/
 
12
  private static String
 
13
  PAGE_TITLE = "MAG Student Portal";
 
14
  
 
15
  private String
 
16
  PAGE_SUB_TITLE = "My school";
 
17
  
 
18
  
 
19
  /****************************************************************************/
 
20
  public String
 
21
  getPageTitle () {
 
22
    return PAGE_TITLE;
 
23
  }
 
24
  
 
25
  
 
26
  public String
 
27
  getSubTitle () {
 
28
    return PAGE_SUB_TITLE;
 
29
  }
 
30
}