• 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

Valid Javascript Syntax Highlighters for jsf file.

 
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic