• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why is onclick value getting lost?

Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I'm trying to create a checkbox with an onclick value through JSF. I have

<h:selectBooleanCheckbox id="portalEnabled" value="#{NPSAppDef.portalEnabled}" onclck="toggleReadOnlyURLs(this);"></h:selectBooleanCheckbox>

but what actually gets rendered on my page is

<input type="checkbox" name="appEditForm:portalEnabled" id="appEditForm:portalEnabled" value="true" />

Notice my onclck event is not rendered. Can someone help me figure out what is wrong above? I'm using MyFaces 1.1 with WebLogic 9.2.2.

NOTE!!! In order to post this JSF topic, I had to remove the "i" in the "onclck" clause, but in my JSF page, it is there.

Thanks, - Dave
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic