Java Server Faces project stage
- Development
- Production
- SystemTest
- UnitTest
Compilation of already published Articles/Ideas/Problems-Solutions which I faced or came across over the period of time. Largely a place for me to document it as note-to-self. Nothing serious. :)
1.
<
context-param
>
2.
<
param-name
>javax.faces.PROJECT_STAGE</
param-name
>
3.
<
param-value
>Development</
param-value
>
4.
</
context-param
>
1.
#{facesContext.application.projectStage}
2.
#{initParam['javax.faces.PROJECT_STAGE']}
01.
public
enum
ProjectStage
02.
{
03.
Development,
04.
Production,
05.
SystemTest,
06.
UnitTest;
07.
08.
public
static
final
String PROJECT_STAGE_JNDI_NAME =
"java:comp/env/jsf/ProjectStage"
;
09.
public
static
final
String PROJECT_STAGE_PARAM_NAME =
"javax.faces.PROJECT_STAGE"
;
10.
}
1.
FacesContext facesContext = FacesContext.getCurrentInstance();
2.
Application application = facesContext.getApplication();
3.
if
(application.getProjectStage() == ProjectStage.Development) {
4.
// Define development settings
5.
}
1.
FacesContext facesContext = FacesContext.getCurrentInstance();
2.
if
(facesContext.isProjectStage(ProjectStage.Development)) {
3.
// Define development settings
4.
}
Great Article
JSF Online Training | JSF Training | JSF Training Courses | Java Training Institutes in Chennai | Java Training in Chennai | Java Course in Chennai | JSF Interview Questions
jordan pas cher, chanel handbags, nike outlet, michael kors pas cher, kate spade outlet, replica watches, longchamp pas cher, nike free, jordan shoes, christian louboutin shoes, nike free run, louis vuitton outlet, oakley sunglasses, ray ban sunglasses, polo ralph lauren, ugg boots, christian louboutin uk, air max, louis vuitton outlet, ugg boots, tiffany jewelry, polo ralph lauren outlet online, burberry pas cher, prada outlet, nike air max, gucci handbags, sac longchamp pas cher, ray ban sunglasses, louboutin pas cher, louis vuitton, uggs on sale, tiffany and co, oakley sunglasses, louis vuitton outlet, ray ban sunglasses, longchamp outlet, louis vuitton, longchamp outlet, replica watches, nike roshe, polo outlet, oakley sunglasses, cheap oakley sunglasses, oakley sunglasses wholesale, christian louboutin, christian louboutin outlet, tory burch outlet
lululemon canada, nike air max, burberry outlet, oakley pas cher, burberry handbags, coach outlet store online, kate spade, michael kors outlet, michael kors, nike air force, true religion jeans, true religion outlet, michael kors, polo lacoste, nike tn, new balance, abercrombie and fitch uk, michael kors outlet, uggs outlet, michael kors outlet, ralph lauren uk, michael kors outlet online, replica handbags, coach outlet, true religion outlet, coach purses, nike free uk, sac vanessa bruno, mulberry uk, michael kors outlet online, michael kors outlet online, michael kors outlet online, north face, uggs outlet, converse pas cher, hogan outlet, nike air max uk, hollister pas cher, sac hermes, nike roshe run uk, hollister uk, nike air max uk, true religion outlet, timberland pas cher, vans pas cher, ray ban pas cher, guess pas cher, ray ban uk
www0626
canada goose outlet
longchamp bags
barbour jackets
san francisco 49ers jerseys
pandora charms
indianapolis colts jerseys
air jordan shoes
oakley sunglasses
pandora charms
givenchy handbags
Comments