ADF Bug? SelectOneChoice in af:column becomes null after refresh

Hello,
I just discovered a serious issue in my code (ADF 11.1.1.4/Windows 7). I was able to reproduce the issue using the following code :
I have a table mapped to a Widget ViewObject listing some widget definitions. On of the column represents the widget type id. I use an af:selectOneChoice and the widgetTypeId is mapped to the WidgetType ViewObject (the category name is displayed)
The page definition :
<?xml version="1.0" encoding="UTF-8" ?>
<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
                version="11.1.1.59.23" id="testFramePageDef"
                Package="com.test.view.pageDefs">
  <parameters/>
  <executables>
    <variableIterator id="variables"/>
    <iterator Binds="WidgetView1" RangeSize="25"
              DataControl="AppModuleDataControl" id="WidgetView1Iterator"/>
    <iterator Binds="WidgetTypeView1" RangeSize="-1"
              DataControl="AppModuleDataControl" id="WidgetTypeView1Iterator"/>
  </executables>
  <bindings>
    <tree IterBinding="WidgetView1Iterator" id="WidgetView1">
      <nodeDefinition DefName="com.test.model.views.dashboard.WidgetView"
                      Name="WidgetView10">
        <AttrNames>
          <Item Value="WidgetId"/>
          <Item Value="WidgetTypeId" Binds="WidgetTypeId"/>
          <Item Value="Name"/>
          <Item Value="Reference"/>
          <Item Value="Description"/>
          <Item Value="StrId"/>
        </AttrNames>
      </nodeDefinition>
    </tree>
    <list IterBinding="WidgetView1Iterator" id="WidgetTypeId"
          DTSupportsMRU="true" StaticList="false"
          ListIter="WidgetTypeView1Iterator">
      <AttrNames>
        <Item Value="WidgetTypeId"/>
      </AttrNames>
      <ListAttrNames>
        <Item Value="WidgetTypeId"/>
      </ListAttrNames>
      <ListDisplayAttrNames>
        <Item Value="Name"/>
      </ListDisplayAttrNames>
    </list>
  </bindings>
</pageDefinition>The jsf page displays the widgets name and type, which are both modifiable. I also added previous/next buttons :
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
          xmlns:c="http://java.sun.com/jsp/jstl/core">
  <jsp:directive.page contentType="text/html;charset=UTF-8"/>
  <f:view>
    <af:document id="d1">
      <af:messages id="m1"/>
      <af:form id="f1">
        <af:panelStretchLayout id="ptstc">
          <f:facet name="top">
            <af:panelGroupLayout id="pglact" layout="horizontal">
              <af:commandButton id="cbprv" action="#{userBean.previous}" text="Previous"/>
              <af:commandButton id="cbnxt" action="#{userBean.next}" text="Next"/>
            </af:panelGroupLayout>
          </f:facet>
          <f:facet name="center">
            <af:table value="#{bindings.WidgetView1.collectionModel}" var="row"
                      rows="#{bindings.WidgetView1.rangeSize}"
                      emptyText="#{bindings.WidgetView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                      fetchSize="#{bindings.WidgetView1.rangeSize}"
                      rowBandingInterval="0"
                      selectedRowKeys="#{bindings.WidgetView1.collectionModel.selectedRow}"
                      selectionListener="#{bindings.WidgetView1.collectionModel.makeCurrent}"
                      rowSelection="single" id="t1">
              <af:column sortProperty="WidgetId" sortable="false"
                         headerText="#{bindings.WidgetView1.hints.WidgetId.label}"
                         id="c3">
                <af:inputText value="#{row.bindings.WidgetId.inputValue}"
                              label="#{bindings.WidgetView1.hints.WidgetId.label}"
                              required="#{bindings.WidgetView1.hints.WidgetId.mandatory}"
                              columns="#{bindings.WidgetView1.hints.WidgetId.displayWidth}"
                              maximumLength="#{bindings.WidgetView1.hints.WidgetId.precision}"
                              shortDesc="#{bindings.WidgetView1.hints.WidgetId.tooltip}"
                              id="it5">
                  <f:validator binding="#{row.bindings.WidgetId.validator}"/>
                  <af:convertNumber groupingUsed="false"
                                    pattern="#{bindings.WidgetView1.hints.WidgetId.format}"/>
                </af:inputText>
              </af:column>
              <af:column sortProperty="WidgetTypeId" sortable="false"
                         headerText="#{bindings.WidgetView1.hints.WidgetTypeId.label}"
                         id="c1">
                <af:selectOneChoice value="#{row.bindings.WidgetTypeId.inputValue}"
                                    label="#{row.bindings.WidgetTypeId.label}"
                                    required="#{bindings.WidgetView1.hints.WidgetTypeId.mandatory}"
                                    shortDesc="#{bindings.WidgetView1.hints.WidgetTypeId.tooltip}"
                                    id="soc1">
                  <f:selectItems value="#{row.bindings.WidgetTypeId.items}"
                                 id="si1"/>
                </af:selectOneChoice>
              </af:column>
            </af:table>
          </f:facet>
        </af:panelStretchLayout>
      </af:form>
    </af:document>
  </f:view>
</jsp:root>Here is the code from my backing bean :
    private int widgetId = 1010;
    public void previous(){
      text = "action";
      AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
      ViewObject vo = am.getWidgetView1();
      widgetId--;
      vo.setWhereClause("WIDGET_ID="+widgetId);
      vo.executeQuery();
    public void next(){
      text = "action";
      AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
      ViewObject vo = am.getWidgetView1();
      widgetId++;
      vo.setWhereClause("WIDGET_ID="+widgetId);
      vo.executeQuery();
    }Now the issue : if I open the page, the entire widget table is displayed. I click on 'next' and the first record is displayed with correct name and type. If a do a refresh by hitting F5, the action is re-executed and the second row is displayed, also with correct name and type. But if I select 'previous', I come back to the first row but the type is now set to null(0).
Can you tell me if this code is correct and if yes : are you able to reproduce it? / is this an ADF bug?
Thank you
Stephane
Edited by: drahuks on 9 mai 2011 01:32

Frank,
The backing bean is session scoped.
I tried a second solution using af:iterator and af:selectItem instead of af:selectItems :
pageDef :
<?xml version="1.0" encoding="UTF-8" ?>
<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
                version="11.1.1.59.23" id="testFramePageDef"
                Package="com.test.view.pageDefs">
  <parameters/>
  <executables>
    <variableIterator id="variables"/>
    <iterator Binds="WidgetView1" RangeSize="25"
              DataControl="AppModuleDataControl" id="WidgetView1Iterator"/>
    <iterator Binds="WidgetTypeView1" RangeSize="-1"
              DataControl="AppModuleDataControl" id="WidgetTypeView1Iterator"/>
  </executables>
  <bindings>
    <tree IterBinding="WidgetView1Iterator" id="WidgetView1">
      <nodeDefinition DefName="com.test.model.views.dashboard.WidgetView">
        <AttrNames>
          <Item Value="Name"/>
          <Item Value="WidgetTypeId"/>
        </AttrNames>
      </nodeDefinition>
    </tree>
    <table IterBinding="WidgetTypeView1Iterator" id="WidgetTypeLov">
      <AttrNames>
        <Item Value="Name"/>
        <Item Value="WidgetTypeId"/>
      </AttrNames>
    </table>
  </bindings>
</pageDefinition>jspx :
<af:selectOneChoice value="#{row.WidgetTypeId}"
                                    id="soc1">
                  <af:forEach var="typeNode"
                              items="#{bindings.WidgetTypeLov.rangeSet}">
                    <af:selectItem id="sit" value="#{typeNode.WidgetTypeId}"
                                    label="#{typeNode.Name}"/>
                  </af:forEach>
                  <!--<f:selectItems value="#{row.bindings.WidgetTypeId.items}"
                                 id="si1"/>-->
                </af:selectOneChoice>Still get an issue : when hitting F5 I get a nullpointer exception. Here is the debug :
<ADFLogger> <begin> Execute query
<ViewObjectImpl> <buildQuery> [1960] _LOCAL_VIEW_USAGE_com_test_model_views_dashboard_WidgetView_WidgetTypeView1>#q computed SQLStmtBufLen: 112, actual=85, storing=115
<ViewObjectImpl> <buildQuery> [1961] SELECT WidgetType.WIDGET_TYPE_ID,         WidgetType.NAME FROM WIDGET_TYPE WidgetType
<ViewObjectImpl> <getPreparedStatement> [1962] ViewObject: [com.test.model.views.WidgetTypeView]AppModule._LOCAL_VIEW_USAGE_com_test_model_views_dashboard_WidgetView_WidgetTypeView1 Created new QUERY statement
<ViewObjectImpl> <bindParametersForCollection> [1963] Bind params for ViewObject: [com.test.model.views.WidgetTypeView]AppModule._LOCAL_VIEW_USAGE_com_test_model_views_dashboard_WidgetView_WidgetTypeView1
<ViewObjectImpl> <bindParametersForCollection> [1964] For RowSet : _LOCAL_VIEW_USAGE_com_test_model_views_dashboard_WidgetView_WidgetTypeView1_0
<ADFLogger> <addContextData> Execute query
<ADFLogger> <addContextData> Execute query
<ADFLogger> <addContextData> Get LOV list
<MessageFactory> <getMessage>
java.lang.NullPointerException
     at oracle.jbo.uicli.binding.JUCtrlListBinding.processNewInputValue(JUCtrlListBinding.java:3834)
     at oracle.adfinternal.view.faces.model.HierNodeBindingELResolver.setValue(HierNodeBindingELResolver.java:77)
     at oracle.adfinternal.view.faces.model.AdfELResolver.setValue(AdfELResolver.java:132)
     at javax.el.CompositeELResolver.setValue(CompositeELResolver.java:283)
     at com.sun.faces.el.DemuxCompositeELResolver._setValue(DemuxCompositeELResolver.java:252)
     at com.sun.faces.el.DemuxCompositeELResolver.setValue(DemuxCompositeELResolver.java:278)
     at com.sun.el.parser.AstValue.setValue(Unknown Source)
     at com.sun.el.ValueExpressionImpl.setValue(Unknown Source)
     at org.apache.myfaces.trinidad.component.UIXEditableValue.updateModel(UIXEditableValue.java:289)
     at org.apache.myfaces.trinidad.component.UIXEditableValue.processUpdates(UIXEditableValue.java:252)Stephane
Edited by: drahuks on 10 mai 2011 04:09

Similar Messages

  • Dropdown values becoming null after deployment

    Iam using jdev 10.1.3.4 and oc4j 10.1.3.4 server.
    we have a ADF table in a page in the application with three dropdowns. when i run the page in jdev the values are getting populated correctly for every record.But After deployment, for some records the values in the dropdowns are becoming null. we have 85 records in our Database for which only 5 records have this problem after deployment. But this works fine in local server.
    Any help will be appreciated.
    Thanks,
    Lakshmi.

    Thank you very much for answering...
    I can't send all the code because it needs plenty of files to run. I'll just describe the "critical" parts of it:
    - my main class extends JPanel and implements ActionListener + FocusListener + ListSelectionListener
    - the JTable is declared by private JTable myTable = null;
    - the table is inited by a call to a private void method, with the followind code:
       myTable = new JTable(cellData,colNames);
       myTable.setName("my_table");
       myTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
       //... - the table is then put in a scroll pane:
       sTable = new JScrollPane(myTable);and the scroll pane put in the NORTH of a JPanel.
    - I put a listener on the table by:
       myTable.getSelectionModel().addListSelectionListener(this);Here is the most part of the misfuntionning code... the table goes well until the listener generates events... then the myTable instance becomes NULL.
    Thanks in advance for thinking about the problem's causes,
    Cheers.

  • Window.opener becoming null after 10 seconds

    Wondering if anyone else has ran into this problem...
    function refreshMe()
    var openerObj = window.opener;
    window.close();
    alert(openerObj);
    openerObj.opener.location.href = openerObj.opener.location.href;
    openerObj has a value of [object DOMWindow] when a new window pops up. But when I wait approximately 10 seconds the value is becomes null.
    Any suggestions or advice you may have is appreciated.

    Basically I'm using Javascript to pop up a window (child). That window changes to another URL (sub child) after a user selection... Once that pop up form submission is complete I want to refresh the original parent window and close the sub child.
    To accomplish this I'm using window.opener.opener.location.href (the original URL) which should be saved by Safari. The problem is after approx. 10 seconds the window.opener variable becomes null. I'm guessing this is something related to Sarfari and not my code...
    However, I'm open to any suggestions. Thank you.

  • MATERIALIZED VIEW BECOMES INVALID AFTER REFRESH

    Hello All,
    I have wierd problem ,
    In my enviroinment we have a MATERIALIZED VIEW ,which is refreshed by a sheduled DBMS_SNAPSHOT.REFRESH Job post the refresh it becomes invalid and every time we have to compile it manually ,Could anybody help with a solution .Thanks a lot in Advance .
    DETAILS :
    ======
    VERSION:Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    HOST: IBM AIX

    Is the MV part of a refresh group?
    Post the command and parameters used by the scheduled job to do the refresh as well as the parameters you use when you do it manually.

  • Ise node not becoming standalone after deregistration

    I am seeing a weird problem.
    I deregistered secondary admin/monitor node from primary admin/monitor node. I see successfully deregistered message.
    But the deregistered node is still showing SEC(A) and SEC(M). It is not changing to standalone mode.
    This is disrupting the upgrade of distributed deployment of ISE nodes.
    Any clues?

    Bug details:
    Secondary node never becomes standalone after de-registration
    The secondary node is de-registered successfully but a "The following deregistered nodes are not currently reachable: . Be sure to reset the configuration on these nodes manually, as they may not revert to Standalone on their own." message appears to the administrator.
    Workaround   Log in to the administrator user interface with internal Cisco ISE administrator credentials when de-registering a node.
    Actually we had two accounts in web gui, nodes were registered using one account and during upgrade, i used different account , which triggered this bug.

  • Bug report - OOB site column ArticleStartDate is crawled according to GMT0 not user/server timezone

    This issue can be reproduced easily on any SP2013 farm (on-premise) and I heard Sharepoint online do not have this problem.
    Issue: Site column "Article Date" with fieldname "ArticleStartDate" is crawled as GMT 0 regardless what timezone your web application, site setting, user setting and OS are set. Also when you submit a search you need to use GMT 0
    otherwise you will get wrong result. I believe it is bug because other datetime columns like "Modified" have handled timezone issue very well.
    To reproduce: On a SP2013 farm (on-premise), check your timezone settings (in my environment it is GMT+8). Then create a site collection and enable its Publishing Infrastructure feature. Then you will see some site columns are setup including "Article
    Date" (field name "ArticleStartDate"). Now create a custom content type and add some columns including "Article Date" to it. Create some sample items using the custom content type and remember fill in the value for "Article Date".
    By default it should allow you pick a "Date" only. After save the change you should see "Article Date" is saved like "2014-06-18 00:00:00" if check with powershell.
    After create some sample items start a full crawl. You will see find two crawled property "ows_q_DATE_ArticleStartDate" and "ows_ArticleStartDate" appear in Search Service Application -> Search Schema. There are some existing managed
    properties mapping to those crawled properties like "ArticleStartDateOWSDATE" (which is TEXT datatype).
    Here you can create some new managed property or use existing. Apply search using those properties to test. In my lab, I created "NewsArticleDate" as managed property and mapping to ows_ArticleStartDate. Then I create a blank
    page and add a "Search result" and "refinement panel" webpart and start some search. In the refinement panel added in the managed properties setup in previous steps. In the querystring I typed in something like /search.aspx?k=newsarticledate=YYYY/MM/dd
    It is what I see:
    1. As you can see in the refinement panel, because I am at GMT+8 and crawled index at GMT 0, the sample data "2014-06-18 00:00:00" will become "2014-06-17 16:00:00".
    2. Hence, in order to search out "2014-06-18 00:00:00"  item I have to input "2014-06-17" in search query! (in SP2013 the time part are ignored)
    3. By using the powershell provided by Ivan Josipovic (http://gallery.technet.microsoft.com/office/Get-Crawled-Property-names-9e8fc5e0), I can see the items
    ows_ArticleStartDate is "2014-06-18 00:00:00".
    I hope it is actually not a bug. Please let me know if my setting is wrong. Thank you!

    Hi Mark,
    According to your description, my understanding is that the Article Date column displayed with the value based on GMT0 in the Refinement web part.
    Microsoft SharePoint stores date and time values in Coordinated Universal Time (UTC, but also named GMT or Zulu) format, and almost all date and time values that are returned by members of the object model are in UTC format. So the value
    of the Article Date column stores the date and time in UTC format in the database, and the search indexes the UTC value of the Article Date column after crawling the database so that it displays the UTC value in Refinement web part.
    The list column values displayed in the lists that are obtained through the indexer for the SPListItem class are already formatted in the local time for the site so if you’re working on current context list item and fetch a datetime field
    like so SPContext.Current.ListItem["Your-DateTime-Field"] you’ll retrieve a DateTime object according the specified time zone in the regional settings.
    More references:
    http://francoisverbeeck.wordpress.com/2012/05/24/sharepoint-tip-of-the-day-be-careful-when-wor/
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • Bindings are becoming null

    Hi All,
    I am working in ADF 10.1.3.3 .
    I have a class where I have overridden the Prepare Model method.
    In this I am executing a Query using Iterator Bindings for the VO.
    When the page is loaded Query is executing fine , but when I come from other page to my page, bindings are becoming null.
    What is the solution for this?
    Pls help me.
    Thanks,

    Hi,
    as stated in the developer guide, the binding content is not available between requests, which means that you wont have it available e.g. in a restore view phase
    Frank

  • Calculated Column with Null date end result needs to be text.

    Good Morning,
    I am using SharePoint 2010 and am trying to create a calculated column converting a date/time column to to show just a month and day.  Calculation is
    =TEXT([Anniversary],"m/d")
    This is to enable sorting on the month.  And this works fine except when there is no date entered in the "Anniversary" column.
    I have tried to modify the formula in this column to no avail.  http://social.technet.microsoft.com/Forums/sharepoint/en-US/0c9d5ae1-132a-4e02-8a91-c54708919d9a/show-calculated-date-column-as-null-when-there-is-no-date?forum=sharepointgenerallegacy
    I do not have access to modifying the code so have to work strictly OOB.  Any help would be greatly appreciated.

    I would think you could add an IF statement to verify if the text is null. So...
    =IF(ISNULL(TEXT(Anniversary, "m/d")), What we do when null, TEXT(Anniversary,"m/d"))
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • Sql query slowness due to rank and columns with null values:

        
    Sql query slowness due to rank and columns with null values:
    I have the following table in database with around 10 millions records:
    Declaration:
    create table PropertyOwners (
    [Key] int not null primary key,
    PropertyKey int not null,    
    BoughtDate DateTime,    
    OwnerKey int null,    
    GroupKey int null   
    go
    [Key] is primary key and combination of PropertyKey, BoughtDate, OwnerKey and GroupKey is unique.
    With the following index:
    CREATE NONCLUSTERED INDEX [IX_PropertyOwners] ON [dbo].[PropertyOwners]    
    [PropertyKey] ASC,   
    [BoughtDate] DESC,   
    [OwnerKey] DESC,   
    [GroupKey] DESC   
    go
    Description of the case:
    For single BoughtDate one property can belong to multiple owners or single group, for single record there can either be OwnerKey or GroupKey but not both so one of them will be null for each record. I am trying to retrieve the data from the table using
    following query for the OwnerKey. If there are same property rows for owners and group at the same time than the rows having OwnerKey with be preferred, that is why I am using "OwnerKey desc" in Rank function.
    declare @ownerKey int = 40000   
    select PropertyKey, BoughtDate, OwnerKey, GroupKey   
    from (    
    select PropertyKey, BoughtDate, OwnerKey, GroupKey,       
    RANK() over (partition by PropertyKey order by BoughtDate desc, OwnerKey desc, GroupKey desc) as [Rank]   
    from PropertyOwners   
    ) as result   
    where result.[Rank]=1 and result.[OwnerKey]=@ownerKey
    It is taking 2-3 seconds to get the records which is too slow, similar time it is taking as I try to get the records using the GroupKey. But when I tried to get the records for the PropertyKey with the same query, it is executing in 10 milliseconds.
    May be the slowness is due to as OwnerKey/GroupKey in the table  can be null and sql server in unable to index it. I have also tried to use the Indexed view to pre ranked them but I can't use it in my query as Rank function is not supported in indexed
    view.
    Please note this table is updated once a day and using Sql Server 2008 R2. Any help will be greatly appreciated.

    create table #result (PropertyKey int not null, BoughtDate datetime, OwnerKey int null, GroupKey int null, [Rank] int not null)Create index idx ON #result(OwnerKey ,rnk)
    insert into #result(PropertyKey, BoughtDate, OwnerKey, GroupKey, [Rank])
    select PropertyKey, BoughtDate, OwnerKey, GroupKey,
    RANK() over (partition by PropertyKey order by BoughtDate desc, OwnerKey desc, GroupKey desc) as [Rank]
    from PropertyOwners
    go
    declare @ownerKey int = 1
    select PropertyKey, BoughtDate, OwnerKey, GroupKey
    from #result as result
    where result.[Rank]=1
    and result.[OwnerKey]=@ownerKey
    go
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Data automatically become null in Oracle 11g DB

    We setup an Oracle 11g database for our application. Yesterday I have noted that in a table Contract_Owner the effective date for the owner FQYX1 is 30-Oct-12. But all of a sudden it has become NULL today. Im not sure how it has changed from 30-Oct-12 to NULL.
    Any ideas/thoughts will be appreciated greatly ....
    Edited by: 959598 on Apr 18, 2013 2:03 AM

    Oracle wouldn't change a value to a NULL unless it is told to do so.
    It could have been a user , a developer, a power user / super user.
    It could have been application code.
    It could have been a trigger.
    It could have been a mistakenly-written update.
    It could have been a scheduled job or a one-off job.
    Hemant K Chitale

  • Existing session is becoming null when returning from jsp

    Hi Guys !
    I have an urgent requirement to meet in few days from now and got stuck with session problem in servlet.
    Scenario :-
    For the first time when i call a servlet a new sessoin is created and after some validations i forward to a jsp which has some links.
    I have printed sessoin ids from both the servlet and jsp and they are same.
    Now when i clicked on the link in jsp , the servlet is called but session is lost its becoming null.
    Servlet Code :
    HttpSession session = request.getSession(false);
    if(session ==null){
    // create session code ....using getSession(true)
    RequestDispatcher r = servletcontext.getRequestDispatcher(resp.encodeURL("/user.jsp"));
    jsp code:-
    <a href="<%=response.encodeURL(/application/servlet/ViewUser") %">" > View User </a>
    GUYS GIVE ME A SUGGESTION IN THIS REGARD AS SOON AS POSSIBLE .....
    Thanks in advance !
    Aparna</a>

    Hi,
    Session Create Code in Login file
    HttpSession hs = req.getSession( true );
    hs.setAttribute( "user", lb.getUsername() ); // username() is ur unique id
    Session Tracking code in all file
                   HttpSession hs=request.getSession();
                   if ( hs == null || hs.getAttribute( "user" ) == null )
                        response.sendRedirect ( "./index.jsp" );
    Logout code
    HttpSession hs=req.getSession(false);
                   hs.setAttribute( "user", null );
                   hs.invalidate();
                   res.sendRedirect ( "./index.jsp" );
    // I hope this snippet will help u..

  • Firefox tabs close when I click on a tab and windows become unresponsive after I launch a site. Using latest version for MacOSX. How do I fix this bug? Have already tried a bunch of things.

    Firefox tabs close when I simply click on a tab and windows become unresponsive after I launch a site. I am using the latest version for MacOSX but this happened a couple days ago with an older version of Firefox as well. Is this some kind of bug? How do I fix this bug? Have already tried a bunch of things like clearing/reinstalling etc. This does not help.
    == User Agent ==
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

    You can middle click a link to open that link in a new tab.
    *Open Link in New Tab: https://addons.mozilla.org/firefox/addon/open-link-in-new-tab/
    *Tab Utilities Lite: https://addons.mozilla.org/firefox/addon/tab-utilities-lite/

  • Highlight complete row if one column is null

    Hi,
    i want to highlight a complete row in my publisher report if a certain column of the
    row is empty (no value at all). I already tried to get forward using the examples in the
    XML Publisher developer guide (i checked the samples installed by xml publisher desktop
    as well) but none of them delivered the desired result.
    Any hints are welcome.
    regards
    Thomas

    Hi,
    You can write the following code to highlight a row if a certain column is null:
    <?if@row:COLUMN-NAME=''?><xsl:attribute name="background-color" xdofo:ctx="incontext">red</xsl:attribute><?end if?>
    You can place this code in a text form field and place in the first column after the for-each statement.
    Hope this helps.
    Thanks.

  • Session becoming NULL

    I am working on struts application.
    When we restart Tomcat, it's working fine.
    After few days, session becoming null in particular area of the application. Otherthan that area, application is working fine. If we restart Tomcat, then it's works fine.
    There is no problem with database (MySQL). Previously, we started db with max_allowed_packets=50M as default.
    struts-config.xml contains the following content:
    <data-sources>
          <data-source key = "jdbc/RFS">
             <set-property property = "password" value = "rfs" />
             <set-property property = "minCount" value = "1" />
             <set-property property = "maxCount" value = "50" />
             <set-property property = "user" value = "rfs" />
             <set-property property = "driverClass" value = "com.mysql.jdbc.Driver" />
             <set-property property = "description" value = "" />
             <set-property property = "url" value = "jdbc:mysql://172.23.7.64:3306/rfs" />
             <set-property property = "readOnly" value = "false" />
             <set-property property = "autoCommit" value = "true" />
             <set-property property = "loginTimeout" value = "" />
          </data-source>
          </data-sources>Please let me know the usage of loginTimeout.

    Hi,
    Session Create Code in Login file
    HttpSession hs = req.getSession( true );
    hs.setAttribute( "user", lb.getUsername() ); // username() is ur unique id
    Session Tracking code in all file
                   HttpSession hs=request.getSession();
                   if ( hs == null || hs.getAttribute( "user" ) == null )
                        response.sendRedirect ( "./index.jsp" );
    Logout code
    HttpSession hs=req.getSession(false);
                   hs.setAttribute( "user", null );
                   hs.invalidate();
                   res.sendRedirect ( "./index.jsp" );
    // I hope this snippet will help u..

  • How to take the Average of a DATEDIFF column with NULL values?

    I am building an SSRS report that can display the average of a calculated datediff column in dd/hh/mm format with the following formula:
    =Avg(IIF(Fields!LastCorrectedDate.Value is nothing,0, DATEDIFF("n",cdate(Fields!LastCorrectedDate.Value),cdate(Fields!
    LastSignDate.Value)) \(60*24) & ":" & DATEDIFF("n",cdate(Fields!LastCorrectedDate.Value),cdate(Fields!
    LastSignDate.Value)) mod (60*24)\60  & ":" & DATEDIFF("n",cdate(Fields!LastCorrectedDate.Value),cdate(Fields!
    LastSignDate.Value)) mod (60*24) - (((DATEDIFF("n",cdate(Fields!LastCorrectedDate.Value),cdate(Fields!
    LastSignDate.Value)) mod (60*24))\60)*60) ))
    SSRS does not raise any errors with the formula and I have used the same formula for other columns without issue. I have noticed that this column includes null values which I think may be the problem. When the reports runs, it returns #ERROR on the column
    but does not give a reason why.  I am using SSRS report builder with visual basic logic as opposed to embedding SQL. Any help or feedback would be greatly appreciated.

    Hi No Ragrets,
    According to your description, you want to calculate the average for the date time difference. Right?
    In Reporting Services, Avg() function is only available for numeric values. In this scenario, the DateDiff() function to calculate the minutes difference will return a number. So we can do average calculation based on the return values first. Then we format
    it as a time. We have tested this case in our local environment. Please try the following expression:
    =floor(avg(DateDiff("n",Fields!StartDate.Value,Fields!EndDate.Value))) \(24*60) &":"&
    floor(avg(DateDiff("n",Fields!StartDate.Value,Fields!EndDate.Value))/60 mod 24 )&":"&
    floor(avg(DateDiff("n",Fields!StartDate.Value,Fields!EndDate.Value))) mod 60
    The result looks like below:
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

Maybe you are looking for

  • Can't concatonate more than three items in a portal select statement ?

    I'm running a Report from SQL query as Far as I can tell you can't do; select 'blah1'||name||'blah3'||'blah3' from scott.emp as soon as you put in a 4th item it fails. It also fails using select concat (,) I'm trying to run a report which selects a w

  • How do i change to a pound sign

    i want to change from using my dollar sign to a pound sign- thanks

  • Scratch disk error

    Hi all, An error messages keeps popping up when I open files in photoshop. It says that my scratch disk is full. It even said once that my startup disk is full. I've spent the better part of today troubleshooting, to no avail. From what I understand

  • Dump Analysis: High ITAB-name-numbers - s.th. to worry about?

    Hi Folks, I'm currently involved with a project implementing SAP CRM-Service and while analysing some dumps for error TSV_TNEW_OCCURS_NO_ROLL_MEMORY I noticed that the number of lines in the internal tables wasn't all that high but that the internall

  • Elements 10 and pef files

    I have elements 10 and I was trying to open a .pef file and it could not open.  I tried to reinstall Camera Raw 6.7 and it will not reinstall.  Any suggestions.