Skip to content
This repository was archived by the owner on Oct 1, 2023. It is now read-only.

Redesign of the proxy approach#23

Closed
opensource21 wants to merge 13 commits intoelisarver:masterfrom
opensource21:redesign
Closed

Redesign of the proxy approach#23
opensource21 wants to merge 13 commits intoelisarver:masterfrom
opensource21:redesign

Conversation

@opensource21
Copy link
Copy Markdown
Contributor

I had the following problem with fragments: If a page is reloaded, the field of a fragment get a Stale-Exception. This is different to fields directly on a page. So I think it's a good idea that the field are always searched from scratch (as long as they are not have the annotation @CacheLookup).
This is broken for list and for fragments. Specially together with ajax this can become a problem.

I looked into the code and find that ElementImpl can easily do the search. Now ElementImpl works as Proxy. This has the positive side-effect that not for each method-call a new Object is created. The generic proxy looks wrong for me.

So I decided to change the implementation. Know everything works like a charme and should be faster as before.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants