Eror while showing returned value on parent window from chield (Dialog box) window using JSF Trinida
- by Navnath
Hi There,
I am using Myfaces and Trinidad tld's for page design. In that, I am trying to implement Dialog box which will going to open on button click with tacking some value from parent window and return result to Parent window.
Now the problem is I can send value to Dialog box and also get return from dialog box successfully, but there is problem to show return value on Parent window because parent window is not reflecting that value and ask for refresh page. When I refresh page, it again open the pop up, i.e. it resending the previous request.
Here is my return code.
private UIXInput input;
public UIXInput getInput() {
return input;
}
public void setInput(UIXInput input) {
this.input = input;
}
public void returned(ReturnEvent event) {
if (event.getReturnValue() != null)
{
getInput().setValue(event.getReturnValue());
RequestContext afContext = RequestContext.getCurrentInstance();
afContext.addPartialTarget(getInput());
}
}
Next is I have bind input variable with field which need to reflect return value.
Here is .jspx code.
I have download Trinidad dialog code and try to run on local system, but it not showing any dialog box. But once I remove partialSubmit="true" attribute from comment button which shows dialog box, Then I can see dialog box.
Is this attribute making an above error?
I hope I have explain my problem clearly.
Please...Please let me know any any kind of solution, suggestion.
I have spend almost a week to resolve this issue, but.......didn't succeed.
Thank You in advance,
Navnath Kumbhar.