Forums Register Login

JSP Expression lang in tag attributes

+Pie Number of slices to send: Send
Hi all
I am using TextButtonTag who inherits ButtonTag
ButtonTag declare attribute "disabled" in the tld , TextButtonTag also declare the same attribute "disabled" in the tld.



The problem is when I am using EL:


The "disabled" attribute always evaluated as false.

I tried replacing the setter to receive Boolean or String instead of just primitive boolean, so all Java calls will stay the same (no refactoring required) and jsp calls will routed to the setDisable that getting "String"



But I am getting "NoSuchMethodError", What am i doing wrong?
Thank you!
+Pie Number of slices to send: Send
JSP 1.1?
+Pie Number of slices to send: Send
 

Bear Bibeault wrote:JSP 1.1?


JSP 1
+Pie Number of slices to send: Send
Not helping. What versions of JSP and Servlets are you using? Are you sure that the EL is being correctly evaluated? Please show some effort.
+Pie Number of slices to send: Send
 

Bear Bibeault wrote:Not helping. What versions of JSP and Servlets are you using? Are you sure that the EL is being correctly evaluated? Please show some effort.


Servlet version (from servlet-api.jar manifest)

Specification-Title: Java API for Servlets
Specification-Version: 2.4

taglib version (from the tld)




EL is being correctly evaluated, I added test Javascript test code and I am able to see 'shouldDisable' value.


Thank you for you help.
+Pie Number of slices to send: Send
I wasted hours trying to figure out why won’t this EL evaluated eventually I replaced the code as so:

The first person to drink cow's milk. That started off as a dare from this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1426 times.
Similar Threads
html:checkbox disable property
Pass java Object to taglib
Problem while Tag lib Up gradation
Unable to find setter method for attribute:
create a checklistbox using tld in jsp
More...

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