How can Pagination be achieved in portlets ???

HI,
I wanna implement pagination in portlets.
Ex: I display 20 pages .. 1, 2 , 3, 4, 5, 6, 7, 8..
So i will have following clickable texts...
prev>> 1 2 3 4 5 6 7 8 9 10 next<<
when i select 3 , it should route me to page no 3.
when i click on next it should display me the following
prev>> 11 12 13 14 15 16 17 18 19 20
Any ideas ?

Hi,
Here You go......
http://forum.java.sun.com/thread.jspa?threadID=5194183
My friend i'm afraid to say this but the one Suggested by you will not work on Portlet Environment under a Portlet Container.
It wud be gr8 if you can revisit Basic Concepts of Portal,Portlet Container,Portlets & a Servlet,Servlet Container.
REGARDS,
RaHuL

Similar Messages

  • Need to pass out parameter in middle of a process. How can this be achieved

    Package test_pkg
    procedure main_prc(x_stat out varchar2)
    insert_prc(l_stat);
    x_stat:=l_stat;
    valid_prc
    end main_prc;
    procedure insert_prc(x_stat1 out varchar2)
         insert into staging table
         x_stat:='S';
    end insert_prc;
    procedure valid_prc
         validate staging table data
    end valid_prc;
    end test_pkg;
    Requirement: Need to pass out parameter in middle of a process. How can this be achieved?

    Use return at any time to get the out variable, but this will stop the process.

  • I need to intercept all local files that are being loaded in Firefox. How can that be achieved?

    I am using geckofx in c#. I need to intercept response of a local file load request so that I can modify some data/response before it reaches Javascript.
    In short, I need something like
    1. JS requests browser to read a file.
    2. Browser reads content of a file.
    3. MAKE SOME MODIFICATIONS TO DATA (Additional Step)
    4. Then pass this modified data to JS to perform required tasks.
    Is this possible? If yes, how can this be achieved.

    You may need to rebuild permissions on your user account. To do this,boot to your Recovery partition (holding down the Command and R keys while booting) and open Terminal from the Utilities menu. In Terminal, type:  ‘resetpassword’ (without the ’s), hit return, and select the admin user. You are not going to reset your password. Click on the icon for your Macs hard drive at the top. From the drop down below it select the user account which is having issues. At the bottom of the window, you'll see an area labeled Restore Home Directory Permissions and ACLs. Click the reset button there. The process takes a few minutes. When complete, restart.   
    Repair User Permissions

  • How can i access built _in portlet pages(???)

    Hi every body,
    how can i access built _in portlet pages.
    i want to replace their button and images.
    can every body help me???????????????
    thanks

    You can't - it's only for cell phones.
    Clinton

  • How can i deploy my .war portlet application

    Hi Gurrus!
    I want to deploy programatically (manuall way can also helps me to program the manual logic) my .war portlet application comprise of
    content:
    1) 1 java file(portlet one)
    2) 1 jsp file
    3) web.xml
    4) portlet.xml
    questions:
    1) how can i do the above task
    2) in 8.1sp 3 is there a way that i deploy my .war as an application than using admin/workshop console link them in a portal page?, if yes than please guide me in this regard.
    THANKS IN ADVANCE
    -Kashif

    Hello Gurus,
    Is there an update version of portletpreparer for weblogic portal 9.2?
    I tried the instruction on the link and got java exception during running the ant command.
    Has anyone had luck to use this utility?
    Thanks,
    -Nick
    PS. Exception
    C:\work\portletpreparer\portletpreparer\build.xml:12: java.lang.NullPointerException
    at org.apache.tools.ant.Task.perform(Task.java:373)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.Main.runBuild(Main.java:668)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    Caused by: java.lang.NullPointerException
    at com.bea.task.PreparePortlets.execute(PreparePortlets.java:81)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    ... 10 more
    --- Nested Exception ---
    java.lang.NullPointerException
    at com.bea.task.PreparePortlets.execute(PreparePortlets.java:81)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.Main.runBuild(Main.java:668)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    Total time: 1 second

  • How can I jump from a portlet to another one in other page?

    Hi
    I'm doing a tasks list porltet, when the user makes a click over a task, the user
    has to see another porlet in other page. How can I activate a porlet residing
    in other page?
    Thanks for All

    In all portal versions you need to add the pageLabel param to the URL and the application
    automatically go the good page (for synthax look at the URL in the browser)
    For exemple in portal 8.1 using the bea tags add the following link in the jsp
    of the portlet one : go
    to the second portlet page
    You can also use a form instead just add the "_pageLabel" param to the form using
    directly
    an <input> tag not a <netui:param> tag that would prefix your parameter with the
    current portlet instance label.
    We did it for our project and it works.
    "David Uribe" <[email protected]> wrote:
    >
    Hi
    I'm doing a tasks list porltet, when the user makes a click over a task,
    the user
    has to see another porlet in other page. How can I activate a porlet
    residing
    in other page?
    Thanks for All

  • How Can I Build Mailing List Portlets?

    I want to make a portal with a mailing list portlet. I need to know how can I build the servlet for my apache server.

    By a mailing list portlet, do you mean a portlet where users can sign up for different mailing lists, or do you mean a specific mailing list that would archive all the messages sent to the list?
    In any case, if you have an existing application that manages a mailing list (like a list on listbot.com), one of the options you could investigate is to integrate that application as an External Application to Portal and leverage the Single Sign On capability.
    null

  • How can this be achieved in SQL???????

    Hi Guys,
    This is my query:
    SELECT  distinct iy.trial_no,
           iypa.amendment_no,
           iy.country_code,
           iy.country_desc,
           iypa.amend_reg_submission_date,
           iypa.amend_reg_approval_date,
           iypa.amend_reg_comments,
           iyea.ea_amendment_submission_date,
           IYEA.ea_amendment_approval_date,
           iyea.ea_amendment_expiry_date,
           iyea.ea_approval_comments,
        iyea.master_approval_flag      
    FROM   irt_trc_protocol_amendment iypa,
           irt_trc_ethical_approvl_amend iyea,
           irt_trial_country iy
    WHERE  iypa.trial_no = iyea.trial_no
    AND    iypa.amendment_no = iyea.amendment_no
    AND    iypa.country_code = iyea.country_code
    AND    iypa.trial_no=101416
    AND    iy.trial_no= iypa.trial_no
    AND    iypa.country_code = 'GBR'
    AND    iypa.country_code = iy.country_code 
    AND    iyea.amendment_no = 4
    AND    IYEA.master_approval_flag = 1 The above query will only ever return one row because only one record can have it's master_approval_flag set to 1. However multiple records can have a master_approval_flag set to 0.
    This is what I want my query to acheive:
    Select the one row where master_approval_flag = 1. If there is no record where master_approval_flag = 1, then still only display one row but ommit the details from the IYEA table and only include
    the data from the IYPA table - Such that the output will only ever return one row....
    How can I do this?
    Thanks!

    This should work:
    select t.*
    SELECT  distinct
           iy.trial_no,
           iypa.amendment_no,
           iy.country_code,
           iy.country_desc,
           iypa.amend_reg_submission_date,
           iypa.amend_reg_approval_date,
           iypa.amend_reg_comments,
           iyea.ea_amendment_submission_date,
           IYEA.ea_amendment_approval_date,
           iyea.ea_amendment_expiry_date,
           iyea.ea_approval_comments,
           iyea.master_approval_flag
          ,row_number() over (order by iyea.Master_Approval_Flag desc) rn
    FROM   irt_trc_protocol_amendment     iypa,
           irt_trc_ethical_approvl_amend  iyea,
           irt_trial_country              iy
    WHERE  iypa.trial_no                  = iyea.trial_no
    AND    iypa.amendment_no              = iyea.amendment_no
    AND    iypa.country_code              = iyea.country_code
    AND    iypa.trial_no                  = 101416
    AND    iy.trial_no                    = iypa.trial_no
    AND    iypa.country_code              = 'GBR'
    AND    iypa.country_code              = iy.country_code 
    AND    iyea.amendment_no              = 4
    ) t
    where rn = 1You could possibly remove the DISTINCT and specify
          ,row_number() over (order by iyea.Master_Approval_Flag desc, iy.Tria_No, iy.Amendment_No) rn
    -- instead of
    ,row_number() over (order by iyea.Master_Approval_Flag desc) rnSince you are guranteed to always return a single row there may be no reason to use DISTINCT, which would probably slow the query down somewhat.

  • How can I know whether a portlet instance in hidden or not ?!

    I need to know - programatically at run time - if a specific portlet instance is hidden or not for the current portal user.
    I need to create a portlet that shows to the user what portlets he had hidden (by customization) and what portlets are not hidden.
    Is the a Java API (JPDK) or a PLSQL API that determines whether the portlet instance is hidden or not for the current user??
    Please reply soon.... this is urgent.
    Thanks.

    You can retrieve this information from both Java and PL/SQL portlets.
    Java: oracle.portal.provider.v2.render.RenderContext class - isCollapsed() method
    PL/SQL: wwpro_api_provider.portlet_runtime_record.is_collapsed

  • I have to send messages through UDP multicast and unicast from same port. In Labview I tried that it throws error. I heard it is possible by means of Datagram (UDP unicast and multicast) Port Sharing. How can it be achieved in Labview?

    I have to send UDP multicast and Unicast messages to a remote port from a single source/local port. I tried by opening UDP unicast and multicast in the same port and got the expected error. I tried by opening a unicast connection and sending unicast messages.After that when multicast messages has to send I closed unicast and opened multicast in the same port.This is not throwing any error. But my requirenment is to comminicate with another application in C ++ which recieves this data, throwing an error of lost connectivity and both the applications are not abled to communicate properly. 
    In the other application with C++ this is implemented using port sharing. So how port sharing can be implemented in labview so that I can send both multicast and unicast messages from the same port?
    Thanks in advance

    UDP is a sessionless protocol, meaning that anyone listening on the specified port CAN receive the data. CAN because as you noted there is no guarantee in the protocol that it will be received. And if you send the data not to a specific address but a multicast address not only one computer can receive it but in fact every computer on the same subnet listening to that multicast address and depending on the TTL of the packet also computers in neighbouring subnets, although that last one is not a very reliable operation since routers can be configured to drop multicast packages anyhow despite of a different TTL saying otherwise.
    Accordingly there is no real way to make sure that a receiving UDP port is not already in use, since you don't build up a connection. UDP is more or less analogous to shouting your messages through a megaphone, and anyone listening on the right frequency (port) can hear it. You do bind the sender socket to a specific port number but that makes little difference.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Robohelp 10 - Inserting a Last modified date in a topic - how can it be achieved?

    Hi there,
    this is my first post, so apologies if I am in the wrong place...
    I would like to insert a "last modified" date in my topics, but can't figure out how to do this! The Date field inserts today's date whenever the topic is opened, and so doesn't reflect the timeframes of changes accurately.
    I'd appreciate any help on this.
    Thank you
    Caroline

    Hi there
    When you insert the field, look at the options.
    See that option for auto updating? Try clearing it and the field shouldn't auto-populate.
    But note that now the onus is on the help author to ensure they perform the update if they want the date to finally match the current date.
    Cheers... Rick

  • What is this effect called/how can it be achieved?

    http://www.youtube.com/watch?v=AqS5SeJOrwU
    at 6:31 in this video it does it.It also does it a lot up until the 8 minute mark. I know that the video was put together with after effects. I need to know how i can do it in cs5 or at least what it is called so i can look up tutorials. Thanks

    Effects --> Time --> Echo and a million similar "accumulation" effects from third-party vendors, fancied up of course with some crazy coloring effects.
    Mylenium

  • HR Authorization Issue (How can it be achieved)

    Hi Gurus,
    Our SAP HR PA data authorization is by Org Key using P_ORIGIN security object. As a result, HR Users who have the access for the Org Key can view records of employees belonging to that particular Org Key.
    The problem comes when an employee is transferred from old Org Key to new Org Key. As a result, HR user can still view  those records in PA infotypes for the prior periods when IT0001 org key was the old one.
    Requirements: Our HR Head wants to completely block these kind of employees whose org key has been changed to the new one. Since HR Users dont have the authorization for the new Org Key; they should not be able to view PA IT0001 records for period which still have the value for old org key.
    Any way to implement this kind of check ? Or any way to control security access by Pernr (so that we could block some pernrs from being viewed by HR user).
    Please provide your insight..
    Note: We have not activated P_ORGXX in our system.

    Hello Amit,
    Try to use organizational key (VDSK1) to restrict access to HR personnel information. When we change the value in the VDSK1 field from users not able to view PA data only for those employees for which they have responsibility. Use P_ORGIN and organization key (VDSK1) to do this.
    Cheers and Regards.
    Jaime

  • How can we remove the scroll bars from the table?

    Hi,
    I have a dynamic table. Currently the table appears with the scroll bars. But there is a requirement that the scroll bar should not appear and the table should stretch in the entire page. How can this be achieved.
    Thanks in advance
    Nita

    Thanks Mohammad for the reply.
    Was able to remove the scroll bars by using only the styleClass as AFStretchWidth. But there is a default partition in middle of the page still? Can i remove that too by any way.

  • How can I filter a column based on data in another list.

    I have two lists:
    List A:
    Business Unit | BU Services
    BU1 | Service 1
    BU1 | Service 2
    BU1 | Service 3
    BU2 | Service 4
    BU2 | Service 5
    BU3 | Service 6
    BU3 | Service 7
    List B:
    Sales Rep | Business Unit | Service
    Jonny Cash | BU3 | Service 7
    Kitty Wells | BU3 | Service 6
    Willie Nelson | BU2 | Service 5
    etc
    List A is a reference list. I.e. it associates services with a business unit.
    List B is a record of activities. It records what each sales rep sold. Sales reps can sell services from any business unit.
    Using a drop down list to select the business unit, the service column should only display services that are related to a business unit. I.e. If BU3 is selected, then only Service 6 and Service 7 should be available.
    How can this be achieved in SharePoint? It looks like something that it could easily do, however I can't get a lookup to work across lists, and I'm not sure a calculated column will do the job either.
    Any ideas?

    Hi Cameron,
    The first list (or table) is used for associations. I'm associating services with a business unit. This would work the same way with an example I found, regarding countries and states:
    i.e.
    Country | State
    USA | Nebraska
    USA | New York
    Canada | Alberta
    Canada | Manitoba
    Russia | Crimea
    Russia | Chechnya
    Australia | New South Wales
    etc
    Then in the second list or table I could specific team members and their location:
    Team Member | Country | State
    Russell Crow | Australia | New South Wales
    Clive Owen | USA | New York
    In the 2nd table, I would select the country from a drop down (or by type ahead), and then the state column would restrict choices to states for the particular country as define in the first list, i.e. USA would show states like: Nebraska and New York, but
    not Alberta or New South Wales because they belong to other countries.
    I have a feeling that SharePoint can't do this, despite having the basic foundation for it. I'm not a MS developer, I'm a business user trying to put a basic app together for my boss.

Maybe you are looking for