• Post Reply Bookmark Topic Watch Topic
  • New Topic

Validation error / unknown cause  RSS feed

 
Jussi Taimiaho
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm having an annoying problem, which I cannot seem to solve. In my jsp -page I have a button, that should do a very simple task.


The "kasittelyController" -bean is found, I'm using other methods from that file. In the start of my method "kasittelyController.tilaEteenpain" there is an output of debug message, which is never shown.

All I'm getting is a Validation Error.

Any help from anyone,
thnx,
j
 
Jussi Taimiaho
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now update to this. If I used :


in my previous versions stead, still no luck.

but worked with:



I took away the underscore '_' from value -attribute. And it worked only if I clicked on the commandLink. The button still doesn't work. A bit of a mystery to me....
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm pretty sure the value attribute is for display purposes only. What are you trying to do with it?
 
Jussi Taimiaho
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what I want to have is a button that does the action ("tilaEteenpain"). I have those two objects in my jsp page. The commandLink works fine, the commandButton brings me a "Validation error".


<h:commandButton action="#{kasittelyController.tilaEteenpain}" value="buttonhyvaksy" type="submit" rendered="#{kasittelyBean.accept}"/>

<h:commandLink action="#{kasittelyController.tilaEteenpain}" value="TEST"/>
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All this talk of validation errors and yet, I see no validation error. Why don't you show us that? BTW, are you using MyFaces? If so, what version?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!