Use of A tag's href attribute vs. onClick event handler

See
http://groups.google.com/group/comp.lang.javascript/browse_thread/thread/4d2e99b2a8bdbbd2/2d588fb34191a654
The general consensus among all the gurus out there is that using the href=javascript: pseudo-protocol is baaaaad. Bad, bad, bad. It is proprietary, unreliable, undocumented and supported only for backward compatibility.
HTML DB uses that all over the place. In fact, buttons and tabs use only href= "javascript:doSubmit(...)" to do their thing.
I know that HTML DB makes no attempt to "degrade gracefully" on browsers which are not Javascript enabled. In other words, Javascript is a "minimum requirement" for running HTML DB, thats fine.
But I know that Carl, Scott and the rest of the HTML DB team take "correctness" and standards-compliance very seriously.
So, why was the decision made to use href=javascript: vs. onClick="..."?
Thanks

Hello,
I never thought it was such a big deal either, you learn something new everyday.
I don't know the particular reason that this was chosen in the first place. I do know it was chosen before 1.4 because it was already in there when I started on working on it, probably just evolved in this way overtime.
It's always worked other than the few times I was trying to get the function someFunction(this) object and then I just move it to the onclick, after seeing that long and sometimes vicious thread on your googlegroups link you can guarantee it will be put on the list of things to look at for future fix's.
Seem like it would make a good Tips and Tricks for the studio about moving it to the onclick in templates.
Carl

Similar Messages

  • How to use my own tag in XMP

    I have translated HTML to PDF. It is working properly if I use only DC Metadata.
    But if I write other tag in XMP and load this file in PDF, I cannot see right information.
    I want to use my own tag such as "co-author" and "related paper".
    I define this kinds of tags as namespace and XML Schema.
    Then I want to use this tag in PDF. But I don't know how to do after this.
    How can I do? How can I use my own tag(element or attribute) in XMP?
    Actually I don't have much experience to deal with XMP.
    please help.

    Will you clarify where you are looking for your custom information.
    It should display in Acrobat.
    Acrobat 7 File menu > Document Properties... > Additional Metadata... > Advanced > {list of namespaces}
    Your tags should appear under the namespace you used.

  • Using odc:tabbedPanel   : event handling ?

    Hi ,
    I am using <odc:tabbedPanel> for tabs , need some help on event handling when we click on any tab by using <odc:tabbedPanel>
    When tan is getting loaded want to do some server side coding , Any body has any idea on this ?
    Thanks,
    ....

    Hi BalusC,
    Little more details
    I am using <odc:tabbedPanel> it has two tabs(Select tools , Change order ) , The first tab contains list of check boxes(<h:selectBooleanCheckbox ) , the second tab contains list box(<h:selectOneListbox) , it has all checked values from the first tab.
    If I select/deselcet any checkbox from the first tab with out submitting , the same values needs to be shared to the second tab . based on this user can save/cancel his preferences..
    So I need to do some action when Iclick on second tab , I don't see any action/valuchanged event on <odc:bfPanel> .
    Can you please let me know how this can be achieved.
    Thanks in advance...

  • Using onclick events in the javascript dialog box

    hi,
    Iam creating dialog box to get some inputs and use it for batch processes. so, i need onclick events on that dialog box.
    for example:
    in my dialog box, i fix a browse button(check box) and connect the choose folder box. but, after i click okay button only i get the choose folder box. i need to see the choose folder dialog box after click the check box.. is it possible???
    regards,
    Subha oviya

    hi bob,
    The following code shows a dialog box.
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    var myDialog = app.dialogs.add({name:" Dialog Onclick Test", canCancel:true});
    with(myDialog)
    with(dialogColumns.add())
    with(dialogRows.add())
    with(dialogColumns.add())
    var browse_check = checkboxControls.add({staticLabel:"Browse",checkedState:false});
    if(myDialog.show() == true)
    if(browse_check.checkedState == true)
    var filefolder = Folder.selectDialog("Choose Files Folder");
    This is my code. After run this script a dialog box appear on the screen. we check the browse check box and then click he ok button. after then a "choose folder dialog box" will appear.
    i need to see the "choose folder dialog box" before press the ok button and after check the check box. IS IT POSSIBLE?
    Regards,
    Subha

  • Firefox removes href attribute from anchor tag on copy paste

    Hi Support,
    I have a text along with the image used as a hyperlink as follows.
    "Sample Text.<a href="javascript:myfunction()"><img title="sample image" src="sample.gif" /></a>"
    When i copy the above text and paste it inside a HTML Control (for e.g. iframe), the control removes the href attribute of 'anchor' tag. It happens only with firefox and safari. It is working correctly in internet explorer.
    "Sample Text.<a ><img title="sample image" src="sample.gif" /></a>"
    Is there any solution for this.? Awaiting for sooner response
    Try clicking on the below link
    http://screencast.com/t/sXq6BcZvJB

    I tested this in Gmail compose, and what I see is: regular links (href="url") are preserved during copy/paste, but javascript links (href="javascript:") are dropped/cleared.
    I don't know whether this is by design. One place to research that would be [https://bugzilla.mozilla.org/].

  • Problem using tags as an attribute for other tags.

    Hi there,
    I'd like to know if there is a way to use a tag as an attribute for an other tag.
    Exemple :
    <user:testparent param="<user:param param='1' />" >
    When doing so, the value of param is <user:param param='1'/>, and not the value that should be returned by the <user:param /> tag.
    Is there a way to use the value returned by this tag as a parameter ?
    With text, the correct value returned by the tag is used, so I guess it's possible to do so with custom tags.
    Thanks.

    Okay, here is an example of the process...
    I have this Class that acts as the parent to all the tags that I use:
    package net.thelukes.steven.scriptbits;
    import java.io.IOException;
    import java.util.HashSet;
    import java.util.Set;
    //Other Imports ...
    public abstract class ScriptBitsTag extends BodyTagSupport  {
         public int doAfterBody() throws JspException {
              return TagSupport.SKIP_BODY;
         public int doEndTag() throws JspException {
              return TagSupport.EVAL_PAGE;
         /* All subclasses of ScriptBitsTag should call super.doStartTag()
          * at the begining of their own doStartTag();
         public int doStartTag() throws JspException {
              initAttributes();
              return TagSupport.SKIP_BODY;
         public abstract  void setAttributeValue(String attributeName, String attributeValue);
         public abstract String getAttributeValue(String attributeName);
         /* Use this method to initialize attributes at the start of tag execution */
         public abstract void initAttributes();
         //...So, for example, I will have a sb:slidingFrame tag that looks like this:
    package net.thelukes.steven.scriptbits;
    // Imports...
    public class SlidingFrameTag extends ScriptBitsTag {
         private java.util.Map<SlidingFrameAts,String> attributes =
                   new java.util.EnumMap<SlidingFrameAts,String>(SlidingFrameAts.class);
         public int doStartTag() throws JspException {
              super.doStartTag();
              //... Do initialize here
              return TagSupport.EVAL_BODY_INCLUDE;
         public int doEndTag() throws JspException {
              //... Do work that depends on nested parameter values here...          
              return TagSupport.EVAL_PAGE;
         //Normal setXXX methods for attributes... <sb:slidingFram windowID="..." >
         public void setWindowID(String name) {
              windowName = name;
         //Do What should happen when nested tag does its work...
         //     <sb:slidingFrame><sb:attribute .../></slidingFrame>
         //For me, just put values in proper place in map...
         public void setAttributeValue(String name, String value) {
              SlidingFrameAts attrib = SlidingFrameAts.valueOf(name);
              if (attrib == null)
                   return;
              else if (attrib == SlidingFrameAts.useDefaultStyleSheet)
                   this.setUseDefaultStylesheet(Boolean.valueOf(value));
              else if (attrib == SlidingFrameAts.offX)
                   attributes.put(attrib, value);
              else {
                   nonDefaultInit = true;
                   attributes.put(attrib, value);
         public String getAttributeValue(String name) {
              return attributes.get(SlidingFrameAts.valueOf(name));
         //Set Default values for all attributes.
         public void initAttributes() {
    }So now I have a tag that is designed to be nested inside ScriptBitsTags and provide attributes for them:
    package net.thelukes.steven.scriptbits;
    //includes
    public class ScriptBitsAttributeTag extends BodyTagSupport {
         private String attName = null;
         private String attVal  = null;
         //Normal set methods for in tag attribes: <sb:attribute name="..." value="..."/>
         public void setName(String name) {
              attName = name;
         public void setValue(String value) {
              attVal = value;
         public int doEndTag() throws JspException {
              //If value not set yet, it should come from the tag's body
              //<sb:attribute name="...">Some Value</sb:attribute>
              if (attVal == null) {
                   if (bodyContent != null && bodyContent.getString() != null) {
                        attVal = bodyContent.getString().trim();
                   } else {
                        //If not found in body, then use empty string for value...
                        //(or some appropriate value....)
                        attVal = "";               
              setAttribute();
              return TagSupport.EVAL_PAGE;
         //Assign the attribute to the this tag's parent.
         private void setAttribute() {
              ScriptBitsTag parentTag =
                   (ScriptBitsTag)TagSupport.findAncestorWithClass(this, ScriptBitsTag.class);
              parentTag.setAttributeValue(attName, attVal);          
    }The TLD has the SlidingFrame tag look like this:
      <tag>
        <description>Sliding Menu Window</description>
        <display-name>SlidingWindow</display-name>
        <name>slidingWindow</name>
        <tag-class>net.thelukes.steven.scriptbits.SlidingFrameTag</tag-class>
        <body-content>jsp</body-content>
        <!-- attributes available for in tag sb:slidingFram windowID="..." for example -->
        <!-- set required to false to allow the attribute to be set by sb:attribute tag -->
      </tag>The rest of the tld is pretty standard... In my JSP I then have:
    <sb:slidingFrame windowID="sliding_frame">
      <%-- Attribute Set for this sliding frame --%>
      <sb:attribute name="speed">
        <c:out value="${sessionScope.speedV}"/>
      </sb:attribute>
      <%-- Content of the sliding frame --%>
      Menu Item A<br/>
      Menu Item B<br/>
      Menu Item C<br/>
      <hr/>
      Menu Item A<br/>
    </sb:slidingFrame>In this case, instead of doing:
    <sb:slidingFrame speed="<sb:attribute value='whatever'/>">I nested the attribute tag between sb:slidingFrame's open and close tag. You have to make sure that any work you want to do that depends on the value of speed is done in the doEndTag so as to make sure it occurs after the nested tag does its work.

  • How-To dinamically add an attribute using "c:if" tag?

    Hi,
    I have a problem with f:attribute tag.
    I need to dinamically add an attribute to a h:panelGroup tag according to the value of a ELExpression. For example the fragment below should output an HTML page with two radio controls; depending to the clicked radio, the "foo" section or the "baz" section is showed (this is controlled client-side vie the javascript function called in the onclick event of the "foobaz" component):
    <h:selectOneRadio id="foobaz" layout="lineDirection" value="#{myBean.foobazMode}" onclick="showHideFooBaz(this);">
      <f:selectItem itemValue="#{myBean.fooMode}" itemLabel="Show Foo"/>
      <f:selectItem itemValue="#{myBean.bazMode}" itemLabel="Show Baz"/>
    </h:selectOneRadio>
    <h:panelGroup id="foo">
      <c:if test="#{myBean.bazVisibile}">
        <f:attribute name="style" value="display: none"/>
      </c:if>
    </h:panelGroup>
    <h:panelGroup id="baz">
      <c:if test="#{myBean.fooVisibile}">
        <f:attribute name="style" value="display: none"/>
      </c:if>
    </h:panelGroup>Well, the problem is this not work.
    So my idea was to develop a new AttributeTag with a JSP body content in order to write:
    <h:panelGroup id="foo">
      <my:attribute name="style">
        <c:choose>
          <c:when test="#{myBean.fooVisibile}">
            <f:verbatim>display: block</f:verbatim>
          </c:when>
          <c:otherwise>
            <f:verbatim>display: none</f:verbatim>
          </c:otherwise>
        </c:choose>
      </my:attribute>
    </h:panelGroup>
    ...but don't work too.
    Starting from the SUN JSF-RI AttributeTag, I developed my version extending from BodyTagSupport class instead of TagSupport one.
    public class AttributeTag extends BodyTagSupport
        public int doStartTag() throws JspException {
            return (EVAL_BODY_INCLUDE);
        public int doEndTag() throws JspException {
           // Locate our parent UIComponentTagBase
            UIComponentClassicTagBase tag = UIComponentELTag.getParentUIComponentClassicTagBase(pageContext);
            if (tag == null) {
                    throw new JspException("com.sun.faces.NOT_NESTED_IN_UICOMPONENT_TAG_ERRO");
            // Add this attribute if it is not already defined
            UIComponent component = tag.getComponentInstance();
            if (component == null) {
                    throw new JspException("com.sun.faces.NO_COMPONENT_ASSOCIATED_WITH_UICOMPONENT_TAG");
            FacesContext context = FacesContext.getCurrentInstance();
            ELContext elContext = context.getELContext();
            String nameVal = null;
            Object valueVal = null;
            boolean isLiteral = false;
            int result = EVAL_PAGE;
            if (name != null) {
                nameVal = (String) name.getValue(elContext);
            if (value != null) {
                if (isLiteral = value.isLiteralText()) {
                    valueVal = value.getValue(elContext);
            else
                    BodyContent bodyContent = null;
                    String content = null;
                    String trimContent = null;
                    if (
                            (bodyContent = this.getBodyContent()) == null
                            || (content = bodyContent.getString()) == null
                            ||  (trimContent = content.trim()).length() == 0
                            || (
                                    trimContent.startsWith("<!--")
                            return result;
                    valueVal = trimContent;;
                    bodyContent.clearBody();
                    isLiteral = true;
            if (component.getAttributes().get(nameVal) == null) {
                if (isLiteral) {
                    component.getAttributes().put(nameVal, valueVal);
                else {
                    component.setValueExpression(nameVal, value);
            this.release();
            return result;
    }So guy, have you any idea of how to solve my problem?
    Any help is very very appreciated!!
    Regards,
    -- Anthony

    Hi BalusC
    The first one is not for me because the "rendered" attribute is set on the server-side: the current "invisibl"e section would not be included in the renderer page (what I want is render the page displaying the current visible section and to switch to another section at client-side)
    ...but...
    The second solution you propose is OK!!!! and so simple!!
    Yeah man I really really thank you (sorry I didn't find the "?:" expression in the JSP manual http://java.sun.com/products/jsp/syntax/2.0/syntaxref20.html. Now looking again - and better - I find it as "ChoiceExpression")
    Again, thanks!!!
    -- Anthony

  • How to Apply a Graphic Element's "href" Attribute Value on a Graphic Frame

    I have a graphic frame, which I wish to fill with a graphic image. The graphic frame appears as an element in the Structure, as it has a tag attached, and that element has a legitimate "href" as a full path to a graphic file. In UI mode, I have to drag that element onto the graphic frame in order for the graphic frame to be filled with the graphic file. How do I perform the same action in JavaScript?
    TIA
    mlavie

    I thought I should provide an explanation for what I meant:
    I am aware, of course, of how to use "Place". The issue here is that I have a Page that is a template, which includes a Graphic Frame. I want to open the page, and then update the Graphic Frame element's "href" tag with the path of a graphic file, and have that file then appear in the Graphics Frame. By default, InDesign does not redraw the Graphics Frame when you change the value for the "href" attribute - you need to drag the parent element onto the Graphics Frame.
    TIA
    mlavie

  • How to use logic:interate tag in this case? thanks a lot.

    a javabean:
    a{
    int a;
    ArrayList bList (to store some strings);
    request.setAttribute("a",a);
    then how can I use <logic:iterate> tag to loop to use <bean:write> tag to write out the strings contained by bList?

    use getparams and get that attribute(arraylist)
    define a bean in jsp with property as this attribute for which u should have a getter method in context
    the following is to iterate through arralist of arraylist
    <logic:iterate id="accList" name="<%=subAppContextName%>" ="accountsHoldedList">
              <tr>
    <logic:iterate id="accList2" name="accList">
    <td> <bean:write name="accList2"/> </td>
    </logic:iterate>
    <td>
    <jfp:link styleClass="appNavNext" warn="false" bundle="<%=bundleName%>" key="GiveNotice" paramId="selectedAccount" paramName="accList2" href="javascript:submitMyForm();"></jfp:link>
    </td>
    </tr>
    </logic:iterate>
    accountsHoldedList is the one which is set in Context and i am iterating to display it.
    bye

  • HTML a href Attribute in Safari

    I have set up my personal homepage using a number of HTML a href attributes inside a table, so that when I click on one of these, it will take me down to the appropriate anchor defined by HTML a name. This works fine in Firefox, but does not seem to work in Safari 3.2.1. In Safari, it simply stays put and does not take me down to the appropriate anchor.
    Example of my HTML:
    <tr>
    <td>Favourites</td>
    <td>Airlines</td>
    <td>Architecture</td>
    <td>Art, Images, Pictures, Photography & Posters</td>
    <td>Books, Book Stores, Literature, Literary Societies</td>
    <td>Cars</td>
    <td>CCCV</td>
    </tr>
    Airlines
    Cathay Pacific
    Qantas
    Frequent Flyer
    Singapore Airlines
    Virgin Blue Australia
    <hr>
    Architecture
    Monument Environments
    <hr>

    Hi Alex,
    Have you tried dropping the <base> tag in the header? That should make the named anchors load quicker as well as the browser won't attempt to re-download the page all over again.
    Also, your DOCTYPE declaration seems a bit out of date. I don't think it's affecting anything as such but you might want to update it. I only mention it as the W3C validator check [marks it as being problematic|http://validator.w3.org/check?uri=http%3A%2F%2Fmembers.optusnet.com .au%2Falexcywong%2F&charset=(detect+automatically)&doctype=Inline&group=0].
    I should note that I can't actually test that recommended change above in Safari as I'm not on a Mac at the moment, but it does help with a browser that uses WebKit on my current machine.
    Hope that helps.

  • How to use struts Logic tags in weblogic8.1

    hi
              i have used jakarta struts in JDeveloper there i used logic tags
              but the same i have to use in weblogic8.1 ,how should i use it
              i am new to weblogic platform
              it is very urgent
              please

    Hi harish,
              Procedure for using a Struts Tag Libraries in weblogic 8.1 :
              â€¢Copy the tag lib jar files under WEB-INF/lib ( if tag handler supplied as
              classes without package a jar file then we need to copy the classes
              under WEB_INF/classes.
              â€¢ Copy the tld files files under WEB-INF or create a directory under
              WEB-INF and copy tld files under this directory.
              â€¢ We need to give the information about the tag libraries in web.xml by
              adding the following lines to it as,
              <taglib>
              <taglib-uri>bean</taglib-uri>
              <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
              </taglib>
              <taglib>
              <taglib-uri>html</taglib-uri>
              <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
              </taglib>
              <taglib>
              <taglib-uri>logic</taglib-uri>
              <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
              </taglib>
              To use tags in jsp file we need to add taglib directive as ,
              <%@ taglib uri="logic" prefix=“logic"%>
              <%@ taglib uri="html" prefix=“html"%>
              <%@ taglib uri="bean" prefix=“bean"%>
              Every tag can support zero or more number of attributes and a tag may or
              may not support body content
              Every Tag Library Uniquely identified by uri defined in web.xml.
              we can use the tags in jsp according to the tags and attributes which are defined in *.tld files.
              if we look at .tld files we can find several tags and its attributes.
              note :any jar files that are related to struts framework ,place under the lib directory of the webapplication.
              ----- Anilkumar kari

  • Custom tag SetProperty: Mandatory attribute property missing

    Ok, first some code. Here's the contents of my displayCollection.tag:
    <%@ tag body-content="scriptless" import="com.serco.inquire.*" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ attribute name="mgr" required="true" %>
    <jsp:useBean id="irc" scope="session" class="com.serco.inquire.irCollection">
      <jsp:setProperty name="mgrid" value="${mgr}" />
    </jsp:useBean>
    ${irc.mgrid}Here's the JSP I'm calling it from (myq.jsp):
    <%@page language="java" import="java.util.*,com.serco.inquire.*" %>
    <%@ taglib prefix="inq" tagdir="/WEB-INF/tags" %>
    <inq:displayCollection mgr="Chris Novish" />Here's the java class for irCollection (used in the tag file):
    package com.serco.inquire;
    import java.sql.*;
    import java.util.*;
    public class irCollection {
         public String mgrid;
         public irCollection() {
              super();
         public void setMgrid(String datum) {
              this.mgrid = datum;
         public String getMgrid() {
              return this.mgrid;
    }And finally, here's the error I get when i try to run myq.jsp:
    org.apache.jasper.JasperException: /WEB-INF/tags/displayCollection.tag(7,2) SetProperty: Mandatory attribute property missing     org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:198)
         org.apache.jasper.compiler.JspUtil.checkAttributes(JspUtil.java:174)
         org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:595)
         org.apache.jasper.compiler.Node$SetProperty.accept(Node.java:1150)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2428)
         org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:647)
         org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1182)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2428)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2434)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:475)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376)
         org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1789)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:216)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:372)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:339)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:594)
         org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWrapper.java:231)
         org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProcessor.java:577)
         org.apache.jasper.compiler.TagFileProcessor.access$000(TagFileProcessor.java:48)
         org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:642)
         org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1539)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2428)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2434)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:475)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376)
         org.apache.jasper.compiler.TagFileProcessor.loadTagFiles(TagFileProcessor.java:660)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:228)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:372)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:339)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:594)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:344)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:391)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:722)>
    as far as I can tell, the attribute mgr is set in myq.jsp when it invokes displayCollection.tag, and displayCOllection.tag's only attribute (required) is mgr. so uhm... what do I misunderstand?

    Nick,
    Thanks for your help.
    But I also face another problem that is
    "unable to load class com.jguru.FormBean" when I tried to call another jsp.
    Here are my code :
    package com.jguru;
    public class FormBean {
    private String LName;
    private String FName;
    private String Passwd;
    private String Tel;
    private String Title;
    private String Dept;
    private String Email;
    private String Accesstype;
    public FormBean() {
    LName="";
    FName="";
    Passwd="";
    Tel="";
    Title="";
    Dept="";
    Email="";
    Accesstype="";
    public String getLName() {
    return LName;
    public String getFName() {
    return FName;
    public String getPasswd() {
    return Passwd;
    public String getTel() {
    return Tel;
    public String getTitle() {
    return Title;
    public String getDept() {
    return Dept;
    public String getEmail() {
    return Email;
    public String getAccesstype() {
    return Accesstype;
    public void setLName(String x) {
    LName = x;
    public void setFName(String x) {
    FName = x;
    public void setPasswd(String x) {
    Passwd = x;
    public void setTel(String x) {
    Tel = x;
    public void setTitle(String x) {
    Title = x;
    public void setDept(String x) {
    Dept = x;
    public void setEmail(String x) {
    Email = x;
    public void setAccesstype(String x) {
    Accesstype = x;
    Thanks.

  • [BPEL 10.1.3.3] href attribute in SOAP body

    Hi,
    An interesting issue appeared for one of my clients.
    Whenever there is a "href" attribute in the xml contents of the soap call to the BPEL process, following error occurs:
    <faultstring>ORABPEL-04110Cannot insert attachment.The process domain was unable to insert attachent into the datastore. The exception reported is: 0Please check that the machine hosting the datasource is physically connected to the network. Otherwise, check that the datasource connection parameters (user/password) is currently valid.sql statement: BEGIN INSERT INTO attachment( key, bin ) VALUES ( ?, '0' ) RETURNING bin INTO ?; END; </faultstring>
    The thing is - href has a special meaning in SOAP and is related to binary attachments, but here it's just a plain attribute which happens to be named "href".
    My Questions:
    1) is there a way to disable this special treatment of "href" in xmlparser or bpel engine/process?
    2) is this an error on the part of the caller to use "href" and expect it to not be treated in any special way?
    Thanks and regards,
    Bartek

    Hi
    I saw this behaviour in 10.1.3.1 as well. We have just patched up 10.1.3.3.1 and was hoping this will be addressed. It was not. :-(
    You should be able to work-around the not-found error by just correcting the URL in your browser. You will notice that all that went wrong is that it now has the domain name in all lower-case and since this is case sensitive it fails.
    We have stopped using mixed-case/uppercase domain names for now.
    It seems like a console only issue as the deployed BPEL process was working fine and callable on the mixed-case URL.
    Hope this helps.

  • ? about persistent indicator and use of nav tag

    Hi,
    I have read Nancy O's informative article on persistent indicators.  I think I have everything almost working.  However, I get some errors when I validate on W3C validation service.
    The errors I get are:
    Line 22, Column 23: document type does not allow element "body" here
        <body class="live">
    Line 23, Column 9: element "nav" undefined
        <nav>
    Line 37, Column 10: end tag for "body" omitted, but OMITTAG NO was specified
        </div>
    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
    Any thoughts on what I have done wrong.  I have pasted the code for both the page and the relevant include below.  Also, I had two questions about the use of the nav.  What happens to my menu when it is viewed in an older browser that doesn't support nav?  Also, could one have an upper and lower menu bar using the nav tag with different CSS properties?
    Code for the page
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>A Pilot Project - Official Website - Live Page</title>
    <link href='http://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css' />
    <link href="apilotproject.css" rel="stylesheet" type="text/css" />
    <meta name="Description" content="A Pilot Project Official Website Live Page" />
    <meta name="Keywords" content="The Alan Parsons Project, Alan Parsons Project, Pilot, Alan Parsons, David Paton, Ian Bairnson, Eye in the Sky" />
    <style type="text/css">
    body,td,th {
        font-family: "Roboto Slab", serif;
    </style>
    </head>
    <body>
    <div class="container">
      <div class="header">
        <body class="live">
        <nav>
    <!--#include file="bottomnavbarapilotproject.shtml" --></nav>
        <div id="englishlink"> <a href="index.htm"><img src="images/flaggb.png" width="25" height="25" alt="Link to English version of A Pilot Project website" title="English Website" /></a></div>
        <div id="japanlink"> <a href="indexjp.htm"><img src="images/flagjapan.png" width="25" height="25" alt="Japanese" title="Japanese Website" /></a></div>
        <div id="germanylink"> <a href="indexde.htm"><img src="images/flaggermany.png" width="25" height="25" alt="German" title="German Website" /></a></div>
        <div id="francelink"> <a href="index.htm"><img src="images/flagfrance.png" width="25" height="25" alt="French" title="French Website" /></a></div>
        <div id="spainlink"> <a href="index.htm"><img src="images/flagspain.png" width="25" height="25" alt="Spanish" title="Spanish Website"/></a></div>
        <div id="dutchlink"> <a href="indexde.htm"><img src="images/flagdutch.png" width="25" height="25" alt="Dutch" title="Dutch Website"  /></a></div>
        <div id="brazillink"> <a href="youtube.htm"><img src="images/flagbrazil2.png" width="25" height="25" alt="Portuguese" title="Portuguese Website" /></a></div>
        <div id="italylink"> <a href="index.htm"><img src="images/flagitaly.png" width="25" height="25" alt="Italian" title="Italian Website" /></a></div>
        <div id="twitterlink"> <a href="twitter.htm"><img src="images/twittericon.png" width="25" height="25" alt="twitter" title="Pilot on Twitter" /></a></div>
        <div id="facebooklink"> <a href="facebook.htm"><img src="images/facebookicon.png" width="25" height="25" alt="facebook" title="Pilot on Facebook" /></a></div>
        </div>
    <!-- end .header -->
       <div class="content">
    <p>With the reunion of Pilot and the completion of A Pilot Project, the band is now ready and available for world-wide bookings to celebrate its upcoming 40th anniversary.  What can you expect?  Only the best as the original flight crew David Paton (vocals, bass), Ian Bairnson (electric guitar), Stuart Tosh (drums) are joined by live crewmembers Kenny Hutchison (keyboards, vocals), and Calais Brown (guitar, vocals) to play Pilot's classic hits along with selections from A Pilot Project.   Promoters can use the form below to enquire about Pilot's availability. </p>
    <!-- end .content --></div>
    <div class="footer">Copyright 2014 © Pilot &amp; Blue Yonder Media Group<!-- end .footer --></div>
    <!-- end .container --></div>
    </body>
    </html>
    code for include (bottomnavbarapilotproject.shtml)
    <ul>
            <li><a class="home" href="index.htm" title="Link to A Pilot Project Home Page">Home</a></li>
            <li><a class="news" href="news.htm" title="Link to A Pilot Project News Page">News</a></li>
            <li><a class="mp3s" href="mp3s.htm" title="Link to A Pilot Project MP3s Page">MP3s</a></li>
            <li><a class="buycd" href="buycd.htm" title="Link to A Pilot Project Buy CD Page">Buy CD</a></li>
            <li><a class="live" href="live.htm" title="Link to A Pilot Project Live Page">Live</a></li>
            <li><a class="links" href="links.htm" title="Link to A Pilot Project Links Page">Links</a></li>
            <li><a class="contact" href="contact.htm" title="Link to A Pilot Project Contact Page">Contact</a></li>
            <li><a class="mailinglist" href="mailinglist.htm" title="Link to A Pilot Project Mailing LIst Page">Mailing List</a></li>
            <li><a class="thanks" href="thanks.htm" title="Link to A Pilot Project Thanks Page">Thanks</a></li>
          </ul>
    Any help or suggestion would be greatly appreciated.
    Thanks,
    Kirk

    mojokk wrote:
    Regarding my navigation menu bar, I had originally used a  <div id="bottomnavbar"> and then defined in CSS as #bottomnavbar to stylize/format.  However, when was having trouble getting the persistent indicator to work, while discussing this problem another frequent poster told me to not use div for menu bar and instead use nav tag which I did.  However, I still have the concern that folks with older browsers won't be able to view the menu correctly.  From what I have read, I could add the following to the head (after any CSS links) and then the nav menu would be able to be viewed correctly on older browsers.  Am I correct in that assumption?
    <!--[if lt IE 9]>
      <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    Yes, you are correct - the script above makes any html5 tag such as <nav></nav> compatible with IE8 and below. but I personally don't really make much of an effort to support IE8 any longer.
    mojokk wrote:
    if that works, then it sounds as though that would be ok. But I have another page that would have 2 menu bars, one at the top of the header image and one at the bottom head image.  It sounds as though I wouldn't be able to use the nav tag for both since the vertical positioning of the text would be different, so I should go back and use divs for menu bars. Am I correct in this assumption?
    You would give each <nav></nav> a class like:
    <nav class="topNav"></nav>
    <nav class="bottomNav"></nav>
    <nav></nav> is just a container like <div></div> (see below) only with more meaning, ie navigation.
    <div class="topNav"></div>
    <div class="bottomNav"></div>
    Then do as you have always done and style the content in the container/s:
    .topNav {
    .bottomNav {
    mojokk wrote:
    Also, if I have one page with HTML5 audio in it, should it still work in older browsers as long as I have the first four lines suggested above.  The script (based on jquery has a flash back up for older browsers).
    I don't know much about audio, so can't help you out on this one.
    mojokk wrote:
    One other question, in my CSS I have defined my header's position as fixed (position:fixed;) so the content below will scroll up and one will still see header and menu bar.  However, when one scrolls on the page (Iphone) using touch screen, the text content can shift to right or left.  I assume I need to add something to the CSS of .content to prevent it from moving on the horizon.  Thoughts?
    Difficult to say what is happening in this instance - you probably need to upload the page and provide a url so someone can take a look and see if they are seeing what you are seeing.

  • How to add a br tag in headerText attribute in af:column in jdeveloper

    Hi,
    I want to add a <br> tag in headerText attribute of <af:column> in jdeveloper 11.1.1.5.0. I want to add this in a String getting from a java bean.
    for eg. i have month and Year so i want to print it in the format given below
    2012
    Jan
    and for taht i hav to add a <br> tag in the headerText attribute of <af:column>. for eg.
    String month= "2012" + "<br>" +"Jan";
    bt this is printing as it is in the header text .
    thnx.

    Bind the headerText property to the managed bean for the taskflow / jspx.
    Write the code in the getter of the headerText.
    Alternatively you can use EL in the headerText property on the jsff/jspx .. for e.g if there are different attributes for the month and the year you can use
    headerText="#{bindings.month.inputValue} #{bindings.year.inputValue} "

Maybe you are looking for