lfnxd

          2008年8月7日

               摘要: 當前作為AJAX的開發中可以選擇的JS UI腳本庫還是不少,但是Ext 2.0是中立的,開發簡易的,界面和交互性更加強大友好的庫,他不必要求和任何MVC結合,純正的js前端腳本,不是java2js,也不是用xml語法描述界面,個人覺得更加適合引入項目來增加界面的友好性和交互體驗,而且簡化JS前端的編碼。 Ext 2.0的DEMO體驗網址:  http://extjs.com/...  閱讀全文
          posted @ 2008-08-11 15:48 云和山的彼端 閱讀(1336) | 評論 (0)編輯 收藏
          需求
                  在客戶的B/S應用系統中使用電子地圖。該系統只可運行于內部網中。

          分析
                  由于系統中的電子地圖只能運行于局域網中所以不能采用google地圖等。而且客戶項目不大,所以不能購買收費的gis服務器。

          設計及架構
                  gis服務器采用開源的geoserver+tomcat。
                  地圖數據可以從國家基礎地理信息系統http://nfgis.nsdi.gov.cn/nfgis/chinese/c_xz.htm下載。
                  數據庫采用postgresql8.3。
                  頁面技術采用OpenLayers。
                 

          實施
                 1、安裝postgresql數據庫,可以安裝時選擇安裝postgis組件。也可在安裝完的基礎山再安裝postgis。
                 2、創建gis數據庫,新建數據庫時選擇模板為template_postgis。
                 3、下載縣級數據bount500.e00。
                 4、用工具將bount500.e00轉換為shp格式。
                 5、下載開源工具FWTools2.2,執行命令ogr2ogr -f "PostgreSQL" PG:"host=localhost dbname=數據庫名稱 user=用戶名 password=密碼"  shp文件路徑 -append -update,將數據導入postgis數據庫中。
                 6、下載tomcat5.5和geoserver,將geoserver.war部署到tomcat中,啟動應用服務器。
                 7、登錄geoserver應用,配置地圖服務端,參考geoserver在線幫助。
                 8、下載OpenLayers,在javascript中包含OpenLayers.js。參考openlayers的例子編寫客戶端腳本。
                  這樣一個簡單的電子地圖系統就完成了。
          posted @ 2008-08-07 11:27 云和山的彼端 閱讀(4924) | 評論 (1)編輯 收藏
               摘要:        很多架構師都是從好的開發人員逐步過渡而來的,但并非每個好的開發人員都希望成為架構師,而且他們并不是都適合做架構師。無論您是打算進行職業轉型的開發人員,還是尋找能承擔體系結構設計責任的合適人選的經理,都務必對此轉型過程有個清楚的了解。本文將討論從實現專家到架構師的過渡過程。   在尋找優秀的指揮的時候,您首先要找的是一名優秀...  閱讀全文
          posted @ 2008-08-07 10:54 云和山的彼端 閱讀(828) | 評論 (0)編輯 收藏

              tomahawk與trinidad提供了豐富的控件,但是當默認呈現器設置成org.apache.myfaces.trinidad.core時,tomahawk中的dataScroll不能正常工作。如果不設置默認呈現器,trinidad又不能工作,所以這是個矛盾,需要跟蹤代碼,使這兩個優秀的開源JSF控件集能很好的共存。

              解決方法:在eclipse中導入trinidad-1.0.2的源碼,修改包org.apache.myfaces.trinidadinternal.renderkit.htmlBasic中的HtmlCommandLinkRenderer.java。

          public class HtmlCommandLinkRenderer extends Renderer
          {

            ...
            private Renderer renderer = null;   //增加呈現器接口成員變量

            ....
            //增加encodeBegin函數

            @SuppressWarnings("unchecked")
            @Override
            public void encodeBegin(FacesContext context,
                               UIComponent component) throws IOException
            {
              // The tr:commandLink is not a rendersChildren component,
              // but h:commandLink is.  Hence, the difference in behavior
              renderer = createRenderer(component);
              renderer.encodeBegin(context, component);

              for(UIComponent child : (List<UIComponent>)component.getChildren())
              {
                RenderUtils.encodeRecursive(context, child);
              }
            }

            ...
           

            //修改encodeEnd函數為當前代碼
            @SuppressWarnings("unchecked")
            @Override
            public void encodeEnd(FacesContext context,
                               UIComponent component) throws IOException
            {
              // The tr:commandLink is not a rendersChildren component,
              // but h:commandLink is.  Hence, the difference in behavior
              if(renderer==null)
              {
               renderer = createRenderer(component);
               renderer.encodeBegin(context, component);
           
               for(UIComponent child : (List<UIComponent>)component.getChildren())
               {
                 RenderUtils.encodeRecursive(context, child);
               }
              }
              renderer.encodeEnd(context, component);
            }

            ...
          }

           
          posted @ 2008-08-07 10:48 云和山的彼端 閱讀(371) | 評論 (0)編輯 收藏

          導航

          <2008年8月>
          272829303112
          3456789
          10111213141516
          17181920212223
          24252627282930
          31123456

          統計

          常用鏈接

          留言簿(4)

          我參與的團隊

          隨筆檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 梧州市| 金塔县| 武陟县| 五大连池市| 锡林浩特市| 凤冈县| 都昌县| 福泉市| 孟村| 仪征市| 长沙市| 翁牛特旗| 钦州市| 蓬安县| 丹寨县| 布尔津县| 济阳县| 凤台县| 新田县| 开平市| 南康市| 天津市| 宜川县| 高安市| 灵寿县| 天水市| 武鸣县| 永春县| 苗栗市| 双峰县| 大名县| 梓潼县| 迁西县| 尉氏县| 富平县| 珲春市| 湖南省| 永德县| 区。| 大丰市| 江油市|