xpages - Binding an inputText value to a viewScope with a computed name -


i have inputtext component on custom control , trying bind value viewscope, viewscope name computed using compositedata value , string.

if hardcode value binding works, example: value="${viewscope['billingdate_from']}"

the viewscope name computed using following javascript code: compositedata.daterangefilter[0].from_fieldname + '_from'

i have tried many ways of achieving no success, errors, unexpected character errors of time inputtext box empty.

the code have tried: value="${viewscope[#{javascript:compositedata.daterangefilter[0].from_fieldname + '_from'}]}"

i have found, , don't know reason this, trying bind dynamically doesn't work if there's string concatenation in evaluation. way got around creating custom control accepts bindingvalue , datasource parameters, passing in document , field name want use. whatever reason, if code uses composite data, still allows editing when page loads.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -