Genrating unique tagIds with in a repeater for acessing from javascript

Hello BEA experts,
I am trying to generate unique tagids for elements with in a repeater so as to be able to access them using javascript to do some validations , I tried using scriptlets like <%=i%> and also tried using the {container.index} property by appending it to the tagId ,but they are not being generated uniquely ..
Can anyone point me out in the right direction has anyone done this before..Any hints?
Thanks in advance
-Bob

Hi Bob
Here is a sample to generate unique id's and access them in java script.
I basically had the tagid generated using expressions to be unique like below
<netui:checkBox tagId="<%=checkBox+(j++)%>"
dataSource="{container.item.chkBox}" />
Thanks
Vimala
Here is the full jsp source:
<netui:html>
<head>
<title>
Web Application Page
</title>
<script language="JavaScript" type="text/JavaScript">
function printValues()
for (i=0;i<3;i++) {
alert (document[getNetuiTagName("myform")][getNetuiTagName("String"+i)].value)
alert (document[getNetuiTagName("myform")][getNetuiTagName("Check"+i)].checked)
alert (document[getNetuiTagName("myform")][getNetuiTagName("Radio"+i)].checked)
</script>
</head>
<body>
<netui:form tagId="myform" action="displayChoice">
<%!int i=0; String str="String"; String checkBox="Check";int j=0; String radio="Radio";int k=0;String textBox="Text";int l=0;%>
<netui-data:repeater dataSource="{actionForm.formList}">
<netui-data:repeaterHeader>
<table class="tablebody" border="1">
<tr class="tablehead" valign="top">
<th>ChkBox</th>
<th>Str</th>
</tr>
</netui-data:repeaterHeader>
<netui-data:repeaterItem>
<tr valign="top">
<td> <netui:hidden tagId="<%=str+(i++)%>" dataSource="{container.item.str}" /> </td>
<td> <netui:checkBox tagId="<%=checkBox+(j++)%>" dataSource="{container.item.chkBox}" /> </td>
<td> <netui:radioButtonGroup dataSource="{actionForm.radioStr}">
<netui:radioButtonOption value="Good{container.index}"> </netui:radioButtonOption>
</netui:radioButtonGroup>
</td>
<td> <netui:select defaultValue="{pageFlow.defaultValues}" dataSource="{container.item.selectStr}" size="5"> </netui:select></td>
<td> <netui:textBox dataSource="{container.item.strText}" /> </td>
</tr>
</netui-data:repeaterItem>
<netui-data:repeaterFooter></table></netui-data:repeaterFooter>
</netui-data:repeater>
<netui:button value="displayChoice" type="submit" onClick=""/>
</netui:form>
<table>
</body>
</netui:html>

Similar Messages

  • Performance problems using WLS6.1 with the thin driver for Ora9i from OTN

    Hello everyone,
    Has anyone been experimenting with the thin driver for Oracle 9i under WLS6.1. I got it running, but
    I get extremely bad performance when having multiple concurrent accesses. It works more or less in
    single user mode. Also it seems not to support XA transactions?
    When could we expect the driver from BEA to be out?
    Thanks in advance!
    Samuel Kounev
    TU-Darmstadt, Germany

    I had done this from the very beginning, but I was still getting very bad performance under
    concurrent accesses. I even followed Sree's instructions and removed the old thin driver from
    weblogic.jar, but this didn't help. I am now trying to get the OCI driver for 9i running and hope
    this will solve the problem.
    Samuel
    Tamilselvan Ramasamy wrote:
    You have to use Oracle's Oracle 9i thin driver .
    put this driver infront of the classpath i.e before weblogic_sp.jar and
    weblogic.jar
    /selvan
    "Sree Bodapati" <[email protected]> wrote in message
    news:[email protected]..
    The BEA driver is available in WLS6.1SP2 which is GA.
    hth
    sree
    "Samuel Kounev" <[email protected]> wrote in message
    news:[email protected]..
    Hello everyone,
    Has anyone been experimenting with the thin driver for Oracle 9i under
    WLS6.1. I got it running, but
    I get extremely bad performance when having multiple concurrent accesses.
    It
    works more or less in
    single user mode. Also it seems not to support XA transactions?
    When could we expect the driver from BEA to be out?
    Thanks in advance!
    Samuel Kounev
    TU-Darmstadt, Germany

  • CFGRID with bind to CFC for an incorrect JAVAScript

    Hi,
    I am using CF11 with SQL server 2012 & IIS8.0 on windows server 2012.
    When I am using a CFGRID bind to a CFC and passing 2 or more than 2 parameters from a FORM, it fails for an incorrect JavaScript.
    Using the below code:
    <cfgrid attributeCollection="#args#"
    bind="cfc:MaintenanceMenuComponent.getLookUpData({cfgridpage},{cfgridpagesize},{cfgridsortcolum n},{cfgridsortdirection},{appl},{search})"
           onchange="cfc:MaintenanceMenuComponent.editLookUpData({cfgridaction},{cfgridrow},{cfgridchanged})"
           onerror="errorHandler" bindOnLoad="true">
    Getting Result:
    JavaScript Error for:
    SyntaxError: missing ; before statement
    ...id'] = 'applid,appl,,value;'search,search,,value';var _cf_gridDataModel = Ext.cr...
    I have checked the Adobe blog and found that this type of bug (Bug ID# 3759630) is already reported and fixed in ColdFusion 11 Update 1 (Suggested by Anit Kumar Panda Ref: https://bugbase.adobe.com/index.cfm?event=bug&id=3759630).
    I have sent update request to '[email protected]' but did not receive any update from them yet.
    As this update is still not available on Adobe site, can anyone send me that link of the update or let me know if there any workarounds.
    Thanks in advance

    MAHI,
    The issue exists and is fixed. The fix would be made available in a future udpate. The error you are reporting seems different, though.
    The bind attribute appears to have a typo. Shouldn't "{cfgridsortcolum n}" just be "{cfgridsortcolum}", or is that intended?
    The email address that you wrote to for the fix seems correct. Can you pls. resend the request.

  • ChaRM - transport with error keep repeating for every transport job

    Dear experts,
      We are using ChaRM for our transport. There are always transport will returned with error. And I believe this is a feature provided by ChaRM, that all these transport with error will be retransport again during next run. Is there anyway to stop this? Some is in the list of "Correct Import (Repair Flag)" in task list, but some is not.

    Hello FlyingFox,
    I assume that we consider a urgent correction with different transport requests:
    tr #1 :       retrun code 0
    tr #2 :       retrun code 8
    tr #3 :       return code 0      (but tr #3 didn't resolve the problem of tr #2)
    Starting the import again, transport requests #2 and #3 have to be imported.
    Sequence errors will be possible, if only tr #2  is imported again.
    Therefore:
    mark those transport requests, which shouldn't be imported again via task list ('correct transport requests manually' as you described -  in our little example: mark tr #2).
    Afterwards only new tranport requests will be included (e.g. tr #4).
    Best regards
    Horst
    Edited by: Horst Förster on Oct 25, 2011 11:37 AM

  • No printing with app HP Print for Chrome from Chrome web store

     As more users I can't choose my HP 1606DN as a local destination when printing from my chromebook. The printer has a fixed ipv4-address 192.168.10.51, latest firmware 20150114, bonjour enabled and ipv6 enabled. My Chromebook is an Acer 720P in developer mode with Versie 43.0.2357.125 (64-bit) Platform 6946.58.0 (Official Build) stable-channel peppy Firmware Google_Peppy.4389.89.0 I can use the printer as a cloudprinter. I get the webserver with the ipv4-address. I can add the name and ip-address in the app but the printer doesn't appear in the local destination list. What goes wrong?

    Hi,HP Print for Chrome is a new extension, therefore its documentation not yet fully available and there is no list of supported printers yet. However by reviewing its current documentation I notice the following information:Which printers support HP Print for Chrome?
    HP Print for Chrome supports a wide range of new and old HP printers that support PCL3GUI or PCLm printer language.
    For detailed information about which HP printers are supported, go to Printers that Support HP Print for Chrome.http://support.hp.com/rs-en/document/c04683559 As the HP Laserjet Pro P1606dn uses the PCL5 language it is not supported by the app, only PCL3 or PCLm printers are supported. You may only use Google Cloud Print for your printer. Regards,Shlomi

  • Authenticate for SPO from javascript, specifically WinJS

    I'm tinkering with SPO in a WinJS app.
    I'm having a couple of issues with authentication.  I've seen... this http://pholpar.wordpress.com/2013/05/11/accessing-office-365-sharepoint-sites-using-rest-from-a-local-html-javascript-host/
    Which seems to do it, I've tested and for the most part it does.  However...
    1.  It only works with the root site collection.  With mysite.sharepoint.com/sites/foo it doesn't work.  I need to use the root url to authenticate, then use the full URL (/sites/foo) to query the REST API.  However, what happens if I
    have a user that has permission on /sites/foo, but not in the root site collection?
    2.  Is this really the best/only way?  It seems ever so clunky, receiving a huge responses just to authenticate.  I've used
    this before in C# from Wictor Wilen, but this is of course a C# solution that depends on the .net framework, so I would need to host a local or Azure WCF service.  Something I'd rather avoid.
    3. What would be ideal is to somehow use the standard MS Auth screen and simply get back the token from that?? Is that possible?
    Thx
    Steve

    Hi Khiem,
    It seems that you want to host the WinJS project in WebView control, is that right? If not, feel free to let me know.
    Based on my knowledge, you cannot do this. WinJS project and C# store app project are different. WinJS project works on Windows Library for JavaScript 2.0, but there is no option to add this reference in C# windows store app project.
    Webview control is not a general- purpose browser, it’s not recommend to render this kind of content in it. Matt has a blog about the control.
    http://blogs.msdn.com/b/wsdevsol/archive/2012/10/18/nine-things-you-need-to-know-about-webview.aspx.
    Please post more information about your scenario on why you need host WinJS in WebView control.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Mail adopts group name for "To" & "From"

    My wife's Mail app (on MBA running Yosemite) adopts one of her Contacts group names  for the "To" with incoming mail and for the "From" with outgoing mail i.e., her name or email address don't display, the group name displays. I looked at her contacts and the group and saw that she had herself in the group so I took her out but to no avail. I then clicked on the drop down of the group name displayed in the "To" and selected the "Remove from ..." Option. But to no avail.
    Any ideas as to what is causing this would be appreciated.

    Does the Previous Recipients List have anything to do with this? If she sends an email to a group (her book group) in which she is also listed, would Mail then display the group name in the "TO" instead of my wife's name? Or if the email is from someone on the group list, display the group name instead of the sender's name?
    I'm just apply some possible logic as to how this app might be wired wrong...I've seen the posting on grouping unrelated emails in "conversations" which seems to me to be a coding bug.
    Manage email addresses in the Previous Recipients list
    Mail keeps a list of the email addresses you send messages to, and uses the list to suggest or complete addresses for you when you send email. You can delete obsolete or incorrect addresses from the list so Mail stops suggesting them, and use the list to quickly see or add people in the Contacts app.
    Choose Window > Previous Recipients.
    Do any of the following:
    Sort the list: Click a column header.
    Search for a name: Enter the name in the search field.
    Show recipients in Contacts: Double-click a name. A card icon precedes names that are already in Contacts.
    Add recipients to Contacts: Select a name, then click Add to Contacts.
    Remove recipients from the list: Select one or more names, then click Remove From List.

  • Repeats for work items with temporary errors for background WI

    Hi!
    I have a task that generates a temporary error method in order to activate the Repeats for work items with temporary errors. It currently has 5 repeats at intervals of 2 min. After running above the WI-status is 'Error'. When Restart by SWPR runs only once and sends the message 'Work item set to error following 05 failed attempts'.
    Please can tell me any way that when run again relaunch fixed repetitions.
    I welcome your comments.
    Thanks.
    Regards,
    Raisme Wilhelm

    Hi Raisme,
    Please show me since it is the design of the workflow. It is probable that you are inside a repetitive sequence that send several work items.
    Best Regards
    Victor Enzo
    Edited by: Victor Enzo Montenegro on Feb 23, 2011 3:34 PM

  • Is their a difference between primary key and unique key with not null valu

    What is the difference in having a column as primary key and having unique key with not null for the column.
    vinodh

    SBH wrote:
    For quick review, below is the link
    http://www.dba-oracle.com/data_warehouse/clustered_index.htm
    You appear to have stumbled on a site that is a mine of disinformation about Oracle.
    >
    It would be helpful, if you explain it too..thnx !!
    The site is wrong and makes up its own terminology as it goes along.
    If the value for clustering factor approaches the number of blocks in the base table, then the index is said to be clustered. http://www.oracle.com/pls/db112/search?remark=quick_search&word=clustered+index
    There is no create clustered index in Oracle.
    - Clustering factor affects the efficiency of an index.
    - There can be clustered tables that you can create indexes on.
    - An Index Organized table is a similar concept to the Microsoft SQL Server clustered index, but it isn't the same thing at all.

  • Difference between PRIMARY KEY and UNIQUE KEY with NOT NULL

    What is the difference between PRIMARY KEY and UNIQUE KEY with NOT NULL constraint?
    Message was edited by:
    Nilesh Hole

    Answer for the master!!!
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:8743855576462
    Thanks,
    Karthick

  • Issue with Varchar2 field conversion for report output generated in EXCEL

    Hello All,
    I have an unique problem with one of my new reports for the User. The user wants the report output generated in excel data only(delimited data) format *(reports builder 10g)* .
    Everything was fine until i encountered this problem, there was this field which has unique ID's(alphanumeric and numeric), when i tried to run the report and generate output in Excel the numeric ID's say for example *(41593497999679354429)* is converted in excel and displayed like *(2.5881E+19)* and after format cells in excel it displays *(41593497999679300000).*
    The issue is only with 20 digits numeric ID's , if i append any special character to the end say '#' or '..' it shows the exact value along with the appended character. But the user insist they need only the value that is in the table. I am finding it hard to figure out, if any one of you have encountered the same issue or if any of you have any suggestions to overcome this excel conversion thing please do advice me.
    Thanks in advance :)

    Thanks for you response, but i already tried what you suggested, instead of appending single quote in front of ID, i did at the end prior with '#', it preserves the value if i add any character to the id but the appended value shows up too :(.
    Well, i just got the solution and it did work, thanks to [Brian Hill|https://forums.oracle.com/forums/thread.jspa?threadID=651632] for the post, i did what exactly he said and it worked. I was so very happy and wanted to share with everyone.

  • E mail with attachments keeps repeating

    Sorry this may be a bit long, but what is wrong with BT / Yahoo when delivering mail to a pop 3 client lately?
    Here’s the problem, if anyone else has it, I’d be interested to swap notes.
    I have used it with a Btinternet address for a couple of years without a hitch, but in the past few weeks, with any alterations or warnings, it has decided to repeat sending mail with largeish (typically about 2 mb) attachments, though small files attached ( a couple of tens of kb) get through with any hold ups.
    Normal mail gets through, but the Yahoo server will keep sending mail with the larger attachment, time after time.... ad infinitum.
    Any subsequent mails are held up until I go into Yahoo’s page and delete the offending file. This releases all the other mail and it works fine until I get the next large attachment when it goes through it all again.
    I’m using a combination of Thunderbird 3 on one computer and Outlook on a second; both are affected. Both are up to date with Kaspersky  and no changes have been made to the firewall settings.
    How do I know it’s Yahoo?
    A Gmail account, using the same Thunderbird 3 client works without any problems and all the large files all get through.
    I’ve waded through most of the tecno-giberish on line and much of it is contradictory, so I’m open to any ideas about the problem and most importantly, the fix.

    quarter-saw wrote:
    Sorry this may be a bit long, but what is wrong with BT / Yahoo when delivering mail to a pop 3 client lately?
    Here’s the problem, if anyone else has it, I’d be interested to swap notes.
    I have used it with a Btinternet address for a couple of years without a hitch, but in the past few weeks, with any alterations or warnings, it has decided to repeat sending mail with largeish (typically about 2 mb) attachments, though small files attached ( a couple of tens of kb) get through with any hold ups.
    Normal mail gets through, but the Yahoo server will keep sending mail with the larger attachment, time after time.... ad infinitum.
    Any subsequent mails are held up until I go into Yahoo’s page and delete the offending file. This releases all the other mail and it works fine until I get the next large attachment when it goes through it all again.
    I’m using a combination of Thunderbird 3 on one computer and Outlook on a second; both are affected. Both are up to date with Kaspersky  and no changes have been made to the firewall settings.
    How do I know it’s Yahoo?
    A Gmail account, using the same Thunderbird 3 client works without any problems and all the large files all get through.
    I’ve waded through most of the tecno-giberish on line and much of it is contradictory, so I’m open to any ideas about the problem and most importantly, the fix.
    This is a common problem with largish emails and having a slowish connection. Have a look at
    http://community.bt.com/t5/Other-BB-Queries/Duplic​ated-emails-in-outlook/td-p/477877
    There are several other threads with similar problems all relating to Yahoo Mail servers.

  • Problem using WRVS4400n with WPA4410n as Repeater

    hi there,
    we're using a WRVS4400n with V2.0.0.8-ETSI as Router and WLAN Access.
    - Network Mode: N-Only
    - Channel: 13
    - Secutity: WPA2
    - Isolation: disabled
    - Bandwith: 20/40
    - Signal is allowed to be repeated
    Now we installed a new WAP4410n with 2.0.3.3 as repeater to get a better connection in some places.
    We configured the WAP with the same wireless setting as the Router, and also configured both with site survery,
    so everything looked fine.
    But if we unplug the ethernet from WAP we can't access him through the wlan.
    LED  for WLAN is on but not blinkin so that it seems that there is no  traffic. Also the wireless connectivity did not getting better.
    Hope someone can help us.
    Thanks

    interested in how you got the WAP54G to act as a repeater for your e2000. were you able to do this wireless or did you have to hardwire. I have only had success hardwired and really would like to be completely wireless.

  • Problem with graphs on repeating frames

    Is it possible to use graphs showing correct data within repeating frames?
    We experienced problems with graphs within repeating frames, each occurrence of a graph shows the same picture (using data that corresponds to the first frame).
    Tnx in advance.

    Sounds like the source data for the Graph is the wrong Group.
    Dave

  • [svn:fx-trunk] 12982: Fix for issue with exposing accessible names for combobox list items

    Revision: 12982
    Revision: 12982
    Author:   [email protected]
    Date:     2009-12-15 20:44:23 -0800 (Tue, 15 Dec 2009)
    Log Message:
    Fix for issue with exposing accessible names for combobox list items
    QE notes: none
    Doc notes: none
    Bugs: n/a
    Reviewer: Gordon
    Tests run: checkintests
    Is noteworthy for integration: no
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ComboBoxAccImpl.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ListBaseAccImpl.as

    Add this to the end of your nav p CSS selector at Line 209 of your HTML file, after 'background-repeat...':
    margin-bottom: -2px;
    Your nav p will then look like this:
    nav p {
              font-size: 90%;
              font-weight: bold;
              color: #FFC;
              background-color: #090;
              text-align: right;
              padding-top: 5px;
              padding-right: 20px;
              padding-bottom: 5px;
              border-bottom-width: 2px;
              border-bottom-style: solid;
              border-bottom-color: #060;
              background-image: url(images/background.png);
              background-repeat: repeat-x;
              margin-bottom: -2px;

Maybe you are looking for

  • How to print Group Header on page break in a subreport - CR XI

    Post Author: rickcf CA Forum: General I have a subreport that has 3 groups with only one group that has a heading.  When the report prints and a subreport group is split between two pages (on a page break) I would like the group heading to also print

  • Samba shares no longer visible after migration to systemd

    EDIT: Note the file server is CLI only. I upgraded my file server to systemd about a week ago and have yet to get the Samba share visible from other devices within my network.  Eveything worked fine under initscripts and other than system upgrades th

  • Presentation Director 4.07 can't see displays

    After updating Presentation Director to 4.07, it not only lost my previous schemes, but cannot see either the X61 Tablet's own display or the external connected via dock. If I go to "New" scheme, all the drop down menus are blank for choosing display

  • IDoc - IDoc interfacing with multiple mappings

    Hi, We want to use two different mappings for the same IDoc interface (based on a condition). So we use the ORDERS idoc for a sales scenario and also for a purchase scenario. The sending service is the same for both ORDERS messages, lets call it serv

  • Unwanted Pause?

    Hello Everyone, I would like to ask you for your help.I am building a DVD with motion Menus but there seems to be a problem.When it transition from Motion video to the menu there is a unwanted pause which makes the menu look like it is 2 parts(which