i'm tring to display the calendar but no thing come up
<h:form prependId="false" >
<h:panelGrid columns="4">
<div>
<p:calendar id="cner9sma4" showOn="button" style="display:inline-block;width:190px;background-color: yellow;" />
<p:calendar id="rr9tys4" mode="inline" />
<p:calendar id="rr9tys4uj"/>
</div>
</h:panelGrid >
</h:form>
i'm working jsf2 +primefaces-2.2.RC2
calendar problem
Certified Sun Java programmer 6
Certified IBM DB2 Associate
Certified IBM Associate Developer
Certified IBM Application Developer.
Certified IBM System Administrator:
Certified IBM DB2 Associate
Certified IBM Associate Developer
Certified IBM Application Developer.
Certified IBM System Administrator:
You have only one item in your 4 column grid. Dont know if that is what your intension is.<h:panelGrid columns="4">
<div>
<p:calendar id="cner9sma4" showOn="button" style="display:inline-block;width:190px;background-color: yellow;" />
<p:calendar id="rr9tys4" mode="inline" />
<p:calendar id="rr9tys4uj"/>
</div>
</h:panelGrid >
Also how many calendars are you trying to display, 1 or 3?
Also you dont have a value for the calendar. The documentation says value must be a date so i suppose the component will not try and help you if you dont supply one. declare one in your jsf bean and bind it and lets see if that works first
Primefaces version: 3.0-SNAPSHOT
JSF implementation: Mojarra 2.0.4
Server: Glassfish 3.1-beta
JSF implementation: Mojarra 2.0.4
Server: Glassfish 3.1-beta
I taked snapshot form my code
<p:calendar id="cner9sma4" showOn="button" style="display:inline-block;width:190px;background-color: yellow;" disabled="#{customer.disabled}" value="#{customer.mainCust.contactIDDocIssueDate}" />
private java.util.Date contactIDDocIssueDate;
public java.util.Date getContactIDDocIssueDate() {
return contactIDDocIssueDate;
}
public void setContactIDDocIssueDate(java.util.Date contactIDDocIssueDate) {
this.contactIDDocIssueDate = contactIDDocIssueDate;
}
<p:calendar id="cner9sma4" showOn="button" style="display:inline-block;width:190px;background-color: yellow;" disabled="#{customer.disabled}" value="#{customer.mainCust.contactIDDocIssueDate}" />
private java.util.Date contactIDDocIssueDate;
public java.util.Date getContactIDDocIssueDate() {
return contactIDDocIssueDate;
}
public void setContactIDDocIssueDate(java.util.Date contactIDDocIssueDate) {
this.contactIDDocIssueDate = contactIDDocIssueDate;
}
Certified Sun Java programmer 6
Certified IBM DB2 Associate
Certified IBM Associate Developer
Certified IBM Application Developer.
Certified IBM System Administrator:
Certified IBM DB2 Associate
Certified IBM Associate Developer
Certified IBM Application Developer.
Certified IBM System Administrator:
i want to display any of them
Certified Sun Java programmer 6
Certified IBM DB2 Associate
Certified IBM Associate Developer
Certified IBM Application Developer.
Certified IBM System Administrator:
Certified IBM DB2 Associate
Certified IBM Associate Developer
Certified IBM Application Developer.
Certified IBM System Administrator:
is it possible that this is nullprivate java.util.Date contactIDDocIssueDate;
use and lets see if that works
Code: Select all
@PostConstruct
public void init()
{
contactIDDocIssueDate= new Date();
}
Primefaces version: 3.0-SNAPSHOT
JSF implementation: Mojarra 2.0.4
Server: Glassfish 3.1-beta
JSF implementation: Mojarra 2.0.4
Server: Glassfish 3.1-beta
thanks i found the problem
the problem was in skin.css
the problem was in skin.css
Certified Sun Java programmer 6
Certified IBM DB2 Associate
Certified IBM Associate Developer
Certified IBM Application Developer.
Certified IBM System Administrator:
Certified IBM DB2 Associate
Certified IBM Associate Developer
Certified IBM Application Developer.
Certified IBM System Administrator:
-
- Information
-
Who is online
Users browsing this forum: No registered users and 46 guests