| Summary: | [WebClientState] ThreadLocal not persistent over async ServerSessions | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Beat Schwarzentrub <bsh> | ||||||
| Component: | Scout | Assignee: | Project Inbox <scout.core-inbox> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | ||||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Bug Depends on: | 350268 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
|
Description
Beat Schwarzentrub
I do not have the same opinion. The server has to know, what the capabilities has the current client (richclient/webclient/tablet(future)/phone(future)). For example the method getFontSizeUnit is necessary when HTML is generated on the server the correct unit (px, pt) has to be written. I think we must be sure to write the webClientState information correct also to asynchronous server jobs. Would that be possible? Created attachment 207302 [details]
Proposed change
I discussed this with my colleague and came with the proposed change. The webclient state would be written to the ThreadLocal in the DefaultTransactionDelegate inside a try-finally. If someone would start a asynchronous call inside a transaction it would be necessary to give the webclientstate information to the new job. Because a new job could also be a scheduler-job without a frontend only the developer is able to determine what information he needs in a new async job.
Created attachment 207303 [details]
mylyn/context/zip
Checked in as proposed to trunk for eclipse juno 3.8.0 ticket closed. deliverd as part of eclipse scout 3.8.0 (juno release train) |