Sorry the code should be:
    #foreach ($region in $page.RegionInstances)
    <p>
        $form.labelfor($region.RegionHolder.Code,
$region.RegionHolder.Code)
        $form.select("page.RegionInstances[].Content",
$region.RegionHolder.Contents, "%{value='id', text='title'}") <====
this is the line having problem
    </p>
    #end

On Sep 18, 11:19 am, goodwill <[EMAIL PROTECTED]> wrote:
> I have a model like this:
>
> page HasMany RegionInstances (stored in ISet<RegionInstance>)
>
> when I try to do this, it raise error: could not convert index
> [page.RegionInstances[]) to int32
>
>     #foreach ($region in $page.RegionInstances)
>     <p>
>         $form.labelfor($region.RegionHolder.Code,
> $region.RegionHolder.Code)
>         $form.select("page.RegionInstances[]",
> $region.RegionHolder.Contents, "%{value='id', text='title'}") <====
> this is the line having problem
>     </p>
>     #end
>
> I think its because ISet does not have any index, but how could I deal
> with this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to