Has anyone seen this h:commandLink behavior?
Posted
by Liggy
on Stack Overflow
See other posts from Stack Overflow
or by Liggy
Published on 2010-06-03T19:13:09Z
Indexed on
2010/06/03
20:24 UTC
Read the original article
Hit count: 163
jsf
|commandlink
I have a very simple JSF form:
<h:form id="simpleSearch">
<h:inputText id="surname" value="#{myBean.surname}" required="true" />
<h:commandLink>Search</h:commandLink>
</h:form>
When this page is rendered, the anchor that is generated looks like this (for brevity, I stripped out the generated onclick code):
Search<a href="#" onclick="..."></a>
As you can see, the "Search" is outside the anchor and the anchor body is empty. This is useless to me. I can't use this.
Are there any suggestions/references/miracles out there to help me fix/understand what is going on here?
Thanks!
© Stack Overflow or respective owner