Expose the ApplicationConnection.updateVariable() to be callable by JavaScript code in AbstractJavaScriptComponent
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.8k
- Forks
- 717
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 3
Description
Vaadin 7.7.x, Vaadin 8.6.x
It is very hard to implement a TextField-like component as AbstractJavaScriptComponent. The reason is that a regular Vaadin Component receives ApplicationConnection in Paintable.updateFromUIDL() and then it can call ApplicationConnection.updateVariable() to reflect the newest state of the editor component. If you do not have access to this, you need to fire a value change event after every change which results in rapid event stream, especially when the user is typing in fast.
It would be great for AbstractJavaScriptComponent to expose an API that would allow the component to send non-immediate events or variables or any different non-immediate mechanism.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading AbstractJavaScriptComponent and ApplicationConnection.updateVariable() to understand the existing component and communication paths. Define an API that lets JavaScript components send non-immediate variables or events, then verify that the requested TextField-like use case can avoid emitting an event for every keystroke.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, javascript
- Domain
- api, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100