[richfaces-issues] [JBoss JIRA] Created: (RF-7600) calendar: doCollapse should invoke oncollapse before closure timeEditor.

Ilya Shaikovsky (JIRA) jira-events at lists.jboss.org
Mon Jul 27 06:10:29 EDT 2009


calendar: doCollapse should invoke oncollapse before closure timeEditor.
------------------------------------------------------------------------

                 Key: RF-7600
                 URL: https://jira.jboss.org/jira/browse/RF-7600
             Project: RichFaces
          Issue Type: Feature Request
    Affects Versions: 3.3.1
            Reporter: Ilya Shaikovsky
            Assignee: Pavel Yaschenko
            Priority: Minor
             Fix For: 3.3.2.CR1


http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246116#4246116
	<script type="text/javascript">
		var timeToSelect=false;
	</script>
	<h:form>
		<rich:calendar id="dummy" value="#{dummy}" popup="true" oncollapse="if (timeToSelect) return false;"
			datePattern="MMMM d, yyyy HH:mm" enableManualInput="false"
			showApplyButton="false" cellWidth="24px" cellHeight="22px"
			ondateselected="timeToSelect=true; Richfaces.getComponent('calendar',this).showTimeEditor();return true;"
			style="padding: 2px; margin-left: 10px;" disabled="#{readOnlyMode}" ontimeselected="timeToSelect=false;" ontimeselected="//close calendar here">
			
		</rich:calendar>
	</h:form>

this code should works as he need. but it's not because oncollapse which prevents closure invokes after timeEditor already closed.

Move invoking the collapse before the closure.

-- 
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

        


More information about the richfaces-issues mailing list