The use of id attribute in html tags

Hi
I use http://java.sun.com/jsf/html as follows:
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<h:form id="myid">
<h:panelGrid id="mypanelgrid" columns="1">
</h:panelGrid>
</ht:form>When I don't use the id attribute with the UI components, the components are not displayed.
I would like to confirm that id attribute is MUST in jsf.
Your kind response is appreciated.
Thanks
Murthy

Actually I see an exception thrown on Windows XP
10:24:45,717 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute
        at org.apache.catalina.session.StandardSession.setAttribute(StandardSess
ion.java:1233)
        at org.apache.catalina.session.StandardSessionFacade.setAttribute(Standa
rdSessionFacade.java:129)
        at com.sun.faces.context.SessionMap.put(ExternalContextImpl.java:556)
        at com.sun.faces.application.StateManagerImpl.saveSerializedView(StateMa
nagerImpl.java:88)
        at net.sourceforge.myfaces.taglib.core.ViewTag.doEndTag(ViewTag.java:138
        at org.apache.jsp.pages.template.TemplateRightPane_jsp._jspx_meth_f
_view_0(org.apache.jsp.pages.template.TemplateRightPane_jsp:246)
        at org.apache.jsp.pages.template.TemplateRightPane_jsp._jspService(
org.apache.jsp.pages.template.TemplateRightPane_jsp:121)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:322)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
14)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:672)
        at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applica
tionDispatcher.java:463)
        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
ispatcher.java:398)
        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
patcher.java:301)
        at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImp
l.java:322)
        at net.sourceforge.myfaces.application.jsp.JspTilesViewHandlerImpl.rende
rView(JspTilesViewHandlerImpl.java:178)
        at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePha
se.java:87)
        at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
        at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at com.xyz.framework.security.authorization.AuthorizationFilter.doFilter
(Unknown Source)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
lter.java:81)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
        at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc
ipalValve.java:39)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:153)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
e.java:59)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
        at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
kerThread.java:112)
        at java.lang.Thread.run(Unknown Source)
10:24:45,748 INFO  [STDOUT] org.apache.jasper.JasperException: setAttribute: Non
-serializable attribute
10:24:45,748 INFO  [STDOUT]     at org.apache.jasper.servlet.JspServletWrapper.s
ervice(JspServletWrapper.java:370)
10:24:45,748 INFO  [STDOUT]     at org.apache.jasper.servlet.JspServlet.serviceJ
spFile(JspServlet.java:314)
10:24:45,748 INFO  [STDOUT]     at org.apache.jasper.servlet.JspServlet.service(
JspServlet.java:264)
10:24:45,748 INFO  [STDOUT]     at javax.servlet.http.HttpServlet.service(HttpSe
rvlet.java:810)
10:24:45,748 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:252)
10:24:45,764 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:173)
10:24:45,764 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationDispatche
r.invoke(ApplicationDispatcher.java:672)
10:24:45,764 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationDispatche
r.processRequest(ApplicationDispatcher.java:463)
10:24:45,764 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationDispatche
r.doForward(ApplicationDispatcher.java:398)
10:24:45,764 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationDispatche
r.forward(ApplicationDispatcher.java:301)
10:24:45,764 INFO  [STDOUT]     at com.sun.faces.context.ExternalContextImpl.dis
patch(ExternalContextImpl.java:322)
10:24:45,764 INFO  [STDOUT]     at net.sourceforge.myfaces.application.jsp.JspTi
lesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:178)
10:24:45,764 INFO  [STDOUT]     at com.sun.faces.lifecycle.RenderResponsePhase.e
xecute(RenderResponsePhase.java:87)
10:24:45,764 INFO  [STDOUT]     at com.sun.faces.lifecycle.LifecycleImpl.phase(L
ifecycleImpl.java:200)
10:24:45,764 INFO  [STDOUT]     at com.sun.faces.lifecycle.LifecycleImpl.render(
LifecycleImpl.java:117)
10:24:45,764 INFO  [STDOUT]     at javax.faces.webapp.FacesServlet.service(Faces
Servlet.java:198)
10:24:45,764 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:252)
10:24:45,764 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:173)
10:24:45,764 INFO  [STDOUT]     at com.xyz.framework.security.authorization.Auth
orizationFilter.doFilter(Unknown Source)
10:24:45,764 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:202)
10:24:45,764 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:173)
10:24:45,764 INFO  [STDOUT]     at org.jboss.web.tomcat.filters.ReplyHeaderFilte
r.doFilter(ReplyHeaderFilter.java:81)
10:24:45,779 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:202)
10:24:45,779 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:173)
10:24:45,779 INFO  [STDOUT]     at org.apache.catalina.core.StandardWrapperValve
.invoke(StandardWrapperValve.java:213)
10:24:45,779 INFO  [STDOUT]     at org.apache.catalina.core.StandardContextValve
.invoke(StandardContextValve.java:178)
10:24:45,779 INFO  [STDOUT]     at org.jboss.web.tomcat.security.CustomPrincipal
Valve.invoke(CustomPrincipalValve.java:39)
10:24:45,779 INFO  [STDOUT]     at org.jboss.web.tomcat.security.SecurityAssocia
tionValve.invoke(SecurityAssociationValve.java:153)
10:24:45,779 INFO  [STDOUT]     at org.jboss.web.tomcat.security.JaccContextValv
e.invoke(JaccContextValve.java:59)
10:24:45,779 INFO  [STDOUT]     at org.apache.catalina.core.StandardHostValve.in
voke(StandardHostValve.java:126)
10:24:45,779 INFO  [STDOUT]     at org.apache.catalina.valves.ErrorReportValve.i
nvoke(ErrorReportValve.java:105)
10:24:45,779 INFO  [STDOUT]     at org.apache.catalina.core.StandardEngineValve.
invoke(StandardEngineValve.java:107)
10:24:45,779 INFO  [STDOUT]     at org.apache.catalina.connector.CoyoteAdapter.s
ervice(CoyoteAdapter.java:148)
10:24:45,779 INFO  [STDOUT]     at org.apache.coyote.http11.Http11Processor.proc
ess(Http11Processor.java:856)
10:24:45,779 INFO  [STDOUT]     at org.apache.coyote.http11.Http11Protocol$Http1
1ConnectionHandler.processConnection(Http11Protocol.java:744)
10:24:45,779 INFO  [STDOUT]     at org.apache.tomcat.util.net.PoolTcpEndpoint.pr
ocessSocket(PoolTcpEndpoint.java:527)
10:24:45,779 INFO  [STDOUT]     at org.apache.tomcat.util.net.MasterSlaveWorkerT
hread.run(MasterSlaveWorkerThread.java:112)
10:24:45,779 INFO  [STDOUT]     at java.lang.Thread.run(Unknown Source)
10:24:45,779 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet
threw exception
java.lang.IllegalStateException
        at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFac
ade.java:423)
        at com.xyz.framework.security.authorization.AuthorizationFilter.doFilter
(Unknown Source)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
lter.java:81)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
        at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc
ipalValve.java:39)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:153)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
e.java:59)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoI'd appreciate your kind help.
Thanks
Murthy

Similar Messages

  • What is the use of version attribute in jnlp tag??

    Hello,
    I want to know what is the use of version attribute in jnlp tag.
    For ex:
    <jnlp spec="6.0+" codebase="$$codebase" href="$$name" version="1.1">
    </jnlp>
    In the spec it explains:
    In the Jnlp tag:
    version = The version of the application being launched, as well as the version of the JNLP file itself.
    1. Is this version attribute would work as version attribute in jar tag. Ex: <jar href="application.jar" version="1.1"/> ?
    i.e. can we specify different jnlp's with the same name as we do for jar's with the help of version.xml.
    Any help is greatly appreciated.
    //Anjali

    Hi Reddy,
    If one Info Object depends on another info object we will make that dependent info object as a compounding attribute of main Info object.
    Eg: Storage Location – Plant
    In above eg there is no meaning of Storage Location without Plant. So, we will make storage location as compounding attribute of Plant.
    Regards,
    Sreehari.

  • What is the use of checking Attribute Only in IO?

    Hi,
    Can some one explain what is the use of checking Attribute Only in IO?
    I couldn't find the right answer in the forums. 
    Thanks,
    Sam

    'Attributes only ' won't create any Extra Tables.
    If you Create Attributes only, you can't use this IO as Charecterstic or Navigation Attribute to other IO.
    You can only use this As Display Attribute.
    Assume, Customer Phone No. You don't want to provide Navigation with this. As well as you need only Latest Value. You don't want history of Customer Phone Numbers.
    You need to Create Customer Phone no with 'Attributes only' and Assign this to Customer IO. You can't navigate with Phone No in Queries.
    Nagesh Ganisetti.
    Assign points if it helps.

  • Use of titleKey attribute in html:select tag

    Hi,
    There is one "titleKey" attribute to create mouse over pop-up texts taking key values from property files in case of i18n. It works for every struts specific tag like <html:text titleKey="help.rmc.name"/> or <html:checkbox titleKey="help.rmc.name"/> except for <html:select> tag which is used for creating combo box or list box. But this tag contains the titleKey attribute.
    Please give me some suggestions how to implement this mouse over pop-up texts in case of <html:select> tag

    Hi,
    There is one "titleKey" attribute to create mouse over pop-up texts taking key values from property files in case of i18n. It works for every struts specific tag like <html:text titleKey="help.rmc.name"/> or <html:checkbox titleKey="help.rmc.name"/> except for <html:select> tag which is used for creating combo box or list box. But this tag contains the titleKey attribute.
    Please give me some suggestions how to implement this mouse over pop-up texts in case of <html:select> tag

  • Include lang attribute in html tag of all portal pages

    Hi, anyone knows how is possible to include the lang in the portal pages?
    Now all pages begin with <html> but I need <html lang="es">.
    Where can I update that?
    I mean that is done by some portal service or perhaps with a file.
    all suggestions are welcomed.
    Thanks in advanced.
    Regards.

    The Javascript source URI has the value "RES_NOT_FOUND".
    If I try to access it using ".../faces/javax.faces.resource/javascript.js?ln=js" I get a blank page (contains a Html and Body only).
    If I try to access it using ".../faces/resources/js/javascript.js" I can download the javascript file from the taglib.
    If I manually copy the javascript.js file from the taglib into the enclosing project and save it in "resource/js", then the javascript source URI is resolved correctly to ".../faces/javax.faces.resource/javascript.js?ln=js" and I can downloaded it, but then it is the local copy and not the one from the taglib jar.
    Do I need some specific configuration in web.xml or other deployment descriptors, to be able to use "javax.faces.resource"?
    The only configurations whoch smells like "javax.faces.resource" is this context param: javax.faces.FACELETS_RESOURCE_RESOLVER=oracle.adfinternal.view.faces.facelets.rich.AdfFaceletsResourceResolver
    In web.xml various "resource" servlets is defined (I'm not sure whether I need them, JDeveloper has created them automatically):
    a) resources = org.apache.myfaces.trinidad.webapp.ResourceServlet, maps to: /adf/*, /afr/*, /bi/*
    b) adflibResources = oracle.adf.library.webapp.ResourceServlet, maps to: /adflib/*
    I appreciate your help.

  • What's the use for "name" attribute?

    Almost every object has a "name" attribute and "display name" attribute, e.g. page, tab, template.
    What is the exact use of the name attribute. For my understanding, one of its use to is contruct a URL for the object. For example, when I want to add one item to a page, the shows me the path to the page is:
    PAGE / HELLO_PAGE_GROUP / HELLO_PAGE / TAB37465 / TAB37469 /
    TAB37465 is the name of the tab attribute. I realized this and went to change the name of the tab to a more meaningful value. However, when I try to add the item, the page Path did not change. Is this a oracle internal bug?
    I have similar problem with navigation page. I published a navigation page as portlet. I changed the name of the navigation page and use the name as the portlet name, the new name of the portlet can not be reflected in the portlet repository.

    Jerry,
    1. I tried to add an item to the page within the tab. On the "add item" page, it shows me the path to the current page. Ok, Let's forget about "item", and just talk about the path to a tabbed page. The path/URL never changes, even after I change the tab "name" attribute.
    2. I am talking about the name of the portlet within portlet repository. Let's see within page group A, I created navigation page with name of "test". I published the page as a portlet. In the portlet repository, I can see a new portlet "test" under "new/A". I changed navigation page name from "test" to be "B", however, the portlet name never changed in the portlet repository. It's always "test".

  • In OAF restrict the richtext editor using html tags

    Hi Gurus,
    In my page Insert/Update I have requirement of Adding Comment. I have used MessageRichText for this Comment section. The data type of the corresponding Table column is CLOB.
    But while saving the entered comment, data is getting saved with HTML tags. .... :
    I have another search page that cannot have MessageRichText filed; only MessageStyledText field could be used to show the Saved Comment.
    As the data has been stored with HTML tags in DB Table, in the Search Page  it showing the Last Inserted Comment with HTML tag.
    I want to show the actual Comment entered without HTML tag.........how to do this??????
    Please help!!!!!!!!!!!!!!!!!!!!!!!!!1

    Hello cornelius.
    For one, you need to select RTF for message composition and not Plain Text.
    Select/highlight the text you want for the hyperlink and at the menu bar, go to Edit and select Add Hyperlink.
    Enter the URL in the space provided and be sure to include http://
    Select OK when finished.

  • How do I modify a Html tag attribute?

    Hi.
    I tryed to modify the witdth and height attributes of <applet> tag but I have not obtained it. I run this:
    import java.io.*;
    import javax.swing.text.*;
    import javax.swing.text.html.*;
    import javax.swing.text.html.parser.*;
    class OtraPrueba{
         public static void main(String[] args){
              String infile = "c:\\Page1.htm";
              String outfile = "c:\\outPage1.htm";
              String applethtml = "<applet code=\"class1.class\" codebase=\"v_10\" width=\"100\" height=\"100\" archive=\"class1.zip\"";
              Reader r;
              Writer w;
              HTMLDocument htmldoc;
              HTMLEditorKit kit = new HTMLEditorKit();
              HTMLEditorKit.ParserCallback callback =          
                   new HTMLEditorKit.ParserCallback(){
                        public void handleText(char[] data, int pos){
                             for(int i=0;i<data.length;i++)
                                  System.out.println ("data[" + i + "]" + data);
                        public void handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos){
         System.out.println ("handleStartTag " + t);
         if (t == HTML.Tag.APPLET){
              a.removeAttribute(HTML.Attribute.WIDTH);
              a.addAttribute(HTML.Attribute.WIDTH, "100");
              try{
                   r = new FileReader(infile);
                   w = new FileWriter(outfile);
                   System.out.println ("antes del parser");
                   new ParserDelegator().parse(r, callback, false);               
    Can you help me?
    Thanks.

    Hello uhilger.
    I do it what you tell me last week but I get a NullPointerException at write the document extends HTMLDocument. It seems tries to write a empty tag. this is the exception text:
    _______________________exception text_____________________________
    java.lang.NullPointerException
    at javax.swing.text.AbstractWriter.write(AbstractWriter.java:489)
    at javax.swing.text.html.HTMLWriter.emptyTag(HTMLWriter.java:315)
    at javax.swing.text.html.HTMLWriter.write(HTMLWriter.java:187)
    at javax.swing.text.html.HTMLEditorKit.write(HTMLEditorKit.java:289)
    at Editor.setAppletAttributes(Editor.java:1017)
    at Editor.saveMenuItemActionPerformed(Editor.java:535)
    at Editor.access$13(Editor.java:24)
    at Editor$14.actionPerformed(Editor.java:421)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:17
    67)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
    ctButton.java:1820)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
    .java:419)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257
    at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1
    092)
    at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseRelease
    d(BasicMenuItemUI.java:932)
    at java.awt.Component.processMouseEvent(Component.java:5021)
    at java.awt.Component.processEvent(Component.java:4818)
    at java.awt.Container.processEvent(Container.java:1380)
    at java.awt.Component.dispatchEventImpl(Component.java:3526)
    at java.awt.Container.dispatchEventImpl(Container.java:1437)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2929)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859)
    at java.awt.Container.dispatchEventImpl(Container.java:1423)
    at java.awt.Window.dispatchEventImpl(Window.java:1566)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:190)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
    ___________________end_exception text_____________________________
    I make a subclass of HTMLDocument with name EditableHTMLDocument :
    import javax.swing.event.*;
    import javax.swing.text.*;
    import javax.swing.text.html.HTMLDocument;
    class EditableHTMLDocument extends HTMLDocument{
         public void addAttributes(Element e, AttributeSet a) {
              if ((e != null) && (a != null)) {
                   try {
                        writeLock();
                        System.out.println("SHTMLDocument addAttributes e=" + e);
                        System.out.println("SHTMLDocument addAttributes a=" + a);
                        int start = e.getStartOffset();
                        javax.swing.text.AbstractDocument.DefaultDocumentEvent changes =
                        new javax.swing.text.AbstractDocument.DefaultDocumentEvent(start, e.getEndOffset() - start,
                             DocumentEvent.EventType.CHANGE);
                        AttributeSet sCopy = a.copyAttributes();
                        MutableAttributeSet attr = (MutableAttributeSet) e.getAttributes();
                        changes.addEdit(new AttributeUndoableEdit(e, sCopy, false));
                        attr.addAttributes(a);
                        changes.end();
                        fireChangedUpdate(changes);
                        fireUndoableEditUpdate(new UndoableEditEvent(this, changes));
                   }finally {
                        writeUnlock();
    And this is the method of program main class than call you addAttributes method:
         private void setAppletAttributes(){
              BufferedReader br;
              BufferedWriter bw;
              HTMLDocument htmlDoc;
              EditableHTMLDocument editHtmlDoc;
              HTMLEditorKit kit = new HTMLEditorKit();
              try{          
                   br = new BufferedReader( new FileReader( jTxtHtmlFile.getText() ) );
                   //htmlDoc = (HTMLDocument)kit.createDefaultDocument ();
                   editHtmlDoc = new EditableHTMLDocument();
                   kit.read (br, editHtmlDoc, 0);
                   br.close ();
                   javax.swing.text.Element rootElem = editHtmlDoc.getDefaultRootElement ();
                   javax.swing.text.Element elem =
                        editHtmlDoc.getElement (rootElem, HTML.Attribute.CODEBASE, jTxtCodebase.getText ());
                   SimpleAttributeSet sas = new SimpleAttributeSet();
                   sas.addAttribute ( HTML.Attribute.CODE, jTxtCode.getText () );
                   sas.addAttribute ( HTML.Attribute.CODEBASE, jTxtCodebase.getText () );
                   sas.addAttribute ( HTML.Attribute.ARCHIVE, jTxtArchive.getText () );
                   sas.addAttribute ( HTML.Attribute.WIDTH, jTxtAnchoApplet.getText () );
                   sas.addAttribute ( HTML.Attribute.HEIGHT, jTxtAltoApplet.getText () );
                   editHtmlDoc.addAttributes (elem, sas);
                   editHtmlDoc.dump (System.out);
                   bw = new BufferedWriter( new FileWriter( jTxtHtmlFile.getText() ) );
                   System.out.println ("length " + editHtmlDoc.getLength ());
                   kit.write (bw, editHtmlDoc, 0, editHtmlDoc.getLength ());
                   bw.flush ();
                   bw.close ();
              }catch(BadLocationException ble){
                   System.out.println ("BadLocationException " + ble.getMessage());     
    }catch(FileNotFoundException fnfe){
                   System.out.println ("FileNotFoundException " + fnfe.getMessage());     
              }catch(IOException ioe){
                   System.out.println ("IOException " + ioe.getMessage());
    Which you think that it is the problem?
    Thank you.
    Sergio Mart�n
    I visited your great page and download your SimplyHTML. I'll probe later.

  • Highlighted of the start and the end of html tag

    [En] : Hello all and all,
    I wonder if it is possible to display the start and end of a html tag highlighting (or with a different background) when it is selected.
    thx
    Sorry for my english.
    [Fr] Bonjour a toutes et a tous,
    J'aimerais savoir si il est possible d'afficher le début et la fin d'une balise html en surbrillance (ou avec un fond différent) lorsque celui ci est selectionné .
    Merci

    En Anglais: In Code view, Select Parent Tag.  See screenshot below.
    En Français: En mode Code, Sélectionner balise parente. Voir capture d'écran ci-dessous.
    Nancy O.

  • How to disable html tags in richtext editor

    Hi All,
    I want to disable the html tags in rich text editor.I am able to disable the all components using the following code
    af:richTextEditor id="rte2" toolboxLayout="spellcheck"/>
    <f:facet name="spellcheck">
    <af:commandLink id="chek" text="Check Spelling" styleClass="linkcont"/>
    </f:facet>
    When page gets submitted i dont want all the html tags in it How i can achive this.
    Regards,
    Smaran

    Hi,
    I am not sure your question is complete as it seems to lack content, Anyway, did you try a value change listener to access the content and parse it for HTML tags?
    Frank

  • How to Capture html tags in Report output

    Hi
    i'm working on a report in apex. the data i've captured has html tags in the column information. is there a way to capture those tags in the report output?
    Thanks in advance,
    Edited by: user13080645 on Feb 23, 2011 1:38 AM

    Hi,
    Go to report attribute page and select that column and "Standard Report Column" in "Display As".
    You can show the html tag in report.
    Regards,
    Kartik Patel
    http://patelkartik.blogspot.com/
    http://apex.oracle.com/pls/apex/f?p=9904351712:1

  • Html tags in pdf printing

    Hi ,
    I have a pl/sql region which I use to display a report .
    Now I want a Pdf output of this pl/sql region. For this I used the Bi publisher and was able to design the report query and report layout as required.
    However my problem is that some of the columns in my table have html tags (since the input for these column is through an text area with html editor) . When the PDF is generated the html tags are not converted.
    Please advice me on this.
    Thanks,
    Deepa
    Edited by: Deepa J on Sep 25, 2008 6:01 AM

    Hi Deepa.
    You wont get the HTML to be interpreted in the BI Publisher output I'm afraid.
    You'll need to wait for APEX 4.0 for that functionality.
    If you're seeing the HTML tags in your PDF and you use a Classic report region you can try selecting the "Strip HTML" option in the Layout and Pagination settings.
    Regards
    Simon Gadd

  • When Exported in PDF reports displays HTML Tags

    Hi All,
    Business Object XI R2
    WebI Report
    I am Reporting on Oracle CLOBs. This CLOB contains Data with HTML Tags, Clearly this CLOB is the combination of DATA formatted in HTML tags.
    When I create a WebI Reports on this (CLOB) WebI displays correctly in the sence data only.
    When I export this report to PDF; The PDF display contains both data with HTML tags as well.
    Is there any solution/workaround or any setting in the BO Server to overcome/solve this issue.
    Appreciated you prompt help.
    Thanks,
    Ashok

    Christine,
    My question is wether Adobe support CLOBs or not.
    I was reported on oracle CLOBs (This CLOBs contains data wrapped in HTML tags), by using Business Object Web Intelligence. This WebI displaying the reports as I desire, there is no problem, in WebI. WebI displaying data with no HTML Tags.
    My problem is that when I export this WebI report, this Adobe is getting HTML tags, why? Since this WebI is not displaying the HTML tags, since adobe does not know wether there is a HTML tags or not.
    Apprecited your prompt reply.
    Thanks,
    Ash

  • HTML Tags in Crystal

    Hello All,
    Since my replies were deleted for some unknown reason from the feature requests thread,
    I Thought that i might be missing something and Maybe someone can shed some light on this issue for me...
    We're using Sql Server 2008 to store our data, in some tables we're using varchar(max) as data type and we store huge HTMLs inside them.
    unfortunately, crystal reports support text length only up to 65534, which give's us a big headache because we have to use our own workaround to cut these huge HTMLs in 65k chunks and yet make them look as if they were in one piece.
    What we can't work around, is the lack of support in basic HTML Tags, such as <TABLE>.
    every text that was originaly authored inside a table tag, will be stripped down from the table to a messed text...
    Does anyone have a solution/workaround for this issue? we desperately need the ability to display this HTML element in the report, but for now we're unable to.
    Please help, Thank you.

    hey Muskito,
    there is another method that you can try. there is an option to activate Pass Through HTML which will then allow fields and formulae containing html to show up as html. the activation of Pass Through HTML is a supported feature of businessobjects enterprise since version xi.
    before you waste too much time on this, here are the limitations:
    1) you cannot export the html as html...i.e. if you export a report with pass through html the html will show up as text instead of html
    2) you cannot use the crystal reports viewer print option...sometimes the browser print functionality will suffice
    3) paging can be an issue as the cr print engine doesn't know the sizing of the html being printed
    to see how to activate pass through html, go to the webelements page [here |Crystal Reports webElements]and download the files...in the User Guide there are instructions on how to activate pass through html on your system.
    cheers,
    jamie

  • Displaying content in JSP page, want BR but not other Html tags

    I have a page and am reading files and displaying the contents of the files onto the page in a <div> Oneissue is that in the file the end of line are \n or \r\n whichever operation system. I replaced those with <BR> no problem. Now my issue is that I display that in the JSP page:
    <c:out value="${filecontents}" escapeXml="false" />I use escapeXml so that <BR> will add the line breaks. Now my issue is that the file might contains other HTML tags that I want to display simply as text - I don't want the browser to render the other HTML tags.
    Is there a way to do that? Would I have to replace HTML tags with something special?

    Hmm... your file contains HTML tags, but you don't want the browser to interpret them as HTML tags, right? So the way to do that is to use escapeXml="true" in your c:out element.
    But then that also escapes the <BR> tags that you carefully put in there. And you don't want that. You want the browser to interpret those as HTML tags.
    I guess you can't have it both ways. Can you do something like outputting one line of the file at a time with <c:out ... escapeXml="true"> followed by <br>?

Maybe you are looking for