myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j haley <>
Subject RE: Tomahawk - t:schedule and t:inputCalendar cause js script error
Date Mon, 24 Nov 2008 16:05:13 GMT

Below is schedule1.jsp from the sample project.  I've bolded the attributes that I've changed
that cause the problem.
 <h:form>  <!--  The schedule itself -->  <t:div style="position: absolute;
left: 220px; top: 5px; right: 5px;">   <t:schedule value="#{scheduleHandler1.model}"
id="schedule1"    rendered="true" visibleEndHour="18" visibleStartHour="8"    workingEndHour="17"
workingStartHour="9" readonly="false"    theme="evolution" tooltip="true"/>  </t:div>
 <!--  The column on the left, containing the calendar and other controls -->  <t:div
style="position: absolute; left: 5px; top: 5px; width: 210px; overflow: auto">   <h:panelGrid
columns="1">    <t:inputCalendar id="scheduleNavigator" renderAsPopup="true"     value="#{scheduleHandler1.model.selectedDate}"
/>    <h:commandButton     actionListener="#{scheduleHandler1.addSampleEntries}"   
 value="add sample entries" />    <h:commandButton     actionListener="#{scheduleHandler1.addSampleHoliday}"
    value="add sample holiday" />   </h:panelGrid>    <%@include file="/inc/page_footer.jsp"
%>    <jsp:include page="inc/mbean_source.jsp"/>  </t:div> </h:form>

Date: Mon, 24 Nov 2008 17:51:47 +0200From: hazems@apache.orgTo: users@myfaces.apache.orgSubject:
Re: Tomahawk - t:schedule and t:inputCalendar cause js script error
Send to me your code sample.I tried this scenario typically with Tomahawk 1.1.7 and it works
On Mon, Nov 24, 2008 at 4:32 PM, j haley <> wrote:

Having a problem that I can recreate on the with the tomahawk sample project.  I was getting
this with version 1.1.6, and I also get it with 1.1.8. On myfaces-example-simple-1.1.8/schedule1.jsf,
make the following change.Add renderAsPopup="true" to the t:inputCalendar. The page renders
fine, but when I mouse over the page I get a javascript error.  This error prevents t:schedule's
tooltip from working.  The combination that causes problems is t:inputCalendar or t:inputDate
with a renderAsPopup="true" attribute along with a t:schedule with a tooltip="true" attribute.
Bug numbers TOMAHAWK-929 and TOMAHAWK-193 look like they may be related to this issues. Is
there a work around for this?

Color coding for safety: Windows Live Hotmail alerts you to suspicious email. Sign up today.--
Hazem Ahmed Saleh AhmedAuthor of (The Definitive Guide to Apache MyFaces and Facelets):
blog:[Web 2.0] Google Maps Integration with JSF:
Access your email online and on the go with Windows Live Hotmail.
View raw message