You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Jacob Nordfalk (JIRA)" <de...@myfaces.apache.org> on 2009/04/20 10:11:48 UTC

[jira] Commented: (TRINIDAD-458) Allow users to control the starting date of date picker

    [ https://issues.apache.org/jira/browse/TRINIDAD-458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12700690#action_12700690 ] 

Jacob Nordfalk commented on TRINIDAD-458:
-----------------------------------------

It's a big annoyance that <tr:chooseDate /> can't be somehow made to get the initial values of ist associated <tr:inputDate/>.

        <tr:inputDate chooseId="fromDate" label="From date:" value="#{userchoice.fromDate}" contentStyle="width: 80px" immediate="true">
              <f:convertDateTime timeZone="CET" pattern="dd-MM-yy"/>
        </tr:inputDate>
        <tr:chooseDate id="fromDate" />

tr:chooseDate always goes to the current date.

I have tried working around this issue with JavaScript

  <tr:document onload="document.show.fromDateyear.selectedIndex=#{userchoice.fromDate.year-100}; document.show.fromDatemonth.selectedIndex=#{userchoice.fromDate.month}; ">

but it doesent work too well, also not if I include 
document.show.fromDateyear.onchange(); document.show.fromDatemonth.onchange();

I know this is not the right place but I couldnt fin *any* information about how to get in contact with Trinidad developers.

Could someone please advice me, both on fixing the above, and how to get in contact with Trinidad developers.?

Thanks
Jacob Nordfalk

> Allow users to control the starting date of date picker
> -------------------------------------------------------
>
>                 Key: TRINIDAD-458
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-458
>             Project: MyFaces Trinidad
>          Issue Type: Improvement
>            Reporter: Simon Lessard
>            Priority: Minor
>         Attachments: trunk_patch90.patch
>
>
> Currently, date picker init itself to the current date (unless there's a DateTimeRangeValidator preventing it). This can be useful, but also problematic when the date to be selected is decently old, like a birthdate for instance. A decent workaround would be to add an attribute on the component to fix the initial selected date of the date picker.

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