webwork-devel Mailing List for WebWork (Page 55)
Brought to you by:
baldree,
rickardoberg
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(316) |
Dec
(117) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(197) |
Feb
(229) |
Mar
(293) |
Apr
(177) |
May
(84) |
Jun
(40) |
Jul
(43) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Rickard ?b. <ric...@us...> - 2001-11-15 12:21:02
|
Update of /cvsroot/webwork/webwork/src/resources/web/WEB-INF/classes In directory usw-pr-cvs1:/tmp/cvs-serv2635/WEB-INF/classes Modified Files: views.properties Log Message: Iterator test updated. Now shows off the new generic Sorter comparators (WAY COOL) |
From: Rickard ?b. <ric...@us...> - 2001-11-15 12:21:02
|
Update of /cvsroot/webwork/webwork/src/resources/web In directory usw-pr-cvs1:/tmp/cvs-serv2635 Modified Files: iterators.jsp Log Message: Iterator test updated. Now shows off the new generic Sorter comparators (WAY COOL) |
From: Rickard ?b. <ric...@us...> - 2001-11-15 12:19:49
|
Update of /cvsroot/webwork/webwork/src/resources/web/log4j In directory usw-pr-cvs1:/tmp/cvs-serv2383 Added Files: categories.jsp Log Message: Log4j viewer JSP's. |
From: Rickard ?b. <ric...@us...> - 2001-11-15 12:19:27
|
Update of /cvsroot/webwork/webwork/src/resources/web/log4j In directory usw-pr-cvs1:/tmp/cvs-serv2335/log4j Log Message: Directory /cvsroot/webwork/webwork/src/resources/web/log4j added to the repository |
From: Rickard ?b. <ric...@us...> - 2001-11-15 12:19:14
|
Update of /cvsroot/webwork/webwork/src/main/webwork/action/test/log4j In directory usw-pr-cvs1:/tmp/cvs-serv2290 Added Files: AppenderListing.java CategoryListing.java Log Message: Log4j actions |
From: Rickard ?b. <ric...@us...> - 2001-11-15 12:18:34
|
Update of /cvsroot/webwork/webwork/src/main/webwork/action/test/log4j In directory usw-pr-cvs1:/tmp/cvs-serv2164/log4j Log Message: Directory /cvsroot/webwork/webwork/src/main/webwork/action/test/log4j added to the repository |
From: Rickard ?b. <ric...@us...> - 2001-11-15 12:18:11
|
Update of /cvsroot/webwork/webwork/src/main/webwork/taglib/iterator In directory usw-pr-cvs1:/tmp/cvs-serv2097/webwork/taglib/iterator Modified Files: IteratorGeneratorTag.java SortIteratorTag.java SubsetIteratorTag.java Log Message: Added generic sorter support in Sorter Updated iterator tests Minor bug fixes |
From: Rickard ?b. <ric...@us...> - 2001-11-15 12:18:11
|
Update of /cvsroot/webwork/webwork/src/main/webwork/util In directory usw-pr-cvs1:/tmp/cvs-serv2097/webwork/util Modified Files: SortIteratorFilter.java Sorter.java ValueStack.java Log Message: Added generic sorter support in Sorter Updated iterator tests Minor bug fixes |
From: Rickard ?b. <ric...@us...> - 2001-11-15 12:18:11
|
Update of /cvsroot/webwork/webwork/src/main/webwork In directory usw-pr-cvs1:/tmp/cvs-serv2097/webwork Modified Files: log4j.properties Log Message: Added generic sorter support in Sorter Updated iterator tests Minor bug fixes |
From: Rickard ?b. <ric...@us...> - 2001-11-15 12:18:11
|
Update of /cvsroot/webwork/webwork/src/main/webwork/taglib In directory usw-pr-cvs1:/tmp/cvs-serv2097/webwork/taglib Modified Files: ActionTag.java IteratorTag.java Log Message: Added generic sorter support in Sorter Updated iterator tests Minor bug fixes |
From: Rickard <ri...@xp...> - 2001-11-15 11:34:44
|
Hey I just put together a very simple example of a log4j console, which simply outputs the categories and the log levels that have been enabled for each category. While doing so I had the need to use the "sort" tag to sort the list of categories according to their name. With the current CVS code I would have had to write a bean that provides a comparator that would do this sorting. While that would have worked, I wanted a more generic approach that one could use without having to do custom coding. So, what I did was to extend the Sorter JavaBean to include a method getComparator(String anExpression) which creates a comparator that can compare two values that will be obtained by using the given WebWork expression on them. For example, if I have a list of Person objects, and want to output them sorted by name (Person.getName()), then I simply have to call Sorter.getComparator("name") to get a comparator that can be used for the sort operation. Thus, the category listing JSP code becomes (table header/footer removed): <webwork:bean name="'webwork.util.Sorter'" id="sorter"/> <webwork:action name="'log4j.categories'"> <form action="log4j.update.action" method="post"> <iterator:sort source="categories" comparator="@sorter/comparator('name')"> <webwork:iterator> <tr> <td><webwork:property value="name"/></td> <td><input type=checkbox name="<webwork:property value="name"/>/debug" value="true" <webwork:if test="debugEnabled==true">checked</webwork:if>></td> <td><input type=checkbox name="<webwork:property value="name"/>/info" value="true" <webwork:if test="infoEnabled==true">checked</webwork:if>></td> </tr> </webwork:iterator> </iterator:sort> </form> </webwork:action> -- The log4j.categories action simply provides the list of categories, and according to the JavaDoc the Category class has a getName() method, hence the "@sorter/comparator('name')" attribute in the sort tag. The expression can be any WW expression, but I think most cases will be of this rather simple variant. Nice! :-) Any thoughts on this? There is also a method in the Sorter to get the reverse comparator. I'm considering adding a boolean flag to the method for forward/backward ordering selection, which will allow dynamic selection of order. /Rickard ps. The above is not yet commited to CVS. Watch the dev list. -- Rickard Öberg |
From: matt b. <mat...@ho...> - 2001-11-14 17:18:15
|
The docs build is failing for me. I found a dangling </section> tag that when I removed fixed the problem. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
From: Christoph S. <ch...@sc...> - 2001-11-14 15:18:47
|
Hello Rickard, Wednesday, November 14, 2001, 3:31:29 PM, you wrote: RÖ> Christoph Sturm wrote: >> this breaks the docs build, jsp.xml is not wellformed anymore. >> After removing the last </section> element, it stops complaining, but >> throws a null pointer exception instead when building the docs. RÖ> Fixed. It was an accident... thanks! it works fine now, thx. But note that I had to add xalan, crimson and jaxp from the webwork lib directory to my ant build classpath in idea to get it to build the docs in idea (515). Commandline build works fine always. RÖ> /Rickard -- Best regards, Christoph mailto:ch...@sc... |
From: Rickard <ri...@xp...> - 2001-11-14 14:31:39
|
Christoph Sturm wrote: > this breaks the docs build, jsp.xml is not wellformed anymore. > After removing the last </section> element, it stops complaining, but > throws a null pointer exception instead when building the docs. Fixed. It was an accident... thanks! /Rickard -- Rickard Öberg |
From: Rickard ?b. <ric...@us...> - 2001-11-14 14:31:01
|
Update of /cvsroot/webwork/webwork/src/docs In directory usw-pr-cvs1:/tmp/cvs-serv8552 Modified Files: jsp.xml Log Message: Fixed JSP doc (broke due to experimental stuff that was accidentally committed) |
From: Christoph S. <ch...@sc...> - 2001-11-14 14:20:23
|
Hello Rickard, this breaks the docs build, jsp.xml is not wellformed anymore. After removing the last </section> element, it stops complaining, but throws a null pointer exception instead when building the docs. Wednesday, November 14, 2001, 11:20:04 AM, you wrote: Rb> Update of /cvsroot/webwork/webwork/src/docs Rb> In directory usw-pr-cvs1:/tmp/cvs-serv11007/src/docs Rb> Modified Files: Rb> jsp.xml Rb> Log Message: Rb> Renamed key/list in components to listKey/listValue Rb> Added value attribute in all components Rb> Updated example JSP's to handle the above changes Rb> _______________________________________________ Rb> Webwork-devel mailing list Rb> Web...@li... Rb> https://lists.sourceforge.net/lists/listinfo/webwork-devel -- Best regards, Christoph mailto:ch...@sc... |
From: Rickard <ri...@xp...> - 2001-11-14 12:19:30
|
Hey A bunch of updates: * The RSS demo that Maurice put in has been vastly enhanced. Now it sports a pull down list that you can choose feed from. Three feeds currently. The RSS stuff now also properly handles the different versions of RSS. The initial version only handled 0.91, but I've added support for 1.0 as well (which is vastly superior to 0.91). The list of feeds is a RSS feed itself just "for the heck of it" :-) * (IMPORTANT!) All UI tags now have a "value" attribute that can be used to specify a WebWork expression where the selected value can be retrieved from. If it is not specified, then the "name" attribute is used as before. This will allow you to have one name for the field, while getting the value from somewhere else. Very useful. The UI components that already had a "value" attribute (select, checkbox, radiobutton) have been changed. The select/radiobutton attributes are now listKey/listValue instead, and checkbox now has a fieldValue attribute instead of the old value. Yes, this will break current code so be sure to update your JSP's accordingly. The requirement to have a separate value attribute was so great (IMHO) that this change was necessary before 1.0. * There's a new i18n tag, as outlined in previous post. It will allow you to specify a particular resource bundle to be used by the text tag. Example from text.jsp: <webwork:i18n name="'webwork.action.test.i18n.Shop'"> <webwork:text name="'main.title'"/> </webwork:i18n> So, even if the current action does not have the above bundle associated with it, you can still access it by using the i18n tag to "scope" the text tag. The primary use of this is to access resource bundles that are not associated with any particular action, i.e. view-specific bundles. The retrieval of the bundle will be done by first trying to evaluate "texts(<bundle name>)" on the stack, so if you have an action on the stack and it has a custom getTexts() implementation (such as reading bundles from a database), that will be used. Otherwise the usual ResourceBundle.getBundle() method will be used, although *through* ActionSupport.getTexts() so that the proper locale is used. I hope ya'll find these changes relevant and good. Let me know otherwise, or if you have any suggestions for improvement. /Rickard -- Rickard Öberg Software Development Specialist xlurc - Xpedio Linköping Ubiquitous Research Center Author of "Mastering RMI" Email: ri...@xp... |
From: Rickard ?b. <ric...@us...> - 2001-11-14 11:18:25
|
Update of /cvsroot/webwork/webwork/src/resources/web/rss In directory usw-pr-cvs1:/tmp/cvs-serv30160 Added Files: blank.jsp menu.jsp viewer.jsp Log Message: Added RSS example JSP's |
From: Rickard ?b. <ric...@us...> - 2001-11-14 11:17:30
|
Update of /cvsroot/webwork/webwork/src/resources/web/WEB-INF/classes/META-INF In directory usw-pr-cvs1:/tmp/cvs-serv29750/resources/web/WEB-INF/classes/META-INF Modified Files: taglib.tld Log Message: Added i18n tag Expanded formatting tests to include the new i18n tag |
From: Rickard ?b. <ric...@us...> - 2001-11-14 11:17:29
|
Update of /cvsroot/webwork/webwork/src/resources/web/WEB-INF/classes In directory usw-pr-cvs1:/tmp/cvs-serv29750/resources/web/WEB-INF/classes Modified Files: webwork.properties Log Message: Added i18n tag Expanded formatting tests to include the new i18n tag |
From: Rickard ?b. <ric...@us...> - 2001-11-14 11:17:29
|
Update of /cvsroot/webwork/webwork/src/main/webwork/action In directory usw-pr-cvs1:/tmp/cvs-serv29750/main/webwork/action Modified Files: ActionSupport.java Log Message: Added i18n tag Expanded formatting tests to include the new i18n tag |
From: Rickard ?b. <ric...@us...> - 2001-11-14 11:17:29
|
Update of /cvsroot/webwork/webwork/src/resources/web In directory usw-pr-cvs1:/tmp/cvs-serv29750/resources/web Modified Files: text.jsp Log Message: Added i18n tag Expanded formatting tests to include the new i18n tag |
From: Rickard ?b. <ric...@us...> - 2001-11-14 11:17:29
|
Update of /cvsroot/webwork/webwork/src/main/webwork/taglib In directory usw-pr-cvs1:/tmp/cvs-serv29750/main/webwork/taglib Modified Files: TextTag.java Added Files: I18nTag.java Log Message: Added i18n tag Expanded formatting tests to include the new i18n tag |
From: Rickard ?b. <ric...@us...> - 2001-11-14 10:21:02
|
Update of /cvsroot/webwork/webwork/src/resources/web In directory usw-pr-cvs1:/tmp/cvs-serv11289 Modified Files: index.jsp Log Message: Changed RSS example comment to reflec that it's more generic now |
From: Rickard ?b. <ric...@us...> - 2001-11-14 10:20:05
|
Update of /cvsroot/webwork/webwork/src/resources/web/i18n In directory usw-pr-cvs1:/tmp/cvs-serv11007/src/resources/web/i18n Modified Files: language.jsp Log Message: Renamed key/list in components to listKey/listValue Added value attribute in all components Updated example JSP's to handle the above changes |