/src/main/java/com/googlecode/struts2yuiplugin/views/freemarker/tags/DatePickerModel.java

http://struts2yuiplugin.googlecode.com/ · Java · 24 lines · 17 code · 7 blank · 0 comment · 0 complexity · 80306eb8848ca3ec27b7265aae5df27c MD5 · raw file

  1. package com.googlecode.struts2yuiplugin.views.freemarker.tags;
  2. import javax.servlet.http.HttpServletRequest;
  3. import javax.servlet.http.HttpServletResponse;
  4. import org.apache.struts2.components.Component;
  5. import org.apache.struts2.views.freemarker.tags.TagModel;
  6. import com.googlecode.struts2yuiplugin.components.DatePicker;
  7. import com.opensymphony.xwork2.util.ValueStack;
  8. public class DatePickerModel extends TagModel {
  9. public DatePickerModel(ValueStack stack, HttpServletRequest req,
  10. HttpServletResponse res) {
  11. super(stack, req, res);
  12. }
  13. @Override
  14. protected Component getBean() {
  15. return new DatePicker(this.stack, this.req, this.res);
  16. }
  17. }