Help with Repeater containing form components with NavigationToolbar

View: New views
3 Messages — Rating Filter:   Alert me  

Help with Repeater containing form components with NavigationToolbar

by Richard Nichols-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I've spent several hours trying to figure this out and to try to understand
how repeaters work with form processing, but some help would be appreciated!
:)

I have a page with a list of questions & answers. The questions are read
from a database and are displayed in a DefaultDataTable repeater, with one
question per row.

I had wanted to display the questions over a number of pages and allow the
user to use the NavigationToolbar to navigate through the list of questions.


However whenever I click the page links, the entered data on the current
page is lost and reverts to the original model values. But if the form is
submitted then the data on that page is retained.

Is it possible to make the NavigationToolbar bind the new values of the form
inputs for the page(s) when navigating between pages? Is this sort of
behaviour allowed?

thanks in advance,
Richard.

--
Richard Nichols :: http://www.visural.com/ :: http://www.richardnichols.net/

Re: Help with Repeater containing form components with NavigationToolbar

by igor.vaynberg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

some rough pseudo code

new navigationtoolbar() {
   new pagingnavigator() {
         return new pagingnavigator() {
             new pagingnavigationlink() { return new submitlink(); }
             new pagingnavigationincrementlink() { return new submitlink(); }}}

-igor


On Sun, Nov 1, 2009 at 6:09 PM, Richard Nichols <rn@...> wrote:

> Hi,
>
> I've spent several hours trying to figure this out and to try to understand
> how repeaters work with form processing, but some help would be appreciated!
> :)
>
> I have a page with a list of questions & answers. The questions are read
> from a database and are displayed in a DefaultDataTable repeater, with one
> question per row.
>
> I had wanted to display the questions over a number of pages and allow the
> user to use the NavigationToolbar to navigate through the list of questions.
>
>
> However whenever I click the page links, the entered data on the current
> page is lost and reverts to the original model values. But if the form is
> submitted then the data on that page is retained.
>
> Is it possible to make the NavigationToolbar bind the new values of the form
> inputs for the page(s) when navigating between pages? Is this sort of
> behaviour allowed?
>
> thanks in advance,
> Richard.
>
> --
> Richard Nichols :: http://www.visural.com/ :: http://www.richardnichols.net/
>

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


Re: Help with Repeater containing form components with NavigationToolbar

by Richard Nichols-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Makes sense, thank you!

2009/11/2 Igor Vaynberg <igor.vaynberg@...>

> some rough pseudo code
>
> new navigationtoolbar() {
>   new pagingnavigator() {
>         return new pagingnavigator() {
>             new pagingnavigationlink() { return new submitlink(); }
>             new pagingnavigationincrementlink() { return new submitlink();
> }}}
>
> -igor
>
>
> On Sun, Nov 1, 2009 at 6:09 PM, Richard Nichols <rn@...> wrote:
> > Hi,
> >
> > I've spent several hours trying to figure this out and to try to
> understand
> > how repeaters work with form processing, but some help would be
> appreciated!
> > :)
> >
> > I have a page with a list of questions & answers. The questions are read
> > from a database and are displayed in a DefaultDataTable repeater, with
> one
> > question per row.
> >
> > I had wanted to display the questions over a number of pages and allow
> the
> > user to use the NavigationToolbar to navigate through the list of
> questions.
> >
> >
> > However whenever I click the page links, the entered data on the current
> > page is lost and reverts to the original model values. But if the form is
> > submitted then the data on that page is retained.
> >
> > Is it possible to make the NavigationToolbar bind the new values of the
> form
> > inputs for the page(s) when navigating between pages? Is this sort of
> > behaviour allowed?
> >
> > thanks in advance,
> > Richard.
> >
> > --
> > Richard Nichols :: http://www.visural.com/ ::
> http://www.richardnichols.net/
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>


--
Richard Nichols :: http://www.visural.com/ :: http://www.richardnichols.net/