Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: aui:input - lost focus
Hello everyone, I'm developing a custom mvc portlet. I have a view.jsp with inside a <aui:input> field.
I want that when the input field losts focus then a method in my class.java starts, check the value of the field and does some operations.
Is this possible?
Gennaro Lippiello, modified 3 Years ago.
RE: aui:input - lost focus
(Answer)
Liferay Master
Posts: 593
Join Date: 8/8/14
Recent Posts
Hi ,
You may need to trigger a javascript "focusout" event for that input field and then send a request to server throught Ajax and perform your operation in serveResource() method.
You can refer below it may be helpful:
https://www.javasavvy.com/liferay-jquery-ajax-examples/
https://proliferay.com/alloy-ajax-liferay-portlet/
Thanks, that worked!
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™