Friday, March 28, 2014

.jsf is referenced in a context where page fragment reference is expected

I was trying to build an adf page and got this error.



I tried to ignore the error and deployed the adf page to the integrated weblogic server but i got following error

ADF_FACES-30200:For more information, please see the server's error log for an entry beginning with: The UIViewRoot is null. Fatal exception during PhaseId: RESTORE_VIEW 1.

So i checked the code again to find out the root cause of this issue.

The error was in my task-flow-definitions.xml file.



My program was linking two page one of them was a .jsf and other one was a .jsff format.

I went to the code in folder location changed the .jsff to .jsf and change the same pointer in task-flow-definitions.xml



i redeployed the process and it worked fine this time.

Also ensure page fragment is not selected.

1 comment:

Unknown said...

You could have just set "Use Page Fragments" to true on the settings of the main fragment bounded task flow. Just click on an empty space on the bounded task flow and change the settings.