Re: Radio group selection not being saved if page submit fails due to validation errors...

2009-06-11 Thread Jen Van Orman
Igor,

Thank you; this makes sense now, it was a matter of getting straightened out
on the real problem (the list view) instead of focusing on the radio group
as the problem.

I appreciate your help very much!

Jen

P.S.  And it always helps to look at the most recent version of the javadoc
;)

On Thu, Jun 11, 2009 at 2:06 PM, Igor Vaynberg wrote:

> the problem is not the radiogroup, it is the listview. listview has a
> section in its javadoc that talks about this - have a look there first
> and feel free to come back here with any further questions.
>
> -igor
>
> On Thu, Jun 11, 2009 at 12:47 PM, Jen Van Orman
> wrote:
> > Thank you!  setReuseItems(true) was the ticket!
> >
> > Can you please explain the wicket concept behind this feature?  It seems
> > that most other input types automatically retain information if the page
> is
> > rerendered; How is the radio button different?  Just trying to understand
> > for future reference!
> >
> > Thanks,
> >
> > Jen
> >
> > On Thu, Jun 11, 2009 at 12:49 PM, Jen Van Orman 
> wrote:
> >
> >> Radios are in a listview, and I will try setreuseitems(true).
> >>
> >> Thank you!
> >>
> >> Jen
> >>
> >>   On Thu, Jun 11, 2009 at 12:47 PM, Igor Vaynberg <
> igor.vaynb...@gmail.com
> >> > wrote:
> >>
> >>> are radios in a listview? did you call setreuseitems(true)?
> >>>
> >>> -igor
> >>>
> >>> On Thu, Jun 11, 2009 at 11:42 AM, Jen Van Orman
> >>> wrote:
> >>> > Hello everyone,
> >>> >
> >>> > I have a radio group and if the form validation fails on submit, the
> >>> > selection is lost.  When the page re-renders, the bound value is
> "null".
> >>> >
> >>> > How can I insure that the selected value is retained if form
> validation
> >>> > fails?
> >>> >
> >>> > Thanks much for your help,
> >>> >
> >>> > Jen Van Orman
> >>> >
> >>> > --
> >>> > Quis custodiet ipsos custodes?
> >>> >
> >>>
> >>> -
> >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >>> For additional commands, e-mail: users-h...@wicket.apache.org
> >>>
> >>>
> >>
> >>
> >> --
> >> Quis custodiet ipsos custodes?
> >>
> >>
> >
> >
> > --
> > Quis custodiet ipsos custodes?
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Quis custodiet ipsos custodes?


Re: Radio group selection not being saved if page submit fails due to validation errors...

2009-06-11 Thread Jen Van Orman
Thank you!  setReuseItems(true) was the ticket!

Can you please explain the wicket concept behind this feature?  It seems
that most other input types automatically retain information if the page is
rerendered; How is the radio button different?  Just trying to understand
for future reference!

Thanks,

Jen

On Thu, Jun 11, 2009 at 12:49 PM, Jen Van Orman  wrote:

> Radios are in a listview, and I will try setreuseitems(true).
>
> Thank you!
>
> Jen
>
>   On Thu, Jun 11, 2009 at 12:47 PM, Igor Vaynberg  > wrote:
>
>> are radios in a listview? did you call setreuseitems(true)?
>>
>> -igor
>>
>> On Thu, Jun 11, 2009 at 11:42 AM, Jen Van Orman
>> wrote:
>> > Hello everyone,
>> >
>> > I have a radio group and if the form validation fails on submit, the
>> > selection is lost.  When the page re-renders, the bound value is "null".
>> >
>> > How can I insure that the selected value is retained if form validation
>> > fails?
>> >
>> > Thanks much for your help,
>> >
>> > Jen Van Orman
>> >
>> > --
>> > Quis custodiet ipsos custodes?
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
> --
> Quis custodiet ipsos custodes?
>
>


-- 
Quis custodiet ipsos custodes?


Re: Radio group selection not being saved if page submit fails due to validation errors...

2009-06-11 Thread Jen Van Orman
Radios are in a listview, and I will try setreuseitems(true).

Thank you!

Jen

On Thu, Jun 11, 2009 at 12:47 PM, Igor Vaynberg wrote:

> are radios in a listview? did you call setreuseitems(true)?
>
> -igor
>
> On Thu, Jun 11, 2009 at 11:42 AM, Jen Van Orman
> wrote:
> > Hello everyone,
> >
> > I have a radio group and if the form validation fails on submit, the
> > selection is lost.  When the page re-renders, the bound value is "null".
> >
> > How can I insure that the selected value is retained if form validation
> > fails?
> >
> > Thanks much for your help,
> >
> > Jen Van Orman
> >
> > --
> > Quis custodiet ipsos custodes?
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Quis custodiet ipsos custodes?


Radio group selection not being saved if page submit fails due to validation errors...

2009-06-11 Thread Jen Van Orman
Hello everyone,

I have a radio group and if the form validation fails on submit, the
selection is lost.  When the page re-renders, the bound value is "null".

How can I insure that the selected value is retained if form validation
fails?

Thanks much for your help,

Jen Van Orman

-- 
Quis custodiet ipsos custodes?


How can override calendar formatting at initialization using DatePicker? getAdditionalJavascript not always working...

2009-02-17 Thread Jen Van Orman
I am overriding the DatePicker class in order to limit the calendar to 3
months, and I also want to disable the 1st through 4th of each month.

My override of getAdditionalJavascript does the following adds a renderer to
these dates as an OutOfBoundsDate:
*

for*( *int* i = minCal.get(Calendar.*MONTH*); i <= maxCal.get(Calendar.*
MONTH*); i++){

javascript += "${calendar}.addRenderer(\"" + (i + 1) + "/1\",
${calendar}.renderOutOfBoundsDate);";

javascript += "${calendar}.addRenderer(\"" + (i + 1) + "/2\",
${calendar}.renderOutOfBoundsDate);";

javascript += "${calendar}.addRenderer(\"" + (i + 1) + "/3\",
${calendar}.renderOutOfBoundsDate);";

javascript += "${calendar}.addRenderer(\"" + (i + 1) + "/4\",
${calendar}.renderOutOfBoundsDate);";

...

However, the renderer doesn't work when the calendar is initially shown.
For example, if the pageDate of the calendar is set to 03/2009, the 1st
through the 4th will be enabled, but the 1st through the 4th of April and
May will be disabled, as expected.  When navigating back to March, the 1st
through the 4th are then disabled.  Also, closing the calendar and reopening
it disables the 1st through the 4th.

With appendToInit being deprecated, how can these renderers be added to the
initialization of the calendar?

Any help is greatly appreciate.

Thanks,

Jen Van Orman






-- 
Quis custodiet ipsos custodes?