• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

trouble with custom EL tag function

 
Bartender
Posts: 1810
28
jQuery Netbeans IDE Eclipse IDE Firefox Browser MySQL Database Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is the function that I want to call:


Here is the portion of the TLD file:

And the JSP lines:


But on the web page the dates are still being output as yyyyMMdd instead of being formatted by the function. No errors in the log. I can't seem to debug it because setting a breakpoint in the stringToMMddyyyy() method doesn't work, so either it's never getting called or EL functions don't debug like regular methods.

Any idea what I've done wrong?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What's in the HTML that's sent to the browser?
 
J. Kevin Robbins
Bartender
Posts: 1810
28
jQuery Netbeans IDE Eclipse IDE Firefox Browser MySQL Database Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here's one row. Line 4 is the date that I'm testing on.
 
J. Kevin Robbins
Bartender
Posts: 1810
28
jQuery Netbeans IDE Eclipse IDE Firefox Browser MySQL Database Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A simple System.out.println inserted into the static method indicates that it's never being called. This never outputs to the log.


And yet the value in record.dateWorkOrderInput shows up in the html. Puzzling.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So, I'm confused. What's showing in the HTML where you placed the call to the function?
 
J. Kevin Robbins
Bartender
Posts: 1810
28
jQuery Netbeans IDE Eclipse IDE Firefox Browser MySQL Database Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Line 4 in my previous post. The td containing 20140527. That's the value in record.dateWorkOrderInput, so it's seeing the value but it's not processing it through the function I created. Here's a little more of the jsp if that helps:


Crap. I think I found the issue. ${maintrecs} is a list of beans, but I've converted the servlet call to an Ajax response, so this table is not getting built the way I think it is. The servlet is already done with the jsp before DataTables gets the Ajax string and builds the table.

Damn, I feel stupid. I've got to drop back for minute, pause a bit and rethink this.
 
reply
    Bookmark Topic Watch Topic
  • New Topic