1 2 Previous Next 17 Replies Latest reply on Mar 4, 2011 1:51 PM by lfelipeas Go to original post
      • 15. Re: Issue with Date Converter
        rogermorituesta.rogermori.yahoo.com

        Luiz:


        I'm glad to know you fixed it. Congratulations!


        Could  you please post your solution including your Rich Faces settings in web.xml ?


        I'm wondering if you have the Client and not the Server settings for rich faces.


        Roger.



         

        • 16. Re: Issue with Date Converter
          lfelipeas

          Roger, thanks a lot for your help. I'm posting what I've changed.


          In my List.xhtml I've this:


                      <s:link view="/Aditivo/PmnAditivoEdit.xhtml"
                             value="Editar"
                       propagation="none"
                                id="pmnAditivoEdit"
                          rendered="#{empty from}">
                          <f:param name="pmnAditivoSqAquisicao"
                                  value="#{_pmnAditivo.id.sqAquisicao}"/>
                          <f:param name="pmnAditivoDtInicio"
                                  value="#{DATE_FORMATTER.format(_pmnAditivo.id.dtInicio)}"/>
                      </s:link>



          With the DATEFORMATTER you've told I was able to get the Date format that is used here in Brazil.


          For the converter work, I had to create one. Here it is:


               private static Locale locale;
               
               public TimeDateConverter() {
                    setPattern("dd/MM/yyyy");
                    setTimeZone(getTimeZone());
                    setDateStyle("short");
                    setLocale(locale.ITALY);          
               }



          Only this. In Seam, we don't have the Brazil locale, so I've searched and the short date type in Italy is the same that we use here. I'm only interested in date, not time. If I had to use time, I couldn't use this locale.


          My edit.page.xml is like this:


           <param name="pmnAditivoFrom"/>
           <param name="pmnAditivoSqAquisicao" value="#{pmnAditivoHome.pmnAditivoId.sqAquisicao}"/>
           <param converter="org.domain.bl.converter.TimeDateConverter"
            converterId="timeDateConverter" name="pmnAditivoDtInicio" value="#{pmnAditivoHome.pmnAditivoId.dtInicio}"/>



          I looked for the others edit.page.xml and the all the values was configured this way. So I thought just to keep the standard.


          With all these changes, I finally got the page to work!

          • 17. Re: Issue with Date Converter
            lfelipeas

            My RichFaces settings in the web.xml continues the same.

            1 2 Previous Next