Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Sapphire » ReferenceValue target object property in EL
ReferenceValue target object property in EL [message #1031133] Mon, 01 April 2013 08:21 Go to next message
bibi too is currently offline bibi tooFriend
Messages: 1
Registered: April 2013
Junior Member
May I use expression on label to access ReferenceValue target object property?
Like SqlSchemaEditor example, ForeignKey has a ReferencedTable:
    // *** ReferencedTable ***
    
    @Reference( target = Table.class )
    @Service( impl = TableReferenceService.class )
    @Required
    @PossibleValues( property = "/Tables/Name" )
    @XmlBinding( path = "referenced-table" )

    ValueProperty PROP_REFERENCED_TABLE = new ValueProperty( TYPE, "ReferencedTable" );

    ReferenceValue<String, Table> getReferencedTable();
    void setReferencedTable( String value );


In property view I wan't to see the reference table property like that:
<label>${referencedTable.target.otherTableProperty}</label>

Any help will be greatly appreciated!
Re: ReferenceValue target object property in EL [message #1032155 is a reply to message #1031133] Tue, 02 April 2013 16:30 Go to previous message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
There is no existing facility to do this. Please open an enhancement request. In the meantime, you should be able to write a custom EL function to accomplish this. See ItemImageFunction in the samples for an example on how to write a function. Note that you will need to listen on ReferenceService in your function to detect when reference target changes.

- Konstantin
Previous Topic:Recursive Node Factory
Next Topic:ValueProperty bind to XML text
Goto Forum:
  


Current Time: Tue Mar 19 11:07:53 GMT 2024

Powered by FUDForum. Page generated in 0.01798 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top