This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 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: 15960
    
  19

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Problem with tomahawk Tree Table
 
Similar Threads
rendering each child t:tree node in seperate column in panel grid
How to work with t:tree component
Whether tag handlers are needed in creating a t:tree component
Input row select on data table does not get called
problem with t:tree