日期:2014-05-16  浏览次数:20390 次

JSF的问题,希望那位可以指出问题所在
backbean的所有代码
  1. package?org.hblz.common.web.jsf; ??
  2. ??
  3. import?javax.faces.component.html.HtmlSelectOneListbox; ??
  4. import?javax.faces.event.ValueChangeEvent; ??
  5. import?javax.faces.model.SelectItem; ??
  6. ??
  7. import?org.apache.log4j.Logger; ??
  8. ??
  9. public?class?UserBean?{ ??
  10. ??
  11. ????@SuppressWarnings("unused") ??
  12. ????private?static?final?Logger?log?=?Logger.getLogger(UserBean.class); ??
  13. ??
  14. ????private?String?message; ??
  15. ??
  16. ????private?SelectItem[]?countyList?=?new?SelectItem[0]; ??
  17. ??
  18. ????private?Long?countyId; ??
  19. ??
  20. ????private?HtmlSelectOneListbox?countySelectList; ??
  21. ??
  22. ????private?SelectItem[]?townList?=?new?SelectItem[0]; ??
  23. ??
  24. ????private?Long?townId; ??
  25. ??
  26. ????private?HtmlSelectOneListbox?townSelectList; ??
  27. ??
  28. ????public?void?processCountySelectListChange(ValueChangeEvent?event)?{ ??
  29. ??
  30. ????????this.message?=?"hello?county!"; ??
  31. ??
  32. ????????Long?newValue?=?(Long)?event.getNewValue(); ??
  33. ??
  34. ????????townList?=?null; ??
  35. ??
  36. ????????townList?=?new?SelectItem[10]; ??
  37. ????????for?(int?i?=?0;?i?<?10;?i++)?{ ??
  38. ?????