Thank that was a good idea, but I'm afraid this does not work, too.
Still the same problem. The selectOneChoice does not "fire" the submit. ;-(
2007/9/17, Abhi <[EMAIL PROTECTED]>:
>
> Hi Martin,
>
> Try using this:
> <tr:panelGroupLayout partialTriggers="periods">
> <tr:statusIndicator />
> <tr:selectOneChoice id="periods" label="Period"
> autosubmit="true"
> value="#{myBean.selectedPeriod}">
> <f:selectItems value="#{myBean.availablePeriods}" />
> </tr:selectOneChoice>
>
> <tr:inputText id="from"
> value="#{myBean.from}">
> <f:convertDateTime />
> </tr:inputText>
>
> <tr:inputText id="to"
> value="#{myBean.to}"
> partialTriggers="zeitraum">
> <f:convertDateTime />
> </tr:inputText>
> </tr:panelGroupLayout>
>
> in the second input date what id for partialTrigger you are using, but
> that is not important just an FYI.
> ~Abhishek
>
> On 9/17/07, Martin Hinterndorfer <[EMAIL PROTECTED]> wrote:
> >
> > Hi everybody!
> >
> > I have a quite simple question:
> >
> > Imagine this requirement:
> > A drop-down-box to select different time-periods (last month, last
> > year,...)
> > Two date-input fields.
> > 1. "From"
> > 2. "To"
> >
> > If the user selects a certain period, the from/to fields should be
> > updated accordingly.
> >
> > Here is how I tried to realise this with trinidad:
> >
> > <tr:statusIndicator />
> > <tr:selectOneChoice id="periods" label="Period"
> > autosubmit="true"
> > value="#{myBean.selectedPeriod}">
> > <f:selectItems value="#{myBean.availablePeriods}" />
> > </tr:selectOneChoice>
> >
> > <tr:inputText id="from"
> > value="#{myBean.from}"
> > partialTriggers="periods">
> > <f:convertDateTime />
> > </tr:inputText>
> >
> > <tr:inputText id="to"
> > value="#{myBean.to}"
> > partialTriggers="zeitraum">
> > <f:convertDateTime />
> > </tr:inputText>
> >
> > I probably have to put some logic into the setters. Anyway..
> >
> > The problem is, that the selection of any value in the rendered
> > drop-down-box does not cause a ppr-submit. (As far as I can see from
> > debugging the setters/getters and statusIndicator.
> > Do I understand something wrong with the usage of partialTriggers and
> > autosubmit or is this "simply" a bug?
> >
> >
> > In hope for some enlightenment!
> > Sincerely
> >
> > Martin Hinterndorfer
> >
>
>