Re: selectBooleanCheckbox not checked after valuechange, why?

2006-09-10 Thread Wolf Benz

Gerald/...,

I have a recursive method for walking through a checkbox tree at  
once. The method is called by a command(-Button) under the tree.
(Reason is I don't want a servertrip at every check but wish to  
process all checked nodes at once)
The algoritm I use is: (selectedNodesIDs is an array of Strings for  
the SELECTED Node IDs)
It walks recursively through the tree and adds selected nodes to this  
dedicated array.


public void handleLeafs(TreeNodeBase node){
if(selectedNodesIDs == null)selectedNodesIDs= new 
ArrayListString();
// simple case first: if node is Leaf, we check whether it is 
checked:
logger.info(Handling of the selected Nodes starts now...);
if(node.isLeaf()){
logger.info(Node is a Leaf);
if(((TreeNodeChecked)node).isChecked()){
getSelectedNodesIDs().add(node.getIdentifier());
logger.info(Node with this ID was gecheckt: + node.getIdentifier 
());

}
}
		// normal case: if node has kids -- we recursively get to the  
Leafs to check them out:

else if(node.getChildCount() 0){
logger.info(Node has kids which we will start treating 
now...);
ListTreeNodeBase childs = 
(ListTreeNodeBase)node.getChildren();
 for (TreeNodeBase nodeSub : childs) {
 if(nodeSub.isLeaf()){
 logger.info(Node is Leaf - is it 
checked?);
 // it is a leaf now, -- it is a 
TreeNodeCheked
 
if(((TreeNodeChecked)nodeSub).isChecked()){
 
getSelectedNodesIDs().add(nodeSub.getIdentifier());
		 logger.info(Node met deze ID was gecheckt: +  
node.getIdentifier());

 } else {logger.info(Node was not 
checked);}
}
 else {handleLeafs(nodeSub);}
 }
 }
else {logger.info(Node at this level has no kids... );}

}


The tree2 is defined like this:
t:tree2 id=clientTree value=#{calmgmtbean.treeRootNode}   
var=node varNodeToggler=t clientSideToggle=true


preserveToggle=false 

f:facet name=root
h:panelGroup
			 	h:outputLabel value=#{labels.calMgmt_tree_rootTxt}  
styleClass=inhoudKolom2/

/h:panelGroup
/f:facet

f:facet 
name=calendarSet
h:panelGroup
	 			t:graphicImage value=../pics/calMgmt/blue-folder-open.gif  
border=0 rendered=#{t.nodeExpanded}/
	 			t:graphicImage value=../pics/calMgmt/blue-folder- 
closed.png border=0 rendered=#{!t.nodeExpanded}/
	 			h:outputLabel value=#{labels.calMgmt_tree_calSetTxt} : # 
{node.description} styleClass=inhoudKolom2/
			 	h:outputText value= (#{node.childCount})  
styleClass=childCount rendered=#{!empty node.children}/

/h:panelGroup
 /f:facet 
  

f:facet name=trigger
h:panelGroup
h:selectBooleanCheckbox 
value=#{node.checked} /
 		h:outputText value= #{node.description}
style=font-size:12px;font-style:italic;color:darkgrey;font- 
family:verdana;/

/h:panelGroup
/f:facet

/t:tree2


Yet, the checked values are not retained. The method's log output  
always writes Node was not checked...

Any idea on how to remedy this?
Funny thing is: used to work in the past, but apparently broke with  
one of the upgrades. (Tomahawk)  I moved to T115 to avoid problems  
with other components...


Wolf


On 11 Aug 2006, at 13:33, Gerald Müllan wrote:

The boolean checkbox is set according to the value binding.

In your case is this the expression value=#{node.checked}, but you
don`t influence the checked 

Re: selectBooleanCheckbox not checked after valuechange, why?

2006-09-10 Thread Wolf Benz

Accidentally found a solution: (poking around with the tree2 props)
setting clientSideToggle=false made it slower (GUI-wise less  
elegant, as I always have small trees) yet it worked again.

Hopefully a next release will straighten out such annoying issues.

Wolf


I set clientSideToggle=false
On 10 Sep 2006, at 13:46, Wolf Benz wrote:

Gerald/...,

I have a recursive method for walking through a checkbox tree at  
once. The method is called by a command(-Button) under the tree.
(Reason is I don't want a servertrip at every check but wish to  
process all checked nodes at once)
The algoritm I use is: (selectedNodesIDs is an array of Strings for  
the SELECTED Node IDs)
It walks recursively through the tree and adds selected nodes to this  
dedicated array.


public void handleLeafs(TreeNodeBase node){
if(selectedNodesIDs == null)selectedNodesIDs= new 
ArrayListString();
// simple case first: if node is Leaf, we check whether it is 
checked:
logger.info(Handling of the selected Nodes starts now...);
if(node.isLeaf()){
logger.info(Node is a Leaf);
if(((TreeNodeChecked)node).isChecked()){
getSelectedNodesIDs().add(node.getIdentifier());
logger.info(Node with this ID was gecheckt: + node.getIdentifier 
());

}
}
		// normal case: if node has kids -- we recursively get to the  
Leafs to check them out:

else if(node.getChildCount() 0){
logger.info(Node has kids which we will start treating 
now...);
ListTreeNodeBase childs = 
(ListTreeNodeBase)node.getChildren();
 for (TreeNodeBase nodeSub : childs) {
 if(nodeSub.isLeaf()){
 logger.info(Node is Leaf - is it 
checked?);
 // it is a leaf now, -- it is a 
TreeNodeCheked
 
if(((TreeNodeChecked)nodeSub).isChecked()){
 
getSelectedNodesIDs().add(nodeSub.getIdentifier());
		 logger.info(Node met deze ID was gecheckt: +  
node.getIdentifier());

 } else {logger.info(Node was not 
checked);}
}
 else {handleLeafs(nodeSub);}
 }
 }
else {logger.info(Node at this level has no kids... );}

}


The tree2 is defined like this:
t:tree2 id=clientTree value=#{calmgmtbean.treeRootNode}   
var=node varNodeToggler=t clientSideToggle=true


preserveToggle=false 

f:facet name=root
h:panelGroup
			 	h:outputLabel value=#{labels.calMgmt_tree_rootTxt}  
styleClass=inhoudKolom2/

/h:panelGroup
/f:facet

f:facet 
name=calendarSet
h:panelGroup
	 			t:graphicImage value=../pics/calMgmt/blue-folder-open.gif  
border=0 rendered=#{t.nodeExpanded}/
	 			t:graphicImage value=../pics/calMgmt/blue-folder- 
closed.png border=0 rendered=#{!t.nodeExpanded}/
	 			h:outputLabel value=#{labels.calMgmt_tree_calSetTxt} : # 
{node.description} styleClass=inhoudKolom2/
			 	h:outputText value= (#{node.childCount})  
styleClass=childCount rendered=#{!empty node.children}/

/h:panelGroup
 /f:facet 
  

f:facet name=trigger
h:panelGroup
h:selectBooleanCheckbox 
value=#{node.checked} /
 		h:outputText value= #{node.description}
style=font-size:12px;font-style:italic;color:darkgrey;font- 
family:verdana;/

/h:panelGroup
/f:facet

/t:tree2


Yet, the checked values are not retained. The method's log output  
always writes Node was not checked...

Any idea on how to remedy this?
Funny thing is: used to work in the 

Re: selectBooleanCheckbox not checked after valuechange, why?

2006-09-10 Thread Wolf Benz
Mmmm, this tree2 component seems to have more sandbox than  
“tomahawk character, it's a very easy to run into issues. (suffices  
to do a find for tree2)


I though my last problem was bypassed (clientSideToggle doesn't  
work), but when I try to come back at the same page a second time, I  
always get a NPE.

So, to be clear, the scenario is:

Portal page - Page with Tree - 'OK' brings one back to teh portal  
page  // this goes fine now (only with clientSideToggle=false  
otherwise tree state is messed up)

 Then:
Portal page - (same Use Case selected) Same Page with Tree // this  
always causes a NPE on the tree2 component.


I first thought: there'll be a left-over (proper cleanup?) in the  
session/resquest, so have logged all request params  session  
attributes but there wasn 't anything inside referencing a tree.  
(except jsf_tree_64 but that 'll be for smth else as it was already  
in the request in the first half of the scenario)


The internal error produced is this:
Anyone an idea...?

006-09-10 21:37:56,005 ERROR [org.apache.catalina.core.ContainerBase. 
[Catalina].[localhost].[/Mnemonica].[jsp]] - Servlet.service() for  
servlet jsp threw exception

java.lang.NullPointerException
	at org.apache.myfaces.custom.tree2.UITreeData.encodeEnd 
(UITreeData.java:118)

at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:495)
at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:363)
	at  
org.apache.jsp.resources.pages.calendarManagement_jsp._jspx_meth_t_tree2 
_0(calendarManagement_jsp.java:495)
	at  
org.apache.jsp.resources.pages.calendarManagement_jsp._jspx_meth_t_div_0 
(calendarManagement_jsp.java:403)
	at  
org.apache.jsp.resources.pages.calendarManagement_jsp._jspx_meth_h_form_ 
0(calendarManagement_jsp.java:277)
	at  
org.apache.jsp.resources.pages.calendarManagement_jsp._jspx_meth_f_view_ 
0(calendarManagement_jsp.java:166)
	at org.apache.jsp.resources.pages.calendarManagement_jsp._jspService 
(calendarManagement_jsp.java:127)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.jasper.servlet.JspServletWrapper.service 
(JspServletWrapper.java:332)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile 
(JspServlet.java:314)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter 
(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter 
(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.ApplicationDispatcher.invoke 
(ApplicationDispatcher.java:672)
	at org.apache.catalina.core.ApplicationDispatcher.processRequest 
(ApplicationDispatcher.java:463)
	at org.apache.catalina.core.ApplicationDispatcher.doForward 
(ApplicationDispatcher.java:398)
	at org.apache.catalina.core.ApplicationDispatcher.forward 
(ApplicationDispatcher.java:301)
	at  
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch 
(ServletExternalContextImpl.java:416)
	at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView 
(JspViewHandlerImpl.java:234)
	at org.apache.myfaces.lifecycle.LifecycleImpl.render 
(LifecycleImpl.java:384)

at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter 
(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter 
(ApplicationFilterChain.java:173)
	at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter 
(ExtensionsFilter.java:144)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter 
(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter 
(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.StandardWrapperValve.invoke 
(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke 
(StandardContextValve.java:178)
	at org.apache.catalina.core.StandardHostValve.invoke 
(StandardHostValve.java:126)
	at org.apache.catalina.valves.ErrorReportValve.invoke 
(ErrorReportValve.java:105)
	at org.apache.catalina.core.StandardEngineValve.invoke 
(StandardEngineValve.java:107)
	at org.apache.catalina.connector.CoyoteAdapter.service 
(CoyoteAdapter.java:148)
	at org.apache.coyote.http11.Http11Processor.process 
(Http11Processor.java:869)
	at org.apache.coyote.http11.Http11BaseProtocol 
$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket 
(PoolTcpEndpoint.java:527)
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt 
(LeaderFollowerWorkerThread.java:80)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run 
(ThreadPool.java:684)

at java.lang.Thread.run(Thread.java:613)
2006-09-10 

Re: selectBooleanCheckbox not checked after valuechange, why?

2006-09-10 Thread Gerald Müllan

Tree2 is a complex component, so there might be open issues in some usecases.

I haven`t ever used it, therefore sorry but i cannot help. But it`s
also widespread used, so it seems that there are not that much issues
for most of the users.

regards,

Gerald

On 9/10/06, Wolf Benz [EMAIL PROTECTED] wrote:

Ah, tree2 got lucky! ;-)

Then it's perhaps the right time to either make it more robust (my
preference, tree2 is used a lot and is a very cool component - when
it works) or move it to Sandbox because of all current issues.
Meanwhile, perhaps people now of robust tree components with similar
features?

Wolf


On 10 Sep 2006, at 22:20, Matthias Wessendorf wrote:

tree2 was created at a time, when there was no sandbox

On 9/10/06, Wolf Benz [EMAIL PROTECTED] wrote:
 Mmmm, this tree2 component seems to have more sandbox than
 tomahawk character, it's a very easy to run into issues. (suffices
 to do a find for tree2)

 I though my last problem was bypassed (clientSideToggle doesn't
 work), but when I try to come back at the same page a second time, I
 always get a NPE.
 So, to be clear, the scenario is:

 Portal page - Page with Tree - 'OK' brings one back to teh portal
 page  // this goes fine now (only with clientSideToggle=false
 otherwise tree state is messed up)
  Then:
 Portal page - (same Use Case selected) Same Page with Tree // this
 always causes a NPE on the tree2 component.

 I first thought: there'll be a left-over (proper cleanup?) in the
 session/resquest, so have logged all request params  session
 attributes but there wasn 't anything inside referencing a tree.
 (except jsf_tree_64 but that 'll be for smth else as it was already
 in the request in the first half of the scenario)

 The internal error produced is this:
 Anyone an idea...?

 006-09-10 21:37:56,005 ERROR [org.apache.catalina.core.ContainerBase.
 [Catalina].[localhost].[/Mnemonica].[jsp]] - Servlet.service() for
 servlet jsp threw exception
 java.lang.NullPointerException
 at org.apache.myfaces.custom.tree2.UITreeData.encodeEnd
 (UITreeData.java:118)
 at javax.faces.webapp.UIComponentTag.encodeEnd
 (UIComponentTag.java:495)
 at javax.faces.webapp.UIComponentTag.doEndTag
 (UIComponentTag.java:363)
 at
 org.apache.jsp.resources.pages.calendarManagement_jsp._jspx_meth_t_tre
 e2
 _0(calendarManagement_jsp.java:495)
 at
 org.apache.jsp.resources.pages.calendarManagement_jsp._jspx_meth_t_div
 _0
 (calendarManagement_jsp.java:403)
 at
 org.apache.jsp.resources.pages.calendarManagement_jsp._jspx_meth_h_for
 m_
 0(calendarManagement_jsp.java:277)
 at
 org.apache.jsp.resources.pages.calendarManagement_jsp._jspx_meth_f_vie
 w_
 0(calendarManagement_jsp.java:166)
 at
 org.apache.jsp.resources.pages.calendarManagement_jsp._jspService
 (calendarManagement_jsp.java:127)
 at org.apache.jasper.runtime.HttpJspBase.service
 (HttpJspBase.java:97)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:
 802)
 at org.apache.jasper.servlet.JspServletWrapper.service
 (JspServletWrapper.java:332)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile
 (JspServlet.java:314)
 at org.apache.jasper.servlet.JspServlet.service
 (JspServlet.java:264)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:
 802)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
 (ApplicationFilterChain.java:252)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter
 (ApplicationFilterChain.java:173)
 at org.apache.catalina.core.ApplicationDispatcher.invoke
 (ApplicationDispatcher.java:672)
 at
 org.apache.catalina.core.ApplicationDispatcher.processRequest
 (ApplicationDispatcher.java:463)
 at org.apache.catalina.core.ApplicationDispatcher.doForward
 (ApplicationDispatcher.java:398)
 at org.apache.catalina.core.ApplicationDispatcher.forward
 (ApplicationDispatcher.java:301)
 at
 org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch
 (ServletExternalContextImpl.java:416)
 at
 org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView
 (JspViewHandlerImpl.java:234)
 at org.apache.myfaces.lifecycle.LifecycleImpl.render
 (LifecycleImpl.java:384)
 at javax.faces.webapp.FacesServlet.service
 (FacesServlet.java:138)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
 (ApplicationFilterChain.java:252)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter
 (ApplicationFilterChain.java:173)
 at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter
 (ExtensionsFilter.java:144)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
 (ApplicationFilterChain.java:202)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter
 (ApplicationFilterChain.java:173)
 at org.apache.catalina.core.StandardWrapperValve.invoke
 (StandardWrapperValve.java:213)
  

Re: selectBooleanCheckbox not checked after valuechange, why?

2006-08-11 Thread Gerald Müllan

The boolean checkbox is set according to the value binding.

In your case is this the expression value=#{node.checked}, but you
don`t influence the checked variable in your code.

You only need to get the new value out of the event:

event.getNewValue()

and set the checked variable to it.

cheers,

Gerald

On 8/10/06, Johnny Gonzalez [EMAIL PROTECTED] wrote:

Hello Gerald,

Sorry for taking to long to answer,...
the part of the JSP I have is this:

t:tree2 id=serverTree value=#{EntradasBean.modeloArbol} var=node
varNodeToggler=t clientSideToggle=true


f:facet name=opcion
 h:panelGroup
 h:selectBooleanCheckbox
title=#{node.description} value=#{node.checked}
valueChangeListener=#{EntradasBean.checkBoxSelected}
onchange=this.form.submit() immediate=true/
 h:outputText value=#{node.description}
style=FONT: xx-small Verdana, Arial, Helvetica, sans-serif;
styleClass=nodeFolder/
 /h:panelGroup
/f:facet


f:facet name=menu
h:panelGroup
 h:selectBooleanCheckbox
title=#{node.description} value=true
valueChangeListener=#{EntradasBean.checkBoxSelected}
onchange=this.form.submit() immediate=true/
 h:outputText value=*
rendered=#{t.nodeSelected} /
h:outputText value=#{node.description}
styleClass=nodeFolder style=FONT: xx-small Verdana, Arial, Helvetica,
sans-serif; /
/h:panelGroup
/f:facet

f:facet name=raiz
h:panelGroup
h:selectBooleanCheckbox
title=#{node.description} value=true
valueChangeListener=#{EntradasBean.checkBoxSelected}
onchange=this.form.submit() immediate=true/
h:outputText value=#{node.description}
styleClass=nodeFolder style=FONT: xx-small Verdana, Arial, Helvetica,
sans-serif; /
/h:panelGroup
/f:facet

/t:tree2


and in the backing bean I have:

this is the valueChangeEvent method:

 public void checkBoxSelected(ValueChangeEvent event){
  FacesContext contexto = FacesContext.getCurrentInstance();

  // Obtengo la sesion en que estamos
  HttpSession sesion = ( HttpSession )
contexto.getExternalContext().getSession( false );

  // Objeto para manejar el radio button
  HtmlSelectBooleanCheckbox select = ( HtmlSelectBooleanCheckbox )
event.getComponent();

  String valor = new String();
  if(select.getValue().equals(true)){
  valor = ( String ) select.getTitle();
  System.out.println(ValueChange: +valor);
  this.checkBoxSelected.add(valor);
  }
  select.setValue(new Boolean(true));

  for(String s: this.checkBoxSelected){
  System.out.println(this.checkBoxSelected.size());
  System.out.println(s);
  }

}

What do you think about it?

thanks a lot,
Johnny






Gerald Müllan [EMAIL PROTECTED] escribió:
 Hi,

have you set the value attribute of the h:selectBooleanCheckbox component?

What do you do in the backend method?

Would be helpful if you could support with some code fragments.

cheers,

Gerald

On 8/9/06, Johnny Gonzalez wrote:
 Hello everybody,

 I have built a tree with selectBooleanCheckbox, I wrote a valuechange
event
 to store if every of the h:selectBooleanCheckbox, were selected, but after
 the method is executed the page is repainted and the
h:selectBooleanCheckbox
 that I selected appears unchecked, why this strange behaviour?

 TIA,

 Johnny


 

 LLama Gratis a cualquier PC del Mundo.
 Llamadas a fijos y móviles desde 1 céntimo por minuto.
 http://es.voice.yahoo.com




--
Gerald Müllan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
[EMAIL PROTECTED]




 

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com





--
Gerald Müllan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
[EMAIL PROTECTED]


Re: selectBooleanCheckbox not checked after valuechange, why?

2006-08-10 Thread Johnny Gonzalez
Hello Gerald,Sorry for taking to long to answer,...the part of the JSP I have is this:t:tree2 id="serverTree" value="#{EntradasBean.modeloArbol}" var="node" varNodeToggler="t" clientSideToggle="true"   f:facet name="opcion"   h:panelGrouph:selectBooleanCheckbox title="#{node.description}"
 value="#{node.checked}" valueChangeListener="#{EntradasBean.checkBoxSelected}"  immediate="true"/ h:outputText value="#{node.description}" style="FONT: xx-small Verdana, Arial, Helvetica, sans-serif;" styleClass="nodeFolder"/   /h:panelGroup  /f:facet 
  f:facet name="menu"   h:panelGroup   h:selectBooleanCheckbox title="#{node.description}" value="true" valueChangeListener="#{EntradasBean.checkBoxSelected}"  immediate="true"/h:outputText value="*" rendered="#{t.nodeSelected}" /  
  h:outputText value="#{node.description}" styleClass="nodeFolder" style="FONT: xx-small Verdana, Arial, Helvetica, sans-serif;" /   /h:panelGroup  /f:facet  f:facet name="raiz"  
 h:panelGrouph:selectBooleanCheckbox title="#{node.description}" value="true" valueChangeListener="#{EntradasBean.checkBoxSelected}"  immediate="true"/h:outputText value="#{node.description}" styleClass="nodeFolder" style="FONT: xx-small Verdana, Arial, Helvetica, sans-serif;" /   /h:panelGroup  /f:facet 
   /t:tree2  and in the backing bean I have:this is the valueChangeEvent method:public void checkBoxSelected(ValueChangeEvent event){   FacesContext contexto = FacesContext.getCurrentInstance();   // Obtengo la sesion en que estamos   HttpSession sesion = ( HttpSession ) contexto.getExternalContext().getSession( false );   // Objeto para manejar el radio button   HtmlSelectBooleanCheckbox select = ( HtmlSelectBooleanCheckbox ) event.getComponent(); 
  String valor = new String();   if(select.getValue().equals(true)){valor = ( String ) select.getTitle();System.out.println("ValueChange: "+valor);this.checkBoxSelected.add(valor);   }   select.setValue(new Boolean(true)); for(String s: this.checkBoxSelected){System.out.println(this.checkBoxSelected.size());System.out.println(s);
   }}What do you think about it?thanks a lot,JohnnyGerald Müllan [EMAIL PROTECTED] escribió: Hi,have you set the value attribute of the h:selectBooleanCheckbox component?What do you do in the backend method?Would be helpful if you could support with some code fragments.cheers,GeraldOn 8/9/06, Johnny Gonzalez <[EMAIL PROTECTED]> wrote: Hello everybody, I have built a tree with selectBooleanCheckbox, I wrote a valuechange event to store if every of the h:selectBooleanCheckbox, were selected, but after the method is executed the page is
 repainted and the h:selectBooleanCheckbox that I selected appears unchecked, why this strange behaviour? TIA, Johnny   LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com-- Gerald MüllanSchelleingasse 2/111040 Vienna, Austria0043 699 11772506[EMAIL PROTECTED] 
		LLama Gratis a cualquier PC del Mundo.Llamadas a fijos y móviles desde 1 céntimo por minuto.http://es.voice.yahoo.com

Re: selectBooleanCheckbox not checked after valuechange, why?

2006-08-09 Thread Gerald Müllan

Hi,

have you set the value attribute of the h:selectBooleanCheckbox component?

What do you do in the backend method?

Would be helpful if you could support with some code fragments.

cheers,

Gerald

On 8/9/06, Johnny Gonzalez [EMAIL PROTECTED] wrote:

Hello everybody,

I have built a tree with selectBooleanCheckbox, I wrote a valuechange event
to store if every of the h:selectBooleanCheckbox, were selected, but after
the method is executed the page is repainted and the h:selectBooleanCheckbox
that I selected appears unchecked, why this strange behaviour?

TIA,

Johnny


 

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com





--
Gerald Müllan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
[EMAIL PROTECTED]


selectBooleanCheckbox not checked after valuechange, why?

2006-08-08 Thread Johnny Gonzalez
Hello everybody,I have built a tree with selectBooleanCheckbox, I wrote a valuechange event to store if every of the h:selectBooleanCheckbox, were selected, but after the method is executed the page is repainted and the h:selectBooleanCheckbox that I selected appears unchecked, why this strange behaviour?TIA,Johnny 
		LLama Gratis a cualquier PC del Mundo.Llamadas a fijos y móviles desde 1 céntimo por minuto.http://es.voice.yahoo.com