[CONF] Confluence Changes in the last 24 hours
- This is a daily summary of all recent changes in Confluence. - Updated Spaces: - Apache Cayenne Documentation (CAYDOC) http://cwiki.apache.org/confluence/display/CAYDOC | |-Pages Added or Edited in This Space |-- maven2-cgen was last edited by andrus (02:43 PM). | http://cwiki.apache.org/confluence/display/CAYDOC/maven2-cgen |-- cgen was last edited by andrus (02:40 PM). | http://cwiki.apache.org/confluence/display/CAYDOC/cgen Apache Wicket (WICKET) http://cwiki.apache.org/confluence/display/WICKET | |-Pages Added or Edited in This Space |-- Wicket 1.3.0 RC2 was last edited by frankbille (03:25 AM). | http://cwiki.apache.org/confluence/display/WICKET/Wicket+1.3.0+RC2 Apache Directory Project Management (DIRxPMGT) http://cwiki.apache.org/confluence/display/DIRxPMGT | |-Pages Added or Edited in This Space |-- December 2007 was last edited by akarasulu (09:41 AM). | http://cwiki.apache.org/confluence/display/DIRxPMGT/December+2007 - CONFLUENCE INFORMATION This message is automatically generated by Confluence Unsubscribe or edit your notifications preferences http://cwiki.apache.org/confluence/users/viewnotifications.action If you think it was sent incorrectly contact one of the administrators http://cwiki.apache.org/confluence/administrators.action If you want more information on Confluence, or have a bug to report see http://www.atlassian.com/software/confluence
Issues Opened: week of 2007-12-10
Struts2 - Monday, December 10, 2007 13 opened in last 7 days [WW-2362] "HTML form buttons HOWTO" tutorial in Cookbook does no longer work Sebastian - Bug - [] http://issues.apache.org/struts/browse/WW-2362 [WW-2351] customOnSubmit_parameters.id() function name cause problem when parameters.id contains forbidden characters (webwork issue ww-1453) Wes Wannemacher - Bug - [] http://issues.apache.org/struts/browse/WW-2351 [WW-2359] Indexed properties in model do NOT resolved properly Clifford Berepiki - Bug - [] http://issues.apache.org/struts/browse/WW-2359 [WW-2350] REST plugin throws IllegalStateException on Jetty Sarat Pediredla - Bug - [] http://issues.apache.org/struts/browse/WW-2350 [WW-2357] doubleEmptyOption, doubleHeaderKey and doubleHeaderValue ignored in doubleselect tag Marcello Teodori - Bug - [] http://issues.apache.org/struts/browse/WW-2357 [WW-2349] localized conversion from number to string broken Sebastian - Bug - [] http://issues.apache.org/struts/browse/WW-2349 [WW-2361] the default request charEncoding always used. Avatar Zhang - Improvement - [] http://issues.apache.org/struts/browse/WW-2361 [WW-2353] datetimepicker time dojo widget won't let entering minutes freely Giovanni Azua Garcia - Bug - [] http://issues.apache.org/struts/browse/WW-2353 [WW-2356] autocompleter widget fails to publish topic in some cases Giovanni Azua Garcia - Bug - [] http://issues.apache.org/struts/browse/WW-2356 [WW-2352] remote DIV incorrect behavior (different from v2.0.x) Giovanni Azua Garcia - Bug - [] http://issues.apache.org/struts/browse/WW-2352 [WW-2363] Allow limiting of action methods Don Brown - New Feature - [] http://issues.apache.org/struts/browse/WW-2363 [WW-2355] problem with tabbed panel inside a form José Manuel - Bug - [] http://issues.apache.org/struts/browse/WW-2355 [WW-2358] RestWorkflowInterceptor in struts2-rest-plugin is returning a status which kills browser sessions Sarat Pediredla - Bug - [] http://issues.apache.org/struts/browse/WW-2358
svn commit: r602851 - in /struts/sandbox/trunk/jpa-mailreader/src: main/java/entity/ main/java/entity/user/ test/java/action/user/ test/java/hello/
Author: husted Date: Mon Dec 10 02:41:53 2007 New Revision: 602851 URL: http://svn.apache.org/viewvc?rev=602851&view=rev Log: WW-1399 Added: struts/sandbox/trunk/jpa-mailreader/src/test/java/action/user/AuthenticateTest.java - copied, changed from r599722, struts/sandbox/trunk/jpa-mailreader/src/test/java/action/user/autenticateTest.java struts/sandbox/trunk/jpa-mailreader/src/test/java/hello/MessageTestCase.java - copied, changed from r600483, struts/sandbox/trunk/jpa-mailreader/src/test/java/hello/MessageTest.java Removed: struts/sandbox/trunk/jpa-mailreader/src/test/java/action/user/autenticateTest.java Modified: struts/sandbox/trunk/jpa-mailreader/src/main/java/entity/EntityManagerHelper.java struts/sandbox/trunk/jpa-mailreader/src/main/java/entity/user/UserServiceImpl.java Modified: struts/sandbox/trunk/jpa-mailreader/src/main/java/entity/EntityManagerHelper.java URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/jpa-mailreader/src/main/java/entity/EntityManagerHelper.java?rev=602851&r1=602850&r2=602851&view=diff == --- struts/sandbox/trunk/jpa-mailreader/src/main/java/entity/EntityManagerHelper.java (original) +++ struts/sandbox/trunk/jpa-mailreader/src/main/java/entity/EntityManagerHelper.java Mon Dec 10 02:41:53 2007 @@ -50,12 +50,12 @@ */ static final String PERSISTENCE_UNIT = "entity"; -private static final EntityManagerFactory emf; +private static final EntityManagerFactory factory; private static final ThreadLocal threadLocal; private static final Log logger; static { -emf = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT); +factory = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT); threadLocal = new ThreadLocal(); logger = LogFactory.getLog(EntityManagerHelper.class); } @@ -74,7 +74,7 @@ public static EntityManager getEntityManager() { EntityManager manager = threadLocal.get(); if (manager == null || !manager.isOpen()) { -manager = emf.createEntityManager(); +manager = factory.createEntityManager(); threadLocal.set(manager); } return manager; Modified: struts/sandbox/trunk/jpa-mailreader/src/main/java/entity/user/UserServiceImpl.java URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/jpa-mailreader/src/main/java/entity/user/UserServiceImpl.java?rev=602851&r1=602850&r2=602851&view=diff == --- struts/sandbox/trunk/jpa-mailreader/src/main/java/entity/user/UserServiceImpl.java (original) +++ struts/sandbox/trunk/jpa-mailreader/src/main/java/entity/user/UserServiceImpl.java Mon Dec 10 02:41:53 2007 @@ -50,9 +50,9 @@ return result; } -public UserImpl findByName(String value) { -UserImpl result = (UserImpl) singleResult(UserImpl.FIND_BY_NAME, -UserImpl.NAME, value); +public User findByName(String value) { +UserImpl result = (UserImpl) singleResult(User.FIND_BY_NAME, +User.NAME, value); return result; } Copied: struts/sandbox/trunk/jpa-mailreader/src/test/java/action/user/AuthenticateTest.java (from r599722, struts/sandbox/trunk/jpa-mailreader/src/test/java/action/user/autenticateTest.java) URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/jpa-mailreader/src/test/java/action/user/AuthenticateTest.java?p2=struts/sandbox/trunk/jpa-mailreader/src/test/java/action/user/AuthenticateTest.java&p1=struts/sandbox/trunk/jpa-mailreader/src/test/java/action/user/autenticateTest.java&r1=599722&r2=602851&rev=602851&view=diff == --- struts/sandbox/trunk/jpa-mailreader/src/test/java/action/user/autenticateTest.java (original) +++ struts/sandbox/trunk/jpa-mailreader/src/test/java/action/user/AuthenticateTest.java Mon Dec 10 02:41:53 2007 @@ -5,7 +5,7 @@ import entity.user.UserService; import entity.user.UserServiceImpl; -public class autenticateTest extends TestCase { +public class AuthenticateTest extends TestCase { UserService helper; Copied: struts/sandbox/trunk/jpa-mailreader/src/test/java/hello/MessageTestCase.java (from r600483, struts/sandbox/trunk/jpa-mailreader/src/test/java/hello/MessageTest.java) URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/jpa-mailreader/src/test/java/hello/MessageTestCase.java?p2=struts/sandbox/trunk/jpa-mailreader/src/test/java/hello/MessageTestCase.java&p1=struts/sandbox/trunk/jpa-mailreader/src/test/java/hello/MessageTest.java&r1=600483&r2=602851&rev=602851&view=diff == --- struts/sandbox/trunk/jpa-mailreader/src/test/java/hello/MessageTest.java (original) +++ struts/sandbox/trunk/jpa-mailreader/src/test/java/hello/MessageTestC
[Struts Wiki] Update of "HDIV" by Gorka Vicente
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Struts Wiki" for change notification. The following page has been changed by Gorka Vicente: http://wiki.apache.org/struts/HDIV -- Also, given the list of frameworks that you already support, don't you already have an internal API, so that the bulk of your code is common for all frameworks, and you just have a small shim to specialise it for each framework? If that's the case, then how much value is there in having a shared SPI just within Struts? You really need all of the frameworks to implement that SPI, not just Struts, in order to get rid of your per-framework shims, in which case you really want to engage all of the frameworks in the SPI design, not just the Struts team. + '''HDIV team:''' From our point of view, although we find interesting to define a common interface for all the frameworks, our primary goal is to add new extension points to Struts' API so that Struts' users can use it in a transparent way, without having to copy any source code. + + The real problem is similar to what happens in Struts 1 with the RequestProcessor: when you need to intercept a request's life cycle, many times you are forced to extend the RequestProcessor and copy parts of the existing code next to the extension. This problem was solved in Struts2, because each step of the life cycle is implemented by a different interceptor. + + Actually, we want to add extension points to the HTML creation process. + + When implementing HDIV for Struts, we had to extend tags and copy parts of the Struts' source code in order to fulfil HDIV's objectives. For us, these are the main reasons why an interface should be created: + + 1. Avoid having to extend tags and copy source code. Also avoids creating a new version for the extension for each Struts' version. + + 2. Provide extension points that could be used by any framework. + + 3. Eliminate the direct dependency between Struts and HDIV. + + + If we integrate HDIV natively in the tags, without using an interface, we eliminate an extension point that could be required by other frameworks or by Struts itself. Nowadays, we don´t know who and how will require this interface (the automatization of the webflow's flow execution key could be an example), but from a designer point of view it is always better to define an interface that could change from version to version. + + There should be two different implementations of this interface: the one provided by HDIV and the one provided by Struts. Struts' implementation would keep the current tag behaviour and HDIV's one would add security functionalities. + + In our opinion, HDIV's implementation should be configured by default in order to make the application safer. If the developers don't require HDIV they could modify the configuration and use the empty implementation provided by Struts. + + So, although we find using an interface a better solution, we don´t have any problem if the final decision is to include it natively in the code. + = Performance = '''Ted Husted:''' It's unusual that a feature such as this comes without penality. If HDIV were native, what would be the performance cost? Complexity cost? @@ -67, +90 @@ '''Martin Cooper:''' If I am not using any server-side presentation technology at all, which parts of HDIV do I lose? Which can I still use? + '''HDIV team:''' If no presentation framework is used (or the one used is not supported by HDIV), the only way to use HDIV is to consume the base API offered by HDIV core (hdiv-core). That is, the program which generates the HTML code should consume the methods offered by the [http://www.hdiv.org/docs/api/hdiv-core/org/hdiv/dataComposer/IDataComposer.html IDataComposer] interface. + + Obviously, in this case the use of HDIV is not transparent as it is when we use the extended tags. Anyway, the validation phase made by the HDIV filter doesn't change in any case. +