To disable the horizontal scrollbar and to create a next button to navigate

To disable the horizontal scrollbar and to create a next button to navigate through the records. At present I create a JSF page and drag and drop my table view and then using the Tuning property I have limited the number of records to be shown. But I need to add a button and then code it to display the next few records. Can someone kindly suggest a suitable mechanism to get this accomplished.
Edited by: 888970 on Oct 2, 2011 10:15 PM

Hi Erp,
At present these are the entries that I have in my JSPX page.
I have a Table, Iterator and a Input List of Values. As per the scenario, I want a few rows to appear on the table for which I wanted to disable the horizontal scroll bar and then once I click on the list of values it must prompt me with the remaining page numbers.
Earlier there are about 150 records in the table. I want to show them as 15 per page.
For which I have added the Iterator and a LOV component code in my JSPX page.
<af:iterator id="i1"
value="#{bindings.NsEventDetailsView1.collectionModel}"
var="row"
binding="#{pageFlowScope.testPageBean.myIterator}"/>
<af:inputListOfValues label="Label 1"
popupTitle="Search and Result Dialog" id="ilov1"/>
Then I created the bean class as per the example.
Below is the bean class:
import javax.faces.event.ValueChangeEvent;
import oracle.adf.view.rich.context.AdfFacesContext;
import org.apache.myfaces.trinidad.component.UIXIterator;
import org.apache.myfaces.trinidad.event.AttributeChangeEvent;
public class TestPagebean {
public TestPagebean() {
public void i1ov1_valueChangeListener(ValueChangeEvent valueChangeEvent) {
// Add event code here...
private UIXIterator myiter;
public void setI1(UIXIterator myiter) {
this.myiter=myiter;
public UIXIterator getmyiter() {
this.myiter=myiter;
public UIXIterator setmyiter() {
return myiter;
UIXIterator valueIterator = getmyiter();
if (!valueChangeEvent.getNewValue().equals(valueChangeEvent.getOldValue())) {
int newPage =
Integer.parseInt(valueChangeEvent.getNewValue().toString());
int pageStart = (newPage) * valueIterator.getRows();
valueIterator.setFirst(pageStart);
AdfFacesContext.getCurrentInstance().addPartialTarget(valueIterator);
But i am getting errors in the bean class.
1. Block expecting }
2. public UIXIterator getmyiter() {
this.myiter=myiter;
Return Statement missing
3. Block expecting {
4. Type or variable 'valueChangeEvent' not found
5. Method 'getNewValue' not found
6. Method 'getOldValue' not found
7. Method 'toString' not found
Can you suggest a possible solution?

Similar Messages

  • The horizontal scrollbar on the timeline in Premiere Pro 5.5 has disappeared.

    The horizontal scrollbar on the timeline in Premiere Pro 5.5 has disappeared.

    Restart computer, hold down alt+shift while opening Premiere until welcome screen.
    See if that will help.
    Otherwise reinstall and use cleanertool
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6 

  • How can I Hide(not Disable) the Save As and Exit options in the File menu of Excel Documents in SharePoint 2013?

    Hi,
    I want to hide(not disable) the "Save As" and "Exit" options in the File Menu of Excel Documents in SharePoint 2013.When I make changes in the excelribbon.css file of xlviewer.aspx,all the options under File menu are getting hidden but
    I want to hide only these two options while retaining the others.
    Kindly suggest me a method to achieve this.
    Looking forward to your reply at the earliest.
    Thanks in advance.
    Regards,
    Sanjana

    Hi Sanjana,
    To hide the “Save As” and “Exit” options in xlviewer.aspx page in SharePoint, I recommend to use the code below(however it is not recommended):
    <style>
    div.cui-menusection li.cui-menusection-items:nth-child(2)
    display:none !important;
    div#m_excelWebRenderer_ewaCtl_menuJewelSaveAs{
    display:none !important;
    div#m_excelWebRenderer_ewaCtl_msJewelSecondary{
    display:none !important;
    </style>
    As “:nth-child()” selector is supported in IE 9 and later versions, please use IE 9 or later versions’ IE browser.
    http://www.w3schools.com/cssref/sel_nth-child.asp
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How can I Hide/ Disable the Question mark and Exit button in the Top right corner of Link Bar of Excel Documents in SharePoint 2013?

    Hi,
    How can we  Hide / Disable the Help(?) and Close(x) buttons which are located in the right corner of the Top Link Bar in the Sharepoint Document Library pages as well as Excel Web Access?
    Our requirement is : When we try to view the Excel Services Report from another web site, Help(?) and Close(x) icons are also appearing in the Excel Web Access Web Part, but we don't want to display them in our site.
    Please let us know the solution for this case.
    Thanks in advance.
    Regards,
    Sanjana

    Hi,
    In the xlviewer.aspx, we can find the two buttons like this:
    To hide them, you need to add the CSS into the xlviewer.aspx which stays in:
    C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • After installing the windows 7 on the Macbook pro, i accidentally disabled the Macintosh hd and Recovery Hd and now now cant see them on start up

    After installing the windows 7 on the Macbook pro, i accidentally disabled the Macintosh hd and Recovery Hd and now now cant see them on start up
    I need to boot to macintosh but i cant see the drive nor to restore to the fastory settings through recovery HD, What can i do

    hold down the option key during boot it give you the option of what parition you wish to boot into

  • I changed my Apple ID, and i forgot the old one, and i created a new one, and when i tried to update my purchased items, and i cannot update my iphoto and imovie and garageBand, even i try to re purchase it, what can i do?

    I changed my Apple ID, and i forgot the old one, and i created a new one, and when i tried to update my purchased items, and i cannot update my iphoto and imovie and garageBand, even i try to re purchase it, what can i do?

    This is the iphone support forum. please ensure you post in the correct location

  • Is there a way to disable the Facetime camera and use an external USB webcam for browser based webchat?

    Is it possible to disable the Facetime camera and use an external webcam as a default? So that when you access browser based applications that require a webcam it doesnt default to the Facetime camera but uses the USB webcam instead?
    Cheers.

    (1) You don't need to "disable" anything to select among cameras connected to your Mac.
    For all cameras you access via browser based applications (cameras connect via Flash browser plugins), control-click on an open video window in your browser page and adjust the camera settings to select between a connected USB and Firewire video camera.  Specific instructions are here:
       http://www.macromedia.com/support/documentation/en/flashplayer/help/help04.html
    If you don't see a choices of cameras in the Flash settings, your Mac is only recognizing one camera.  Verify that your external cam is Mac-compatible and properly connected.
    Your choice is stored in preferences so the same camera will activate on the next browser page until you change it.
    (2) BTW, a current (Feb 2013) discussion of how to select among connected Mac cameras for a few more apps is available here:  http://discussions.apple.com/message/21158673#21158673
    Mac OSX 10.8.2

  • Any way to disable the bluetooth handset and use enable streaming audio only?

    I don't use bluetooth in my car to make or receive phone calls and only use it to stream Pandora.  On my previous BBs I was able to disable the handset function and just use streaming audio, but I'm not finding any similar options on the Z10.  Does anyone know of a way to do this? Right now I'm just powering off my stereo when I receive a call, but that is not a great solution.  Thanks for any feedback.
    Solved!
    Go to Solution.

    Hello rangerdanger and welcome to the BlackBerry Support Community Forums.
    Thanks for your question regarding Bluetooth.
    The BlackBerry Z10 does not have the option to edit what services are allowed with a Bluetooth connection.
    Depending on your vehicle, you may have to access your Bluetooth set up or settings within your car's dash to control what features are enabled with Bluetooth. 
    If you are unsure how to access these settings, contact your dealership or consult your owners manual.
    Cheers!
    -HMthePirate
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • How to disable the security code and use only the Touch ID

    how to disable the security code and use only the Touch ID

    You can't use Touch ID without a passcode.
    http://support.apple.com/kb/HT5883

  • Can I disable the wireless functionality and use Ethernet only?

    Can you completely disable the wireless functionality and use the Airport Extreme Base Station as a wired internet router with integrated print server?

    Yes. I do that. I don't use a print server but I was using that port for an HD. My AExpress connected to it is wired also.

  • Is it possible to disable the minimize, maximize and close on a Frame?

    Is it possible to disable the minimize, maximize and close buttons on a Frame?
    Is it possible to make invisible, minimize, maximize and close buttons of the frame?
    What methods would I use to do so?
    Thank You

    The minimize, maximize and close buttons are defined as the windows decoration. To disable the windows decoration,frame.setUndecorated(true);The setUndecorated() method can only be called while the frame is not displayable.
    Then you can redesign the look and feel of the rootpane and call
    frame.getRootPane().setWindowDecorationStyle(JRootPane.FRAME);

  • How to restrict the last record and not moving to next reocrd

    1) how to restrict the last record and not moving to next reocrd.
    2) Also for the F6 key(for new record).

    When you are on the last record, next-record will create a new one, so that my question is do you want to forbid new record creation.
    Francois

  • How to create a "next" button out of image

    Hi all.
    I'm new to Dreamweaver and have no idea what I'm doing!  I'm a designer and not familiar with code.
    I've managed to get this far: I've created a teamplate and am using it successfully on subsequent pages.  My snag is that I want to create a "next" button out of an image.
    One forum poster suggested taking page_1.html and page_2.html and inserting a link between them. I get this, but in order to do so, it seems I have to detach my individual pages from the template in order to directly edit them.  Can I then somehow reattach them to the template so that I can continue to make other changes on one page that will update throughout?
    Any suggestions to a VERY green newbie that does not include copying and pasting code?  Is there a way to do this in design mode?
    thanks
    B.

    UPDATE:
    Nancy and Jon - and all future searchers with this question, I have found the answers!!!
    Here goes:
    MAKING A SIMPLE NEXT/PREVIOUS BUTTON OUT OF AN IMAGE IN DREAMWEAVER FOR THE CODE-RETARED DESIGNER:
    - Create a template which includes buttons for NEXT/PREVIOUS. The buttons should be sliced from a Photoshop file, or created using Div tags in Dreamweaver (see Tutvid.com for these tutorials - very good). The buttons should also be in their own separate Divs.
    - Select the individual Divs containing the buttons (one at a time), not the images themselves.
    - Go to Insert>Template Objects>Editable Region.
    - Give one Editable region the name of NEXT and the other editable region the name of PREVIOUS.
    - Save template file.
    - Go to page_1.html and now those buttons are selectable.  Choose the NEXT button and go to the properties panel and grab the little pick whip icon which is right beside the Link box. Drag and hold the pick whip onto your files panel and select page_2.html.  Do the same for each page.  From page_2.html onward, you also do this for the PREVIOUS button, only you select the page that comes before it, not the one after it.
    Viola!
    I really hope this helps out all you code-challenged designers like me!  I've searched everywhere and lo and behold, it was as simple as this.
    Thanks to you, Nancy, for twigging me into selecting the Div and not the graphic itself.
    BellyBuckle.

  • How can I create a "Next" button with Insert database action

    Hello,
         I want to create a "Next" button that will redirect to another page and at the same time to do an INSERT database action. I've searched on google but I didn't find nothing specific that could help me.
    Below are some screenshots:
    http://imagizer.imageshack.us/v2/800x600q90/22/2yqj.jpg
    http://imagizer.imageshack.us/v2/800x600q90/585/wbn6.jpg
         Thanks.

    DO NOT USE THIS CODE !!!!
    Declare 
      -- Added by ramani 20-feb-2013 
       Seq_Val_ Number; 
    begin 
        if  :P17_NWM_DOC_NO  is null  then 
           Select Nvl(count(NWM_DOC_NO),0) + 1  -- THIS IS VERY VERY WRONG !!! REPLACE WITH A SEQUENCE !!!!!!!!!!!!!!
            into Seq_Val_ 
            from  DMS_NEW_MASTER; 
           -- ref number 
            return  Seq_Val_ ; 
            --summa oru elsif irukku 
           end if;  
    end; 

  • Create a Next-button with a goto-command?

    Hello,
    was wondering if it is possible to create a Next button with a goto-command, similar to this "back"-button: goto://FolioNavigation/lastview   ?
    Tim

    Hi Bob,
    thank you for the answer Yes, you understood it right. I am making an app similar to a website experience (DPS is probably not really the best thing for it, just very practical to use since it's in Indesign). I guess I will have to work around it Thanks again!

Maybe you are looking for