myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Bayer (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (TOMAHAWK-1515) f:ajax event not triggered inside t:calendar
Date Wed, 04 Aug 2010 19:55:43 GMT

    [ https://issues.apache.org/jira/browse/TOMAHAWK-1515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12895393#action_12895393
] 

Oliver Bayer commented on TOMAHAWK-1515:
----------------------------------------

Hi Leonardo,

with firebug I couldn't find a param which wasn't correct but I didn't had the time to really
dig into.

With the current build of myfaces trunk (without re-compiling tomahawk) the warnings are gone.
I didn't have time to test it since monday but maybe the commit from today (MYFACES-2855)
which changed some js files fixed the issue.

Thanks a lot for your help.

Oli

> f:ajax event not triggered inside t:calendar
> --------------------------------------------
>
>                 Key: TOMAHAWK-1515
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1515
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Calendar, JSF2
>    Affects Versions: 1.1.10-SNAPSHOT
>         Environment: Win XP, JDK 1.6.0.20, Tomcat 6.0.24, MyFaces 2.0.1 - Snapshots (api
+ impl), Tomahawk20-1.1.10 Snapshot
>            Reporter: Oliver Bayer
>            Assignee: Leonardo Uribe
>             Fix For: 1.1.10-SNAPSHOT
>
>
> I've modified the tomahawk 2.0 example so that I have a birthday input field (t:calendar)
and an age input field (t:inputText). If someone puts in a birthday date the ajax event should
be triggered and calculate the age.
> If I use a calendar the ajax event isn't working whereas with a simple inputText it's
working (see code snippets below).
> Not working example with t:calendar:
> <t:inputCalendar id="birthday" 
> 			monthYearRowClass="yearMonthHeader" 
> 			weekRowClass="weekHeader" 
> 			popupButtonStyleClass="standard_bold"
> 			currentDayCellClass="currentDayCell" 
> 			value="#{testBean.birthday}" 
> 			renderAsPopup="true"
> 			popupTodayString="#{example_messages['popup_today_string']}"
> 			popupDateFormat="dd.MM.yyyy" 
> 			popupWeekString="#{example_messages['popup_week_string']}"
> 			forceId="true">
> 		<f:ajax event="valueChange" render="age"/>
> </t:inputCalendar>
> <t:inputText id="age" 
> 		value="#{testBean.age}" 
> 		title="Age" 
> />
> Working example with t:inputText:
> <t:inputText id="birthday" 
> 		value="#{testBean.birthday}" 
> 		title="#{lbl.edit_data_title_personal_birthday}">
> 	<f:ajax event="valueChange" render="age"/>
> </t:inputText>
> <t:inputText id="age" 
> 		value="#{testBean.age}" 
> 		title="Age" 
> />
> Is this a bug or am I misunderstanding the f:ajax use case?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message