Dipeeka Suryawanshi

Greenhorn
+ Follow
since Jul 20, 2012
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 Dipeeka Suryawanshi

You should map in validator-rules.xml file with your form beans & serailized beans
5 years ago
Hi All,

I am using <t:jscookMenu/> for implementing Menu. Using JSF1.2 & Eclipse indigo with Apache tomcat7.0 apps server.

when i am clicking on menu it gives me viewExpired Exception.

my Code is like :

jsCookMenu.jsp :

<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ page session="false" contentType="text/html; charset=ISO-8859-1"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>jSCookMenu Implementor</title>
</head>
<body>
<f:view>
<h:form id="MenuForm">
<t:jscookMenu layout="hbr" theme="ThemeOffice">
<t:navigationMenuItem itemLabel="File">
<t:navigationMenuItem action="new-file" itemLabel="New"/>
<t:navigationMenuItem action="open-file" itemLabel="Open"/>
<!-- <t:navigationMenuItem action="#{menuBB.navItems }" itemLabel="Close" />-->
<t:navigationMenuItem action="Close" icon="images/arrow-ff.gif" itemLabel="Close"></t:navigationMenuItem>
<t:navigationMenuItems value="#{menuBB.navItems}"></t:navigationMenuItems>
</t:navigationMenuItem>

<t:navigationMenuItem itemLabel="Edit">
....
</t:navigationMenuItem>
</t:jscookMenu>
</h:form>
</f:view>
</body>
</html>

DynamicMenuTest.java :

package com.aliasBean.example.domain;

import org.apache.myfaces.custom.navmenu.NavigationMenuItem;

public class DynamicMenuTest {

private NavigationMenuItem[] navItems;

public DynamicMenuTest() {

// children for item 2
NavigationMenuItem[] subItems = new NavigationMenuItem[2];
subItems[0] = new NavigationMenuItem("Subitem 2_1 Label","action2_1", "iconUrl", false);
subItems[1] = new NavigationMenuItem("Subitem 2_2 Label","action2_2", "iconUrl", false);

// item 2
NavigationMenuItem itemWithChildren = new NavigationMenuItem("Item 2 Label", "action2", "iconUrl", false);
itemWithChildren.setNavigationMenuItems(subItems);

// root items
navItems = new NavigationMenuItem[3];
navItems[0] = new NavigationMenuItem("Item 1 Label","action1", "iconUrl", false);

navItems[1] = itemWithChildren;
navItems[2] = new NavigationMenuItem("Item 3 Label","action3", "iconUrl", false);

System.out.println("navItem -->"+navItems[2]);
}

public NavigationMenuItem[] getNavItems() {
return navItems;
}

public void setNavItems(NavigationMenuItem[] navItems) {
this.navItems = navItems;
}


public String close()
{
System.exit(0);

return "exit";
}
}

faces-config.xml :

<managed-bean>
<managed-bean-name>menuBB</managed-bean-name>
<managed-bean-class>com.aliasBean.example.domain.DynamicMenuTest</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>

</managed-bean>

<navigation-rule>
<from-view-id>/jsCookMenu.jsp</from-view-id>
<navigation-case>
<from-outcome>exit</from-outcome>
<to-view-id>/jsCookMenu.jsp</to-view-id>
</navigation-case>
</navigation-rule>

web.xml :

<error-page>
<exception-type>javax.faces.application.ViewExpiredException</exception-type>
<location>/sessionExpired.jsf</location>
</error-page>

<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/sessionExpired.jsf</location>
</error-page>

<error-page>
<error-code>404</error-code>
<location>/sessionExpired.jsf</location>
</error-page>

<error-page>
<error-code>500</error-code>
<location>/sessionExpired.jsf</location>
</error-page>

In web.xml file i have already defined that ViewExpired Exception.
Still when i am clicking on Menu to perform some action it gives " javax.faces.application.ViewExpiredException ".

Please provide me the solution ,why i am facing this exception.
5 years ago
JSF
I am implementing Tree Structure Demo application using JSF 1.2 & Richfaces.

But it gives error,org.apache.jasper.JasperException: Unable to convert string "#{treeDemo.servers}" to class "javax.el.ValueExpression" for attribute "value": Property Editor not registered with the PropertyEditorManager.

i am using like as attached files.
I have added rcfaces-core-I2249.jar & rcfaces-html-I2249.jar in lib folder under WebContent folder of this Dynamic Web application.

Please check & post reply why i m facing that Error

5 years ago
JSF
I have tried this same application in Weblogic10.3.4 server. It's working fine ,but m not getting why it's working very slow in Apche tomcat7.0.14 on jdk1.6 or 1.7 using database oracle 11i.

Specially the pages which has used of <a4j:status> & <a4j:commandLink> tags in JSF 1.2.

like :
<h:form id="TicketDashboardForm" enctype="multipart/form-data">
<a4j:status id="pause" onstart="loader.show();document.getElementById('formName').focus();" onstop="loader.hide();"/>
<t:column width="65" style="background-color:#{tktData.SLAcolor};">
<f:facet name="header">
<hutputLabel value="Resolution SLA" />
</f:facet>
<a4j:commandLink value="#{tktData.resolutionSLA}" action="#{TDBB.showSLADetails}" styleClass="label"
oncomplete="sla.show();document.getElementById('formName').focus();">
<t:updateActionListener value="#{tktData}" property="#{TDBB.ticketData}" />
</a4j:commandLink>
<f:facet name="footer">
<hutputLabel value="#{TDBB.totalData1.resolutionSLA}" style="width:100%; background-color:#{TDBB.totalData1.SLAcolor};"/>
</f:facet>
</t:column>
5 years ago
JSF
I am working on JSF 1.2 with Apache tomcat7.0.14 & jre1.7 with IDE Eclipse Indigo.

I have used ajax tags like,<a4j:commandLink> & <a4j:status>.

JSF pages which i have used these tags it's working very slow on apache tomcat7.0.14 with database oracle 11i.

But, it's working fine on weblogic10.3.4 server with database oracle11i.

Please rply why it's working slow on Apche tomcat7.0.14 with database oracle 11i using jsf1.2 with ajax like <a4j> tags.

Is it supports for ajax <a4j> tags in tomcat7.0.14 in eclipse indigo & databse oracle11i
5 years ago
JSF
I m working on jsf1.2 application using Application server as Apache Tomcat7.0.14.
It's working very slow specially jsf pages which i have used a4j:status> & <a4j:commandLink> like
<a4j:commandLink value="#{tktData.resolutionSLA}" action="#{TDBB.showSLADetails}" styleClass="label"
oncomplete="sla.show();document.getElementById('formName').focus();">
<t:updateActionListener value="#{tktData}" property="#{TDBB.ticketData}" />
</a4j:commandLink>
I have tried it on Jdk1.6 as well as Jdk1.7
Please guide why it's working slow.

Is Ajax ,like <a4j> tags supports on Apache tomcat7.0.12 or not.
5 years ago
JSF