AppFuseAjaxWithDWR |
|
Your trail: |
Difference between
version 5
and
version 1:
At line 5 changed 1 line. |
This article assumes that you have a running AppFuse project and have made you way through the [tutorials|http://raibledesigns.com/wiki/Wiki.jsp?page=Articles]. So your project will contain the famous Person class, a PersonDao and a PeronManager as well as the PersonAction and the jsp pages for viewing and editing a single Person as well as the list screen. Here we will enhance the person list screen to show some additional information when the user moves the mouse over a person's name. |
This article assumes that you have a running AppFuse project and have made you way through the [tutorials|http://raibledesigns.com/wiki/Wiki.jsp?page=Articles]. So your project will contain the famous Person class, a PersonDao and a PersonManager as well as the PersonAction and the jsp pages for viewing and editing a single Person as well as the list screen. Here we will enhance the person list screen to show some additional information when the user moves the mouse over a person's name. |
At line 35 changed 1 line. |
That's actually it. On the next deployment you should find this information in you generated __''web.xml''__ and the DWR servlet will be ready to respond to DWR calls. We still need a configuration file to configure what managers DWR will take care about so |
That's actually it. On the next deployment you should find this information in your generated __''web.xml''__ and the DWR servlet will be ready to respond to DWR calls. We still need a configuration file to configure what managers DWR will take care about so |
At line 246 changed 1 line. |
Next we will create a Manager that will be exposed to DWR. It hink it's good practice not to expose any managers you wrote to DWR but write special ones for that task. It still is a usual Manager just like the PersonManager from the tutorial. Insert a new package __org.appfuse.service.dwr__ and create an interface for the DWR manager called ''PersonDetailManager''. |
Next we will create a Manager that will be exposed to DWR. I think it's good practice not to expose any managers you wrote to DWR but write special ones for that task. It still is a usual Manager just like the PersonManager from the tutorial. Insert a new package __org.appfuse.service.dwr__ and create an interface for the DWR manager called ''PersonDetailManager''. |
At line 506 changed 1 line. |
//# It inserts the job information intothe jobTable. This is done using DWRUtil.addRows. |
//# It inserts the job information into the jobTable. This is done using DWRUtil.addRows. |
At line 541 changed 1 line. |
//# It simply returnes the job's description. |
//# It simply returns the job's description. |
At line 553 changed 1 line. |
Well that's it. Of course the same result could have been created without DWR but there are a lot of cases where AJAX will improve the look and feel and the usage of your AppFuse webapps very much as it's simply unbeatable fast. |
Well that's it. Of course the same result could have been created without DWR but there are many cases where AJAX will improve the look and feel and the usage of your AppFuse webapps very much as it's simply unbeatable fast. |
Back to AppFuseAjaxWithDWR,
or to the Page History.
|