tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Néstor Boscán <nestor.bos...@tcs.com.ve>
Subject RE: DataGrid - How to set the page?
Date Fri, 11 Feb 2005 13:38:42 GMT
Hi Joselito

Basically yes you have to set the parameters. The class
DataGridParameters.getDataGridPageIndex method will return the page index
for your datagrid and the DataGridParameters.getDataGridOrderIndex will
return the order index. So if you have a form you will have to do something
like this:

<% request.setAttribute ("pageIndex",
DataGridParameters.getDataGridPageIndex  (request, "datagrid1"));
   request.setAttribute ("orderIndex",
DataGridParameters.getDataGridOrderIndex (request, "datagrid1")); %>

<input name="p_datagrid_datagrid1_page_index"  type="hidden" value="<c:out
value="${pageIndex}"/>"/>
<input name="p_datagrid_datagrid1_order_index" type="hidden" value="<c:out
value="${orderIndex}"/>"/>

Regards,

Néstor Boscán

-----Mensaje original-----
De: Joselito Viana Soares [mailto:jsoares@synchro.com.br] 
Enviado el: Viernes, 11 de Febrero de 2005 08:42 a.m.
Para: nestor.boscan@tcs.com.ve
Asunto: ENC: DataGrid - How to set the page?

Hi, Nestor

Excuse me to send to you this email, but I still didn't receive reply of the
my question. The TagLibs mailing list is with problem.

One more time, congratulations by the development. How is the status of the
project? Are there new features? We are testing the DataGrid in our
application and we are liking a lot.

Regards,

Joselito Soares


-----Mensagem original-----
De: Joselito Viana Soares [mailto:jsoares@synchro.com.br] Enviada em:
quarta-feira, 26 de janeiro de 2005 17:03
Para: 'Tag Libraries Users List'
Assunto: DataGrid - How to set the page?


Hi,

Congratulations by the development. We are testing the datagrid in our
application and we are obtaining good results.
At the moment we have the following problem: We create datagrid with a
column to select the row. When we click a button of our page (for example:
update), we desire that the action is executed and that in the end it
returns to datagrid in the same page where was. Do we need to set the
parameter p_datagrid_datagrid1_page_index? Are there another way?

Regards,

Joselito Soares



---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message