How to hyper link the text that comes from database ?

Hi all,
Jdev Ver :11.1.1.4.0
I have one usecase like, to highlight(using af:commandlink) the keywords from some content..
And i have some set of keywords, and where ever the keywords appears in the content i need to show those words as a af:commandlink in the page ..
Anyone aware of this kind of usecase ? Please suggest some ideas..
thanks,
Gopinath J

Hi,
It is not straight forward, here is the sample code to do that where i replaced the text key with the hyperlink and bounded it to outputText
    <af:outputText value="#{<Bean>.text}" escape="false"/>
    //variable text inside bean with setters and getters
    private String text = "This is a sample text where the text key is shown as hyperlink";
    public void setText(String text) {
        this.text = text;
    //replaces the text "key" references with the hyperlink
    public String getText() {
        text = text.replace("key","<a href=\"http://google.com\">key</a>"); //escape sequence the quote to provide value for href
        return text;
    }Sireesha

Similar Messages

  • How many mAh is the battery that comes with the 8130?

    How many mAh is the battery that comes with the 8130?
    I opened my phone up and it does not say how many mAh it is. I am looking on ebay for an additional battery and want to get one equal to or better than the current one
    Solved!
    Go to Solution.

    The 8130 comes with a 900mAh battery. Make sure you get a compatible battery for the BlackBerry device. One is listed here:
    http://www.blackberrysource.com/store/catalog.asp?​item=782

  • How can I know the request is come from the link in header in the filter?

    I am using the tile for layout management and each page has a header, menu, and content body. I want to do something at the filter If the request is come from the commandlinks in the header and menu.
    How can I know the request is come from the link in header in the filter?

    Basically all you have to go on is the request data. Examine the encode/decode requirements for commandLink; you may be able to determine from the request attributes which commandLink has been invoked.

  • How can I display the texts that the user just typed in?

    Hello all, I am  using Captivate 5.5 and I am trying to realize this function:
    Have a text entry box for the user to type in their answers (can be a paragph and up to 400 words etc.), then the user clicks on the submit button and they will be able to read what they just typed in on the left of the screen, and the sample answer given by the course.
    In order to realize this, I placed one text entry box and make the value associate to a customized variable of "log_1". Then I have two text captions:
    one named "log_1_answer" and inside of it I put $$log_1; the other one named "log_1_sample". Both text captions are set to invisible at the enter of the slide.  Then I have the advanced action for the submit button of the text entry box as "show log_1_answer; show log_1_sample; hide text_entry_log1"
    When I previewed it, I got all logistics work. However, the texts that were shown in the text caption of log_1_answer only were only 15 letters.
    I wonder whether there is a restriction for the length of variables in Captivate that we can display? If so, is there other possible ways that I can realize what I want to do?
    Thanks for any suggestions.
    Here is the screenshot of my stage: the biggest white one with the submit button is the text entry box. The box with red borders is the display box, and the blue gray one on the right is to show the samle answer by the instructor.

    Hello,
    When you insert the user variable, watch the length in the dialog box. Default is indeed 15 characters, you'll have to change that as I did in this example. Too bad, you cannot change it after inserting the variable.
    Lilybiri

  • How can I change the text that displays in the IE Title Bar

    Hi--The title bar (bar at the top of the IE window) displays
    the title of my help system. I need to update the title, and I
    can't figure out where to do this.
    I checked my templates, skins, etc. and made sure they are
    all updated. Where does the text in the title bar come from?

    Just found it! File, Project settings....Project Title.

  • I have a transparent picture in my document. How do I get the text, that is typed over the picture, to not fade in color? I want all the text to be the same black color.

    I am creating a form and would like to put the conference logo in he background. I added it and made it transparent but I want the text to not change it's shade of black when I type over the picture. Is there a way to make that happen?

    Insert your text in a text box which you will put above the picture.
    Yvan KOENIG (VALLAURIS, France) dimanche 25 septembre 2011 22:21:18
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • How to grab the view that comes from Onyx?

    Hello,
      i started using Onyx project recently. That's really amazing what it does. I am wondering if there is some possibility to check the main view ... let my try to explain this.
    I want to change option for esxi5 box - advanced/Logging to external syslog server.
    While in gui i did my steps and Onyx prints the output:
    # ------- UpdateOptions -------
    $changedValue = New-Object VMware.Vim.OptionValue[] (1)
    $changedValue[0] = New-Object VMware.Vim.OptionValue
    $changedValue[0].key = "Syslog.global.logHost"
    $changedValue[0].value = "tcp://x.x.x.x:514"
    $_this = Get-View -Id 'OptionManager-EsxHostAdvSettings-456'
    $_this.UpdateOptions($changedValue)
    This is working as expected. I can throw this to powercli and it will set up the option. This will work only for that particular esxi box. I want to create a loop that will change this option for each esxi box in the cluster.
    The view that onyx is using is : "Get-View -Id 'OptionManager-EsxHostAdvSettings-456'"
    So he already knows the view/host moref .
    But if i would like to have this in a loop so it will do it for each host, so  how can i get to that kind of view ?
    So far i could only build something like
    foreach($vmhostview in (get-view -viewtype HostSystem -Searchroot (get-cluster "xxyyzz").id))
    $changedValue = New-Object VMware.Vim.OptionValue[] (1)
    $changedValue[0] = New-Object VMware.Vim.OptionValue
    $changedValue[0].key = "Syslog.global.logHost"
    $changedValue[0].value = "tcp://x.x.x.x:514"
    $number=$vmhostview.moref.split("-")[1]
    $_this = Get-View -Id OptionManager-EsxHostAdvSettings-$number
    $_this.UpdateOptions($changedValue)
    Which is totally stupid approach i belive although it's working.. splitting moref...
    After some time i noticed that
    http://pubs.vmware.com/vi-sdk/visdk250/ReferenceGuide/vim.option.OptionManager.html
    Says that OptionManager is the property from Config manager. So from that i could get the id of this view:
    ((get-vmhost myHost |get-view).ConfigManager.AdvancedOption).ToString()
    which will result in output : OptionManager-EsxHostAdvSettings-456
    So having this i could do my loop at the end:
    foreach($vmhostview in (get-view -viewtype HostSystem -Searchroot (get-cluster "xxyyzz").id))
    $changedValue = New-Object VMware.Vim.OptionValue[] (1)
    $changedValue[0] = New-Object VMware.Vim.OptionValue
    $changedValue[0].key = "Syslog.global.logHost"
    $changedValue[0].value = "tcp://x.x.x.x:514"
    $_this = Get-View -Id ($vmhostview.ConfigManager.AdvancedOption).ToString()
    $_this.UpdateOptions($changedValue)
    Now i do not know that it was just a luck that i found the location of this view name or is this the way how i am supposed to find the view id name. I am wondering how other people are handling that kind of case, if there is easier way to do it. If someone could share his experience i would really appreciate it.
    Regards,
    Greg

    There is no need to construct these View-Ids as you see them coming from Onyx.
    In fact I would write that script like this
    $changedValue = New-Object VMware.Vim.OptionValue[] (1)
    $changedValue[0] = New-Object VMware.Vim.OptionValue
    $changedValue[0].key = "Syslog.global.logHost"
    $changedValue[0].value = "tcp://x.x.x.x:514"
    Get-View -ViewType HostSystem -Searchroot (Get-Cluster "xxyyzz").ExtensionData.MoRef | %{
      $optMgr = Get-View $_.ConfigManager.AdvancedOption
      $optMgr.UpdateOptions($changedValue)
    Move the part that doesn't change with each HostSystem outside the loop
    The ConfigManager is an array with MoRefs that point to the respective Managers. You can just do a Get-View with a MoRef and it will return the object representing the Manager
    From the Manager object you can now call the method
    Btw, you better consult the latest SDK Reference.
    You can find the HostConfigManager here.

  • How do I manage the menu that comes up when I right-click and select "Edit In" ?

    Right now I have 17 programs/apps/plugins that appear in that menu.  I am going to have reinstall an earlier version of a program that I use a lot (OnOne) and that's going to add another half a dozen items to the list.  I only need one or two of the apps in that suite.  And then I may add another suite, the Topaz apps, and that will further add to the confusion.
    All of these 3rd party applications are connected to Lightroom via Plugins, but a lot of them do not appear in the listings in the plugin manager.
    Is there any way to manage that menu from within Lightroom?
    --PS

    Hi
    You csn add new applications in prefernces externsl editor.

  • How can I extract the create preference script from database

    I have 10.2.0.3 database. I have a schema that has text schema indexes. I need to load the data to another user.
    Here is my steps:
    1. create a new user dev.
    2. expdp user prod
    3. impdp prod to dev META_DATA_ONLY
    4. drop schema indexex, otherwise, there is error.
    5. recreate schema index.
    My problem is when I recreate the indexes. I got this error
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10700: preference does not exist: OCS_IDCCOLL1_LEXER
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 364
    I ran
    select pre_name from CTX_PREFERENCES wehre pre_owner='PROD'
    OCS_IDCCOLL1_LEXER
    How can I recreate the OCS_IDCCOLL1_LEXER for user dev?
    Thanks a lot!

    Try running CTX_REPORT.CREATE_INDEX_SCRIPT: see http://download.oracle.com/docs/cd/B14117_01/text.101/b10729/admin.htm#CACFCCDA.

  • Translating English strings that comes from database from into Hindi

    Hi
    I am developing an application for a school trust.
    The application generates progress reports of the students of the school.
    I have to design reports in Hindi language since the school is Hindi medium. How can I translate the English strings that I am taking from database into hindi.
    Please help.

    Hi,
    In my application it may not require to translate the meaning of the string. (ie, "Excellent" to it's hindi equivalent).It will do if I can only
    display the string in hindi. (ie, "Shailendra" in hindi). But since there are more than 3000 student names (and will be increasing per year), I can not do this by storing the translation somewhere. Is there any other method to do that. Is the code to display an English string into hindi
    or somewhat similar to this available on the net. Please Help.
    Thank you.

  • How do I change the city that comes up on my homepage?

    When I start Firefox the details of news are for Denver Co and if I do a search for a business it brings up businesses in and near Denver Co. Why does it do that and how do I change that? Can it be changed without having to sign in to my email?

    Many websites show the local content for the IP address the user is using. Your IP address might be one that is thought to be in or around Denver, CO.
    What does this page say about your location? <br />
    http://whatismyipaddress.com/

  • How to track the URL that comes from a referred page using XSQL Custom Handler

    Hi,
    I have a cold fusion page(say cf.cfm) that sent a request to xsql page(say test.xsql) and then xsql page displays results. I want to capure the URL of cf.cfm page and then after checking its host name and path name for correctness then want to display the test.xsql results.
    Please let me know how can I capture URL of the refered page(cf.cfm) in the Custom Handler and then I want to extract host-name and path-name out of that url and on the basis of their values I want to display the result of XSQL page(test.xsql).
    Regards
    a2012

    req.getHeader("Referer") will return the referring url

  • How do you edit the names that come up when you compose a new message?

    i open mail and hit 'new message'.
    then i click in the 'To' row and start to type a name.
    it autofills names for me as i type, but where does it get the names from? and how can i edit that list ?
    - e.g. my wife has changed her e-mail address. i already changed it in my address book. but the old address still appears...?
    i've tried scrolling down to it so it goes blue, then hitting the delete key (like on a pc). no joy.
    any advice?!
    thanks in advance
    paul

    Hi it's probably appearing from your Previous Recipients List...
    In Mail Click on Window... Select and Click on Previous Recipients...
    Click on and Delete the Names and Addresses you no longer want...
    Cheers,

  • How can I eliminate the toolbar that comes up every time I swith websights and says Firefox prevented this page from automatically redirecting to another page and when nothing comes up I have to hit ALLOW and most of the time it screws me up

    I am running OS10 on a MAC and every time I go too another web site (most of the time) a new tool bar pops up that says " Firefox prevented this page from automatically redirecting to another page" and on the other end I must hit the button ALLOW because it is usually screwing me up and Iwant to disable it or use another browser

    Options > Advanced > General, un-check "Warn me when web sites try to redirect or reload the page"
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • How can I use the remote that comes with MacBook?

    I have a MacBook remote (old macbook, not the pro). I no longer have the macbook computer, but I hope I can still use the remote. I do not know how. Please help me.

    Only if it has IR support. Otherwise, it cannot. You would need to connect an IR receiver to the USB port.

Maybe you are looking for

  • My iPod touch (4th gen) suddenly went blank, and I can't get it back on!

    I was listening to music and downloading songs from the iTunes Store on my iPod touch (4th gen) when suddenly the screen went blank. The music I was listening to was still playing in my headphones. When I unplugged the headphones, the music oddly con

  • Output Type ZNEU not coming as default

    Dear Al, I have configured for output type ZNEU for PO printout.By entering manually znue in the message I can able to take printout. But I want to get ZNEU as default once I create PO. I have maintained condition also. Any tips?  please With Regards

  • Printing right-justification problem

    I have tried to use several methods to accurately determine the rendered width of a string in order to position it at (right_edge - width) --that is, right-justified.  The problem is, all of the methods I have tried seem to under-report the length, r

  • Not getting connection with Oracle 10g

    Dear All, I have installed oracle 10 g on linux , but when I want to connect it gives error msg like this "Firefox can't establish a connection to the server at 127.0.0.1." Please give me reply

  • Urgent: Error in opening custom OAFpage from forms of custom responsibility

    Hi All, I have a custom responsibility to which some of the form functions(like submit conc requests,view requests, profile...are attached) and some of the custom oaf page functions are attached. When i try to open the attached custom oaf page when i