• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Attribute onchange invalid for tag commandLink according to TLD

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using h:commandLink as follows:

<h:commandLink id="expire_date_button" title="Renew" target="RenewTN" rendered="#{!Auto.records.tn.readOnly && Auto.records.tn.canRenew}" onclick="ActionForm = 'form1:auto_refresh_tn'; popWindow('../pops/renew_tn.jsf', 'RenewTN','400','250','yes');return false;" onchange="setDirtyFlag(true);">
<h:graphicImage value="/i/btn_renew_tn.png" alt="Renew TN" styleClass="imgButton" width="68" height="15"/>
</h:commandLink>

When I look at acceptable attributes for h:commandLink onchange exists. Why would I be gettting the following at runtime: Attribute onchange invalid for tag commandLink according to TLD

Thanks
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The tag library documentation does not list onchange as a attribute of h:commandLink.

Which documentation are you referring to?
 
Richard Roszak
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was using

http://www.horstmann.com/corejsf/jsf-tags.html#Table4_15

.

Thansk for the information
 
Saloon Keeper
Posts: 28654
211
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Think about it. "onchange" is an event that fires when the contents of an input control change. commandLink is an output control!
 
reply
    Bookmark Topic Watch Topic
  • New Topic