You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Anton Gavazuk <an...@gmail.com> on 2010/02/17 15:17:49 UTC
[JSF 1.2] How to track a validation error
Hi all,
stuck with a problem - have a form with several input components:
selectOneMenu and inputText; and commandButton. Input components dont have
any validators and required atrributes are not set.
But when form is being submitted I'm getting standart "Validation error"
message in message queue, and I cannot find what could cause this validation
error.
Is there any way (except debugging myfaces source code) to identify what is
the issue?
MAny thanks,
Anton
Re: [JSF 1.2] How to track a validation error
Posted by Anton Gavazuk <an...@gmail.com>.
Guys,
its my fault -
>> Is room.getId() Long as well?
getId() is Integer... I thought it was Long :)
Many thanks,
Anton
2010/2/17 Anton Gavazuk <an...@gmail.com>
> yes, will try - its my final option :)
>
>
> 2010/2/17 Cagatay Civici <ca...@gmail.com>
>
>> Is room.getId() Long as well?
>>
>> I remember seeing a similar thread in myfaces list, can't remember the
>> reason for this.
>>
>> Can you try with a string to see if it makes a difference.
>>
>> private String currentRoomCategory;
>>
>> public List<SelectItem> getRoomCategories() {
>> List<SelectItem> items = new
>> ArrayList<SelectItem>(
>> >
>> > roomCategories.size());
>> > for (RoomCategory room : roomCategories) {
>> > items.add(new SelectItem(String.valueOf(room.getId()),
>> > room.getCategoryName()));
>> > }
>> > return items;
>>
>>
>>
>> On Wed, Feb 17, 2010 at 2:55 PM, Anton Gavazuk <antongavazuk@gmail.com
>> >wrote:
>>
>> > Cagatay,
>> >
>> > please, look below
>> >
>> > java snippet
>> >
>> > ....
>> >
>> > private Long currentRoomCategory;
>> >
>> >
>> > public List<SelectItem> getRoomCategories() {
>> > List<SelectItem> items = new
>> > ArrayList<SelectItem>(roomCategories.size());
>> > for (RoomCategory room : roomCategories) {
>> > items.add(new SelectItem(room.getId(),
>> room.getCategoryName()));
>> > }
>> > return items;
>> > }
>> >
>> > and JSF
>> >
>> > <h:selectOneMenu id="in_rcategory"
>> > value="#{localizeBean.currentRoomCategory}">
>> > <f:selectItems
>> value="#{localizeBean.roomCategories}"/>
>> > </h:selectOneMenu>
>> >
>> >
>> >
>> >
>> > 2010/2/17 Cagatay Civici <ca...@gmail.com>
>> >
>> > > Anton, can you provide your code?
>> > >
>> > > On Wed, Feb 17, 2010 at 2:50 PM, Anton Gavazuk <
>> antongavazuk@gmail.com
>> > > >wrote:
>> > >
>> > > > Hi Cagatay,
>> > > >
>> > > > you are right - selectOneMeny is causing error,
>> > > >
>> > > > value is selected, so is being submitted, - reason is in converter,
>> > > >
>> > > > please, correct me if I'm wrong - Long value doesnt require
>> converter,
>> > > > does
>> > > > it?
>> > > >
>> > > > Thanks,
>> > > > Anton
>> > > >
>> > > > 2010/2/17 Cagatay Civici <ca...@gmail.com>
>> > > >
>> > > > > selectOneMenu's can cause this if the selectitems collection of
>> this
>> > > > > component does not contain the submitted&converted value.
>> > > > >
>> > > > > Also if you set <h:messages showDetail="true", that would help to
>> > > > identify
>> > > > > the problematic component info.
>> > > > >
>> > > > > On Wed, Feb 17, 2010 at 2:17 PM, Anton Gavazuk <
>> > antongavazuk@gmail.com
>> > > > > >wrote:
>> > > > >
>> > > > > > Hi all,
>> > > > > >
>> > > > > > stuck with a problem - have a form with several input
>> components:
>> > > > > > selectOneMenu and inputText; and commandButton. Input components
>> > dont
>> > > > > have
>> > > > > > any validators and required atrributes are not set.
>> > > > > > But when form is being submitted I'm getting standart
>> "Validation
>> > > > error"
>> > > > > > message in message queue, and I cannot find what could cause
>> this
>> > > > > > validation
>> > > > > > error.
>> > > > > > Is there any way (except debugging myfaces source code) to
>> identify
>> > > > what
>> > > > > is
>> > > > > > the issue?
>> > > > > >
>> > > > > > MAny thanks,
>> > > > > > Anton
>> > > > > >
>> > > > >
>> > > > >
>> > > > >
>> > > > > --
>> > > > > Cagatay Civici
>> > > > > JSF EG | PrimeFaces Lead | Apache MyFaces PMC
>> > > > > http://www.primefaces.org
>> > > > >
>> > > >
>> > >
>> > >
>> > >
>> > > --
>> > > Cagatay Civici
>> > > JSF EG | PrimeFaces Lead | Apache MyFaces PMC
>> > > http://www.primefaces.org
>> > >
>> >
>>
>>
>>
>> --
>> Cagatay Civici
>> JSF EG | PrimeFaces Lead | Apache MyFaces PMC
>> http://www.primefaces.org
>>
>
>
Re: [JSF 1.2] How to track a validation error
Posted by Cagatay Civici <ca...@gmail.com>.
>
> Long value should not require convertion.
> Cagatay, do you mean this issue?
>
> https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1506
>
I guess it was this one:
http://old.nabble.com/ERROR%3A-Value-is-not-a-valid-option-ts9094402.html
I don't have access to myfaces code right now, I'll try to find out what is
going on.
On Wed, Feb 17, 2010 at 3:27 PM, Anton Gavazuk <an...@gmail.com>wrote:
> yes, will try - its my final option :)
>
> 2010/2/17 Cagatay Civici <ca...@gmail.com>
>
> > Is room.getId() Long as well?
> >
> > I remember seeing a similar thread in myfaces list, can't remember the
> > reason for this.
> >
> > Can you try with a string to see if it makes a difference.
> >
> > private String currentRoomCategory;
> >
> > public List<SelectItem> getRoomCategories() {
> > List<SelectItem> items = new
> > ArrayList<SelectItem>(
> > >
> > > roomCategories.size());
> > > for (RoomCategory room : roomCategories) {
> > > items.add(new SelectItem(String.valueOf(room.getId()),
> > > room.getCategoryName()));
> > > }
> > > return items;
> >
> >
> >
> > On Wed, Feb 17, 2010 at 2:55 PM, Anton Gavazuk <antongavazuk@gmail.com
> > >wrote:
> >
> > > Cagatay,
> > >
> > > please, look below
> > >
> > > java snippet
> > >
> > > ....
> > >
> > > private Long currentRoomCategory;
> > >
> > >
> > > public List<SelectItem> getRoomCategories() {
> > > List<SelectItem> items = new
> > > ArrayList<SelectItem>(roomCategories.size());
> > > for (RoomCategory room : roomCategories) {
> > > items.add(new SelectItem(room.getId(),
> > room.getCategoryName()));
> > > }
> > > return items;
> > > }
> > >
> > > and JSF
> > >
> > > <h:selectOneMenu id="in_rcategory"
> > > value="#{localizeBean.currentRoomCategory}">
> > > <f:selectItems
> > value="#{localizeBean.roomCategories}"/>
> > > </h:selectOneMenu>
> > >
> > >
> > >
> > >
> > > 2010/2/17 Cagatay Civici <ca...@gmail.com>
> > >
> > > > Anton, can you provide your code?
> > > >
> > > > On Wed, Feb 17, 2010 at 2:50 PM, Anton Gavazuk <
> antongavazuk@gmail.com
> > > > >wrote:
> > > >
> > > > > Hi Cagatay,
> > > > >
> > > > > you are right - selectOneMeny is causing error,
> > > > >
> > > > > value is selected, so is being submitted, - reason is in converter,
> > > > >
> > > > > please, correct me if I'm wrong - Long value doesnt require
> > converter,
> > > > > does
> > > > > it?
> > > > >
> > > > > Thanks,
> > > > > Anton
> > > > >
> > > > > 2010/2/17 Cagatay Civici <ca...@gmail.com>
> > > > >
> > > > > > selectOneMenu's can cause this if the selectitems collection of
> > this
> > > > > > component does not contain the submitted&converted value.
> > > > > >
> > > > > > Also if you set <h:messages showDetail="true", that would help to
> > > > > identify
> > > > > > the problematic component info.
> > > > > >
> > > > > > On Wed, Feb 17, 2010 at 2:17 PM, Anton Gavazuk <
> > > antongavazuk@gmail.com
> > > > > > >wrote:
> > > > > >
> > > > > > > Hi all,
> > > > > > >
> > > > > > > stuck with a problem - have a form with several input
> components:
> > > > > > > selectOneMenu and inputText; and commandButton. Input
> components
> > > dont
> > > > > > have
> > > > > > > any validators and required atrributes are not set.
> > > > > > > But when form is being submitted I'm getting standart
> "Validation
> > > > > error"
> > > > > > > message in message queue, and I cannot find what could cause
> this
> > > > > > > validation
> > > > > > > error.
> > > > > > > Is there any way (except debugging myfaces source code) to
> > identify
> > > > > what
> > > > > > is
> > > > > > > the issue?
> > > > > > >
> > > > > > > MAny thanks,
> > > > > > > Anton
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Cagatay Civici
> > > > > > JSF EG | PrimeFaces Lead | Apache MyFaces PMC
> > > > > > http://www.primefaces.org
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Cagatay Civici
> > > > JSF EG | PrimeFaces Lead | Apache MyFaces PMC
> > > > http://www.primefaces.org
> > > >
> > >
> >
> >
> >
> > --
> > Cagatay Civici
> > JSF EG | PrimeFaces Lead | Apache MyFaces PMC
> > http://www.primefaces.org
> >
>
--
Cagatay Civici
JSF EG | PrimeFaces Lead | Apache MyFaces PMC
http://www.primefaces.org
Re: [JSF 1.2] How to track a validation error
Posted by Anton Gavazuk <an...@gmail.com>.
yes, will try - its my final option :)
2010/2/17 Cagatay Civici <ca...@gmail.com>
> Is room.getId() Long as well?
>
> I remember seeing a similar thread in myfaces list, can't remember the
> reason for this.
>
> Can you try with a string to see if it makes a difference.
>
> private String currentRoomCategory;
>
> public List<SelectItem> getRoomCategories() {
> List<SelectItem> items = new
> ArrayList<SelectItem>(
> >
> > roomCategories.size());
> > for (RoomCategory room : roomCategories) {
> > items.add(new SelectItem(String.valueOf(room.getId()),
> > room.getCategoryName()));
> > }
> > return items;
>
>
>
> On Wed, Feb 17, 2010 at 2:55 PM, Anton Gavazuk <antongavazuk@gmail.com
> >wrote:
>
> > Cagatay,
> >
> > please, look below
> >
> > java snippet
> >
> > ....
> >
> > private Long currentRoomCategory;
> >
> >
> > public List<SelectItem> getRoomCategories() {
> > List<SelectItem> items = new
> > ArrayList<SelectItem>(roomCategories.size());
> > for (RoomCategory room : roomCategories) {
> > items.add(new SelectItem(room.getId(),
> room.getCategoryName()));
> > }
> > return items;
> > }
> >
> > and JSF
> >
> > <h:selectOneMenu id="in_rcategory"
> > value="#{localizeBean.currentRoomCategory}">
> > <f:selectItems
> value="#{localizeBean.roomCategories}"/>
> > </h:selectOneMenu>
> >
> >
> >
> >
> > 2010/2/17 Cagatay Civici <ca...@gmail.com>
> >
> > > Anton, can you provide your code?
> > >
> > > On Wed, Feb 17, 2010 at 2:50 PM, Anton Gavazuk <antongavazuk@gmail.com
> > > >wrote:
> > >
> > > > Hi Cagatay,
> > > >
> > > > you are right - selectOneMeny is causing error,
> > > >
> > > > value is selected, so is being submitted, - reason is in converter,
> > > >
> > > > please, correct me if I'm wrong - Long value doesnt require
> converter,
> > > > does
> > > > it?
> > > >
> > > > Thanks,
> > > > Anton
> > > >
> > > > 2010/2/17 Cagatay Civici <ca...@gmail.com>
> > > >
> > > > > selectOneMenu's can cause this if the selectitems collection of
> this
> > > > > component does not contain the submitted&converted value.
> > > > >
> > > > > Also if you set <h:messages showDetail="true", that would help to
> > > > identify
> > > > > the problematic component info.
> > > > >
> > > > > On Wed, Feb 17, 2010 at 2:17 PM, Anton Gavazuk <
> > antongavazuk@gmail.com
> > > > > >wrote:
> > > > >
> > > > > > Hi all,
> > > > > >
> > > > > > stuck with a problem - have a form with several input components:
> > > > > > selectOneMenu and inputText; and commandButton. Input components
> > dont
> > > > > have
> > > > > > any validators and required atrributes are not set.
> > > > > > But when form is being submitted I'm getting standart "Validation
> > > > error"
> > > > > > message in message queue, and I cannot find what could cause this
> > > > > > validation
> > > > > > error.
> > > > > > Is there any way (except debugging myfaces source code) to
> identify
> > > > what
> > > > > is
> > > > > > the issue?
> > > > > >
> > > > > > MAny thanks,
> > > > > > Anton
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Cagatay Civici
> > > > > JSF EG | PrimeFaces Lead | Apache MyFaces PMC
> > > > > http://www.primefaces.org
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Cagatay Civici
> > > JSF EG | PrimeFaces Lead | Apache MyFaces PMC
> > > http://www.primefaces.org
> > >
> >
>
>
>
> --
> Cagatay Civici
> JSF EG | PrimeFaces Lead | Apache MyFaces PMC
> http://www.primefaces.org
>
Re: [JSF 1.2] How to track a validation error
Posted by Mark Struberg <st...@yahoo.de>.
Long value should not require convertion.
Cagatay, do you mean this issue?
https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1506
LieGrue,
strub
--- Cagatay Civici <ca...@gmail.com> schrieb am Mi, 17.2.2010:
> Von: Cagatay Civici <ca...@gmail.com>
> Betreff: Re: [JSF 1.2] How to track a validation error
> An: "MyFaces Discussion" <us...@myfaces.apache.org>
> Datum: Mittwoch, 17. Februar, 2010 16:22 Uhr
> Is room.getId() Long as well?
>
> I remember seeing a similar thread in myfaces list, can't
> remember the
> reason for this.
>
> Can you try with a string to see if it makes a difference.
>
> private String currentRoomCategory;
>
> public List<SelectItem> getRoomCategories() {
> List<SelectItem>
> items = new
> ArrayList<SelectItem>(
> >
> > roomCategories.size());
> > for (RoomCategory room :
> roomCategories) {
> > items.add(new
> SelectItem(String.valueOf(room.getId()),
> > room.getCategoryName()));
> > }
> > return items;
>
>
>
> On Wed, Feb 17, 2010 at 2:55 PM, Anton Gavazuk <an...@gmail.com>wrote:
>
> > Cagatay,
> >
> > please, look below
> >
> > java snippet
> >
> > ....
> >
> > private Long currentRoomCategory;
> >
> >
> > public List<SelectItem> getRoomCategories() {
> > List<SelectItem>
> items = new
> > ArrayList<SelectItem>(roomCategories.size());
> > for (RoomCategory room :
> roomCategories) {
> > items.add(new
> SelectItem(room.getId(), room.getCategoryName()));
> > }
> > return items;
> > }
> >
> > and JSF
> >
> > <h:selectOneMenu id="in_rcategory"
> > value="#{localizeBean.currentRoomCategory}">
> >
> <f:selectItems
> value="#{localizeBean.roomCategories}"/>
> > </h:selectOneMenu>
> >
> >
> >
> >
> > 2010/2/17 Cagatay Civici <ca...@gmail.com>
> >
> > > Anton, can you provide your code?
> > >
> > > On Wed, Feb 17, 2010 at 2:50 PM, Anton Gavazuk
> <antongavazuk@gmail.com
> > > >wrote:
> > >
> > > > Hi Cagatay,
> > > >
> > > > you are right - selectOneMeny is causing
> error,
> > > >
> > > > value is selected, so is being submitted, -
> reason is in converter,
> > > >
> > > > please, correct me if I'm wrong - Long
> value doesnt require converter,
> > > > does
> > > > it?
> > > >
> > > > Thanks,
> > > > Anton
> > > >
> > > > 2010/2/17 Cagatay Civici <ca...@gmail.com>
> > > >
> > > > > selectOneMenu's can cause this if the
> selectitems collection of this
> > > > > component does not contain the
> submitted&converted value.
> > > > >
> > > > > Also if you set <h:messages
> showDetail="true", that would help to
> > > > identify
> > > > > the problematic component info.
> > > > >
> > > > > On Wed, Feb 17, 2010 at 2:17 PM, Anton
> Gavazuk <
> > antongavazuk@gmail.com
> > > > > >wrote:
> > > > >
> > > > > > Hi all,
> > > > > >
> > > > > > stuck with a problem - have a form
> with several input components:
> > > > > > selectOneMenu and inputText; and
> commandButton. Input components
> > dont
> > > > > have
> > > > > > any validators and required
> atrributes are not set.
> > > > > > But when form is being submitted
> I'm getting standart "Validation
> > > > error"
> > > > > > message in message queue, and I
> cannot find what could cause this
> > > > > > validation
> > > > > > error.
> > > > > > Is there any way (except debugging
> myfaces source code) to identify
> > > > what
> > > > > is
> > > > > > the issue?
> > > > > >
> > > > > > MAny thanks,
> > > > > > Anton
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Cagatay Civici
> > > > > JSF EG | PrimeFaces Lead | Apache
> MyFaces PMC
> > > > > http://www.primefaces.org
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Cagatay Civici
> > > JSF EG | PrimeFaces Lead | Apache MyFaces PMC
> > > http://www.primefaces.org
> > >
> >
>
>
>
> --
> Cagatay Civici
> JSF EG | PrimeFaces Lead | Apache MyFaces PMC
> http://www.primefaces.org
>
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com
Re: [JSF 1.2] How to track a validation error
Posted by Cagatay Civici <ca...@gmail.com>.
Is room.getId() Long as well?
I remember seeing a similar thread in myfaces list, can't remember the
reason for this.
Can you try with a string to see if it makes a difference.
private String currentRoomCategory;
public List<SelectItem> getRoomCategories() {
List<SelectItem> items = new
ArrayList<SelectItem>(
>
> roomCategories.size());
> for (RoomCategory room : roomCategories) {
> items.add(new SelectItem(String.valueOf(room.getId()),
> room.getCategoryName()));
> }
> return items;
On Wed, Feb 17, 2010 at 2:55 PM, Anton Gavazuk <an...@gmail.com>wrote:
> Cagatay,
>
> please, look below
>
> java snippet
>
> ....
>
> private Long currentRoomCategory;
>
>
> public List<SelectItem> getRoomCategories() {
> List<SelectItem> items = new
> ArrayList<SelectItem>(roomCategories.size());
> for (RoomCategory room : roomCategories) {
> items.add(new SelectItem(room.getId(), room.getCategoryName()));
> }
> return items;
> }
>
> and JSF
>
> <h:selectOneMenu id="in_rcategory"
> value="#{localizeBean.currentRoomCategory}">
> <f:selectItems value="#{localizeBean.roomCategories}"/>
> </h:selectOneMenu>
>
>
>
>
> 2010/2/17 Cagatay Civici <ca...@gmail.com>
>
> > Anton, can you provide your code?
> >
> > On Wed, Feb 17, 2010 at 2:50 PM, Anton Gavazuk <antongavazuk@gmail.com
> > >wrote:
> >
> > > Hi Cagatay,
> > >
> > > you are right - selectOneMeny is causing error,
> > >
> > > value is selected, so is being submitted, - reason is in converter,
> > >
> > > please, correct me if I'm wrong - Long value doesnt require converter,
> > > does
> > > it?
> > >
> > > Thanks,
> > > Anton
> > >
> > > 2010/2/17 Cagatay Civici <ca...@gmail.com>
> > >
> > > > selectOneMenu's can cause this if the selectitems collection of this
> > > > component does not contain the submitted&converted value.
> > > >
> > > > Also if you set <h:messages showDetail="true", that would help to
> > > identify
> > > > the problematic component info.
> > > >
> > > > On Wed, Feb 17, 2010 at 2:17 PM, Anton Gavazuk <
> antongavazuk@gmail.com
> > > > >wrote:
> > > >
> > > > > Hi all,
> > > > >
> > > > > stuck with a problem - have a form with several input components:
> > > > > selectOneMenu and inputText; and commandButton. Input components
> dont
> > > > have
> > > > > any validators and required atrributes are not set.
> > > > > But when form is being submitted I'm getting standart "Validation
> > > error"
> > > > > message in message queue, and I cannot find what could cause this
> > > > > validation
> > > > > error.
> > > > > Is there any way (except debugging myfaces source code) to identify
> > > what
> > > > is
> > > > > the issue?
> > > > >
> > > > > MAny thanks,
> > > > > Anton
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Cagatay Civici
> > > > JSF EG | PrimeFaces Lead | Apache MyFaces PMC
> > > > http://www.primefaces.org
> > > >
> > >
> >
> >
> >
> > --
> > Cagatay Civici
> > JSF EG | PrimeFaces Lead | Apache MyFaces PMC
> > http://www.primefaces.org
> >
>
--
Cagatay Civici
JSF EG | PrimeFaces Lead | Apache MyFaces PMC
http://www.primefaces.org
Re: [JSF 1.2] How to track a validation error
Posted by Anton Gavazuk <an...@gmail.com>.
Cagatay,
please, look below
java snippet
....
private Long currentRoomCategory;
public List<SelectItem> getRoomCategories() {
List<SelectItem> items = new
ArrayList<SelectItem>(roomCategories.size());
for (RoomCategory room : roomCategories) {
items.add(new SelectItem(room.getId(), room.getCategoryName()));
}
return items;
}
and JSF
<h:selectOneMenu id="in_rcategory"
value="#{localizeBean.currentRoomCategory}">
<f:selectItems value="#{localizeBean.roomCategories}"/>
</h:selectOneMenu>
2010/2/17 Cagatay Civici <ca...@gmail.com>
> Anton, can you provide your code?
>
> On Wed, Feb 17, 2010 at 2:50 PM, Anton Gavazuk <antongavazuk@gmail.com
> >wrote:
>
> > Hi Cagatay,
> >
> > you are right - selectOneMeny is causing error,
> >
> > value is selected, so is being submitted, - reason is in converter,
> >
> > please, correct me if I'm wrong - Long value doesnt require converter,
> > does
> > it?
> >
> > Thanks,
> > Anton
> >
> > 2010/2/17 Cagatay Civici <ca...@gmail.com>
> >
> > > selectOneMenu's can cause this if the selectitems collection of this
> > > component does not contain the submitted&converted value.
> > >
> > > Also if you set <h:messages showDetail="true", that would help to
> > identify
> > > the problematic component info.
> > >
> > > On Wed, Feb 17, 2010 at 2:17 PM, Anton Gavazuk <antongavazuk@gmail.com
> > > >wrote:
> > >
> > > > Hi all,
> > > >
> > > > stuck with a problem - have a form with several input components:
> > > > selectOneMenu and inputText; and commandButton. Input components dont
> > > have
> > > > any validators and required atrributes are not set.
> > > > But when form is being submitted I'm getting standart "Validation
> > error"
> > > > message in message queue, and I cannot find what could cause this
> > > > validation
> > > > error.
> > > > Is there any way (except debugging myfaces source code) to identify
> > what
> > > is
> > > > the issue?
> > > >
> > > > MAny thanks,
> > > > Anton
> > > >
> > >
> > >
> > >
> > > --
> > > Cagatay Civici
> > > JSF EG | PrimeFaces Lead | Apache MyFaces PMC
> > > http://www.primefaces.org
> > >
> >
>
>
>
> --
> Cagatay Civici
> JSF EG | PrimeFaces Lead | Apache MyFaces PMC
> http://www.primefaces.org
>
Re: [JSF 1.2] How to track a validation error
Posted by Cagatay Civici <ca...@gmail.com>.
Anton, can you provide your code?
On Wed, Feb 17, 2010 at 2:50 PM, Anton Gavazuk <an...@gmail.com>wrote:
> Hi Cagatay,
>
> you are right - selectOneMeny is causing error,
>
> value is selected, so is being submitted, - reason is in converter,
>
> please, correct me if I'm wrong - Long value doesnt require converter,
> does
> it?
>
> Thanks,
> Anton
>
> 2010/2/17 Cagatay Civici <ca...@gmail.com>
>
> > selectOneMenu's can cause this if the selectitems collection of this
> > component does not contain the submitted&converted value.
> >
> > Also if you set <h:messages showDetail="true", that would help to
> identify
> > the problematic component info.
> >
> > On Wed, Feb 17, 2010 at 2:17 PM, Anton Gavazuk <antongavazuk@gmail.com
> > >wrote:
> >
> > > Hi all,
> > >
> > > stuck with a problem - have a form with several input components:
> > > selectOneMenu and inputText; and commandButton. Input components dont
> > have
> > > any validators and required atrributes are not set.
> > > But when form is being submitted I'm getting standart "Validation
> error"
> > > message in message queue, and I cannot find what could cause this
> > > validation
> > > error.
> > > Is there any way (except debugging myfaces source code) to identify
> what
> > is
> > > the issue?
> > >
> > > MAny thanks,
> > > Anton
> > >
> >
> >
> >
> > --
> > Cagatay Civici
> > JSF EG | PrimeFaces Lead | Apache MyFaces PMC
> > http://www.primefaces.org
> >
>
--
Cagatay Civici
JSF EG | PrimeFaces Lead | Apache MyFaces PMC
http://www.primefaces.org
Re: [JSF 1.2] How to track a validation error
Posted by Anton Gavazuk <an...@gmail.com>.
Hi Cagatay,
you are right - selectOneMeny is causing error,
value is selected, so is being submitted, - reason is in converter,
please, correct me if I'm wrong - Long value doesnt require converter, does
it?
Thanks,
Anton
2010/2/17 Cagatay Civici <ca...@gmail.com>
> selectOneMenu's can cause this if the selectitems collection of this
> component does not contain the submitted&converted value.
>
> Also if you set <h:messages showDetail="true", that would help to identify
> the problematic component info.
>
> On Wed, Feb 17, 2010 at 2:17 PM, Anton Gavazuk <antongavazuk@gmail.com
> >wrote:
>
> > Hi all,
> >
> > stuck with a problem - have a form with several input components:
> > selectOneMenu and inputText; and commandButton. Input components dont
> have
> > any validators and required atrributes are not set.
> > But when form is being submitted I'm getting standart "Validation error"
> > message in message queue, and I cannot find what could cause this
> > validation
> > error.
> > Is there any way (except debugging myfaces source code) to identify what
> is
> > the issue?
> >
> > MAny thanks,
> > Anton
> >
>
>
>
> --
> Cagatay Civici
> JSF EG | PrimeFaces Lead | Apache MyFaces PMC
> http://www.primefaces.org
>
Re: [JSF 1.2] How to track a validation error
Posted by Cagatay Civici <ca...@gmail.com>.
selectOneMenu's can cause this if the selectitems collection of this
component does not contain the submitted&converted value.
Also if you set <h:messages showDetail="true", that would help to identify
the problematic component info.
On Wed, Feb 17, 2010 at 2:17 PM, Anton Gavazuk <an...@gmail.com>wrote:
> Hi all,
>
> stuck with a problem - have a form with several input components:
> selectOneMenu and inputText; and commandButton. Input components dont have
> any validators and required atrributes are not set.
> But when form is being submitted I'm getting standart "Validation error"
> message in message queue, and I cannot find what could cause this
> validation
> error.
> Is there any way (except debugging myfaces source code) to identify what is
> the issue?
>
> MAny thanks,
> Anton
>
--
Cagatay Civici
JSF EG | PrimeFaces Lead | Apache MyFaces PMC
http://www.primefaces.org