<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    efa's blog

    以用戶角度出發(fā),你就已經(jīng)成功一半了.

    導(dǎo)航

    <2005年8月>
    31123456
    78910111213
    14151617181920
    21222324252627
    28293031123
    45678910

    統(tǒng)計(jì)

    常用鏈接

    留言簿(18)

    我參與的團(tuán)隊(duì)

    隨筆分類

    隨筆檔案

    文章分類

    文章檔案

    Bi report

    dba

    info security

    other

    perl

    php

    python

    tech blogs

    tech websites

    最新隨筆

    搜索

    積分與排名

    最新評(píng)論

    閱讀排行榜

    評(píng)論排行榜

    [ec] extreme Table 版本跟進(jìn)發(fā)布區(qū)

    說(shuō)明
    extreme Table 是個(gè)很不錯(cuò)的table tag,打算記錄底它的版本發(fā)布 change Log :)


    它的RoadMap :
    http://extremecomponents.org/extremesite/public/roadMap.jsp
    以往本BLOG介紹: http://www.tkk7.com/davidxu/archive/2005/08/09/9683.aspx



    我們從這里開(kāi)始:

    [1.0.0-M2-A2]
    1.0.0-M2-A2 - by 官方
    • Able to mix the ColumnTag and the ColumnsTag. Will need to use the method
      model.getColumnHandler().addAutoGenerateColumn(column);
    • Every attribute of every tag will accept an EL Expression
    • Will accept a Set for the collection now


    部分使用說(shuō)明 --by david xu

    1  table 新增加var屬性,支持定義bean name (可選擇),可以不用${collectionName.memberName}這樣難以理解的語(yǔ)法.
        用官方的話就是
        "Added TableTag var attribute. Used (optionally) as the name of the variable to hold the current bean. "
      

    <ec:table
        collection
    ="humanList"
        action
    ="${pageContext.request.contextPath}/index.jsp"
        imagePath
    ="${pageContext.request.contextPath}/images/table/*.gif"
        cellpadding
    ="1"
        saveFilterSort
    ="true"
        var
    ="human"
        title
    ="我的第一個(gè)tag table">
    ec:table>
    $
    {human.name} 取得



    [1.0.1-M2]
    1.0.1-M2 release  by 官方

    1. Things that changed and need to be aware of:

    • The ColumnTag exportable attribute has been removed
      • Replaced with the viewsAllowed and the viewsDenied attributes (see items 3 and 4)
    • Changed Cell interface
      • new interface ->public void init(BaseModel model, Column column);
      • Matches the View interface for consistency
      • The rowcount is part of the new Row bean. Can retrieve the rowcount by doing a model.getRowHandler().getRow().getRowCount()
    • Changed View interface
      • new interface -> public void body(BaseModel model, Column column);
      • Matches the Cell interface for consistency
      • Can get the column position by doing column.isFirstColumn() and column.isLastColumn()
    • New TableTag attributes to replace the deprecated collection attribute
      • The collection attribute has been deprecated in favor of three new attributes. The attributes are call tableId, items, and var
      • Read the full discussion for more information
    • Moved the element back on the Cell for the FilterCell.
      • If you modified the HtmlView, and specifically the filter row, then remove the element in the View.

    2. New RowTag with cooresponding Row Bean

    • Able to do row level javascript onmouseover, onmouseout, and onclick
    • Ability to do row level highlighting. See stylesheet change (below) for proper formating.
    • Moved the stylesheet class attribute from the column () to the row ()

    3. New ColumnTag attribute viewsAllowed

    • Can specify whether the column should be used for the current view. The views include html, pdf, xls, csv, plus any custom views.
    • If you specify a given view (or views), then only that view (or views) will use the column
    • For example you can specify viewsAllowed="pdf" which will use the column for the PDF export, but not any other export or default html View
    • Replaces the ColumnTag exportable attribute

    4. New ColumnTag attribute viewsDenied

    • Can specify whether the column should not be used for the current view. The views include html, pdf, xls, csv, plus any custom views
    • If you specify a given view (or views), then only that view (or views) will not use the column
    • For example you can specify viewsDenied="html" which will not use the column for the html View, but will for all the exports
    • Replaces the ColumnTag exportable attribute

    5. Enhancements

    • Every attribute of every tag will accept an EL Expression
    • Will accept a Set for the collection now
    • Confirmed to work with a RowSetDynaClass (if send as List)
    • Able to mix the ColumnTag and the ColumnsTag. Will need to use the method model.getColumnHandler().addAutoGenerateColumn(column);
    • Improved the default stylesheet
      • My initial intentions were to just change the stylesheet to work with the row highlighting, but I ended up tweaking it enough that now it just works better. For instance if you have some filters turned off then it seamlessly flows with the statusbar because it no longer uses cellspacing. If you use the new stylesheet be sure to remove the table.cellspacing=2 from your extremecomponents.properties file.

    6. Bugs Fixed

    • Fixed Rows Displayed bug
      • The Rows Displayed was not working correctly with the Show All under certain conditions
      • Can set the median and max values in the extremecomponents.properties. The default values are table.medianRowsDisplayed=50 and table.maxRowsDisplayed=100, respectively

    部分使用說(shuō)明 --by david xu
    1、TableTag 的改動(dòng)
          collection attribute
    不再贊成使用,可以使用tableId, items, and var 取而代之

    <ec:table 
        items
    ="customerList"
            tableId
    ="customer"
            var
    ="customer"
        title
    ="customerList"
            …………

    >
    …………
    ec:table>


    2、ColumnTag 新屬性的用法viewAllowed,viewsDenied
          支持view包括:
    html, pdf, xls, csv以及自定的view

         viewsAllowed="pdf"    //說(shuō)明:只允許在pdf view 中
          viewsAllowed="html,xls" //也可以用,分隔

    3、 Cell interface 的改動(dòng)
           通過(guò)model.getRowHandler().getRow().getRowCount() 返回 rowcount
    4、新增RowTag 
        
    <ec:row highlightRow="true" onclick="alert('david')" >
       
    <ec:column/>
       
    <ec:column/>
       
    <ec:column/>
       …………
    ec:row>

    5、set ,RowSetDynaClass 的支持
    <%
    ????List?customerList?
    =?new?ArrayList();
    ????LazyDynaBean?temp?
    =?new?LazyDynaBean();
    ????temp.set(
    "code",?"001");
    ????temp.set(
    "name",?"david?xu");
    ????customerList.add(temp);
    ????request.setAttribute(
    "customerList",?customerList);?
    %>

       …………
      …………


    6、Totalling Columns
    <ec:table
            totalTitle
    ="合計(jì)"
    >      
       
    <ec:column property="salary" showTotal="true"/>
    ec:table>



    New and Noteworthy 1.0.1-M3

    This build represents a massive refacoring of the handler code and includes a new limit package. I believe the state of the code is the best it has ever been and in general has really gone to a new level. This was initially sparked by a refactoring of the Pagination (now Limit) and Rows Displayed features but then trickled down into the handler code and also resulted in a new Limit and LimitFactory.

    Be sure to give yourself time to move to this release as you will need to fix your custom cells and views. I had to move some classes to different packages as things changed internally. The changes will make working with the eXtremeTable much easier and were unavoidable.

    1. Things that changed and need to be aware of:

    • The Show All is no longer an option in the Rows Displayed droplist. It was confusing as the median and max rows would sometimes appear and sometimes go away. It was way to buggy also...you could filter the rows, select show all, and the hit clear. At that point you would display all the rows.
    • The BaseModel moved from the base package to the core package as there is no base package left.
    • The Limit, CollectionOfBeans, CurrentCollectionBean moved to the BaseModel.
    • org.extremecomponents.table.base.ModelUtils --> (moved) org.extremecomponents.table.core.ExportFilterUtils
    • The TableTag attribute rowsDisplayed="0" no longer has any meaning. If you would like to show all the rows then remove the pagination with the TableTag attribute showPagination="false". The reason for the change is because the rows displayed was reworked and the meaning dropped. Also, I could tell from code examples that many people were confused by the attribute and its meaning as both the showPagination="false" and rowsDisplayed="0" were used together. I would prefer one clear way to display all the rows.

    2. Limit and LimitFactory

    Basically you just build a Limit object and it self populates with everything that you need to figure out the sorting, filtering, rowStart, rowEnd, page, currentRows and totalRows. You used to have to deal with Strings and Maps versus now you work with simple intuitive objects and ints. I also use the Limit object internally with a different factory.

    This is all you have to do:

     Limit limit = LimitFactory.createInstanceOfLimit(request, tableId);
     LimitFactory.setLimitFilterAndSortAttr(limit);
    
     //once you know the total rows
     LimitFactory.setLimitPageAndRowAttr(limit, DEFAULT_ROWS_DISPLAYED, totalRows);

    The example demonstrates how to work in a Controller (Spring) or Action (Struts).

    Then in your JSP set the callbacks to point to the LimitCallback.

    <ec:table 
          retrieveRowsCallback="org.extremecomponents.table.callback.LimitCallback"
          filterRowsCallback="org.extremecomponents.table.callback.LimitCallback"
          sortRowsCallback="org.extremecomponents.table.callback.LimitCallback"
          ...
      >

    3. Enhancements

    • If you hard coded in any of the filter parameters then be sure to look at the TableContants class to see how they changed. The URL is more of a code than something you can read now.

    4. Bugs Fixed

    • Fixed the FOP errors messages associated with the PDF Export View.
    • If the filter is invoked with no filter criteria the table no longer tries to match empty results. The effect before was the table would show no results, and now just remains the same.
    • Removed org.extremecomponents.table.tag.TableTagExtraInfo

    posted on 2005-08-27 15:09 一凡@ITO 閱讀(9037) 評(píng)論(20)  編輯  收藏

    評(píng)論

    # re: [ec] extreme Table 版本跟進(jìn)發(fā)布區(qū) 2005-08-28 19:31 江南白衣@ITO

    太好了,不知道把這個(gè)版本整合進(jìn)來(lái)要多久。

      回復(fù)  更多評(píng)論   

    # re: [ec] extreme Table 版本跟進(jìn)發(fā)布區(qū) 2005-08-28 19:32 江南白衣@ITO

    動(dòng)態(tài)設(shè)置列的功能也很有用,期待9.19

    Dynamically Hide/Show columns

    Using Javascript to give the ability to hide and show columns on the fly.   回復(fù)  更多評(píng)論   

    # re: [ec] extreme Table 版本跟進(jìn)發(fā)布區(qū) 2005-08-28 19:34 江南白衣@ITO

    設(shè)置每個(gè)列在哪種媒體中顯示的列也很有用。
    ColumnTag can take an optional "media" attribute. This can be "html", or "pdf", etc.

    因?yàn)長(zhǎng)H項(xiàng)目需要在html管理界面中只顯示一部分主要的列,詳細(xì)的列點(diǎn)"編輯"再看。
    而在excel中則需要顯示所有列  回復(fù)  更多評(píng)論   

    # re: [ec] extreme Table 版本跟進(jìn)發(fā)布區(qū) 2005-08-28 19:35 江南白衣@ITO

    The RowTag The attributes will include style, styleClass, onmouseover, onmouseout and onclick.

    這個(gè)功能也太好了,我們又可以省掉一些擴(kuò)展。大家都需要設(shè)置自己的動(dòng)態(tài)效果的,EC想得真周到。  回復(fù)  更多評(píng)論   

    # re: [ec] extreme Table 版本跟進(jìn)發(fā)布區(qū) 2005-11-06 15:59 jiniboy

    能像asp.net的datagird嗎  回復(fù)  更多評(píng)論   

    # re: [ec] extreme Table 版本跟進(jìn)發(fā)布區(qū) 2005-11-08 14:12 xuruchao

    導(dǎo)出pdf和xml時(shí),拋出Exception:如下
    Error 500--Internal Server Error
    javax.servlet.jsp.JspException: TableTag Problem: java.lang.NullPointerException
    at org.extremecomponents.table.handler.ColumnHandler.isViewAllowed(ColumnHandler.java:130)
    at org.extremecomponents.table.handler.ColumnHandler.addColumn(ColumnHandler.java:53)
    at org.extremecomponents.table.tag.ColumnTag.doEndTag(ColumnTag.java:429)
    有誰(shuí)知道是什么原因!

      回復(fù)  更多評(píng)論   

    # re: [ec] extreme Table 版本跟進(jìn)發(fā)布區(qū) 2005-11-10 11:43 DavidXu

    to xuruchao
    就這幾句好難看出問(wèn)題吧.
    可能是版本,配置文件的問(wèn)題吧.

    isViewAllowed ??
    你用的什么版本?有升級(jí)過(guò)不?  回復(fù)  更多評(píng)論   

    # re: [ec] extreme Table 版本跟進(jìn)發(fā)布區(qū) 2005-11-10 16:26 xuruchao

    謝謝你的回答,導(dǎo)出pdf和xml時(shí),拋出Exception的問(wèn)題我已經(jīng)解決了(沒(méi)有加編碼Filter的問(wèn)題),現(xiàn)在有另外一個(gè)問(wèn)題,pdf導(dǎo)出是#,不知道是什么原因,在網(wǎng)上查了一下,問(wèn)題依舊沒(méi)有解決!有誰(shuí)能夠解決,不勝感激!  回復(fù)  更多評(píng)論   

    # re: [ec] extreme Table 版本跟進(jìn)發(fā)布區(qū) 2005-11-10 16:28 Davidxu

    你上網(wǎng)搜索一下有關(guān) fop 的文章介紹,挺多的.
    這主要是沒(méi)有注冊(cè)到中文字體問(wèn)題.另從tomcat的console 可以觀察fop解釋情況.
      回復(fù)  更多評(píng)論   

    # re: [ec] extreme Table 版本跟進(jìn)發(fā)布區(qū) 2006-01-22 13:42 探索者

    我不能從sourceforge下載,為什么,誰(shuí)有,傳一個(gè)給我。yrlong@163.com  回復(fù)  更多評(píng)論   

    # re: [ec] extreme Table 版本跟進(jìn)發(fā)布區(qū) 2006-01-23 13:51 David xu

    最近我也上不了sourceforge,應(yīng)該會(huì)修復(fù)的.再等會(huì)吧:)  回復(fù)  更多評(píng)論   

    # re: [ec] extreme Table 版本跟進(jìn)發(fā)布區(qū) 2006-02-05 18:08 Ivan Chen

    下載是完全沒(méi)有問(wèn)題的,最新的extreme table下載地址:
    http://puzzle.dl.sourceforge.net/sourceforge/extremecomp/eXtremeComponents-1.0.1-M4-with-dependencies.zip

    最近都是開(kāi)著tor過(guò)活了,sigh……  回復(fù)  更多評(píng)論   

    # re: [ec] extreme Table 版本跟進(jìn)發(fā)布區(qū) 2006-02-10 19:31 SqUaLL

    extreme table 有沒(méi)有 id 屬性,我搞了半天沒(méi)有搞出來(lái)  回復(fù)  更多評(píng)論   

    # re: [ec] extreme Table 版本跟進(jìn)發(fā)布區(qū) 2006-02-12 08:55 davidxu

    tableId,詳細(xì)你可以看看tld文件  回復(fù)  更多評(píng)論   

    # re: [ec] extreme Table 版本跟進(jìn)發(fā)布區(qū) 2006-02-12 12:01 SqUaLL

    tableId 沒(méi)有用啊,生成的 html 還是沒(méi)有 id 屬性  回復(fù)  更多評(píng)論   

    # re: [ec] extreme Table 版本跟進(jìn)發(fā)布區(qū) 2006-02-14 10:03 davidxu

    設(shè)置tableId會(huì)為form
    增加id屬性,你可以試一下.
    <form id="">
    </form>
      回復(fù)  更多評(píng)論   

    # re: [ec] extreme Table 版本跟進(jìn)發(fā)布區(qū) 2006-02-15 08:56 SqUaLL

    這個(gè)我知道,我還是改了源碼,ec:table加了個(gè)id屬性  回復(fù)  更多評(píng)論   

    # re: [ec] extreme Table 版本跟進(jìn)發(fā)布區(qū) 2006-02-15 15:51 study

    我也碰到 導(dǎo)出pdf和xml時(shí),拋出Exception:如下
    Error 500--Internal Server Error
    javax.servlet.jsp.JspException: TableTag Problem: java.lang.NullPointerException
    at org.extremecomponents.table.handler.ColumnHandler.isViewAllowed(ColumnHandler.java:130)
    at org.extremecomponents.table.handler.ColumnHandler.addColumn(ColumnHandler.java:53)
    at org.extremecomponents.table.tag.ColumnTag.doEndTag(ColumnTag.java:429) 的問(wèn)題
    我在web.xml配了
    <filter>
    <filter-name>eXtremeExport</filter-name>
    <filter-class>org.extremecomponents.table.filter.ExportFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>eXtremeExport</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    還是出現(xiàn)同樣的問(wèn)題,請(qǐng)指教noboyanyone123@sohu.com
      回復(fù)  更多評(píng)論   

    # re: [ec] extreme Table 版本跟進(jìn)發(fā)布區(qū) 2006-08-01 23:12 liushl

    請(qǐng)問(wèn)為什么我的extremetable 國(guó)際化總是不行?
    我用的是Spring框架
    web.xml
    配置如下
    <context-param>
    <param-name>extremecomponentsMessagesLocation</param-name>
    <param-value>/WEB-INF/i18n/messages</param-value>
    </context-param>

    spring 中也有如下片斷
    <bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
    <property name="basenames">
    <list>
    <value>/WEB-INF/i18n/messages</value>
    <value>/WEB-INF/i18n/Error_messages</value>
    </list>
    </property>
    </bean>

    但是運(yùn)行時(shí),總是報(bào)下面的錯(cuò):
    Can't find bundle for base name /WEB-INF/i18n/messages, locale zh_CN
    at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:837)
    at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:727)
    at java.util.ResourceBundle.getBundle(ResourceBundle.java:700)
    at org.extremecomponents.table.resource.TableResourceBundle.findResourceBundle(TableResourceBundle.java:55)
    at org.extremecomponents.table.resource.TableResourceBundle.init(TableResourceBundle.java:49)
    at org.extremecomponents.table.core.TableModelImpl.<init>(TableModelImpl.java:82)
    at org.extremecomponents.table.tag.TableTag.doStartTag(TableTag.java:400)
    at org.apache.jsp.WEB_002dINF.jsp.listUser_jsp._jspx_meth_ec_table_0(listUser_jsp.java:525)
    at org.apache.jsp.WEB_002dINF.jsp.listUser_jsp._jspService(listUser_jsp.java:150)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)



    我的文件肯定在對(duì)的位置 因?yàn)閱渭兊膉stl國(guó)際化已經(jīng)在同一葉面成功
    但是<ec:table 標(biāo)簽里的資源總是報(bào)錯(cuò)
    請(qǐng)問(wèn)這是什么問(wèn)題呢?
      回復(fù)  更多評(píng)論   

    # re: [ec] extreme Table 版本跟進(jìn)發(fā)布區(qū) 2007-01-11 16:11 highboy

    郁悶呀,sourceforge上不去呀,誰(shuí)有et的depend jar,給我發(fā)一份吧。謝謝
    bogaoyi@126.com  回復(fù)  更多評(píng)論   


    只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


    網(wǎng)站導(dǎo)航:
     
    主站蜘蛛池模板: 综合一区自拍亚洲综合图区| 成人国产mv免费视频| 人与动性xxxxx免费| 亚洲色精品VR一区区三区| 亚洲AV无码成人专区片在线观看| 免费在线黄色网址| 99热在线精品免费全部my| 182tv免费视频在线观看 | 国产成在线观看免费视频| 国内精品免费在线观看| 美女被免费网站在线视频免费| 亚洲国产成人精品激情| 亚洲美女视频网站| 亚洲AV综合色区无码一区爱AV| 亚洲精品tv久久久久| 免费观看午夜在线欧差毛片| 我要看WWW免费看插插视频| 国产妇乱子伦视频免费| 亚洲国产精品免费在线观看| 欧洲人成在线免费| 97无码人妻福利免费公开在线视频| www免费黄色网| 久久性生大片免费观看性| 搜日本一区二区三区免费高清视频| 亚洲国产成人久久精品大牛影视| 亚洲人成网国产最新在线| 亚洲国产成人精品无码区在线网站| 亚洲第一页中文字幕| 亚洲黄色片在线观看| 亚洲熟妇色自偷自拍另类| 亚洲精品韩国美女在线| 亚洲福利视频一区二区三区| 久久亚洲精品国产精品| 精品日韩亚洲AV无码| 亚洲成a人片毛片在线| 亚洲一区二区影视| 日韩亚洲产在线观看| 亚洲av永久无码天堂网| 国产成人不卡亚洲精品91| 性生大片视频免费观看一级| gogo免费在线观看|