Monday, July 23, 2007

Hey got the soln

Hi,

Got the solution. Initially i was not getting any exceptions and later i fine tuned the log4j.properties now i see exceptions in logs. After couple of trial and errors and fine tuning i see that ... <..include file="" > does not work at all!

There is another approach to include the jspx files into each other; using facelets; i configured them and included all the files. now the JSTL works!

# logging icefaces
# Configure the logger to output info level messages into a rolling log file.
log4j.rootLogger=WARN, A1
log4j.appender.A1.File=../logs/mainLog.log
log4j.appender.A1=org.apache.log4j.FileAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
log4j.logger.org.apache=WARN
log4j.logger.com.sun.faces=WARN
log4j.logger.javax.faces=WARN
log4j.logger.com.icesoft=WARN
# To see server side updates being sent to the browser
log4j.logger.blocking.dom.update=WARN

#LOGGING FACELETS;
facelets.level = FINEST
facelets.compiler.level = WARN
facelets.tag.component.level = INFO
facelets.viewhandler.level = WARN

& in JSPX:
http://facestutorials.icefaces.org/tutorial/dynamic-includes-tutorial.html
















Wednesday, July 18, 2007

ICE Faces

we are now looking into the icefaces (ajax framework for JSF... looks hi-fi but simple one!) At first things were great... the custom components given by the site are really good... but as the things are goin by we see difficulties -as with any other open source product.

The first major once was with the file upload component. The component uploads all files to the same directory not allowing the user to choose which directory to upload. Hardly you have any freedom to customize the target location to save the file. Well, we could manage it with a workaround.

When observing the src code of icefaces, found that the upload component is being rendered in iframe, its calling a jsp page for which we write mapppings in jspx file. so the soln; wrote a filter which would intercept the url and push the file into the session. Later by another event in the jsp page we get the file from the session and stream it to the custom folder...


well this was simple 'cos we know how java works.... and by observation we can recognize the association btw files..... but the issue comes when the things are with configurations like installing JSTL into icefaces!

Going by manual, doing all entries dont help.. theres no error or stack trace which can give some clue... u need ot be sharlok homes.. trying to detect.... i have good knowledge abt the listeners filters, mappings but it does not seem to help :(

finally forums.... have to wait too long time to get a reply.. dont know what difficultites they have there :(

any how now we are stuck up with intalling JSTL into icefaces.... and i personally think having JSTL would add a lot of flexibility to the work that we do.

thats for now.. lets c how we fix the issue....!