myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam.He...@nordlb-it.de
Subject Antwort: [Tobago] no onchange for tc:selectBooleanCheckbox
Date Wed, 06 Dec 2006 09:06:20 GMT
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" <swaczinna@wlp-systems.de> 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


Mime
View raw message