Best way to make a object details page

I have a dataTable, built with a sessionBean List. We have to make a link "show detail" in each row, and redirect to a new jsp showing selected row object details.
Whats the best way to retrive the object selected?
a commandLink with param (haschcode value) and search in list isn`t possible because is a sessionBean..
I have some ideas but not with JSF....
thanks

1) Bind h:dataTable to an UIData property in main backing bean.
2) Add a h:commandButton or h:commandLink to a column and bind it with an action method in main backing bean.
3) In the main backing bean action method simply retrieve the row object byRowObject selectedRowObject = (RowObject) uiDataProperty.getRowData();and navigate to some display details page.
4) In the display details page just access the data by #{mainManagedBean.selectedRowObject.someProperty} and so on.
Detailed examples can be found here: [http://balusc.blogspot.com/2006/06/using-datatables.html].

Similar Messages

  • What is the best way to make a list of addresses for envelopes or labels?  Address book, numbers or pages?

    What is the best way to make a list of addresses for envelopes and labels?  Address book, Pages or Numbers?

    I liek your idea of having multiple images in a grid. I think
    that would be the best bet as you mentioned. Having one big picture
    would be hard to distinguish the sub-areas with mouse coordinates.
    I think checking the coordinates for the mouse would be very
    tedious because I would have to check for the left boundary, the
    right, top, and bottom for each sub-area!
    What do you mean by using button components and reskinning.
    Is this simply using buttons and changing the way they look? I'm
    just trying to save time and memory, because if I had a 10 by 10
    grid, thats a hundred buttons. Wouldn't that slow down the machine
    alot? And for that matter wouldn't having a grid of 10 by 10 images
    also by the same deal?
    Thanks for the input, I'm just trying to find the most
    efficient way to do it.

  • Best way to make a booklet?

    What's the best way to make a booklet on my Mac?  I need to make something that is 8 1/2 x 5 1/2 (so regular paper folded in half) allowing me to put 4 pages on one sheet of paper.
    In the past, I've been able to make full sized pages, and make booklets via the copy machine at school (think music programs here) but someone recently told me there are ways to do this on a mac so that I could make as booklet and just bring to staples to print.
    Any ideas would be greatly appreciated.

    For starters, look at the "more like this" list on the right side of this page.
    Then there is the answer I've used for several years.
    1 - For a folded US letter-size booklet start with your Pages document in Legal size & larger than normal font size. Export the Pages document to a PDF & then drag the PDF to the icon of Cocoa Booklet. It will create a new PDF in booklet form. For international paper sizes, create the Pages document in the larger size with a larger font, i.e. create A4 pages to create A5 folded booklets. You can also use US tabloid or A3 to create larger booklets.
    Next you'll need to use Create Booklet Service to create a booklet with any number of pages (best in a multiple of 4). You can create the booklet directly from the print dialog after you install the service. Again, for US letter size booklets, I find it best to create them in legal size as above. Downlond it from the link & run its installer. It will open the booklet in Preview. If you're using Lion, I suggest using File > Export to save the PDF where you can find it.
    2 - This involves setting your Pages document in File > Page Setup… to landscape orientation & then paginating the document manually. 
    Use linked text boxes. This is easier done with the layout showing. First you need to add a page break to have two pages. Click in the body area & then Insert > Page Break. Now click outside the layout area to enter object mode & click the "T" in the tool bar or Insert > Text to create a text box & type something in it. This is to keep the box from disappearing if you click elsewhere & the text can be replaced later. If you already have some text to paste in you can just paste while in object mode & a text box containing your text will be created. You will now need to click outside the layout again & drag the cursor toward the text box to select it. You can now position the first text box in the lower right of your 2-page document. It is easier to see where it goes if you have the document set up with 2 columns. Click on the blue-outlined tab at the lower right of the text box to create a new of the same size & move the box to the upper left. Repeat for a box for the upper right & again for the lower right. You will now have 4 linked text boxes.
    This will not let you automatically use page numbers because Pages "sees" each page & you actually have 2 pages per page. You'll need to create them manually. I would use text boxes.

  • Best way to do a Object which holds a collection of another object type.

    I'm writing a caching object to store another object. The cache is only valid for a session, so I want a store the data in a nested table.
    I have try to simplify my example down to its core.
    How do I make this work and what is the best to index the index the items stored for fastest retrieval.
    CREATE OR REPLACE TYPE ty_item AS OBJECT (
    id_object VARCHAR2 (18),
    ORDER MEMBER FUNCTION compare (other ty_item)
    RETURN INTEGER
    CREATE OR REPLACE TYPE BODY ty_item
    AS
    ORDER MEMBER FUNCTION compare (other ty_item)
    RETURN INTEGER
    IS
    BEGIN
    IF SELF.id_object < other.id_object
    THEN
    RETURN -1;
    ELSIF SELF.id_object > other.id_object
    THEN
    RETURN 1;
    ELSE
    RETURN 0;
    END IF;
    END;
    END;
    CREATE OR REPLACE TYPE ty_item_store AS TABLE OF ty_item;
    CREATE OR REPLACE TYPE ty_item_holder AS OBJECT (
    CACHE ty_item_store,
    MEMBER FUNCTION get (p_id_object IN VARCHAR2)
    RETURN REF ty_item,
    MEMBER FUNCTION find (p_id_object IN VARCHAR2)
    RETURN REF ty_item,
    MEMBER FUNCTION ADD (p_id_object IN VARCHAR2)
    RETURN REF ty_item
    CREATE OR REPLACE TYPE BODY ty_item_holder
    AS
    MEMBER FUNCTION get (p_id_object IN VARCHAR2)
    RETURN REF ty_item
    IS
    rtn REF ty_item;
    BEGIN
    rtn := find (p_id_object);
    IF rtn IS NULL
    THEN
    rtn := ADD (p_id_object);
    END IF;
    RETURN rtn;
    END;
    MEMBER FUNCTION find (p_id_object IN VARCHAR2)
    RETURN REF ty_item
    IS
    rtn ty_item;
    BEGIN
    SELECT VALUE (ch)
    INTO rtn
    FROM CACHE ch
    WHERE ch.id_object = p_id_object;
    RETURN rtn;
    END;
    MEMBER FUNCTION ADD (p_id_object IN VARCHAR2)
    RETURN REF ty_item
    IS
    item ty_item;
    BEGIN
    item := ty_item (p_id_object);
    INSERT INTO CACHE
    VALUES (item);
    END;
    END;
    /

    Best way to do a Object which holds a collection of another object type. The best place for data in a database is.. no real surprise.. in tables. If that data is temporary of nature, global temporary tables cater for that.
    Storing/caching data using PL/SQL requires very expensive private process memory (PGA) from the server. This does not scale.
    I'm writing a caching object to store another object. Irrespective of how l33t your haxor skillz are, you will not be able to code as a sophisticated, performant and scalable PL/SQL data cache, as what already exists (as the database buffer cache) in Oracle.
    The cache is only valid for a session, so I want a store the data in a nested table.Not sure how you take one (session local data) to mean the other (oh, let's use a nested table).
    Session local data can be done using PL/SQL static variables. Can be done using name-value pairs residing in a context (Oracle namespace). Can be done using a global temporary table.
    The choice is dependent on the requirements that need to be addressed. However, the term +"caching+" has very specific connotations that say that a global temporary table is likely the best suited candidate.

  • What is the best way to make a program fit different monitor resoultions?

    In our lab all our test stations have 1280x1024 resoultion monitors. In the "other lab" all the test station monitors are 1440x900 resoultion.
    Now I am tasked with making my programs run on the test stations in the other lab. I have tried setting the options "maintain proportions of windows for different monitor resoultions" and "Scale all object on front panel as the windows resizes" and of course neither one of these options really does what I would expect it to do.
    What is the best way to make programs fit different monitor resoultions?

    J-M wrote:
    I resize the Front Panel when the program start to fit the monitor resolution.  After that, I use the "SBE_Determine If Screen Resized.vi" from TomBrass (http://forums.ni.com/t5/LabVIEW/Resizing-controls-on-a-tab-control-within-a-pane/td-p/1520244 ).  This vi is very useful if you don't want to monopolize the CPU with the "Panel Resize" event.
    I don't like this function for a couple reasons.  First for the example you don't need any custom code to handle the window resizing, just use a couple splitters.  Even if you did need to handle the resize, you only resize after the mouse is up after the resize which is not how normal Windows programs work they resize as the mouse moves.  So I modified the VI to resize objects as you resize the window.  Then because doing this can generate 100 events very quickly, I use a boolean in a shift register to make sure that we only handle the resize event if there is no new resize events after 0ms.  This essentially makes a lossy queue and handles the last resize event.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
    Attachments:
    Resizable_Graph.vi ‏22 KB

  • What is best way to make business cards in iwork

    what is the best way to make business cards.  is have iwork.  the business card templet doesn't seem to copy after you create the first card.  it wants each card on the temp. page to be filled in.

    You can buy a set of backup disks from Adobe for a nominal fee. You might want to give them a call and ask about it.
    Otherwise, just back it all up to an external drive.
    Bob

  • Best way to make a to do list

    new to apple - what is the best way to make a to do list? Reminders, an app, sticky notes?

    If I read your post correctly you want to build a string that looks the same as how Script Editor would display a list, correct?
    If so, that's not hard.
    You can use 'text item delimiters' to tell AppleScript how to convert a list to a text object - the TID will be inserted between each list item.
    Then all you have to do is prefix the list with {" and suffix it with "} and you're done:
    -- start off with something in the list:
    set theList to {"cold", "drink", "beer"}
    set oldDelims to my text item delimiters
    set my text item delimiters to "\", \""
    set myString to theList as text
    set my text item delimiters to oldDelims
    return "{\"" & myString & "\"}" as text
    This will result in a text object that looks like:
    {"cold", "drink", "beer"}
    which you can easily store in your Filemaker database.
    Note the copious use of the backslash to escape the quote characters so they can be embedded in a text object.
    I'm curious as to why you want to do this, though.

  • The Best Way to make your iPad battery last the longest!

    After checking many sources and also discussions here -- this is one article that pretty much sums up the best way to make your iPad battery last the longest!
    It basically comes down to JUST ONE THING (mainly) -- and that is simply REDUCING YOUR CHARGE CYCLE COUNT! And how do you do that? Well, very simply KEEP IT PLUGGED IN as much as possible. And then, doing what Apple says by doing just one full discharge - once a month.
    There are about 1000 charge cycles available for the iPad, at which point you should have 80% of the battery life left. SO ... Anything you do to slow down getting to that 1000 charge cycles, makes your iPad battery last longer. Keeping it plugged in "all the time" (or, as much as possible - since it is a portable object) slows down the process of getting to that "lessening of battery capacity". It's simply all about "charge cycles" - which then translates into "reduced battery capacity".
    Here's an article to pay close attention to:
    Best Practices for iPad Battery Charging
    http://www.ilounge.com/index.php/articles/comments/best-practices-for-ipad-batte ry-charging/

    Here's another site that is usually posted here that you would be interested in: http://batteryuniversity.com

  • I am moving from PC to Mac.  My PC has two internal drives and I have a 3Tb external.  What is best way to move the data from the internal drives to Mac and the best way to make the external drive read write without losing data

    I am moving from PC to Mac.  My PC has two internal drives and I have a 3Tb external.  What is best way to move the data from the internal drives to Mac and the best way to make the external drive read write without losing data

    Paragon even has non-destriuctive conversion utility if you do want to change drive.
    Hard to imagine using 3TB that isn't NTFS. Mac uses GPT for default partition type as well as HFS+
    www.paragon-software.com
    Some general Apple Help www.apple.com/support/
    Also,
    Mac OS X Help
    http://www.apple.com/support/macbasics/
    Isolating Issues in Mac OS
    http://support.apple.com/kb/TS1388
    https://www.apple.com/support/osx/
    https://www.apple.com/support/quickassist/
    http://www.apple.com/support/mac101/help/
    http://www.apple.com/support/mac101/tour/
    Get Help with your Product
    http://docs.info.apple.com/article.html?artnum=304725
    Apple Mac App Store
    https://discussions.apple.com/community/mac_app_store/using_mac_apple_store
    How to Buy Mac OS X Mountain Lion/Lion
    http://www.apple.com/osx/how-to-upgrade/
    TimeMachine 101
    https://support.apple.com/kb/HT1427
    http://www.apple.com/support/timemachine
    Mac OS X Community
    https://discussions.apple.com/community/mac_os

  • What is the best way of accessing application module without page binding?

    Hi All
    I am using Jdeveloper 11g R2 (11.1.2.3) & Weblogic 10.3.5.0
    What is the best way of accessing application module without page binding?
    In my application after user authenticated from LDAP
    I need to read some information from database and set my menues.
    Thanks
    Mohsen

    Hi,
    if you don't have a binding the I am not sure the binding context is created. Anyway, try
    BindingContext.getCurrent().findDataControl("name here as ID in DataBindings.cpx") and see if it returns a valid instance
    Frank

  • What is the best way to make a DVD from iMovie

    What is the best way to make a DVD from iMovie?
    I am using iMovie 06 (Naturally) with iDVD 08. I have always used;
    iMovie 06, File > Share to iDVD 08. And got pretty good results.
    Some say the best way is to quit iMovie 06, open iDVD and import the movie from the Media button.
    I have tried both methods in the results look the same. I'm interested in getting the very best quality possible.

    You likely have one of the most expensive media converter boxes on the market today.
    But does it work well with most macs? (my guess is that it does). But more specifically can it "handshake" with an intel based mac? I personally haven't tried it.
    But you may want to read this for yourself if you haven't already:
    http://discussions.apple.com/thread.jspa?threadID=1179361&tstart=2362
    Assuming it works then the best format is .dv which this unit will support apparently.

  • What is the best way to create Aperture book from Pages '09 document?

    What is the best way to create Aperture book from Pages '09 document?

    There is no way to import pages documents to Aperture and convert them to an Aperture book. Aperture books can only be created by manually adding images and text to the pages of a book, and using the layout of the predefined templates.
    The best you could do, would be to print your pages document to pdf and import the resulting pdf file into Aperture as a new project. This will create one image for each page. Then select the page images all at once and  create a new book. Select a theme with fullsize page images, like "picture Book", and then add the images of the pages to the empty pages of the book.
    But probably would you get a much better quality and layout, when you recreate your pages document in Aperture, by starting with an empty book and copying and pasting the text from your Pages document. But don't paste the photos from the document - try to use the originals of those photos.

  • Best way to make a Constant Power Load

    What would be the best way to make a load that always draws the same amount of power whatever the voltage on it. For exemple, an load would draw 100 mA at 24 VDC, 150 mA at 18 VDC and 200 mA at 12 VDC. All I found is to use Nonlinear Dependant source.
    Any easier way to do this? Thanks.

    Sorry about the file mix up, I was anxious to get it posted for you that I failed to realize you were using a different version.
    As far as the last "amplifier" in your Leaky Feeder design, I actually hooked it up to the 24VDC supply on the left and this was a direct connect before the first resistor.  I realize this is not what would be ideal for your application as probably you have only a certain place in the Leaker Feeder to tap off from. I would suppose this would be going into a different entry way off the main entry at an intersection so I do not know how my adjusting the placing of this would effect the results because it seems to me by doing this I have bypassed a bunch resistance in the Feeder cable itself (if that is what the resistors represent) and also bypassed a number of amplification stages in the process as well.
    I will post a picture of my circuit for you to examine and try in Version 9.  This is the only thing I could come up with to where the power draw was the same no matter what the voltage input was. The only thing I can see as a drawback is that with this circuit the current remains constant but the voltage fluctuates. If I use a 24V regualtor and drop the input voltage to 12V the current remains at approx 118ma but the voltage drops to 12V when I plug it into your circuit.. I will let you try it and see what you may be able to do with it.
    Message Edited by lacy on 04-28-2008 05:47 PM
    Kittmaster's Component Database
    http://ni.kittmaster.com
    Have a Nice Day
    Attachments:
    Possible Constant Power Load.JPG ‏285 KB

  • How & where to use Java script to create new button in object detail page

    Hi All,
    I want to create "New/Add button" in object detail page. If i am not wrong i need to use java script for that but could you please let me know how & where to use Java script to create new button in object detail page in CRMOD.
    Thanks in advance.
    Regards,
    Manish

    Any related object on the detail page should have an "Add" or "New" or both buttons by default - This is vanilla functionality and will do the required action.
    If you want to modify this behaviour and do something tricky you will potentially have to go for javascript. You should add the javascript on a custom web tab on that Object.
    Admin --> Application Customization --> Contact -->Contact Web Applet
    Now, add your javascript in the code area, after you select the type = HTML for this web applet, expose this web applet on the Contact detail layout and your javascript will be invoked whenever this page is loaded.
    Check this online document to see how javascript can be embedded in CRM on Demand http://helponmyproject.com/TTOCOD/
    Cheers!
    Royston

  • What is the best way to make a clickable grid

    What would be the best way to make a clickable area that can
    differentiate between discrete parts of the area when clicked on.
    In other words, instead a having multiple buttons in a row that the
    user can click on, is there a way to have an area that has lines to
    distinguish the different areas(buttons) but that acts as though
    there were multiple consecutive buttons?
    For example, if I wanted to graphically simulate the buttons
    on a phone but without using buttons. Instead use some kind of grid
    or area that is divided into multiple sub areas that can
    distinguish the discrete positions (each button on the phone, or
    sub-area).
    Thank you,
    Salchichasa

    I liek your idea of having multiple images in a grid. I think
    that would be the best bet as you mentioned. Having one big picture
    would be hard to distinguish the sub-areas with mouse coordinates.
    I think checking the coordinates for the mouse would be very
    tedious because I would have to check for the left boundary, the
    right, top, and bottom for each sub-area!
    What do you mean by using button components and reskinning.
    Is this simply using buttons and changing the way they look? I'm
    just trying to save time and memory, because if I had a 10 by 10
    grid, thats a hundred buttons. Wouldn't that slow down the machine
    alot? And for that matter wouldn't having a grid of 10 by 10 images
    also by the same deal?
    Thanks for the input, I'm just trying to find the most
    efficient way to do it.

Maybe you are looking for