You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by dcosio <dc...@gmail.com> on 2007/01/10 22:04:19 UTC
inputCalendar not setting value
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#a8266404
Sent from the My Faces - Dev mailing list archive at Nabble.com.
Re: inputCalendar not setting value
Posted by dcosio <dc...@gmail.com>.
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.
Re: inputCalendar not setting value
Posted by dcosio <dc...@gmail.com>.
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#a8266619
Sent from the My Faces - Dev mailing list archive at Nabble.com.