Xhtml tags and attributes

Hi,
I was going through some xhtml reference text and found that
there are many attributes to xhtml tags that i did not knew of.
There were many tags which I never used. For eg.,
<big></big> and some attributes like <select
dir=""></select>.
What I want to know is that - do I really need to learn each
and every attribute of an xhtml element or each and every tag that
xhtml throws at me, from the point of interview or is it sufficient
to know those attributes and elements which make me make accessible
websites and validated markup?
What do you all suggest?
Gaurav
www.gauravchandra.info

.oO(gaurav_ch)
> @Michael Fesser - If IE does not support XHTML, this
means that it is
>rendering it as HTML inspite of the XHTML DOCTYPE used in
making pages? OMG!!!
>I really hate Microsoft for this. Thanks for telling me
this. I never knew that.
Exactly. IE accepts XHTML only if the server delivers it as
text/html.
But then it's not really XHTML anymore.
Real XHTML should be delivered as application/xhtml+xml,
which would let
modern browsers like Opera and FF use their XML parsers
instead of the
old and bloated tagsoup parsers, but until now IE doesn't
support this.
Not sure about the coming IE 8, though.
>Still my question is unanswered - do I really need to
learn each and every
>attribute of an xhtml element or each and every tag that
xhtml throws at me,
>from the point of interview or is it sufficient to know
those attributes and
>elements which make me make accessible websites and
validated markup?
You should know at least most of the elements and attributes,
so that
you can use them where appropriate. Same for CSS and its
properties. Of
course you can't (and don't have to) remember them all.
That's where a
quick reference guide or a "cheat sheet" comes in handy.
In my Opera browser for example I have these pages as sidebar
panels for
a quick lookup (should also work in FF):
http://people.opera.com/rijk/panels/html4.01-online/elem.html
http://people.opera.com/rijk/panels/css2.1-online/prop-visual.html
Here are some more panels with previews:
http://people.opera.com/rijk/panels/
You also might find some of these cheat sheets quite useful:
http://www.addedbytes.com/cheat-sheets/
Micha

Similar Messages

  • Get all tags and attributes from schema

    Mapping question
    I have a mapping requirement where the customer needs all the tags and attributes from the schema whether it has a value or not. The schema has almost 1500 tags and each of them has a attribute. We are mapping only about 50 of them, so the rest of them has to be blank. Actually about 700 of the attributes has fixed values like CHAR. Normally I would create a second mapping and use exists otherwise map a empty tag, but in this case the number of tags is high. Is there a easy way to create all the blank tags during runtime similar to using generate instance in test mode or generate sample file in xmlspy.
    The scenario is IDOC to SOAP with BPM customer is using a custom schema
    Thanks in advance
    Asif

    Any hint or suggestion with the use of java/xslt/abap mapping or any other way to avoid mapping each of these tags manually will be appreciated.
    thanks
    Asif

  • CHTMLB dexcription tags and attributes

    Hi everybody,
    I am new in CRM WEb UI.
    Do youk now where I can find description of the tags/attributes and some explanations /examples ?
    Thanks in advance
    In SE80 in the tag libraries I found all the tags from CHTMLB byut when I clik F1 on the tag or the attributes, I receive nothing .. is that normal ?
    Thanks for your help,
    Marie

    .oO(gaurav_ch)
    > @Michael Fesser - If IE does not support XHTML, this
    means that it is
    >rendering it as HTML inspite of the XHTML DOCTYPE used in
    making pages? OMG!!!
    >I really hate Microsoft for this. Thanks for telling me
    this. I never knew that.
    Exactly. IE accepts XHTML only if the server delivers it as
    text/html.
    But then it's not really XHTML anymore.
    Real XHTML should be delivered as application/xhtml+xml,
    which would let
    modern browsers like Opera and FF use their XML parsers
    instead of the
    old and bloated tagsoup parsers, but until now IE doesn't
    support this.
    Not sure about the coming IE 8, though.
    >Still my question is unanswered - do I really need to
    learn each and every
    >attribute of an xhtml element or each and every tag that
    xhtml throws at me,
    >from the point of interview or is it sufficient to know
    those attributes and
    >elements which make me make accessible websites and
    validated markup?
    You should know at least most of the elements and attributes,
    so that
    you can use them where appropriate. Same for CSS and its
    properties. Of
    course you can't (and don't have to) remember them all.
    That's where a
    quick reference guide or a "cheat sheet" comes in handy.
    In my Opera browser for example I have these pages as sidebar
    panels for
    a quick lookup (should also work in FF):
    http://people.opera.com/rijk/panels/html4.01-online/elem.html
    http://people.opera.com/rijk/panels/css2.1-online/prop-visual.html
    Here are some more panels with previews:
    http://people.opera.com/rijk/panels/
    You also might find some of these cheat sheets quite useful:
    http://www.addedbytes.com/cheat-sheets/
    Micha

  • Custom Tag and Attribute Not Found

    Hi,
    I've been getting an error with the following code in a JSP called cardDeclined.jsp...
    <gwps:log level="ERROR" message="<%= request.getAttribute("errorMessage") %>" />gwps:log is a custom tag and errorMessage is a request attribute set in a servlet that includes my JSP. When I execute the program, I get a message from the servlet container (Tomcat 3.2.3) stating that "attribute 'errorMessage' has no value".
    I wrote some test code that dumps out "errorMessage"; that seemed to work. The JSP request object has a value for "errorMessage." So, I now use the following workaround...
    <% String message = (String)request.getAttribute("errorMessage"); %>
    <gwps:log level="ERROR" message="<%= message %>" />I'm looking for a reference describing how request and session variables can be passed to the custom tag
    Thanks,
    CW

    I think you might be having a problem with the quotes. Try this instead:
    <gwps:log level="ERROR" message='<%= request.getAttribute("errorMessage") %>' />
    Notice the single quotes around the scriptlet.

  • CF10 CFML tag, functions and attributes autofill in Dreamweaver CS5.5

    We have Coldfusion 10 and Dreamweaver CS5.5 in my company. We want to be able to see all the CF10 CFML functions, tags and attributes in the autofill when writing code. I have found an Adobe link to a download for them but it doesn't say what version of Dreamweaver is required for it to work. Can someone please tell me? Will it work with CS5.5?
    (This window won't let me paste in the link I have but it's in the Coldfusion Support Center Downloads | Coldfusion 10 Devleoper Tools | Adobe Coldfusion 10 Extensions for Dreamweaver. Also note that we do have CS5.5 in my company but I don't have an install available for me to test so I'm hoping it will be easier to get an answer to this question here rather than obtain one....thanks)

    This is what you are looking for : http://help.adobe.com/en_US/ColdFusion/10.0/Installing/WSc3ff6d0ea77859461172e0811cdec1896 9-7fff.html
    Download MXP from here : http://www.adobe.com/support/coldfusion/downloads.html#cf10devtools
    Insatll and then launch Dreamweaver CS 5.5

  • Create XML docs with hierarchy of tags and attr defined in databaste tables

    Hi,
    My problem is a little unique one. I want the ability to define the structure of the XML document (i.e. the hierarchy of element tags and attribute names) in the database tables. The values of tags and attributes will also be populated at runtime in tables.
    Then write some generic API that reads the structure of the XML document through the database tables and spits out an XML document based on this structure and values stored in the tables.
    So, basically, I want the tag names and values both to be values in the database rather than the tag names being the columns in database tables.
    With this I should be able to have one procedure/function that can serve the purpose of creating XML documents with different structures by just specifying that structure in the form of database tables.
    Almost all the Oracle XML utilities I read about, create XML docs based on a SQL query with tag names being columns in the database tables. Any help will be highly appreciated.
    Thanks,
    Monika

    Which database release are you using...
    The computed constructors feature of XQuery may help.
    -Mark

  • How to force simple tags and null attributes to appear when using SQL/XML?

    Hello everybody:
    I'm developing a non-schema based XMLType view.
    When the XML document is generated, i noticed two things I need to manage in order to achieve the desired result:
    1. Oracle generates a <tag></tag> pair for each XMLELEMENT defined; in my case, some tags need to appear as <tag/>... how do I do? Is it possible when using schema based XMLType views? Is it possible while using a non-schema approach?
    2. When using XMLATTRIBUTE('' AS "attribute") or XMLATTRIBUTE(NULL AS "attribute"), no one attribute with label "attribute" and null value appears at the output; how do I force to Oracle DB to render those attributes which are with no values (needed to render those attributes as another parsing code will await for all the items)?
    3. Some tip about how to route the output to an XML text disk file will be appreciated.
    Thanks in advance.
    Edited by: Enyix on 26/02/2012 11:21 PM
    Edited by: Enyix on 26/02/2012 11:22 PM

    Hello odie_63, thanks for your reply:
    Reasons why needed single tags are these two next: Needed to generate a single XML file from 50,000,000 rows, where the XML ouput matches not only row data but another default values for another elements and attributes (not from database but using strings and types with default values); by using start and end tag, the generated file is as much twice bigger than using single tags; second, needed a very precise presentation for all the document.
    For generating that document, currently focus is based on using a batch process relying on Spring Batch with using a single JDBC query where a join happens between two tables. From my point of view, that approach uses: database resources, network resources, disk resources, and processing resources, including the price of making the join, sending to network, creating objects, validating, and making the file (Expending too much time generating that XML file). That processs currently is in development.
    I think possibly another approach is delegating the complete generation of that file to the database using its XML capabilities. My current approach following your recomendations is to generate a clob where I will put all the XML and putting it into a table. It leads me to another issues: Considering limitations on memory, processing and disk space, needed to append a single row-as-xml into the clob as soon as possible, and putting the clob inside the field as soon as possible, or putting the clob inside the field, and appending into it as the data is generated; so How do I manage the process in order to achieve that goals?. Seen these issues aren't related to my original question, so I'll open a new post. Any help will be apreciated.
    Thanks again in advance.

  • TLD tags and their attribute types

    Hello,
    I created custom component, and i created TLD file, where i specified tag and its attribute (Value) as a type String, all possibles types are (String, boolean, byte, char, double, int, float, long ).
    In another projct where i am using this component i set Value = #{row.X} and then error occures, because attribute Value has type String and i set there expression.
    In Jdev 11TP4 everything works ok, but now in JDeveloper 11 it does not.
    Does anyone know how can i specify attributes type to expression, or how can i expression convert to a string?
    Thank you
    Katka

    Rather than pull more than you're going to display on the page and try to paginate from within your app why don't you limit the rows right from your query and then work the limit numbers into your page as hidden form fields or query string parameters?
    See:
    http://faq.javaranch.com/java/PaginationOrPaging

  • XML tag with attributes and one value via XSU

    I need to generate a XML structure with attributes in the opening tag, and just one value in the body, like this:
    <PRODUCT-LIST-PRICE NET-PRICE="0" CURRENCY="USD">9.99</PRODUCT-LIST-PRICE>
    Without an object type, I can just create tags like this
    XML3
    <PRODUCT-LIST-PRICE>9.99</PRODUCT-LIST-PRICE>
    (with no attributes, but a single value) via the followig statement
    SELECT sys_xmlgen ('9.99',
    sys.xmlgenformattype.createFormat('PRODUCT-LIST-PRICE')
    ).getClobVal() "XML3"
    FROM DUAL;
    Having an object "productlisteprice_type", defined by
    CREATE OR REPLACE TYPE productlisteprice_type AS OBJECT
    "@NET-PRICE" VARCHAR2(10),
    "@CURRENCY" VARCHAR2(10),
    "PRICE" VARCHAR2(20)
    I just get XML like this
    XML2
    <PRODUCT-LIST-PRICE NET-PRICE="0" CURRENCY="USD">
    <PRICE>9.99</PRICE>
    </PRODUCT-LIST-PRICE>
    (with attributes, but no direct value beneath the "PRODUCT-LIST-PRICE" tag) via the following statement
    SELECT sys_xmlgen ( productlisteprice_type(0,'USD','9.99'),
    sys.xmlgenformattype.createFormat('PRODUCT-LIST-PRICE')
    ).getClobVal() "XML2"
    FROM DUAL;
    Not what I need :-(
    Are there any possibilities in XSU to get the needed XML code? Or do I have to do some post-production via XSQL???
    Another question: Is it possible to use specific keywords like "online" as XML tagnames, via objects? The objects don't allow "online" as a field name...
    Thanks in advance,
    Holger

    I need to generate a XML structure with attributes in the opening tag, and just one value in the body, like this:
    <PRODUCT-LIST-PRICE NET-PRICE="0" CURRENCY="USD">9.99</PRODUCT-LIST-PRICE>
    Without an object type, I can just create tags like this
    XML3
    <PRODUCT-LIST-PRICE>9.99</PRODUCT-LIST-PRICE>
    (with no attributes, but a single value) via the followig statement
    SELECT sys_xmlgen ('9.99',
    sys.xmlgenformattype.createFormat('PRODUCT-LIST-PRICE')
    ).getClobVal() "XML3"
    FROM DUAL;
    Having an object "productlisteprice_type", defined by
    CREATE OR REPLACE TYPE productlisteprice_type AS OBJECT
    "@NET-PRICE" VARCHAR2(10),
    "@CURRENCY" VARCHAR2(10),
    "PRICE" VARCHAR2(20)
    I just get XML like this
    XML2
    <PRODUCT-LIST-PRICE NET-PRICE="0" CURRENCY="USD">
    <PRICE>9.99</PRICE>
    </PRODUCT-LIST-PRICE>
    (with attributes, but no direct value beneath the "PRODUCT-LIST-PRICE" tag) via the following statement
    SELECT sys_xmlgen ( productlisteprice_type(0,'USD','9.99'),
    sys.xmlgenformattype.createFormat('PRODUCT-LIST-PRICE')
    ).getClobVal() "XML2"
    FROM DUAL;
    Not what I need :-(
    Are there any possibilities in XSU to get the needed XML code? Or do I have to do some post-production via XSQL???
    Another question: Is it possible to use specific keywords like "online" as XML tagnames, via objects? The objects don't allow "online" as a field name...
    Thanks in advance,
    Holger

  • XHTML Validation and Accessibility

    We've recently completed developing some Application Express systems for a customer, and they were disappointed the pages did not pass W3C XHTML validation to meet their accessibility targets.
    I've had the chance to do a bit of a post-mortem and nailed some issues that were down to our templates. I've also noted some previous threads here (notably Re: Validation!!! and Re: HTML DB and Accessibility (AA-Compliance) and look forward to resolution of markup validation issues in future releases. In the meantime, here are the most frequent problems we encountered. I'd appreciate any explanations, and any suggestions on how to improve matters in the short term.
    INVALID ENTITIES
    The majority of the validation errors are like:
    Cannot generate system identifier for general entity "p_fname"
    General entity "p_fname" not defined and no default entity
    Reference not terminated by REFC delimiter
    Reference to external entity in attribute value
    Reference to entity "p_fname" for which no system identifier could be generated
    Entity was defined here
    Where the App Ex engine is generating internal URLs and not escaping ampersands, that are then interpreted by the validator as forming part of an entity. This isn't disastrous, but an early fix in a future release would be welcome as it would reduce the number of errors and make it easier to spot any arising from invalid template code.
    Am I right in thinking that storing CSS, images and scripts externally to App Ex would eliminate this?
    STANDARD HTML BUTTONS
    All "HTML Buttons" result in:
    Value of attribute "type" cannot be "BUTTON"; must be one of "text", "password", "checkbox", "radio", "submit", "reset", "file", "hidden", "image", "button"                    
    There is no attribute "onClick"                         
    End tag for "input" omitted, but OMITTAG NO was specified
    Where the engine is generating an attribute value in uppercase and attribute names in camel-hump case instead of all lowercase. We can work round this by creating an "HTML Button" template with valid attributes and values.
    ITEM LABEL
    Reference to non-existent ID "P1_DATASET_CATEGORIES"
    Where the label is the overall label for a checkbox item with multiple checkboxes, all of which have their own valid label. Should the engine include the checkbox item as a hidden item? Can we work round this by doing that manually, e.g. in Post Element Text?
    HEADERS
    Reference to non-existent ID "GV_VALUE"
    Where a report has report has Headings Type "None" and hence no &lt;th&gt;s for headers attributes to refer to. Is there a workaround for this?
    REPORT BREAK FORMATTING
    End tag for "br" omitted, but OMITTAG NO was specified
    &lt;br&gt; tags inserted by break processing within the engine are not terminated " /&gt;". This is not controllable by any template (that I am aware of) - anything that can be done?
    TEXT FIELDS
    This is rather puzzling, as it seems to be random: items on some pages are affected, those on others are not. Anyone have an explanation?
    There is no attribute "TYPE"
    There is no attribute "NAME"
    There is no attribute "SIZE"
    There is no attribute "MAXLENGTH"
    There is no attribute "VALUE"
    There is no attribute "id"
    Element "INPUT" undefined
    End tag for "INPUT" omitted, but OMITTAG NO was specified
    Reference to non-existent ID "P5_ENTRIES_DISPLAYED"
    Where the engine is generating an element and attribute names in uppercase instead of all lowercase. From earlier threads, I'm presuming nothing can be done at present.
    HYPERLINK
    There is no attribute "HREF"
    Element "A" undefined
    As above: element and attribute names in uppercase instead of all lowercase.
    TABLE HEADING/DATA ALIGNMENT
    Value of attribute "align" cannot be "LEFT"; must be one of "left", "center", "right", "justify", "char"
    Attribute value generated in uppercase. Any workaround?
    REPORT SORT ARROW
    End tag for "img" omitted, but OMITTAG NO was specified
    Sort arrow &lt;img&gt; element not terminated " /&gt;". Any workaround? (Or can this be suppressed completely/replaced?)

    Hello,
    Most of your issues are things we are aware of and hope to get fixed in 3.0 as they are produced from an engine specifically using htf package to render elements which we will be changing. Unfortunatly with most of those issues I see there I don't think you can do much.
    I doubt the html the engines produce will pass xhtml strict in 3.0 but we will pass xhtml transitional (other than maybe urls in links) with a custom DTD that takes into account things we output in our namespace.
    Carl

  • Element name and attribute completion in XML editor?

    With either WebLogic Workshop 9.2.2 or 10.x, is it possible to get completion assistance on elements and attributes? It works in the JSP editor, but I need to know whether this will work for XML documents. For some of these namespaces, they are defined in JSF taglibs.

    I tested this on an .xhtml doc. Right-clicking gives me these options:
    * HTML Editor
    * Text Editor
    * System Editor
    * In-Place Editor
    * Default Editor
    Is this perhaps a feature available in 10.1?

  • p tags with attributes not removed from JTextPane

    We are using HTMLEditorKit with JtextPane to create a HTML Document Editor, for our project. [JDK 1.3.1.]
    When we have a simple <p> tag for paragraph in HTML and we start deleting things from end of the document, it works fine. But when we have a <P> tag with attributes like <p align='CENTER'> the delete key deletes the characters but the cursor remains in the line below and doesnot move up as the characters of above para get deleted. The HTML also retains the <p align='CENTER'> tag, which should have been removed. It seems its not able to identify <p> tags with attributes as Html para tags, and so not deleting it.
    How do we solve this without migrating to jdk1.4 ? Please help.

    Usually attributes such as 'align=center' are deleted along with a tag, regardless of whether it is a p tag or another one. But you would have to carefully test what exactly gets deleted because attributes are not only stored with paragraphs. They can exist for single characters and as well come from a style sheet.
    The best is to generate a dump of your document before and after deletion.
    You can use something like the below code (it is not optimized at all and thus could be implemented better but it works) to produce a dump
      public void listElements(Element elem, int indent) {
        int i;
        String is = getIndent(indent);
        String elemName = elem.getName();
        Document elemDoc = elem.getDocument();
        String cont = "";
        String theText = "";
        System.out.println(is + "--start-----");
        System.out.println(is + "Element Name:" + elemName);
        if(elemName.equals(new String("content"))) {
          try {
            theText = elemDoc.getText(
                    elem.getStartOffset(),
                    elem.getEndOffset() - elem.getStartOffset());
            System.out.println(is + "Content: " + theText);
            if(theText.indexOf("\r") > -1) {
              System.out.println(is + " plus \\r");
            if(theText.indexOf("\n") > -1) {
              System.out.println(is + " plus \\n");
          catch (Exception e) {
        listAttributes(elem, indent);
        if(!elem.isLeaf()) {
          for(i=0;i<elem.getElementCount();i++) {
            listElements(elem.getElement(i),indent+2);
        System.out.println(is + "---end----");
      public void listAttributes(Element elem, int indent) {
        Object key;
        String attr;
        String attrName;
        int pos;
        String is = getIndent(indent);
        AttributeSet as = elem.getAttributes();
        Enumeration an = as.getAttributeNames();
        try {
          while(an.hasMoreElements()) {
            key = an.nextElement();
            attrName = key.toString();
            attr = as.getAttribute(key).toString();
            System.out.println(is + "Attribute Name: " +
                      attrName + " Attribute Content: " + attr);
            if(attr.indexOf("\r") > -1) {
              System.out.println(is + " plus \\r");
            if(attr.indexOf("\n") > -1) {
              System.out.println(is + " plus \\n");
        catch (Exception e) {
          e.printStackTrace();
      }Hope that helps
    Ulrich

  • Urgent help ----problem of component id and attribute value

    I want to produce a dynamic menu that compoment id and attribute value will be dynamic assigned when logon to system. That means i have to use id="#{aid}" and value="#{avalue}" in following codes.
    The problem are:
    1. Component id looks only accepts constant (hard code data) insteads of varable. I changed id="ADMIN", and it works. It can be empty, and tag will give me one. Therefore, it is not too much affected me.
    2. The f:attribute value, when value="Value" works. However, when value="#{avalue}", first time works, second time it throws Illegal State Exception. I really need this value be assigned by varable.
    Can anyone help me out?
    ----------------------------------------------Code----------------------------------------------
    <h:command_link id="#{aid}" action="#{Action.action}" >
              <f:action_listener type="my.MenuListener"/>
              <h:output_text value="Logon"/>
              <f:attribute name="COMMAND" value="#{avalue}"/>
    </h:command_link>

    -----------2 TreeMenu---------------
    public class MenuTree implements Serializable{
    private String treeId = null;
    private String name = null;
    private Map submenus = new TreeMap(); // name as key, submenu is value;
    private String actionClass = null;
    private boolean isLeaf = false;
    private boolean isRoot = true;
    private MenuTree parent = null;
    public boolean isRoot() {
         return isRoot;
    public void setRoot(boolean root) {
         isRoot = root;
    public MenuTree(){
    public MenuTree getParent(){
         return parent;
    public void setParent(MenuTree parent){
         this.parent = parent;
         if(parent != null) parent.putSubmenu(treeId, this);
         isRoot = false;
    public String getName() {
         return name;
    public void setName(String name) {
         this.name = name;
    public Map getSubmenus() {
         return submenus;
    public boolean getIsNode(){
         return submenus.size() > 0;
    public void putSubmenu(String name, MenuTree menu){
         submenus.put(name, menu);
         * @return Returns the isLeaf.
         public boolean getIsLeaf() {
              return isLeaf;
         public boolean getIsRoot() {
              return isRoot;
         * @param isLeaf The isLeaf to set.
         public void setLeaf(boolean isLeaf) {
              this.isLeaf = isLeaf;
         * @param submenus The submenus to set.
         public void setSubmenus(Map submenus) {
              this.submenus = submenus;
         * @return Returns the actionClass.
         public String getActionClass() {
              return actionClass;
    public void setActionClass(String actionClass) {
         this.actionClass = actionClass;
         public String getTreeId() {
              return treeId;
         * @param id The id to set.
         public void setTreeId(String treeId) {
              this.treeId = treeId;
    ------------3 JSP if want to test change subview to view. I am sure the treeId have value---------------------
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
    <%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <% request.setAttribute("CONTEXT_PATH", request.getContextPath()); %>
    <LINK rel="stylesheet" type="text/css" href='<c:out value="${requestScope.CONTEXT_PATH}"/>/style/menutree.css'/>
    <SCRIPT type='text/javascript' src='<c:out value="${requestScope.CONTEXT_PATH}"/>/js/hideshow.js'></SCRIPT>
    <!--f:loadBundle basename="bundle.common.Menu" var="bundle"/-->
    <f:subview id="userMenuView">
    <h:form id="userMenuForm">
    <c:set var="root" value="${sessionScope.menuTree}"/>
    <table class="" width="150px" bgcolor="blue">
    <c:forEach var="menuBar" begin="0" items="${root.submenus}">
    <c:set var="menu" value="${menuBar.value}"/>
         <tr>
         <td>
         <c:choose>
              <c:when test="${menu.isLeaf}">
                   <c:set var="menuJSF" value="${menu}" scope="request"/>
                   <h:command_link action="#{Action.action}">
                        <f:action_listener type="com.nusino.web.listener.menu.MenuListener"/>
                        <h:output_text value="#{menuJSF.name}"/>
                        <f:attribute value="#{menuItemJSF.treeId}">
                   </h:command_link>
              </c:when>
              <c:otherwise>
                   <span class="" onclick="javascript:hideshow('<c:out value="${menu.treeId}"/>')">
                        <c:out value="${menu.name}"/>
                   </span>
                   <div id='<c:out value="${menu.treeId}"/>' >
                   <table class="">
                   <c:forEach var="submenu" begin="0" items="${menu.submenus}">
                        <c:set var="menuItem" value="${submenu.value}"/>
                        <tr>
                        <td>
                        <c:choose>
                             <c:when test="${menuItem.isLeaf}">
                                  <c:set var="menuItemJSF" value="${menuItem}" scope="request"/>
                                  <h:command_link action="#{Action.action}">
                                       <f:action_listener type="com.nusino.web.listener.menu.MenuListener"/>
                                       <h:output_text value="#{menuItemJSF.name}"/>
                                       <f:attribute value="#{menuItemJSF.treeId}">
                                  </h:command_link>
                             </c:when>
                             <c:otherwise>
                                  <span class="" onclick="javascript:hideshow('<c:out value="${menuItem.treeId}"/>')">
                                  <c:out value="${menuItem.name}"/>
                                  </span>
                                  <div id='<c:out value="${menuItem.treeId}"/>' >
                                       <table class="">
                                            <c:forEach var="item" begin="0" items="${menuItem.submenus}">
                                                 <c:set var="itemObj" value="${item.value}"/>
                                                 <tr>
                                                 <td>
                                                 <c:choose>
                                                      <c:when test="${itemObj.isLeaf}">
                                                      <c:set var="itemObjJSF" value="${itemObj}" scope="request"/>
                                                           <h:command_link action="#{Action.action}">
                                                                <f:action_listener type="com.nusino.web.listener.menu.MenuListener"/>
                                                                <h:output_text value="#{itemObjJSF.name}"/>
                                                                <f:attribute value="#{itemObjJSF.treeId}">
                                                           </h:command_link>
                                                      </c:when>
                                                      <c:otherwise>
                                                           <span class="">
                                                           <c:out value="${itemObj.name}"/>
                                                           </span>
                                                      </c:otherwise>
                                                 </c:choose>
                                                 </td>
                                                 </tr>
                                            </c:forEach>
                                       </table>
                                  </div>
                             </c:otherwise>
                        </c:choose>
                        </td>
                        </tr>
                   </c:forEach>
                   </table>
                   </div>
              </c:otherwise>
         </c:choose>
         </td>
         </tr>
    </c:forEach>
    </table>
    <script language= "javascript" >
         function prehide(){
              <c:forEach var="menuBar" begin="0" items="${root.submenus}">
                   <c:set var="menu" value="${menuBar.value}"/>
                   <c:if test="${!menu.isLeaf}">
                        hide('<c:out value="${menu.treeId}"/>');
                        <c:forEach var="submenu" begin="0" items="${menu.submenus}">
                             <c:set var="menuItem" value="${submenu.value}"/>
                             <c:if test="${!menuItem.isLeaf}">
                                  hide('<c:out value="${menuItem.treeId}"/>');
                             </c:if>
                        </c:forEach>
                   </c:if>
              </c:forEach>
         if(document.all){
              prehide();
    </script>
    </h:form>
    </f:subview>

  • Read HTML tags and Save Images in web page

    I had problem with reading HTML tags and save all images in that page. I can source code in web page but I dont know how to Identifly the image tag ( IMG tag ). I think i want to use string tokenizer class.
    But i dont know how to use it in my problem. If any one know how to do it. reply this.

    cnapagoda wrote:
    I had problem with reading HTML tags and save all images in that page. I can source code in web page but I dont know how to Identifly the image tag ( IMG tag ). I think i want to use string tokenizer class.
    But i dont know how to use it in my problem. If any one know how to do it. reply this.If you have a big, long string with HTML content in it you might try splitting on a regex like so:
    String html = ...
    String[] imgTags = html.split("<img.*?>");[http://java.sun.com/javase/6/docs/api/java/lang/String.html#split(java.lang.String)|http://java.sun.com/javase/6/docs/api/java/lang/String.html#split(java.lang.String)]
    to get your image tag data and then parsing that to get the src attribute. You can either treat this problem as a big string-parsing problem, or getting some HTML DOM library and using that to structure the page as a tree for easier access.
    If you want more help you'll have to show the code you have so far. We can't write this for you.

  • Extracting XML tags and its values using ORACLE PL/SQL

    I need help to create a procedure that receive a XML string and insert it into the table after parsing it.
    If the XML has 10 tags then it should insert into the table 10 rows. Table will be having tag name and value. This will be plain XML tags without attributes in tags.

    Hi,
    I am able to retreive the values of the tags using extract function (example: lv_xml.EXTRACT ('/ROWSET/EMPLOYEE/EMPNO/text()').getstringval() ). But could you help me to find some way to extract the tags also since we have no idea what the tags are and how many tags are there, in advance.
    Anybody's help will be a releif!
    Thanks in advance,
    Leslie
    Message was edited by:
    user544830

Maybe you are looking for

  • Windows 8 reinstalli​ng and linux

    Hello Sir, I have an HP Pavillion n260tx laptop bought in July 2014. It came with windows 8.1 preinstalled. Because of some study related reasons, I had to install a parallel linux OS (Ubuntu) in it. But windows and UEFI did not allow this (Which is

  • Downloaded Movie and AppleTV refuses to play it over HDMI

    Says I need to use Component Cable connection.!!! ??? because my HDMI doesn't support HDPC!!?? This is a low def movie (Education of Little Tree). *** is this all about?? I have successfully downloaded 2 HD films and there was no problem playing them

  • Jdbc theme query problems

    Hi all, I'm integrating Oracle Maps (10) in BISE, I've used Navtweq maps with my spatial data and I've created some maps, themes etc. Now I'm trying to create some more complex JDBC themes. Everything works fine if I use simple query, but I'm not abl

  • "licensing has stopped working" - HELP!

    For starters this this a licensed and paid version of CS3 Photoshop running on an iMac with OS 10.5 I was converting some RAW files and my machine froze. I restarted and got this message when trying to open. Hours later and after several re-installs

  • Too many objects matching primary key

    Hi., I am using jdev 11.1.5 I ha created a read only VO and FinyrEO,FinyrVO I had created a button which will update the status as "p" I had used this code in AMImpl Method     public void post (List selectedindexs){         ViewObjectImpl GlJrnlHd =