Hello everyone, I'm working with the Tomahawk Schedule component and Trinidad. However, I'm having some difficulties. My original page uses mostly Trinidad components with the exception of the Schedule component. Every time I select an entry no graphical indication of the entry being selected is given and in the backing java classes when I try to access the ScheduleModel's selected entry I get null. Here's my page source:
<?xml version="1.0" encoding="iso-8859-1"?> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0" xmlns:f="http://java.sun.com/jsf/core" xmlns:h=" http://java.sun.com/jsf/html" xmlns:t="http://myfaces.apache.org/tomahawk" xmlns:trh="http://myfaces.apache.org/trinidad/html" xmlns:tr="http://myfaces.apache.org/trinidad"> <jsp:directive.page contentType="text/html;charset=utf-8"/> <f:view> <tr:document title="Tratamentos"> <tr:form> <tr:messages/> <tr:panelGroupLayout layout="horizontal" inlineStyle = "width: 100%;"> <tr:panelBox text="Agenda de Tomas" inlineStyle = "width: 100%;"> <t:schedule value="#{treatmentUIScheduleHandler.treatSchedule}" id="treatUISchedule" rendered="true" visibleEndHour="23" visibleStartHour="0" workingEndHour="18" workingStartHour="8" theme="default" tooltip="true" submitOnClick="true" readonly="false" /> </tr:panelBox> <tr:panelGroupLayout layout="vertical"> <tr:panelBox text="Acções" inlineStyle = "width: 65%;"> <tr:panelGroupLayout layout="horizontal"> <tr:commandButton id="tbuttonViewDetails" partialSubmit="true" text="Ver" actionListener="#{treatmentUIScheduleHandler.retrieveDetailsForSelTreat}" /> <tr:commandButton id="tbuttonAddNewTreat" text="Adicionar" actionListener="#{treatmentUIScheduleHandler.addSampleEntries}"/> <tr:commandButton id="tbuttonDelSelTreat" text="Apagar" /> <tr:commandButton id="tbuttonModSelTreat" text="Editar" /> </tr:panelGroupLayout> </tr:panelBox> <tr:panelBox text="Detalhes" inlineStyle = "width: 65%;"> <tr:inputText id="tdetailsInputTextRO" readOnly="true" partialTriggers="tbuttonViewDetails" rows="33" wrap="soft" value="#{treatmentUIScheduleHandler.treatUIDetails}" /> </tr:panelBox> </tr:panelGroupLayout> </tr:panelGroupLayout> </tr:form> </tr:document> </f:view> </jsp:root> With regards to the backing beans, 'treatSchedule' is a class I made that extends Tomahawk's SimpleScheduleModel, and uses the class TreatmentBean which extends Tomahawk's DefaultScheduleEntry. The schedule is handeled by the class TreatmentUIScheduleHandler that initializes and populates the schedule with data from a local Oracle Database. Feeling the problem could be related to using extended classes and not the originals I tried something different. I made another page (see below), using as many default MyFaces componentes as possible a using source from the Tomahawk example source ( http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/examples/simple/src/main/java/org/apache/myfaces/examples/schedule/ ). <?xml version="1.0" encoding="UTF-8"?> <!-- Document : testsched Created on : 4/Out/2008, 23:10:25 Author : Marco --> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0" xmlns:f="http://java.sun.com/jsf/core" xmlns:h=" http://java.sun.com/jsf/html" xmlns:t="http://myfaces.apache.org/tomahawk" xmlns:trh="http://myfaces.apache.org/trinidad/html" xmlns:tr="http://myfaces.apache.org/trinidad"> <jsp:directive.page contentType="text/html" pageEncoding="UTF-8"/> <f:view> <tr:document title="Tratamentos"> <h:form> <h:outputText value="#{treatmentUIScheduleHandler.mouseActionText}"></h:outputText> <t:schedule value="#{treatmentUIScheduleHandler.testSched}" id="treatUISchedule" rendered="true" visibleEndHour="23" visibleStartHour="0" workingEndHour="18" workingStartHour="8" theme="default" tooltip="true" submitOnClick="true" mouseListener="#{treatmentUIScheduleHandler.scheduleClicked}" action="#{treatmentUIScheduleHandler.scheduleAction}" binding="#{treatmentUIScheduleHandler.htmlSchedule}" readonly="false" /> <h:commandButton id="tbuttonAddNewTreat" value="Adicionar" actionListener="#{treatmentUIScheduleHandler.addSampleEntries}"/> </h:form> </tr:document> </f:view> </jsp:root> Yet the problem persists, now I feel it could have to do with the fact of me using Trinidad, particularily the <tr:document> tag. My Jars are the following: MyFaces 1.2.3, Tomahawk 1.1.7, Trinidad 1.2.8 Has anyone else come across this problem or might have insight into a possible solution? Thanks in advance, Marco