Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

Thread: can't get mongodb, jsf to run mvn tomcat:run or jetty:run

  1. #11
    Join Date
    Jul 2012
    Posts
    12

    Default

    You just have to do this :
    You need to add locale support of your country in faces-config.xml and add a file in folder i18n.

    you don't need to add a bean for that.

  2. #12
    Join Date
    Dec 2012
    Posts
    16

    Default

    that was already done but it still doesn't work...

    http://forum.springsource.org/showth...831#post432831

  3. #13
    Join Date
    Jul 2012
    Posts
    12

    Default

    Could you send faces-config.xml and the list of files you have under i18n?

  4. #14
    Join Date
    Dec 2012
    Posts
    16

    Default

    the app is in skunk-works so i'll send you the files separately via IM.

  5. #15
    Join Date
    Jul 2012
    Posts
    12

    Default

    Is your desktop english Locale?

  6. #16
    Join Date
    Dec 2012
    Posts
    16

    Default

    yes i think it's english locale. my desktop is ubuntu linux. any way to be sure?

  7. #17
    Join Date
    Dec 2012
    Posts
    16

    Default

    ~/Documents/workspace-sts-3.1.0.RELEASE $ locale
    LANG=en_US.UTF-8
    LANGUAGE=
    LC_CTYPE="en_US.UTF-8"
    LC_NUMERIC="en_US.UTF-8"
    LC_TIME="en_US.UTF-8"
    LC_COLLATE="en_US.UTF-8"
    LC_MONETARY="en_US.UTF-8"
    LC_MESSAGES="en_US.UTF-8"
    LC_PAPER="en_US.UTF-8"
    LC_NAME="en_US.UTF-8"
    LC_ADDRESS="en_US.UTF-8"
    LC_TELEPHONE="en_US.UTF-8"
    LC_MEASUREMENT="en_US.UTF-8"
    LC_IDENTIFICATION="en_US.UTF-8"
    LC_ALL=

  8. #18
    Join Date
    Jul 2012
    Posts
    12

    Default

    You don't have to declare this :

    <managed-bean>
    <managed-bean-name>localeBean</managed-bean-name>
    <managed-bean-class>com.vaulthealth.jsf.util.LocaleBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    <managed-bean>
    <managed-bean-name>applicationBean</managed-bean-name>
    <managed-bean-class>com.vaulthealth.jsf.ApplicationBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    <managed-bean>
    <managed-bean-name>patientBean</managed-bean-name>
    <managed-bean-class>com.vaulthealth.jsf.PatientBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>

  9. #19
    Join Date
    Dec 2012
    Posts
    16

    Default

    interesting...i removed those lines but now i get this:

    javax.servlet.ServletException: /templates/layout.xhtml at line 8 and column 63 locale="#{localeBean.locale}" Attribute did not evaluate to a String or Locale: null
    javax.faces.webapp.FacesServlet.service(FacesServl et.java:213)
    org.primefaces.webapp.filter.FileUploadFilter.doFi lter(FileUploadFilter.java:79)

  10. #20
    Join Date
    Jul 2012
    Posts
    12

    Default

    Under ~.util package please check if your LocaleBean class has these 2 annotations : @ManagedBean and @SessionScoped

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •