Hi There,
I am using Trinidad dialog box which is working fine.
I can send a value from parent window to child window(Dialog box).
And also get value from child to parent on code level.
Now the problem is I am not able to show that return value on the page.
I have one text box which I have bind with UIXInput object in backing bean
i.e. _input.
Now using following function I am trying to get return value
public void returned(ReturnEvent event) {
if (event.getReturnValue() != null) {
getInput().setValue(event.getReturnValue());
RequestContext afContext = RequestContext.getCurrentInstance();
afContext.addPartialTarget(getInput());
}
}
Using above function I can get return value from dialog box
I can get value in getInput().getValue(), I have checked for it.
The problem with afContext.addPartialTarget(getInput()); line. This line not
able to reflect returned value to on actual text box, but text box's binding
variable have return value.
Can any one tell me what is the problem with RequestContext object? Why it's
not reflecting value on page?
Is I am doing something wrong?
Any suggestion is welcome.
Thank You,
Navnath Kumbhar.