Starting with JSF 1.2, you can specify managed bean methods that are automatically called just after the bean has been constructed and just before the bean goes out of scope. This is particularly convenient for beans that establish connections to external resources such as databases. Annotate the methods with @PostConstruct or @PreDestroy, like this: public class MyBean { @PostConstruct public v..
JSF is becoming more popular framework for user interface layer development, many architects and companies assuming that Struts is becoming outdated and JSF is catching up the market. I am not sure whether it is true at this point of time. However I would like express my critic on the advantages and disadvantages of JSF. Advantages Big vendors (Oracle, IBM, JBoss, etc) backing JSF implementation..
Open Source Components Use myfaces or Sun RI. I feel it doesn’t matter because both comes from Sun. Sun offers myfaces through open-source community. Use richfaces to get rich look quicker. Click here to go to demo site. Use facelets to avoid compilation time and better code readability. IDE Use eclipse latest version Use richfaces eclipse plugin. It offers Visual Page Editor for Richfaces, JSF,..
Introduction to JSF JavaServer Faces is a framework that simplifies development of sophisticated web application user interfaces, primarily by defining a user interface component model tied a well defined request processing life cycle. Objectives of JSF To provide event-driven component based technology for developoing web applications. To separate the user interface from the model objects that ..
In case of validator for multiple fields, you have to use a f:attribute facet(s) to attach the validator to the last component of the group (components are rendered, validated, converted and updated in the same order as you define them in the JSF view) and pass the client ID of the other component(s). In some of cases, you may confused to use an attribute field(s) in f:attribute value. For insta..
Validator for multiple fields Introduction Validators in JSF are nice. They, however, have its short comings. They will by default validate only on fields at once. There is no standard way to attach one validator to multiple fields. Although there are some situations where you want this kind of functionality. For example validating the password confirmation field, validating the range of two num..
Creating Custom JSF Validation You can add your own validation logic to meet your specific business nedds. If you need custom validation logic for a component on a single page, you can create a validation method on the page's backing bean. Creating the validation method on a backing bean is also useful when you need validation to access other fields on the page. For example, if you have separate..
- Total
- Today
- Yesterday
- Oracle
- zookeeper
- spring boot
- bouncycastle
- Guava
- Kubernetes
- install
- log4j
- JSF
- nodejs
- Maven
- svn
- Java
- Heap
- ubuntu
- dump
- bash
- SMPP
- monitoring
- jboss
- SBM
- spring
- docker
- EMV
- OOP
- ssh
- Tomcat
- Jose
- Dependency
- Shell
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |