[ 
https://jira.jboss.org/jira/browse/RF-2835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mario Balaban reopened RF-2835:
-------------------------------



Sorry I'm still experiencing  the problem. So let me begin again. In my page I 
have 3 components: <rich:calendar>,  <h:inputText> and <a4j:commandButton>. 
The user should take the next steps to perform the the requested function:

1) click on a date of the <rich:calendar>
2) click on timeSelection control of the <rich:calendar>
3) select the hour and minute from the timeSelection control of the 
<rich:calendar>
3.1) click ok on the  timeSelection control of the <rich:calendar> after the 
step 3)
4) write the text to the <h:inputText>
5) click on the  <a4j:commandButton> to submit all the input

The problem that I have experienced with release 3.2.2 and previous,  is that 
when the user submits all the input (<a4j:commandButton value=Schedula) ,  the 
hour does always rest 12 and minutes always rest 00 in the backing bean of the 
<rich:calendar> ("#{definitionManager.scheduledDate}")  no matter what time 
(hour and minutes) was specified at the step 3).

This is the xhtml code:

<rich:calendar id="scheduleCalendar"
                                                
value="#{definitionManager.scheduledDate}"
                                                enableManualInput="true" 
datePattern="d/M/yy HH:mm"
                                                showApplyButton="true" 
popup="false"  mode="ajax"/>
<h:inputText id="parameter" value="#{definitionManager.inputValue}" />
<a4j:commandButton value="Schedula"
                                                
action="#{definitionManager.schedule}"/>
Thanks!


> Calendar control sets the time in the backing bean value only if you select 
> first the time and after that the date and not if otherwise. 
> -----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RF-2835
>                 URL: https://jira.jboss.org/jira/browse/RF-2835
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.1.4
>         Environment: Jboss 4.2.2GA
>            Reporter: Mario Balaban
>            Assignee: Aleksej Yanul
>             Fix For: 3.2.1
>
>
> <rich:calendar id="scheduleCalendar"
>                                       
> value="#{definitionManager.scheduledDate}" popup="false"
>                                       datePattern="d/M/yy HH:mm" 
> showApplyButton="true" >
>         <a4j:support event="ontimeselect" reRender="scheduleCalendar" />
> </rich:calendar>
> <a4j:commandButton value="Submit"
>                                       action="#{definitionManager.schedule}">
>       <a4j:support event="onclick"
>                                       onsubmit="new 
> Effect.BlindUp($('mainForm:bubox'), {duration:.3});" />
> </a4j:commandButton>
> When you click on some date the selected date and time (12:00 and not the 
> current)  appears in the footer facet of the control. If you try to change 
> the time the new value is rendered in the footer but is not set in the 
> backing bean value when you click the "Submit" button, instead 12:00 is 
> always set. Otherwise if you first select the time and only after that select 
> the day and click the "Submit" button, the backing bean value have date and 
> time correctly assigned. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to