No content on HTML Portlet

I have a HTML Portlet in a navigation bar on a Template. All works fine, when I am logged on a person who created the Navigation bar.
When I log in as another user, the HTML portlet displays "There is currently no HTML content". Is there a way to make HTML Portlet display static HTML regardless the logged in user?
Portal version : 9.0.2
Thank you

Make sure that you created the content using Edit Defaults, and not Customize.
Also, you should use text items instead of the HTML portlet. You can also use a Dynamic Page portlet. The HTML portlet will likely be deprecated in a future release, as there are better ways of publishing HTML text.
Regards,
Jerry
PortalPM

Similar Messages

  • How to use Custom Search in Dynamic Page or HTML Portlet ?

    Gurus,
    1. I have a tab called My Space in the portal web site, where user gets a personalized view of the content.
    2. I am using custom attributes and custom item types. I have a custom attribute called 'Location', which is a attribute of custom item types.
    3. I have 2 pages - News and Events.
    4. All the content in News and Events page is tagged by the attribute 'Location'.
    5. The requirement is to let the user search the News and Events by Location.
    6. To achieve this I used the Custom Search portlet and the user can select the attribute Location and see the resultant News and Event items by location in the Search portlet.
    7. The requirement is to present the News items and Event items in separate regions on the page and show only the first 5 News and Event items in the result and show a More link which would guide the user to rest of the News and Event items.
    8. Eventually there may be more content other than News and Events tagged by location. If so, the requirement is to create a new region and display the new content.
    9. How would I do this using custom search ? I was thinking if there is anyway I could use the custom search api (where can i find it ?) in the HTML portlet or Dynamic page and submit the result to IFRAMES in each region and show the output ?
    Pls advise.
    Thanx a bunch.

    I would suggest that you use two custom search portlets; one for the news items and one for the events items. Switch the custom search portlets to "AutoQuery" mode and add the relevant criteria. On the results display tab of the the "edit defaults" screen, choose to show just 5 items.
    To add a link to show the user mode results, I'd create two new pages that have just a single custom search portlet on it that is customised to show more of the results and maybe has the pagination links enabled.
    Then I'd add two "Page Link" items underneath the two news and events portlets on the first page in an item region.
    I'm sure there are other ways of doing this as well. Hope that helps to get you started.

  • Html Portlet links displaying in another portlet on the same page

    I have seen similar posts but no detailed explaination of how this is done.
    I have an html portlet with links whose content I would like to display in an inline rendering portlet on the same portal page. How can I pass the link url from the html portlet to the inline rendering portlet?
    Thanks,
    Robyn

    If your environment is fairly static, you can handle this easily.
    The link in your HTML portlet must refer to the page URL of the portal page on which the HTML portlet resides (which changes from portal page to portal page), to which you need to append the parameter that your "inline" portlet (under which I'm not sure what you mean) reads:
    <a href="http://<portal_page_url>&my_param=value">click here</a>Is this close to what you're willing to do?

  • Importing Pages containing HTML Portlets

    Hi All,
    I am trying to import several pages each containing one or more HTML Portlets. The import goes through fine.
    But, the content of all the HTML Portlets have been modified to be the same as the last HTML portlet imported.
    Also sometimes the HTML Portlet would come up saying "No HTML content available at this time".
    Appreciate your help.
    Thanks,
    Gopi.

    I found this to be set somewhere is the security, When I log in with my ID, I can see the content. When I log in as a test user I get the error: "There is currently no HTML content. " I've tried testing differet rights both at the user and group level. However I have not had any luck finding where it is.

  • HTML Portlets

    Is there a way to change the name of HTML Portlets? I don't mean the names that appear on the portlet headers, I mean in the selected portlets menu when adding a HTML Portlet and in the layout screen in editing mode. They all say HTML Portlet and it is hard to tell which is which other than their order in the list.
    Thanks,
    Shane Empie

    UltraSearch was only integrated with Portal as of IAS Release 2, prior to R2 UltraSearch does not index Portal content.
    In Release2 UltraSearch indexes only public portal pages, therefore i believe in that release UltraSearch would be able to return the search results as you expect if the pages the HTML portlets are on are public pages.
    However for Portal 3.0.9 you could possibly work around the fact that the search will not search the contents of the HTML Portlets by using InterMedia and URL items.
    You could create URL items which point to the page on which a HTML Portlet resides. When InterMedia indexes the URL items, it indexes the contents of the page pointed to by the URL and thereby indexing the contents of the HTML portlet along with the rest of the content on the page.
    When you perform a searhc using terms within the HTML portlets, you will get the URL items as search results, by clicking on these URL items you will get taken to the page with the HTML portlet on it.
    Finally as for the look and feel of the search results page, you can create your own results page which looks as you desire. (This page must have a Search Results Page portlet on it). Then in the 'Edit Search Properties' screen (usually accessed from the Services portlet on the Administer tab on the builder home page) you can select your page as the Search Results Page. All searches then display thier results on your page. Please see the on-line help or the 3.0.9 documentation for more information.

  • Conditional display HTML Portlet

    Hi all, how can I conditionally display HTML portlet? I have a couple of html portlets on the page, but I want to use the page para to control the display of them. For Java/plsql portlets, it's fine. I don't know how to do that for html portlets. Any advice or suggestion is appreciated.

    we want to embed the part of html in to portlet at run time. portlet has a single navigation parameter defined (for run time)
    so for example, i write a jsr portlet and then I drag the portlet from resource catalog (composer) on to the webcenter page during run time. and then we would pass
    www.xyz.com/index.html as a value of navigation parameter to the portlet. and portlet would consume this index.html.
    problem is what is the attribute within portlet which would get binded and finally consume the index.html at run time ? is it
    src = .......... ???
    is it file = ......... ??
    is it url = ........... ??
    what is it ?
    we are not using UCM so entire Content Presenter taskflows is useless for us
    if it is say src = ... attribute, then we were not able to PASS the index.html TO src attribute as Navig Param at run time.
    remember, even if we able to pass index.html to portlet .............. then we do not want portlet to show index.html URL but rather would want to show the content of index.html (which is "Hello There, Greetings from the server") to show.

  • How to change the background color only for one HTML-Portlet?

    Hi all,
    I have created a HTML-Portlet in my root-page. The root page have a style: Main-Style.
    I want to change the background-color only for this one HTML-Portlet:
    <html>
    <header><title>Test</title></header>
    <body bgcolor="#999999">
    Test
    </body>
    </html>
    But this does not work...
    When I use the CSS, then it will change the background-color for the root-page too.
    Thans
    Leonid Pavlov

    could you try this
    <table bgcolor="#999999">
    <tr>
    <td>
    test
    </td>
    </tr>
    </table>
    I don't think you need <html><header><title>Test</title></header>
    <body></body></html> for your HTML-Portlet.

  • Error while processing /libs/commerce/content/import.html

    hello every body;
    I wanna import a catalog from hybris to cq5, I fill the form when I click import catalog; it gives me this error:
    Error while processing /libs/commerce/content/import.html
    thanks for your help;

    thanks sham;
    ok; it's resoleved now, it was a problem in the version of cq,i was using cq5.4,it dosn't work with this version;
    but I have an other problem here where I imported a catalog from hybris; the function getProductPrice(product) doesn't work;in the file /apps/geometrixx-outdoors/components/nav_products/listitem_product.jsp
    i the line: final String price = session.getPriceInfo(product); anit gives me the error:
    Caused by: java.lang.NullPointerException
              at com.adobe.cq.commerce.hybris.impl.HybrisSessionImpl.getProductPriceInfo(HybrisSessionImpl .java:184)
              at com.adobe.cq.commerce.hybris.impl.HybrisSessionImpl.getProductPrice(HybrisSessionImpl.jav a:211)
              at com.adobe.cq.commerce.hybris.impl.HybrisSessionImpl.getProductPrice(HybrisSessionImpl.jav a:207)
    thanks for your help;

  • How to upload images in HTML portlet

    Hi,
    We want to allow users to add their HTML thru HTML portlets - there are two issues
    1.How to upload the images that are part of HTML.
    2.The <a> </a> doesn't work within the portal framework.
    Thanks
    Sachin

    Hi,
    You could also try giving the absolute URL to the image. This assumes you're using OC4J(Oracle Containers for J2EE), our J2EE compliant container. On your os, navigate to the following directory:
    oc4j_home\j2ee\home\default-web-app. Create an images directory so the physical path becomes:
    oc4j_home\j2ee\home\default-web-app\Images. Store your images in this directory. Startup oc4j by going to a command prompt and entering java -jar oc4j.jar at the oc4j_home\j2ee\home.
    In your browser: http://hostname.domain:8888/Images/somegif.jpg. You can use the url in your <img src> tag in HTML.
    Hope that helps. Please repost to this forum if you have further questions/issues.
    Thanks,
    Sudi Narasimhan
    Oracle9iAS Portal Partner Management

  • Link in HTML Portlet not working

    I have a HTML Portlet which has the following code
         Back to Top
    This link works fine in a stand alone html file. On click of 'Back to Top', it takes to top of the document. But if the code is embedded in html portlet, it takes to previous page accessed. I understand that the portlet is not able to understand that it needs to go to top of the object. How to fix this?

    Hi Sakthi,
    When you hower over the Back To Top link, what does it show in the status bar? Is it just prepending #top to your existing browser link? Or is it pointing to the previous page?
    Secondly as Ido mentioned, you could always embed an anchor on your page template and refer to it.
    As far as javascript is concerned, you could try something like document.scrollTo(0,0);
    I am not sure if it works on IE and Firefox the same or not, but you could give it a shot.
    thanks,
    Harsha

  • Problem using content from content server in portlet.

    Hi all,
    I create a JSR286 portlet project, add a content server connection then drag content from those connection to jspx by selected create > document - content presenter.
    Problem occur when i deploy the project to portlet managed server.
    I'm not sure any mds they required because while deploying the Deploymeny Configuration was poped up to prompt me select mds repository.
    I don't know what mds repository they required.
    Please help.
    Regards.

    Hi ngsankar,
    Thanks for your reply.
    I have no idea about any schema ;(
    on the integrated weblogic server i can't deploy too.
    Is it possible to use any content from content server in portlet like on portal?
    Regards.

  • How to display current user using HTML portlet

    Hello,
    Is it possible to show any text such as Greeting, Current User (ex, Hello, Kevin) using HTML portlet. Can I use <oracle></oracle> tags to get the current user from the API?
    Please suggest me.
    Thanks,
    Satish

    Thanks for your suggestion. There is also another way for this:
    In a Portal text field (CMS item) you can type
    #USER# to display the username of the authentificated user or
    #USER.FULLNAME# to display the full name.
    Thanks,
    Satish

  • Dynamic List of Values in HTML Portlet

    I need to create a dynamic lov that selects the emp name and id from the emp table. This needs to be placed in a HTML portlet. I tried creating a LOV from the applications in portal but I think it needs to be tied to a form/report. I tried creating manually (code below) but it doesn't seem to grab the info from the cursor.
    Any ideas on how to do this or what is wrong with the code?
    <table width="145" border="0" cellspacing="0" cellpadding="4">
    <tr><td><b><FONT class="PortletText1"> View Child Information:</font></b>
    <table width="135" border="0" cellspacing="0" cellpadding="1">
    <form method="post" action="../utilities/switchschools.asp?ci=yy" name="childInfo">
    <tr>
    <td align="left" valign="bottom"><!-- Width set for sake of nav bar. -->
    <select name="student" style="width:137px" onChange="SubmitChildList()">
    <ORACLE>
    declare
    CURSOR get_emp IS
    select A.ename empname, A.empno id
    from emp
    order by 1;
    begin
    FOR emp_loop in get_emp LOOP
    htp.p('<option value= ' || emp_loop.id || '>';
    htp.p(emp_loop.empname || '</option>';
    END LOOP;
    end;
    </ORACLE>
    </select>
    </td>
    <td align="right" valign="bottom">
    <input type="image" title="Go" name="go" id="go" src="/images/go.gif" width="22" height="16" border="0" alt="Go" onclick="return childCheck();">
    </td>
    </tr>
    </form>
    </table>
    </td></tr>
    </table>

    Hi,
    You could make use of the application build tools avail .You could create a LOV based on the query and then use if while creating a form.You also create dynamic lovs within oracle form.
    or you could create a dynamic page with the lov and write a javascript function which on change of the lov would be redirected to some page.
    Thanks,
    Anu

  • Content Server News Portlet major design flaw ?!

    I ran into a Content Server 6.1 issue which is really frustrating me. I am wondering if I am doing something wrong or if it is a design flaw: 1. I created a content server news portlet "out of the box" and added it to my MyPage.2. I created and published 2 news articles.3. I edited the 1st article and just saved it. I did NOT PUBLISH it.4. I edited the 2nd article and PUBLISHED it. The news index is re-published automatically to reflect the changes of the 2nd article which has been published. But the index now displays the changes of BOTH articles, even the unpublished! Furthermore the 1st article can't be opened from the index anymore if the name property has been changed. As the published file name changes with each version and especially when the name is updated, the news index links to the new published file name - but it has never been created as I didn't publish the 1st article! I understand why this is happening: The index content item holds a list of all article content items and is published whenever an article is published / deleted / expired. But until now I thought that content server is holding the last published version and includes this into the list until a new version is published. That's not the case! Imagine this on a production environment with workflow activated: one article was approved and published while the other still needs to be reviewed, but it's (unreviewed) index data like headline etc. is already displayed in the index?! And in worst case the article can't even be opened. You just get the server error "page not found". Many of my content items for a current big project follow the idea of the news template, e.g. HR Staff Overview (persons = articles, overview = index), so I am kind of stressed by what I found out. Has anybody made similar a experience and found a workaround for this? Perhaps one of the support people could explain how the news portlet is intended to be used with this severe behaviour? Am I expecting too much? Is updating an already published article not possible? But why are version mechanisms included for content items then? I appreciate your comments. Thanks.

    Thanks for the quick reply.
    We are using Content Server 6.1 with all Hotfixes installed and we are not planning to upgrade to G6 at the moment.
    As far as I understood the 'filtered.published' property contains the date the content item was published the last time. So it will always be 'true' if the item has been published in the past, no matter if it's currently published or not.
    The index template with the code snippet you sent will display the currently not published (but changed) item properties whenever another item was published. Have you changed the design in 6.2 so that properties of an item in a list property of another item are just copied and not linked?
    As a workaround I now compare the 'modified' property with the 'published' property and if it is greater or equal I don't display it in the index. But that's not the way Content Server was designed to behave, is it? With this solution I can suppress the item in the list if it has been modified after the last publishing, but of course I rather want to have the data of the last published version.
    Isn't that possible? Is it possible in 6.2? Is there any way to update Content Server to 6.2 without acquiring G6?
    RegardsStefan

  • Apply formatting in a JEditorPane and export the content in HTML.

    Hi,
    I'm writing, a program to allow the user to enter a formated text and even add images in a JEditorPane.
    Here is a simple sample of the code:
    import javax.swing.*;
    import javax.swing.text.*;
    import java.awt.*;              //for layout managers and more
    import java.awt.event.*;        //for action events
    import java.net.URL;
    import java.io.IOException;
    public class EditorPane extends JPanel{
        private String newline = "\n";
        private JPanel buttonPanel;
        private JPanel textPanePanel;
        private JEditorPane myEditorPane;
        private JButton boldButton;
        private JButton colorButton;
        private JButton imgButton;
        private JButton saveButton;
         public EditorPane() {
            createGUI();
        private void createGUI() {
            buttonPanel = new JPanel();
            boldButton = new JButton("Bold");
            boldButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    boldButtonActionPerformed(evt);
            colorButton = new JButton("Color");
            colorButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    colorButtonActionPerformed(evt);
            imgButton = new JButton("Image");
            imgButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    imgButtonActionPerformed(evt);
            saveButton = new JButton("Save");
            saveButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    saveButtonActionPerformed(evt);
            buttonPanel.setLayout(new GridLayout(1, 4));
            buttonPanel.add(boldButton);
            buttonPanel.add(colorButton);
            buttonPanel.add(imgButton);
            buttonPanel.add(saveButton);
            textPanePanel = new JPanel();
            textPanePanel.setLayout(new BorderLayout());       
            myEditorPane = this.createEditorPane();
            JScrollPane paneScrollPane = new JScrollPane(myEditorPane);
            textPanePanel.add(paneScrollPane, BorderLayout.CENTER);
            this.setLayout(new BorderLayout());
            this.add(buttonPanel, BorderLayout.NORTH);
            this.add(textPanePanel, BorderLayout.CENTER);
        public static void main(String[] args) {
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                     JFrame frame = new JFrame("TextSamplerDemo");
                    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                   EditorPane newContentPane = new EditorPane();
                    //newContentPane.setOpaque(true); //content panes must be opaque
                    frame.setContentPane(newContentPane);
                    frame.pack();
                    frame.setSize(300,300);
                    frame.setVisible(true);
    private JEditorPane createEditorPane() {
            JEditorPane editorPane = new JEditorPane();
            editorPane.setEditable(true);
            java.net.URL helpURL = TextSamplerDemo.class.getResource(
                                            "simpleHTMLPage.html");
            if (helpURL != null) {
                try {
                    editorPane.setPage(helpURL);
                } catch (IOException e) {
                    System.err.println("Attempted to read a bad URL: " + helpURL);
            } else {
                System.err.println("Couldn't find file: simpleHTMLPage.html");
            return editorPane;
        private void boldButtonActionPerformed(java.awt.event.ActionEvent evt) {
        System.out.println("boldButtonNextActionPerformed");
        //myEditorPane
            // TODO add your handling code here:
        private void colorButtonActionPerformed(java.awt.event.ActionEvent evt) {
        System.out.println("colorButtonActionPerformed");
            // TODO add your handling code here:
        private void imgButtonActionPerformed(java.awt.event.ActionEvent evt) {
        System.out.println("imgButtonActionPerformed");
            // TODO add your handling code here:
        private void saveButtonActionPerformed(java.awt.event.ActionEvent evt) {
        System.out.println("saveButtonActionPerformed");
        String newStr = new String("this is the new String");
        //newStr.setFont(new java.awt.Font("Tahoma", 0, 14));
        this.myEditorPane.replaceSelection("sdfsdfsd");
            // TODO add your handling code here:
    }and the HTML Code of simpleHTMLPage.html is
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body>
    <p>Simple text</p>
    <p><strong>Bold text</strong></p>
    <p><em>Italic text</em></p>
    <p align="center">Center text</p>
    <p><font color="#000099"><strong>Color text</strong></font></p>
    <p>image here : <img src="images/Pig.gif" width="121" height="129"></p>
    <p> </p>
    </body>
    </html>By pressing the Save button I can change the selected text.
    I don�t know the way to get and apply the format (size, color �) to only the selected text and display the selected image in real time in the EditorPane. Like if you press the Bold button, the selected text font will be change to bold.
    I would like to get or save the HTML code of the content of the EditorPane by pressing the Save button, How to make it?
    I can apply the formatting on the selected text in a JTextPane, but I don't know the way to save or export the content in HTML. By doing that it could fix my problem too.
    So any help to do that will be much appreciated.
    Thanks.

    Hi,
    Tks for your answer. That one I can do it. I would like to display the selected text in bold instead of adding the tag in the JEditorPane. If I get you right, you get the hole content of the JEditorPane and save it. How did you get it ? And before saving that in the database, did you fing the keysWord to convert the HTML tag in the corresponding entities ?
    Bellow you have a sample of code to make the formatting in the JTextPane.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.text.*;
    import javax.swing.text.Highlighter;
    import javax.swing.event.*;
    import java.util.*;
    import javax.swing.text.*;
    import javax.swing.text.BadLocationException;
    public class MonJTextPane extends JFrame implements CaretListener, ActionListener
              *     Attributs :
         private JTextPane monTextPane;
         private JLabel monLabel;
         private JButton monBouton;
         private StyleAide style; // class qui defini les effets de style de l'editeur
              *     Constructeur :
         public MonJTextPane ()
         {     super ("Aide");
              // construction du composant Texte
              this.style = new StyleAide (new StyleContext ());
              this.monTextPane = new JTextPane ();
              this.monTextPane.setDocument (style);
              this.monTextPane.addCaretListener (this);
              // construction de la fenetre :
              this.getContentPane ().setLayout (new BorderLayout ());
              this.setBounds (150,150,600,550);
              this.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
              this.monLabel = new JLabel ("Auncune ligne saisie...");
              this.monBouton = new JButton ("change de style");
              this.monBouton.addActionListener (this);
              JPanel panel = new JPanel ();
              panel.setLayout (new GridLayout (1,2));
              panel.add (monLabel);
              panel.add (monBouton);
              this.getContentPane ().add (panel, BorderLayout.SOUTH);
              this.getContentPane ().add (this.monTextPane, BorderLayout.CENTER);
              this.setVisible (true);
              *     Methodes :
         private int getCurrentLigne ()
         {     return ( this.style.getNumLigne (monTextPane.getCaretPosition ())+1 );
         public int getCurrentColonne ()
         {     return ( this.style.getNumColonne (monTextPane.getCaretPosition ())+1 );
              *     Methodes CaretListener:
         // ecoute les deplacements du curseur d'insertion
         public void caretUpdate(CaretEvent e)
         {     int debut = java.lang.Math.min (e.getDot (), e.getMark ());
              int fin   = java.lang.Math.max (e.getDot (), e.getMark ());
              this.monLabel.setText ("Ligne numero : "+ this.getCurrentLigne ()+" Colonne : "+this.getCurrentColonne ()+" (debut : "+debut+", fin : "+fin+")");
              *     Methodes ActionListener:
         public void actionPerformed (ActionEvent e)
         {     int start     = monTextPane.getSelectionStart();
              int end          = monTextPane.getSelectionEnd();
              int debut     = java.lang.Math.min (start, end);
              int fin          = java.lang.Math.max (start, end);
              int longueur= fin - debut;
              this.style.changeStyleSurligne (debut, longueur);
         // lance le tout ....
         public static void main (String argv [])
         {     new MonJTextPane ();
    // la Classe DefaultStyledDocument correspond a la classe utilise comme Model pour les
    // composant Texte evolue comme : JTextPane ou JEditorPane
    // en derivant de cette derniere nous pouvons donc redefinir les methodes d'insertion afin de personnalise
    // le style d'ecriture en fonction du texte et creer une methode permettant de modifier le style utilise pour
    // une partie de texte deja ecrite.
    class StyleAide extends DefaultStyledDocument
              *     Constructeur :
         public StyleAide (StyleContext styles)
         {     super (styles);
              initStyle (styles);
              *     Methodes :
         // redefini pour choisir l'effet de style a utiliser
         public void insertString(int offs, String str, AttributeSet a) throws BadLocationException
         {     try
              {     // si le texte insere est egale a HELP le texte s'ecrit avec le style "styleOp"
                   if ( str.equals ("HELP") )
                   {     super.insertString (offs, str, getStyle ("styleOp"));
                   else // sinon le texte est ecrit avec le style "styleNormal"
                   {     super.insertString (offs, str, getStyle ("styleNormal"));
              catch (BadLocationException e)
              {     System.out.println ("Tuuuttt erreur Insere");
         // modifie le style d'ecriture d'un texte deja ecrit compris
         public void changeStyleSurligne (int positionDepart, int longueur)
         {     setCharacterAttributes (positionDepart, longueur, getStyle ("styleKeyWord"), true);
         // le Model d'un composant texte est enregistre sous form d'un arbre
         // cette methode permet de recuperer le noeud root de l'arbre
         private Element getRootElement ()
         {     return this.getDefaultRootElement ();
         // methode permettant d'obtenir la ligne correspondant a un offset donnee
         public int getNumLigne (int offset)
         {     Element eltR = getRootElement ();
              int numLigne = eltR.getElementIndex (offset);
              Element elt  = eltR.getElement (numLigne);
              if ( offset != elt.getEndOffset () )
              {     return numLigne;
              else
              {     if ( numLigne != 0 )
                   {     return numLigne+1;
              return 0;
         public int getNumColonne (int offset)
         {     Element eltR = getRootElement ();
              Element elt = eltR.getElement (eltR.getElementIndex (offset));
              int numColonne = offset-elt.getStartOffset ();
              return numColonne;
         // Defini les differents styles
         private static void initStyle (StyleContext styles)
         {     // definition du style pour le texte normal (brute)
              javax.swing.text.Style defaut = styles.getStyle (StyleContext.DEFAULT_STYLE);
              javax.swing.text.Style styleNormal = styles.addStyle("styleNormal", defaut);
              StyleConstants.setFontFamily (styleNormal, "Courier");
              StyleConstants.setFontSize (styleNormal, 11);
              StyleConstants.setForeground(styleNormal, Color.black);
              javax.swing.text.Style tmp = styles.addStyle("styleKeyWord", styleNormal);
              // Ajout de la couleur blue et du style gras pour les mots cle
              StyleConstants.setForeground(tmp, Color.blue);
              StyleConstants.setBold(tmp, true);
              tmp = styles.addStyle("styleOp", styleNormal);
              // Ajout de la couleur rouge pour le style des operateurs
              StyleConstants.setForeground(tmp, Color.red);
    }But it hard for me to convert it in the corresponding HTML document.
    Did you have and idea
    Tkks

Maybe you are looking for

  • Two External Hard Drives and Time Machine

    Hi All Does anyone out there know if it is possible to use Time Machine to backup information from one external hard drive to a second external hard drive? I dont want to store this particular information on my internal hard drive (partly because the

  • My NEW phone acting up

    YO **bleep** IS WITH THIS **bleep**!?!?!? I JUST GOT MY PHONE ABOUT A MONTH OR TWO AGO AND I ALREADY NEED A NEW **bleep** BATTERY WHAT THE {word filter avoidance} {word filter avoidance} IS WITH THIS {word filter avoidance}!?!?!?

  • Af:query : Delete duplicate records from results manually

    Hi I have an ADF page with af:quey on a view object.  I have created a viewcriteria to choose few attributes from the view object. The view object is created manually using a sql query, where the query has joins to various other tables (it has outer

  • Which table stores CO Internal Order Status

    Hi Guys,               I am changing Internal Order status, but can't find the respective field in RESB table. AUFK status fields are not even changed ! Any idea Which table records internal order status changes ? Cheers

  • Sunray 4.2 Connector Proxy messages

    I recently upgraded one of the 5 sunray servers in a failover group from SRSS 4.0 to SRSS 4.2 All of the 250+ sunray sessions connect via a kiosk script to one of 4 windows terminal server farms running win 2003 and win 2003 R2. I upgraded the SRWC (