Elizabath Lima

Ranch Hand
+ Follow
since Nov 23, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Elizabath Lima

Yes, It is working without any issues.
Thanks Rob
Hi,

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..
17 years ago
JSF
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.
17 years ago
JSF
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.
Regards,
Elizabath
17 years ago
JSF
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>
</f:subview>

It is throwing the following error.

19:53:49,609 WARN [taglib] Can't leverage base class
java.lang.IllegalStateException
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?
17 years ago
JSF
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.
17 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

web.xml
-------
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
<param-value>org.apache.myfaces.renderkit.html.util.DefaultAddResource</param-value>
</context-param>
<filter>
<filter-name>MyFacesExtensionsFilter</filter-name>
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
<init-param>
<param-name>maxFileSize</param-name>
<param-value>100m</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>/faces/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>faces/index.jsp</welcome-file>
</welcome-file-list>
</web-app>

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.
17 years ago
Hi,

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??
18 years ago
JSP
Hi

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

Thanks
Elizabath
18 years ago
JSP
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
18 years ago
JSP
Hi all,


I'm trying to get the authentication object of the acegi security in the jsp using
(UserMaster)SecurityContextHolder.getContext().getAuthentication().getPrincipal()

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
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:146)



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

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
http://localhost:8080/RBCopy/WEB-INF/pages/Search.jsp?pager.offset=2

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
JSP