This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
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: 15302
    
    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: 15302
    
    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: 17144
    
  27

Originally posted by lolo nantes:
hello!

excuse me for this nuisance.


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


An IDE is no substitute for an Intelligent Developer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with tomahawk Tree Table
 
It's not a secret anymore!