Issue Details (XML | Word | Printable)

Key: SHALE-190
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Adam Brod
Votes: 2
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Shale

Allow Managed Properties on Abstract Base Classes

Created: 13/Jun/06 07:09 PM   Updated: 23/Jan/07 04:40 PM
Component/s: Tiger
Affects Version/s: 1.0.3-SNAPSHOT
Fix Version/s: 1.0.4

File Attachments:
  Size
Text File Licensed for inclusion in ASF works LifecycleListener2.java.patch 2006-11-19 12:21 PM Ingo Dueppe 2 kB


 Description  « Hide

I have an abstract base class with two concrete managed bean subclasses. I would like to be able to annotate the abstract base class with @Value and have that property be available to the subclasses, even though the abstract base class isn't actually a managed bean.

Jpa has a similar feature allowing you to specify mappings on an abstract base class: http://java.sun.com/javaee/5/docs/api/javax/persistence/MappedSuperclass.html


 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Ingo Dueppe added a comment - 19/Nov/06 12:21 PM
The patch solve the "FIXME - should we look for inherited fields with @Property/@Value too?" in the LifecycleListener2 of the tiger module.

Ingo Dueppe made changes - 19/Nov/06 12:21 PM
Field Original Value New Value
Attachment LifecycleListener2.java.patch [ 13233 ]
Repository Revision Date User Message
ASF #477909 Tue Nov 21 21:46:36 UTC 2006 craigmcc Scan fields in superclasses for annotations, as well as the originally
annotated class. Thanks to Ingo Dueppe for the patch!

SHALE-190
Files Changed
ADD /shale/framework/trunk/shale-tiger/src/test/java/org/apache/shale/tiger/config/TestBean2.java
MODIFY /shale/framework/trunk/shale-tiger/pom.xml
MODIFY /shale/framework/trunk/shale-tiger/src/main/java/org/apache/shale/tiger/view/faces/LifecycleListener2.java
MODIFY /shale/framework/trunk/shale-tiger/src/test/java/org/apache/shale/tiger/faces/VariableResolverImplTestCase.java
MODIFY /shale/framework/trunk/shale-tiger/src/test/java/org/apache/shale/tiger/view/faces/LifecycleListener2TestCase.java

Craig McClanahan added a comment - 21/Nov/06 10:45 PM
Fixed in nightly build 20061122. Will be included in 1.0.4.

Thanks to Ingo Dueppe for the patch!

Craig McClanahan made changes - 21/Nov/06 10:45 PM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Fix Version/s 1.0.4-SNAPSHOT [ 21740 ]
Rahul Akolkar made changes - 23/Jan/07 04:40 PM
Fix Version/s 1.0.4 [ 21790 ]
Fix Version/s 1.0.4-SNAPSHOT [ 21740 ]
Jeff Turner made changes - 09/Aug/07 07:17 AM
Workflow Struts [ 38447 ] Struts - editable closed status [ 42414 ]
Antonio Petrelli made changes - 08/Jan/09 08:57 AM
Workflow Struts - editable closed status [ 42414 ] Struts - editable closed status (temporary) [ 46309 ]
Antonio Petrelli made changes - 08/Jan/09 09:08 AM
Workflow Struts - editable closed status (temporary) [ 46309 ] Struts - editable closed status [ 52942 ]