myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dcosio <dcco...@gmail.com>
Subject Re: inputCalendar not setting value
Date Wed, 10 Jan 2007 21:29:08 GMT

Ok.. more strangeness.. When I remove the readonly="true" the form won't
execute the doSearch commandbutton.. Once I put it back it work.. soooooo
any idea. or should i just use my trusty javascript calendar..

I know I gotta be doing something wrong..


dcosio wrote:
> 
> opps.. ok i have readonly="true".. my bad.. BUT, I had this to prevent the
> user from messing with the date format.. I know I could validate, but is
> there a way to make this readonly but still have the value updated via
> the popup calendar..
> 
> dcosio wrote:
>> 
>> I can't get the value set using the input calendar.. I don't see a
>> binding for it.. can someone tell me what Im doing wrong..
>> 
>> Using tomahawk1.1.3 - apache tomcat 5.5.9 - java 1.5 - 
>> 
>> Here is a snippet of the form with the calendar and commandbutton..
>> 
>> 
>> <h:form>
>> <h:panelGrid>
>> <t:outputLabel for="createdDate" value="Created :" />
>> 			<t:inputCalendar readonly="true" id="createdDate"
>> monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader"
>> 							popupButtonStyleClass="standard_bold"
>> currentDayCellClass="currentDayCell" value="#{whoisBean.created}"
>> 							renderAsPopup="true" popupTodayString="Today"
>> popupDateFormat="yyyy-MM-dd"
>> 							popupWeekString="Week" renderPopupButtonAsImage="true"
>> helpText=""/>
>> 
>> <h:commandButton value="Search" action="#{whoisBean.doSearch}"/>
>> 			<h:commandButton id="cancel" value="Cancel"
>> action="#{whoisBean.cancel}"/>
>> 		</h:panelGrid>
>> 	</h:form>
>> 
>> Thanks for any help
>> Dan
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/inputCalendar-not-setting-value-tf2955178.html#a8266860
Sent from the My Faces - Dev mailing list archive at Nabble.com.


Mime
View raw message