Change HTML output of default JSF tag

The commandLink tag outputs href="#" which doesn't make for good accessiblity. I am new to JSF, is there a way to over-ride the default render of a tag without getting into the entire render kit? Just wondering about possibilities.
<h:commandLink styleClass="commandLink" id="link1" action="">
<h:outputText id="text6" styleClass="outputText" value="link label"></h:outputText>
</h:commandLink>
<a id="form1:link1" href="#" onclick="document.forms['form1']['__LINK_TARGET__'].disabled=false;document.forms['form1']['__LINK_TARGET__'].value='form1:link1'; document.forms['form1'].submit();document.forms['form1']['__LINK_TARGET__'].disabled=true; return false;" class="commandLink"><span id="form1:text6" class="outputText">link label</span></a>

Hello Fred,
the code you have mentioned is needed for domain relaxation and session management. In order to enable communication between frames (served out of a particular network/domain) this is needed to be done.
What exactly do you want to do?
Best regards,
  TJ

Similar Messages

  • How to avoid the whitespace before the first html output in a JSF page?

    1     
    2
    3
    4
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt-br" lang="pt-br">So, I think the reason is because there are some taglibs like:
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>is it possible to avoid that?

    humm
    that's right!
    it's because, a friend has asked me about that in order to do the output HTML 100% valid...and it is, but with some warnigs according W3C
    thank you!

  • Changing HTML output layout

    How can I change the CL&F of my javadoc output to something else? My team want to put their logo and change the layout of the default output. Can it be done?

    If you're willing to move up to 1.4.0, it has new -tag and -taglet
    options that support custom tags.
    Also, please be advised of our proposed changes to the standard
    doclet code in another topic in this forum:
    ### Possible refactoring of standard doclet implementation
    http://forum.java.sun.com/thread.jsp?forum=41&thread=262385
    We've received no comments yet on this topic.
    -Doug Kramer
    Javadoc team

  • Change HTML output

    Hi all,
    when I create a ITS service and generate the ITS templates.
    The generated ITS template code is not all that is send to the Browser.
    The browser somehow gets additional SAP generated text.
    when I look at the source of a ITS screen in the browser, SAP adds the following javascript function to the page:
    function _wfcreator_setdomain ()
          if (_wfcreator_setdomain.domain == null) {
              var isNumAddr = _wfcreator_setdomain.regexp_ipaddr.test( window.location.hostname);
    I want to alter this piece of code added to the HTML code.
    Can someone tell me where this code is added to the response?
    We use the integrated ITS of netweaver 2004.
    Greetings Fred.

    Hello Fred,
    the code you have mentioned is needed for domain relaxation and session management. In order to enable communication between frames (served out of a particular network/domain) this is needed to be done.
    What exactly do you want to do?
    Best regards,
      TJ

  • Capture generated html output from jsf page in bean

    Hi Member,
    I have need to capture the html output coming form jsf page. means aftr rendering what html is displayed before user, we have need to get it in programm.
    like if we use:
    <h:dataTable......>
    <h:colum>heloo</h:column>
    </h:dataTable>
    then their ouput will be:
    <table>
    <tr><td>heloo</td></tr>
    </table>
    and i have need of these complete line with <table> ......</table>
    Please help me...
    Thanks
    Shailendra Kumar

    Thnx for quick reply.
    But i want to capture it in render response phase. May it will be possible??? Is render response phase is responsible for generation of HTML format?? If yes then how can we capture output coming from this phase.
    URLConnection if fine but it still hit server once. I don't want that. I want to store page html format during its view preparation for html.
    Thanks
    Shailendra Kumar

  • How we can use jsf tags in included jsp enclosed in subview tags

    Hello everybody,
    I am developing web app by using jsf. I am including a jsp page "header.jsp" into another jsp page "main.jsp". The header.jsp page is enclosed in jsf subview tag on main.jsp page. The header.jsp contains some static html code and some jsf tags like "outputText". When i added tag library url in header.jsp then my app was not even not initiating and i was getting following exception
    ERROR [UIComponentTag] Faces context not found. getResponseWriter will fail. Check if the FacesServlet has been initialized at all in your web.xml.
    16:22:16,890 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
    at javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:929)
    at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)
    ....Now i removed jsf tag library url from included jsp "header.jsp" so now my app is running but only static html data is being displayed but the value in the jsf tag "outputText" is not being printed in the browser
    kindly help me. i would be very thankful....

    Your question has nothing to do with Sun Java System Directory Server.
    Please use the right forum(s).
    Thanks

  • Changing default META TAG

    Hi,
    is there any solution for changing the default meta tag charset? In my case it's <meta http-equiv="content-type" content="text/html;charset=utf8"> but I need
    <meta http-equiv="content-type" content="text/html;charset=windows-1250">. I can't simply add this meta tag to HTML header, because APEX automatically insert it's own meta tag for character set.
    thanx for your advices
    Robert

    Another issue, which i've solved on my own.
    It's not the question of character set in html meta tag. The solution for this issue was easy. You have to import data with NLS_LANG system variable set to correct language. In my case it was EE8MSWIN1250. After such import, all data are displayed correctly within IE.
    ;o)

  • Converter for converting all HTML tags to JSF tags

    hai all,
    i am new to JSF. i need a suggestions to convert all my HTML pages to JSF pages bcoz i was already created more pages in HTML and now i want to convert all the pages to JSF. can u give any suggestion plz post it here or send me a mail to [email protected]
    thanks in advance,
    regards,
    V.Sabarish

    hi roman,
    thanks for ur reply. it converts the file but the links r not converting....so can u suggest me another way for converting a HTML tags to JSF tags.

  • Can i use JSF tags and HTML tages Together

    i am trying to use html and JSf tages together. i hope it should owrk. but for me html tags are not working.
    can any one help me

    thanks
    its working but i have one more clarification
    can we wuse jsf tags in javascript
    for examp
    this my javascript using html
    newQuotCell1[0].innerHTML='<input type=text class=TextField name="nameofEmployer'+count1+'">';
    if i want to write a jsf tage there . does it allow
    i want to bind the textfield with bean value . Is it possibel.
    please let me know.
    thansk in advance

  • JSF tags and produced html

    Hi all i have a question. Why do the JSF tags produce html that is laid out with tables rather than divs? I've tried to get the jsf framework adopted in my organisation and its this, and i quote 'Poor html' that is blocking the adoption.
    Any one got a good answer i can take to the CTO please?
    The only thing i could come up with was cross browser compatibility.

    The CTO is about ten years out of date if he is allergic to HTML tables. Everybody does it except wannabe HTML gurus who invented this 'issue'. It might have been a problem once. Not now.

  • JSP tag for reducing the html output

    Hello,
    I was wondering if there was a jsp tag that reduce the html output of the jsps. I have tried trimfilter the idea is great but at my project filters should be a subclass of one class that i cant edit.
    Thanks for all advices.

    Instead of this<html>
         <body>
              Hello World
              <!--Some html comment-->
         </body>
    </html>This would be better.<html><body>Hello World</body></html>Edited by: mehmetcadirci on Jul 17, 2010 1:19 PM

  • How to add raw HTML tags inside JSF tags...

    Hi
    I would like to use <input type = text > inside my project in some area..The following code hides the input = type html tag and forwards the click event to jsf command button...After selecting the file,it should forward the value to jsf textfield....
    My code seems as below.
    <h:form id="detailForm" onsubmit="printElements(detailForm,this)">
    <f:verbatim>
    <input id="uploadFile" type="file" style ="dispaly:none"size="100" />
    </f:verbatim>
    <h:inputText id="docName" style="width:650px;" maxlength="100"/>
    <h:commandButton id="visibleBrowseButton" value="Select File..." onclick="'detailForm:uploadFile'.click();callClick();">
    </h:commandButton>
    </h:form>
    <script type="text/Javascript">
    function callClick()
    var val = document.detailForm.uploadFile.value;
    document.getElementById('detailForm:docName').value = val;
    </script>
    While running this page it works fine in IE but in Mozilla firefox it troubles me during detailForm:uploadFile'.click().
    I suspect the jsf page cannot able to detect the raw html tag inside jsf tags...Eventhough i tried using inside<f:verbatim> it wont works..
    I would like to know
    1.Whether the code is right,,if the code goes wrong why it got runned in IE not in firefox....
    2.How can raw html tags can be integrated inside JSF tags....

    First of all, why are you ignoring valuable answers about a JSF fileupload component in your previous topic?
    Second, you can just nest raw HTML anywhere in your JSF page. Your problem is rather related to JavaScript. It has completely nothing to do with Java nor JSF. Learn JavaScript -there is a nice tut at w3schools.com- and look for a JavaScript forum if you still stucks. There are ones at webdeveloper.com and dynamicdrive.com.
    The f:verbatim is only required if you was using JSF 1.1 or older, which is not the case. You would have occurred completely different problems.

  • Mixing HTML and JSF or better pure JSF Tags?

    I'm relatively new to JSF, but i can say, i work with all the Web Standards in HTML and CSS.
    So the HTML Render Results of JSF may not fit into a Web Developers Dreams of perfect HTML/CSS.
    An Option i see is to use HTML and put only the dynamic parts in there as JSF Components.
    What are the Pro's and Con's using HTML?
    some stuff i can image:
    Using pure JSF:
    - May many components have impact to the performance?
    - Mixed with HTML: What if the application should be rendered to another client pc (e.g. Mobile)?
    What are your experiences?

    The one downfall of mixing html with jsf, unless you use the f:verbatim tag, that the page is not properly represented in the component tree. Also depending on certain technologies you use (when I used ajax4jsf it worked this way) that the jsf component tree was rendered and then all the html was rendered at the end. This caused html tags and text that I had inside a jsf tag to be improperly displayed.
    This though was the case when I was originally using jsf 1.1, so it may have been improved in later editions, but since I have become accustomed to writing the entire page in jsf tags I have not really tested that limit in the current version.

  • Error Accessing JSF Tags in html div

    Hi,
    I am getting an error when trying to access <h:outputTest from within div. I am trying to embed a style sheet dynamically into the div.
    Following is my code:
    <div class="headerSDPLogo <h:outputText value='#{nlsSupport.align_logo}'/> ">The JSF tag isnt parsed at all. Accessing <h:outputText returns me this error.
    com.sun.facelets.FaceletException:
    Error Traced[line: 13] The value of attribute "class" associated with an element type "div" must not contain the '<' character.What could be the possible turnaround to this.
    Thanks.

    Mujju101 wrote:
    <div class="headerSDPLogo <h:outputText value='#{nlsSupport.align_logo}'/> ">What could be the possible turnaround to this.This perhaps?
    <div class="headerSDPLogo #{nlsSupport.align_logo}">

  • Reports 3/6i HTML Output Print problem

    Hi!
    I am using Reports 3 to generate HTML output but when I print this HTML output, it does not break at Oracle Reports Page break. It looks like the browser takes its default settings for margins. I am using IE 5.5.
    I tried the following options
    1. Using { page-break-after: always } option in 'After Page Value' of Report Escapes property (Report)
    2. Changing margin settings of browser, but was not able to change them to 0.
    I want to print the HTML report with page breaks where Oracle marks as Page Break.
    If possible, Please do write me at [email protected]
    Thanks,
    Praveen Kumar

    Praveen,
    When you generate a HTML page in Reports, you are generating a single page document that is then intepretted by the browser. You are correct that when you then print this page from the browser then it will not necessarily break at the same point as the reports page breaks.
    The only way to guarantee that you will get the same breaks is to use a different format. Most commonly people use PDF format when they want the printed page to match exactly what's on the screen. Alternatively you could include a link on the HTML rendition of the report that resubmits the report to the server but instructs the server to print the report directly.
    Hope this helps,
    Danny

Maybe you are looking for

  • Safari QuickTime Plug In Issues

    Hello Everyone, I set up a IP Cam over at another location on an apple time capsule router. I mapped port 80 so external users ie. you guys could access it. You can view the camera here: http://67.165.53.251/ Username: guest Password: guest My proble

  • Trying to make .mov audio file from Mac workable on PC

    So I took some files off of a Mac that I believe were imported directly from a mini DV tape. The files on the Mac were listed as .mov. Now when i open the drive up containing the files on a PC, they have no extension. I converted the larger file cont

  • Changing LOV's  table-field size

    Hi, I'm using Jdeveloper 11g. Knowing that the tag below is used in LOV, Now I need to know how to change the LOV's table-field sizes? (I'm using the model-based LOV, and it's reading the attributes from the view object) <af:inputListOfValues model="

  • HP Photosmart Web C309

    Turned printer on and it displays the initialization icon but will not initialization and display the dashboard icons.  Any ideas as to solving the problem  Thanks Joe

  • Spry horizontal menubar

    Hello, I am trying to figure out how to change the dimensions of the main menu bar (without affecting the submenus) of the spry widget. I read the documentation but i just couldn't get it to work Can anyone please point that out. Is there an easy way