i'm developing grails plugin supposed visual front end larger application. communication application plugin message-driven, , far see it, right way receive messages in grails service.
considering there several different message types, , influence different parts of view (which built around javascript libraries, such jquery, jqueryui, flot , others), i'm not sure how implement decision making (which message should update part of view), , how connect stuff happens in service javascript code in view.
in nutshell:
where implement decision making messages, , how intelligently connect grails service javascript code in view.
p.s. couldn't find similar question already, , forgive me if questions "simple", i'm trying absorb lot of new technologies @ same time, , don't have time properly.
services can't render views. , shouldn't. job of controller. see mvc. message driven systems don't deliver messages view rendering. messages sent backend can updated, etc. here options...
rethink message driven approach. if continue down path, you'll need implement sort of push (comet) technology service can notify client via push technology has changed , needs updated.
you go ajax approach , implement polling (carefully) or still use push (comet) technology.
go cutting edge , websockets.
Comments
Post a Comment