aspose file tools
The moose likes JSF and the fly likes Valid Javascript Syntax Highlighters for jsf file. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Valid Javascript Syntax Highlighters for jsf file. " Watch "Valid Javascript Syntax Highlighters for jsf file. " New topic
Author

Valid Javascript Syntax Highlighters for jsf file.

chen young
Ranch Hand

Joined: Sep 09, 2005
Posts: 178
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
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14572
    
    7

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).


Customer surveys are for companies who didn't pay proper attention to begin with.
chen young
Ranch Hand

Joined: Sep 09, 2005
Posts: 178
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

Joined: Jun 25, 2001
Posts: 14572
    
    7

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

Joined: Sep 09, 2005
Posts: 178
Thanks
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Valid Javascript Syntax Highlighters for jsf file.
 
Similar Threads
Custom Editor Plugin in Eclipse
cookies
JSF Problem with PDA
Resolve f:param value at link construction time
How to call a jsf bean method from a html hyperlink?