myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Robinson <andrew.rw.robin...@gmail.com>
Subject Re: [Trinidad] another tr:selectOneChoice + autoSubmit + PPR type question
Date Sat, 10 Oct 2009 13:41:14 GMT
Maybe it is due to a submitted value being set?

Try wrapping the selectOneChoice boxes in a tr:subform and see if that
makes a difference

On Fri, Oct 9, 2009 at 9:25 AM, japher <japher@hotmail.com> wrote:
>
> Hi,
>
> I have two selectOneChoice components, and I want to have the second one
> invisible until the user selects a value from the first. My code looks like:
>
> <tr:panelGroupLayout id="pgl2" partialTriggers="socPipeline">
>    <tr:panelFormLayout id="pfl1">
>        <tr:selectOneChoice id="socPipeline"
>                      value="#{bindings.PipelineCode.inputValue}"
>                      label="#{bindings.PipelineCode.label}"
>                      autoSubmit="true">
>            <f:selectItems value="#{bindings.PipelineCode.items}" id="si1"/>
>        </tr:selectOneChoice>
>        <tr:selectOneChoice id="socStatus"
>                      value="#{bindings.StatusCode.inputValue}"
>                      label="#{bindings.StatusCode.label}"
>                      rendered="#{bindings.PipelineCode.inputValue != null}"
>                      partialTriggers="socPipeline">
>            <f:selectItems value="#{bindings.StatusCode.items}" id="si2"/>
>        </tr:selectOneChoice>
>    </tr:panelFormLayout>
> </tr:panelGroupLayout>
>
> I know that you can't ordinarily use PPR along with the rendered attribute,
> which is why I have added the panelGroupLayout which also has a partial
> trigger set.
>
> For some reason, although the auto submit occurs, the value of
> #{bindings.PipelineCode.inputValue} never changes. It remains blank even
> when I select a value in the first select box, and so the second select box
> is never rendered. Does anyone know why the value is not being persisted
> into the model?
> --
> View this message in context: http://www.nabble.com/-Trinidad--another-tr%3AselectOneChoice-%2B-autoSubmit-%2B-PPR-type-question-tp25822917p25822917.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Mime
View raw message