Onur,

Thanks.  Can you help me understand though or provide an example for how to
"use binding with f:view tag to your backing bean"?  

Thanks

-----Original Message-----
From: Onur Tokan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 01, 2006 2:24 AM
To: MyFaces Discussion
Subject: Re: Returning to same page within t:dataScroller?

Hi,

I don't know it's the best practice around, but

Use binding with f:view tag to your backing bean, write the Object
into your session and restore it from there

Regards,

Onur

On 2/1/06, Tom Butler <[EMAIL PROTECTED]> wrote:
>
>
> Definitely need some advice / direction here how to implement this
solution?
>
>
>
> Search.jsp (search page to search database and displays search results)
>
> -        displays form with inputText field to search database
>
> -        uses t:dataTable to display datamodel property from backing bean
> (populated with database results)
>
> -        uses t:dataScroller to scroll results & t:commandSortHeader to
sort
> column data
>
> -        uses t:daveState to save datamodel property of backing bean
> (backing bean in request scope)
>
> -        when user selects item from dataTable, uses t:commandLink to link
> to another page to show details for item selected
>
>
>
> DetailView.jsp (displays details for item selected in search.jsp page)
>
> -        at bottom of this page, I have a commandbutton with
action="search"
> - this maps back to search.jsp page in faces-config.xml
>
>
>
> Here's where I need help - how can I link back to the search.jsp to
display
> the same search results within the datatable, at the same location within
> the datascroller, and with the same sort?  When I press the commandbutton
in
> the DetailView.jsp it takes me back to the Search.jsp page with the
> inputText field (search keykwords) cleared and no datatable displayed
(same
> as when user first enters the page.)
>
>
>
> Thanks for any help with this.
>
> Tom
>
>
>
>
>
>
> ________________________________
>
>
> From: Tom Butler [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 31, 2006 11:23 PM
> To: 'MyFaces Discussion'
> Subject: Returning to same page within t:dataScroller?
>
>
>
>
> I have a page displaying database results using a t:dataTable and a
> t:dataScroller - when the user selects one of the records, they are taken
to
> a separate page to show the details.
>
>
>
> At the bottom of the details page, I want to place a button to link back
to
> the exact same position within the t:dataScroller on the previous page.
Any
> suggestions on how to accomplish this?
>
>
>
> Thanks
>
> Tom

Reply via email to