Netui tags and javascript

          Hello Gang, not sure if anyone has run into this issue, but here it goes.
          I got a netui:form with netui:checkboxes that I need to have a specific type of
          functionality.
          The first netui:checkbox when checked calls a javascript function that enables
          the remaining netui:checkboxes so that the user can check them.
          Except the first netui:checkbox, all other netui:checkboxes need to be disabled
          at run time and then enabled once the first check box is checked, below is the
          code I got thus far, can't get the diable/enable part to work for the netui tags.
          (Keep in mind that this works well with regular html checkbox tag and javascript)
          The following code wont generate javascript errors.
          It's not doing anything in terms of enabling/disabling the netui:checkboxes.
          <script language="javascript">
          function checkBoxDisable()
          document[getNetuiTagName("updateForm")][getNetuiTagName("tue")].disabled=true;
          document[getNetuiTagName("updateForm")][getNetuiTagName("wed")].disabled=true;
          document[getNetuiTagName("updateForm")][getNetuiTagName("thu")].disabled=true;
          document[getNetuiTagName("updateForm")][getNetuiTagName("fri")].disabled=true;
          function checkboxEnable()
          if (document[getNetuiTagName("updateForm")][getNetuiTagName("mon")].checked)
          document[getNetuiTagName("updateForm")][getNetuiTagName("tue")].disabled=false;
          document[getNetuiTagName("updateForm")][getNetuiTagName("wed")].disabled=false;
          document[getNetuiTagName("updateForm")][getNetuiTagName("thu")].disabled=false;
          document[getNetuiTagName("updateForm")][getNetuiTagName("fri")].disabled=false;
          else
          document[getNetuiTagName("updateForm")][getNetuiTagName("tue")].disabled="true";
          document[getNetuiTagName("updateForm")][getNetuiTagName("wed")].disabled="true";
          document[getNetuiTagName("updateForm")][getNetuiTagName("thu")].disabled="true";
          document[getNetuiTagName("updateForm")][getNetuiTagName("fri")].disabled="true";
          </script>
          <netui:form action="updateContact" tagId="updateForm">
          <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[0]}"
          tagId="mon" onClick="checkboxEnable()"/>Monday
          <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[1]}"
          tagId="tue"/>Tuesday
          <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[2]}"
          tagId="wed"/>Wednesday
          <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[3]}"
          tagId="thu"/>Thursday
          <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[4]}"
          tagId="fri"/>Friday
          </netui:form>
          Any help on this will be appreciated ..
          

          Hello Gang, not sure if anyone has run into this issue, but here it goes.
          I got a netui:form with netui:checkboxes that I need to have a specific type of
          functionality.
          The first netui:checkbox when checked calls a javascript function that enables
          the remaining netui:checkboxes so that the user can check them.
          Except the first netui:checkbox, all other netui:checkboxes need to be disabled
          at run time and then enabled once the first check box is checked, below is the
          code I got thus far, can't get the diable/enable part to work for the netui tags.
          (Keep in mind that this works well with regular html checkbox tag and javascript)
          The following code wont generate javascript errors.
          It's not doing anything in terms of enabling/disabling the netui:checkboxes.
          <script language="javascript">
          function checkBoxDisable()
          document[getNetuiTagName("updateForm")][getNetuiTagName("tue")].disabled=true;
          document[getNetuiTagName("updateForm")][getNetuiTagName("wed")].disabled=true;
          document[getNetuiTagName("updateForm")][getNetuiTagName("thu")].disabled=true;
          document[getNetuiTagName("updateForm")][getNetuiTagName("fri")].disabled=true;
          function checkboxEnable()
          if (document[getNetuiTagName("updateForm")][getNetuiTagName("mon")].checked)
          document[getNetuiTagName("updateForm")][getNetuiTagName("tue")].disabled=false;
          document[getNetuiTagName("updateForm")][getNetuiTagName("wed")].disabled=false;
          document[getNetuiTagName("updateForm")][getNetuiTagName("thu")].disabled=false;
          document[getNetuiTagName("updateForm")][getNetuiTagName("fri")].disabled=false;
          else
          document[getNetuiTagName("updateForm")][getNetuiTagName("tue")].disabled="true";
          document[getNetuiTagName("updateForm")][getNetuiTagName("wed")].disabled="true";
          document[getNetuiTagName("updateForm")][getNetuiTagName("thu")].disabled="true";
          document[getNetuiTagName("updateForm")][getNetuiTagName("fri")].disabled="true";
          </script>
          <netui:form action="updateContact" tagId="updateForm">
          <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[0]}"
          tagId="mon" onClick="checkboxEnable()"/>Monday
          <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[1]}"
          tagId="tue"/>Tuesday
          <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[2]}"
          tagId="wed"/>Wednesday
          <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[3]}"
          tagId="thu"/>Thursday
          <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[4]}"
          tagId="fri"/>Friday
          </netui:form>
          Any help on this will be appreciated ..
          

Similar Messages

  • Netui tags and illegal Javascript names - workaround?

    I'm trying to use the netui tags and tie reference the netui generated names. For example, these look like:
    portlet_2_3{actionForm.customerGroup}
    but this is not a legal Javascript name because of the curly braces. Is there a way around this?

    Hi
    havent tried it, but you wouldnt be adding a netui tag, you would be adding a textbox whose name would be exactly like the generated name if you had the netui tag in the jsp
    i.e. add the textbox with name <portletInstance>{actionForm.fieldName[1]}
    where portletInstance is obtained dynamically. i guess the property would have to be mapped as an array type on the form bean
    regars
    deepak

  • Beehive NetUi Tags and Controls in Workshop 10.1!

    Hi,
    I have a question, whenever I tried to create a Beehive netui and controls project on workshop studio, it asks me for the WSL 10.1 runtime, it means Beehive netui tags and controls are dependent on WLS runtime, if I do not have WLS runtime installed in workshop runtimes, I can not use beehive netui and controls in my project. So, it means, it is only weblogic specific implementation in Workshop, I tried with other containers runtime like JBoss and it did not work. Is there any way I can implement beehive netui tags and controls that is an open source using Workshop on other application containers without WLS run time? If someone tested this kind of scenario and developed some applications and had some hands-on experience, please respond to my question. I will greatly appreciate any comment and/or help.
    Thanks,
    -Gary Hassan

    Hi Gary,
    The Beehive tooling features available in Workshop are currently only supported with a WebLogic 9.2 or 10.x Runtime.
    However, regarding your question on using Beehive runtime classes with a non WLS runtime, there is documentation available on the Apache site on building and running against a Tomcat server. In this case, you will need to add the beehive library jar as any other party jar instead of using the beehive facets and library modules.
    http://beehive.apache.org/docs/1.0.2/samples/petstore.html
    cheers
    Raj

  • Oracle tags and JavaScript

    Attention JavaScript and Oracle Guru's,
    My company has come up with a great requirement using JavaScript and dynamic pages to provide end users with a Systems Availability Information portlet, which scrolls text along the screen.
    This is as follows.....
    They want a Portlet which scrolls text along the screen on the users home page. This has been easy enough to implementbut now this information has to be supplied from the database (an Internal Systems Operation team input information into this table via a form)
    HmmmmOracle tags do not work within JavaScript. So I have created a hidden form on the outside of the JavaScript to pass in text.
    This works great with normal text variables, so I thought the addition of Oracle tags would be the next logical step needed to pass data from the database into the scrolling text Portlet.
    With use of the <Oracle> tags and hidden variables I have managed to come up with the following....
    <html>
    <body>
    <form id="hiddenOracleForm">
    <input type="hidden" name="recordset1" value="<oracle> select * from mnunn.matt_ticker_table</oracle> ">
    </form>
    < !-- START OF SCRIPT -->
    <HTML>
    <BODY BGCOLOR="FFFFFF" TEXT="000000" LINK="0000FF" VLINK="800080" ALINK="FF0000">
    <head>
    <script language="JavaScript">
    < !-- begin
    var max=0;
    function textlist()
    max=textlist.arguments.length;
    for (i=0; i<max; i++)
    this=textlist.arguments[i];
    document.write('the variable for rs1 is ' + rs1);
    var rs1 = document.forms['hiddenOracleForm'].recordset1.value;
    tl=new textlist
    rs1
    var x=0; pos=0;
    var l=tl[0].length;
    function textticker()
    document.tickform.tickfield.value=tl[x].substring(0,pos)+"_";
    if(pos++==l) { pos=0; setTimeout("textticker()",1000); x++;
    if(x==max) x=0; l=tl[x].length; } else
    setTimeout("textticker()",50);
    // end -->
    </script>
    <head>
    <body onLoad="textticker()" >
    <center>
    <form name="tickform"><input type=text name="tickfield" size=40></form>
    </BODY>
    </HTML>
    < !-- END OF SCRIPT -->
    <img src="file://hofisintranet1/qualitydocs$/DW/stag bitmaps/monfaq.gif" border="0">
    < !-- START OF SCRIPT -->
    < !-- For more scripts visit http://www.hof.co.uk -->
    <FORM><input type="button" Value="Click here for full details" ONCLICK="window.open('http://www.hof.co.uk', 'Sample', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=635,height=260')"></FORM>
    < !-- END OF SCRIPT -->
    </body>
    </html>
    Now when this scrolls along the screen, I do not get the expected outcome from the database table. Instead it scrolls.<TABLE border=
    I dont know where this information has come from because it should say..
    Enter password:
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    JServer Release 8.1.7.0.0 - Production
    SQL> select * from mnunn.matt_ticker_table;
    INFO
    This is information taken from the portal database
    SQL>
    Has anybody tried this before or got any ideas on where I could be going wrong??????
    Thanks for any help..Matt.
    null

    I'll try for the repost. This time without the compilation of the code......here goes.
    Attention JavaScript and Oracle Guru's,
    My company has come up with a great requirement using JavaScript and dynamic pages to provide end users with a Systems Availability Information portlet, which scrolls text along the screen.
    This is as follows.....
    They want a Portlet which scrolls text along the screen on the users home page. This has been easy enough to implementbut now this information has to be supplied from the database (an Internal Systems Operation team input information into this table via a form)
    HmmmmOracle tags do not work within JavaScript. So I have created a hidden form on the outside of the JavaScript to pass in text.
    This works great with normal text variables, so I thought the addition of Oracle tags would be the next logical step needed to pass data from the database into the scrolling text Portlet.
    With use of the <Oracle> tags and hidden variables I have managed to come up with the following....
    <form id="hiddenOracleForm">
    <input type="hidden" name="recordset1" value="<oracle> select * from mnunn.matt_ticker_table</oracle> ">
    </form>
    <!-- START OF SCRIPT -->
    <BODY BGCOLOR="FFFFFF" TEXT="000000" LINK="0000FF" VLINK="800080" ALINK="FF0000">
    <head>
    <script language="JavaScript">
    <!-- begin
    var max=0;
    function textlist()
    max=textlist.arguments.length;
    for (i=0; i<max; i++)
    this=textlist.arguments[i];
    document.write('the variable for rs1 is ' + rs1);
    var rs1 = document.forms['hiddenOracleForm'].recordset1.value;
    tl=new textlist
    rs1
    var x=0; pos=0;
    var l=tl[0].length;
    function textticker()
    document.tickform.tickfield.value=tl[x].substring(0,pos)+"_";
    if(pos++==l) { pos=0; setTimeout("textticker()",1000); x++;
    if(x==max) x=0; l=tl[x].length; } else
    setTimeout("textticker()",50);
    // end -->
    </script>
    <head>
    <body onLoad="textticker()" >
    <center>
    <form name="tickform"><input type=text name="tickfield" size=40></form>
    </BODY>
    <!-- END OF SCRIPT -->
    <img src="file://hofisintranet1/qualitydocs$/DW/stag bitmaps/monfaq.gif" border="0">
    <!-- START OF SCRIPT -->
    <!-- For more scripts visit http://www.hof.co.uk -->
    <FORM><input type="button" Value="Click here for full details" ONCLICK="window.open('http://www.hof.co.uk', 'Sample', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=635,height=260')"></FORM>
    <!-- END OF SCRIPT -->
    Now when this scrolls along the screen, I do not get the expected outcome from the database table. Instead it scrolls.<TABLE border=
    I dont know where this information has come from because it should say..
    Enter password:
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    JServer Release 8.1.7.0.0 - Production
    SQL> select * from mnunn.matt_ticker_table;
    INFO
    This is information taken from the portal database
    SQL>
    Has anybody tried this before or got any ideas on where I could be going wrong??????
    Thanks for any help..Matt.

  • Use netui tags within javascript function

    Is there anyway to use netui tags within a javascript function? I am trying to create a onChange event handler for a netui:select tag that will call a javascript function which will execute a few netui callMethod tags. The problem is that if the netui tags are embedded within a javascript function they are not translated into javascript. Is there some kind of function that I can wrap the embedded netui tags with so that they will be translated into javascript at runtime? Thanks.

    Hi,
    I am trying to embed JSP code within javascript
    t function, so that it can be called when the user
    leaves the page. No,you can't.
    JSP files are complied on server side while the javascript is the clint side code.
    if you really want to call the functio when the user leaves the page, you can call a function runs on the server side to set the session.
    regards

  • NetUI tags and calendar popups

    Does anybody have an example of a simple calendar popup that can work with NetUI
    tags. I downloaded a couple different solutions from the net and they work fine
    when I use simple html form tags, however don't seem to work if I use the netui
    tags.
    Thanks!
    Kunal

    use the netui tagID
    <netui:form tagId="aForm" >
    <netui:textbox datasource="{actionForm.firstname}" tagId="firstName">
    then
    alert(document.forms[getNetuiTagName("aForm",this)][getNetuiTagName("firstName",this)].value)

  • Netui tags - ADA Compliance

    I've run into a situation with netui tags that I'm wondering if anyone can shed some light on. Before we release apps here, they're checked for compliance with the Americans with Disabilities Act. The folks that do this checking asked that my app have <label> tags for all my form fields with a "for=" attribute that matches an "id=" attribute in the input tag, like the following:
              <label for="xyz">Select location</label>
              <select name=setting_key id="xyz">
              </select>
              I think having these tags help screen readers to read the screens or something. My problem is that the netui tags don't offer the id attribute. I've ripped out most of my netui tags and replaced them with standard html tags, but for a radio button, I can't get it to work. My netui tags that work look like this:
              <netui-data:repeater dataSource="{pageFlow.addrArray}">
              <netui-data:repeaterItem>
              <netui:radioButtonGroup dataSource="{actionForm.addressid}">
              < netui:radioButtonOption value="{container.item.addressID}" />
              </netui:radioButtonGroup>
              </netui-data:repeaterItem>
              </netui-data:repeater>
              I've tried several varations on something like this:
              <input type="radio" name="{actionForm.addressid}" value="{container.item.addressID}" id="addrid">
              Anyone have any ideas?
              Thanks.

    Use tagId

  • Filting html tags, css, and javascript with regex

    hi everyone,
    im writing a small application where a user types in a url, and the text of the webpage is displayed in a text area.
    ive got it to work, however it takes some time, and also alot of content i dont want is displayed - tags, scripts and sometimes css.
    initally i filtered out the html tags with a regular expression, but i still get alot of unwanted content.
    im not a confident java programmer, and the idea of parsing html, css and javascript is the scariest idea ever to me, so my next idea is to keep only everything between the <body> tags - everything above and below it is deleted - hopefully that should leave me only with the visible content on the site.
    ive messed around with regular expressions but i cant get it to work, can anyone help out?
    thanks alot,
    Torre

    Darryl.Burke wrote:
    I tried out the regexes I posted on the source of a forum page, which is not valid html (contains two each opening and closing body tags). With a bit of trial and error I was able to remove everything upto the first, and not the second, opening tag by using a reluctant qualifier, ^.*?, but couldn't for the life of me achieve removal of only the last closing tag, leaving the other, invalid one intact. How would you do that?Regexes always try to match the first occurrence of whatever they're looking for (the sentinel), and there's no way to change that behavior (but it would be handy if you could). What you have to do instead is make sure the rest of the regex can't match the sentinel. For that you need lookahead, and the simplest way to use it is to scan the rest of the text looking for the sentinel and, if it doesn't find one, go ahead and gobble up the remaining text: "(?is)</body>(?!.*</body).*$" However, if there are many occurrences of the sentinel, you could take a serious performance hit. Here's a much more efficient way: "(?is)</body>(?:[^<]++|<(?!/body>))*+$" After matching the sentinel, this regex gobbles up anything that's not the first character of the sentinel, or the first character as long as it isn't followed by the remaining characters of the sentinel. The advantages of this regex are that it never has to backtrack, and the lookahead is only applied when it's necessary, where the first regex applies it every time.

  • A list of inputs using netui tags

    Hi all,
    we have a family of netui problems which occur quite frequently.
    The main problem is: what to do when we have a list of items (we don't
    now how many), and we want to display them, and get some input from the
    user.
    1. The simplest form, when the user only has to select one, is ok: we
    create a list of netui:anchor -s, with parameters, or we use a
    netui:select (but even in this case we don't know what to do if the name
    and the key of the items are different).
    2. The user should choose more then one item.
    a) We tried to use netui:select multiple=true. It renders fine, but we
    can't get the results properly. If the user selects only one item,
    it's ok, we can get it with a String field in the actionform. But if the
    user selects more items, then we can't catch them.
    We tried with String and List fields, but none of them worked (they
    contained null).
    b)It is more complicated, if we also want to display some attributes of
    the items, like:
    <checkBox> name1 description1 other attribute1
    <checkBox> name2 description2 other attribute1
    <checkBox> name3 description3 other attribute1
    3. The user should enter some text or number for each item
    e.g. (quite similar to 2.b)
    name1 description1 <input type='text'/>
    name2 description2 <input type='text'/>
    name3 description3 <input type='text'/>
    For 2.b) and 3) we have a workaround: we don't use netui:checbox or
    netui:textfield, but manually construct input boxes. The names of the
    boxes are the same that would be created by netui tags (e.g.
    {actionForm.input[1]}), so when the user submits the form the framework
    thinks that they were normal netui stuff and fills the actionForm with
    their data.
    4. The user can create a list on the fly, so he/she can even add more
    elements to the list. We can do it with a submit per new item method,
    but it would be better if could do it on the client side, and the user
    would click on submit only when he finished editing. e.g.:
    we want discounts in a tiered fashion: when the user buys at least 10
    pieces of a product, he gets 10%, more then 100 means 15%, and more then
    1000 means 20%. But it shouldn't be a fixed list, the administrator
    should be able to create as many ranges as he wants. It looks like this:
    Limit Discount
    <input1_L> <input1_D>
    <input2_L> <input2_D>
    <add more button>
    On the client side we can create the input boxes dynamically, with
    proper names, so the system will know which field(s) of the actionform
    we try to set. The problem is that when he submits the form, we get
    IndexOutOfBoundsException, since the field of the actionForm doesn't
    contain enough space for the items. Of course, we can initialize the
    field in the reset() method of the actionform, but at this time we don't
    know how many elements will it store.
    We checked the docs, samples, and the bea newsgroups, but couldn't find
    solutions to these questions (We have seen some similar questions in the
    newsgroups, so it seems other people also have some of these problems).
    I hope I described them clearly and you will be able to find ways to
    solve (at least some of ) them.
    Thanks in advance,
    don

    Hi all,
    we have a family of netui problems which occur quite frequently.
    The main problem is: what to do when we have a list of items (we don't
    now how many), and we want to display them, and get some input from the
    user.
    1. The simplest form, when the user only has to select one, is ok: we
    create a list of netui:anchor -s, with parameters, or we use a
    netui:select (but even in this case we don't know what to do if the name
    and the key of the items are different).
    2. The user should choose more then one item.
    a) We tried to use netui:select multiple=true. It renders fine, but we
    can't get the results properly. If the user selects only one item,
    it's ok, we can get it with a String field in the actionform. But if the
    user selects more items, then we can't catch them.
    We tried with String and List fields, but none of them worked (they
    contained null).
    b)It is more complicated, if we also want to display some attributes of
    the items, like:
    <checkBox> name1 description1 other attribute1
    <checkBox> name2 description2 other attribute1
    <checkBox> name3 description3 other attribute1
    3. The user should enter some text or number for each item
    e.g. (quite similar to 2.b)
    name1 description1 <input type='text'/>
    name2 description2 <input type='text'/>
    name3 description3 <input type='text'/>
    For 2.b) and 3) we have a workaround: we don't use netui:checbox or
    netui:textfield, but manually construct input boxes. The names of the
    boxes are the same that would be created by netui tags (e.g.
    {actionForm.input[1]}), so when the user submits the form the framework
    thinks that they were normal netui stuff and fills the actionForm with
    their data.
    4. The user can create a list on the fly, so he/she can even add more
    elements to the list. We can do it with a submit per new item method,
    but it would be better if could do it on the client side, and the user
    would click on submit only when he finished editing. e.g.:
    we want discounts in a tiered fashion: when the user buys at least 10
    pieces of a product, he gets 10%, more then 100 means 15%, and more then
    1000 means 20%. But it shouldn't be a fixed list, the administrator
    should be able to create as many ranges as he wants. It looks like this:
    Limit Discount
    <input1_L> <input1_D>
    <input2_L> <input2_D>
    <add more button>
    On the client side we can create the input boxes dynamically, with
    proper names, so the system will know which field(s) of the actionform
    we try to set. The problem is that when he submits the form, we get
    IndexOutOfBoundsException, since the field of the actionForm doesn't
    contain enough space for the items. Of course, we can initialize the
    field in the reset() method of the actionform, but at this time we don't
    know how many elements will it store.
    We checked the docs, samples, and the bea newsgroups, but couldn't find
    solutions to these questions (We have seen some similar questions in the
    newsgroups, so it seems other people also have some of these problems).
    I hope I described them clearly and you will be able to find ways to
    solve (at least some of ) them.
    Thanks in advance,
    don

  • Using CSS and Javascript to display a div with flash in it, mozilla reloads the flash file!

    I am using CSS and Javascript to display a div with an
    embedded flash object in it. Mozilla Firefox reloads the flash file
    when the div is displayed! (I dont want this to happen, as it's
    unexpected functionality, my expectation would be that the flash
    file would not change it's state at all, and would remain in
    whatever state it was left in.)
    I was wondering if anyone has come across this issue and is
    there something I can do to prevent this from occurring?
    To be more specific, I have a single HTML page with 8 flash
    files embedded in it (yeah I know, it's a bit much). I am then
    using CSS and Javascript to display (via a numbered link (with an
    id)) an equivalent numbered div tag containing the flash file.
    Mozilla Firefox reloads the flash object that is in the div.
    Internet Explorer will not do this and will instead, load the flash
    object only upon initial view of the flash object. All subsequent
    links (in IE) will NOT reload the flash object on the page. I'm
    guessing this is some kind of difference in the flash player as an
    Active X object and the plugin, or is it just IE being clever? Or
    am I way off?
    Anyway, here is the code...

    I am using CSS and Javascript to display a div with an
    embedded flash object in it. Mozilla Firefox reloads the flash file
    when the div is displayed! (I dont want this to happen, as it's
    unexpected functionality, my expectation would be that the flash
    file would not change it's state at all, and would remain in
    whatever state it was left in.)
    I was wondering if anyone has come across this issue and is
    there something I can do to prevent this from occurring?
    To be more specific, I have a single HTML page with 8 flash
    files embedded in it (yeah I know, it's a bit much). I am then
    using CSS and Javascript to display (via a numbered link (with an
    id)) an equivalent numbered div tag containing the flash file.
    Mozilla Firefox reloads the flash object that is in the div.
    Internet Explorer will not do this and will instead, load the flash
    object only upon initial view of the flash object. All subsequent
    links (in IE) will NOT reload the flash object on the page. I'm
    guessing this is some kind of difference in the flash player as an
    Active X object and the plugin, or is it just IE being clever? Or
    am I way off?
    Anyway, here is the code...

  • Can i use JSF tags and HTML tages Together

    i am trying to use html and JSf tages together. i hope it should owrk. but for me html tags are not working.
    can any one help me

    thanks
    its working but i have one more clarification
    can we wuse jsf tags in javascript
    for examp
    this my javascript using html
    newQuotCell1[0].innerHTML='<input type=text class=TextField name="nameofEmployer'+count1+'">';
    if i want to write a jsf tage there . does it allow
    i want to bind the textfield with bean value . Is it possibel.
    please let me know.
    thansk in advance

  • [JS] Tag and script

    Hello,
    I script converted into an XML tag and unworthy I MEETS two problems.
    - To have to put a letter in the text to lift the Я but I do not see how without OTF
    - Also have to make two lists but I can not put an anchor text in the txt file, much less refer to it.
    Thank you
    Traduction
    Bonjour,
    Je scripte un fichier XML convertie en tag d'indigne et je recontre deux problème.
    - de dois mettre une lettre à lever dans le texte le Я mais je ne vois pas comment faire sans OTF
    - de dois aussi faire deux listes mais je ne parvient pas à mettre une Ancre de texte dans le fichier txt et encore moins y faire référence.

    Please
    how to make a cross reference indesign javascript or insert an anchor text in a text file for tag indesign...
    Thank you

  • H:commandLink and Javascript

    Hi All,
    I have a commandLink in which I pass parameter using <f:param>. This commnadLink is enclosed under <h:form>
    This <h:form> is calling javascript function on its onSubmit event.
    <h:form onSubmit="return validateForm()" >
       <h:commandLink action="#{bean.action}" >
           <f:param name="action"  value ="settings"/>
       </h:commandLink>
    </h:form>Now my problem is when I click commandlink my javascript function is not executed. And there is no onclick available in commandLink tag.
    I saw the html output of this code. h:commandLink puts its own onclick so it makes sense that it doesnot have onClick support. But in generated code commandLink forcefully submits the form. So ideally any function in form's onsubmit() should be called but in this case it is not.
    Any suggestions ? What is going wrong here ?
    Thanks

    We have a similar problem here. Strictly speaking, it seems like Faces isn't really oriented toward javascript validation -- it's expected that'll happen server side.
    If you have to have it client-side (and, yes, I know the arguments), you could try the approach I came up w/here. (I'd actually appreciate some comments on it -- it's a hack, but i'm wondering how bad it is. :)
    Put the h:commandLink in a hidden div, with just a wee bit of extra javascript:
    <div style="display:none;">
    <h:commandLink id="okCmd" ....>....</h:commandLink>
    <h:outputFormat escape="false" value="
      <script> var okCmd = \"{0}\"; </script>
      ">
      <yourExtremelyShortTaglibNamespacePrefix:clientIdParam componentId="okCmd" />
    <h:outputFormat>
    </div>write your own link whose onclick handler calls validateForm() and then calls the h:commandLink's onclick:
    function okeyDokey() {
      if (validateForm())
        clickLink( okCmd);  // okCmd var defined elsewhere (see above)
    }So, then we need the clientIdParam custom tag, and the clickLink() javascript function.
    public class ClientIdParam extends UIParameter
       public static final String COMPONENT_TYPE = "canopy.ClientIdParam";
        * Returns the clientId of the component indicated by the 'componentId'
        * property.  {@link UIComponent#findComponent(String)} will be used to
        * find the component.
       public Object getValue()
          return findComponent( getComponentId())
             .getClientId( FacesContext.getCurrentInstance());
       // getComponentId() (omitted) is straightforward....
    }javascript clickLink():
    * Simulate a user clicking a link.  Originally written for simulating clicks
    * on JSF commandLinks, so if you change  it, make sure it still works for
    * that purpose.
    function clickLink( aLinkId)
       var link = document.getElementById( aLinkId);
       link.onclick();
    }So... am I insane? Did I miss a simple one-line solution as plain as the nose on my face? (I wouldn't mind finding out there's something better.)
    John.

  • SetProperty tag in Javascript

    Can i use setProperty tag in javascript code, so that the newly entered value in the form element can be stored in the bean, which is persistant.

    its a html type of tag and u can use it in place where u could use html tag No you can't.
    JSP runs. It produces an HTML page which is sent to the client.
    All the browser sees is pure HTML.
    That is all the javascript can work with.
    javascript can not invoke java code.
    The only communication it has back to the server is to submit another HTTPRequest, either through a link, a form submission, or (more recently) using AJAX to send a request.

  • HTMLEditorKit : How you handle FRAMES, IFRAMES and JAVASCRIPT

    Hi all,
    Currently im using the HTMLEditorKit to parse through the HTML page. Obviously its easier when the elements are on the body of the page. But what if the page has frames,iframes or javascript and i want to extract links that these elements reference to. How do i do it? I know some of you would recommend my class to extend the parsercallback class. But is there a way for example i can use 3 or even 4 different iterators each pointing to the different elements ?
    and lets say if i reference to a SCRIPT tag of the HTML, how do i extract the possible URLs in it. Same goes for iFrames and JavaScripts. Can anyone please help me with this ?

    Tim,
    The form action needs to be the page URL. The INPUT fields/objects of your form will be sent as parameters when the form is submitted. These parameters can be read by your portlet by using the parameter passing PDK services. It is recommended to use qualified parameters in case the portlet that reads the parameters is the same as the one that has submitted them.
    As far as I remember the parameter passing sample portlet contains similar code to what you're looking for.

Maybe you are looking for

  • Why can I not save a locked Numbers document?

    My Numbers is weird, slow and almost impossible to get used to. That's why I now I still use Appleworks Spreadsheets on my Powermac for doing daily accounting updates, and only then import a copy to Numbers for keeping copies on my MacBookAir. I crea

  • Indesign CS5 - how to align objects

    Dear All, I have a problem with Indesign that is present from CS2 trough CS3 & CS4 version. I thought that CS5 version finaly will solve this issue, but it seems to me that nothing changed. When we have to align two objects lets say in Illustrator, 

  • How much is charged to fix an ipod touch screen ?

    My Ipod is flickering white, like I can still see the screen, its just hard sometimes.

  • Linking to a Excel or Word File

    Hello. I want to link to an excel document in teh same directory as my other Flash files so that it opens the file when clicked. Ideally in a new window. I dont want to open on the internet. How can i go about doing this? Is it the getUrl or differen

  • Expand All for Hierarchy in Layout

    Hi all Has anyone developed an 'Expand All Nodes' function for a BPS Web application? I have a layout which contains a hierarchy and I would like to be able to provide two buttons which perform an 'Expand All' and 'Collapse All'. Cheers Dimitri