Dive into Oracle ADF

Send me a mail
 Dive into Oracle ADF   Click to see the XML version of this web page.   (Updated: 2/3/2008; 9:19:22 PM.)
Tips and tricks from Steve Muench on Oracle ADF Framework and JDeveloper IDE

Search blog with Google:
 

Search BC4J JavaDoc:
 

February 2006
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28        
Jan   Mar

Get Firefox!

Thursday, February 16, 2006

Kris Rice's blog about building custom renderers for datatypes in Raptor seems to be missing a few details to actually implement a working one of my own. Today in the EA4 release of SQL Developer, I tried a query like this:

SELECT xmltype('<foo bar="baz"/>") AS xmldoc FROM DUAL 

but the Raptor results window just showed the results as:

SYS.XMLTYPE

I was hoping to see the XML document itself. Perhaps by implementing one of these custom cell renderers that he mentions I could customize Raptor to show me the XML for those XML types.

(Or maybe someone else will beat me to it!)


6:04:13 PM    



I've added a new screencast to my screencasts page illustrating the technique for what is already becoming a frequently-asked question since JDeveloper 10.1.3 has gone production:

Creating an Editable Table with a Dropdown List in Each Row

We don't support editable tables with dropdown lists out of the box, so this screencast illustrates the technique you can use to achieve the desired result until we add built-in support for it in a later release.

Enjoy.


5:10:06 PM    


Numerous users have mailed me asking whether I could update my not-yet-documented ADF sample application #14 showing how to apply the technique for implementing dynamic JDBC credentials to JavaServer Faces applications in 10.1.3.

I've now posted an updated sample here that illustrates this. The code remained largely unchanged from the JDeveloper 9.0.5.2/10.1.2 version, however the login form required a little fiddling with JSF due to the fact that the naming of the form fields is something that gets done by the faces component renderers. Things to notice about the new version -- which features still-working Struts/JSP and Model1 view controller projects as well as the new JSF-based ViewControllerJSF project -- are the fact that the username and password fields are now uniformly updated to be named "form:username" and "form:password". This was so that the same binding filter code could work with all of the different viewcontroller styles. I factored the name of the login page into the web.xml file into a context parameter so that each web application could specify it differently as needed. I could have also factored the username/password parameter names into similar web.xml context parameters, but I didn't think of it until now. I'll leave that as an exercise to the reader...


3:21:54 PM    


© Copyright 2008 Steve Muench.