Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Valid Javascript Syntax Highlighters for jsf file.  RSS feed

 
chen young
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need a simple Syntax Highlighters in order to view xml files
The Syntax Highlighters should work via jsf.

I try to use this one alexgorbatchev but unfortunately its working perfectly only via FireFox (via IE the background color is change) .

I try to use some other tools but up until now I didnt find even one tool that its working perfectly with jsf in IE (with jsp its working great).

Can anyone please direct me to a tool that is valid with jsf and IE?

Thanks
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what you want. If you're looking for a syntax highligher for editing JSF View Definition (xhtml) files, I don't see where JavaScript and web browsers come in.

And if you're attempting to use JSF to output XML, JSF isn't suitable for that. You should be using a servlet or JSP(X).
 
chen young
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What I am trying to attempt is to “use JSF to output XML”

Can you please explained why should I use jspx instead of xhtml ?
What are the benefits in this case ?

Thanks
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSF is HTML. HTML is not XML. JSF xhtml is XML, but only at the source-code level, not at the destination, since JSF converts it to HTML.

Above and beyond all that, however, is the fact the in JSF, JSF expects to be the sole driver of the HttpServletResponse headers and datastream. If you attempt to insert yourself into the process, you will collide with JSF's assumptions on how to handle the output.

JSPX, on the other hand, is a very good way to generate XML response data, since you can template the XML format instead of simply hammering things into place. And JSPX has JSP tags that allow setting things like the Content-type header which JSF does not.

JSF web applications are J2EE web applications that use JSF. JSF doesn't have to control every URL that comes in and every response that goes back, it just facilitates the processing of HTML form-based processes. In cases where you're dealing with something other than HTML, a servlet or JSP is better. The JSF and non-JSF portions of the webapp can freely communicate, since JSF session-scope backing beans are the exact same thing as ordinary J2EE session-scope backing beans. The only distinction is that JSF created the beans automatically on-demand if they didn't already exist.
 
chen young
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!