Assigning value to jList similar to HTML tag select

hi friends...
Can we assign value to Jlist ..just like in html tag
<select ">
<option *value="val"* >Text</option>
</select>
Each row should have value assigned with it....when we select the row..it should return the hidden value..
if it possible please reply
thank u

implement custom renderer which will show just text.The easier way is to override toString() for the custom class. JList by default uses toString to render the item.
db

Similar Messages

  • HTML tag selective filtering

    Hi,
    I am new to the Oracle 9ias portal development. I have the difficulties with the HTL tag filtering. Can PDK do the selective tag filtering?
    Here is the detail information:
    I have one page which have serveral <style media="media_name" type="text/css"></style> entries in one web page. There is one special style tage will define the image location with the absolute positions of the web page. It will crewed up the portal page if I am using the porlet with a tab. How can I filter the specific <style media="screen" type="text/css"> tag with affect other <style> tage?
    I have tried <headerTrimTag>&lt;style media="screen"</headerTrimTag>
    But it won't work.
    I appriciate if anyone can throw some hints on it.

    apexlearner wrote:
    Html tag line is displaying as button and text box in Report region. When i enter the following text (*<input type="button" value="Submit" />*), it is displaying as textbox and button in report region. Here i am setting the column link and when i click the column it takes me to another page. If i remove the column link, then the text is displaying as i entered. Here i need to set the column as well as the text needs to be displayed as i enter.It is not at all clear what you are attempting to describe here. To avoid confusion, try reproducing the problem on apex.oracle.com.

  • Showing HTML tags in JList

    Hello
    My problem is quite simple but have not found any answer so far... I have a JList component where I store the contents of a file (one text line corresponds to a JList entry). Everything works fine, except when I have a line with HTML tags, since these are not made visible inside the JList entry. For example: if a file has a "<HTML><Body>example" line, then the JList entry displays just "example" instead of the full line. Any way to disable this HTML rendering and presenting only the raw text?
    Thank you!

    Fudge: prepend a space to each String that you place
    in the list, or munge the string in some other way
    that it looks similar/identical but prevents JLabel
    thinking it's HTML
    Proper fix: implement ListCellRenderer to return an
    overridden JLabel which doesn't implement a
    half-assed interpretation of HTML, or another
    component - JTextArea might workOr, in the renderer call:
    putClientProperty("html.disable", Boolean.TRUE);See:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4652898

  • Values having html tags not getting populated while using AJAX in APEX

    Hi,
    I am using AJAX to populate certain values in a tabular report.
    I have a java script of this form (I have taken this example from Denes's example http://apex.oracle.com/pls/otn/f?p=31517:241:1400877312570049)
    <script language="JavaScript" type="text/javascript">
    function f_set_multi_items_tabular(pValue, pRow){
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=Set_Multi_Items_Tabular',0);
    if(pValue){
    get.add('TEMPORARY_APPLICATION_ITEM',pValue)
    get.add('T_ROWNUM',pRow)
    }else{
    get.add('TEMPORARY_APPLICATION_ITEM','null')
    gReturn = get.get('XML');
    if(gReturn){
    var l_Count = gReturn.getElementsByTagName("item").length;
    for(var i = 0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("item");
    var l_ID = l_Opt_Xml.getAttribute('id');
    var l_El = html_GetElement(l_ID);
    if(l_Opt_Xml.firstChild){
    var l_Value = l_Opt_Xml.firstChild.nodeValue;
    }else{
    var l_Value = '';
    if(l_El){
    if(l_El.tagName == 'INPUT'){
    l_El.value = l_Value;
    }else if(l_El.tagName == 'SPAN' && l_El.className == 'grabber'){
    l_El.parentNode.innerHTML = l_Value;
    l_El.parentNode.id = l_ID;
    }else{
    l_El.innerHTML = l_Value;
    get = null;
    </script>
    And I have the application process as follows
    BEGIN
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="f05_000' || :T_ROWNUM || '">' || :TEMPORARY_APPLICATION_ITEM || '</item>');
    HTP.prn ('</body>');
    END;
    If I have :TEMPORARY_APPLICATION_ITEM as 'Vikas' it gets displayed properly but if I have '&lt;b&gt;Vikas&lt;b&gt;' it shows null. if it has any HTML tags function l_Opt_Xml.firstChild.nodeValue is not working properly .Please tell me what modiifcation can I use in function l_Opt_Xml.firstChild.nodeValue to get Values with HTML tags also to get displayed.
    Thanks,
    Vikas

    Vikas,
    Try escaping special characters: htf.escape_sc(:TEMPORARY_APPLICATION_ITEM)Regards,
    Dan

  • HTML Tags. Not able to store all the tag value

    Hi Guys,
    I am not able to Store the tag values with the program below. When it goes to read the second TAG the first TAG value is null or lost.
    <html>
    <head>
    <META NAME="name1" CONTENT="content1">
    <META NAME="name2" CONTENT="content2">
    <META NAME="name3" CONTENT="content3">
    <META NAME="name4" CONTENT="content4">
    </head>
    <body>
    Hello world.
    </body></html>
    import javax.swing.text.html.parser.*;
    import javax.swing.text.html.*;
    import javax.swing.text.*;
    import java.io.*;
    public class ParseTest extends HTMLEditorKit.ParserCallback {
    public void handleText(char[] data, int pos){
    System.out.println(new String(data));
    public void handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos){
    System.out.println("start: " + t);
    public void handleEndTag(HTML.Tag t, int pos){
    System.out.println("end: " + t);
    public void handleSimpleTag(HTML.Tag t, MutableAttributeSet a, int pos){
    if (t == HTML.Tag.META){
    String name1=(String)a.getAttribute(HTML.Attribute.NAME);
    if (name1 != null){
    System.out.println("META name1: " + name1);
    String content1 = (String)a.getAttribute(HTML.Attribute.CONTENT);
    if (content1 != null){
    System.out.println("META content1: " + content1);
    public static void main(String argv[]) {
    try {
    Reader r = new FileReader("test.html");
    ParserDelegator parser = new ParserDelegator();
    HTMLEditorKit.ParserCallback callback = new ParseTest();
    parser.parse(r, callback, false);
    } catch (IOException e) {
    e.printStackTrace();
    Thanks for your HElp.

    Hi,
    it took me some time to understand what the code should do.
    First of all please let me say, that wiring trough the error cluster is immanent for debugging. One problem I see is that the refnum from the document element is zero, so that all other calls for childs are failing. You will only notice this by debugging or execution highlighting (see James hint). You will also see a hint for a problem in this region of the code when you look at your indicator loadXml. This once was always False.
    I have changed two things:
    LoadXml.vi -> Read from Text File instead of binary
    Main.vi -> Using the read text for input of the LoadXml invoke method and not the pretty printed one.
    Now LoadXml performs the action and your 2D array is filling in some stuff. My advice would be to carefully debug your code and look, where references get lost and where errors occur.
    Good Luck
    Tyler
    Certified LabVIEW Architect

  • Replace HTML tags within column values

    Hi Gurus,
    I have a requirement where I have some text which has HTML tags inserted within it and I need to insert either Presentation variable or a GO URL replacing that tag. Problem is that this text is value of a column from table. It is not something which I type( because the text can change dynamically). e.g
    Column header:  Main Text
    Row1:            <<COMPANY_NAME>>
    Row2:           As of <<AF_OF_DATE>>
    instead of <<COMPANY_NAME>> and <<AS_OF_DATE>>, I need to insert amounts from another table which have this unique tags and associated amounts. Can this be done?
    I have to these columns in different places throughout the report in narrative views. e.g
    1st narrative view will have only column 1 and row 1 and row 2.. 2nd narrative view will have only column 3 and row1...
    This is really really important part of a report. So please help me out with ideas.
    Thanks,
    Dan

    I tried calling the column in a narrative view and the result looks like :
    As of <<AS_OF_DATE>>. how can I replace "<<AS_OF_DATE>>" with a value?

  • Why there is a difference in a "class" attribute value of html tag when viewed in "Page Source" and using "Inspector", I am refering to new Microsoft site?

    While inspecting the new Microsoft site source, I observed that the "class" attribute value of the "html" tag when seen in Page Source the value given by Tools/Web Developer/Inspect tool. Value with the tool indicates class="en-in js no-flexbox canvas no-touch backgroundsize cssanimations csstransforms csstransforms3d csstransitions fontface video audio svg inlinesvg" while that is given in Page Source is class="en-us no-js"
    The question is why different values are shown?

    Inspector is showing you the source after it's been modified by Javascript and such.
    To see the same thing in the source viewer, press '''Ctrl+A''' to select everything on the page, then right-click the selection and choose '''View Selection Source'''.

  • How to add html tag in c:set value

    If i put the html tag around, like this <c:set var="test" value="This is a <b>nice</b> page." /> , the <c:out value="${test}" /> will print the bold tag around "nice" . How to get the actually string "nice" to be bold instead? Thank you!

    Set the 'escapeXml' attribute of c:out to false so that it doesn't escape XML (and so also HTML) entities.

  • Html tag as xml tag value?

    Hi,
    Can I put a html tag as value to a xml tag? something like this
    <abc>
    <username>Uma</username>
          <displayTag>
                  <start><h1></start>
                  <end></h1></end>
          </displayTag>
    </abc>Please help.
    Thanks in advance.

    You can either use > and < for < and > to get something that appears to be an html tag, or you can use a CDATA section.
    It partly depends on what you plan to do with that content.
    Dave Patterson

  • Extract value of HTML.TAG.TITLE

    Does anyone know how to get the value of the title tag from a html document that has been parsed into java?
    Thanks.

    I agree, I don't understand how the parser works as well. You should be able to use an ElementIterator to iterate through all the elements in the Document. It does seem to recognize the title element, but I can't get it to display the value of the title.
    So, here is a completely different approach:
    import java.io.*;
    import java.net.*;
    import javax.swing.text.*;
    import javax.swing.text.html.*;
    import javax.swing.text.html.parser.*;
    public class GetTitle3 extends HTMLEditorKit.ParserCallback
         private boolean titleFound = false;
         public void handleStartTag(HTML.Tag tag, MutableAttributeSet a, int pos)
              if ( tag.equals(HTML.Tag.TITLE) )
                   titleFound = true;
         public void handleText(char[] data, int pos)
              if (titleFound)
                   System.out.println( data );
         public void handleEndTag(HTML.Tag tag, int pos)
              if ( tag.equals(HTML.Tag.TITLE) )
                   titleFound = false;
         public static void main(String[] args)
              try
                   GetTitle3 parser = new GetTitle3();
                   // args[0] is the file to parse
                   Reader reader = new FileReader(args[0]);
                   new ParserDelegator().parse(reader, parser, true);
              catch (Exception e)
                   System.out.println(e);
    }

  • How to add a value(text) from javascript to html:option tag .....

    How to populate the <html:option> tag dynamically
    I have a tree view, in tree view tag ( <layout:maeuItem> tag i have written "onclick " event )
    <layout:menuItem key="${agrovoc.AGURI}" link="#"
                                       onClick="return copyVal(this)">
    <script language="javascript" type="text/javascript">
                   function copyVal(obj){
                   str= obj.innerHTML; 
                   l = str.length-4;
                   xyz= str.substring(12,l);
                   document.getElementById('agrovoc').value =document.getElementById('agrovoc').value + xyz+'\n';
                   </script>Here "xyz" contains the Term ( the term clicked in the tree view) now i want add these terms ( clicked in tree view) into <html: option> tag.... how to do this.. plz give me some ideas
    <html:select  property="agrovocbuffer" size="10" >
                        <html:option value="" styleId="agrovoc1"></html:option>
                        </html:select>

    Hi,
    i have tried with this, it's works fine... but when i click on the next page ( i mean 2 or 3 page etc ) the content of <html:option> are erasing (deleting).. i wanted those terms wht i have selected in the 1st page to remain in <html:option> when i click on 2 nd page also...
    Tree view code
    <layout:menuItem key="${agrovoc.AGURI}" link="#"
                                       onClick=" copyVal(this)">JavaScript
    <script language="javascript" type="text/javascript">
                    var i=0;     
                    var myArray=new Array();
                   function copyVal(obj){
                        var flag=0;     
                   str= obj.innerHTML; 
                   l = str.length-4;
                   xyz= str.substring(12,l);
                   while (xyz != null) {
                   for( var l=0;l<myArray.length;l++){
                   if( myArray[l]==xyz){flag=1;alret("The Term is already selected.");}
                   if(flag!=1){
                   document.getElementById('agrovoc').options[i] =new Option(xyz,xyz);
                   myArray=xyz;
                   i++;
                   //alert(i);
                   xyz=null;
                   function del(){
                                  var oc=document.getElementById('agrovoc').options;
                                  //alert(oc.length);
                                  firstBox = document.getElementById('agrovoc');
                                  selectedOption = firstBox.options[firstBox.selectedIndex].value;
                                  selected = firstBox.options[firstBox.selectedIndex].index;
                                  //alert(selected);
                                  for( var l=0;l<myArray.length;l++){
                   if( myArray[l]==selectedOption){myArray[l]="";}
                                  firstBox.options[firstBox.selectedIndex] = null;
                                  var oc=document.getElementById('agrovoc').options;
                                  //alert(oc.length);
                                  for(var x=selected;x<oc.length;x++,selected++)
                                  document.getElementById('agrovoc').options[x] =new Option(firstBox.options[selected].value);
                                  i=oc.length;
                   </script>
    <html:select> code<div align="left" id="hopt">     
                   <td valign="top">
                   <logic:present name="hcount">
                        <html:select property="agrovocbuffer" size="15" styleId="agrovoc" multiple="true" style="width:200px;" >
                        <html:option value="" ></html:option>
                        </html:select><html:button property="button" onclick="del()"> DEL</html:button>
                   </logic:present>
                   </td>
                   </div>
    And all the above code is in <html:form> tag & i have written a custom pagination page
    Now i want  all terms which are in <html:option> remain  in options when i goto 2 nd page..
    how to do this? In the DOM inspector i'm getting the options, but when see the source HTML there are no <html:options>.. when click on the 2 page link the terms which are in <html:option> are not going to the "Action" class ..  :(
    how to do this .. any idea plz..?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Sorting values by escaping the html tags

    Hi Friends,
    My problem is described below...
    I am facing an issue where I need to sort (main title/ alternate title) by escaping the html tags.
    eg 'Amex' should always be before 'Singer'
    Amex in DB is like Amex.
    Syngo in DB is like &lt;i&gt;Singer&lt;/i&gt
    something can be --- <i>hello<i>
      sql.append("SELECT DISTINCT NVL(ItemDocMeta.xMainTitle, ItemDocMeta.xAlternateTitle) AS generatedPageTitle,");
    other conditions
    // order by
                sql.append(" ORDER BY LOWER(generatedPageTitle) ASC");
    Is there any SQL function that can make it easier?
    I tried using regex in the ith order by clause, but it doesnt work until i keep it in the select part. And I am unable to use regex in the select part with distinct.
    Thanks

    For example :
    SQL> set scan off
    SQL>
    SQL>
    SQL> with sample_data as (
      2      select 'again sort a column' str from dual union all
      3      select '<i>sort</i> a column' from dual union all
      4      select '&lt;i&gt;resort&lt;i&gt;' from dual
      5  )
      6  select str
      7  from sample_data
      8  order by regexp_replace(
      9             utl_i18n.unescape_reference(str)
    10           , '</?[^>]+>'
    11           )
    12  ;
    STR
    again sort a column
    &lt;i&gt;resort&lt;i&gt;
    <i>sort</i> a column

  • Include HTML-Tags in value of Transformer.setParameter()

    Hi everybody,
    I have the following problem:
    I have a XML-File which I like to Transform with Xalan/XSLT to html. I like to pass a parameter to the XSLT-file. This works fine. But my parameter contains HTML-tags. After transformation the html-tags in my parameter are transformed to there entitys:
    becomes &lt;br/&gt; (I hope this will be displayed the right way in the forum)
    Is there any solution to stop this behavior? Or if not possible any other way to include the html in the transformer output?

    Yes, I have a directory with many XML Files. I like to create a html file from every XML file and include a navigation with a link to every file.
    I create the html-code for the navigation in my program and than pass it to the xsl-stylesheet with setParameter() ...

  • Help with HTML tags and web page creating

    I have a project that is supposed to use an HTML class we make. He has given us the basics but we have to fill it in. My question is: How do you code a value that has been passed to a method into an html tag. For instance we have one that is called makeEmail and it is supposed to place an email address on a webpage. Here is the method, I just need to figure out how to code it correctly. Any suggestions on how to do this?
    public void makeEmail(String address)
    webPage += "" + address + "";
    }

    An email tag in html is very similar to a hyperlink. The string you want the makeEmail method to create is as follows:
    <a href="mailto:(email address")>(email address or description or whatevber you want displayed on screen)</a>So using for example my email address, you use the following line:
    <a href="mailto:[email protected]">Send an email to Mr_Silly</a>It is very much worth looking into an html tutorial, try searching for one on the web, cos there a thousands out there. It is a very simple language to learn.
    :-)

  • Handling HTML Tags in ADOBE Forms

    Hi,
    We are trying to develop a PI  sheet in ADOBE form  using a XML file.While doing this we are facing some problems with HTML tags.
    <b>- <TEXTOUTPUT id="O.0020.0004.0003" domain="PPPI_FRAGMENT_HTML" customtype="SAPOUTPUT" format="CHAR" domformat="C" mimetype="" constant="true" position="0003">
      <LABEL>SXS documentation</LABEL>
      <TIP>HTML Fragment</TIP>
    - <VALUE>
    - <![CDATA[
    <h5><u>Remarks:</u></h5>
    The following features allow to reduce the input of invalid data:
    <ul>
    <li>Default values</li>
    <li>Input validation</li>
    <li>Error handling</li>
    </ul>
    <ul>
    <li>For the output of objects (via URL) it is necessary to adapt the XSL style sheet (so you can play AVI files, MP3, WAV files etc.):
    <ul>
    <li>In this case copy the SAP standard XSL style sheet to a Z- style sheet and modify it.</li>
    <li>At the moment the Windows Media Player is referenced in the SAP standard XSLas an example. If you want to play data files that aren't supported by the Media Player, reference a different application</li>
    <li>The current SAP style sheets support displaying of AVI files. To test it please assign an URL to an AVI file to the corresponding XStep parameter or add it directly to the output element for the object.</li>
    <li>As an example you can use the <i>SXS library.AVI</i> file of the SXS Library package. Store it in your local hard disk (C:\)</li>
    </ul>
    </li>
    <li>For the output of the JPG image you have to change the URLs that are set as a default.</li>
    </ul>
      ]]>
      </VALUE>
      </TEXTOUTPUT></b>
    Can somebody please help us in displaying this HTML in Adobe Form with effect of the above mentioned HTML tags.
    Thanks,
    Prathibha.

    Hi,
    Forms is a Java Applet on the client that doesn't knwo about html tags. If you need to upload file, then WebUtil is what you need to configure.
    Frank

Maybe you are looking for

  • Automatic email confirmation in Training and Event Management

    Hi All, I need to change the Subject and also need to CC the email on customer class registration auto-confirmation. Already configuration has been done to send email when a customer register for training class. But right now the cofirmation email is

  • Order Siblings By

    Hi, I'm having this trouble with order siblings by. I'm using Report 6i Patch 16 on XP and running 10g DB on HP-UX. My query is select child_account, accountdesc, accounttype from account_table connect by prior child_account = parent_account start wi

  • Requirement of additional object at query level

    hi all there is a requirement of purchasing group as a characteristics in query level..i am using standard cube 0pur_c01(purchasing data)..can u plz tell me how i shuld go about it.... thanks shalini

  • Trouble opening iMovie HD6 projects on iMovie 08.

    Hi there, I have just bought a new iMac, with iMovie 08. I have all my prior projects, created in iMovie HD6 stored on a LaCie external drive. The projects read and open on my laptop (running iMovie 06), but show blank files when plugged into the new

  • Delete excel table column

    I have an excel templpate that contains a table that is already formatted with lots of formulas and colroed celss, etc.  Depending on the query that I run with labview, I produce a data result that is exported to excel and then I want to resize teh e