-
1. Re: Richfaces event with JQuery masked input
sergeysmirnov Feb 10, 2009 2:52 PM (in response to francof)I have replayed several times about jQuery masked plugin (not exactly meiocodigo.com one). Even the example was made. Unfortunately, jboss.org is not a place where it is possible to find something already posted :-(
When the part of the page is re-rendered, it is replaced. So, if you have some thing attached to the DOM node, you have to re-attach it. I.e. you have to recall setmask() from the oncomplete of the a4j:support (or other places if you re-render the input from there)
P.S. Use < a4j:loadScript > instead of < script > for plugin loading -
2. Re: Richfaces event with JQuery masked input
francof Feb 11, 2009 9:29 AM (in response to francof)Thank you Sergey
I am going to search this forum again for the example, but I think I know what to do.
Best Regards
Franco -
3. Re: Richfaces event with JQuery masked input
francof Feb 11, 2009 11:29 AM (in response to francof)Sergey,
I just got around to this, it worked like a charm with your tip.
I moved the mask initialization for my inputs into a JS function and call the function in the jQuery ready and oncomplete of my a4j:support event.
I did not have to use a4j:loadScript to load the mask plugin. Just wanted to get your thoughts on that.
BTW, no offense - The user guide and FAQ's are great, but it'd be nice to see a book with some nice practical examples. I know Max was writing one, is that complete yet?
Regards
Franco -
4. Re: Richfaces event with JQuery masked input
sergeysmirnov Feb 11, 2009 2:56 PM (in response to francof)Max's book is already out: http://www.apress.com/book/view/1430210559
You can add your solution to the RichFaces Cookbook if you have time and intention: http://www.jboss.org/community/docs/DOC-11852 -
5. Re: Richfaces event with JQuery masked input
francof Feb 11, 2009 4:27 PM (in response to francof)Thank you again.
I did not realize I could add articles to the Cookbook.
I will write this up. -
6. Re: Richfaces event with JQuery masked input
fmarwede Feb 11, 2009 5:21 PM (in response to francof)Thanks for the book tip. Nice completion for the RF "canon" - dev guide, forum, live demo. Maybe it's a good idea to put a link on a more prominent place...
-
7. Re: Richfaces event with JQuery masked input
francof Feb 12, 2009 11:46 AM (in response to francof)Sergey,
Posted my article to the cookbook.
http://www.jboss.org/community/docs/DOC-13332
Thanks for your guidance.
Franco -
8. Re: Richfaces event with JQuery masked input
sergeysmirnov Feb 12, 2009 12:21 PM (in response to francof)Thank you Franco. Good article!
-
9. Re: Richfaces event with JQuery masked input
monkeyden Mar 13, 2009 9:57 AM (in response to francof)Thanks for this Franco. Exactly what I needed.
-
10. Re: Richfaces event with JQuery masked input
francof Mar 14, 2009 9:15 AM (in response to francof)You are most welcome, glad I could be of help.
Regards
Franco