if(selectedCity == null)
selectedCity = new City();
something like this, would cause an error.
On 3/24/06, Anthony Hong <[EMAIL PROTECTED]> wrote:
Agree with you.
But how can I solve this problem? I tried to use t:saveState with my
backingbean country, but it shows null point exception.
On 3/24/06, Cagatay Civici < [EMAIL PROTECTED]> wrote:
> Hi Anthony,
>
> What is binded to the value of the city component? If you bind a new City to
> the component at somewhere, it will likely to give a validation error
> because the component looks for the selectitem collection and when it cannot
> find the value that you bind in this case "new city()", it will throw a
> validation error. This should be a cause.
>
> Regards,
>
> Cagatay,
>
>
> On 3/24/06, Anthony Hong <[EMAIL PROTECTED]> wrote:
> > I have two selectionOneMany in page, one for county and the other for
> city.
> > A valueChangeListener stick with country, after change city will be
> > fetch new value corspand with county.
> >
> > Everything is fine for displaying and change county. But if I update
> > this form after change a county, there is a error with city selection
> > box. "Value is not a valid option."
> >
> > what is the possible cause?
> >
> >
> > --
> >
> > Anthony Hong
> >
>
>
--
Anthony Hong