Issue Details (XML | Word | Printable)

Key: UBA-7632
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Marcel Rüedi
Reporter: Daniel Grob
Votes: 0
Watchers: 0
Operations

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

ULC's renderer / editor implementation should not ignore value typeString value to enable client side renderer / editor code

Created: 10/Dec/08 08:49 AM   Updated: 15/Jan/09 03:23 PM
Component/s: core
Affects Version/s: None
Fix Version/s: UltraLightClient '08 Update 2


 Description  « Hide
To optimize communication overhead for renderer / editor components. Instead of sending all renderer / editor components to the client, ULC creates templates for them and just sends those templates to the client. ULC uses the methods of the ICellComponent interface to decide if it is necessary to create a new temaples or not.

In case of client-side specific renderer / editor code the return value of the typeString() method is important for the template as it guarantees that the right client-side code is executed. However in the current implmenetation the typeString() method is not considered while comparing renderer / editor components.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Daniel Grob added a comment - 11/Dec/08 11:47 AM
As a workaround you can extend your client side renderer / editor as follows:
@Override
public boolean areAttributesEqual(ICellComponent component) {
    // workaround for http://www.canoo.com/jira/browse/UBA-7632
    if (!getClass().isInstance(component)) {
        return false;
    }
        
    return super.areAttributesEqual(component);
}