Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jsf.js queue control #1050

Closed
eclipse-faces-bot opened this issue Nov 8, 2011 · 10 comments
Closed

jsf.js queue control #1050

eclipse-faces-bot opened this issue Nov 8, 2011 · 10 comments

Comments

@eclipse-faces-bot
Copy link

When working on JavaJsf, I noticed that we need some way to throw out all but the most recent ajax events that have been queued in a short time interval. This is typical of the case where you are sending one ajax event per keystroke for an auto-suggest gui, but you only want the thing to start suggesting when the user pauses a bit from their typing.

The prolific Werner Punz already implemented this with MyFaces:

http://werpublogs.blogspot.com/2011/07/apache-myfaces-jsfjs-queue-control.html

This is part of Werner's even more nifty modular jsf.js thing.

http://werpublogs.blogspot.com/2011/11/introducing-myfaces-jsfjs-modular.html

Affected Versions

[2.0]

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
Reported by @edburns

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
@edburns said:
Add support for delay value in options http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1050

SECTION: Modified Files

M jsf-api/src/main/resources/jsf.js

  • support a delay value

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
File: changebundle.txt
Attached By: @edburns

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
@edburns said:
In progress patch. Wow, this grew a bit!

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
File: 20111110-i_spec_1050.patch
Attached By: @edburns

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
@edburns said:
Committed to trunk

Sending jsf-api/doc/jsdoc-template/static/default.css
Sending jsf-api/src/main/java/javax/faces/component/behavior/AjaxBehavior.java
Sending jsf-api/src/main/java/javax/faces/component/behavior/package.html
Sending jsf-api/src/main/java/javax/faces/event/PostKeepFlashValueEvent.java
Sending jsf-api/src/main/java/javax/faces/event/PostPutFlashValueEvent.java
Sending jsf-api/src/main/java/javax/faces/event/PreRemoveFlashValueEvent.java
Sending jsf-api/src/main/resources/jsf.js
Sending jsf-api/src/main/resources/overview.html
Sending jsf-demo/build.xml
Sending jsf-ri/conf/share/facelets_jsf_core.tld
Sending jsf-ri/src/main/java/com/sun/faces/facelets/tag/jsf/core/AjaxHandler.java
Sending jsf-ri/src/main/java/com/sun/faces/renderkit/html_basic/AjaxBehaviorRenderer.java
Sending jsf-ri/systest/build.xml
Sending jsf-ri/systest/src/com/sun/faces/ajax/AjaxAttrsTestCase.java
Sending jsf-ri/systest/web/ajax/ajaxAllKeyword1.xhtml
Sending jsf-ri/systest/web/ajax/ajaxAllKeyword2.xhtml
Sending jsf-ri/systest/web/ajax/ajaxAllKeyword3.xhtml
Sending jsf-ri/systest/web/ajax/ajaxAttrs.xhtml
Sending jsf-ri/systest/web/ajax/ajaxCount.xhtml
Sending jsf-ri/systest/web/ajax/ajaxEchoArea.xhtml
Sending jsf-ri/systest/web/ajax/ajaxError.xhtml
Sending jsf-ri/systest/web/ajax/ajaxError2.xhtml
Sending jsf-ri/systest/web/ajax/ajaxError3.xhtml
Sending jsf-ri/systest/web/ajax/ajaxEval.xhtml
Sending jsf-ri/systest/web/ajax/ajaxEvent.xhtml
Sending jsf-ri/systest/web/ajax/ajaxIncludedScript.xhtml
Sending jsf-ri/systest/web/ajax/ajaxIncludedText.xhtml
Sending jsf-ri/systest/web/ajax/ajaxInsertDelete.xhtml
Sending jsf-ri/systest/web/ajax/ajaxInvalidXML.xhtml
Sending jsf-ri/systest/web/ajax/ajaxMalformedXML.xhtml
Sending jsf-ri/systest/web/ajax/ajaxMessage.xhtml
Sending jsf-ri/systest/web/ajax/ajaxMultiform.xhtml
Sending jsf-ri/systest/web/ajax/ajaxRedirect.xhtml
Sending jsf-ri/systest/web/ajax/ajaxRequestDefaultsButton.xhtml
Sending jsf-ri/systest/web/ajax/ajaxRequestDefaultsButtonNoPrepend.xhtml
Sending jsf-ri/systest/web/ajax/ajaxRequestDefaultsEdit.xhtml
Sending jsf-ri/systest/web/ajax/ajaxRequestDefaultsEditNoPrepend.xhtml
Sending jsf-ri/systest/web/ajax/ajaxRequestHeader.xhtml
Sending jsf-ri/systest/web/ajax/ajaxRequestMultiRender.xhtml
Sending jsf-ri/systest/web/ajax/ajaxRerenderOtherForm.xhtml
Sending jsf-ri/systest/web/ajax/ajaxSelect.xhtml
Sending jsf-ri/systest/web/ajax/ajaxTable.xhtml
Sending jsf-ri/systest/web/ajax/ajaxTagCount.xhtml
Sending jsf-ri/systest/web/ajax/ajaxTagDefaultsButton.xhtml
Sending jsf-ri/systest/web/ajax/ajaxTagDefaultsButtonNoPrepend.xhtml
Sending jsf-ri/systest/web/ajax/ajaxTagDefaultsEdit.xhtml
Sending jsf-ri/systest/web/ajax/ajaxTagDefaultsEditNoPrepend.xhtml
Sending jsf-ri/systest/web/ajax/ajaxTagDisabled.xhtml
Sending jsf-ri/systest/web/ajax/ajaxTagEvent.xhtml
Sending jsf-ri/systest/web/ajax/ajaxTagEventAttribute.xhtml
Sending jsf-ri/systest/web/ajax/ajaxTagEventWrapping.xhtml
Sending jsf-ri/systest/web/ajax/ajaxTagKeywords.xhtml
Sending jsf-ri/systest/web/ajax/ajaxTagMulti.xhtml
Sending jsf-ri/systest/web/ajax/ajaxTagResolve.xhtml
Sending jsf-ri/systest/web/ajax/ajaxTagWrapping.xhtml
Sending jsf-ri/systest/web/ajax/ajaxViewState.xhtml
Sending jsf-ri/systest/web/ajax/browser/browserEvalScripts.xhtml
Sending jsf-ri/systest/web/ajax/browser/browserSelectChange.xhtml
Sending jsf-ri/systest/web/ajax/browser/browserUpdateAttribute.xhtml
Sending jsf-ri/systest/web/ajax/browser/browserUpdateView.xhtml
Sending jsf-ri/systest/web/ajax/issue1760NestedAjaxCheckboxRender.xhtml
Sending jsf-ri/systest/web/facelets/issue1313.xhtml
Sending jsf-ri/systest/web/render/commandButtonButton.xhtml
Sending jsf-ri/systest/web/resources/ajax/echo1.js
Sending jsf-ri/systest-per-webapp/clientside-statesaving/web/ajaxMultiform.xhtml
Sending jsf-test/JAVASERVERFACES-1845/i_jsf_1845/src/main/webapp/index.xhtml
Sending jsf-test/JAVASERVERFACES-2195/i_jsf_2195/src/main/webapp/resources/mycomp/cc_ajax.xhtml
Transmitting file data ...................................................................
Committed revision 9453.

Add support for delay value in options http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1050

SECTION: Modified Files

M jsf-ri/conf/share/facelets_jsf_core.tld

  • the tlddoc

M jsf-api/src/main/resources/overview.html

  • first change to jsdoc in this revision of the JSR

M jsf-api/src/main/resources/jsf.js
M jsf-api/doc/jsdoc-template/static/default.css

  • The jsdoc spec and impl

M jsf-api/src/main/java/javax/faces/component/behavior/AjaxBehavior.java
M jsf-api/src/main/java/javax/faces/component/behavior/package.html

  • Document the "delay" property

M jsf-api/src/main/java/javax/faces/event/PreRemoveFlashValueEvent.java
M jsf-api/src/main/java/javax/faces/event/PostKeepFlashValueEvent.java
M jsf-api/src/main/java/javax/faces/event/PostPutFlashValueEvent.java

  • javadoc errors

M jsf-ri/src/main/java/com/sun/faces/facelets/tag/jsf/core/AjaxHandler.java

  • tag handler changes

M jsf-ri/src/main/java/com/sun/faces/renderkit/html_basic/AjaxBehaviorRenderer.java

  • Make sure the delay gets correctly rendered to the markup.

M jsf-ri/systest/src/com/sun/faces/ajax/AjaxAttrsTestCase.java

  • Assert the delay values are as expected

M jsf-ri/systest/web/render/commandButtonButton.xhtml
M jsf-ri/systest/web/resources/ajax/echo1.js
M jsf-ri/systest/web/ajax/ajaxTagCount.xhtml
M jsf-ri/systest/web/ajax/ajaxMessage.xhtml
M jsf-ri/systest/web/ajax/browser/browserSelectChange.xhtml
M jsf-ri/systest/web/ajax/browser/browserUpdateAttribute.xhtml
M jsf-ri/systest/web/ajax/browser/browserUpdateView.xhtml
M jsf-ri/systest/web/ajax/browser/browserEvalScripts.xhtml
M jsf-ri/systest/web/ajax/ajaxRequestDefaultsEdit.xhtml
M jsf-ri/systest/web/ajax/ajaxTagMulti.xhtml
M jsf-ri/systest/web/ajax/ajaxCount.xhtml
M jsf-ri/systest/web/ajax/ajaxError.xhtml
M jsf-ri/systest/web/ajax/ajaxRerenderOtherForm.xhtml
M jsf-ri/systest/web/ajax/ajaxTagDefaultsButton.xhtml
M jsf-ri/systest/web/ajax/ajaxRequestDefaultsEditNoPrepend.xhtml
M jsf-ri/systest/web/ajax/ajaxTagEventAttribute.xhtml
M jsf-ri/systest/web/ajax/ajaxTagKeywords.xhtml
M jsf-ri/systest/web/ajax/ajaxInvalidXML.xhtml
M jsf-ri/systest/web/ajax/ajaxRequestDefaultsButton.xhtml
M jsf-ri/systest/web/ajax/ajaxIncludedScript.xhtml
M jsf-ri/systest/web/ajax/ajaxTagEvent.xhtml
M jsf-ri/systest/web/ajax/issue1760NestedAjaxCheckboxRender.xhtml
M jsf-ri/systest/web/ajax/ajaxEvent.xhtml
M jsf-ri/systest/web/ajax/ajaxTagWrapping.xhtml
M jsf-ri/systest/web/ajax/ajaxTagDefaultsEditNoPrepend.xhtml
M jsf-ri/systest/web/ajax/ajaxTagEventWrapping.xhtml
M jsf-ri/systest/web/ajax/ajaxTable.xhtml
M jsf-ri/systest/web/ajax/ajaxRequestDefaultsButtonNoPrepend.xhtml
M jsf-ri/systest/web/ajax/ajaxMalformedXML.xhtml
M jsf-ri/systest/web/ajax/ajaxEval.xhtml
M jsf-ri/systest/web/ajax/ajaxInsertDelete.xhtml
M jsf-ri/systest/web/ajax/ajaxIncludedText.xhtml
M jsf-ri/systest/web/ajax/ajaxAttrs.xhtml
M jsf-ri/systest/web/ajax/ajaxAllKeyword1.xhtml
M jsf-ri/systest/web/ajax/ajaxAllKeyword2.xhtml
M jsf-ri/systest/web/ajax/ajaxAllKeyword3.xhtml
M jsf-ri/systest/web/ajax/ajaxRequestHeader.xhtml
M jsf-ri/systest/web/ajax/ajaxRedirect.xhtml
M jsf-ri/systest/web/ajax/ajaxRequestMultiRender.xhtml
M jsf-ri/systest/web/ajax/ajaxTagDisabled.xhtml
M jsf-ri/systest/web/ajax/ajaxEchoArea.xhtml
M jsf-ri/systest/web/ajax/ajaxTagDefaultsEdit.xhtml
M jsf-ri/systest/web/ajax/ajaxTagDefaultsButtonNoPrepend.xhtml
M jsf-ri/systest/web/ajax/ajaxError2.xhtml
M jsf-ri/systest/web/ajax/ajaxTagResolve.xhtml
M jsf-ri/systest/web/ajax/ajaxViewState.xhtml
M jsf-ri/systest/web/ajax/ajaxError3.xhtml
M jsf-ri/systest/web/ajax/ajaxMultiform.xhtml
M jsf-ri/systest/web/ajax/ajaxSelect.xhtml
M jsf-ri/systest/web/facelets/issue1313.xhtml
M jsf-ri/systest-per-webapp/clientside-statesaving/web/ajaxMultiform.xhtml
M jsf-test/JAVASERVERFACES-2195/i_jsf_2195/src/main/webapp/resources/mycomp/cc_ajax.xhtml
M jsf-test/JAVASERVERFACES-1845/i_jsf_1845/src/main/webapp/index.xhtml
M jsf-demo/build.xml

  • add delay="none" everywhere because the tests won't work without it.

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
Marked as fixed on Thursday, November 10th 2011, 1:43:51 pm

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
@manfredriem said:
Closing resolved issue out

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-1050

@eclipse-faces-bot
Copy link
Author

@eclipse-faces-bot eclipse-faces-bot added this to the 2.2 Sprint 9 milestone Aug 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant