Main.SideBar (edit)
|
Main /
JDeveloperHere's some stuff I had to work out about Oracle ADF (Application Develpoment Framework) and JSF (Java Server Faces). Batch Update of Business Components I recently needed to add audit columns to a load of ADF business components. the biggest pain about this was having to set the JSF Templates Oracle JDeveloper 11 promises templates, however if you are stuck with JDeveloper 10 for JSF/ADF then you can use the region tag to provide boiler-plate output which is not quite full templates but better than coding the same thin on each page. Use of regions is well documented elsewhere, so I'm not going to go into detail, however I mention it here because I had real trouble finding anything on templates for JSF when I was looking for it. One thing I tried was nesting one region inside another (I had a page header block and embedded a menu inside it) it all worked ok until I wanted to pass a value through to the nested region, it just does not make it through. So nested regions are ok as long as you do not need to pass a value to the inner region. Add a row to a table I wanted an add button on a table, but just dragging a Create operation for an Iterator on to the action facet of the table did not create a new row. The trick to getting it to work is to Right Click on the Create button and choose Edit Binding and then select CreateInsert? from the Select An Actio drop-down at the top right. Add a row to a table gettting the current row to select when a table has a SelectOne? facet. This may seem like a no-brainer but I spent a happy afternoon trying to get it to work. I dropped a view as a Table with Selection enabled, and then bound a Programmatic ActioListener? from a backing bean. However when I accessed the current row in the backing bean ( through iterator.getCurrentRow ) it always got the first row, not the one selected. After a lot of messing around I deleted the table and started again. Second time round I noticed that a few things got set that didn't first time. What 'ya need is
|