Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with tomahawk Tree Table

 
Josue Burgos
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello!

excuse me for this nuisance.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18165
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by lolo nantes:
hello!

excuse me for this nuisance.


You're excused. Thanks for your co-operation and welcome to the JavaRanch!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic