Hello Bernd,
I thought about a workaround for the missing readonly for checkboxes.
Simply reset the value via javascript in the onChangle handler.
This seems to be obsolet now, with your fix.
But there're other thinkable common usecases. For example enable or
disable input fields when the checkbox is toggled. This can be easily
done via javascript in an onChange handler.
Or reload the content of a select list of a combobox. I think, this
can be done via tc:command. How can I do this without submitting and
reloading the page? How do I use partial rendering?
Regards
Helmut
>Hello Helmut,
>
>the page can rendered partially.
>
>Can you describe your use case?
>
>Regards
>
>Bernd
>
>H. Swaczinna wrote:
>> Hello Volker,
>>
>> thanks for the tip, but this is not what I want. First, tc:command
>> forces always a submit of the page, and second it doesn't work like
>> documented.
>>
>> <tc:selectBooleanCheckbox id="nacherwerb"
>> value="#{rechteController.nacherwerb}">
>> <f:facet name="change">
>> <tc:command
>onclick="javascript:alert('#{rechteController.nacherwerb}')"/>
>> </f:facet>
>> </tc:selectBooleanCheckbox>
>>
>> The javascript code is not executed. Maybe onclick is not the
>> appropriate attribute for a change facet, but there no onchange
>> in tc:command.
>>
>> I simply want to execute some javascript, when the checkbox is toggled.
>>
>> Regards
>> Helmut
>>
>>
>>> Hi Helmut,
>>>
>>> please use a <f:facet name="change"> with a tc:command.
>>>
>>> afaik the attribute is deprecated and will remvoed in a future release.
>>>
>>> Regards,
>>>
>>> Volker
>>>
>>> 2007/1/11, H. Swaczinna <[EMAIL PROTECTED]>:
>>>> Hello,
>>>>
>>>> the onchange attribute of tc:selectBooleanCheckbox has no effect.
>>>> It is not rendered into the HTML code. HTML allows onChange for
>>>> checkboxes.
>>>>
>>>> Regards
>>>> Helmut
>>>>
>>