Hi Abhi!
I'm just stupid. Thank you for your info. At first I wanted to post back,
that this still does not work. Until I found the main reason:
I wrote "autosubmit" and not "autoSubmit" :-)
thanx
2007/9/17, Abhi <[EMAIL PROTECTED]>:
>
> The reason is you have to write some action event on the selectOneChoice.
> Add valueChangeListener in your selectOneChoice it will start working. Sorry
> i didn't noticed this earlier.
>
> ~Abhishek
>
> On 9/17/07, Martin Hinterndorfer <[EMAIL PROTECTED]> wrote:
> >
> > 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
> > > >
> > >
> > >
> >
>