JDeveloper 10g, ADF Faces & BC: setVar method on CoreTable is not working

Hi all,
I am in the process of creating a custom tag library for our organization. I seem to be having problems with the setVar method on the CoreTable component. I created a simple reproducible example using the scott/tiger schema. Within my tabletest.jsp, I have a af:table which was created via dragging from the datacontrol pallet. Next, I add my custom tag and set the same value attribute. When I run the page, #{row.Deptno} does not evaluate to anything! However, I know that the value is set properly due to the same number of rows appearing within my custom table tag.
Suggestions are appreciated.
thanks,
Wes
Here is the screen shot of my example:
http://www.flickr.com/photos/54652784@N03/5062690216
jsp code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
<%@ taglib uri="http://acme.customtag" prefix="customtag"%>
<f:view>
<afh:html>
<afh:head title="tabletest">
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252"/>
</afh:head>
<afh:body>
<af:messages/>
<h:form>
<af:outputText value="below is the adf table"/>
<af:table value="#{bindings.ViewObj1.collectionModel}" var="row">
<af:column sortProperty="Deptno" sortable="false"
headerText="#{bindings.ViewObj1.labels.Deptno}">
<af:outputText value="#{row.Deptno}"/>
</af:column>
<af:column sortProperty="Dname" sortable="false"
headerText="#{bindings.ViewObj1.labels.Dname}">
<af:outputText value="#{row.Dname}"/>
</af:column>
</af:table>
<af:objectSpacer width="10" height="50"/>
<af:outputText value="Below is the custom table"/>
</h:form>
<customtag:customtable value="#{bindings.ViewObj1.collectionModel}"
disabled="false"/>
</afh:body>
</afh:html>
</f:view>
CustomTable.java code:
package customtag;
import java.io.IOException;
import javax.faces.application.Application;
import javax.faces.component.UIComponentBase;
import javax.faces.context.FacesContext;
import javax.faces.el.ValueBinding;
import oracle.adf.view.faces.component.core.data.CoreColumn;
import oracle.adf.view.faces.component.core.data.CoreTable;
import oracle.adf.view.faces.component.core.output.CoreOutputText;
public class CustomTable extends UIComponentBase {
public static final String COMPONENT_TYPE = "customtag.customtable";
public static final String RENDERER_TYPE = null;
private CoreTable table = new CoreTable();
public CustomTable() {
public void encodeChildren(FacesContext context) throws IOException {
// Encode the top most component
Application apps = context.getApplication();
table.setVar("row");
Object value = getAttributes().get("value");
CoreColumn column = new CoreColumn();
CoreOutputText cout = new CoreOutputText();
if (value != null) {
table.setValue(value);
ValueBinding rowValueBinding =
apps.createValueBinding("#{row.Deptno}");
Object rowValue = resolveExpression("#{row.Deptno}");
if (rowValue != null) {
System.out.println("rowValue is reconized. " + rowValue);
cout.setValue(rowValue);
} else if (rowValueBinding.getValue(context) != null) {
System.out.println("rowValueBinding is reconized." +
rowValueBinding.getValue(context));
cout.setValueBinding("Value", rowValueBinding);
} else {
System.out.println("row is not reconized.");
cout.setValue("this is a hard coded row attribute value");
column.getChildren().add(cout);
table.getChildren().add(column);
table.encodeAll(context);
public static Object resolveExpression(String expression) {
FacesContext ctx = FacesContext.getCurrentInstance();
Application app = ctx.getApplication();
ValueBinding bind = app.createValueBinding(expression);
return bind.getValue(ctx);
public boolean getRendersChildren() {
return true;
public String getFamily() {
return COMPONENT_TYPE;
}

Hi,
you don't mention a JDeveloper version. If you are not on a recent version, can you try one. If it reproduces, please provide steps required for a reproducible test case
Frank

Similar Messages

  • JDeveloper 10g, ADF Faces & BC: List Binding Editor Bug?

    This problem comes up quite frequently, we have a form based on an entity based vo, one of the attributes is based on a read only list vo. When using the List Binding Editor to generate the jsp/pageDef code, the attributes do not show up in the "matching" pane.
    http://i108.photobucket.com/albums/n23/zeoneozero/error.gif
    We end up having to use the AM that is not nested to get the List Binding Editor to recognize the attributes, but then we need to manually go into the pageDef and add the RootAM reference. Anyone come across this?

    Hi,
    you don't mention a JDeveloper version. If you are not on a recent version, can you try one. If it reproduces, please provide steps required for a reproducible test case
    Frank

  • Possibility & Drawback  Using JDeveloper 11g ADF Faces with Oracle 10g DB

    We are new to ADF Faces, would like to use JDeveloper 11g ADF Faces with Oracle 10g database (Enterprise Edition). As we are new to JDeveloper 11g ADF BC, so we want to know about the Possibility & the Drawback.
    Edited by: eng.shahed on Apr 5, 2010 11:21 AM

    i dont think so any drawbacks using Jdeveloper with any database.....its a open product ... You can use it with Sybase, MySQL, Oracle etc etc..

  • Did JHeadstart capable to convert 10g forms to both 11g & 10g  ADF Faces?

    We would like to purchase JHeadstart for JDeveloper 10.1.3.3 to Generator 10g Forms to ADF Faces. this version of JHeadstart capable to convert 10g forms to 10g ADF Faces. But I want a universal JHeadstart ADF Faces Generator that will capable to convert 10g forms to both 11g & 10g ADF Faces. Please help me by your valuable suggestion/consultancy.

    Try asking on the JHeadstart forum:
    JHeadstart
    AFAIK, JHeadstart 11g is still not out.

  • Is there any template (decoration) feature in Jdeveloper and ADF faces ?

    Hi
    Thank you for reading my post
    is there any template / decoration facilities in Jdeveloper for ADF faces ?
    for example there are some part of my web pages which are allways the same and i need to show them where ever the user is in my we application (for example a left panel contain latest emails) how i can have this feature ?
    Thanks

    HI!
    Facelets works very well with Oracle ADF faces ,but to get a partial support from IDE(JDeveloper) , you have to build pages in jspx format, and not in xhtml format.
    We are using facelets with absolutely no problem; the only hitch is that we have add all our ADF Faces components to a jpx page and then embed Facelets tags to it,for JDdeveloper does not add components to /in between Facelets tags, which is an improvement to be made, and Mr.Frank has informed me that this(Facelets support in JDeveloper) is filed as an enhancement request for the next version of JDeveloper.
    Anyway, I can assure you that you can work with Facelets and ADF faces with absolutely no problems,at all;the only thing is you need to struggle some time getting the Facelets configured for ADF Faces!
    Actually, I planned to write an article on accomlishing this(integrating facelets and ADF Faces),but presently I'm preoccupied with some other imoprtant task, so I'm afraid may not be able to provide the article inthis week.
    Regrads,
    Samba.

  • My ipod cclassic 80gb is hang after trying dat press and hold method then also its not working please tell me solution

    My ipod cclassic 80gb is hang after trying dat press and hold method then also its not working please tell me solution

    Thanks for your response and good luck wishes, I suspect I will need them!
    In principle, I agree re: the manufacturer's warranty. However, I am pretty upset that this is now my second iPod to develop a critical fault within weeks of the warranty expiring, and frankly, it is not unreasonable to expect a state-of-the-art $500 electronic device to last well beyond one year of life.
    I agree talking to Apple is not likely to do me any good (the clue is in how impossible they make it to talk to them in the first place) - but that is not necessarily OK. I expect I will have to pay money to get the battery replaced - again, not OK (full stop - but especially given the cost of the device and the money I have spent with Apple). Yes, the batteries have a limited lifespan, but it should last longer than this (and surely, I should notice a gradual decline in its functionality, not an instant stop).
    I will try Deggie's suggestion (see my reply post), but probably won't hold my breath (think I have already done this). I probably will have to get the new battery - and probably under my own steam. It is a principle at stake and I feel I should be able to let Apple know how I'm feeling - and am frustrated that they make this virtually impossible. It sends the very clear message that they are not interested in listening to their customers.

  • HT4623 I have tried to update my iPhone using the iTunes method but it will not work. The message "The iTunes update server could not be contacted. Please check your internet connection or try again later," appears. What do I do? The Internet is working f

    I have tried to update my iPhone using the iTunes method but it will not work. The message "The iTunes update server could not be contacted. Please check your internet connection or try again later," appears. What do I do? The Internet is working fine.

    Have you tried the following troubleshooting document?
    iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server
    If you end up using the If the iTunes Store opens successfully section of the document, and the "Automatically detect settings" checkbox is already checked, try unchecking and rechecking it and clicking OK.

  • JBoss 4.0.0RC1/3.2.3 - JDeveloper 10g - ADF UIX

    While I realize that JDeveloper has only been tested (to one degree or another) with JBoss 3.2.X, I decided to try and publish to JBoss 4.X after failing with 3.2.X. (The results are the same for either server version).
    I have a simple master-detail page off of which I have a create action on the detail section. The primary key is a DBSequence number that goes against a table with an insert trigger defined and a sequence for that field.
    The create action opens an input form for creating a new record. In the emdedded OC4J, everything works just fine. Depsite following the developer's review paper on deploying to both standalone OC4J and JBoss, it fails completely. Errors are different, but I thought I would start with JBoss since this equates to our development environment:
    When the create button is selected to initiate the action, the input form comes up but in the place where I would expect to see a temporary sequence value in the primary key field, the value is blank and the Execute button on this form does not activate. In addition, JBoss error log (both JBoss 3.2.3 and JBoss 4.0.0RC1 (and DR4)) displays the following (just showing a fragment):
    2004-07-28 10:37:34,315 ERROR [org.jboss.web.localhost.Engine] StandardContext[paros]null
    java.lang.ClassCastException
         at oracle.jbo.uicli.uix.PrimitiveTypes.getArray(PrimitiveTypes.java:122)
         at oracle.jbo.uicli.uix.JUCtrlAdaptValueBindingRef._adapt(JUCtrlAdaptValueBindingRef.java:106)
         at oracle.jbo.uicli.uix.JUCtrlAdaptValueBindingRef._adapt(JUCtrlAdaptValueBindingRef.java:96)
         at oracle.jbo.uicli.uix.JUCtrlAdaptValueBindingRef.access$4000071(JUCtrlAdaptValueBindingRef.java:40)
         at oracle.jbo.uicli.uix.JUCtrlAdaptValueBindingRef$CompositeModel.get(JUCtrlAdaptValueBindingRef.java:219)
         at org.apache.commons.el.ArraySuffix.evaluate(ArraySuffix.java:218)
         at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)
         at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
         at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:190)
         at oracle.jsp.el.OracleExpressionEvaluator.evaluate(Unknown Source)
         at oracle.jsp.el.OracleExpression.evaluate(Unknown Source)
         at oracle.cabo.ui.expl.ELBoundValue._evaluate(Unknown Source)
         at oracle.cabo.ui.expl.ELBoundValue.getValue(Unknown Source)
         at oracle.cabo.ui.collection.DataObjectListNodeList.getDataObjectList(Unknown Source)
         at oracle.cabo.ui.collection.DataObjectListNodeList.size(Unknown Source)
         at oracle.cabo.ui.BaseUINode.getIndexedChildCount(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.getVisibleIndexedChildCount(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.ColumnRenderer._startRowMode(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.ColumnRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.ColumnGroupRenderer._renderVisibleIndexedChildren(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.ColumnGroupRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    Has anyone been at all successful using ADF-UIX from JDeveloper 10g and JBoss of any version? (Note I have followed the steps to install ADF Runtime, setvars, etc).
    Thanks
    Ray

    Yes. I have no problem with jdeveloper10g and jboss-3.2.3.
    Niether on my note with both linux, win, nor on production server with linux.
    Carefully look where do you install ADF Runtime (server defualt), and what server do you start (default is all). Simply change startup server to default or, copy jboss-3.2.3/server/default/deploy/bc4j.ear to jboss-3.2.3/server/all/deploy/

  • JDeveloper 11g/ADF Faces Rich Client

    Hello,
    We are trying to decide between using JDeveloper 10.1.4 and JDeveloper 11g for developing a new application - we plan to use just the ADF Faces layer of the ADF Framework along with Spring and TopLink for other layers.
    On one hand we think that is is safer to use 10.x version of ADF Faces as it may be more stable and on the other hand we are tempted to use 11g as it provides Ajax-enabled JSF Components.
    Has anyone used ADF Faces Rich Client Framework for developing applications? Is it stable enought to be used for production-level applications?
    I would love to hear your thoughts!

    Hi,
    don't use 10.1.3.4 to develop a new application now unless you have browser constraints with your user-base.
    ADF Faces RC / 11g requires:
    FireFox 2, 3
    Internet Explorer 7.0
    Safari 3.0
    11g is a significant update and they have vastly improved/redesigned a lot of things that were difficult/complex to do in earlier versions.
    Plus the 11g user interface is way better from a users perspective.
    Brenden

  • JDeveloper 10g, ADF, ANT:How to define ant task for EAR & WAR file creation

    I am trying to automate the deployment process of our ADF Faces & BC application. I have reviewed this doc:
    http://download.oracle.com/docs/cd/B31017_01/web.1013/b28951/anttasks.htm
    and followed the procedure for integrating ant onto the server. I can build the project and also successfully deploy the ear file. Howerver, I did not find any instruction on how to generate the EAR file. Can anyone point me to the right place for this task definition?
    Here is my current build.xml file.
    <?xml version="1.0" encoding="windows-1252" ?>
    <!--Ant buildfile generated by Oracle JDeveloper-->
    <!--Generated Jul 16, 2007 12:20:13 PM-->
    <project name="CRDBApps" default="build-all" basedir="." xmlns:oracle="antlib:oracle">
    <property file="build.properties"/>
    <property file="ant-oracle.properties"/>
    <target name="clean-all" depends="">
    <ant antfile="build.xml" dir="CRDBView" target="clean"/>
    <ant antfile="build.xml" dir="CRDBLib" target="clean"/>
    <ant antfile="build.xml" dir="CRDBModel" target="clean"/>
    </target>
    <target name="build-all" depends="clean-all">
    <ant antfile="build.xml" dir="CRDBView" target="compile"/>
    <ant antfile="build.xml" dir="CRDBLib" target="compile"/>
    <ant antfile="build.xml" dir="CRDBModel" target="compile"/>
    </target>
    <target name="deployear" depends="">
    <echo message="-----> Deploying the application module deployment (ear) file"/>
    <oracle:deploy deployerUri="deployer:oc4j:opmn://myserver/home"
    userid="oc4jadmin"
    password="password"
    file="CRDBView/deploy/CRDBApps.ear"
    deploymentName="CRDBApps"
    bindAllWebApps="default-web-site"/>
    </target>
    </project>
    thanks!
    Wes

    Thanks all for the tips. After reading up a bit today on ear/war files and ant. I ended up just creating a task to mimic the ear/war file structure. My script isnt pretty but I'll work on refining that later. Here is what I have if anyone ever is interested:
    <target name="war" depends="">
    <echo message="Executing target war..."/>
    <mkdir dir="war"/>
    <copydir src="CRDBView\public_html" dest="war\"/>
    <copydir src="CRDBView\classes" dest="war\WEB-INF\classes"/>
    <copydir src="CRDBModel\classes" dest="war\WEB-INF\classes"/>
    <copydir src="CRDBLib\classes" dest="war\WEB-INF\classes"/>
    <echo message="Creating war file..."/>
    <jar basedir ="war" destfile="CRDBApps.war"/>
    <echo message="Done executing target war..."/>
    </target>
    <target name="ear" depends="war">
    <echo message="Executing target ear..."/>
    <mkdir dir="ear\META-INF"/>
    <copydir src="CRDBView\deploy\META-INF" dest="ear\META-INF"/>
    <copy file="CRDBApps.war" todir="ear\"/>
    <jar basedir ="ear" destfile="CRDBApps.ear"/>
    <echo message="Done executing target ear..."/>
    </target>
    <target name="cleanAndDeployCRDBApps" depends="build-all,deployear">
    <echo message="Executing target cleanAndDeployCRDBApps..."/>
    <delete dir="war"/>
    <delete dir="ear"/>
    <echo message="Done executing target cleanAndDeployCRDBApps..."/>
    </target>
    <target name="deployear" depends="ear">
    <echo message="Executing target deployear"/>
    <oracle:deploy deployerUri="deployer:oc4j:opmn://myserver:6003/home"
    userid="oc4jadmin"
    password="password"
    file="CRDBApps.ear"
    deploymentName="CRDBApps"
    bindAllWebApps="default-web-site"/>
    <delete file="CRDBApps.ear"/>
    <delete file="CRDBApps.war"/>
    <echo message="Done executing target deployear"/>
    </target>
    ...

  • Problem with JDeveloper 10G ADF tutorial

    Hi, I'd followed the instructions from the "Deploying an End to End Application Using Default Technology Scope" tutorial for the JDeveloper 10G (9051), but when I try to run the struts data page the following error apears:
    500 Internal Server Error
    java.lang.NoSuchMethodError: java.lang.String java.net.URLEncoder.encode(java.lang.String, java.lang.String)
         java.lang.String oracle.jbo.http.HttpSessionCookieHelperImpl.readCookieValue(javax.servlet.http.HttpServletRequest, java.lang.String)
              HttpSessionCookieHelperImpl.java:44
         java.lang.String oracle.jbo.http.HttpSessionCookieImpl.readValue(java.lang.Object)
              HttpSessionCookieImpl.java:189
         void oracle.jbo.http.HttpSessionCookieImpl.<init>(java.lang.String, java.lang.String, oracle.jbo.common.ampool.ApplicationPool, java.security.Principal, javax.servlet.http.HttpServletRequest)
              HttpSessionCookieImpl.java:101
         oracle.jbo.common.ampool.SessionCookie oracle.jbo.http.HttpSessionCookieFactory.createSessionCookie(java.lang.String, java.lang.String, oracle.jbo.common.ampool.ApplicationPool, java.util.Properties)
              HttpSessionCookieFactory.java:103
         oracle.jbo.common.ampool.SessionCookie oracle.jbo.common.ampool.ApplicationPoolImpl.createSessionCookie(java.lang.String, java.lang.String, java.util.Properties)
              ApplicationPoolImpl.java:418
         oracle.jbo.common.ampool.SessionCookie oracle.adf.model.bc4j.DataControlFactoryImpl.findOrCreateSessionCookie(java.lang.String, oracle.adf.model.BindingContext, java.lang.String, java.lang.String, java.lang.String, java.util.Properties, java.util.Properties, boolean, boolean)
              DataControlFactoryImpl.java:154
         oracle.adf.model.DataControl oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(oracle.adf.model.BindingContext, java.lang.String, java.util.Map, java.util.Map)
              DataControlFactoryImpl.java:220
         oracle.adf.model.DataControl oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(oracle.adf.model.BindingContext, org.w3c.dom.Node, java.util.Map)
              DataControlFactoryImpl.java:97
         void oracle.jbo.uicli.mom.JUMetaObjectManager.loadCpx(java.lang.String, java.util.Map)
              JUMetaObjectManager.java:612
         oracle.adf.model.BindingContext oracle.adf.model.servlet.ADFBindingFilter.initializeBindingContext(javax.servlet.http.HttpServletRequest)
              ADFBindingFilter.java:328
         void oracle.adf.model.servlet.ADFBindingFilter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)
              ADFBindingFilter.java:173
         void com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ServletRequestDispatcher.java:600
         void com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
              ServletRequestDispatcher.java:317
         boolean com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.ApplicationServerThread, com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindHttpServletRequest, com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
              HttpRequestHandler.java:790
         void com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(java.lang.Thread)
              HttpRequestHandler.java:270
         void com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run()
              HttpRequestHandler.java:112
         void com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run()
              ReleasableResourcePooledExecutor.java:192
         void java.lang.Thread.run()
              Thread.java:484
    Is there someone that could help me?

    Hi,
    Please see:
    NoSuchMethodError
    Hope this helps,
    JR

  • ADF Faces: state saving method questions

    Please, could somebody elaborate implementation of state saving in ADF Faces? What specially interests me is a way on which it is improved in comparison with RI. Will be current implementation further improved regarding size of state which is stored in session or on client?
    Further, is it possible to make a read only page stateless? I tried naively to implement restore view phase listener which sets up transient property of view root to true. Page was rendered fine, but when I try to post something from that page NullPointerException was thrown from UIXComponentBase._getRendererImpl() method.
    Tnx

    Could you elaborate on the back button support?
    I'm trying to do something very simple right now with two JSF pages using ADF BC/Faces. One page is a simple table allowing the user to select a row. The second page allows the user to view details on the selected row. This is view only at this point. I've found however, that if I select a row and go to the detail page and then hit the back button to return to the first page and then select another row and attempt to go to the detail page I get an error message like so:
    1. validation - JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-35007: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[1246992000 ]
    2. validation - JBO-35007: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[1246992000 ]
    I'm at a loss as to how to resolve this issue.
    Thanks,
    Corey

  • What previous knowledge need to learn oracle jdeveloper 11g (adf faces&jsf)

    hi plz tell me, what are all technologies and languages i want to knew before i learn adf faces with jsf in oracle jdeveloper 11g

    Hi,
    Although the blog post is ok, I would certainly add a good JSF book/tutorial before the "Developing RIA Web Applications with Oracle ADF" part. For even better results, I would add a Trinidad book/tutorial before it as well. If you want to be future proof, add a Facelets tutorial between the JSF and Trinidad part. If you go right away to "Developing RIA Web Applications with Oracle ADF" you'll only make yourself a robot not understanding what happen behind the scene, often resulting in performance and memory issues as well as not so good looking application since you're going to force yourself into the Oracle LaF only.
    For the JSF part, check out http://horstmann.com/corejsf/ and, if you can handle really technical stuff: http://jcp.org/aboutJava/communityprocess/final/jsr314/index.html
    For Facelets: https://facelets.dev.java.net/nonav/docs/dev/docbook.html and http://www.ibm.com/developerworks/java/library/j-facelets/
    For Trinidad: http://myfaces.apache.org/trinidad/devguide/index.html
    Regards,
    ~ Simon

  • JDeveloper 11.1.1.0.2: "Go to Declaration" function not working properly

    Hi all,
    We have updated to the new release of JDeveloper and converted our project to this new version.
    But now the function "Go to Declaration" (also available using ctrl key + click on the class) does not work properly.
    Although we have the source included in the library some classes are opened ok but some in the same package are not.
    This problem has occurred on two different installations.
    Have someone any idea where could be a problem?
    Thanks
    Steven

    It does nothing. And the source for classes where it works are in same JAR as the source for classes where it doesn´t work.
    Example:
    we have our class:
    public abstract class FormularController extends org.springframework.web.servlet.mvc.SimpleFormController {
    when I click on SimpleFormController (with ctrl key) it works ok, it opens SimpleFormController:
    public class SimpleFormController extends org.springframework.web.servlet.mvc.AbstractFormController {
    but now when I click on AbstractFormController (with ctrl key) it does nothing.
    In previous version of JDeveloper it works fine.
    And when I create a brand new application in new JDeveloper it works also ok.

  • Implementing UIApplicationDelegate protocol methods in NSObject class not working.

    Hi Everyone,
    I am new bee in iphone developement. I want to implement UIApplicationDelegate protocol methods in one of my NSObject class, how can i implement that help me please.
    I have mentioned the sample code what acutal i want to impelment.
    .h file
    @interface SmaplClass : NSObject <UIApplicationDelegate>
    .m file
    - (void)applicationWillResignActive:(UIApplication *)application
    - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
    -(void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
    - (void)application:(UIApplication*)application didFailToRegisterForRemoteNotificationsWithError:(NSError*)error
    Want to implement the above methods is NSObject class to be implemented or used, its not working. Help me can do it.
    Please help me
    Thanks,

    I complete the above discussion with saying that it is better to implement the notification handling methods in your app delegate. If there are good reasons to not to do so, you have to implement the methods in another class, instantiate the class, and call the methods from the actual UIApplicationDelegate protocol methods in the AppDelegate object. This way you can remove the actual notification handling code from AppDelegate class.
    For example, suppose you implemented the methods in the class called Test. This is a sample code in the AppDelegate class:
    @implementation AppDelegate
    - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
          Test *t = [[Test alloc] init];
         [t application: application didReceiveRemoteNotification: userInfo];
    @end
    Or you can create an association relationship between the AppDelegate and Test, so you do not have to create a new Test instance in each of the remote notification handling methods:
    @interface AppDelegate {
         Test *test;
    @end
    @implementation AppDelegate
    + (id)init {
         if (self = [super init]) {
              test = [[Test alloc] init];
         return self;
    - (void)dealloc {
         [test release];
         [super dealloc];
    - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
         // No need to create a Test instance. You just forward the call from AppDelegate instance to test      // instance
         [test application: application didReceiveRemoteNotification: userInfo];
    @end

Maybe you are looking for