RE: checkboxes problem

2006-10-13 Thread Andrés Nates
Sorry, this is the "delete" component.







-Mensaje original-
De: Mael Caldas [mailto:[EMAIL PROTECTED] 
Enviado el: Miércoles, 11 de Octubre de 2006 12:05 p.m.
Para: Tapestry users
Asunto: Re: checkboxes problem

Where is the "delete" component?? I only found the jwcid="delete", but not
the component on the page with "delete" id...

[] 's

Mael

On 10/11/06, Andrés Nates <[EMAIL PROTECTED]> wrote:
>
> Hello
>
>
>
> I have the following problem
>
>
>
> I have a list of checkboxes, when i select a checkbox the page recharges
> itself. But if i select the last of the checkboxes in the list, when the
> page recharges, all checkboxes appears selected. Anybody knows Why this
> happens?, and What can I do to solve this problem?
>
>
>
>
>
> This is the code
>
>
>
>
>
> HTML
>
> 
>
> 
>
> 
>
>   
>
>  
>
> Nombre
>
> 
>
>   
>
>  jwcid="delete"/>
>
>  jwcid="categoryName">NombreCategoría
>
> 
>
> 
>
> 
>
> 
>
>
>
>
>
> PAGE
>
>  class="ws.nuevosmedios.quicklearnCRUD.CategoriesManager">
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
>  value="listener:updateCategories"/>
>
> 
>
> 
>
>  value="listener:actionOnCategory"/>
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 




>
> 
>
>
>
> JAVA
>
> public abstract class CategoriesManager extends BasePage implements
> PageBeginRenderListener{
>
> private List categoriesList;
>
> public abstract CategoriesGUI getCurrentCategory();
>
>
>
> public void pageBeginRender(PageEvent event) {
>
> ...
>
> categoriesList = .;
>
> }
>
>
>
> public List getCategoriesList() {
>
> return categoriesList;
>
> }
>
>
>
> private String buttonClicked;
>
> public void setButtonClicked(String buttonClicked) {
>
> this.buttonClicked = buttonClicked;
>
> }
>
> public String actionOnCategory(IRequestCycle cycle) {
>
>
> if (buttonClicked.equals("DELETE")) {
>
>
>return null;
>
> }
>
> return null;
>
> }
>
> public abstract boolean isToDeleteCategory();
>
> boolean category;
>
> public boolean getToDeleteCategory(){
>
> return category;
>
> }
>
> public void setToDeleteCategory(boolean cat){
>
> this.category = cat;;
>
> }
>
> public void updateCategories(IRequestCycle cycle) {
>
> IValidationDelegate delegate =
> (IValidationDelegate)
> getBeans().getBean("delegate");
>
> if (cycle.isRewinding()) {
>
>if (isToDeleteCategory()) {
>
>
>Integer i =
> getCurrentCategory().getQlCateId();
>
>deleteCategory(i);
>
>}
>
> }
>
> }
>
>
>
>
>
>
>
>
>
> Thanks
>
>
>
>
>
>
>
> Cordialmente,
> ~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~
> ANDRÉS NATES M.
> Director de implantación e infraestructura.
> Nuevos Medios
> Calle 25 No. 127-220 Autopista Cali-Jamundí Km. 7
> Tel: (572) - 524 07 77 Ext. 2173
> Email:  <mailto:[EMAIL PROTECTED]>
> [EMAIL PROTECTED]
> Cali <mailto:[EMAIL PROTECTED]>  - Colombia
> POLÍTICA DE CALIDAD
> Proveer soluciones tecnológicas de software para la gestión del
> conocimiento cumpliendo lo pactado con los clientes mediante el
> mejoramiento continuo y la innovación, apoyado en la sinergia
> corporativa de Parquesoft.
>
>
>
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: checkboxes problem

2006-10-11 Thread Mael Caldas

Where is the "delete" component?? I only found the jwcid="delete", but not
the component on the page with "delete" id...

[] 's

Mael

On 10/11/06, Andrés Nates <[EMAIL PROTECTED]> wrote:


Hello



I have the following problem



I have a list of checkboxes, when i select a checkbox the page recharges
itself. But if i select the last of the checkboxes in the list, when the
page recharges, all checkboxes appears selected. Anybody knows Why this
happens?, and What can I do to solve this problem?





This is the code





HTML







  

 

Nombre



  



NombreCategoría













PAGE













































JAVA

public abstract class CategoriesManager extends BasePage implements
PageBeginRenderListener{

private List categoriesList;

public abstract CategoriesGUI getCurrentCategory();



public void pageBeginRender(PageEvent event) {

...

categoriesList = .;

}



public List getCategoriesList() {

return categoriesList;

}



private String buttonClicked;

public void setButtonClicked(String buttonClicked) {

this.buttonClicked = buttonClicked;

}

public String actionOnCategory(IRequestCycle cycle) {


if (buttonClicked.equals("DELETE")) {


   return null;

}

return null;

}

public abstract boolean isToDeleteCategory();

boolean category;

public boolean getToDeleteCategory(){

return category;

}

public void setToDeleteCategory(boolean cat){

this.category = cat;;

}

public void updateCategories(IRequestCycle cycle) {

IValidationDelegate delegate =
(IValidationDelegate)
getBeans().getBean("delegate");

if (cycle.isRewinding()) {

   if (isToDeleteCategory()) {


   Integer i =
getCurrentCategory().getQlCateId();

   deleteCategory(i);

   }

}

}









Thanks







Cordialmente,
~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~
ANDRÉS NATES M.
Director de implantación e infraestructura.
Nuevos Medios
Calle 25 No. 127-220 Autopista Cali-Jamundí Km. 7
Tel: (572) - 524 07 77 Ext. 2173
Email:  
[EMAIL PROTECTED]
Cali   - Colombia
POLÍTICA DE CALIDAD
Proveer soluciones tecnológicas de software para la gestión del
conocimiento cumpliendo lo pactado con los clientes mediante el
mejoramiento continuo y la innovación, apoyado en la sinergia
corporativa de Parquesoft.







checkboxes problem

2006-10-11 Thread Andrés Nates
Hello

 

I have the following problem

 

I have a list of checkboxes, when i select a checkbox the page recharges
itself. But if i select the last of the checkboxes in the list, when the
page recharges, all checkboxes appears selected. Anybody knows Why this
happens?, and What can I do to solve this problem?

 

 

This is the code

 

 

HTML







  

 

Nombre



  



NombreCategoría









 

 

PAGE

 









































 

JAVA

public abstract class CategoriesManager extends BasePage implements
PageBeginRenderListener{

private List categoriesList;

public abstract CategoriesGUI getCurrentCategory();

 

public void pageBeginRender(PageEvent event) {

... 

categoriesList = .;

}



public List getCategoriesList() {

return categoriesList;

}

 

private String buttonClicked;

public void setButtonClicked(String buttonClicked) {

this.buttonClicked = buttonClicked;

}   

public String actionOnCategory(IRequestCycle cycle) {


if (buttonClicked.equals("DELETE")) {


   return null;

}   

return null;

}

public abstract boolean isToDeleteCategory();

boolean category;

public boolean getToDeleteCategory(){

return category;

}

public void setToDeleteCategory(boolean cat){

this.category = cat;;

}

public void updateCategories(IRequestCycle cycle) {

IValidationDelegate delegate = (IValidationDelegate)
getBeans().getBean("delegate");

if (cycle.isRewinding()) {

   if (isToDeleteCategory()) {


   Integer i =
getCurrentCategory().getQlCateId();   

   deleteCategory(i);

   } 

}

}

 

 

 

 

Thanks

 

 

 

Cordialmente, 
~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~
ANDRÉS NATES M.
Director de implantación e infraestructura.
Nuevos Medios
Calle 25 No. 127-220 Autopista Cali-Jamundí Km. 7
Tel: (572) - 524 07 77 Ext. 2173
Email:  
[EMAIL PROTECTED]
Cali   - Colombia 
POLÍTICA DE CALIDAD
Proveer soluciones tecnológicas de software para la gestión del
conocimiento cumpliendo lo pactado con los clientes mediante el
mejoramiento continuo y la innovación, apoyado en la sinergia 
corporativa de Parquesoft.

 



Re: checkboxes problem

2006-10-10 Thread Ron Piterman
Yes, I know why this happends: you have a bug, a mistake  in your code.
Cheers,
Ron


Andrés Nates wrote:
> Hello
> 
>  
> 
> I have the following problem
> 
>  
> 
> I have a list of checkboxes, when i select a checkbox the page recharges
> itself. But if i select the last of the checkboxes in the list, when the
> page recharges, all checkboxes appears selected. Anybody knows Why this
> happens?, and What can I do to solve this problem?
> 
>  
> 
> Thanks
> 
>  
> 
> Cordialmente, 
> ~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~
> ANDRÉS NATES M.
> Director de implantación e infraestructura.
> Nuevos Medios
> Calle 25 No. 127-220 Autopista Cali-Jamundí Km. 7
> Tel: (572) - 524 07 77 Ext. 2173
> Email:  
> [EMAIL PROTECTED]
> Cali   - Colombia 
> POLÍTICA DE CALIDAD
> Proveer soluciones tecnológicas de software para la gestión del
> conocimiento cumpliendo lo pactado con los clientes mediante el
> mejoramiento continuo y la innovación, apoyado en la sinergia 
> corporativa de Parquesoft.
> 
>  
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



checkboxes problem

2006-10-09 Thread Andrés Nates
Hello

 

I have the following problem

 

I have a list of checkboxes, when i select a checkbox the page recharges
itself. But if i select the last of the checkboxes in the list, when the
page recharges, all checkboxes appears selected. Anybody knows Why this
happens?, and What can I do to solve this problem?

 

Thanks

 

Cordialmente, 
~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~
ANDRÉS NATES M.
Director de implantación e infraestructura.
Nuevos Medios
Calle 25 No. 127-220 Autopista Cali-Jamundí Km. 7
Tel: (572) - 524 07 77 Ext. 2173
Email:  
[EMAIL PROTECTED]
Cali   - Colombia 
POLÍTICA DE CALIDAD
Proveer soluciones tecnológicas de software para la gestión del
conocimiento cumpliendo lo pactado con los clientes mediante el
mejoramiento continuo y la innovación, apoyado en la sinergia 
corporativa de Parquesoft.