You are here:

Not sure if this question is specific to jmaki but I would like to know if variables defined within the jmaki components can be accessed from a backing bean. Or perhaps to pass these variables to the bean. For example I would like to access ibrowser's 'i' variable so when a user is viewing an image, he can click on an image to edit the title or description.
Thanks

This could be done but you will need to customize the ibrowse component.js to communicate with the backing bean.

To set up the communication you will need to add a value attribute with the value binding expression to the backing bean you would like to communicate with.

For example:

In this case your component.js will be provided with a property widget.valueCallback which is a URL that will activate the PhaseListener in jMaki to update a value on the respective managed bean. See the code from I used with the Dojo Datepicker component.js for an example: