How do I create dynamic HREF anchors??

Is there any way where I can get a value rendered from a Bean into JavaScript??
how do I write a javaScript function that can read in the commandLink
Can I do like this??? Let me know; this is kind a vague :-(
Eg:
<h:dataTable var="test" value="#{TestBean.list}">
<t:column>
<t:commandLink value="#{test.name}" id="pathway"  onClick="dosomething(#{test.name})" />
<t:column>
</h:dataTable>
<script>
doSomething(test)
document.location.href="#test";
</script>
//Essentialy the goal is to create dynamic Hrefs

use h:outputLink

Similar Messages

  • How can we create dynamic pie chart in jsp

    hi im a new jsp programmer and i just want to know how can i create dynamic pie chart in jsp

    http://sourceforge.net/projects/jfreechart
    - Saish

  • HOW do I create a href to an sql statement?

    Answer to query:
    “You sould create a href to an sql statement ( create new user / passwd : and insert in a table (C_user,C_PASSWD), to have a list of users registred at your application)
    A htp page can manage this
    you should create roles that be granted to users,
    1- create &user dientified by &passwd;
    2- create role1....;
    3- grant &role1 to &user1;
    :user will be added by user if he chooses registration href.
    then he must add information in order to continue registration or push OK to confirm registration and let oracle grant previleges to the new user, a trigger can insert the new informations to the user_table_traces.”
    MY QUESTION:
    HOW do I create a href to an sql statement?
    Thank You

    Hello,
    I have an application written in PL/SQL that sits on top of an Oracle database. I want to know how add a password/login feature to the application. In other words the user can go to a certain URL to access and use the application. However when the user clicks on a certain link that is restricted, then the webpage displays fields so that the user has to enter a username and password. In order to access restricted features of the application such as ADD, UPDATE and DELETE.
    Thanks

  • How can i Create Dynamic mailing lists with Iplanet Delegated Administrator

    Hello people,
    Could anyone help me in this matter please?
    I am running IMS5.2 with Netscape Directory4.16. I need help about how to create a Dynamic Mailing list using de Iplanet Delegated Administrator, not using the traditional Netscape Console.
    If someone can help me, i will apreciate.
    bye.
    Azim Lakha

    In 24.4.0 there is no File|New|Address Book. There is File|New|Address Book Contact. How do I create a new address book ?

  • How do we create Dynamic Breadcrumbs

    Hi All,
    I have 10 tabs, a->b->d....->j. which is having two master pages like 1->2->a->b->........->j
    I have to go to 5th tab from two different pages, How can I create breadcrumbs dynamically?
    it should show like this 1->2->abc(new page)->5th tab
    Please give me some suggestions.
    Thanks in advance.

    I do not have an online example. In my case, I had one page I had to display different breadcrumbs on and navigate to another page from there, e.g.
    Main page -> Page with dynamic breadcrumb -> Another page
    You populate a breadcrumb item with a breadcrumb value on a page with a dynamic breadcrumb depending on your scenario or conditions, e.g.
    Main page -> This is my first option -> Another page
    or
    Main page -> This is my second option -> Another page
    ====
    ON LOAD
    if some condition then
    :breadcrumb := 'This is my first option';
    else
    :breadcrumb := 'This is my second option';
    end if;

  • How can I create dynamic file references in Power Query?

    Hi all,
    I'm new at using PowerQuery, and so far I like it. There's one thing I am struggling with though... Once I have set up my PoweQuery connections, I don't find an easy way to change the file to which the query is connecting. I'm using it for a monthyl recurring
    process, and every month the source data to query on woudl be different. The same in format/structure, but just a different dataset.
    Is there a way to make the source setup more dynamic? Can I for example in a parameters sheet enter the name and path of the new source file and update the queries?
    Currently the Advanced editor shows me following file reference:
    let
        Source = Excel.Workbook(File.Contents("Z:\Templates\EMEA\Source Data Tables\EMEA_EW_Source_Data_for_Power_Queries v1.xlsm")),
    Thanks in advance for suggestions

    Yes, this is something that you can do with Power Query. Here's how you can do it:
    Create a table in Excel containing your parameter value. Let's say that it has one column, called ParameterValue, and one row.
    Create a new Power Query query that gets the data from this table. Call the query something like ParameterQuery.
    In your original query you will now be able to reference values from your parameter query by saying something like this:
    Source = Excel.Workbook(File.Contents(ParameterQuery[ParameterValue]{0})),
    HTH,
    Chris
    Check out my MS BI blog I also do
    SSAS, PowerPivot, MDX and DAX consultancy
    and run public SQL Server and BI training courses in the UK

  • How I can create dynamically-formed requests or use native SQL in EJB?

    Hi all.
    I'm working around modify an example from NetWeaver Developer Studio (CarRental). I want to get ordered data from table and allow users to specify the ordering field, not in the code. EJB QL doesn't support dynamically-formed queries like "select object(b) from QuickBooking b where b.status like ?1 order by b.<b>?2</b>" so i can't passing field name as parameter into query. Creating a sorting method for every field is not good solution because I need a dynamically-formed requests.
    I think using native SQL will help but I don't know how I can use SQL in EJB.
    Thanks,
    Lev

    import javax.persistence.EntityManager;within class, place
    protected EntityManager  entityManager;of course make it public, private, whatever you need.
    Then, in your method
    entityManager.createNativeQuery(....);R. Grimes

  • How do I create dynamic external links

    I am attempting to create a dynamic link from information
    stored in a sql database. The database table has one field, the
    website address. The code below successfully pulls the information
    from the database but it does not display as a link, only as text.
    <?php do { ?>
    </MM:DECORATION></MM_REPEATEDREGION>
    </a>
    <MM_REPEATEDREGION SOURCE="@@rs@@"><MM:DECORATION
    OUTLINE="Repeat" OUTLINEID=2><p><?php echo
    $row_rskingsLinks['kingsLinks']; ?></p>
    <a href="<?php echo $row_rskingsLinks['kingsLinks'];
    ?>">
    <?php } while ($row_rsKingscentre =
    mysql_fetch_assoc($rsKingscentre)); ?>
    I have added the following code to create a link but it trys
    to link to a local url which it can not find
    <?php do { ?>
    </MM:DECORATION></MM_REPEATEDREGION>
    </a>
    <MM_REPEATEDREGION SOURCE="@@rs@@"><MM:DECORATION
    OUTLINE="Repeat" OUTLINEID=2><p><a href="<?php echo
    $row_rsKingscentre['']; ?>"><?php echo
    $row_rskingsLinks['kingsLinks']; ?></a></p>
    <a href="<?php echo $row_rskingsLinks['kingsLinks'];
    ?>">
    <?php } while ($row_rsKingscentre =
    mysql_fetch_assoc($rsKingscentre)); ?>
    </a></div>
    <?php echo $row_rskingsLinks['kingsLinks'];
    ?></a></p>

    Where are you getting this code?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "jeffoirecoupe1234" <[email protected]>
    wrote in message
    news:g147fb$cnv$[email protected]..
    >I am attempting to create a dynamic link from information
    stored in a sql
    > database. The database table has one field, the website
    address. The code
    > below
    > successfully pulls the information from the database but
    it does not
    > display as
    > a link, only as text.
    >
    > <?php do { ?>
    > </MM:DECORATION></MM_REPEATEDREGION>
    > </a>
    > <MM_REPEATEDREGION
    SOURCE="@@rs@@"><MM:DECORATION OUTLINE="Repeat"
    > OUTLINEID=2><p><?php echo
    $row_rskingsLinks['kingsLinks']; ?></p>
    > <a href="<?php echo
    $row_rskingsLinks['kingsLinks']; ?>">
    > <?php } while ($row_rsKingscentre =
    > mysql_fetch_assoc($rsKingscentre));
    > ?>
    >
    > I have added the following code
    > <?php do { ?>
    > </MM:DECORATION></MM_REPEATEDREGION>
    > </a>
    > <MM_REPEATEDREGION
    SOURCE="@@rs@@"><MM:DECORATION OUTLINE="Repeat"
    > OUTLINEID=2><p><a href="<?php echo
    $row_rsKingscentre['']; ?>"><?php echo
    > $row_rskingsLinks['kingsLinks'];
    ?></a></p>
    > <a href="<?php echo
    $row_rskingsLinks['kingsLinks']; ?>">
    > <?php } while ($row_rsKingscentre =
    > mysql_fetch_assoc($rsKingscentre));
    > ?>
    > </a></div>
    >
    Text
    Text
    <?php echo
    $row_rskingsLinks['kingsLinks'];
    > ?></a></p>
    <?php echo $row_rskingsLinks['kingsLinks'];
    > ?></a></p>
    >

  • How would i create dynamic categories.

    http://www.quietlyscheming.com/blog/components/flexbook/
    http://www.rubenswieringa.com/blog/flex-book-component-beta
    I am trying to create a dynamic flipbook, the first one i
    ever made in flex is here.
    http://proof7.com/holiday2008/
    Now I am trying to create a book with a few different
    categories. 8 to be specific.
    How would I go about creating a book with sub categories that
    will allow me to click a menu or button, to flip to the next
    category, but the actual page contents be dynamic?
    The other members of my team say that it can be achieved
    through XML, but I havent seen any examples showing how to
    dynamically generate pages from the DB. Some say use the URLloader.
    The code is from the QS version. I like this one because it
    has the zoom but I have to figure out how to get it to talk with
    the backend first.
    Any help would be greatly appreciated.
    Court

    http://www.rubenswieringa.com/blog/flex-book-component-beta
    Nobody ever created a project that had more than 1 category
    with this component?

  • How can I create a href with cfgridrow

    Basically I am using cfgrid to display a list of computer from a query.  I would lke to be able to; when I click on the first colum in any row to display a cfm page that will be able to display relevant information to a specific computer.  I will be passing parameter with theurl parameter.  Theses parameter are generated by my original query.
    here is the code i am trying to use.  I didn't include the href.
    This code works OK.  The 2 variables I am trying to send via URL are #machine# which is created from a query and URL.Hotel which is was send thru the URL when I opened this page. (the cfoutput tag were remove )
    <!---<table border="1"
      <TR>
        <TD> PC Name </TD>
        <TD> IP Address </TD>
        <TD> User Name </TD>
      </TR>
      <cfoutput query="listRet">
      <tr>
        <td><a href="ListApp.cfm?pc=#URLEncodedFormat(Trim(Machine))#&hotel=#URL.hotel#">#Machine#</a></ td>
        <td>#IPAddress#</td>
        <td>#Description#</td>
      </tr>
      </cfoutput>
    </table>--->
    Now can I do the same with a cfgrid and cfgrid row
    <cfform format="flash">
    <cfgrid
      query="listRet"
      name="gridPc"
      height="400"
      width="1000">
      <cfgridcolumn name="Machine" header="PC Name" headerbold="true" headertextcolor="blue" width="120">
      <cfgridcolumn name="Description" header="User Name" headerbold="true" headertextcolor="blue" width="250">
      <cfgridcolumn name="IPAddress" header="IP Address" headerbold="true" headertextcolor="blue" width="120">
      <cfgridcolumn name="SystemName" header="Model" headerbold="true" headertextcolor="blue" width="275">
    </cfgrid>
    </cfform>
    Thanks

    You can just use the HREF attribute of CFGRID directly, and it'll automatically pass a row-specific value. You won't be able to specify the exact URL attributes that will be passed - it'll pass a single attribute called "cfgridrow" if I recall correctly.
    Dave Watts, CTO, Fig Leaf Software
    http://www.figleaf.com/
    http://training.figleaf.com/
    Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
    GSA Schedule, and provides the highest caliber vendor-authorized
    instruction at our training centers, online, or onsite.

  • How do I create a HREF link to javascript-created ages?

    Hello,
    I'm not sure where else to turn with this question, so I
    apologize if it's not forum-related.
    I'm using DreamWeaver MX to edit and tweak pages that are
    created with Extensis Portfolio 8 and their NetPublish plug in. I
    am attemping to add a link to my Search, Results and Details pages
    that would open each of these pages in a new window in order to
    make them "printer-friendly" (these pages are currently nested
    within a few frames). The catalog that I've created features
    keyworded photos, and since the users will all get different search
    results based on what they're looking for, the address will always
    vary (especially for the Results page). An example of this address
    would be:
    http://ourwebadress/netpub/server.np?find=&catalog=catalog&site=catalognamehere&template=
    results.np&field=Keywords&op=matches&value=Dallas&value=brownstone&field2=Keywords&op2=
    matches&search=View+Your+Search+Results
    This address shows images based on my search for "Dallas" and
    "brownstone," and because this address would change with every new
    search it's useless as a permanent link.
    My questions is, is there an HREF link command (or perhaps
    something else) that would simply open the existing page in a new
    window, no matter what the page's current HTTP address is? Any
    insight with this would be very appreciated!
    Many Thanks!

    Adobe does NOT make the iPad, Apple does.
    This forum is not for general iPad questions. For that head to the forums at the Apple website: www.apple.com.
    You can download the documentation for your iPad in PDF form at the Apple website, and ask questions there.

  • How do I create a HREF link to javascript-created pages?

    Hello,
    I'm not sure where else to turn with this question, so I
    apologize if it's not forum-related.
    I'm using DreamWeaver MX to edit and tweak pages that are
    created with Extensis Portfolio 8 and their NetPublish plug in. I
    am attemping to add a link to my Search, Results and Details pages
    that would open each of these pages in a new window in order to
    make them "printer-friendly" (these pages are currently nested
    within a few frames). The catalog that I've created features
    keyworded photos, and since the users will all get different search
    results based on what they're looking for, the address will always
    vary (especially for the Results page). An example of this address
    would be:
    http://ourwebadress/netpub/server.np?find=&catalog=catalog&site=catalognamehere&template=
    results.np&field=Keywords&op=matches&value=Dallas&value=brownstone&field2=Keywords&op2=
    matches&search=View+Your+Search+Results
    This address shows images based on my search for "Dallas" and
    "brownstone," and because this address would change with every new
    search it's useless as a permanent link.
    My questions is, is there an HREF link command (or perhaps
    something else) that would simply open the existing page in a new
    window, no matter what the page's current HTTP address is? Any
    insight with this would be very appreciated!
    Many Thanks!

    Thank you.  After renaming the ePub file extension to ZIP, I updated the html files to replace the "http://tel" with "tel", rezipped the files, renamed to ePub -- and this corrected the issue.

  • How can we create dynamic query

    can any one please tell me how can we cretae a dynamic query in android by join two tables

    Hi Mousumi,
    Can you please be more brief on the question.
    cretae a dynamic query in android by join two tables
    What do you mean by this ?

  • How can I create "drop caps" Anchored frames tool: "Run into Paragraph" in a text document, and at the same time be able to feather the text to the bottom of the pages? I´m using FrameMaker 10.

    @

    Presumably you are doing the DC as a single letter inside an Anchored Frame run-in from left.
    Back when FM had a manual, this was the method discussed in the manual. The manual, however, also said "Framemaker does not feather text in a text frame in which text runs around graphics."
    That was FM7.0. I don't know if FM has enhanced DC or feathering since then.
    If I had the requirement, I might look at putting the whole lead paragraph in a borderless table.

  • How do I create dynamic scrolling text in Flash CS5?

    Hi everyone,
    I am a complete newbie to Flash. I'm tyring to build a scrolling text box that automatically scrolls. On mouse over, I want the scrolling to stop so users can click on an item in the text box. All of the items will be tied to external hyperlinks. I want to populate the text box with an external file. I've done some searches on Adobe, but haven't found anything that takes me through the whole process.
    I have the complete Adobe Master Collection. So if this is easier in Flash Catalyst, let me know. I know how to buid a manual scroll box in Flash Catalyst. Could I export this to and add the auto-scrolling?
    Remember, I'm a complete newbie.
    Any help will be greatly appreciated.
    Thanks!

    Thanks again Kglad,
    I really have no preference of Action Script since I don't have any significant experience with either one.
    I'll keep doing searches to see if I can get the information I need.
    Have a great holiday.

Maybe you are looking for

  • How do I get the music from my iPhone and iPod onto my new macbook pro?

    I have an ipod with some music, and iphone with other music and my partner has an ipad with other music ... I have just bought a macbook air and want to get it all onto the air ... help!!!

  • "Invalid Drive X:\" install errors

    Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software products that may be mentioned in the topic below. Apple encourages you to first seek a solution at Apple Support. The following links are provided as

  • Flash Player not working on Facebook

    I have windows 7 64bit home premium I have flash player 10.3.181.26 installed But when i try to play video on facebook and click on them the video doesn,t play it just disappears and a blank box is were the video was. No error messages. I am using IE

  • Can't load swf into editable region

    Am using DW CS4 in W7 64. Have designed an html site with one page that has a swf to control dynamic content with php. All the pages are created based on one template and al is fine until I try to place the flash file in the editable area of the html

  • ITunes movies poor video quality (very pixelated)

    Just bought a 5th gen nano, and synced it with some videos we bought on iTunes. The videos play but they are extremely pixelated. I have tested it on a few movies, and they are all the same. They are just SD movies or TV shows. Even our kids cartoons