Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mojarra-dev] Make websocket bidirectional

I suggest to add a "source" attribute to websocket

 <f:websocket channel="events" source="mySourceId" ...

If source is declared and it refers to an input element, then on every change (or blur?) event of that element it's content will be submitted to the server via the websocket channel.

Using an additional attribute "onSourceEvent" may specify a different event (e.g. key press) to trigger the sending.


Herzliche Grüße - Best Regards,

Michael Müller
Brühl, Germany

Read my books
  "Web Development with Java and JSF" (available for short time only):
  "Practical JSF in Java EE 8" (from 2018):
  "Java Lambdas and Parallel Streams":
  "Visitors" a photographic image book:

Back to the top