Alex Wallace 14 Years Ago Another very cool feature is the ability to refresh a portlet w/o refreshing a full page. This is built into liferay as a refresh icon and is also used by the 'Add Application' feature to add new portlets to a page. Lately wev'e been improving user experience with this feature. Having a lot of portlets already written that require full page refreshes, and changing them just a little bit to refresh themselfs and only themselfs after clicking a button has helped improved user experience w/o having to rewrite a lot of code.We've created a few java methods that return the necessary javascript to refresh any portlet individually and teached a central method to be able to read parameters from the url after the portlet has been refreshed. We had been using that central method already so all we have to do is look for places in our code where we use request parameters to process something after a submit and wrap it with the JavaScript to do the submit with the individual portlet refresh. While this is not as good as writing your interfaces using JSON fully, or writing your portlets using something like IceFaces, it is way better than full page submits and required very little changes to our existing code.Another little liferay gem! Please sign in to reply. Reply as... Cancel Alex Wallace Alex Wallace 14 Years Ago I forgot to say... The combination of the JSON calls to services and the portlet refresh is also perfect. You can cause the succesfull call to the JSON service trigger the portlet refresh if it makes sense.For instance, we had a portlet that displays a complex table layout with data from services, and a small interface to approve / reject records above. While rewriting the portlet to pull the table data from JSON is the best solution, It was a 15 minute change to cause the approval process to go via JSON service and then refresh just that portlet so that the table below was updated with the approved data.Again, a very cool combo! Please sign in to reply. Reply as... Cancel DO Hung Thuan Alex Wallace 14 Years Ago i am a new member, i learning Json in liferay, u can tell me more json ? i don't know use json and any service example: JSONSerializer;ServiceHttp...i try search but i don't see anything. Please sign in to reply. Reply as... Cancel Jorge Ferrer DO Hung Thuan 14 Years Ago Hi DO Hung,You can find a lot of information about JSON in http://json.org/You can also ask questions about Liferay's services in our forums: http://forum.liferay.com Please sign in to reply. Reply as... Cancel DO Hung Thuan Jorge Ferrer 14 Years Ago Hi Jorge Ferrer ,Can you send or post for me an porlet example for Json in liferay? i don't have more information use Json in liferay. i try find more but i don't see anything about Json in liferay. i try write a portle can get, update,delete table in database use Json and Ajax, Special how can i do refresh a portlet for new information but not refresh main page. thanks! my email: dohungthuan@yahoo.com Please sign in to reply. Reply as... Cancel Jorge Ferrer DO Hung Thuan 14 Years Ago Hey DO Hung,Please use the forums for your questions. To have a higher chance of getting help I would recommend you to try it out yourself and then ask specific questions. Please sign in to reply. Reply as... Cancel
Alex Wallace Alex Wallace 14 Years Ago I forgot to say... The combination of the JSON calls to services and the portlet refresh is also perfect. You can cause the succesfull call to the JSON service trigger the portlet refresh if it makes sense.For instance, we had a portlet that displays a complex table layout with data from services, and a small interface to approve / reject records above. While rewriting the portlet to pull the table data from JSON is the best solution, It was a 15 minute change to cause the approval process to go via JSON service and then refresh just that portlet so that the table below was updated with the approved data.Again, a very cool combo! Please sign in to reply. Reply as... Cancel DO Hung Thuan Alex Wallace 14 Years Ago i am a new member, i learning Json in liferay, u can tell me more json ? i don't know use json and any service example: JSONSerializer;ServiceHttp...i try search but i don't see anything. Please sign in to reply. Reply as... Cancel Jorge Ferrer DO Hung Thuan 14 Years Ago Hi DO Hung,You can find a lot of information about JSON in http://json.org/You can also ask questions about Liferay's services in our forums: http://forum.liferay.com Please sign in to reply. Reply as... Cancel DO Hung Thuan Jorge Ferrer 14 Years Ago Hi Jorge Ferrer ,Can you send or post for me an porlet example for Json in liferay? i don't have more information use Json in liferay. i try find more but i don't see anything about Json in liferay. i try write a portle can get, update,delete table in database use Json and Ajax, Special how can i do refresh a portlet for new information but not refresh main page. thanks! my email: dohungthuan@yahoo.com Please sign in to reply. Reply as... Cancel Jorge Ferrer DO Hung Thuan 14 Years Ago Hey DO Hung,Please use the forums for your questions. To have a higher chance of getting help I would recommend you to try it out yourself and then ask specific questions. Please sign in to reply. Reply as... Cancel
DO Hung Thuan Alex Wallace 14 Years Ago i am a new member, i learning Json in liferay, u can tell me more json ? i don't know use json and any service example: JSONSerializer;ServiceHttp...i try search but i don't see anything. Please sign in to reply. Reply as... Cancel Jorge Ferrer DO Hung Thuan 14 Years Ago Hi DO Hung,You can find a lot of information about JSON in http://json.org/You can also ask questions about Liferay's services in our forums: http://forum.liferay.com Please sign in to reply. Reply as... Cancel DO Hung Thuan Jorge Ferrer 14 Years Ago Hi Jorge Ferrer ,Can you send or post for me an porlet example for Json in liferay? i don't have more information use Json in liferay. i try find more but i don't see anything about Json in liferay. i try write a portle can get, update,delete table in database use Json and Ajax, Special how can i do refresh a portlet for new information but not refresh main page. thanks! my email: dohungthuan@yahoo.com Please sign in to reply. Reply as... Cancel Jorge Ferrer DO Hung Thuan 14 Years Ago Hey DO Hung,Please use the forums for your questions. To have a higher chance of getting help I would recommend you to try it out yourself and then ask specific questions. Please sign in to reply. Reply as... Cancel
Jorge Ferrer DO Hung Thuan 14 Years Ago Hi DO Hung,You can find a lot of information about JSON in http://json.org/You can also ask questions about Liferay's services in our forums: http://forum.liferay.com Please sign in to reply. Reply as... Cancel DO Hung Thuan Jorge Ferrer 14 Years Ago Hi Jorge Ferrer ,Can you send or post for me an porlet example for Json in liferay? i don't have more information use Json in liferay. i try find more but i don't see anything about Json in liferay. i try write a portle can get, update,delete table in database use Json and Ajax, Special how can i do refresh a portlet for new information but not refresh main page. thanks! my email: dohungthuan@yahoo.com Please sign in to reply. Reply as... Cancel Jorge Ferrer DO Hung Thuan 14 Years Ago Hey DO Hung,Please use the forums for your questions. To have a higher chance of getting help I would recommend you to try it out yourself and then ask specific questions. Please sign in to reply. Reply as... Cancel
DO Hung Thuan Jorge Ferrer 14 Years Ago Hi Jorge Ferrer ,Can you send or post for me an porlet example for Json in liferay? i don't have more information use Json in liferay. i try find more but i don't see anything about Json in liferay. i try write a portle can get, update,delete table in database use Json and Ajax, Special how can i do refresh a portlet for new information but not refresh main page. thanks! my email: dohungthuan@yahoo.com Please sign in to reply. Reply as... Cancel Jorge Ferrer DO Hung Thuan 14 Years Ago Hey DO Hung,Please use the forums for your questions. To have a higher chance of getting help I would recommend you to try it out yourself and then ask specific questions. Please sign in to reply. Reply as... Cancel
Jorge Ferrer DO Hung Thuan 14 Years Ago Hey DO Hung,Please use the forums for your questions. To have a higher chance of getting help I would recommend you to try it out yourself and then ask specific questions. Please sign in to reply. Reply as... Cancel