If you reload the page when selecting the element, instead of using AJAX, I
guess the same will work because you have a selected article... I think AJAX
is just a detail here, maybe you can use

protected boolean wantOnSelectionChangedNotifications()
    {
        return false;
    }

on DropDownChoice?

Best,

Ernesto

On Wed, Nov 11, 2009 at 3:45 PM, srm <s...@schokokeks.org> wrote:

>
> Am 11.11.2009 um 15:25 schrieb Ernesto Reinaldo Barreiro:
>
> > I have used something similar to
> [snip]
> [snap]
> >
> > for such situations... I delegate creation to a factory class (so that
> new
> > products can be plugged in).
> >
> > Best,
> >
> > Ernesto
> >
>
>
> Thank you for this example.
> But I'm bound to not use Ajax/JavaScript...and now I'm stuck.
>
> Regards,
> Stephan
>
>
>
> > On Wed, Nov 11, 2009 at 2:53 PM, srm <s...@schokokeks.org> wrote:
> >
> >> How would you approach the following:
> >> PageA is used to insert an article. At first, the user chooses what kind
> of
> >> article to insert (DropDownChoice).
> >> When the User made his choice, a coresponding form should be
> loaded/visible
> >> underneath the
> >> DropDownChoice. That's all to be solved without JavaScript.
> >> My current idea is currently to add an Panel (AddArticlePanel) which
> holds
> >> all fields for any kind of article
> >> and make them visible depending on what the user has chosen (using
> >> onSelectionChanged).
> >> But that seems like a brute approach so I wanted to get your opinions on
> >> this.
> >>
> >> Further information will be happily provided.
> >>
> >> Regards,
> >> Stephan
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to