« Return to Thread: Help dynamic selects

Re: Help dynamic selects

by Alejandro Scandroli-2 :: Rate this Message:

Reply to Author | View in Thread

Hi Juan

There is some inconsistencies in your mappings.
But I tried to fix them to send you a working example and I found out
that I can't make the PossibleValues annotation work outside the
Simple example. So maybe there is something wrong or some
configuration missing. I will try again tonight, and let you know.

Saludos.
Alejandro.

PD:- I'm from Argentina too :)


On Sun, Jul 5, 2009 at 7:20 PM, Juancevi<juancesarvillalba@...> wrote:

>
> Hello, my name is John I am from Argentina, I am newbie at trails, I have
> nested combos mark the link
> http://www.nabble.com/Enum-in-search-tt18317768.html#a18319874
> but I can not be that I'm doing wrong.
>
>
> Region---
>
>  @OneToMany(mappedBy = "region", cascade = CascadeType.ALL)
>  @JoinColumn(name = "region_id")
>  @Collection(child = false , allowRemove=false)
>  public List<Pais> getPaises() {
>    return paises;
>  }
>
>
> Pais---
>
>  @OneToMany(mappedBy = "pais", cascade = CascadeType.ALL)
>  @JoinColumn(name = "pais_id")
>  @Collection(child = true)
>  public List<Provincia> getProvincias() {
>    return provincias;
>  }
>
>
> Provincia---
>
>  @ManyToOne
>  @Transient
>  @InitialValue("pais.region")
>  public Region getRegion() {
>    return region;
>  }
>
>
>  @ManyToOne
>  @PossibleValues("region.paises")
>  public Pais getPais() {
>    return pais;
>  }
>
>
> I want when choosing a region, only to drain the countries of that region,
> but this I do not works.
>
> Any help thank you very much!
> --
> View this message in context: http://www.nabble.com/Help-dynamic-selects-tp24345072p24345072.html
> Sent from the Trails - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: Help dynamic selects