You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2004/02/05 05:36:02 UTC

DO NOT REPLY [Bug 26671] - indexed properties can be only used with forms in the session scope

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26671>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26671

indexed properties can be only used with forms in the session scope

arron@keyboardmonkey.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From arron@keyboardmonkey.com  2004-02-05 04:36 -------
This is already possible if you wrap your ArrayLists with a "LazyList" that is
defined in commons-collections under ListUtils. Static factory method takes your
collection, and a Factory implementation (simple interface which you implement
to make your "MyClass" objects). The "LazyList" will grow to meet the
expectation of anything calling on it. It fills the collection with objects
created by the factory implementation. This way, you don't need to know the size
of the inbound array.

The problem you describe is the reason the Lazy wrappers were created (there's
also one for Map implementations).

It's been mentioned on the user list a few times. Here's the link...

    http://marc.theaimsgroup.com/?l=struts-user&s=LazyList


...happy indexing!

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org