commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32347] - bean.propertyName does not evaluate correctly if the bean implements java.util.List
Date Mon, 22 Nov 2004 16:53:07 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32347>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32347





------- Additional Comments From mac@donnell.com  2004-11-22 17:53 -------
I appreciate the additional options!

Background
---------------
I am using JSF and a component by a 3rd party.  The "isEmpty()" method is a 
method in their TreeModel interface.  I need to use HTML frames to display the 
page, since I need HTML frame's resizing ability.  However, using frames can 
cause the pages in the frames to load in the wrong order.  This causes NPEs, 
which I solved by refreshing quick pages after the slower pages load.

Oh, what a complicated web we weave...
--------------------------------------
Their TreeModelImpl (which my TreeModelProxy extends) implements List, but my 
TreeModelProxy has a Map that holds the different tree models I will be using.  

My TreeModel proxy overrides *all* the TreeModel methods to return the correct 
value based on the selected model in the map.  On initialization there are no 
complete models to load, so in my TreeModelProxy "isEmpty()" returns true if 
there are no complete models.  I never use the List object that backs my 
TreeModelProxy.

So, why does TreeModelProxy extend their TreeModelImpl (which implements List) 
at all?  Good question.  This is because in the component library I am using, 
their is another bug where they mistakenly cast the model to their TreeModelImpl 
class, and not just to their TreeModel interface.  If it was not for the JSF 
component cast issue, I would never have ran into this since my TreeModelProxy 
would have extended Object and only implemented their TreeModel.



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message