File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Problem with tomahawk Tree Table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem with tomahawk Tree Table" Watch "Problem with tomahawk Tree Table" New topic
Author

Problem with tomahawk Tree Table

Josue Burgos
Greenhorn

Joined: Dec 20, 2005
Posts: 1
I am trying to use a checkbox column in the tree table, it is rendered ok, but the valueChangeListener is never called. This is the code:

<t:tree value="#{bean.treeModel}"
var="treeItem">
<t:treeColumn>
<h utputText value="#{treeItem.name}" />
</t:treeColumn>
<h:column>
<h:selectBooleanCheckbox value="#{treeItem.booleanValue}"
immediate="true"
onchange="submit()"
valueChangeListener="#{otherbean.handleModificado}"/>
</h:column>
</t:tree>

The problem is that the valueChangeListener method is never called. There isn't any error in the logs.
Is it posible to use the selectBooleanCheckbox inside the tree component?
Thank you
lolo nantes
Greenhorn

Joined: Dec 27, 2005
Posts: 3
Hello,

i have another question. Which method refers bean.treeModel? How do you implement it?

Can you show me the code of this method?

Thanks
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Josue,

Try (space for ubb reasons) on change="form.submit()" replacing "form" with whatever you have given as the id to your h:form element.


GenRocket - Experts at Building Test Data
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

lolonantes lolonantes

Welcome to Javaranch. We don't have too many rules around here but we do have a Naming Policy. Please read this and adjust your display name accordingly.

Also, it's not very polite to highjack a thread. That is to say, someone asked a question and you have asked a question that is not really relivent to the discussion. Feel free to ask questions like this in your very own threads. You'll get answers quicker that way.

Thanks.
lolo nantes
Greenhorn

Joined: Dec 27, 2005
Posts: 3
hello!

excuse me for this nuisance.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16160
    
  21

Originally posted by lolo nantes:
hello!

excuse me for this nuisance.


You're excused. Thanks for your co-operation and welcome to the JavaRanch!


Customer surveys are for companies who didn't pay proper attention to begin with.
 
Consider Paul's rocket mass heater.
 
subject: Problem with tomahawk Tree Table