[jboss-user] [JBoss Seam] - Re: Looking for SEAM iText Features

BakuZozi do-not-reply at jboss.com
Wed Aug 22 08:15:39 EDT 2007


It seems to me that date issue caused of input side.

Here xhtml-fragment:

  | <s:decorate id="anyDateDecorate" template="edit.xhtml" required="true">
  |     <ui:define name="label">An date:</define>
  |     <h:inputText id="anyDate" value="#{myBean.anyDate}" required="true">
  |         <s:convertDateTime pattern="yyyy.MM.dd"/>
  |     </h:inputText>
  |     <s:selectDate for="anyDate" dateFormat="yyyy.MM.dd">
  |         <h:graphicImage url="img/dtpick.gif" style="margin-left:5px;cursor:pointer"/>
  |     </s:selectDate>
  | </secorate>
  | 

Then

  | #{myBean.anyDate}
  | 
is correct (though not except formed) in pdf, but

  | <p:text value="#{myBean.anyDate}"><f:convertDateTime type="date" /></p:text>
  | 
is incorrect: by 1 day earlier (though wellformed) in pdf...

Avoiding of above input-mechanism make displaying
correct date in pdf too. What"s wrong, watts romp...?

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076798



More information about the jboss-user mailing list