Article View: pl.comp.lang.java
Article #153772Używa ktoś primefaces?
From: Jadalbert
Date: Thu, 28 Feb 2013 14:02
Date: Thu, 28 Feb 2013 14:02
62 lines
2442 bytes
2442 bytes
Raptem przestało działać <p:ajax...
Po prostu przestało i już. To znaczy nie odświerza
tego co ma odświerzać.
Zrobiłem "podręcznikowy" test na boku, czyli:
(przykład (wcześniej działający) pochodzi z:
http://primefaces.googlecode.com/files/primefaces_users_guide_3_5.pdf
str. 20 (zresztą przykład przed i po też nie działają)
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui">
<h:head>
<title>Facelet Title</title>
</h:head>
<h:body>
Hello from Facelets
<br />
<h:link outcome="welcomePrimefaces"
value="Primefaces welcome page" />
<h:inputText id="sp">
<p:ajax update="label"
listener="#{testBean.increment}"/>
</h:inputText>
<h:outputText id="label"
value="#{testBean.liczba}"/>
</h:body>
</html>
i w kodzie:
package test;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
@ManagedBean
@RequestScoped
public class TestBean {
private int liczba;
public void increment() {
liczba++;
}
public int getLiczba() {
return liczba;
}
public void setLiczba(int liczba) {
this.liczba = liczba;
}
}
KOMPLETNIE NIE DZIAŁA!?
Używam NetBeansa 7.2 i promefaces-3.5
Technical Details
Message-ID:
<512f636c$0$1311$65785112@news.neostrada.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail Date: Thu, 28 Feb 2013 15:02:20 +0100 From: Jadalbert <maxorin@poczta.onet.pl> Reply-To: maxorin@poczta.onet.pl User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 Newsgroups: pl.comp.lang.java Subject: Używa ktoś primefaces? Lines: 63 Message-ID: <512f636c$0$1311$65785112@news.neostrada.pl> Organization: Telekomunikacja Polska NNTP-Posting-Host: 217.96.16.46 X-Trace: 1362060140 unt-rea-a-02.news.neostrada.pl 1311 217.96.16.46:56693 X-Complaints-To: abuse@news.neostrada.pl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit