Elizabath Lima

Ranch Hand
+ Follow
since Nov 23, 2005
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Elizabath Lima

Yes, It is working without any issues.
Thanks Rob

Would you please tell me how i can read the stored procedure code from my sybase database through a java program. I read about sp_helptext.
How can i use to get the procedure code?
I'm calling the procedure using call dbadmin.GetRecords(). How can i get the same procedures code using some java code?
Hi Mark,

Thanks for the reply.
But i was heading to another intention.
Actually i don't need any images at the treenode. Also i wanted to change the navigation icons ( the ones with > and downward arrow) images. I like to have the tree2 of tomahawk node image. For that only i started changing the images in the richfaces jar file.
I couldn't find the source file for the icon display also the image changes are not affecting my display.

Please suggest me a way to get thru..
16 years ago
Hi All,

I'm having a rich tree component.
It is calling a method onNodeSelect() method on nodeSelectListener attribute and rerenders two <a4j:outputPanel> coponents.
These two <a4j:outputPanel> components have the rendered property depending on displayStatus attribute value of the backing bean. Each <a4j:outputPanel> is having a dataTable component.

<a4j:outputPanel id="summary" rendered="#{CriteriaBean.displayStatus=='false'}">
<h:dataTable value="#{CriteriaBean.summaryList}" var="summary" id="summaryPane" >

I'm setting the displayStatus in the onNodeSelect() method. But the page is not displaying the dataTable eventhough i put reRender=summary in the rich tree.

I also tried binding the dataTable to backing bean and setting the rendered property there. It also not working.
How can i fix this?
Please help.
16 years ago
Hello All,

I would like to use richfaces tree structure. I could render the tree too.
But the issue with that is the folder icon display at each tree node.
For some reason i don't want the folder icon at the tree node.
Is there anyway to get rid of that?
I tried to change the image (iconFolder.gif) to some 1X1 pixel image in the richfaces jar file.
But when i added the new jar with new image for icon, that image is not loading.
I'm using Jboss4.2 as my application server.

Please help me to remove the folder display at tree node.

Thanks in advance.
16 years ago
Hi All,

I'm trying to include a JSF page inside another page using an <a4j:commandLink>. I could include an html page using this ajax.
I'm trying to include the a jsf contained page using the following code:

<f:subview id="sub1">
<a4j:include viewId="#{bean.viewPageName}"></a4j:include>

It is throwing the following error.

19:53:49,609 WARN [taglib] Can't leverage base class
at com.sun.faces.taglib.jsf_core.ViewTag.getComponentType(ViewTag.java:258)
at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:215)
at javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:476)
at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:660)
at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1111)
at com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(ViewTag.java:179)
at org.apache.jsp.display_jsp._jspx_meth_f_005fview_005f0(displayTree_jsp.java:155)

Can anyone say what went wrong?
16 years ago
Dear Abiodun,

I copied myfaces-api-1.1.5.jar and myfaces-impl-1.1.5.jar to server\default\lib. Then also i'm getting the same exception.
Can you explain a bit more on how to disable JSF that comes with JBoss?
I could execute the JSF sample applications without Myfaces jars.
This exception comes when i add the those two jars.
actually i need to use JSF along with tree2 structure of Tomahawk.
Please help.
16 years ago
Hello All,

I'm pretty newbie to JSF and i'm trying to use the tomahawk's tree2 structure. But when i start my Jboss with the tomahawk-1.1.3.jar along with myfaces-api-1.1.5.jar and myfaces-impl-1.1.5.jar, it is giving me the following error. Actually i got many suggesstions on this issue but all end in vain. Please share your thoughts and any help will really appreciate.

server: Jboss4.2.1GA

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"

<servlet-name>Faces Servlet</servlet-name>
<servlet-name>Faces Servlet</servlet-name>

Following error from Jboss console
15:27:28,578 INFO [FacesConfigurator] Starting up MyFaces-package : tomahawk in version : 1.1.3 from path : file:/D:/Softwares/Servers/jboss-4.2.1.GA/server/default/deploy/ER-Tree.war/WEB-INF/lib/tomahawk-1.1.3.jar
15:27:28,718 WARN [LocaleUtils] Locale name in faces-config.xml null or empty, setting locale to default locale : en_US
15:27:30,171 INFO [FacesConfigurator] Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
15:27:30,187 INFO [StartupServletContextListener] ServletContext 'D:\Softwares\Servers\jboss-4.2.1.GA\server\default\.\deploy\ER-Tree.war\' initialized.
15:27:30,187 WARN [JBossJSFConfigureListener] MyFaces JSF implementation found! This version of JBoss AS ships with the java.net implementation of JSF. There are known issues when mixing JSF implementations. This warning does not apply to MyFaces component libraries such as Tomahawk. However, myfaces-impl.jar and myfaces-api.jar should not be used without disabling the built-in JSF implementation. See the JBoss wiki for more details.
15:27:30,796 FATAL [config] null MessageFactory
15:27:30,796 ERROR [STDERR] java.lang.ClassCastException: org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener
15:27:30,796 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:825)
15:27:30,796 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:486)
15:27:30,796 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:381)
15:27:30,796 ERROR [STDERR] at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:69)
15:27:30,796 ERROR [STDERR] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
15:27:30,796 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
15:27:30,796 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
15:27:30,796 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
15:27:30,796 ERROR [STDERR] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
15:27:30,796 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:27:30,796 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
15:27:30,796 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
15:27:30,796 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
15:27:30,796 ERROR [STDERR] at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
15:27:30,796 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
15:27:30,796 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
15:27:30,796 ERROR [STDERR] at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
15:27:30,796 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:27:30,796 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
15:27:30,796 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
15:27:30,796 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
15:27:30,796 ERROR [STDERR] at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
15:27:30,796 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)

Thanks in advance.
16 years ago

I'm developing a web application using spring and hibernate and Mysql. My database contains huge records (more than 2 lacs). Most of the time, for each user, i need to fire a query to select a considerable number of records (say 20 thousand). After fetching the result i need to disply it using pagination. So i don't nedd all the records at the same time, but by clicking on the next page (or a specific page number) link i need to show the respective records.

While executing the query, it takes long time and responds with out of memory error. I tried setting getHibernateTemplate().setFetchSize(200) but the performance is same. I tried different combination of changing the mysql driver, setting hibernate.jdbc.batch_size but all in vain.

How i can resolve this performance issue? wat approach i can follow to solve this? What parameters i need to take care for a large database application like this?
Hi all

I'm searching for a solution to get the value (which is a list) from a java.util.map with a key.
I tried this option
<c:set var ="county" value="${specs.values.parameter.stateid}"/>
where 'parameter.stateid' is my key in the map and 'specs' is my map
and iterating thru the loop using
<c:forEach items="${county}"...

I'm not getting the list from my map using
<c:set var ="county" value="${specs.values.parameter.stateid}"/>

what i can do to resolve this??
17 years ago

Actually i'm in need of welcoming the user by his name to home page after login. After login i need to show the home page. As acegi does the login, the success page is the home page and i'm having only the authentication object from the acegi. Thats why i accessed the principal in the jsp.

Can any one suggest how i can solve this problem securely

17 years ago
Hi.. all

This reply is just for sharing the solution..

<c:set var="authentication" value="${sessionScope['ACEGI_SECURITY_CONTEXT'].authentication}"/>

This is acegi's authentication object. And you can access the User object using

<c:set var="userName" value="${authentication.principal.userName}"/>

Hope this may help
17 years ago
Hi all,

I'm trying to get the authentication object of the acegi security in the jsp using

i'm getting this object if this is put in <% %>

but if i'm using the same by

<c:set var="user" value="${SecurityContextHolder.getContext().getAuthentication().getPrincipal()}" />

i'm getting following exception

org.apache.jasper.JasperException: /WEB-INF/pages/Search.jsp(235,6) The function getContext must be used with a prefix when a default namespace is not specified

Does anybody experienced this scenario? What i can do to get the user in my jstl variable?
17 years ago

I'm trying to do paging for my search results. For this i'm using a taglib "taglib uri="http://jsptags.com/tags/navigation/pager".
This is my url (http://localhost:8080/RBCopy/SearchResult.do) before clicking on next page link and after clicking it becomes

and it gives the follwoing exception
HTTP Status 404 - /RBCopy/WEB-INF/pages/Search.jsp

type Status report

message /RBCopy/WEB-INF/pages/Search.jsp

description The requested resource (/RBCopy/WEB-INF/pages/Search.jsp) is not available.
Apache Tomcat/5.5.9

how i can resolve this problem?
Thanks a lot Stefan Evans

You have done a great work for me.

And everything working fine for me except calling a jsp from another jsp in the spring framework.
18 years ago