|
|
|
|
@ -1374,58 +1374,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( " " );
|
|
|
|
|
// grpPagination.getChildren().add( st );
|
|
|
|
|
// }
|
|
|
|
|
// else if ( pagina.isNext() )
|
|
|
|
|
// {
|
|
|
|
|
// st = new StaticText();
|
|
|
|
|
// st.setEscape( false );
|
|
|
|
|
// st.setText( " " );
|
|
|
|
|
// 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( " | " );
|
|
|
|
|
// grpPagination.getChildren().add( st );
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
public String butGravarPlano_action()
|
|
|
|
|
{
|
|
|
|
|
String page = null;
|
|
|
|
|
|