Re: s:inputSuggestAjax problems with onchange

2007-04-01 Thread Edney Imme
Hello Mike I work with die latest latest MyFaces/Tomahawk/Sandbox version. thank 2007/3/30, Mike Kienenberger [EMAIL PROTECTED]: Edney, The only thing I can suggest is that you try it with the latest MyFaces/Tomahawk/Sandbox. This code works. I don't know if the t:dojoInitializer part

Re: s:inputSuggestAjax problems with onchange

2007-03-30 Thread Edney Imme
Hello I already have this problem. I do how is mike example s:inputSuggestAjax id=pointOfConsumptionFilter suggestedItemsMethod=#{ pagedDeliveryScheduleSort.findPointOfConsumptions } value=#{

Re: s:inputSuggestAjax problems with onchange

2007-03-30 Thread Mike Kienenberger
Edney, The only thing I can suggest is that you try it with the latest MyFaces/Tomahawk/Sandbox. This code works. I don't know if the t:dojoInitializer part matters -- I've never used it for other components. f:view h:form id=form t:dojoInitializer bindEncoding=utf-8/

Re: s:inputSuggestAjax problems with onchange

2007-03-29 Thread Edney Imme
Hello I do this s:inputSuggestAjax id=orderNumbersFilter suggestedItemsMethod=#{pagedDeliveryScheduleSort.findOrderNumbers} value=#{ pagedDeliveryScheduleSort.suggestOrderNumber} s:submitOnEvent for=submitLink event=change / /s:inputSuggestAjax

Re: s:inputSuggestAjax problems with onchange

2007-03-29 Thread Mike Kienenberger
That looks ok to me. Is change the right event to try to use with inputSuggestAjax? I know that I use change for selectOneMenus, and I use keypress for inputText. There's also blur to consider. Be aware that if there is a bug in inputSuggestAjax, using submitOnEvent won't fix it. I guess

Re: s:inputSuggestAjax problems with onchange

2007-03-29 Thread Mario Ivankovits
Hi! Be aware that if there is a bug in inputSuggestAjax, using submitOnEvent won't fix it. Jumping up to this discussion lately .. sorry for this .. too much work here. It might be that the submitOnEvent do not work with inputSuggestAjax. Do one have it running with it? As far as I remeber

Re: s:inputSuggestAjax problems with onchange

2007-03-29 Thread Edney Imme
Well this is not what i want heard now :) I need to, when the user change some value in a inputSuggestAjax component or in a s:inputSuggest komponenet , automatilly submit the form. In JSP and Struts this is very easy to do, and in JSF? thank. 2007/3/29, Mario Ivankovits [EMAIL PROTECTED]:

Re: s:inputSuggestAjax problems with onchange

2007-03-29 Thread Edney Imme
Hello Why this error message? javax.servlet.ServletException: Error calling action method of component with id content_view:filterForm:submitLink at javax.faces.webapp.FacesServlet.service(FacesServlet.java:154) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(

Re: s:inputSuggestAjax problems with onchange

2007-03-29 Thread Mike Kienenberger
What's the method signature of #{pagedDeliveryScheduleSort.getSchedules} It needs to be public String getSchedules() { // execute your action here // return OutcomeString; } On 3/29/07, Edney Imme [EMAIL PROTECTED] wrote: Hello Why this error message? javax.servlet.ServletException: Error

Re: s:inputSuggestAjax problems with onchange

2007-03-29 Thread Mike Kienenberger
Hey Mario, I don't think this is the issue. I downloaded the latest snapshot and modified the example: s:inputSuggestAjax id=inputSuggestAjax suggestedItemsMethod=#{inputSuggestAjax.getItems} value=#{inputSuggestAjax.suggestValue}

Re: s:inputSuggestAjax problems with onchange

2007-03-29 Thread Mario Ivankovits
Hi Mike! I don't think this is the issue. snip Yep. This code works as I'd expect it to work: snap Great, thanks for the test!! :-) Ciao, Mario

s:inputSuggestAjax problems with onchange

2007-03-28 Thread Edney Imme
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}

Re: s:inputSuggestAjax problems with onchange

2007-03-28 Thread Mike Kienenberger
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

Re: s:inputSuggestAjax problems with onchange

2007-03-28 Thread Edney Imme
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

Re: s:inputSuggestAjax problems with onchange

2007-03-28 Thread Mike Kienenberger
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} /

RE: s:inputSuggestAjax problems with onchange

2007-03-28 Thread Jerome Iffrig \(Europe\)
: s:inputSuggestAjax problems with onchange 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

Re: s:inputSuggestAjax problems with onchange

2007-03-28 Thread Edney Imme
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=#{

Re: s:inputSuggestAjax problems with onchange

2007-03-28 Thread Edney Imme
: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: mercredi 28 mars 2007 19:16 To: MyFaces Discussion Subject: Re: s:inputSuggestAjax problems with onchange 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

Re: s:inputSuggestAjax problems with onchange

2007-03-28 Thread Mike Kienenberger
There's no reason why you can't add a command button. If you don't want it to be visible, set it to style=display:none. If you call submitForm() directly, you might miss other JSF-specific javascript that needs to be executed on submit. For example, you cannot use subForms if you use

Re: s:inputSuggestAjax problems with onchange

2007-03-28 Thread Edney Imme
Do you have a example 2007/3/28, Mike Kienenberger [EMAIL PROTECTED]: There's no reason why you can't add a command button. If you don't want it to be visible, set it to style=display:none. If you call submitForm() directly, you might miss other JSF-specific javascript that needs to be

Re: s:inputSuggestAjax problems with onchange

2007-03-28 Thread Edney Imme
I Do this s:inputSuggestAjax onchange=submitForm(); id=orderNumbersFilter suggestedItemsMethod=#{ pagedDeliveryScheduleSort.findOrderNumbers} value=#{ pagedDeliveryScheduleSort.suggestOrderNumber}

Re: s:inputSuggestAjax problems with onchange

2007-03-28 Thread Mike Kienenberger
I would try this instead: s:inputSuggestAjax id=orderNumbersFilter suggestedItemsMethod=#{pagedDeliveryScheduleSort.findOrderNumbers} value=#{ pagedDeliveryScheduleSort.suggestOrderNumber} s:submitOnEvent for=submitLink event=change / /s:inputSuggestAjax