<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Csak szöveg Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Buborékszöveg Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.CsakszvegChar
        {mso-style-name:"Csak szöveg Char";
        mso-style-priority:99;
        mso-style-link:"Csak szöveg";
        font-family:"Calibri","sans-serif";}
span.BuborkszvegChar
        {mso-style-name:"Buborékszöveg Char";
        mso-style-priority:99;
        mso-style-link:Buborékszöveg;
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=HU link=blue vlink=purple><div class=WordSection1><p class=MsoPlainText>Ok, értem.<o:p></o:p></p><p class=MsoPlainText> <o:p></o:p></p><p class=MsoPlainText>Valszeg a Primefaces miatt nem elég a standard JSF tag: <o:p></o:p></p><p class=MsoPlainText>&lt;h:messages /&gt;<o:p></o:p></p><p class=MsoPlainText> hanem neked kell egy <o:p></o:p></p><p class=MsoPlainText>&lt;p:messages /&gt;<o:p></o:p></p><p class=MsoPlainText>is, hogy ilyen rejtélyes dolgokat elkerüld. Mert ugye ha az űrlapon valami nem valid (elég egyetlen mező), akkor ezt láthatod a fent említett hibakiírással,<o:p></o:p></p><p class=MsoPlainText>és <u><span style='color:red'>természetesen az űrlap egyetlen elemének tartalma sem kerül be a model-be</span></u>, ezért sem hívódott meg a setXXX() metódusa egyetlen elemnek sem.<o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText>Örülök hogy segíthettem, bár megjegyzem hogy én régebben JSF-eztem még az 1.2 verzióval, de egy éve már nem fejlesztek JSF-fel,<o:p></o:p></p><p class=MsoPlainText>azóta Apache Wicket-re váltottam <span style='font-family:Wingdings'>J</span><o:p></o:p></p><p class=MsoPlainText>Persze voltak próbálkozások RichFaces-zel, és emlékszem a PrimeFaces-re is.<o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText>Joe<o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText><span style='mso-fareast-language:HU'>-----Original Message-----<br>From: Csaba Ragasits [mailto:ragasits.csaba@gmail.com] <br>Sent: Tuesday, January 31, 2012 12:57 PM<br>To: Java lista<br>Subject: Re: [Javalist]h:selectOneMenu nem ad át értéket</span></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText>Szia,<o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText>Igen, beleraktam. Írt is ki hibaüzenetet is (may not be null), de ez<o:p></o:p></p><p class=MsoPlainText>nem sokat mondott.  Az eredeti oldalon is volt hibamegjelenítés<o:p></o:p></p><p class=MsoPlainText>(primafaces)<o:p></o:p></p><p class=MsoPlainText> &lt;!--p:messages id=&quot;msgs&quot; showDetail=&quot;false&quot; /--&gt;, de a sok<o:p></o:p></p><p class=MsoPlainText>próbálkozás után benne maradt a komment. :(<o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText>Az, hogy pontosan mi okozta a hibát azt éppen a messages kiszedése<o:p></o:p></p><p class=MsoPlainText>miatt jelent meg a GF logjában.<o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText>A listát nem akartam terhelni az oldal teljes tartalmával, ezért<o:p></o:p></p><p class=MsoPlainText>kiszedtem az általam nem fontosnak vélt sorokat. Pl. ezeket is:<o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText>&lt;p:calendar id=&quot;kezdete&quot; value=&quot;#{JogokBean.detail.kezdete}&quot;<o:p></o:p></p><p class=MsoPlainText>title=&quot;Kezdete&quot; pattern=&quot;yyyy.MM.dd&quot; /&gt;<o:p></o:p></p><p class=MsoPlainText>&lt;p:calendar id=&quot;igenylesdatum&quot;<o:p></o:p></p><p class=MsoPlainText>value=&quot;#{JogokBean.detail.igenylesdatum}&quot; pattern=&quot;yyyy/MM/dd&quot;<o:p></o:p></p><p class=MsoPlainText>title=&quot;Igenylesdatum&quot; /&gt;<o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText>A 2 mezőnek adtam kezdőértéket, és ez oldotta meg a problémát<o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText>Részemről a tanulság, hogy egyes hibaüzenetek okozhatnak máshol is problémákat.<o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText>Thx,<o:p></o:p></p><p class=MsoPlainText>Csaba<o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText>2012/1/31 Keresztes Jozsef &lt;<a href="mailto:jkeresztes@vati.hu"><span style='color:windowtext;text-decoration:none'>jkeresztes@vati.hu</span></a>&gt;:<o:p></o:p></p><p class=MsoPlainText>&gt; Csaba !<o:p></o:p></p><p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt; Ok hogy megoldódott de:<o:p></o:p></p><p class=MsoPlainText>&gt; Azt kipróbáltad hogy beleraksz egy &lt;h:messages&gt;-t az oldalba ?<o:p></o:p></p><p class=MsoPlainText>&gt; Az nem mutatja ezeket a hibákat ?<o:p></o:p></p><p class=MsoPlainText>&gt; Mert az egy alapprobléma hogy az oldalon valami hiba van, de nem látjuk a hibaüzenetet.<o:p></o:p></p><p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt; Azt sem értem hogy hol van ez a 2 mező: &quot;kezdete&quot; és &quot;igenylesdatum&quot; ?<o:p></o:p></p><p class=MsoPlainText>&gt; Mert ezek nem szerepelnek azon az oldalon amiről beszéltünk.<o:p></o:p></p><p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt; -----Original Message-----<o:p></o:p></p><p class=MsoPlainText>&gt; From: Csaba Ragasits <a href="mailto:[mailto:ragasits.csaba@gmail.com]"><span style='color:windowtext;text-decoration:none'>[mailto:ragasits.csaba@gmail.com]</span></a><o:p></o:p></p><p class=MsoPlainText>&gt; Sent: Tuesday, January 31, 2012 12:31 PM<o:p></o:p></p><p class=MsoPlainText>&gt; To: Java lista<o:p></o:p></p><p class=MsoPlainText>&gt; Subject: Re: [Javalist]h:selectOneMenu nem ad át értéket<o:p></o:p></p><p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt; Szia,<o:p></o:p></p><p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt; Úgy néz ki, hogy megoldódott a probléma. Volt &nbsp;2 hibaüzetem a GF logjában:<o:p></o:p></p><p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt; sourceId=j_idt30:kezdete[severity=(ERROR 2), summary=(may not be<o:p></o:p></p><p class=MsoPlainText>&gt; null), detail=(may not be null)]<o:p></o:p></p><p class=MsoPlainText>&gt; sourceId=j_idt30:igenylesdatum[severity=(ERROR 2), summary=(may not be<o:p></o:p></p><p class=MsoPlainText>&gt; null), detail=(may not be null)]<o:p></o:p></p><p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt; Úgy gondoltam, hogy ezek nem okozhatnak hibát a selectOneMenu-nél.<o:p></o:p></p><p class=MsoPlainText>&gt; Rosszul gondoltam :)<o:p></o:p></p><p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt; Köszönöm a segítséget!<o:p></o:p></p><p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt; Csaba<o:p></o:p></p><p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt; 2012/1/31 Keresztes Jozsef &lt;<a href="mailto:jkeresztes@vati.hu"><span style='color:windowtext;text-decoration:none'>jkeresztes@vati.hu</span></a>&gt;:<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; Én nem is erre gondoltam, hanem az oldalba lévő &lt;h:messages&gt;-re.<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; Rakj bele ilyet légyszíves !<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt; -----Original Message-----<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; From: Csaba Ragasits <a href="mailto:[mailto:ragasits.csaba@gmail.com]"><span style='color:windowtext;text-decoration:none'>[mailto:ragasits.csaba@gmail.com]</span></a><o:p></o:p></p><p class=MsoPlainText>&gt;&gt; Sent: Tuesday, January 31, 2012 11:25 AM<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; To: Java lista<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; Subject: Re: [Javalist]h:selectOneMenu nem ad át értéket<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt; Szia,<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt; Átnéztem a LOG-okat, de nem látok ott hibaüzenetet. A böngésző<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; hibakonzoljában sincsen &nbsp;hiba. Próbáltam már submit nélkül is, &nbsp;de az<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; sem hozott eredményt.<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt; Az oldal forrásában ez jelenik meg:<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt; &lt;td&gt;&lt;select id=&quot;j_idt30:prefixId&quot; name=&quot;j_idt30:prefixId&quot; size=&quot;1&quot;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; title=&quot;PrefixId&quot; onchange=&quot;submit()&quot;&gt; &nbsp; &lt;option value=&quot;-&quot;&gt;-&lt;/option&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;option value=&quot;Munkakör&quot; selected=&quot;selected&quot;&gt;Munkakör&lt;/option&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &lt;/select&gt;&lt;/td&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt; Ezen az oldalon már belefutottam hasonló hibába, de az valahogy<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; megoldódott. Az oldal ezt tartalmazza:<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt; &lt;?xml version='1.0' encoding='UTF-8' ?&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><span style='color:windowtext;text-decoration:none'>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</span></a>&quot;&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml"><span style='color:windowtext;text-decoration:none'>http://www.w3.org/1999/xhtml</span></a>&quot;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp;xmlns:h=&quot;<a href="http://java.sun.com/jsf/html"><span style='color:windowtext;text-decoration:none'>http://java.sun.com/jsf/html</span></a>&quot;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp;xmlns:p=&quot;<a href="http://primefaces.prime.com.tr/ui"><span style='color:windowtext;text-decoration:none'>http://primefaces.prime.com.tr/ui</span></a>&quot;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp;xmlns:f=&quot;<a href="http://java.sun.com/jsf/core"><span style='color:windowtext;text-decoration:none'>http://java.sun.com/jsf/core</span></a>&quot;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp;xmlns:sb=&quot;<a href="http://java.sun.com/jsf/composite/sbcomponents"><span style='color:windowtext;text-decoration:none'>http://java.sun.com/jsf/composite/sbcomponents</span></a>&quot;&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp;&lt;h:head&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;title&gt;Jogok Detail&lt;/title&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp;&lt;/h:head&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp;&lt;h:body&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;h:outputStylesheet name=&quot;style.css&quot; /&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;f:view&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;h:form&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;sb:header /&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;sb:saveDialog yesAction=&quot;#{JogokBean.onSave()}&quot; /&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;sb:deleteDialog yesAction=&quot;#{JogokBean.onDelete()}&quot; /&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/h:form&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;h:form&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;p:panel&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;h:panelGrid columns=&quot;4&quot;&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;p:commandButton value=&quot;Mentés&quot;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; onclick=&quot;saveDialog.show()&quot; onchange=&quot;submit()&quot;/&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;p:commandButton value=&quot;Törlés&quot;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; onclick=&quot;deleteDialog.show()&quot; /&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;p:commandButton value=&quot;Home&quot;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; action=&quot;#{MainBean.onBack}&quot; ajax=&quot;false&quot; immediate=&quot;true&quot; /&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;p:commandButton value=&quot;Vissza&quot;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; action=&quot;#{JogokBean.onBack}&quot; ajax=&quot;false&quot; immediate=&quot;true&quot; /&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/h:panelGrid&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/p:panel&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;p:panel header=&quot;Jogok&quot;&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;!--p:messages id=&quot;msgs&quot; showDetail=&quot;false&quot; /--&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;h:panelGrid columns=&quot;2&quot;&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;---<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;p:panel&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;h:panelGrid columns=&quot;2&quot;&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;---<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;h:outputLabel value=&quot;PrefixId:&quot;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; for=&quot;prefixId&quot; /&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;h:selectOneMenu id=&quot;prefixId&quot;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; value=&quot;#{JogokBean.selectedPrefix}&quot; title=&quot;PrefixId&quot;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; onchange=&quot;submit()&quot;&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;f:selectItems<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; value=&quot;#{SzerepkorBean.prefixOption}&quot;/&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/h:selectOneMenu&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;---<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/h:panelGrid&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/p:panel&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;---<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/h:panelGrid&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/p:panel&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/h:form&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/f:view&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &nbsp; &nbsp;&lt;/h:body&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; &lt;/html&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt; Thx,<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; Csaba<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt; 2012/1/31 Keresztes Jozsef &lt;<a href="mailto:jkeresztes@vati.hu"><span style='color:windowtext;text-decoration:none'>jkeresztes@vati.hu</span></a>&gt;:<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt; A hibaüzenetek ki vannak iratva azon a lapon, mi van ha valami rejtett hiba van és nem látod a message-t ?<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt; Mi van ha nincs az onchange -be submit, hanem a form saját submit gombjával van elküldve az űrlap ?<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt;&gt; -----Original Message-----<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt; From: Csaba Ragasits <a href="mailto:[mailto:ragasits.csaba@gmail.com]"><span style='color:windowtext;text-decoration:none'>[mailto:ragasits.csaba@gmail.com]</span></a><o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt; Sent: Tuesday, January 31, 2012 10:53 AM<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt; To: Java lista<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt; Subject: Re: [Javalist]h:selectOneMenu nem ad át értéket<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt;&gt; Szia,<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt;&gt; Próbáltam debuggolni, de úgy látszik, hogy a metódus nem kerül meghívásra.<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt;&gt; Thx,<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt; Csaba<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt;&gt; 2012/1/31 Keresztes Jozsef &lt;<a href="mailto:jkeresztes@vati.hu"><span style='color:windowtext;text-decoration:none'>jkeresztes@vati.hu</span></a>&gt;:<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; Hi !<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; A setSelectedPrefix() metódusod lefut, ezt nézted ?<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; Ha lefut kiirattad milyen paramétert kap ?<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; Joe<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; -----Original Message-----<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; From: Csaba Ragasits <a href="mailto:[mailto:ragasits.csaba@gmail.com]"><span style='color:windowtext;text-decoration:none'>[mailto:ragasits.csaba@gmail.com]</span></a><o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; Sent: Tuesday, January 31, 2012 10:43 AM<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; To: Java lista<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; Subject: [Javalist] h:selectOneMenu nem ad át értéket<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; Sziasztok,<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; Az alábbi problémával küzdök napok óta, de már elfogytak az ötleteim,<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; ezért fordulok hozzátok:<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; Van egy WEB-es karbantartásom (Netbeans, Glassfish, JSF2,<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; Primefaces2), ahol egy dropdown elemet szeretnék használni:<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; &lt;h:selectOneMenu id=&quot;prefixId&quot; value=&quot;#{JogokBean.selectedPrefix}&quot;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; title=&quot;PrefixId&quot; onchange=&quot;submit()&quot; &gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; &nbsp; &nbsp; &lt;f:selectItems value=&quot;#{SzerepkorBean.prefixOption}&quot;/&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; &lt;/h:selectOneMenu&gt;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; A JogokBean az alábbiakat tartalmazza:<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; private String selectedPrefix;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; public String getSelectedPrefix() {<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; &nbsp; &nbsp;return selectedPrefix;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; }<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; public void setSelectedPrefix(String selectedPrefix) {<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; &nbsp; this.selectedPrefix = selectedPrefix;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; }<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; A listát az alábbi módon töltöm fel:<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; public SelectItem[] getPrefixOption() {<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; &nbsp; &nbsp;SelectItem[] options = null;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; &nbsp; &nbsp;List&lt;String&gt; prefix = getPrefix();<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; &nbsp; &nbsp;if (prefix != null &amp;&amp; prefix.size() &gt; 0) {<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;int i = 0;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;options = new SelectItem[prefix.size() + 1];<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;options[i++] = new SelectItem(&quot;-&quot;);<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;for (String a : prefix) {<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;options[i++] = new SelectItem(a.toString());<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;}<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; &nbsp; &nbsp;}<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; &nbsp; &nbsp;return options;<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; }<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; Ha kiválasztok egy elemet a listából akkor annak értéke nem kerül bele<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; a selectedPrefix változóba. Át néztem már amit lehetett a google-n, de<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; azok szerint is ennek működnie kellene.<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; Van valami ötletetek, arra, hogy mi lehet a gond?<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; Thx,<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; Csaba<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; _______________________________________________<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; Javalist mailing list<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; <a href="mailto:Javalist@lists.javaforum.hu"><span style='color:windowtext;text-decoration:none'>Javalist@lists.javaforum.hu</span></a><o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; <a href="http://lists.javaforum.hu/mailman/listinfo/javalist"><span style='color:windowtext;text-decoration:none'>http://lists.javaforum.hu/mailman/listinfo/javalist</span></a><o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; _______________________________________________<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; Javalist mailing list<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; <a href="mailto:Javalist@lists.javaforum.hu"><span style='color:windowtext;text-decoration:none'>Javalist@lists.javaforum.hu</span></a><o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;&gt; <a href="http://lists.javaforum.hu/mailman/listinfo/javalist"><span style='color:windowtext;text-decoration:none'>http://lists.javaforum.hu/mailman/listinfo/javalist</span></a><o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt; _______________________________________________<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt; Javalist mailing list<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt; <a href="mailto:Javalist@lists.javaforum.hu"><span style='color:windowtext;text-decoration:none'>Javalist@lists.javaforum.hu</span></a><o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt; <a href="http://lists.javaforum.hu/mailman/listinfo/javalist"><span style='color:windowtext;text-decoration:none'>http://lists.javaforum.hu/mailman/listinfo/javalist</span></a><o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt;&gt; _______________________________________________<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt; Javalist mailing list<o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt; <a href="mailto:Javalist@lists.javaforum.hu"><span style='color:windowtext;text-decoration:none'>Javalist@lists.javaforum.hu</span></a><o:p></o:p></p><p class=MsoPlainText>&gt;&gt;&gt; <a href="http://lists.javaforum.hu/mailman/listinfo/javalist"><span style='color:windowtext;text-decoration:none'>http://lists.javaforum.hu/mailman/listinfo/javalist</span></a><o:p></o:p></p><p class=MsoPlainText>&gt;&gt; _______________________________________________<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; Javalist mailing list<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; <a href="mailto:Javalist@lists.javaforum.hu"><span style='color:windowtext;text-decoration:none'>Javalist@lists.javaforum.hu</span></a><o:p></o:p></p><p class=MsoPlainText>&gt;&gt; <a href="http://lists.javaforum.hu/mailman/listinfo/javalist"><span style='color:windowtext;text-decoration:none'>http://lists.javaforum.hu/mailman/listinfo/javalist</span></a><o:p></o:p></p><p class=MsoPlainText>&gt;&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt;&gt; _______________________________________________<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; Javalist mailing list<o:p></o:p></p><p class=MsoPlainText>&gt;&gt; <a href="mailto:Javalist@lists.javaforum.hu"><span style='color:windowtext;text-decoration:none'>Javalist@lists.javaforum.hu</span></a><o:p></o:p></p><p class=MsoPlainText>&gt;&gt; <a href="http://lists.javaforum.hu/mailman/listinfo/javalist"><span style='color:windowtext;text-decoration:none'>http://lists.javaforum.hu/mailman/listinfo/javalist</span></a><o:p></o:p></p><p class=MsoPlainText>&gt; _______________________________________________<o:p></o:p></p><p class=MsoPlainText>&gt; Javalist mailing list<o:p></o:p></p><p class=MsoPlainText>&gt; <a href="mailto:Javalist@lists.javaforum.hu"><span style='color:windowtext;text-decoration:none'>Javalist@lists.javaforum.hu</span></a><o:p></o:p></p><p class=MsoPlainText>&gt; <a href="http://lists.javaforum.hu/mailman/listinfo/javalist"><span style='color:windowtext;text-decoration:none'>http://lists.javaforum.hu/mailman/listinfo/javalist</span></a><o:p></o:p></p><p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt; _______________________________________________<o:p></o:p></p><p class=MsoPlainText>&gt; Javalist mailing list<o:p></o:p></p><p class=MsoPlainText>&gt; <a href="mailto:Javalist@lists.javaforum.hu"><span style='color:windowtext;text-decoration:none'>Javalist@lists.javaforum.hu</span></a><o:p></o:p></p><p class=MsoPlainText>&gt; <a href="http://lists.javaforum.hu/mailman/listinfo/javalist"><span style='color:windowtext;text-decoration:none'>http://lists.javaforum.hu/mailman/listinfo/javalist</span></a><o:p></o:p></p><p class=MsoPlainText>_______________________________________________<o:p></o:p></p><p class=MsoPlainText>Javalist mailing list<o:p></o:p></p><p class=MsoPlainText><a href="mailto:Javalist@lists.javaforum.hu"><span style='color:windowtext;text-decoration:none'>Javalist@lists.javaforum.hu</span></a><o:p></o:p></p><p class=MsoPlainText><a href="http://lists.javaforum.hu/mailman/listinfo/javalist"><span style='color:windowtext;text-decoration:none'>http://lists.javaforum.hu/mailman/listinfo/javalist</span></a><o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p></div></body></html>