hi All,
I am trying to render Jumly sequence diagram in my Primefaces application(.xhtml page) , I could see diagram is perfectly render when we try to display in HTML but this provide error when i try to display at .xhtml page..
So my question is : Is it possible to render sequence diagram in .xhtml as it doesn't load
sequence instruction in variable e and hence it is undefined and that's why it provide the above exception
here is code .xhtml code
<script type="text/javascript" src='resource/js/jquery-2.0.0.js' ></script>
<script>
$.noConflict();
// Code that uses other library's $ can follow here.
</script>
<script type="text/javascript" src='resource/js/coffee-script.js' charset="utf-8" ></script>
<script type="text/javascript" src='resource/js/jumly.min.js' ></script>
<style>
.sequence-diagram .horizontal {width: 200px}
.sequence-diagram .note {min-width: 200px}
.sequence-diagram .interaction {margin-top: 30px}
</style>
/h:head
<script type='text/jumly+sequence'>
@found "App", ->
@note "each time the App starts..."
@message "Hi! can you provide me a deviceToken?", "APNS", ->
@reply 'sure!: "deviceToken"'
@message 'Hello server, this is my "deviceToken" :)', "Server", ->
@note "each time the server wants to send a msg"
@message 'please send this "message" to device with "deviceToken"', "APNS", ->
@note """
is the server an "authorized provider"? yes.
is the App device "legitimate"? yes.
OK, we will deliver it.
"""
@message 'hey, App! a "message" for you!', "App", ->
@message "Thanks for the msg! What's new?", "Server"
</script>
/h:body