git-svn-id: https://svn.coded.pt/svn/SIPRP@1612 bb69d46d-e84e-40c8-a05a-06db0d633741

lxbfYeaa
Diogo Neves 15 years ago
parent 6cd1a60888
commit 7e335b80c8

@ -102,7 +102,6 @@ public abstract class Pagination implements Serializable
page.setId( "valor" + risco.getId() );
page.setPageNumber( pageNumber );
page.setText( pageNumber );
if ( isCurrentPage( page, risco, riscoActual ) )
{
setDisabled( page );

@ -1335,7 +1335,7 @@ public class EditarPlano extends AbstractPageBean
gridPagination.getChildren().add( group );
group = new PanelGroup();
}
if ( pagina.isPrevious() )
{
pagina.addActionListener( new MethodExpressionActionListener( me ) );
@ -1373,58 +1373,6 @@ public class EditarPlano extends AbstractPageBean
gridPagination.getChildren().add( group );
}
// private void setPagination()
// {
// StaticText st = null;
//
// Class[] argtypes = new Class[1];
// argtypes[0] = ActionEvent.class;
// MethodExpression me = (MethodExpression)this.getApplication().getExpressionFactory().createMethodExpression(
// getFacesContext().getELContext(), "#{EditarPlano.paginacao_actionListener}", null,argtypes);
//
// if(grpPagination.getChildCount() > 0)
// {
// grpPagination.getChildren().clear();
// }
//
// Pagination pagination = getSessionBean1().getPagination();
// Vector<Pagina> paginas = pagination.getPaginas();
// for(Pagina pagina : paginas)
// {
// if ( pagina.isPrevious() )
// {
// pagina.addActionListener( new MethodExpressionActionListener( me ) );
// grpPagination.getChildren().add( pagina );
// st = new StaticText();
// st.setEscape( false );
// st.setText( "&nbsp;" );
// grpPagination.getChildren().add( st );
// }
// else if ( pagina.isNext() )
// {
// st = new StaticText();
// st.setEscape( false );
// st.setText( "&nbsp;" );
// grpPagination.getChildren().add( st );
// pagina.addActionListener( new MethodExpressionActionListener( me ) );
// grpPagination.getChildren().add( pagina );
// }
// else
// {
// pagina.addActionListener( new MethodExpressionActionListener( me ) );
// grpPagination.getChildren().add( pagina );
// if ( pagina.getPage_nr().intValue() < pagination.totalPaginas() )
// {
// st = new StaticText();
// st.setEscape( false );
// st.setText( "&nbsp;|&nbsp;" );
// grpPagination.getChildren().add( st );
// }
//
// }
// }
// }
public String butGravarPlano_action()
{

Loading…
Cancel
Save