Announcement Announcement Module
Collapse
No announcement yet.
JSF 1.2 Handler,Convertor,Validator,Listener application design architecture Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JSF 1.2 Handler,Convertor,Validator,Listener application design architecture

    I want to design the application in JSF 1.2. I want to create clear separation of managed bean,bean handler, action handler,validator,converter,
    exception handler,authentication interceptor, Datamodeller. I have mentioned couple of methods.

    1.Managed bean Inner Classes has Action Handler,Validator,Converter and Model components
    Manged bean handler will take all the actions.Please find the pseuodo code

    public class Emloyee{

    private Integer ID;
    private String name;

    class EmployeeValidator {
    NumberValidator numberValidator;

    public void validate(Integer num) {
    numberValidator.validate(num)
    }
    }

    class EmployeeConverter {
    IntegerConvertor integerConverter;

    public void convert(Integer num) {
    integerConvertor.setFraction(2)
    }
    }
    }

    public class EmployeeHandler{
    public Employee emploee;

    public void action(ActionEvent e) {

    }

    public void isValidEmail() {
    employee.new EmployeeValidator().validate();
    }

    public void intConverter() {
    employee.new EmployeeConverter ().convert();
    }
    }

    Client.jsp
    ------------

    button=#{employeeHandler.action}
    convertor=#{employeeHandler.intConverter}
    validator=#{employeeHandler.isValidEmail}

    2.Seperate of Action Handler,Validator,Convertor is the public class. Bean handler will handle all the actions.


    3.We have date picker component, in jsf 1.2 we done have date picker.
    What is the best solution Writing Custom Components,Introducing DOJO or MyFaces lib?.

    Please provide how do design the detailed applcation architecture in JSF 1.2.


    Thanks
Working...
X