Separating DataScroller & DataTable across Frameset

The JDev Code Generators for JSP places the DataScroller in the same virtual plane as the DataTable.
If the DataTable is large the User must scroll the page to see all the data, causing the DataScroller to scroll off page.
I would like to make a minimal change to the generated code to get the effect I want. I made a test harness below from the Order Entry Sample that is provided in the JDev Tutorials. I created a CustomersView1_Browase.html to create a Frameset for the Browse.JSP. I copied the CustomersView1_Browse.jsp to CustomersView1_BrowseB.jsp,
and edited both so that the DataScroller is in a non-scrolling Frame, and the DataTable is in a Scrolling Frame.
The code samples are shown below. They display OK, but the DataScroller does not affect the DataTable.
Is there a way to cause the DataScoller to affect the DataTable even though it is in a different Frame?
CustomersView1_Browse.html:
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
<LINK REL=STYLESHEET TYPE="text/css" HREF="bc4j.css">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</HEAD>
<FRAMESET ROWS="165,*" FRAMESPACING="0" FRAMEBORDER="0" border="false" >
<FRAME SRC="CustomersView1_Browse.jsp" NAME="browseHeadFrame" FRAMEBORDER="0" MARGINHEIGHT="1"
MARGINWIDTH="10" FRAMESPACING="0" SCROLLING="NO">
<FRAME SRC="CustomersView1_BrowseB.jsp" NAME="browseBodyFrame" FRAMEBORDER="0" MARGINHEIGHT="1"
MARGINWIDTH="10" FRAMESPACING="0" SCROLLING="YES">
</FRAMESET>
</HTML>
CustomersView1_Browse.jsp:
<%@ page language="java" errorPage="errorpage.jsp" contentType="text/html;charset=windows-1252" %>
<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<html>
<head>
<META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
<LINK REL=STYLESHEET TYPE="text/css" HREF="bc4j.css">
<TITLE>Browse Form</TITLE>
</head>
<body>
<jbo:ApplicationModule id="Frameset_testModule" definition="JSP.Frameset_testModule" releasemode="Stateful" />
<jbo:DataSource id="ds" appid="Frameset_testModule" viewobject="CustomersView1" rangesize="3" itermode="LastPagePartial"/>
<jbo:DataHandler appid="Frameset_testModule" />
<jbo:DataTransaction appid="Frameset_testModule" />
<h3>CustomersView Browse Form</h3>
<jbo:DataScroller datasource="ds" />
<jbo:ReleasePageResources />
</body>
</html>
CustomersView1_BrowseB.jsp:
<%@ page language="java" errorPage="errorpage.jsp" contentType="text/html;charset=windows-1252" %>
<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<html>
<head>
<META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
<LINK REL=STYLESHEET TYPE="text/css" HREF="bc4j.css">
</head>
<body>
<jbo:ApplicationModule id="Frameset_testModule" definition="JSP.Frameset_testModule" releasemode="Stateful" />
<jbo:DataSource id="ds" appid="Frameset_testModule" viewobject="CustomersView1" rangesize="3" itermode="LastPagePartial"/>
<jbo:DataHandler appid="Frameset_testModule" />
<jbo:DataTable datasource="ds" edittarget="CustomersView1_Edit.jsp"/>
<jbo:ReleasePageResources />
</body>
</html>

I was able to solve the problem by not using the DataScroller Tag. I instead made my own equivalent Navigation Buttons, and directed the navigation state to the proper frame of the frameset using the target parameter on the anchor <a> HTML primitive.
I did not wrap this in it's own DataTag, but that could be done.
CustomersView1_Browse.html
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
<LINK REL=STYLESHEET TYPE="text/css" HREF="bc4j.css">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</HEAD>
<FRAMESET ROWS="150,*" FRAMESPACING="0" FRAMEBORDER="0" border="false" >
<FRAME SRC="CustomersView1_Browse.jsp" NAME="browseHeadFrame" FRAMEBORDER="0" MARGINHEIGHT="1"
MARGINWIDTH="10" FRAMESPACING="0" SCROLLING="NO">
<FRAME SRC="CustomersView1_BrowseB.jsp" NAME="browseBodyFrame" FRAMEBORDER="0" MARGINHEIGHT="1"
MARGINWIDTH="10" FRAMESPACING="0" SCROLLING="YES">
</FRAMESET>
</HTML>
CustomersView1_Browse.jsp
<%@ page language="java" errorPage="errorpage.jsp" contentType="text/html;charset=windows-1252" %>
<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<html>
<head>
<META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
<LINK REL=STYLESHEET TYPE="text/css" HREF="bc4j.css">
<TITLE>Browse Form</TITLE>
</head>
<body>
<jbo:ApplicationModule id="Frameset_testModule" definition="JSP.Frameset_testModule" releasemode="Stateful" />
<jbo:DataSource id="ds" appid="Frameset_testModule" viewobject="CustomersView1" rangesize="3" itermode="LastPagePartial"/>
<jbo:DataHandler appid="Frameset_testModule" />
<jbo:DataTransaction appid="Frameset_testModule" />
<h3>CustomersView Browse Form</h3>
<style type="text/css">
H6 {
color:red; background-color: #00C0C0;
font-family: monospace; font-weight: bold; font-size: 12pt;
border: thin; border-color: black
</style>
<!--jbo:DataScroller datasource="ds" /-->
<table><tr>
<td><h6>&amp;lt;&amp;lt;</h6></td>
<td><h6>&amp;lt;&amp;&#035;151</h6></td>
<td><h6>;&#035;151>&amp;gt;</h6></td>
<td><h6>&amp;gt;&amp;gt;</h6></td>
</tr></table>
<!-- WOULD ALSO NEED TO PUT IN SOMETHING FOR A "GOTO" CAPABILITY -->
<jbo:ReleasePageResources />
</body>
</html>
CustomersView1_BrowseB.jsp
<%@ page language="java" errorPage="errorpage.jsp" contentType="text/html;charset=windows-1252" %>
<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<html>
<head>
<META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
<LINK REL=STYLESHEET TYPE="text/css" HREF="bc4j.css">
</head>
<body>
<jbo:ApplicationModule id="Frameset_testModule" definition="JSP.Frameset_testModule" releasemode="Stateful" />
<jbo:DataSource id="ds" appid="Frameset_testModule" viewobject="CustomersView1" rangesize="3" itermode="LastPagePartial"/>
<jbo:DataHandler appid="Frameset_testModule" />
<%
String raw = request.getParameter("NAV"); String nav = raw; String navset = "FirstSet";
if (nav == null) nav = "First";
navset = nav + "Set";
%>
<!-- |<%=raw%>|-|<%=nav%>|-|<%=navset%>| <!-- DEBUG INFO DISPLAY -->
<jbo:RowsetNavigate datasource="ds" action="<%=navset%>" />
<jbo:DataTable datasource="ds" edittarget="CustomersView1_Edit.jsp"/>
<jbo:ReleasePageResources />
</body>
</html>

Similar Messages

  • I downloaded a season of a TV show on my ipad and 5 of the episodes wont download-when I try to download them-Ipad comes across w/ message-"you may not redownload this episode"

    I downloaded the season of a TV show on my ipad-there are 5 of the episodes that wont download.  When I try to down load them separately-it come across with message (you may not redownload this). 

    Anyone????

  • DEFECT: (Serious!) Truncates display of data in multi-byte environment

    I have an oracle 10g database set up with the following nls parameters:
    NLS_CALENDAR      GREGORIAN
    NLS_CHARACTERSET      AL32UTF8
    NLS_COMP      LINGUISTIC
    NLS_CURRENCY      $
    NLS_DATE_FORMAT      DD-MON-YYYY
    NLS_DATE_LANGUAGE      AMERICAN
    NLS_DUAL_CURRENCY      $
    NLS_ISO_CURRENCY      AMERICA
    NLS_LANGUAGE      AMERICAN
    NLS_LENGTH_SEMANTICS      CHAR
    NLS_NCHAR_CHARACTERSET      UTF8
    NLS_NCHAR_CONV_EXCP      TRUE
    NLS_NUMERIC_CHARACTERS      .,
    NLS_RDBMS_VERSION      10.2.0.3.0
    NLS_SORT BINARY
    NLS_TERRITORY      AMERICA
    NLS_TIMESTAMP_FORMAT      DD-MON-RR HH.MI.SSXFF AM
    NLS_TIMESTAMP_TZ_FORMAT      DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_TIME_FORMAT      HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT      HH.MI.SSXFF AM TZR
    I am querying a view in sqlserver 2000 via an odbc database link.
    When I query a 26 character wide column in the view in sql developer, it will only return up to 13 characters of the data.
    When I query the exact same view in the exact same sql server database from the extact same oracle database using the exact same odbc database link using sql navigator, I get the full 26 characters worth of data.
    It also works just fine from the sql command line tool from 10g express.
    Apparently, sql developer is confused about how to handle multi-byte data. If you ask it the length of the data in the column, it will tell you 26, but it will only show you 13.
    I have found a VERY PAINFUL work around, to do a cast(column_name as varchar2(26) when I query it. But I've got hundreds of views and queries...

    In all other respects, the settings I have appear to be working correctly.
    I can enter multi-byte characters into the sql worksheet to create a package, save it, and re-open the package with the multi-byte characters still visible.
    I'm using a fallback directory for my jdk with the correct font installed, so I can see and edit multi-byte data in the data grids.
    In this case, I noticed the problem on a column that only contains the standard ascii letters and digits.
    Environment->Encoding = UTF-16
    All the fonts are set to a font that properly displays western and ge'ez characters. The font has been in use for years, and is working correctly in all other circumstances.
    The Database->NLS Parameters tab under sql developer preferences shows:
    language: American
    territory : American
    sort: binary
    comp: binary
    length: char (I've also tried byte)
    If there are other settings that you think might be relevant, please let me know.
    I've done some more testing. I created an oracle table with a single column and did an insert into ... select from statement across the database link. The correct, full-length data appeared in the oracle table.
    So, it's not a matter of whether the data is being returned or not, it is. It is simply not being displayed correctly. It appears that sql developer is making some unwarranted decisions about the datatable across the database link when it decides to display the data, because sql plus and sql navigator have no such issues.
    This is really a very serious problem, because if I cannot trust the data the tool shows me, I cannot trust the tool.
    It is also an invitation to make an error based upon the erroneous data display.

  • IPod classic fails to sync some tracks from iTunes

    I use an iPod Classic 160 GB with iTunes. Both are fully up to date. Every time I sync with iTunes roughly 500 of 5000 odd tracks fail to sync. This number fluctuates, but stays around the 500 mark. iTunes does not recognise this problem - it claims to have synced completely. It is only when I go through certain Albums I notice that some tracks are missing. It tends to affect the same artists, but different songs are missing within any given Album each time. (ie: a song may appear on the iPod one try, then be gone the next.)
    All my tracks are either AAC audio file or MPEG audio file. The problem seems to affect them irrespective of kind.
    There is plenty of space on the iPod, with over 100 GB free.
    I have tried Retry, Reset, Restart, Reinstall, Restore - all multiple times, with no result. I have tried syncing auto and manually, and wiping both iTunes and iPod every way I can think of. Still, when I sync, the problem remains.
    This problem is driving me crazy, especially since I can find no cause, and no applicable advice on forums. I have searched Help forums for answers, but everything that comes up either doesn't match or I have already tried with no result.
    Please help.
    If I need to give more detail for an accurate diagnosis please let me know.
    I will be eternally greatful to anyone who can help.
    Thank you, Jonny.

    I'm also having the same issue.  I have recently had to get rid of my old PC that my ipod was synced to and so have now had to sync my ipod to my new laptop.  The problem started as soon as I did this - at first it was saying that my laptop wasn't authorised in the itunes store, but it is and I have reconfirmed this.  All of my music was copied across from old computer but there are around 2000 songs not syncing.  If anyone can help it would be hugely appreciated, it's driving me mad! One other thing is that I went to download all of my previous itunes purchases to this laptop but only 3 of them actually downloaded - I had separately copied them across from my old computer anyway but wanted to keep the list of my purchases - when I go into my account it thinks I have downloaded everything so won't let me do it again.  I'm assuming both problems relate in some way to the new machine, but I don't know why.

  • How to delete junk mail without opening first?

    How can I delete all junk messages without opening each one separely?

    Swipe across the email in the preview window to bring up a red delete button. But you still have to do this one at a time.

  • Pop Up Menu Doesn't Appear

    Hi, I put together a navbar in Fireworks and added a 6 item
    vertical pop up menu to one of the buttons. I used the advice from
    http://www.adobe.com/devnet/fireworks/articles/fw8_popups.html
    I did it once and it worked fine, then had to redo it in
    Fireworks and re-exported it to DW based on the instructions above.
    Now the pop up menu won't appear when I preview the revised webpage
    that includes the new navbar. When I preview the navbar in
    Fireworks or DW everything's fine so I seem to have built it
    correctly in FW. The problem seems to just be when I add it into
    the webpage in DW. I'm using Insert > Image Objects >
    Fireworks HTML and select the htm file that was created by the
    export but it won't work!! I get the proper rollovers for all the
    buttons but not for the one with the pop up and no pop ups at all.
    Also, when I insert it into the webpage in DW design view I get the
    buttons randomly separated by spaces across the cell (but the
    positioning is fine when previewed) and all of the pop up submenu
    items appear below it as name anchors.
    Anyone have any tips?

    Show us your page. My article just didn't go far enough to
    warn people not
    to use these menus....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "maitlandclark" <[email protected]> wrote in
    message
    news:epj6m2$kni$[email protected]..
    > Hi, I put together a navbar in Fireworks and added a 6
    item vertical pop
    > up
    > menu to one of the buttons. I used the advice from
    >
    http://www.adobe.com/devnet/fireworks/articles/fw8_popups.html
    >
    > I did it once and it worked fine, then had to redo it in
    Fireworks and
    > re-exported it to DW based on the instructions above.
    Now the pop up menu
    > won't
    > appear when I preview the revised webpage that includes
    the new navbar.
    > When I
    > preview the navbar in Fireworks or DW everything's fine
    so I seem to have
    > built
    > it correctly in FW. The problem seems to just be when I
    add it into the
    > webpage
    > in DW. I'm using Insert > Image Objects >
    Fireworks HTML and select the
    > htm
    > file that was created by the export but it won't work!!
    I get the proper
    > rollovers for all the buttons but not for the one with
    the pop up and no
    > pop
    > ups at all. Also, when I insert it into the webpage in
    DW design view I
    > get the
    > buttons randomly separated by spaces across the cell
    (but the positioning
    > is
    > fine when previewed) and all of the pop up submenu items
    appear below it
    > as
    > name anchors.
    >
    > Anyone have any tips?
    >
    >
    >
    >
    >

  • Upgrade Plan - Web Shop - NWDI

    Hi Experts,
    My customer has planned to upgrade their portal from version 7.01 to 7.02 SPS4. They have four environments namely Dev, Quality, Acceptance & Production. They plan to upgrade Dev first, followed by Acceptance & then Production. (Quality is kept as it is for incident mitigation till Production is patched)
    The portal is effectively an e-commerce portal which has both portal components & Web shop deployed on it. The Web Shop code is hosted on NWDI which is configured to build the Dev server once the code is checked in.
    Now these are my questions:
    1. Lets say that while Dev is being upgraded, we need to fix a critical incident involving web shop code. Can we configure NWDI to build Quality rather than Dev. The current setup is that transports need to be done sequentially i.e. D->Q->A->P.
    And even if build fails in Quality, can i directly configure NWDI to point to production and do the build there?
    2. Is it possible to register the same instance multiple times (say quality instance)under 'target instance'. Will this help me at all?
    Regards,
    Ramanathan Palaniappan

    Hi Ramanathan,
    First of all let me make one thing clear.
    No matter how many Runtime systems you have in your landscape (In your case D->Q->A->P), your NWDI usage type or instance, whether it is hosted on your Development Server or some different host separately is common across these systems.
    To give you more clarity you need to understand the following concepts.
    1) Your Landscape consists D->Q->A->P.
    2) Here, lets assume that NWDI is running on your Development Server D.
    3) That means all the 3 pillars (DTR, CBS & CMS) of NWDI are present in Dev host.
    4) Now, Suppose are maintaining a Track named "Track-A"
    5) Whatever developments that are carried out (Source Code Modification) specific to "Track-A" are available in the DTR-Server present Dev Host only.
    6) So, the Build process is also specific to Development Host ONLY
    7) You cannot use terms like "Can we configure NWDI to build Quality rather than Dev", it simply doesn't make sense.
    OK, so far so good.
    Lets move further ahead.
    There's a big difference between Build process and Deploy Process.
    1) When you create a Track, you need to define the Runtime Systems of your Track.
    2) When you define runtime systems, your purpose is to provide information to the CMS about--> to which all systems you will be DEPLOYING your Compiled Source Code (Which is in the form .SCA that is created as an output in Assembly step) 
    3) Build Process as explained above happens only on Development Host in Development Buildspace and Consolidation Buildspace of your Track.
    You can also refer to the thread where i have explains step-by-step process about what happens under the hood in NWDI
    Re: Comparing records in Update Rules
    Now, if you meant to configure NWDI to point Quality rather than Dev in terms of Deployment only then Yes, It is very much possible.
    Follow the below mentioned procedure...
    1) Open the CMS Web UI >> Landscape Configurator >> Track Data >> Runtime Systems
    2) Here, you can configure your runtime system as you wish.
    3) For Example if you want to skip the deployment into Quality and directly deploy in production then you can uncheck the "Test" from Selected Runtime Systems.
    After you modify the setting in Runtime systems in Landscape configurator, then relevant changes will be reflected in the Transport Studio of your track. Considering the above example The "Test" tab will not be available.
    I hope my inputs will help you resolve your query.
    Regards,
    Shreyas Pandya

  • Next-Previous Do not work Properly for lengthly dynamic Where Clause

    I have created a View object using Expert Query mode
    with following Query:
    SELECT LIC_SYS_ID,
    LIC_NAME,
    TERRITORIES,
    LANGUAGES,
    MEDIA,
    SEGMENT_NAME,
    CHANNELS,
    ACTIVITY_CD,
    LS.LIC_SHORT_NAME,
    LS.LIC_AKA_NAME
    FROM V_LICENSEE_SEARCH LS
    ORDER BY LIC_NAME
    Then at run time the following Where Clause staments get added by in JSP based on the users criteria
    wClause = "(ACTIVITY_CD = '" + activityStatus + "')"
    + " AND " +
    "(LIC_NAME like '" + licenseeName + "%' OR " +
    " LIC_SHORT_NAME like '" + licenseeName + "%' OR " +
    " LIC_AKA_NAME like '" + licenseeName + "%' ) "
    In this case the DataScroller does not work properly It DataTable traves only one setp when I click the "Next" link, But if I use the Drop down list of the Scroller its works fine.
    Secondly the "Next" "Previous" links of the DataScroller work fine if I use only one stmt in the WhereClause ex: "ACTIVITY_CD LIKE 'A%'".
    Can anybody help me with this, Is this a limitation of DataScroller/DataTable/DataSource tags why does it not work??
    Please help me its urgent.
    Thanks a ton !!

    Thx for the reply, I did try your suggestion It did not throw any exception. Here is the log messages after enabling jbo Debug.
    [391] Reusing a cached session application module instance
    [392] Getting a connection for internal use...
    [393] Creating internal connection...
    [394] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
    wClause : (ACTIVITY_CD = 'A') AND (LIC_NAME like 'A%' OR LIC_SHORT_NAME like 'A%' OR LIC_AKA_NAME like 'A%' )
    [395] Column count: 10
    [396] ViewObject : Reusing defined prepared Statement
    [397] $$added root$$ id=-2
    [398] Application Module failover is enabled
    [399] Getting a connection for internal use...
    [400] Creating internal connection...
    [401] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
    [402] <AM MomVer="0">
    <cd/>
    <VO>
    <VO Sz="8" St="8" Def="com.sophoi.ipls.media.tv.businessentities.licensee.LicenseeView" Name="licenseeView">
    <Wh>
    <![CDATA[(ACTIVITY_CD = 'A') AND (LIC_NAME like 'A%' OR  LIC_SHORT_NAME like 'A%' OR  LIC_AKA_NAME  like 'A%' )]]>
    </Wh>
    <Or>
    <![CDATA[LIC_NAME ASC]]>
    </Or>
    </VO>
    </VO>
    </AM>Long postings are being truncated to ~1 kB at this time.

  • What is the best workflow to duplicate adjustments across many clips and export them separately?

    Hi,
    I'm pretty new at this. I have 30 or so clips comprising about 90 min of HD AVCHD video. I'd like to adjust color and lighting and export them separately as max quality MP4s(h.264). In terms of PE, no real fancyeffects, the adjustments panel meets my needs. I plan to apply the same adjustments to each clip at least as a starting point. I own Adobe the Elements Family ver 12 (Premiere, Photoshop, and Organizer) and LightRoom. Can you advise me on what the most expeditious workflow would be?
    I'm not sure about any of this but here is my thinking so far:
    Premiere Elements:
    Pro:  Offers good adjustment control.
    Con: I'm thinking adjustments only apply to clips on the timeline or storyboard. If I remove the clip from the time line, adjustments won't stick in the assets panel. Export, exports everything on the time line. I'd have to go through the adjustment and export process individually for each clip. Not sure if I can save a development preset?
    Elements Organizer:
    Pro:  Can work with and export clips as separate files. Adjustments can be duplicated across clips(?).
    Con:  Not as many adjustment controls as Premiere Elements.
    LightRoom:
    Pro:  Can work with and export clips as separate files. Adjustments can be duplicated across clips.
    Con: Not sure if it has as many adjustment controls as Premiere Elements or not. Any others?
    Looking forward to hearing your thoughts.
    BillyB

    I've had a few awarenesses since writing this post. Thought I'd write them up before a generous soul spent time answering my above question.
    It has become evident to me that I should be using one of the databases to accomplish this task rather than the video editor. ie EO or LR rather than PrEl. (I started with PrEl, therefore my confusion.)
    Organizer vs. LR is a question that I brought up before with lot's of helpful replies. No need to repeat all that. I guess one remaining question that would be helpful to know, however, is which library has superior video editing for a single video and for application of edits across multiple videos, Elements Organizer or LightRoom?
    thanks for reading!
    BillyB

  • Datascroller working with dataDefinitionList/datatable issue

    Hi
    I used the datascroller in conjunction with the dataDefintionList to achieve pagination for search results.
    If I search for an item which has 10 pages of results, clicking on page 1,2,...,10 works fine. However, if I click on *>>* it loads page 7 of the search results. However, the *>>* control works perfect after this. I am wondering if anyone else has come upon this.
    I have also noted this behavior using the datascroller in conjunction with a datatable. Like I say, the *>>* control works fine after the first usage. Why it jumps to page 7(generally) on the first usage of it I don't know.
    Thanks
    Joe
    <rich:datascroller for="calendarEntries"
         binding="#{calendarController.dataScroller}"
         maxPages="#{calendarController.maxPages}" fastControls="show"
         pagesVar="#{calendarController.pageCount}"
         pageIndexVar="pageIndex" pages="page"
         page="#{calendarController.currentPage}" boundaryControls="show"
         renderIfSinglePage="false" reRender="tableDisplayMode"
         tableStyleClass="dataScroller" selectedStyleClass="active"
         inactiveStyleClass="inActive"
         actionListener="#{calendarController.viewPageActionListener}">
    </rich:datascroller>
    <rich:datascroller for="listDisplayMode"
         maxPages="#{searchController.maxPages}"
         fastControls="show"
         pagesVar="#{searchController.pageCount}"
         pageIndexVar="pageIndex"
         pages="page"
         page="#{searchController.currentPage}"
         boundaryControls="show"
         renderIfSinglePage="false"
         reRender="listDisplayMode"
         tableStyleClass="dataScroller"
         selectedStyleClass="active"
         inactiveStyleClass="inActive"
         actionListener="#{searchController.viewPageActionListener}"
         rendered="#{searchController.searchReturned and sessionController.listDisplayMode}">
    </rich:datascroller>

    Hi,
    I have find the way.
    We should use
                                <f:verbatim>
                                    <br />
                                </f:verbatim>here is the example
    <h:column binding="#{general$Job_Details.column4}" id="column4">
                                <h:outputText binding="#{general$Job_Details.outputText7}" id="outputText7" value="Low Bid : #{currentRow['LOW_BID']}"/>
                                <f:verbatim>
                                    <br />
                                </f:verbatim>
                                <h:outputText binding="#{general$Job_Details.outputText9}" id="outputText9" value="High Bid : #{currentRow['HIGH_BID']}"/>
                                <f:verbatim>
                                    <br />
                                </f:verbatim>
                                <h:outputText binding="#{general$Job_Details.outputText13}" id="outputText13" value="Bid Count : #{currentRow['BID_COUNT']}"/>
                                <f:facet name="header">
                                    <h:outputText binding="#{general$Job_Details.outputText8}" id="outputText8" value="Bid Status"/>
                                </f:facet>
                            </h:column>Regards
    Sudhakar

  • Editable datatable field validation when using datascroller pagination

    Hi,
    Im using tomahawk-1.1.8 and myfaces-api-1.2.6 I have an editable datatable with each rows having the following set of fields
    selectBooleanCheckBox , three selectOneMenus , three outputTexts, three inputTexts
    There will be close to 200 rows in the table so im using t:dataScroller to paginate the datatable.
    The following are my requirements
    1     All elements of the form except the selectBooleanCheckbox must be disabled on load of the page.
    2     On clicking on the boolean check box the corresponding rows must be enabled.
    3     I should be able to extract only the selected row in the bean side to perform some action and finally save it in the database.
    4     On submit of the page I should validate the following.
    a. at least one check box is selected
    b. Whether all the three intputTexts in the row have values and must also verify if they have valid values.
    c. Rows which are not selected (using check box) need not be considered for validation
    d. if any invalid data is found appropriate error message must be thrown and that particular element should be given the focus
    On seeing the requirement I felt it’s better to use Javascript to enable/disable controls and to validate data. Everything works fine if I have all the controls in a single page. But since I have server side pagenation enabled (using datascroller) I’m able to access only the current page form elements from javascript. In shot I’m able to access only the elements which are in the page from where I click on submit.But the user may change data in several pages and finally submit.
         This leads me to a situation where validation can be done using JSF only. I’m ok to do validations in JSF using a custom validator .But certain things like enabling or disabling controls on the form and the onLoad behavior can be coded using javascript only. This is because if I set the values such as disabled=”true” on the jsf inputText tag itself it is taking effect every time I move out and come back to the same page.
    I’m new to JSF . Can someone assist me in this. It’s pretty URGENT….
    Thanks,
    Swami

    Hi,
    Thanks for your quick response. I tried setting the disabled attribued based on you suggestion . But the enabling/disabling will not be immediate. I will have to go to some other page and come back to the first page to see the change in state.
    For eg:
    a. I defaulted the 'selected' attribute of bean to 'false' .So all rows loaded in disabled state as expected.
    b. Now if i check the check box other dependant fields will not be enabled immediately . I will have to move do different page and come back to current page for seeing the controls in enabled status.
    To overcome this problem i wrote some javascript function to set the selected rows elements' disabled property to false. I wrote something like the following for every element in the data row . After this the fields got enabled immediately on selecting check box
    document.getElementById("<form name>:<data table name>:"+rowIndex+":<element name1>").disabled=false;
    document.getElementById("<form name>:<data table name>:"+rowIndex+":<element nameN>").disabled=false;
    But now there is one more problem
    1. The page loads with all elements disabled.
    2. I click on the select box and javascript enables the controls on the row (in page 1)
    3. I change a value in a text box in the enabled row and move to page 2.
    4. Come back to page 1 and see the new value of text box not being retained.
    5. I change the value in the same text box again and move to page 2 .
    6. Come back to page 1 and see the new value getting retained.
    After some initial analysis i found that the the change in value of a form element (text box in this example) which is in disabled status will not be updated in the backing bean on page submit i.e the setter methods will not be called for these elements .Though i enabled it using javascript its actuallly still disabled accoring to the bean attributes.
    So in step 3 of the above example the setter methods are not getting called since the field is disabled according to bean. On the contrary , in step 5 the setter methods are getting called when moving to page 2 since the state is enabled according to bean.
    Problem  2
    I have a column containg two elements out of which one can be present based on the value of another selectOneBox in the same row.In the below example based on value of 'type' ,either 'station' or 'period' should be displayed.
    I have set display style as none in station assuming that zone should be displayed on page load.
    style="display:none" This is causing problem when i navigate accross pages. When i go to a different page and come back then the zone is getting displayed irrespective of the value of type. This is because the page is rendered again with the default values.
    <t:column>
    <f:facet name="header">
    <t:outputText value="type" />
    </f:facet>
    <h:selectOneMenu
    id="type"
    value="#{row.typeIndex}"
    onchange="fnHideControls('#{rowIndex}'); return false;"  disabled="#{!(row.selected)}">
    <f:selectItems
    value="#{bean.lstType}" />
    </h:selectOneMenu>
    </t:column>     
    <t:column>
    <f:facet name="header">
    <t:outputText value="Station/Period" />
    </f:facet>
    <h:selectOneMenu
    id="Station"
    value="#{row.stationIndex}"
    style="display:none" disabled="#{!(row.selected)}">
    <f:selectItems
    value="#{bean.lstStation}"  />
    </h:selectOneMenu>
    <h:selectOneMenu
    id="period"
    value="#{row.periodIndex}"
    disabled="#{!(row.selected)}" >
    <f:selectItems
    value="#{bean.lstPeriod}" />
    </h:selectOneMenu>
    </t:column>Can you help me out with both these problems.
    Thanks,
    Swami.

  • DataScroller with dataTable

    Hi
    I have a dataScroller to display rows with a select component. The problem I am facing is the datascroller is not binding the selection. My backing bean has no binding for the select component as there could be hundreds of them. Could someone please suggest a way to resolve this?
    Thanks
    Murthy
    Backing bean
    package com.xxx.application.login.utils.helpers;
    import java.util.*;
    import javax.faces.context.FacesContext;
    import com.xxx.application.login.utils.helpers.GroupPermissionsHelper;
    public class GroupPermissionsBean {
         int noOfPermissions=0;
    public GroupPermissionsBean() {
         System.out.println("In group permissions bean constructor");
    public List getGroupsList() {
              System.out.println("in group permissions bean get options");
              List options=new ArrayList();
              Map m=  FacesContext.getCurrentInstance().getExternalContext().getSessionMap();
              String pickOpts=(String)m.get("picklist");
              System.out.println(" picklist=" + pickOpts);
              if (pickOpts != null) {
                   String [] opts_arr = pickOpts.split(",");
                   for(int i=0; i < opts_arr.length; i++) {
                        opts_arr=opts_arr[i].trim();
                        if (opts_arr[i].equals("")) continue;
                        String pid="";
                        if (opts_arr[i].indexOf("(") > -1) {
                             pid=opts_arr[i].substring(0, opts_arr[i].indexOf("("));
                        GroupPermissionsHelper gph=new GroupPermissionsHelper(opts_arr[i], pid);
                        options.add(gph);
                        System.out.println("added option=" + opts_arr[i]);
              noOfPermissions=options.size();
              System.out.println("*********nof permissons=" + noOfPermissions);
              return options;
    public int getNoOfPermissions() {
              return noOfPermissions;
    public List getSomeList() {
         List options=new ArrayList();
         options.add("a");
         options.add("b");
         options.add("c");
         noOfPermissions=options.size();
         return options;
    }//class
    Data table component
    <h:dataTable value="#{groupPermissionsBean.groupsList}" var="group" bgcolor="#D8EFE0" width="100%"   id="permissionsTable"
    headerClass="dataTableHeader" rowClasses="dataTableRowWhite, dataTableRowAdbeda"
    columnClasses="captionColumn, valueColumn" rows="2" >
            <h:column>
         <f:facet name="header">
         <h:outputText value="Groups"/>
         </f:facet>
                     <h:outputText value="#{group.partID} " style="font-family: Ariel, Helvetica, sans-serif;font-size: 9pt;"  />
           </h:column>
             <h:column>
         <f:facet name="header">
         <h:outputText value="Permissions"/>
         </f:facet>
                     <h:selectOneMenu id="permselect" title="Select any one in this menu"  >
         <f:selectItem itemLabel="SELECT" itemValue="" />
            <f:selectItem itemLabel="ADMIN" itemValue="ALL:#{group.fullID}" />
         <f:selectItem  itemLabel="VIEW" itemValue="VIEW:#{group.fullID}"  />
         <f:selectItem itemLabel="NONE" itemValue="NONE:#{group.fullID}" />
            </h:selectOneMenu>
              </h:column>
      </h:dataTable>
    Scroller code
    <t:dataScroller id="dataScroller"
                        for="permissionsTable"
                        pageCountVar="pageCount"
                        pageIndexVar="pageIndex"
                        styleClass="tblHeaders"
                        paginator="true"
                        paginatorMaxPages="10"
                        paginatorTableClass="tblContent"
                        paginatorActiveColumnStyle="font-weight:bold;"
                     rendered = "#{groupPermissionsBean.noOfPermissions > 2}"
                   >
                          <f:facet name="previous">
                     <h:graphicImage url="#{bundle.PaginatorPrevImg}" rendered="#{pageIndex != 1}" style="border-color: transparent; border: 0;"   />
                     </f:facet>
                      <f:facet name="next">
                      <h:graphicImage url="#{bundle.PaginatorNextImg}" rendered="#{pageIndex < pageCount}" style="border-color: transparent; border: 0;"   />
                      </f:facet>
    </t:dataScroller>

    To add some info: The dataTable component generates rows with some text and a select component. I have a submit button that
    calls an action method.
    What's happening now is...the rows appear alright. But each set of rows takes a round trip to the Jboss server. As a result,
    when the submit button is clicked, only the rows in the view are submitted.
    Without the scroller, I'd have all the rows in one page and the validation is done with Javascript.
    With the scroller in place, the rows are displayed correctly, the selection of the selection component is done right, but
    only the rows in the current page are validated.
    I'd appreciate your help
    Thanks
    Murthy

  • Using a4j to load a rich:dataTable after the page loads

    I have a rich:dataTable that calls a session bean which executes an SQL query to generate the data to be displayed in the table. Something simple like:
    <rich:dataTable rowClasses="evenRow,oddRow"
    rows="30"
    value="#{Bean.items}"
    var="items">
    where Bean.getItems() performs an SQL query and returns List<Item>.
    The problem is that the query takes a long time to execute (~45 seconds) and I'd like the page to initially load while the query is being executed, displaying a spinner while it loads. Once the query is done, I'd like to update the initially empty table using ajax.
    I set up a spinner using a4j:status and it works fine after the page initially loads (using a rich:datascroller).
    However, the page will not initially load until the query completes, which is a problem because the query is so slow. What happens is the user clicks on the "List Items" tab from my site's homepage, sits there on the same page for 45 seconds with absolutely no visual indication that anything is happening, and then finally is taken to the list of items page.
    What is needed to make the dataTable load via AJAX the first time, as well as all subsequent times?
    Thanks!
    Edited by: rcrowell on Sep 8, 2008 5:42 PM

    rcrowell wrote:
    The issue isn't the PK of the table; the query is joining across many tables and aggregating data from one table in particular with millions of rows. The table has paging, but again that won't help the timinig issues due to the aggregation that must be performed on a large table.
    Surely there must be a way to get the dataTable to always load its data via ajax, and not only after the first time.Well JSF does not have AJAX built-in, so why would there be? Perhaps one of the AJAX-based frameworks has this. I imagine it wouldn't be hard to do with the existing AJAX frameworks even without a built-in component specifically for it. Trigger an AJAX action on load which rerenders a panel which will only contain the dataTable upon the rerendering.
    >
    I think I could do it by adding a 'dataTableRendered' variable to the bean and using a jsFunction to set this variable to True when the page loads, but I'm looking for a better way. (I'm also not 100% sure this would do what I want.)

  • APO gATP vs R/3 ATP - To check sales order ATP across multiple plants

    Hi There,
    I am trying to evaluate gATP functionality for SD sales orders.
    The primary requirement is to have sales order ATP checking take place across multiple plants.
    E.G.
    Sales order line is entered for qty 100
    60 is available in plant A, 40 is available in plant B
    System checks both plants and creates 2 lines - one for delivery from plant A and one for delivery from plant B
    (we are currently heading down the road of writing ABAP to do this 'multi-plant' check in R/3 but the more complex the requirements get the more interested I am in understanding more about APO/gATP)
    I would like to understand the benefit of implementing APO / gATP as opposed to using standard R/3 ATP and perhaps writing custom ABAP code to search for inventory across multiple plants.
    I would appreciate any insight regarding what is required to setp gATP to perform such checking and any other feedback regarding this issue - especially if you have had to implement something similar at your company.
    I have looked here but not much clear help:
    http://help.sap.com/saphelp_scm50/helpdata/en/26/c2d63b18bc7e7fe10000000a114084/frameset.htm
    Thanks,
    Niall

    Hi Niall
    you are probably looking at RBATP (Rule based ATP). Look at transaction /sapapo/rba04 in APO where you develop your own location and product substitution rules. Going down an ABAP road in R/3 may work short-term but not long-term as the requirements may get more complex.
    Regards
    Srinivas

  • "Example on reading combined signals from a serial port and separating them for display purposes". I am a beginner in Labview and would appreciate if anyone help with that

    I am working on a wireless vital sign monitor. I have 3 signals; heart rate and temperature. I filter and amplify the signals before converting them into digital form. I then pass them via MAX232 before passing them to RS232 serial cable.
    I am therefore working on a program to receive the combined signal and separate them.
    I have come across serial read and write examples on ni.com but am looking for one where I can actually separate combined signals and display them separately.

    Reading the serial port will give you a string. How you divide the channels depends on how the data was formatted before it was sent over the serial channel.
    If you are designing the instrument, as it seems from your query, then you can set up any form you wish. If your data is always floating point numeric, you could use space or tab characters to separate data words. You could use and XML format. If the instrument is provided by a vendor, contact them for the protocol.
    If tabs are used between words and returns between sets of readings, the resutlant string can be interpretted by the Spreadsheet String to Array function in LV.
    Things to avoid are characters often used by serial communications systems as control characters. Carraige returns are
    often used as command terminators by serial protocols, but may also be used by the port.
    Lynn

Maybe you are looking for

  • Excise duty difference in VF02 and J1iin

    Hi Experts, We are getting Excise duty values difference in VF02 and J1IIN.We are getting this error for few cases only, and it is not specific to sales org or document type.We are not able to regenerate the same case in development as it is exceptio

  • Opinions Needed

    hi i would like everyone to give feedback on what i have so far. what do you think of the colors used? the site isnt done yet because waiting on the updated info. here is the link to the new site i redid so far. - http://www.geocities.com/mrnitemare0

  • Wage type model in 0008 not invoked in HR_INFOTYPE_OPEARATION

    Hi, I am using HR_INFOTYPE_OPEARATION to insert a new record in IT 0008. I am giving the required fields and wagetypes and their amounts. I am testing in dialog mode = '2', but the screen is not getting all the wage types as i do get in PA30. Is it p

  • Validating APO temporary quantity assignments using ABAP program

    Greetings I expect I need assistance with tracing task handlers and transaction GUIDs. I have been looking at creating a program for checking the consistency of the temporary quantity assignments in APO.  When documents such as sales orders are creat

  • SAP LDAP connection

    Dear all, One of our outsource Basis consultant recommends to configure the As ABAP system to LDAP directory. When we configured LDAP, could we maintain the users in the transaction SU01? or SAP trusts the LDAP user management therefore the user cann