peterjavaee / ck-jsf-editor

Automatically exported from code.google.com/p/ck-jsf-editor
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Fix so that save button can fire off submit or ajax request. #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When the save button in the editor is clicked, it should fire off either an 
ajax request or a page submit.  Will need to add attributes to tag and behavior.

Original issue reported on code.google.com by bill...@gmail.com on 23 Sep 2011 at 2:09

GoogleCodeExporter commented 8 years ago
Fixed in svn revision 27: 
http://code.google.com/p/ck-jsf-editor/source/detail?r=27

Added a handler and custom event to handle ajax save.

Added 3 attributes to editor tag: saveMethod, ajax, and update.  When the save
button on the editor is pressed, the following happens:
    If saveMethod is specified, an ajax request is made and the MethodExpression is fired off and all elements listed in the update attribute are updated,
    otherwise if ajax is true (default) the save button is disabled,
    otherwise (if ajax is false) it does a full form submission.

Original comment by bill...@gmail.com on 23 Sep 2011 at 10:37

GoogleCodeExporter commented 8 years ago

Original comment by bill...@gmail.com on 23 Sep 2011 at 10:41

GoogleCodeExporter commented 8 years ago
Found re-rendering issue and fixed in svn revision 28: 
http://code.google.com/p/ck-jsf-editor/source/detail?r=28

Verified working.

Releasing version 0.9.1 from svn revision 28.

Original comment by bill...@gmail.com on 23 Sep 2011 at 11:57