The code is below. But like I said, as a portlet, it never gets called (the 
debugger never stops there).


  |     public String doSearch () {
  |             // get the current user by pulling from the session object 
  |             String ls_user_name = null; OagIdVaultAccount oagIdVaultAccount 
= null;
  |             ApplicationSecurity applicationSecurity = null;
  |             HttpSession lo_HttpSession = 
(HttpSession)FacesContext.getCurrentInstance().
  |                     getExternalContext().getSession(false);
  |             Object lo_security = 
lo_HttpSession.getAttribute(DpsLicenseInquiryConstants.CS_VISIT_KEY);
  |             if ( lo_security instanceof OagIdVaultAccount ) {
  |                     oagIdVaultAccount = (OagIdVaultAccount)lo_security;
  |                     ls_user_name = oagIdVaultAccount.getCommonName();
  |             } else {
  |                     applicationSecurity = (ApplicationSecurity)lo_security;
  |                     ls_user_name = applicationSecurity.getUserLogin();
  |             }
  |             // reset the record pointer
  |             ci_rowIndex = 0;
  |             // bundle up the search criteria
  |             DpsDriverCriteria lo_DpsDriverCriteria = new 
DpsDriverCriteria();
  |             lo_DpsDriverCriteria.setLicenseNumber(cs_search_dl);
  |             lo_DpsDriverCriteria.setDriverName(cs_search_name);
  |             lo_DpsDriverCriteria.setDriverAddress(cs_search_address);
  |             lo_DpsDriverCriteria.setDriverCity(cs_search_city);
  |             lo_DpsDriverCriteria.setDriverClass(cs_search_class);
  |             lo_DpsDriverCriteria.setDriverDob(cs_search_dob);
  |             lo_DpsDriverCriteria.setUserName(ls_user_name);
  |             if ( !lo_DpsDriverCriteria.validCriteria() ) {
  |                     getFacesContext().addMessage(null,
  |                             new FacesMessage(FacesMessage.SEVERITY_WARN, 
"You must enter at least one criteria.", null));
  |                     return DpsLicenseInquiryConstants.CS_FAILURE;
  |             }
  | 
  |             try {
  |                     // attempt to connect to the database
  |                     DpsLicenseRepository lo_DpsLicenseRepository = new 
DpsLicenseRepository();
  |                     // do the search
  |                     co_search_results_list = 
lo_DpsLicenseRepository.getDrivers(lo_DpsDriverCriteria);
  |                     cs_elapsed_time = 
OagStringUtils.formatElapsedTime(lo_DpsLicenseRepository.getElapsedSearchTime());
  |             } catch (SQLException e) {
  |                     getFacesContext().addMessage(null,
  |                             new FacesMessage(FacesMessage.SEVERITY_FATAL, 
"Unable to connect to database!", 
  |                                     e.toString()));
  |                     e.printStackTrace();
  |             }
  |             
  |             if ( co_search_results_list != null ) {
  |                     return DpsLicenseInquiryConstants.CS_SUCCESS;
  |             } else {
  |                     return DpsLicenseInquiryConstants.CS_FAILURE; 
  |             }
  |     }
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999486#3999486

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3999486
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to