Forums Register Login

Validation error / unknown cause

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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....
+Pie Number of slices to send: Send
I'm pretty sure the value attribute is for display purposes only. What are you trying to do with it?
+Pie Number of slices to send: Send
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"/>

 
+Pie Number of slices to send: Send
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?
On top of spaghetti all covered in cheese, there was this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1126 times.
Similar Threads
jQuery-How to highlight invalid input field value after getting validation error
Struts and new page validation
Variable not changing before form submit?
"null is requred" validation message
List's contains(Object o) method doesn't work for object version.
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:48:28.