Search found 5 matches

by zbeeker
Sat Sep 06, 2008 3:17 pm
Forum: General discussion
Topic: Mixing ExtJS in a JSP file
Replies: 11
Views: 28608

I don't think this thread is getting anywhere. All I want to do is hide the jspx/jsf from the Javascript parser. If it can't be done then it can't be done.

<? ?> is, as far as I know, for PHP instructions so for me it works since I'm not using PHP. On the server, the JSP interpreter just ignores it.
by zbeeker
Sat Sep 06, 2008 4:03 am
Forum: General discussion
Topic: Mixing ExtJS in a JSP file
Replies: 11
Views: 28608

:D Of course // is for comments otherwise the <? would be flagged as a Javascript error and I'm trying to get rid of errors not create more. That is why I Javascript commented out the <? and ?>. I was hoping, "the parser will ignore the content between <? ?>" would be true and be true for -all- cases.
by zbeeker
Fri Sep 05, 2008 5:08 pm
Forum: General discussion
Topic: Mixing ExtJS in a JSP file
Replies: 11
Views: 28608

Okay, I tried the following but I think the "//" overrides the "<?". var store = new Ext.data.SimpleStore({ fields: ['objectId', 'code'], data :[ // <? <web:dblist var="tagIssuers" name="tagIssuers-list" /> <c:forEach items="${tagIssuers}" var="item" varStatus="it"> [ '${item.objectId}', '<spring:es...
by zbeeker
Fri Sep 05, 2008 3:39 pm
Forum: General discussion
Topic: Mixing ExtJS in a JSP file
Replies: 11
Views: 28608

Okay. Yes that works. It is a bit hard on my arithitic fingers. The problem is my JSP files are 90% or more Javascript that is why I open the JSP in the Spket editor. I guess I need to post to a different list to find best practices when mixing Javascript with JSP or how others approached ExtJS use ...
by zbeeker
Thu Sep 04, 2008 11:04 pm
Forum: General discussion
Topic: Mixing ExtJS in a JSP file
Replies: 11
Views: 28608

Mixing ExtJS in a JSP file

Is there any best practice(s) for mixing ExtJS, in general Javascript with JSP (or vice versa)? I have the following in a foo.jsp file which I don't think is too hard to read or maintain but it is annoying to see all the error squigglies... sort of defeats the purpose of having a javascript parser i...