Hello Adam,

thanks for the tip. But that's not exactly what I wanted. I would
like to execute some javascript code. I tried the onclick attribute 
of tc:command, but this has no effect:

    <tc:selectBooleanCheckbox label="Test">
      <f:facet name="click">
        <tc:command action="#{taskController.valueChanged}"
          onclick="javascript:alert('Hello')"/>
      </f:facet>
    </tc:selectBooleanCheckbox>

Btw the onchange and valueChangeListener attributes of 
tc:selectBooleanCheckbox should work, because they're well
documented.

Regards
Helmut


>Hello Helmut,
>
>you can use instead of the onchange attribute the change facet:
>
><tc:selectBooleanCheckbox label="Test" />
>        <f:facet name="change">
>                <tc:command action="#{myForm.doChange}" />
>        </f:facet>
></tc:selectBooleanCheckbox>
>
>
>
>kind regards
>
>Adam A. Henne
>
>
>"H. Swaczinna" <[EMAIL PROTECTED]> schrieb am 06.12.2006 00:58:34:
>
>> Hello,
>> 
>> the onchange attribute of the tc:selectBooleanCheckbox is not rendered
>> into the HTML code.
>> 
>> Example:
>> 
>> JSP <tc:selectBooleanCheckbox label="Test" 
>onchange="javascript:alert('Hello')
>> ;"/>
>> 
>> HTML <input type="checkbox" value="true" name="gena:_idJsp0" 
>> class="tobago-selectBooleanCheckbox-default " id="gena:_idJsp0">
>> 
>> And the valueChangeListener isn't called also, because there's no
>> onChange generated.
>> 
>> I'm using snapshot 1.0.9 form yesterday night.
>> 
>> Regards
>> Helmut
>

Reply via email to