How can I open the links on the TreeItem treeItem1 = new TreeItem("Fish", "

JDeveloper 11g, Windows 7(64 bit), ADF Faces
package view.backing;
import java.beans.IntrospectionException;
import java.util.ArrayList;
import java.util.List;
import org.apache.myfaces.trinidad.model.ChildPropertyTreeModel;
import org.apache.myfaces.trinidad.model.TreeModel;
public class TreeModelAdapter {
private Object _instance = null;
private transient TreeModel _model = null;
public TreeModelAdapter() {
ArrayList<TreeItem> rootTreeItems = new ArrayList<TreeItem>();
TreeItem treeItem1 = new TreeItem("Fish", "http://www.someurl1.com");
TreeItem treeItem2 = new TreeItem("Dog", "http://www.someurl2.com");
TreeItem treeItem3 = new TreeItem("Cat", "http://www.someurl3.com");
TreeItem treeItem2_1 = new TreeItem("Blue Heeler", "http://www.someurl4.com");
TreeItem treeItem2_1_1 = new TreeItem("Rover", "http://www.someurl5.com");
TreeItem treeItem2_1_2 = new TreeItem("Ruffus", "http://www.someurl6.com");
rootTreeItems.add(treeItem1);
rootTreeItems.add(treeItem2);
rootTreeItems.add(treeItem3);
ArrayList<TreeItem> treeItem2Children = new ArrayList<TreeItem>();
ArrayList<TreeItem> treeItem2_1Children = new ArrayList<TreeItem>();
treeItem2Children.add(treeItem2_1);
treeItem2.setChildren(treeItem2Children);
treeItem2_1Children.add(treeItem2_1_1);
treeItem2_1Children.add(treeItem2_1_2);
treeItem2_1.setChildren(treeItem2_1Children);
this.setListInstance(rootTreeItems);
public TreeModel getModel() throws IntrospectionException {
if (_model == null) {
model = new ChildPropertyTreeModel(instance, "children");
return _model;
public void setListInstance(List instance) {
_instance = instance;
_model = null;
How can I open the links on the TreeItem treeItem1 = new TreeItem("Fish", "http://www.someurl1.com"); on a new page?

In your af:tree nodeStamp facet you have access to the node (TreeItem in your case). If your TreeItem has a getter method for the url (you did not provide the TreeItem code) you can put an af:goLink in the nodeStamp and set the destination attribute to #{node.url} and set the TargetFrame of the golink to '_blank':
<af:tree ...>
  <f:facet name="nodeStamp">
    <af:goLink text="goLink 1" id="gl3" destination="#{node.url}" targetFrame="_blank"/>Timo

Similar Messages

  • How can I open and listen to the PDF documents with audio in my iPad?

    How can I open and listen to the PDF documents with audio in my iPad?

    You need to use a PDF reader that supports multimedia. Adobe Reader 10.3 does not. Adobe has not stated whether it will support multimedia in the future.
    In the meantime, you could buy an application that does like PDF Expert. Read about it here:
    Finding the Best Tablet PDF Reader

  • Hey, im really sick of this, how can i open folders but in the same windows, when i open a folder which is inside of another one, it just open me a new window, its so annoying, could anyone tell me what to do? im using mac os 10.7.2

    hey, im really sick of this, how can i open folders but in the same windows, when i open a folder which is inside of another one, it just open me a new window, its so annoying, could anyone tell me what to do? im using mac os 10.7.2

    Finder > Preferences > General > Always open folders in a new window: uncheck

  • How can I save multiple links using the "save link as" function?

    I'm trying to save about 300 pdf files. The link to each one is listed ona website. To save each one I'm right clicking on the link, selecting "save link as" and repeat.
    How can I select multiple links and save them?

    Actually you can save multiple page pdf's in elements.
    Try something like this:
    (This is easier if you have the project bin open)
    1. Select the first page
    2. Right click on that page in the project bin and choose Add Blank Page or as many pages as you need.
    3. Use the move tool and drag your pages down into the blank pages in the project bin
    4 Then File>Save As>Acrobat.PDF

  • How can I open PDF files?  The usual procedures don't work for me.  Thanks.

    How can I open PDF files?  Until a couple of months ago, I had no problem.  Now I can open none of them.  I have Adobe Reader X.  Yesterday I uninstalled Adobe X, restarted the computer, and then reinstalled Adobe X.  No success.  Thanks.

    What happens if you open Reader first then use File>Open like Bernd suggested?
    Are you sure you are opening them in Reader and not a text editor or MS Word? I ask because Reader will not prompt you for a language.

  • How can i open a attachment with the fileextension .note sent from an Ipad

    A friend of mine sent me an email from his Ipad with an attachment which has the extension .note. How can I open this file on my Mac?

    It appears that this extension is related to the ipad app 'notability'. It would have to be exported as a pdf or rtf file to be opened.
    You can do some googling, but might be better if the sender converts the file to something more common and sends again.

  • If we have the original ipad, how can you open a pdf in the ibooks? the menu tap bar does not appear at the top of the screen like the new ipad2. Any suggestions?

    If we have the original ipad, how can you open a pdf in ibooks? The menu bar does not pop up like it does on the ipad2. Any suggestions?

    Are you in Safari and you want to copy them to iBooks, or you in a different app ? Assuming that you are using Safari, then if I open a PDF on my first gen iPad in Safari and tap on it, I then get a pop-up bar at the top of it with the 'Open In' options.

  • How can I open 'MPEG' file on the Mac?

    Hi! I'm a new user of imac. Before now, I used to use PC.
    Most of mac tools are strange for me on the Mac. T^T
    At this time, when I tried to click 'MPEG' files on the mac, the movie could not be opened.
    The window popped up and said,
    'The file is not a movie file.'
    but, When I opened 'MPEG' files on the PC, there were nothing problem to see.
    How can I open and import 'MPEG' files on the Mac? Plz help me

    You may need to purchase Apple's MPEG-2 Playback Component (it's included with FCP and DVD-SP). Also try opening the file with VLC Player or MPEG Streamclip.
    -DH

  • How can i open a link in new window (shift + Mouse Click) while not switching to the new window

    I want to open a new window (shift + Mouse Click) while not switching to the newly opened window. The focus should remain on the window from where i have opened the link.

    You can do that with tabs, but not with windows AFAIK.

  • How can i create a link in the context help from frontpanel elements like knobs and so on

    i want to create on context sensitive online help and therefore need to know how i can place a hyperlink in the context help from labVIEW of a frontpanel element

    lotto;
    You can place your help file in LabVIEW help directory, which should be in \help. If you place your help file in that directory, then when you start LabVIEW, you can access your help from LabVIEW's help menu (there will be an extra entry with the name of your help file.)
    To link your control or vi to this help file, open the front panel (or the panel where you edit the control) and open the VI setup. In the help path field write the following:
    :\name.hlp
    Where "name" in the name of your help file. in the "Help Tag" field you should enter the tag you already assigned to the topic in the help at design time. (I suggest the tag to be similar as the vi or control name.)
    After all this, the next time you start LabVIEW,
    you should be able to access the context help file to your control or vi by right-clicking on it and selecting "Online Help".
    IMPORTANT NOTE: Be aware that you may loose files you locate in special directories in LabVIEW, like the help, because those directories might be overwritten when you upgrade your software. Another option can be to locate your help file in a directory other than LabVIEW's help. The steps are almost the same, except that you won't be able to access your help file from LabVIEW's help menu.
    Best regards;
    Enrique
    www.vartortech.com

  • In vsn 6.0.2 how can I paste a link into the body of a Yahoo e-mail and have the pasted result appear as a link?

    o/s Windows XP Home
    vsn of Firefox 6.0.2
    Step 1) open firefox
    Step 2) copy link from address bar into clipboard
    Step 3) compose message in Yahoo
    Step 4) paste contents of clipboard into body of the e-mail
    result: the pasted value does NOT become a hyperlink
    <on same pc, with same contents in clipboard>
    Step 5) open IE
    Step 6) compose message in Yahoo
    Step 7) paste contents of clipboard into body of the e-mail
    result: the pasted value becomes a hyperlink ... the fact that the link becomes a hyperlink in the IE browser makes me think that there may be something in the Firefox browser that is controlling whether the pasted value becomes a link.
    I'm not sure, but I believe the update to firefox 6.0.2 was with the past few days.
    I'm not sure, but I do not believe the symptoms from steps 1 - 4 were present a few days ago
    Questions:
    1) could this feature have been introduced in 6.0.2?
    2) I would prefer it if the pasted value would become a
    hyperlink when working in firefox; what steps do I need to take to make this happen?
    Thank you

    Now Tony, I know you can't hear my tone on a forum post but I was not complaining, simply stating facts . This change brought several people in my office to a grinding halt in a long established workflow that is really rather simple (and I thought was already assumed from the original post above ):
    1) Select a set of records in FileMaker Pro 12 and export only their e-mail addresses as a CSV file.
    2) Open that CSV file in Excel.
    3) Copy the column of e-mail address.
    4) paste into the appropriate recipient field in Mail.
    5) Send
    If I were to complain it would be about Apple's typically opaque approach to updates. There is no granular explanation of why changes were made or even "what" changes were made.
    Complaining is futile since Apple is Apple and is unlikely to change, but sometimes it is cathartic to "shout into the void" .
    I had thought about doing something with a formula in Excel and your suggestion was simple and helpful. Again, however, it is only a workaround for a long established helpful behavior that Apple has inexplicably broken/removed in Mavericks Mail.
    I, and the other posters here, would love to have the capability back rather than have to add previously unneeded steps to our workflows.
    Ultimately we may add scripting steps to the FileMaker side to export the address lists with commas inserted already if Apple ends up having permanently removed this feature.

  • How can I add a link to the "New Tab" tab in Firefox?

    When I open Firefox my home page tab and 2 "New Tab" tabs opens. On the New Tab page there are some links. I want to add a link to this page like before.

    hello, you can drag and drop links from your bookmarks or history onto the new tab page and pin them there this way...

  • How can I open two libraries at the same time on itunes?

    Hey i need help on opening two libraries at the same time on itunes. I don't know if that is possible but need some advice if its possible. I already have several libaries but I need to compare labaries at times due to various users on my computer. Please help .

    Not that I'm aware of. What exactly is that you want to achieve? There are tools for scanning media folders and adding any files not listed in the library, or deleting those that no longer exist. There are also ways to use one library for multiple users so that any tag update gets applied for everyone.
    tt2

  • How can I copy a link when the site address doesn't show up in my address bar?

    When I click a link within my email, I am taken directly there but the links address doesn't pop up in the site address bar so I'm not able to copy and share it.

    It does not sound like you have done any of the domain setup.
    http://helpx.adobe.com/business-catalyst/partner/going-live-guide.html
    Adding a domain name to your site and taking site live

  • How can I open email links in emails that are sent to my inbox?

    The following message is displayed when I click on a link in an email in my inbox "Firefox doesn't know how to open this address, because the protocol (blockedhttp) isn't associated with any program."

    Use the link without "blocked". Remove "blocked" from your e-mail's URL. Use only https:// or http://something.com/dfadfkk...

Maybe you are looking for

  • Opening mini bridge in Photoshop, how to

    trying to have mini-bridge open while PS is also open to preview the pictures I am working with. I went to Windows>extensions> but extensions is not highlighted

  • Static Methods & Switch Statement

    Need help with a switch statement and static methods. My program offers the user a menu to choose what they want to practice. I want to use a switch statement to process the selection. Selecting 1, 2 or 3 causes the program to go to one of the follow

  • Combine two select statements in one SQL statements

    I have the following two queries that I need to combine into one query, where it updates a single row at the same time. SELECT count(*) FROM database.USAGE WHERE SERVICE_TYPE = 'C' AND ACCOUNT = "4837" SELECT sum(minutes) FROM database.USAGE WHERE SE

  • MapViewer 9.0.4 Beta - queryWithinRectangle

    Hi, I am trying to use one of the MapViewer Beans' functions. So far so good. But as soon as I tried queryWithinRectangle I got an error message of java.sql.SQLException: ORA-00907: missing right parenthesis. I turned the log level to finest to see t

  • Front Row Photos - Aperture Library does not contain photos

    Dear all, Front Row is working fine (iTunes, movies etc) except for photos. I don't use iPhoto, so it's linked to my Aperture Library. Front Row shows two Aperture Libraries: - Aperture Library - Library However both are empty. The structure is shown