Total Pageviews
2008/12/13
2008/12/11
Troubleshooting on Tomahawk JSCook Menu
http://wiki.apache.org/myfaces/JSCook_Menu
Check Notes and Known issues.
I had faced this issue Place of Menu tag in relation to Forms:
Menus must be placed inside forms starting with Tomahawk 1.1.3.
With regard to how to do configuration in web.xml, please check http://myfaces.apache.org/tomahawk/extensionsFilter.html
Check Notes and Known issues.
I had faced this issue Place of Menu tag in relation to Forms:
Menus must be placed inside forms starting with Tomahawk 1.1.3.
With regard to how to do configuration in web.xml, please check http://myfaces.apache.org/tomahawk/extensionsFilter.html
Labels:
JSF
2008/12/10
java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.
Error Message
Solution
If you are using servlets 2.4, you cannot do a jsp:forward or request.getDispatcher().forward to any page, because the extensions filter is not executed. Instead you may want to try with a response.sendRedirect(). Therefore, I need to modify to response.sendRedirect("template-client.jsf");
1 2 3 4 5 6 7 | java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html at org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing(AddResourceFactory.java:389) at org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(AddResourceFactory.java:349) at org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:279) at org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.addResourcesToHeader(HtmlJSCookMenuRenderer.java:404) at org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.encodeBegin(HtmlJSCookMenuRenderer.java:363) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:788) |
Solution
If you are using servlets 2.4, you cannot do a jsp:forward or request.getDispatcher().forward to any page, because the extensions filter is not executed. Instead you may want to try with a response.sendRedirect(). Therefore, I need to modify
Labels:
JSF
2008/12/05
2008/11/23
Integrate Seam with Apache Trinidad, Facelets and JPA
Agenda
http://www.slideshare.net/junyuo/integrate-seam-with-apache-trinidad-facelets-and-jpa-presentation
- Seam
- Seam + JSF
- Seam Annotation in JSF Implementation
- Seam + JPA (No need to change)
- Environment Configuration
- Use Case
- Page Flow
- Class Diagram
- Sequence Diagram
http://www.slideshare.net/junyuo/integrate-seam-with-apache-trinidad-facelets-and-jpa-presentation
Labels:
Apache Project,
Facelets,
JPA,
JSF,
Seam
2008/11/06
2008/11/05
Re: [jasperreports-questions] IS_IGNORE_PAGINATION parameter
Re: [jasperreports-questions] IS_IGNORE_PAGINATION parameter
I had faced the same problem regarding exprting report to pdf in browser but bring blank page.
The root cause is the IS_IGNORE_PAGINATION had been set into FALSE, so it cannot diaplay correctly.
I had faced the same problem regarding exprting report to pdf in browser but bring blank page.
The root cause is the IS_IGNORE_PAGINATION had been set into FALSE, so it cannot diaplay correctly.
Labels:
JasperReport
2008/10/29
2008/10/28
Highlighting Odd and Even Rows in JasperReports - Brian Burridge
Highlighting Odd and Even Rows in JasperReports - Brian Burridge: "new Boolean( $V{PAGE_COUNT}.intValue() % 2 ==0 )"
In order to highlight odd or even rows with a background color, in JasperReports, first create a rectangle element with a background of your color choice, and send it to the background (in JasperAssistant, right click on the rectangle, choose Arrange and then Send to Back). Second, use the following expression to set when the element should appear, by placing the expression in the Print When Expression field of the rectangle element. Where the $V{PAGE_COUNT} appears, you can use that, to base it on the row number on the page, or use $V{REPORT_COUNT} to base it on the row within the report. Also, if you are using a group, you can use $V{groupname_COUNT} where groupname is replaced with the name of your group. The expression below will then test the row number within the Page, Report, or Group (whichever you selected) and if its divisible by 2, it will display the rectangle element with the background color.
In order to highlight odd or even rows with a background color, in JasperReports, first create a rectangle element with a background of your color choice, and send it to the background (in JasperAssistant, right click on the rectangle, choose Arrange and then Send to Back). Second, use the following expression to set when the element should appear, by placing the expression in the Print When Expression field of the rectangle element. Where the $V{PAGE_COUNT} appears, you can use that, to base it on the row number on the page, or use $V{REPORT_COUNT} to base it on the row within the report. Also, if you are using a group, you can use $V{groupname_COUNT} where groupname is replaced with the name of your group. The expression below will then test the row number within the Page, Report, or Group (whichever you selected) and if its divisible by 2, it will display the rectangle element with the background color.
Labels:
JasperReport
2008/10/25
CAS (Central Authentication Service) Enhancement
Agenda
http://www.slideshare.net/junyuo/cas-enhancement-presentation
- Why SSO (Single-Sign On)?
- Central Authentication Service (CAS)
- CAS Installation
- As-Is and To-be Process
- Modification Process
http://www.slideshare.net/junyuo/cas-enhancement-presentation
2008/10/21
Facelets with Trinidad - Myfaces Wiki
Facelets with Trinidad - Myfaces Wiki
This article is used to explain how to integrate Facelets with Trinidad.
This article is used to explain how to integrate Facelets with Trinidad.
Labels:
Apache Project,
Facelets,
JSF
2008/10/02
CAS Demo Application Installation
CAS Demo Application Installation
including troubleshooting (CAS Demo App. cannot be running correctly)
including troubleshooting (CAS Demo App. cannot be running correctly)
2008/09/20
Joda Time - Java date and time API - Home
Joda Time - Java date and time API - Home
Joda-Time provides a quality replacement for the Java date and time classes. The design allows for multiple calendar systems, while still providing a simple API. The 'default' calendar is the ISO8601 standard which is used by XML. The Gregorian, Julian, Buddhist, Coptic, Ethiopic and Islamic systems are also included, and we welcome further additions. Supporting classes include time zone, duration, format and parsing.
Joda-Time provides a quality replacement for the Java date and time classes. The design allows for multiple calendar systems, while still providing a simple API. The 'default' calendar is the ISO8601 standard which is used by XML. The Gregorian, Julian, Buddhist, Coptic, Ethiopic and Islamic systems are also included, and we welcome further additions. Supporting classes include time zone, duration, format and parsing.
2008/09/19
Spring + JPA + TOPLink + DAO Step by Step
- Spring + JPA + TopLink + DAO Architecture
- Spring/Persistence Config File
- Implement DAO – CRUD
- Implement ServiceBean
- Implement Client Side Code
http://www.slideshare.net/junyuo/spring-toplinkjap-dao-step-by-step-presentation
Labels:
Design Pattern,
JPA,
Spring,
TopLink
2008/09/03
Spring + JPA + DAO Step by Step
Spring + JPA + DAO Step by Step
- Spring + JPA + DAO Architecture
- Spring Config File
- Implement DAO – CRUD
- Implement ServiceBean
- Implement Client Side Code
Labels:
Design Pattern,
JPA,
Spring
2008/08/31
Java Persistence API (JPA) Step By Step
- What is Java Persistence API
- Primary Features
- Five Steps to Implement JPA
- Download Hibernate Components
- Prepare Database, and Download JDBC Driver
- Implemented POJO entities and add annotations
- Persistence.xml
- Implemented client side code via EntityManager
http://www.slideshare.net/junyuo/java-persistence-api-jpa-step-by-step-presentation
2008/08/20
2008/06/29
Applied MyEclipse and JUnit to do Hibernate Code Gen and Testing
• Hibernate Code Generation
• Code Gen Process
• Generate DAO for the four tables
• Artifacts
• Spring Configuration File
• Apply JUnit to do DAOs Test
• JUnit Framework
• How to Test with JUnit?
• Simplified Workflow of Applying JUnit
• Testing Process
• Generate Unit Test Result via Ant
http://www.slideshare.net/junyuo/applied-myeclipse-and-junit-to-do-hibernate-code-gen-and-testing/
• Code Gen Process
• Generate DAO for the four tables
• Artifacts
• Spring Configuration File
• Apply JUnit to do DAOs Test
• JUnit Framework
• How to Test with JUnit?
• Simplified Workflow of Applying JUnit
• Testing Process
• Generate Unit Test Result via Ant
http://www.slideshare.net/junyuo/applied-myeclipse-and-junit-to-do-hibernate-code-gen-and-testing/
Subscribe to:
Posts (Atom)