Problem in implements ADF Faces: Detecting and handling user session expiry

Hello everybody
I´m trying to implement a method to handle user session expiry as explained by frank nimphius in his blog.
http://thepeninsulasedge.com/frank_nimphius/2007/08/22/adf-faces-detecting-and-handling-user-session-expiry/
I have implemented the class bellow and add the filters in web.xml. However when I add the JavaServer Faces Servlet to sign the filter, my hole application get nuts. I try to publish the applicatoin in the OAS and it seems that it already starts expired.
Someone konw what I´m doing wrong?
I use the filter
<filter>
<filter-name>ApplicationSessionExpiryFilter</filter-name>
<filter-class>adf.sample.ApplicationSessionExpiryFilter</filter-class>
<init-param>
<param-name>SessionTimeoutRedirect</param-name>
<param-value>SessionExpired.jspx</param-value>
</init-param>
</filter>
then I add
XML:
<filter-mapping>
<filter-name>ApplicationSessionExpiryFilter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
package adf.sample;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
this is the class
public class ApplicationSessionExpiryFilter implements Filter {
private FilterConfig _filterConfig = null;
public void init(FilterConfig filterConfig) throws ServletException {
_filterConfig = filterConfig;
public void destroy() {
_filterConfig = null;
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
String requestedSession = ((HttpServletRequest)request).getRequestedSessionId();
String currentWebSession = ((HttpServletRequest)request).getSession().getId();
boolean sessionOk = currentWebSession.equalsIgnoreCase(requestedSession);
// if the requested session is null then this is the first application
// request and "false" is acceptable
if (!sessionOk && requestedSession != null){
// the session has expired or renewed. Redirect request
((HttpServletResponse) response).sendRedirect(_filterConfig.getInitParameter("SessionTimeoutRedirect"));
else{
chain.doFilter(request, response);
I'm really having trouble controlling user sessions. if someone know where I can get materials to learn how to implements session in Jdev ADF + BC, I´m very grateful.
Thank you Marnie

The class works fine.. the issue is when I add the this code into web.xml
<filter-mapping>
<filter-name>ApplicationSessionExpiryFilter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
bellow the web.xml
<?xml version = '1.0' encoding = 'windows-1252'?>
<web-app>
<description>Empty web.xml file for Web Application</description>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<context-param>
<param-name>CpxFileName</param-name>
<param-value>userinterface.DataBindings</param-value>
</context-param>
<filter>
<filter-name>ApplicationSessionExpiryFilter</filter-name>
<filter-class>view.managedBean.ApplicationSessionExpiryFilter</filter-class>
</filter>
<filter>
<filter-name>adfFaces</filter-name>
<filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
</filter>
<filter>
<filter-name>adfBindings</filter-name>
<filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ApplicationSessionExpiryFilter</filter-name> ==> the problem occurs when I try to add this code
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>adfFaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>adfBindings</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>adfBindings</filter-name>
<url-pattern>*.jspx</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>resources</servlet-name>
<servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>resources</servlet-name>
<url-pattern>/adf/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>1</session-timeout>
</session-config>
<mime-mapping>
<extension>html</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>txt</extension>
<mime-type>text/pain</mime-type>
</mime-mapping>
</web-app>
By the way, how can I post code on the forum properly?

Similar Messages

  • Detecting and handling user session expiry

    I have implemented Frank's method of detecting expired session (http://thepeninsulasedge.com/frank_nimphius/2007/08/22/adf-faces-detecting-and-handling-user-session-expiry/)-
    basicaly we call session expired when requested session is not equal to current web session. If requested session is null then we say its innitial request.
    But there is situation when this doesn't work properly:
    We are closing our application, but we dont close the browser. Then if we try to open our application again (initial request) our code detects session expiry error, becouse requested session is not null...
    Is there I way to make it work properly?

    I have implemented Frank's method of detecting expired session (http://thepeninsulasedge.com/frank_nimphius/2007/08/22/adf-faces-detecting-and-handling-user-session-expiry/)-
    basicaly we call session expired when requested session is not equal to current web session. If requested session is null then we say its innitial request.
    But there is situation when this doesn't work properly:
    We are closing our application, but we dont close the browser. Then if we try to open our application again (initial request) our code detects session expiry error, becouse requested session is not null...
    Is there I way to make it work properly?

  • Handling user session expiry

    I am trying to implements Frank's way of detecting session expiry.(http://thepeninsulasedge.com/frank_nimphius/2007/08/22/adf-faces-detecting-and-handling-user-session-expiry/)
    It looks so simple and works perfectly well on test application in OC4J servers...
    But it doesnt work on my JBoss.
    Basicaly you take requestSession and currentWebSession in filter and compare them like this:
    String requestedSession = ((HttpServletRequest)request).getRequestedSessionId();
    String currentWebSession = ((HttpServletRequest)request).getSession().getId();
    If session id's are not equal, then it is expired session...But on my JBoss I always get equal session ids and never get requestedSession null (you should get null on initial session)!!! I am realy stuck with this
    I try checking if requested session is valid with isRequestedSessionIdValid() and I always get valid on my JBoss... on OC4J it works properly as well...
    Maybe this has something to do with my secure connection on JBoss?
    Can someone please give me something to hold to!?

    I am trying to implements Frank's way of detecting session expiry.(http://thepeninsulasedge.com/frank_nimphius/2007/08/22/adf-faces-detecting-and-handling-user-session-expiry/)
    It looks so simple and works perfectly well on test application in OC4J servers...
    But it doesnt work on my JBoss.
    Basicaly you take requestSession and currentWebSession in filter and compare them like this:
    String requestedSession = ((HttpServletRequest)request).getRequestedSessionId();
    String currentWebSession = ((HttpServletRequest)request).getSession().getId();
    If session id's are not equal, then it is expired session...But on my JBoss I always get equal session ids and never get requestedSession null (you should get null on initial session)!!! I am realy stuck with this
    I try checking if requested session is valid with isRequestedSessionIdValid() and I always get valid on my JBoss... on OC4J it works properly as well...
    Maybe this has something to do with my secure connection on JBoss?
    Can someone please give me something to hold to!?

  • Detecting user session expiry in secure connection

    I have implemented Frank's method of detecting expired session (http://thepeninsulasedge.com/frank_nimphius/2007/08/22/adf-faces-detecting-and-handling-user-session-expiry/)-
    basicaly we call session expired when requested session is not equal to current web session:
    String requestedSession =
    ((HttpServletRequest)request).getRequestedSessionId();
    String currentWebSession =
    ((HttpServletRequest)request).getSession().getId();
    boolean sessionOk =
    currentWebSession.equalsIgnoreCase(requestedSession);
    It works perfectly well when I am launching application in OC4J, but it doesnt if I use JBoss with secure connection and session id in cookie- requestedSession and requestedSession is always the same
    Is there a way to detect session expiry using secure connection?

    Thank You for the answer Frank.
    unfortunately I cannot see full view of how this proposal differ from what I am doing..
    Can You please be more specific...
    As I understand, I am doing exactly the same with:
    String requestedSession =
    ((HttpServletRequest)request).getRequestedSessionId();
    String currentWebSession =
    ((HttpServletRequest)request).getSession().getId();
    or you mean to save currentWebSession somewhere else?

  • Adf faces table and applet in jsf page navSubmit not working in IE

    Hi
    I have a jsf page with adf faces table and applet , previous / next navigation is not working for my table when i add the applet to the same page , it is working in firefox but not in IE .
    I have no clue what to change , can any one help. below is the sample code for my jsf page
    Best regards
    Srinivas
    Code follows, not sure how to format the code here
    <h:form>
    <af:panelPage title="Test Adf faces table and applet">
    <af:panelHeader text="Orders">
    <af:table value="#{bindings.Orders.collectionModel}" var="row"
    rows="#{bindings.Orders.rangeSize}"
    first="#{bindings.Orders.rangeStart}"
    emptyText="#{bindings.Orders.viewable ? 'No rows yet.' : 'Access Denied.'}"
    id="orders" >
    <af:column sortProperty="order"
    headerText="#{bindings.Orders.labels.order}">
    <af:commandLink text="#{row.order}"
    id="orderNumber"
    onclick="showOrder(#{row.order})"
    disabled="false"/>
    </af:column>
                   </af:table>
    </af:panelHeader>
    <af:objectSpacer width="10" height="10"/>
    <af:panelBox>
    <f:verbatim>
    <div id="appletDiv">
                        <applet here />
                        </div>
    </f:verbatim>
    </af:panelBox>
    </af:panelHorizontal>
    </af:panelPage>
    </h:form>

    Sorry about the format, it looked okay when i previewed it , now it looks like terrible

  • How to Handle user Session in JSP

    Help me,
    How to handle user session in JSP.......

    Prakash_Pune wrote:
    tell me some Debugging tech. so i can overcome from my problem.....Do you use an IDE? Any IDE ships with a decent debugger where in you can just execute the code step by step, explore the current variable values and check what exactly is happening. For example Eclipse or IntelliJ. If you don´t use an IDE, then just place some System.out.println() or Logger.debug() statements at strategic locations printing the variables of relevance so that you can track in logs what exactly is happening.
    or tell any other way to find is my page is thread safe or not...Just write correct code and narrow the scope of the variables as much as possible. If you for example assigned the user object to a static variable or as a servlet´s instance variable, then exactly the same user object would be used everywhere in the application. That kind of logical things.

  • JBO-35007 in Portletized ADF Faces Page and alternative scenarios

    Hi all,
    I've started a new thread to address one of the problems referred to here Issues with Faces -> Portlet Bridge and ADF Faces
    In short, the issue arises when portletizing an existing ADF Faces page that uses an ADF BC bound af:Table on the page. I've got a very simple ADF Faces page that has an af:Table on it bound to the employees table in the Oracle HR schema. The af:Table allows sorting and has an af:selectTableOne in it's selection facet which contains an af:commandButton. The app works fine when run as a JSF page.
    However, when I use the JSF-Portlet bridge to publish the page as a portlet (following all of the steps in the Web Center Developer's guide, including changing the state_saving_method to "server"), and placing the portlet on a ADF Faces page in a different project, I can consistently create JBO-35007 errors by:
    * Sorting the data in the portlet by clicking the column header
    * Selecting a different row and pressing the af:commandButton
    Clearly, the current row of the iterator is not being saved properly. I can (of course) "fix" this behavior by setting EnableTokenValidation to "false" in the page definition of the ADF Faces page that has been portletized, but this has obvious side effects.
    Should this behavior work as I am trying to implement it? Perhaps it doesn't make sense to "select" an item in a portlet like this (what am I going to do, as the parent application doesn't have access to the selected row information).
    I can, however, think of a good use case:
    User is using a web-store type application to browse items and add them to his shopping cart. Off to the side, we've got a portlet that shows recently purchased items for the user. User clicks item in that portlet (or selects and hits submit - as in my non-working example, above) and then the main web store application navigates to that item in the "main" section. How could I implement something like this? Any navigation case in the portlet is not exposed to the main application. Perhaps there is a different model by which to do this.... I cannot use a PDK event-type approach (this limits my use of Faces to create portlets), so I'm in a bind.
    Thoughts and discussion much appreciated,
    John

    Peter,
    This should be so simple to re-create; here's my project: http://download.yousendit.com/F017E4D457FFA7F3
    It uses the HR sample schema from a stock 10gr2 database. Be sure to set up the ADF BC connection in the model project, build and deploy the portlets, then try running TestPage.jspx in the UserInterface project. You can play around with the pagedef in the Portlet project to see the JBO-35007 error - right now, EnableTokenValidation is set to false - you can change it to true to see the error.
    John

  • ADF Faces, BC and JDeveloper 10g: Rendering Dynamic ViewObjects at runtime

    I am trying to make a 10g version of Shay's example (http://www.youtube.com/watch?v=TwIKt7e4vEw).
    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/html" prefix="afh"%>+
    +<%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>+
    +<f:view>+
    +<afh:html>+
    +<afh:head title="runTest">+
    +<meta http-equiv="Content-Type"+
    content="text/html; charset=windows-1252"/>
    +</afh:head>+
    +<afh:body>+
    +<af:messages/>+
    +<af:form>+
    +<af:table value="#{bindings.DynamicVo.collectionModel}" var="row"+
    +rows="#{bindings.DynamicVo.rangeSize}"+
    +first="#{bindings.DynamicVo.rangeStart}"+
    +emptyText="#{bindings.DynamicVo.viewable ? \'No rows yet.\' : \'Access Denied.\'}"+
    +partialTriggers="make">+
    +<af:column sortProperty="Dummy" sortable="false"+
    +headerText="#{bindings.DynamicVo.labels.Dummy}">+
    +<af:outputText value="#{row.Dummy}"/>+
    +</af:column>+
    +</af:table>+
    +<af:commandButton actionListener="#{bindings.makeVo.execute}"+
    +text="makeVo" disabled="#{!bindings.makeVo.enabled}"+
    +id="make"/>+
    +</af:form>+
    +</afh:body>+
    +</afh:html>+
    +</f:view>+
    *PageDef:*
    +<?xml version="1.0" encoding="UTF-8" ?>+
    +<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"+
    +version="10.1.3.42.70" id="runTestPageDef"+
    +Package="view.pageDefs">+
    +<parameters/>+
    +<executables>+
    +<iterator id="DynamicVoIterator" RangeSize="10" Binds="DynamicVo"+
    +DataControl="AppModuleDataControl"/>+
    +</executables>+
    +<bindings>+
    +<table id="DynamicVo" IterBinding="DynamicVoIterator">+
    +<AttrNames>+
    +<Item Value="Dummy"/>+
    +</AttrNames>+
    +</table>+
    +<methodAction id="makeVo" InstanceName="AppModuleDataControl.dataProvider"+
    +DataControl="AppModuleDataControl" MethodName="makeVo"+
    +RequiresUpdateModel="true" Action="999"+
    +IsViewObjectMethod="false"/>+
    +</bindings>+
    +</pageDefinition>+
    *Application Module Implementation:*
    +package model;+
    +import model.common.AppModule;+
    +import oracle.jbo.ViewObject;+
    +import oracle.jbo.server.ApplicationModuleImpl;+
    +// ---------------------------------------------------------------------+
    +// --- File generated by Oracle ADF Business Components Design Time.+
    +// --- Custom code may be added to this class.+
    +// --- Warning: Do not modify method signatures of generated methods.+
    +// ---------------------------------------------------------------------+
    +public class AppModuleImpl extends ApplicationModuleImpl implements AppModule {+
    +/**This is the default constructor (do not remove)+
    +*/+
    +public AppModuleImpl() {+
    +}+
    +public void makeVo(){+
    +System.out.println("make vo");+
    +ViewObject vo = this.findViewObject("DynamicVO");+
    +if(vo==null){+
    +System.out.println("vo is null");+
    +}+
    +vo.remove();+
    +System.out.println("Vo removed");+
    +vo = createViewObjectFromQueryStmt("DynamicVo", "SELECT deptno from dept" );+
    +System.out.println("Vo created");+
    +vo.executeQuery();+
    +System.out.println("Vo estimated row count"+vo.getEstimatedRowCount());+
    +}+
    +/**Container's getter for DynamicVo+
    +*/+
    +public DynamicVoImpl getDynamicVo() {+
    +return (DynamicVoImpl)findViewObject("DynamicVo");+
    +}+
    +/**Sample main for debugging Business Components code using the tester.+
    +*/+
    +public static void main(String[] args) {+
    +launchTester("model", /* package name */+
    +"AppModuleLocal" /* Configuration Name */);+
    +}+
    +}+
    *Runtime before clicking button*
    http://i108.photobucket.com/albums/n23/zeoneozero/1.jpg
    *Runtime after clicking button*
    http://i108.photobucket.com/albums/n23/zeoneozero/2.jpg
    *Console*
    +1/11/09 11:26:44 make vo+
    +11/11/09 11:26:44 Vo removed+
    +11/11/09 11:26:44 Vo created+
    +11/11/09 11:26:44 Vo estimated row count7+
    *Error:*
    JBO-25003: Object DynamicVo of type View Object not found
    JBO-25003: Object DynamicVo of type View Object not found
    Will this work with 10g? If so, has anyone tried and succeeded? Any advice is appreciated.
    thanks,
    wes

    the example is in 11g and makes use adf dynamic forms.
    I don´t know if you can make this in 10g

  • ADF FACES: processValidators and ValidatorException bug

    Using EA15.
    Unless I'm misunderstanding how UIComponent.processValidators works, you should just throw a ValidatorException to signal a problem.
    However, in trying just that, the ADF FACES framework is treating the exception as a SEVERE error instead of treating it as a validation failure.
    I have constructed a simple extension to PanelPage so I can invoke my own validation routine, like this:
    * Internal class to provide a validation hook for our forms
    public static class ValidatingCorePanelPage extends CorePanelPage {
    public void processValidators(FacesContext ctx) {
    super.processValidators(ctx);
    // Dispatch the validation to the current form
    FormBean.dispatchFormValidation(ctx);
    dispatchFormValidation will invoke a validation method on the proper backing bean, in which code similar to the following is used:
    String spokeWith = (String)getCompSpokeWith().getLocalValue();
    String callStatus = (String)getCompFinalCallStatus().getLocalValue();
    System.out.println("SPOKEWITH='" + spokeWith + "'");
    System.out.println("CALLSTATUS='" + callStatus + "'");
    // We require a value in "spoke with" if the call status is anything other than
    // "left message"
    boolean isMessageStatus = !StringUtils.isEmpty(callStatus) && StringUtils.contains(callStatus.toLowerCase(),"message");
    if( !isMessageStatus && StringUtils.isEmpty(spokeWith)) {
    // register the error message
    FacesMessage fmsg =
    new FacesMessage(FacesMessage.SEVERITY_ERROR, "Incomplete Data",
    "'Spoke with' may not be empty");
    // Add the message to the specific
    // component that is missing data.
    getFacesContext().addMessage("spokewith", fmsg);
    throw new ValidatorException(fmsg);
    However, when this executes (and results in a ValidatorException), I get the following output in my log file:
    05/05/20 15:51:44 <<<< PHASE: RESTORE_VIEW 1
    05/05/20 15:51:44 >>>> PHASE: APPLY_REQUEST_VALUES 2
    05/05/20 15:51:44 <<<< PHASE: APPLY_REQUEST_VALUES 2
    05/05/20 15:51:44 >>>> PHASE: PROCESS_VALIDATIONS 3
    May 20, 2005 3:51:44 PM com.sun.faces.lifecycle.ProcessValidationsPhase execute
    SEVERE: Incomplete Data
    javax.faces.validator.ValidatorException: Incomplete Data
         at com.fhm.mwb.ui.backing.OfficeCallForm.validateForm(OfficeCallForm.java:256)
         at com.fhm.mwb.ui.backing.FormBean.dispatchFormValidation(FormBean.java:588)
         at com.fhm.mwb.ui.SharedComponents$ValidatingCorePanelPage.processValidators(SharedComponents.java:337)
         at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java)
    And the lifecycle stops dead!
    How is this supposed to work? How are you supposed to report a validation exception from within processValidators?
    This seems to be a bug in ADF FACES.

    <af:forEach> does not support <f:> or <h:> tags; this unfortunate restriction is documented in the <af:forEach> release notes. It's not a bug - it's a fact of life until we can get our technique integrated into the core JSF or JSP specifications.

  • ADF Faces: PPR and Dialog framework

    Hi All,
    I know that there have been some navigation-related issues reported with 10.1.3 and the dialog framework, so if this is a bug.....
    Anyway, I have an ADF Faces page that displays some data (from ADF View Object) in an af:Table. I have an "Edit Record" button and a "Create Record" button in the appropriate facets of the table. The 2 buttons use a dialog: navigation case (useWindow=true) to open a pop-up window with a record displayed for editing. Each of the buttons also has partialSubmit=true with an appropriate ID set on the button.
    Now, I am trying to get the table to refresh upon return from the dialog. After much experimentation, I have found that setting the partialTriggers property on the af:OutputText components that are inside the af:Table->af:Column will cause an existing row to refresh upon return from the edit button. However, I cannot get a new row to show up inside of the table upon return from the create button. I have tried setting partial triggers on the af:OutputText, af:Column, af:Table, etc all the way up to the top-level af:Page to no avail. I have also tried refreshing the iterator binding in the dialog return, to no avail. If I completely refresh the page (see sample code below), the record does show up, but it does cause other undesirable side effects (screen scrolls to the top, af:showDetailHeader's re-set their state, etc).
    Any pointers are appreciated...
    Here is the code behind my create button:
      public String performCreateCheck()
        DCBindingContainer bindings = getBindings();
        OperationBinding operationBinding = bindings.getOperationBinding("CreateNewCheck");
        Object result = operationBinding.execute();
        // Stuff snipped - the CreateNewCheck binding does a "CreateInsert" on my VO
        return "dialog:EditCheck";
      }Here is the code that refreshes the page (causes the new row to appear):
      protected void refreshCurrentPage()
        FacesContext context = FacesContext.getCurrentInstance();
        String currentView = context.getViewRoot().getViewId();
        ViewHandler vh = context.getApplication().getViewHandler();
        UIViewRoot x = vh.createView(context, currentView);
        x.setViewId(currentView);
        context.setViewRoot(x);
      }Kind regards,
    John

    Found this: http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#81
    on Steve M's blog. His example uses exactly the same method that I do. However, It would be nice to get this working "properly" with PPR instead of refreshing the whole page. Here are what I see as the drawbacks to the "refresh the whole page" method:
    1). The page will scroll up to the top. If the page is bigger than a screenful, this is an annoyance.
    2). Any af:showDetailHeader's will have their disclosed property reset (unless you implement some method of saving their state). This is an issue for me, as the af:Table is inside of a normally un-disclosed af:showDetailHeader
    3). If any component anywhere puts something into the faces messages (e.g. "Record saved"), it will be lost when the page is refreshed.
    Any ideas on how to get this working with PPR?
    Regards,
    John

  • Exposure of Faces not being controlled by Face Detection and Touch-and-Track on Vixia

    I cannot get my Vixia G30 to automatically adjust its exposure of faces
    or objects being detected and tracked, even though the focus keeps up just
    fine. When I touch a screen object to select it -- whether it’s relatively bright
    or dark -- I get a double square bracket around it but the exposure doesn’t
    change at all. When this object moves while being tracked, the exposure only
    changes along with the overall scene brightness level, never in response to the
    changing brightness of the moving object. Is there some trick for getting the
    exposure of a tracked object to be tracked, as occurs flawlessly with focus? The
    manual states it should. This problem is making it difficult for me to shoot
    theater.

    If you want to integrate a C/C++ application from JNI into Java this may be helpful :
    http://www.javaworld.com/jw-03-2001/jw-0316-itw-jni.html
    html format :
    http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jni.html
    pdf format:
    http://java.sun.com/developer/Books/j2ee/advancedprogramming/jni.pdf
    Edited by: aurelian_cl on Mar 6, 2008 1:09 PM

  • Problem in accessing ADF Faces Table portlet in Oracle 10.1.4 portal server

    I created one ADF Faces Portlet ,showing a simple table in 10.1.3.1
    When i do run from Jdevloper it works fine.
    But after registering it as WSRP in oracle portal server 10.1.4 ,when i am adding this portlet in a page ,it is giving javasript error.
    I am not able to figure out problem.
    Any help will be appreciated.
    Thanks in Advance....

    It is giving error in this line.
    addJSL("http://ipaddess/portal/page/portal/TEST/COMPANY/test82?mode=16&_rtarget=36_14157_36_14154_14154&_piref36_14157_36_14154_14154.__ora_type=proxy&_piref36_14157_36_14154_14154.__ora_resource=http%3A%2F%2Fisaha%3A8888%2FListAll3%2Fportletresource%2FC%253A192.168.11.162%253A-ce9ef7a%253A12214125dd4%253A-7ffe%2FS%253A192.168.11.162%253A-ce9ef7a%253A12214125dd4%253A-7ffc%253AE%253A0%253A192.168.11.162%253A-ce9ef7a%253A12214125dd4%253A-7ffd%2Fadf%2FjsLibs%2FCommon10_1_3_2_0.js"
    But instead of http:// if it is http://// It is ok.But is is generated by Portal server.
    Do I need to install any patch.
    Any help will be appreciated.
    Thanks in advance ......

  • ADF-Faces table and mass data

    Hello Oracle,
    we consider to use ADF-Faces with Spring and TopLink or Hibernate that supports all important commercial databases.
    We need a solution for selecting mass data and show them using a ADF-Faces component.
    ADF-Faces table looks great and is fine for for some hundred datasets. But we have customers who could do a select over 80.000 or more datasets and it cannot be the solution to load them completly in collection-model in memory.
    Do you have a solution or do you plan somthing? A JSF data table component for mass data (e.g. load from database on every "next or "previous" click)?
    Regards
    Florian

    I'm pretty new to ADF Faces etc. but I know the ADF Table component supports paging. If you're using ADF Business Components as the persistence framework it supports paging out of the box giving you exactly what you're looking for.
    If you're using EJBs or Toplink I think you have to write your own paging interface but I don't know this for sure.
    Corey
    Message was edited by:
    cpuffalt
    Message was edited by:
    cpuffalt

  • ADF FACES showOneTabs and selectOrderShuttle can't cowork

    I'm new to ADF FACES. My ADF FACES is EA10.
    The code excerpt from EA10's demo works fine when:
    <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/EA10/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/EA10" >
    <jsp:directive.page contentType="text/html;charset=iso-8859-1"/>
    <f:view>
    <afh:html>
    <afh:head title="SelectOrderShuttle Demo"/>
    <afh:body>
    <af:form>
    <af:selectOrderShuttle id="shuttle2"
    leadingHeader="Available values:"
    trailingHeader="Selected values:"
    valueChangeListener="#{list.valueChanged}"
    value="#{list.objectList}">
    <af:selectItem label="First" value="foo"/>
    <af:selectItem label="Second" value="bar"/>
    <af:selectItem label="Third" value="baz"/>
    </af:selectOrderShuttle>
    </af:form>
    </afh:body>
    </afh:html>
    </f:view>
    </jsp:root>
    But not working when:
    <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/EA10/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/EA10" >
    <jsp:directive.page contentType="text/html;charset=iso-8859-1"/>
    <f:view>
    <afh:html>
    <afh:head title="SelectOrderShuttle Demo"/>
    <afh:body>
    <af:form>
    <af:showOneTabs>
    <af:showDetailItem text="Text">
    <af:selectOrderShuttle id="shuttle2"
    leadingHeader="Available values:"
    trailingHeader="Selected values:"
    valueChangeListener="#{list.valueChanged}"
    value="#{list.objectList}">
    <af:selectItem label="First" value="foo"/>
    <af:selectItem label="Second" value="bar"/>
    <af:selectItem label="Third" value="baz"/>
    </af:selectOrderShuttle>
    </af:showDetailItem>
    </af:showOneTabs>
    </af:form>
    </afh:body>
    </afh:html>
    </f:view>
    </jsp:root>
    Could someone help?

    The bug is in showOneTabs, selectOrderShuttle or both?
    And when will EA12 be release?
    Thanks in advance.

  • How do I add ADF Faces Core and ADF Faces Html to the component palette?

    I have an already made jspx page which I wish to work further on but I can´t choose ADF components from the component palette.
    in my older version I added these two lines to the <jsp:root> element when I wanted to make ADF components available.
    xmlns:af="http://xmlns.oracle.com/adf/faces"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
    but in Jdeveloper 11g preview 3 these two lines seem to have no effect.
    I tried to see what other jspx pages that contained ADF components in 11g had that my page didn´t and found out that they had the line
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    but when I add this line instead of the other two lines and press install JSP tag library Jdeveloper freezes completely. Can anyone help me get ADF components show up in the component palette in Jdeveloper 11g preview 3?
    Message was edited by:
    AtlanticViking

    Hello,
    Jdeveloper 11g uses Trinidad not ADF Faces 10g, to add it, uses the following:
    1. Double-click your project to access project properties;
    2. Select JSP Tag Libraries;
    3. Click Add;
    4. Trinidad Component 11-m3
    Regards,
    ~ Simon

Maybe you are looking for

  • Stale data error: OA page opened by different users

    Hi, An OA Page which is basically use to query order details and update certain custom tables based on the order details has been developed. The first page which is a search page perfoms the search based on the "Custom Name", "Order Status" --> Bith

  • Is Reader XI Compatable With Acrobat Pro 9.5.5?

    I want to upgrade my Reader to Adobe Reader XI and wonder if XI will intregrate and work with my  current Adobe Acrobat Pro 9.5.5 full program?

  • How to have one provider with multiple portlets in JDev 11g

    Hi, I am trying to create Oracle PDK Portlets using JDeveloper 11g but for each portlet JDeveloper is creating a provider. As In JDeveloper 10.1.3.4 we can have one provider with multiple portlets in it. But JDev 11g creates provider for each portlet

  • Car charging (12V) to Macbook Pro Magsafe 2

    There seems to be numerous discussions (all of them old) about the best way to charge a new Macbook pro (2013 onwards) with magsafe 2 (T connector) in a car. However I cant seem to find the definitive answer or an up to date one. Have a client that n

  • Feedback & Help: Zooming the Slide Canvas

    Sometimes, I'd like to place object outside the Slide borders so that i can make them fly in & out at my wish. Keynote lets you place anything outside your Slide (Above, Left, Below, Right). When you want to see the bigger picture you can use Zoom Ou