Menu

#31 Support property paths

2.0
open
None
5
2008-07-30
2008-03-10
No

It would be convenient to support property paths in beanprops, such as "foo.bar.baz" where baz is a field of Bean C, which is the type of the field bar in Bean B, which is the type of the field foo. This is analogous to property paths in Wicket, e.g. in PropertyModel.

The corresponding thread on the ML is here: http://sourceforge.net/mailarchive/forum.php?thread_name=b06f30d40802200615y7bf36a98w600415dfa15b03c%40mail.gmail.com&forum_name=wicketwebbeans-users

Two notes about the patch:

handleElementRemove() should be ok, as it makes no sense to explicitly remove a property path. But to be sure we could always return false when the argument is a property path. BTW: the Javadoc says the method returns true when the element was removed, however, when findElementAddPseudos returns null, this is not the case.

The name findElement() is now perhaps a bit misleading, as it's not a pure lookup function anymore, "elements" is modified.

Discussion

  • Thomas Kappler

    Thomas Kappler - 2008-03-10

    patch

     
  • Dan Syrstad

    Dan Syrstad - 2008-07-30

    Logged In: YES
    user_id=167643
    Originator: NO

    This will be implemented in the WWB 2.0 branch.

     
  • Dan Syrstad

    Dan Syrstad - 2008-07-30
    • assigned_to: nobody --> dsyrstad
     
  • Dan Syrstad

    Dan Syrstad - 2008-07-30
    • milestone: --> 2.0
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.