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
blog.mueller-bruehl.de
it-rezension.de
@muellermi


Read my books
  "Web Development with Java and JSF" (available for short time only): https://leanpub.com/jsf
  "Practical JSF in Java EE 8" (from 2018): http://www.apress.com/us/book/9781484230299
  "Java Lambdas and Parallel Streams": http://www.apress.com/de/book/9781484224861
  "Visitors" a photographic image book: https://leanpub.com/visitors



Back to the top