Ok

but i dont have a commandbutton,

I want do a refresh when some data is changed.

I do this

              <s:inputSuggestAjax id="pointOfConsumptionFilter"
suggestedItemsMethod="#{pagedDeliveryScheduleSort.findPointOfConsumptions}"
                                                   value="#{
inputSuggest.suggestPointOfConsumption}" onchange="submitForm" >
                       <s:submitOnEvent
                           for="pointOfConsumptionFilter"
                           event="blur"
                           callback="submitForm()"></s:submitOnEvent>
                   </s:inputSuggestAjax>

but don“t work.


2007/3/28, Mike Kienenberger <[EMAIL PROTECTED]>:

This is how I typically use it for pulldown menus.

                        <sandbox:subForm id="chooseValueForm">
                                <h:selectOneMenu id="valueInput" value="#{
page.selectedValue}">
                                        <f:selectItems value="#{
page.possibleValueList}" />
                                        <sandbox:submitOnEvent
for="executeChoseValue" />
                                </h:selectOneMenu>
                                <h:commandButton id="executeChoseValue"
value="Go!" />
                        </sandbox:subForm>



On 3/28/07, Edney Imme <[EMAIL PROTECTED]> wrote:
> can you please send a example to how work with <s:submitOnEvent>
>
>
>
> 2007/3/28, Mike Kienenberger <[EMAIL PROTECTED]>:
> > There's probably a lot of possible reasons why this might happen.
> > For instance, the component might be in an s:subForm.
> >
> > The easiest way to handle this is to use the <s:submitOnEvent>
> > component so that the javascript is generated for you automatically.
> >
> > Otherwise, try looking at the generated html page code.
> >
> > On 3/28/07, Edney Imme <[EMAIL PROTECTED]> wrote:
> > > Hi
> > >
> > > I use s:inputSuggestAjax in my program. And in the onchange
attribute I
> call
> > > a javascript function
> > >
> > >      <s:inputSuggestAjax onchange="submitForm();"
> id="orderNumbersFilter"
> > > suggestedItemsMethod="#{
> > > pagedDeliveryScheduleSort.findOrderNumbers }"
> > >
> > > value="#{pagedDeliveryScheduleSort.suggestOrderNumber}"
> />
> > >
> > >     When I test it, the javascript function is not called when i
change
> the
> > > value.
> > >
> > > can anyone help me?
> > >
> > > thanks
> > >
> > > Best Regards
> > > Edney
> > >
> > >
> > >
> > > --
> > > Att.
> > > Edney Marcel Imme
> >
>
>
>
> --
> Att.
> Edney Marcel Imme




--
Att.
Edney Marcel Imme

Reply via email to