tel8618217223380 / jsflot

Automatically exported from code.google.com/p/jsflot
1 stars 1 forks source link

org.jsflot.components.FlotChartTag.setProperties causes IllegalArgumentException in JBoss #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a JSP page and insert a jsflot tag in the page
2. Deploy to JBoss 5.1.0.GA server
3. When rendering the page, JBoss will throw an IllegalArgumentException

What is the expected output? 
Expect to see the chart render.

What do you see instead?
Nothing--server.log rpeorts IllegalArgumentException.

What version of the product are you using?
Version 0.6.0

Please provide any additional information below.

The stack trace:
java.lang.IllegalArgumentException
    at javax.faces.component.UIComponent.setValueExpression(UIComponent.java:266)
    at org.jsflot.components.FlotChartTag.setProperties(FlotChartTag.java:446)
...

Looking at line 446, I see:
component.setValueExpression("id", this.id);

According to the Javadoc for UIComponent.setValueExpression:
    IllegalArgumentException  - if name is one of "id" or "parent"

So, I think JBoss is just following the docs. I could be wrong.

Original issue reported on code.google.com by mlassite...@gtempaccount.com on 15 Jul 2010 at 10:54

GoogleCodeExporter commented 9 years ago
It does appear to be a JSP only issue--moving my test code into facelets seems 
to have side-stepped/resolved the issue.

Also, downloaded the source and commented out the offending line (446) and the 
error went away with JSP, however, I was not able to specify the ID without 
another error bubbling up.  

In short, appears it does not work well with JSP. 

Original comment by mlassite...@gtempaccount.com on 16 Jul 2010 at 12:46