Static list inserts p tag

team,
I have modified out of the box static list fragment to have only one wysiwyg element, when i add multiple rows of with content in the fragment, I get an unwanted <p> tag, because of this text appears in multiple rows instead of single row.
My question, Is the extra <p> tag coming form wysiwyg by default? Am I missing some thing? I do not have any tag in my fragment code.
regards,
deepak

Deepak,
The way I solved this annoying issue is to use the strReplace function within the loop.
<!--$tmpTitle = ssIncludeXml(SS_DATAFILE, root & "/" & "pubTitle" & "[" & nPos & "]/node()") -->
<!--$tmpTitleA = strReplace(tmpTitle,"<p>","") -->
<!--$tmpTitleB = strReplace(tmpTitleA,"</p>","<br />") -->
<!--$myNewTitle = tmpTitleB -->
<!--$myNewTitle-->

Similar Messages

  • Bug in rendering static list with Hierarchical Expanding template?

    Hi,
    on http://apex.oracle.com/pls/apex/f?p=23910 I prepared test case for my problem. It is static list with template Hierarchical Expanding and following structure:
    1
      1.1
        1.1.1
      1.2
        1.2.1
    2
    Entry 1.2 has condition set to never. And the problem is, as you can see, that entry 2 seems to be under entry 1.1. But really it isn't. Reason of this strange look is that in some cases, when condition for last entry in sublist is evaluted as false, there isn't generated tag </ul> closing that sublist, in this case are not closed even two sublists - under entries 1 and 1.1.
    In my real application it is more complicated, I have static list with about 80 entries (report menu) and every user sees some reports based on his position in organization structure and other conditions. And as you can imagine, this bug produces really confusing results, almost unique for every user.
    Did anybody meet this problem too? We are on ApEx 4.1.0, it is present in 4.1.1 too (as seen on apex.oracle.com)... And I think it wasn't problem in 4.0 (at least nobody noticed for few months and I believe somebody would notice that reports for one department are under reports for another one). Used theme is standard theme 2 - Builder Blue.
    Jirka

    update:
    I tried deriving the full path for the image file by viewing the source when I embedded it in an HTML region on the same page and it gives me something similar to the following URL:
    wwv_flow_file_mgr.get_file?p_security_group_id=502133210878128108&p_fname=myImage.gif
    (p.s. it is a .gif file - not sure if this should make any material difference)
    As a result, I tried embedding this into the code:
    <fo:block>
    <fo:external-graphic src="wwv_flow_file_mgr.get_file?p_security_group_id=502133210878128108&p_fname=myImage.gif)"/>
    </fo:block>
    but this time, instead of merely not rendering, when Acrobat opens, an error message appeared reported that the file was corrupted or invalid. When trying different formats, I seem to get a generic: "500 Internal Server Error".
    I'm going to try putting the image file in the server directory tree to see if that will work. I'll post later either way.

  • Insert BASE tag into HTMLDocument problem

    Hi,
    I've made a prog that read the HTML content from an URL, and write it into a file. But before writing it, I'd like to change the content to add <BASE href="http://www.site.com"></BASE> into the head part of the HTMLDocument. In my prog, I've made a insertBeforeEnd(...) to insert the <BASE> tag, but it's not inserted. I've made another insertBeforeEnd(...) to insert "hello world" (just for test) and it's inserted into the HTMLDocument. Can someone help me ? thanks a lot.
    My prog :
    import java.io.*;
    import java.net.*;
    import javax.swing.text.*;
    import javax.swing.text.html.*;
    public class InsertIntoHTML {
       public static void main(String[] args) {
          URL                  url = null;
          HttpURLConnection      conn;
          HTMLEditorKit         htmlKit;
          HTMLDocument         htmlDoc;
          InputStream            in;
          Element               head;
          boolean               ignoreCharSet = true;
          htmlKit = new HTMLEditorKit();
          htmlDoc = new HTMLDocument();
          try {
             url = new URL("http://www.google.com/");
          catch (java.net.MalformedURLException e) {}
          htmlDoc.putProperty(Document.StreamDescriptionProperty, url);
          htmlDoc.putProperty("IgnoreCharsetDirective", Boolean.TRUE);
          // read www.yahoo.com into HTML document
          try {
             conn = (HttpURLConnection) url.openConnection();
             in = conn.getInputStream();
             Reader reader = new InputStreamReader(in);
             Class c = Class.forName("javax.swing.text.html.parser.ParserDelegator");
             HTMLEditorKit.Parser parser = (HTMLEditorKit.Parser) c.newInstance();
             htmlDoc.setParser(parser);
             HTMLEditorKit.ParserCallback htmlReader = htmlDoc.getReader(0);
             parser.parse(reader, htmlReader, ignoreCharSet);
             htmlReader.flush();
          catch (javax.swing.text.BadLocationException ex) {}
          catch (java.lang.ClassNotFoundException e) {}
          catch (java.lang.InstantiationException e) {}
          catch (java.lang.IllegalAccessException e) {}
          catch (java.io.IOException e) {}
          htmlDoc.setBase(url);
          // find <HEAD> tag into HTML document
          head = getHeadElement(htmlDoc);
          try {
             // insert <BASE> tag into <HEAD> element
             htmlDoc.insertBeforeEnd(head, "<BASE href=\"http://www.google.com/\"></BASE>");
             htmlDoc.insertBeforeEnd(head, "Hello world !");
          catch (javax.swing.text.BadLocationException e) {}
          catch (java.io.IOException e) {}
          // write HTML document into file named yahoo.html      
          try {
             htmlKit.write(new FileOutputStream(new File("google.html")), htmlDoc, 0, htmlDoc.getLength());
          catch (java.io.FileNotFoundException e) {}
          catch (java.io.IOException e) {}
          catch (javax.swing.text.BadLocationException e) {}
       // Find first element into HTML document equals to tag parameter
       public synchronized static final Element findElement(Element root, HTML.Tag kind) {
          if(root == null) return(null);
          if(matchElementType(root, kind)) {
             return(root);
          int count = root.getElementCount();
          if(count > 0) {
             for(int i = 0 ; i<count ; i++) {
                Element child = root.getElement(i);
                Element e = findElement(child, kind);
                if(e != null)
                   return(e);
       return(null);
       public synchronized static final boolean matchElementType(Element e, HTML.Tag kind) {
          return(e.getAttributes().getAttribute(StyleConstants.NameAttribute) == kind);
       // Find HEAD element into HTML document
       public synchronized static final Element getHeadElement(HTMLDocument doc) {
          return(findElement(doc.getRootElements()[0], HTML.Tag.HEAD));

    first, thanks dvorhra09 for your help. unfortunately, if I use &lt; and &gt; instead of '<' and '>', the <BASE> tag is no more interpreted by my browser when the file is loaded, and the <BASE> tag is displayed textually. below, is what I tested :
    htmlDoc.insertBeforeEnd(head, "&lt;BASE href=\"http://www.google.com/\"&gt;&lt;/BASE&gt;");

  • Insert new tags after root element

    Hi,
    I'm trying to insert new tags immediately after the root element in a DOM tree. The data to be inserted is being passed to the program as a string parameter. I've used Dom4J to add the data as a new element immediatelty after the root. Problem is, I'm not able to extract the content as a String from the document object. Here's my sample code :
    String addStr = "<div class=\"test2\">Test Val1</div><div class=\"test2\">Test Val2</div>";
    SAXReader reader = new SAXReader();
    String xml = "<div class=\"discussionThread dt\"><div class=\"dt_subject\">2011 IS HERE!</div></div>";
    Document document = reader.read(new StringReader(xml));
    DefaultElement newElement = new DefaultElement("div");
    newElement.addAttribute("class", "test");
    newElement.add(new DefaultText(addStr));
    List content = document.getRootElement().content();
    if (content != null ) {
            content.add(0, newElement);
    }There are couple of issues with this approach.
    1. I'm not able to find a way to convert the Document object content to String. The only API reference is asXML() which converts the document to a xml and sends it back as String. As a result of this, it adds a <xml> tag at the top.Also,the content within the added String has been parsed and converted to &gt; , &lt;
    Here's the output
    <?xml version="1.0" encoding="UTF-8"?>
    <div class="discussionThread dt"><div class="test">&lt;div class="test2"&gt;Test Val1&lt;/div&gt;&lt;div class="test2"&gt;Test Val2&lt;/div&gt;</div><div class="dt_subject">2011 IS HERE!</div></div>Just wanted to know if there's a better way to do this. Any pointers will be highly appreciated.
    -Thanks

    from oracle documentation...
    Old and new values are available in both BEFORE and AFTER row triggers. A new column value can be assigned in a BEFORE row trigger, but not in an AFTER row trigger (because the triggering statement takes effect before an AFTER row trigger is fired). If a BEFORE row trigger changes the value of new.column, then an AFTER row trigger fired by the same statement sees the change assigned by the BEFORE row trigger.
    for more details read the documentation

  • NULL value in static list of values???

    I'm creating a static list of values and I want to check against these values in a table with a sql query. My question is, can I have the value for one of the items be NULL? Like, is the following static list of values ok:
    STATIC2:No Status;,Hire;HIRE,Reject;REJECT,Maybe Later;LATER
    I want it so that if someone selects "No Status" in my select list, that I check my column in the table for all records that have NULL for this value. Is that possible? Or will I have to create 2 separate queries (1 for NULL, and 1 for all the other values)?

    Actually, I had tried it, but wasn't getting an expected result. I couldn't figure out if this issue was causing my error, or something else, so I posted the question asking if it was possible to do so to try and track down where my error was coming from.

  • How can we bind Two Static Lists to a single Column.

    Hi All,
    My requirement is
    1) I have two different Static List's.
    2) These two static list's are saved to the same column in the database table.
    3) In the UI, I will be having different dropdown's. And each dropdown is bound to this column. Say if I have two dropdowns, in the first dropdown it has to show first static list values and in the second dropdown it hase to show second static list values.
    4) I can change the dropdowns and save(to the same column).
    I am totally stuck here. How can we implement this????

    Hi,
    Thank you very much for your response. The link was not useful for me.
    The actual scenario here is,
    I have a table with columns say (Id, detailId,Type, Unit, Value). here id & detailId acts as composite primary key and it looks similar to this.
    Id     DetailId     Type     Unit     Value
    111     1111     A     Min     12
    111     1112     B     KBytes     13
    111     1113     C     MBytes     14
    So for this I had created two static list View objects (Say ST1 & ST2). The possible values for ST1 are {'sec','min','hours','days'} and the possible values for ST2 are {'Bytes','KBytes','MBytes','GBytes'}.
    And from above table you can observe that these two view objects are mapped to same attribute(Unit) of the table.
    So what I am trying here is, as my UI page contains, 3 different dropdowns(say af:SelectOneChoice) along with 3 textboxes. one textbox and one dropdown in the same line.
    These 3 are related to above 3 types, dropdowns should contain the Units and textboxes should contain the values, i.e based on the type we have to display that.
    I tried so many combinations, but I am not able to succeed in getting this. So your help is highly needed here.
    Please let me know if you are not understood any of the above conditions.
    Thanks & Regards,
    Ravi.

  • Error with this Alien-RFID-Tag-List kind of  tag format in flex 1.5

    Hi all
    I am trying to display the following XML file which i am
    getiing from RFID reader when i send the command to reader. I am
    using flex 1.5.
    <Alien-RFID-Tag-List>
    <Alien-RFID-Tag>
    <TagID>1000 0000 0000 0000</TagID>
    <DiscoveryTime>2006/07/14
    12:28:18</DiscoveryTime>
    <LastSeenTime>2006/07/14 12:28:18</LastSeenTime>
    <Antenna>0</Antenna>
    <ReadCount>98</ReadCount>
    </Alien-RFID-Tag>
    </Alien-RFID-Tag-List>
    For this I am using the following codes
    private function onResultAl(oEvent:Object):Void {
    var aResultAl:Array =
    mx.utils.ArrayUtil.toArray(oEvent.result.Alien-RFID-Tag-List.Alien-RFID-Tag);
    for(var i:Number = 0; i<aResultAl.length; i++){
    _aDPAL.addItem(aResultAl
    <mx:HTTPService id="aldt" url="aliendata.jsp"
    result="onResultAl(event)" fault="alert(event.fault.faultstring);"
    resultFormat="xml"/>
    <mx:DataGrid id="aldg" dataProvider="{_aDPAL}" width="630"
    height="350">
    <mx:columns>
    <mx:Array>
    <mx:DataGridColumn columnName="TagID" headerText="Tag
    ID"/>
    <mx:DataGridColumn columnName="DiscoveryTime"
    headerText="Read Counts"/>
    <mx:DataGridColumn columnName="LastSeenTime"
    headerText="Reliability"/>
    <mx:DataGridColumn columnName="Antenna"
    headerText="Antenna No"/>
    <mx:DataGridColumn columnName="ReadCount"
    headerText="Read Time"/>
    </mx:Array>
    </mx:columns>
    </mx:DataGrid>
    But if i run then I am getting the error :There is no
    property with the name 'RFID'.
    Could anybody tell me why the compiler is ignoring after dash
    in this <Alien-RFID-Tag-List> kind of tag format?
    Thanx
    kvijai

    hi all
    Please have a look and tell me why I am getting this error.
    Thanx
    kvijai

  • Do I need to insert meta tags on domain if it redirects to web.mac page?

    Hi,
    I've set up a domain (http://www.blossomsolutions.ca) with Internic.ca in Canada and filled out a very easy form to redirect to http://web.mac.com/blossomsolutions. Through this excellent forum I learned how to insert meta tags into all my pages on the web.mac site using text edit successfully.
    Now, I'm wondering, will search engines find me if I have "no code" or meta tags at www.blossomsolutions.ca? Internic is only "redirecting" my URL not hosting it. It costs more money if they "host" my domain and I wouldn't have a clue how to set up an index.html page anyway for this domain. Even if I got someone to do this can you redirect an index.html page from blossomsolutions.ca to a web.mac.com page? i.e. does the domain code need to be empty in order for it to redirect?
    Thanks to anyone who can help me with this.
    Dazed and confused,
    Kathleen
    iMAC 2.16GHz 20"   Mac OS X (10.4.10)  
    iMac   Mac OS X (10.4.10)  
    iMac   Mac OS X (10.4.10)  
    iMac   Mac OS X (10.4.10)  

    Hello Kathleen,
    Welcome to the forum. You're site looks very clean and elegant.
    The domain name you purchased (http://www.blossomsolutions.ca/) is serving as a redirecting page to your iWeb generated web page. The answer to whether or not search engines will find you is both yes and no. Search engines use programs called "spiders" that find pages through links and trace out web pages.
    Given some time, sites like Google and MSN will likely find you website (and if you put meta tags in it will display that info in the search engine). But if you are like most iWeb users (myself included) you are impatient for your site to be picked up in search engines. Which is fine, since several search engines provide the means for you to submit your URL. Read this post for more information. http://discussions.apple.com/thread.jspa?messageID=3905977&#3905977
    Looks like you may have already submitted your .mac page.
    Another handy tip for looking up what information a search engine posses on your site is to type "site:" followed by the web address you wish to look up into a search engine. If the search engine has any of the pages to your site it will display them with the meta data they posses. Your site info can be found here. http://www.google.com/search?q=site:http://web.mac.com/blossomsolutions
    I checked your .ca address and google didn't come up with anything.
    Internic.ca should provide you with the means to apply a little bit of a description to your web address. Apart from that, you can't really add any meta data to the domain name.
    Unfortunately even when you get both web addresses picked up by search engines it won't associate them together. They may come up near each other in searches. But the search engine will see them as entirely different sites.
    You could host your site at the domain name if you chose to. The process of publishing is one click like to .mac. But you "Publish to a Folder" and then upload the complete page to the domain name. Its more difficult and cost more (if you chose to retain your .mac account) but it would give you better search engine rankings for your name.
    —"It costs more money if they "host" my domain and I wouldn't have a clue how to set up an index.html page anyway for this domain. Even if I got someone to do this can you redirect an index.html page from blossomsolutions.ca to a web.mac.com page? i.e. does the domain code need to be empty in order for it to redirect?"
    It isn't really worth it have them host your domain name only to put an index.html that redirects to your .mac. Thats basically what the domain forwarding is doing (minus a little bit of info).
    My advice is to keep things how you have them. But, just make sure you get the domain submitted to search engines.
    Hope this wasn't to long or confusing.
    Kind Regards,
    —Eric
    Ash Films
    (see my profile if you want to see my site)

  • Inserting blockquote tags into a HTMLDocument

    G'Day,
    I'm having a bit of trouble inserting <blockquote> tags into a HTMLDocument.
    Basically I want the blockquote tags to implement an indent feature. ie, you click a button and all the text in the current paragraph gets surrunded by blockquote tags, which when rendered makes it indent.
    The code I'm using is:
    Element current = doc.getParagraphElement(pos);
    try
    doc.insertBeforeStart(current, "<blockquote>");
    doc.insertAfterEnd(current, "</blockquote>");
    catch (Exception e)
    lets say we have html like this:
    <p>
    hello
    </p>
    when this code runs, i get:
    <blockquote>
    </blockquote>
    <p>
    hello
    </p>
    I think that when I do the insertBeforeStart and insert the opening tag, after that completes the document is rendered and the end tag is put in there automatically???
    So, can anyone help me out here and suggest a better way?
    Cheers,
    Leighton.

    I've been trying to get <blockquote> insert working in an editor but it seems to be a quite difficult task even if it's only about inserting a couple of tags into the right slot! This is the closest I got:
    HTMLDocument doc = (HTMLDocument)editor.getDocument();
    int start = editor.getCaretPosition()
    int paraStart = doc.getParagraphElement(start).getStartOffset();
    int paraEnd = doc.getParagraphElement(start).getEndOffset();
    String insideBlockQuotes = doc.getText(paraStart, paraEnd - paraStart);
    doc.setOuterHTML(doc.getParagraphElement(start),"<blockquote><p>"+insideBlockQuotes+"</p></blockquote>");
    This is how it works: Get the current paragraphs start and end positions, read the text between the start and end into a string, replace the paragrapElement with <blockquote><p>..the text from string..</p></blockquote>.
    This works 'in about' but it's far from perfect.. it has the following problems:
    1. It looses all formatting from the quoted paragraph (bold etc. tags from the quoted part)
    2. It assumes that the paragraphElement was a <p> (could have been another element too!)
    3. It's ugly
    Anybody come up with a better way to use blockquote?

  • How to control rendering logic of static list element defintion?

    We are using 10gR4 version of site studio and are working with region templates and element definitions. We created a reporters static lits element definition which contains 3 columns (Name, About, Details) and added that to Reporters region template. Next defined a place holder defintion and associated region defintion and the region template fo reporters. Finally I added that place holder onto a article template. In the contribution mode for article we were able to add reporters rows (static list). BUt in the presentation of article I don't to see any listing of reporters. How could I control the display of static list element defintions from the region template forreporters? I don't see a way I could retrieve the individual rows and columns of static list and display the the results. The detail column of static lits just contatin a link to toher content item which is contributed through other region template. I would like to display the contents of that content items in line in the reporters template by making a wcm-place_holder service call for the embedded content items. How to achieve this?
    Regards,
    Pratap

    You are not making a remote call. Take a look at java RMI for more  info:
    http://docs.oracle.com/javase/6/docs/api/java/rmi/package-summary.html
    You can do it using a change listener.
    Take a look at this thread: https://forums.oracle.com/thread/2554119
    Change your class name (Menu ).  There is already  a menu control:
    http://docs.oracle.com/javafx/2/api/javafx/scene/control/Menu.html  

  • Static list default value.

    I need to retrieve the default value of a static list Crystal report parameter. InfoView honors this setting but I haven't found the field exposed in the Java SDK.  I'm using com.crystaldecisions.sdk.occa.report.data.IParameterField to access the parameter properties. 
    Any pointers would be most welcome.
    Thanks

    Hi,
    In your model project, create a view criteria (on the VO which you would be using for displaying values in the LOV). In your view criteria add the attributes and set default value (say add Empno and set its value to literal 1111). Now, when creating LOV for the next view object, select the view criteria you've created in previous step (instead of using all queryable attributes).
    Refer : http://docs.oracle.com/cd/E23943_01/web.1111/b31974/lists.htm#BEIBAFDD
    -Arun

  • Static list from table depending on user type

    All i have a table where i define users and their roles, and i want to setup a static list that would display something like the following, but i want to filter depending on the users role
    so if the user is lets say part of dev then i want them to see
    So my table contains
    pending,completed,work, accepeted, approved
    pending,completed,work
    And if they are part of business then to see
    accepeted, approved, pending.
    And in my select list i am doing the following select * from mytable.

    Hi Ben,
    to my knowledge it's not possible to change or restrict a static list on the fly.
    Why don't you create a table for your static values? Than you are able to restrict the select list. And you even get a useful description when you use your table somewhere else and want to know in which status it is.
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com

  • How to insert h1 tags in muse

    I have tried to insert h1 tags in a muse site and then uploaded.
    When I come to test the site in SEO Analysis software it says there are no h1 tags!
    Any ideas?
    Thanks

    Hi
    How exactly you are defining the tags ?
    As Mac_heibu has suggested you can use paragraph styles and assign the tags.
    These videos will help you :
    http://tv.adobe.com/watch/learn-adobe-muse-cc/working-with-text-styles-create-a-paragraph- style/
    http://www.adobepress.com/articles/article.asp?p=1925239&seqNum=3
    http://www.lynda.com/Muse-tutorials/Creating-paragraph-styles/123518/131190-4.html
    Thanks,
    Sanjit

  • Insert Div Tag button does nothing. DWCS3

    Using the Insert Div Tag button all of the sudden does not add Div tags to the code view or dotted outline in Design view.
    Here's the code result from simply creating a new HTML doc, placing my entry point in the after <body>and click the Insert Div tag button.
    Any ideas?
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>
    <MMString:LoadString id="insertbar/div" />
    </title>
    <!-- Copyright 2003 Macromedia, Inc. All rights reserved. -->
    </head>
    <body>
    </body>
    </html>

    Nevermind... simple as rebuilding the prefs.

  • SelectOneChoice Static List

    I want to bind the f:selectItems component to a list binding for static values since these bindings that can be stored in a PageDef file like any other binding. But issue I'm facing is I cannot add the Label for List static list.
    <af:selectOneChoice label="Static List">
    <af:selectItem label="Yes" value="Y"/>
    <af:selectItem label="No" value="N"/>
    <af:selectItem label="Not Avialable" value="NA"/>
    </af:selectOneChoice>
    How to convert the above into list binding in the PageDef with Labels? I can add only the Value if use "List binding dialog for a static list". Can anyone point me the how to add Labels as well?
    <list IterBinding=...
    DTSupportsMRU="true" StaticList="true">
    <AttrNames>
    <Item Value="StaticList"/>
    </AttrNames>
    <ValueList>
    <Item Value="Y"/>
    <Item Value="N"/>
    <Item Value="NA"/>
    </ValueList>
    </list>

    Hi,
    Storing the labels in pagedf / hardcoding is not a good practice. Instead, you can add them in a resource bundle (would be useful during translation) and use it in your app. If you still like to store them in a pagedef, create a variable under the variableIterator, set a default value for it and use that in your page.
    -Arun

Maybe you are looking for

  • Go from manually update to auto-update without losing songs?

    I was trying to delete some podcasts from my ipod, and was following the directions on the help menu which told me to go to preferences and choose manual update, then delete. I tried it, and it didn't work. When I decided to go back to auto update, I

  • HT4059 I would like to purchase an i book as a gift, can I order and send to her e-mail address for download?

    I would like to purchase an i-book as a gift, can I purchase and send to a different e-mail for her to download?

  • SQL developer

    Can anybody help me out with setting a repository in SQL developer... for version controlling. What i want is to set a repository connection on a server with the repository folder in another server. Any answers that would be helpful ...

  • User order sort changes everytime in Lightroom 3.2

    I have been using Lightroom for a number of years with no troubles.  It is an important part of my photography business.  Lately with ver 3.2 my sort order gets all messed up every time I reopen a catalogue.  The sort can take 4-6 hours, so it is a r

  • Runtime error when implementing subtotals in ALV

    Hi, I have implement subtotalling in a ALV report program. Dump message is: Short text     The current application triggered a termination with a short dump. What happened?     The current application program detected a situation which really     sho