0

when i use the h:link tag it renders a <span> HTML tag instead of <a> tag. Any clues why is this happening ?

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
tt0686
  • 1,771
  • 6
  • 31
  • 60
  • "*it renders a HTML tag instead of tag*"? Did not understand. – Tiny Sep 23 '15 at 14:59
  • Sorry i forget to use the 'sample code' , thanks for the alert – tt0686 Sep 23 '15 at 15:06
  • "*If the "disabled" attribute is specified, do not render the HTML "a" anchor element or the "href" element. **Instead, render a "span" element.***" I think you should have observed this behaviour. – Tiny Sep 23 '15 at 15:08
  • Post your h:link, there is more then one reason why it could happen depending on it attributes. – Jean-François Savard Sep 23 '15 at 15:31
  • If an `` is disabled, then there is no reason to render a clickable link. (This is the sole purpose of `disabled`). The JSF run-time instead renders a `` tag. The behaviour is documented and implemented. @Jean-FrançoisSavard – Tiny Sep 23 '15 at 15:50
  • @Tiny I've seen the documentation, but wouldn't a `styleClass` attribute also force a `span` ? – Jean-François Savard Sep 23 '15 at 15:54
  • I already have fix the problem, the outcome was not correct.Thanks guys – tt0686 Sep 23 '15 at 15:56
  • A bare `` renders `` – Tiny Sep 23 '15 at 16:00
  • For future JSF questions, please read http://stackoverflow.com/tags/jsf/info. Therein you're also being recommended to read server logs. – BalusC Sep 23 '15 at 17:36

0 Answers0