开发者

Calendar component not rendering

I just started working with primefaces. To display calendar, I created the dateBean with a java.util.date variable and used the following line in the xhtml. But I am only getting the textfileld part of the calendar and the calendar component is not getting displayed. I don't know much about themes. As of now my xhtml file does not use any theme either default or custom. 开发者_Python百科My web-inf\lib has the following jar files.

jsf-api.jar, jsf-impl.jar, jstl.jar, primefaces-2.2.1.jar

index.xhtml -

<p:calendar rendered="true" id="calendar" value="#{dateBean.curDate}" mode="inline" />

Thanks and Regards, Renju


the 'rendered' attribute is not necessary, since default is true. the "inline" mode doesn't show a textfield, it only displays the calendar, so it's very strange that you see a textfield. Did you try displaying in another way to see if it works? for example:

<p:calendar id="calendar" value="#{dateBean.curDate}" showOn="button"/>

maybe bean code and some more of the xhtml would be helpful to find out what's wrong. Regards

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜