The initial detail URL looks like: http://localhost/cpanel/users/details/15
The URL of clicking on a different page of the grid looks like http://localhost/cpanel/users/details.grid_0.pager/5?t:ac=0 > -----Original Message----- > From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 27, 2007 4:05 PM > To: Tapestry users > Subject: Re: [T5] Navigation Issue > > Interesting; that's a specific case the the activate/passivate stuff is > supposed to address. > > What's the URL for page navigation or sorting look like? > > On 9/27/07, Jean-Philippe Steinmetz <[EMAIL PROTECTED]> wrote: > > > > I'm having a weird navigation issue I'm not sure how to solve. > > > > > > > > I have what is basically a product details page that looks pretty close > to > > the example > > > > > > > > @Inject > > private ProductDAO _dao; > > > > private Product _product; > > > > private long _productId; > > > > public void setProductId(long productId) { _productId = productId; } > > > > void onActivate(long productId) > > { > > _productId = productId; > > > > _product = _dao.getById(_productId); > > } > > > > long onPassivate() { return _productId; } > > > > > > > > In my product detail page I also include a grid of information that is > > pulled from an additional source. For instance, if my detail page is > > displaying information about a music album it would look like this. > > > > > > > > Album: Name > > Artist: Artist Name > > > > Date Published: Date > > > > > > > > Track Listing: > > > > > > > > [Grid of tracks] > > > > > > > > The problem I am having is that every time the grid has multiple pages > > worth > > of data and I click on the other pages to view, it somehow loses the > > productId context and displays a NullPointerException. How can I make > sure > > that the productId context is maintained? I have attempted to put a > > @Persist > > annotation on the variable but it didn't seem to make a difference. Any > > help > > on this would be great! Thanks. > > > > > > > > Jean-Philippe Steinmetz > > > > > > > -- > Howard M. Lewis Ship > Partner and Senior Architect at Feature50 > > Creator Apache Tapestry and Apache HiveMind --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]