• About
  • Trade
  • Science
  • Eclipse
  • Software
  • Infoq
  • T
  • Projects
  • Contact
  • Thinks
  • | 登录 |

    using dwr with your spring bean

    2006年11月6日 下午 15:41 | 作者:summer

    In dwr sites, it tell use three way to use dwr with spring. But the important details are ignored on his suggest way.

    If you are using spring and have your private spring bean manger.how to use DWR?

    1. define a spring bean implements BeanFactoryPostProcessor
    2. overwrite postProcessBeanFactory function
    3. call SpringCreator.setOverrideBeanFactory(beanFactory)

    the code was just like this:

    import org.springframework.beans.BeansException;
    import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
    import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
    import uk.ltd.getahead.dwr.create.SpringCreator;
    /**  * @author summer  *  */
    public class DWRSpringIntegrator implements BeanFactoryPostProcessor {
        public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
            SpringCreator.setOverrideBeanFactory(beanFactory);
        }
    }

    No Tags

    how to use pagelist tool

    2006年11月5日 上午 16:45 | 作者:summer

    1.Import prototype.js and pagelist.js

     

     

    2.define pagelist show node and page content show node

    init…
    init…

     

    3.define callback function getPage and new PageList

     

    4.PageList.Slider parameters intorduce

    parameters are:element, itemsPerPage, items, width, style, callback

    element is the node id of where you wish to display the pagelist.

    itemsPerPage is the page size.

    items is the count of all your record.

    width is display pages number.

    style is the selected page’s style.

    callback is the function of get content function.

    No Tags

    Pagelist tool published!

    2006年11月4日 下午 46:30 | 作者:summer

    pagelist tool is used for build pages. 

    when your data have lots of pages, you could use this tool easily build pagelist to browse your pages. 

    I suggest use it with DWR, using DWR get serer page content, using this pagelist tool to diplay next page item.

     you could download it.

    No Tags

    上传文件进度显示-AJAX,DWR

    2006年11月3日 上午 26:29 | 作者:summer

    可以显示文件上传的进度:

    http://www.telio.be/blog/2006/01/06/ajax-upload-progress-monitor-for-commons-fileupload-example/

    很COOL,可以玩玩看,其中你会有很多疑问:我上传的文件去哪里了??自己去找找看:)

    No Tags

    DWR介绍与实践-简单介绍

    2006年10月30日 下午 33:48 | 作者:summer

    Direct Web Remoting

    DWR允许使用客户端Javascript来与服务端Java程序进行交互,他实际上是帮助开发者隐藏了很多的开发细节。 不用辛苦的去使用XMLHTTP,DWR是客户端-服务端的AJAX比较好的解决方案。

    DWR官方网站:

    http://getahead.ltd.uk/

    DWR文档中文翻译最佳网站:

    http://wiki.javascud.org/display/dwrcn/Home

    No Tags
    Pages: 1 ... 35 36 37 38