List Info

Thread: MF 120 - Tomahawk 116 - Facelets - Bruno's Facelet Taglib jar (Cf MF Wiki page)




MF 120 - Tomahawk 116 - Facelets - Bruno's Facelet Taglib jar (Cf MF Wiki page)
user name
2007-09-24 09:08:20
Hi all,

Has anyone succeeded in getting t:inputCalendar to work with
the above
combination?
It appears really nothing is rendered...

Apart from the libs in mentioned in subject line, this is my
page:

<?xml version="1.0" encoding="UTF-8"
standalone="yes" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transiti
onal.dtd">
<html
   xmlns="http://www.w3.org/
1999/xhtml"
    xmlns:f= "http://java.sun.co
m/jsf/core"
    xmlns:ui="http://java.su
n.com/jsf/facelets"
    xmlns:h="http://java.sun.co
m/jsf/html"
    xmlns:s="http://myface
s.apache.org/sandbox"
    xmlns:t="http://myfac
es.apache.org/tomahawk"
    xmlns:c="http://java.s
un.com/jsp/jstl/core" >

	<body topmargin="0" leftmargin="0"
rightmargin="0" bgcolor="#ffffff"
marginheight="0" marginwidth="0"
class="body">
	
	
	<ui:composition
template="/resources/pages/MeToMaAppTemplate.xhtml"
;>
    <ui:define name ="navigation" />
    <ui:define name ="body">
    <div align="center">

   	<h:form id="studyOverviewForm"
styleClass="body">
	
[snip]
	
	<h:outputLabel value="Study Summary Data"
styleClass="titleText"/>
	<br/>
	<table class="overviewTable">
	<tr>
	<td>
	<h:panelGrid columns="4"
border="0">
		<h:outputLabel value="Study Sponsor: "/>
		
		<h:selectOneMenu
value="#{studyOverviewBean.study.sponsor}" >
			<f:selectItem itemLabel="Choose One"
itemValue="choose_one"/>
			<t:selectItems value="#{utilBean.sponsors}"
var="sponsor"
itemLabel="#"
itemValue="#"/>
		</h:selectOneMenu>
		
[snip]		
	
	</h:panelGrid>
	</td>
	<td
style="border-left-width:1px;border-left-style:solid;bo
rder-left-color:black;">
	
	<h:panelGrid columns="2" >
		<h:inputText
value="#{studyOverviewBean.study.testPhase}"/>
		
		<h:outputLabel value="&#160;&#160;Planned
Start Date"/>
		<t:inputCalendar 	
	   				renderAsPopup="true"
	   				popupButtonString="Click here to show
Calendar"
	   				renderPopupButtonAsImage="true"
	   				popupDateFormat="dd/MM/yyyy"
	   				required="true"
	  
				value="#{studyOverviewBean.study.plannedStartDate.d
ate}" >
	   								
	   	</t:inputCalendar>
	   	
		[snip]

	   	
	</h:panelGrid>
	</td>
	</tr>
	
	<tr>
   	   	[snip]
	
	</h:form>
	<h:messages styleClass="error"/>
	<br/>
	</div>
	</ui:define>

    </ui:composition>
	</body>
</html>

Other Tomahawk components seem to work fine.
-Wolf

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )