解码方法不调用

发布于 2024-09-17 01:05:22 字数 1550 浏览 14 评论 0原文

我的 组件有问题。它的事件监听器不会被解雇。我尝试进行调试,发现当我单击事件或日期或移动事件时,不会调用组件的解码方法。为什么没有调用解码?什么负责调用它?我应该怎么做才能解决这个问题?


更新:我更进一步:发出了Ajax请求,但似乎没有被服务器处理。我已经通过 TamperData firefox 插件尝试过,这是请求:

Host=localhost:7001
User-Agent=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 AskTbUT2V5/3.8.0.12304 Firefox/3.6.8
Accept=application/xml, text/xml, */*
Accept-Language=en-us,en;q=0.5
Accept-Encoding=gzip,deflate
Accept-Charset=ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive=115
Connection=keep-alive
Content-Type=application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With=XMLHttpRequest
Referer=http://localhost:7001/CalendarConsole/Calendar.jsf
Content-Length=377
Cookie=JSESSIONID=hT2KM8YT2dLzCWy2FnnvN2hw9Ln1Q0zpf58wmJyTVQYgLWt9Dkw2!1127089955; ADMINCONSOLESESSION=r5XKM8STYlW2dRv2F1yWRsSXFXbGyTFTnhKT5W8drg45102CXx1D!1127089955
Pragma=no-cache
Cache-Control=no-cache
POSTDATA=j_id_id2%3Atitle=&j_id_id2%3Afrom=&j_id_id2%3Ato=&j_id_id2%3AallDay=true&autoScroll=&j_id_id2_SUBMIT=1&javax.faces.ViewState=8EgC7hvJoXWgMHaUZxk5rx66APlnNueyP32ajDxbvc%2Fi5akMf2jX5cVdAfmlUISJ504ZgdgVVdSjU3LichhOlEKC8bYGoFkT&primefacesPartialRequest=true&j_id_id2:j_id_id4=j_id_id2:j_id_id4&primefacesPartialProcess=j_id_id2:j_id_id4&j_id_id2:j_id_id4_selectedDate=1283887800000

这是响应

Status=OK - 200
Date=Tue, 31 Aug 2010 10:40:33 GMT
Content-Length=374
Content-Type=text/xml
X-Powered-By=Servlet/2.5 JSP/2.1

这有什么帮助吗?

I have a problem with <p:schedule> component. Its event listeners does not get fired. I have tried to debug and I saw that the component's decode method is not called when I click on an event or day or when I am moving an event. Why is the decode not called? what is responsible for calling it? What should I do to fix this problem?


Update: I am a step further: the Ajax request is made but it seems that it is not processed by the server. I have tried this by TamperData firefox plugin this is the request:


Host=localhost:7001
User-Agent=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 AskTbUT2V5/3.8.0.12304 Firefox/3.6.8
Accept=application/xml, text/xml, */*
Accept-Language=en-us,en;q=0.5
Accept-Encoding=gzip,deflate
Accept-Charset=ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive=115
Connection=keep-alive
Content-Type=application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With=XMLHttpRequest
Referer=http://localhost:7001/CalendarConsole/Calendar.jsf
Content-Length=377
Cookie=JSESSIONID=hT2KM8YT2dLzCWy2FnnvN2hw9Ln1Q0zpf58wmJyTVQYgLWt9Dkw2!1127089955; ADMINCONSOLESESSION=r5XKM8STYlW2dRv2F1yWRsSXFXbGyTFTnhKT5W8drg45102CXx1D!1127089955
Pragma=no-cache
Cache-Control=no-cache
POSTDATA=j_id_id2%3Atitle=&j_id_id2%3Afrom=&j_id_id2%3Ato=&j_id_id2%3AallDay=true&autoScroll=&j_id_id2_SUBMIT=1&javax.faces.ViewState=8EgC7hvJoXWgMHaUZxk5rx66APlnNueyP32ajDxbvc%2Fi5akMf2jX5cVdAfmlUISJ504ZgdgVVdSjU3LichhOlEKC8bYGoFkT&primefacesPartialRequest=true&j_id_id2:j_id_id4=j_id_id2:j_id_id4&primefacesPartialProcess=j_id_id2:j_id_id4&j_id_id2:j_id_id4_selectedDate=1283887800000

and this is the response

Status=OK - 200
Date=Tue, 31 Aug 2010 10:40:33 GMT
Content-Length=374
Content-Type=text/xml
X-Powered-By=Servlet/2.5 JSP/2.1

Is this of any help?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你爱我像她 2024-09-24 01:05:22

最后使用 PrimeFaces 1.1 和 myfaces 1.2.9 成功了!

Finally it worked by using PrimeFaces 1.1 and myfaces 1.2.9!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文