File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes setDynamicAttribute not being invoked Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "setDynamicAttribute not being invoked" Watch "setDynamicAttribute not being invoked" New topic

setDynamicAttribute not being invoked

David Pantale
Ranch Hand

Joined: Mar 16, 2010
Posts: 32
Hi there, I can't seem to get the setDynamicAttribute method to work properly. I can get the application to print out the options but not the attributes. Below is my code (note I've been playing with it by commenting and uncommenting parts) :

the jsp:

the tld:

As I said, I can get it all to work except printing out the size attribute, to do that I have to put "out.print(String.format(ATTR_TEMPLATE, "size", this.size));" into my code.

Can anyone see why the setDynamicAttribute method is not being called by the container?

Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

There's a typo here, it should be "dynamic-attributes".

[My Blog]
All roads lead to JavaRanch
Jayavardhan geepi
Ranch Hand

Joined: Jul 21, 2010
Posts: 66

I have the same problem even after checking all typos.

I'm getting jasperexception at the line of tag invocation.

It says root cause as :

Can someone help ... What might went wrong..?
I agree. Here's the link:
subject: setDynamicAttribute not being invoked
jQuery in Action, 3rd edition