You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by mateen <ma...@gmail.com> on 2012/11/07 07:40:23 UTC

Tapestry Grid Page Number

Hi,

I am using a Grid that has a link that navigates away from the page, when i
return to the page i want to be able to set the page the user was on before.
How can i get the current pagination number, and then set it back to the
grid.

Kind Regards



--
View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Grid-Page-Number-tp5717738.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tapestry JPA + Stored Procedures

Posted by John <jo...@quivinco.com>.
I didn't see anything to inject so ended up doing the below code which seems clumsy (but works!)

JpaEntityManager jpaEntityManager = JpaHelper.getEntityManager(entityManager);

Session session = jpaEntityManager.getActiveSession();

  ----- Original Message ----- 
  From: Kristian Marinkovic 
  To: Tapestry users 
  Sent: Wednesday, November 07, 2012 8:23 PM
  Subject: Re: Tapestry JPA + Stored Procedures


  Hi,
  you can inject the session directly. please take a look at the
  documentation.

  G,
  Kris
  Am 07.11.2012 09:31 schrieb "John" <jo...@quivinco.com>:

  > I got the JPA(with eclipselink) to work and have been using
  > @NamedStoredProcedureQuery annotations in entities to obtain entity classes
  > successully from SQLServer. This technique doesn't seem to work well or fit
  > the situation where the stored proc just returns output parameters (no
  > entity class required). For this I think I need a Session to do a more
  > programatic solution to call the stored proc.
  >
  > Does Tapestry help obtain this object with an injection?
  >
  > John
  >

Re: Tapestry JPA + Stored Procedures

Posted by Kristian Marinkovic <kr...@gmail.com>.
Hi,
you can inject the session directly. please take a look at the
documentation.

G,
Kris
Am 07.11.2012 09:31 schrieb "John" <jo...@quivinco.com>:

> I got the JPA(with eclipselink) to work and have been using
> @NamedStoredProcedureQuery annotations in entities to obtain entity classes
> successully from SQLServer. This technique doesn't seem to work well or fit
> the situation where the stored proc just returns output parameters (no
> entity class required). For this I think I need a Session to do a more
> programatic solution to call the stored proc.
>
> Does Tapestry help obtain this object with an injection?
>
> John
>

Tapestry JPA + Stored Procedures

Posted by John <jo...@quivinco.com>.
I got the JPA(with eclipselink) to work and have been using @NamedStoredProcedureQuery annotations in entities to obtain entity classes successully from SQLServer. This technique doesn't seem to work well or fit the situation where the stored proc just returns output parameters (no entity class required). For this I think I need a Session to do a more programatic solution to call the stored proc.

Does Tapestry help obtain this object with an injection?

John

Re: Tapestry Grid Page Number

Posted by antalk <na...@vankalleveen.net>.
As far as i know the page number is stored in the Session :

@Persist
    private Integer currentPage;

So normally you should get back to the current page. Unless you do something
like resetting the grid (grid.reset() ) or feeding it hardcoded with a
pagenumber of  0 .



--
View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Grid-Page-Number-tp5717738p5717739.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org