Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!

Thilina Annakkage

Greenhorn
+ Follow
since Dec 24, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Thilina Annakkage

I like to have several menu-config.xml files, one for each module in my application. I wonder whether it is possible to achieve this.

I tried several ways, and I get XML parser error.

Here is what I tried.

In web.xml,
<context-param>
<param-name>menuConfigLocation</param-name>
<param-value>
/WEB-INF/module1/menu-config-module1.xml
/WEB-INF/module2/menu-config-module2.xml
</param-value>
</context-param>

<listener>
<listener-class>net.sf.navigator.menu.MenuContextListener</listener-class>
</listener>

Is it possible to have separate menu-config.xml for each module?
13 years ago
Hi all,

I am trying to use jscookMenu with Struts Tiles definition template.
When I try to call my page I get 'element.jscook_action' is null or not an object. And then my menu does not show up.

I wonder whether anybody used jsCookMenu with tiles definition templates?? My guess is that there is some confliction amoung Javascripts, JSF, and tiles definition templates. I am able to get most of the common h:, f: and t: tags work with tiles, only the jsCookMenu is giving problems.


Any comments/suggetions will be greatly appreciated.

Here is the full description of my problem.


------------------------------------------
My index.jsp page calls welcome.jsp.

----------------------------------------------
Welcome.jsp looks like this

<%@ taglib uri="http://struts.apache.org/tags-tiles"; prefix="tiles" %>
<tiles:insert definition="welcome.page" flush="true" />


------------------------------------------
My tiles-defs.xml got the following definitions

<tiles-definitions>

<definition name="layout" path="/pages/layout.jsp">
<put name="title" value="Sample Page Title" />
<put name="header" value="/pages/header.jsp" />
<put name="footer" value="/pages/footer.jsp" />
<put name="menuBody" value="/pages/menu.jsp" />
<put name="body" value="" />
</definition>

<definition name="welcome.page" extends="layout">
<put name="body" value="/pages/welcome_body.jsp"/>
</definition>

<tiles-definitions>

------------------------------------------
My menu.jsp looks like following

<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%>


<f:view>
<f:loadBundle basename="bundle.Messages" var="Message"/>
<t:jscookMenu layout="hbr" theme="ThemeOffice">
<t:navigationMenuItem id="nav_1" itemLabel="Home" action="go_display" />
</t:jscookMenu>
</f:view>
-------------------------------------------

My welcome_body.jsp page is a plain simple JSP with some html tags


In web.xml, I set the filter and filter-mapping

<filter>
<filter-name>extensionsFilter</filter-name>
<filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
....

</filter>


<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>*.faces</url-pattern>
</filter-mapping>

----------------------------------------------
Thanks again in advance
Thilina
14 years ago
JSF
Thanks Ashok. I bought it already.

Thanks so much
Thilina
Because there is a possibility that bean is in the pool. ejbLoad cannot be called on a bean in the pool. So, ejbActivate will be called before ejbLoad in this case.

Please see the life cycle diagram in page 320 of HFEJB for more clarification.

Thilina
Hi Deepa

When I was studying HFEJB, I made my own notes, in my own words. I found that writing notes down in my own words helps me to remember. coffee cram exams and sharpen pencil questions helps a lot, so don't skip them. If you need a break for a change, try questions in www.ejbcertificate.com as well.

Here is how I prepared for the exam.
1. First read a chapter in HFEJB, and took notes in my own words.
2. Did all the sharpen pencil questions, and coffee cram exam for that chapter.
3. Then went to ejbcertificate.com and did questions of that particular chapter.
4. Then carried on to the next chapter, and repeated steps 1-3.

I hope this will help.
Thilina
Hi Paul

The questions in ejbcertificate.com are similar to the real exam. However, as ejbcertificate.com does not tell you how many answers to select, but the real exam does, I found that real exam is easier. When I did mock exams in ejbcertificate.com, I got about 80%, but I got 91% for real exam.

However, I have some doubts about a few answers given in their mock exam. Some of them are discussed in this forum.

Thilina
Hello everyone,

I like to buy professional XML 2nd edition. If you want to sell yours could you please email me ( thilina_a@hotmail.com ). I live in Toronto, Canada.

I tried amazon.ca. The book is out of print there. I placed an order for used book, but no luck so far. I tried amazon.com, and they don't ship it to Canada.

Thanks
Thilina
Congratulations Raghavendra.

I wish you all the best for SCBCD. I recently did it. I used K&B HFEJB and www.ejbcertificate.com.
15 years ago
Congratulations, well done!
15 years ago
Thanks Nick and Mikalai for the advice
I recently passed SCWCD and SCBCD.

I am planning to do IBM XML test 141, and SCDJWS before the end of this year. Which one I should do first? I am thinking of doing IBM XML first? Could anybody give me suggestions, please.
Congratulations.
15 years ago
Impressive score! Congratulations
15 years ago
Congratulations!!

I also had the same weird problem about survey keeps coming, and the Exam Admin had to re-boot the computer.
15 years ago