Skip to main content

Posts

Showing posts with the label default

ADF Defaulting a backing bean driven select: Thing I learned being stupid 1

Jdeveloper 11.1.1.5 Ok, I had a selectonechoice that was driven by a pojo data control and I just couldn't get its value defaulted. The following is what I learned along the way and my unique solution: Drag and drop the item onto the page as a single choice selectonechoice: Add a variable to your page binding (open your page and click on the bindings tab - right click on variables under Executables - insert inside variables - select variable - Name:selectedItemValue Type: java.lang.Object Then click on Page definition file and update the variable you just added and add these attributes DefaultValue=" #{pageFlowScope.TestBean.id} " IsUpdateable="2". NOTE: the bold bit  pageFlowScope.TestBean.id must be the value you want to default to. Or you can just paste the xml like such: <variable Type="java.lang.Integer" Name="selectedItemValue" DefaultValue="#{pageFlowScope.TestBean.id}" IsUpdateable="2" /> ...

ADF 403 Forbidden - invoke method

If you have a method call as your default activity in a task flow and you get 403 Forbidden http status code is returned (given you have set all the correct permissions in the jazn-data file to your task flow). Just add the following tag to your taskflow (add the tag in the near the bottom of the enclosing task-flow-definition tag) <visibility><url-invoke-allowed/></visibility> Or you can  click on the task flow overview, visibility , URL Invoke section for the same result