🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.java
Article #152270

Re: JSP przestało raptem działać

#152270
From: MaxZorin
Date: Mon, 18 Apr 2011 12:36
30 lines
2161 bytes
W dniu 2011-04-18 13:43, Tomek Łabuz pisze:
>
> proponowałbym dodać na formularzu pole<h:message for="id"/>
> i zobaczyć czy przypadkiem nie masz błędu konwersji lub walidacji (nie
> podałeś całego formularza, więc nie wiem czy masz tam coś do
> wyświetlania takich problemów)

Nie mam żadnego błędu :(. A właściwie to w obrębie 
formularza działa to jak należy. Id oznacza 
średnicę, więc jak dam np. -100 to mam komunikat, 
że jest to wartość błędna. Nadal jednak wartość z 
formularza nijak ma się do wartości w klasie liczącej.
Na formularzu danych dodałem
<h:outputText value="#{geo.id}"/>
I POKAZUJE NIE PRZELICZONE WARTOŚCI!
Tymczasem walidator uwzględnia zmianę w
<h:inputText value="#{geo.id}"/>

całość wygląda tak:
<h:inputText
    id="id"
    value="#{geo.id}"
    size="7"
    required="true">
	   <f:validateDoubleRange minimum="0.01" 
maximum="5000.0"/>
             <f:convertNumber maxFractionDigits="2"/>
</h:inputText>

<h:message for="id"/>
Technical Details
Message-ID: <4dac2eac$0$2440$65785112@news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!nf1.ipartners.pl!ipartners.pl!news.nask.pl!news.nask.org.pl!newsfeed2.atman.pl!newsfeed.atman.pl!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
References: <4dabf811$0$2436$65785112@news.neostrada.pl> <ioh364$2jr$1@news.onet.pl> <4dac18f1$0$2460$65785112@news.neostrada.pl> <ioh85h$ndc$1@news.onet.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!nf1.ipartners.pl!ipartners.pl!news.nask.pl!news.nask.org.pl!newsfeed2.atman.pl!newsfeed.atman.pl!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
Date: Mon, 18 Apr 2011 14:36:34 +0200
From: MaxZorin <maxorin@poczta.onet.pl>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9
MIME-Version: 1.0
Newsgroups: pl.comp.lang.java
Subject: Re: JSP przestało raptem
 działać
References: <4dabf811$0$2436$65785112@news.neostrada.pl> <ioh364$2jr$1@news.onet.pl> <4dac18f1$0$2460$65785112@news.neostrada.pl> <ioh85h$ndc$1@news.onet.pl>
In-Reply-To: <ioh85h$ndc$1@news.onet.pl>
Lines: 30
Message-ID: <4dac2eac$0$2440$65785112@news.neostrada.pl>
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 217.96.16.46
X-Trace: 1303129772 unt-rea-b-01.news.neostrada.pl 2440 217.96.16.46:2176
X-Complaints-To: abuse@news.neostrada.pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit