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
Hello
I already have this problem.
I do how is mike example
s:inputSuggestAjax id=pointOfConsumptionFilter
suggestedItemsMethod=#{
pagedDeliveryScheduleSort.findPointOfConsumptions }
value=#{
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/
Hello
I do this
s:inputSuggestAjax
id=orderNumbersFilter
suggestedItemsMethod=#{pagedDeliveryScheduleSort.findOrderNumbers}
value=#{ pagedDeliveryScheduleSort.suggestOrderNumber}
s:submitOnEvent for=submitLink event=change /
/s:inputSuggestAjax
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
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
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]:
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(
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
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}
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
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}
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
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
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} /
: 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
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=#{
: 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
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
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
I Do this
s:inputSuggestAjax onchange=submitForm();
id=orderNumbersFilter suggestedItemsMethod=#{
pagedDeliveryScheduleSort.findOrderNumbers}
value=#{
pagedDeliveryScheduleSort.suggestOrderNumber}
I would try this instead:
s:inputSuggestAjax
id=orderNumbersFilter
suggestedItemsMethod=#{pagedDeliveryScheduleSort.findOrderNumbers}
value=#{ pagedDeliveryScheduleSort.suggestOrderNumber}
s:submitOnEvent for=submitLink event=change /
/s:inputSuggestAjax
22 matches
Mail list logo