Rehana Shaik

Ranch Hand
+ Follow
since Jan 03, 2003
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 Rehana Shaik

Hello,

If follwoing are the bean things (extracted from Heads First for EJB):

1. get reference to EJB Home
2. get reference to EJB Object
3. get security information from client
4. get primary key
5. force a transaction to rollback(CMT)
6. find if a transaction is already set to rollback(CMT)
7. get transaction reference and call methods on it(BMT)

Which are allowed to be done in :
1. stateless session bean's ejbRemove?
2. ejbRemove and unsetEntityContext of entity bean (CMT).
3. onMessage in message driven bean (ofcourse 1, 2, 3, 4 are already
ruled out).

Thanks in advance.
Hi,
When i tried to get bean from request as i done in my Option1 it was getting values. but when i tried like my Option2 i am getting a string object rather than a class object.

Option1
fc.getApplication().createValueBinding("#{testBean}").getValue(fc)

option 2
beanName="\"#{"+beanName+"}\"";
fc.getApplication().createValueBinding(beanName).getValue(fc)

with the second option i am just getting a String object with the enitre package structure.
according to my requirements i have to use option2 kind of thing to know dynamically which bean is in request and process it.

Any one has any ideas what is going wrong here.

thanks in advance
17 years ago
JSF
Hi,
Thanks for ur response.
I inserted this in my code where i was opening a popup but it's not working. I want to send value to my child window from my parent and the value is inside datatable. I have to send the row number which is selected.
Please tell me how to do this
17 years ago
JSF
Hi,
I am having a datatable. Inside datatable i am having a hyperlink which will open a popup page. Now i want to send some parameters(selected value) to the popup page . How can i get the selected value to the javascript ? so that i can use it in popup page.
Any one has any idea about this? please help me

Thanks in advance
17 years ago
JSF
Hi,
I am having a command link inside datatable and my managed bean is in session scope and i am having another model bean which i am using to pass some values to next page . when i wants get getModelBean() inside action method, which is triggered by command link iam getting follwing error


java.lang.IllegalStateException
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:131)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:73)
... 21 more
Caused by: java.lang.IllegalStateException
at com.sun.faces.context.FacesContextImpl.assertNotReleased(FacesContextImpl.java(Inlined Compiled Code))
at com.sun.faces.context.FacesContextImpl.getApplication(FacesContextImpl.java(Compiled Code))
at sg.com.ibm.srms.web.pagecode.common.SearchRequestsNew.getFieldsRendered(SearchRequestsNew.java:665)
at sg.com.ibm.srms.web.pagecode.common.SearchRequestsNew.setFieldsRendererValues(SearchRequestsNew.java:654)
at sg.com.ibm.srms.web.pagecode.common.SearchRequestsNew.doLink1Action(SearchRequestsNew.java:577)


i was doing this kind of thing in some other pages there everything working fine only for the links inside commadlink having this kind of problem. Anyone know solution to this.

Thanks in advance
17 years ago
JSF
Hi,
I am having a page which opens a popup page when i click, first time everything is going fine. once the window is closed if again i want to open the popup window i am getting pagenot found exception in my parent page. Both my child and parent are jsf pages.

this is javascript in my parent form
_______________________________________________
popup=window.open('PopupList.jsp', "popup",
"height=500,width=350,toolbar=np,menubar=no,"+ "scrollbars=no");

if (!popup.opener)
popup.opener = self;
popup.focus();
return false;
_____________________________________________________________________
My child window code

------------------------------
window.opener.document.forms['form1'].elements['form1:field1'].value="aaaa";
alert("hello");
// document.forms['popupListForm'].submit();
window.close();
-----------------------------
17 years ago
JSF
Hi,
I am using tiles along with JSF, Working on RAD. Everything working fine until i applied fixpack 6.0.0.2 . Now i am getting TilesServlet not found exception. Any one have any idea related to this.

the exception is like this
__________________________________________________________________
[Servlet Error]-[org.apache.struts.tiles.TilesServlet]: java.lang.ClassNotFoundException: org.apache.struts.tiles.TilesServlet
at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:517)
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:414)
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at java.beans.Beans.instantiate(Beans.java:202)
at java.beans.Beans.instantiate(Beans.java:63)
at com.ibm.ws.webcontainer.servlet.ServletWrapper$3.run(ServletWrapper.java:1463)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.loadServlet(ServletWrapper.java:1458)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1391)
at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:86)
at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:550)
at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:387)
at com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:114)
_____________________________________________

Thanks in advance
17 years ago
JSF
Hi all,
I am having a dropdown menu which is getting values from a previous page result and displaying it properly in my second page. But when i submit my second page i am getting following error. I am adding results to a model bean in first page action and accessing same model bean in my second page.My bean scope is request scope.

E SRVE0026E: [Servlet Error]-[Faces Servlet]: java.util.NoSuchElementException
at javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:96)
at javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:122)
at javax.faces.component.UISelectOne.matchValue(UISelectOne.java:140)
at javax.faces.component.UISelectOne.validate(UISelectOne.java:113)
at javax.faces.component.UIInput.executeValidate(UIInput.java:796)
at javax.faces.component.UIInput.processValidators(UIInput.java:412)
at javax.faces.component.UIForm.processValidators(UIForm.java:165)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:940)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:940)
at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:377)
at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:80)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:201)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91)


Thanks in advance
17 years ago
JSF
Hi Varun,
Thanks for the response. I am defaulting the value to one of the option,as i don't have much time to finish my coding.

thanks once again
17 years ago
JSF
updating model bean in request phase means i have to get each value from requestparam and update them one by one is it?

My pages are so complicated and having so many fields in each page depending upon selctions at different levels. That's why i wanted to do custom validations and wants to use model bean.

Thanks
17 years ago
JSF
yeah i agree with u . But in my case i didn't add any jsf validation on my page. I tried even required="false" option which is not working and i am getting validation error . I want to overcome this and want to do my own custom validation and i want to have values in my model bean.
Please let me know how can i achieve this.
Thanks for u reply
17 years ago
JSF
If i use immediate= true i don't get values in my model bean. I have to get each and every value either from requestparam or getsubmitted value and when i throw errors back to my page after validation the submitted values are gone, it is reseting to initial state.
17 years ago
JSF
Hi,
I am using RAD for my devlopment. I am using h:selectOneRadio button i have to show certain fileds depending upon the option checked. If user choose to submit without selecting anyone i want to do my own custom validation. But i am getting "Validation Error: Value is not valid " error when i submit form without selecting any of the option. How to overcomethis with out using immediate=true option

<h:selectOneRadio disabledClass="selectOneRadio_Disabled" styleClass="selectOneRadio" id="type1">
please any one tell me how to overcome this

Thanks in advance
17 years ago
JSF
Hi,
I am new to jsf and trying to integrate tiles with jsf. everything went fine with normal html tags in a table, but when i started changing html tags in jsf tags (command links) these links r not displayed in that table .These links r adding on top of my template html page.

My template page

--------------Layout.jsp-----------------
<BODY><hx:scriptCollector id="scriptCollector1">
<table>
one image inside tr
<tr><td>my link</td>(this where i am getting problem if i add jsf commandlink instead of normal anchor tag)
<hx:scriptCollector>
</body>

My tiles template page
----------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%-- jsf agecode language="java" location="/JavaSource/pagecode/layout/LayoutTemplate.java" --%><%-- /jsf agecode --%>
<HTML>
<HEAD>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://www.ibm.com/jsf/BrowserFramework" prefix="odc"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="IBM Software Development Platform">
<META http-equiv="Content-Style-Type" content="text/css">
<LINK href="../../css/r1.css" rel="stylesheet" type="text/css">
<TITLE>LayoutTemplate.jsp</TITLE>
</HEAD>

<f:facet name="header">
<f:subview id="header">


<tiles:insert attribute="header" flush="false"></tiles:insert>


</f:subview>
</f:facet>

</HTML>
-----------------------------

my actual page which is including tile page

------------------------------------------


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%-- jsf agecode language="java" location="/JavaSource/pagecode/jsp/layout/Sampe1.java" --%><%-- /jsf agecode --%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
<HTML>
<HEAD>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://www.ibm.com/jsf/BrowserFramework" prefix="odc"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>

<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="IBM Software Development Platform">
<META http-equiv="Content-Style-Type" content="text/css">
<LINK href="../../css/r1.css" rel="stylesheet" type="text/css">
<TITLE>Sampe1.jsp</TITLE>
<LINK rel="stylesheet" type="text/css" href="../../theme/stylesheet.css"
title="Style">
</HEAD>

<f:view>
<BODY><hx:scriptCollector id="scriptCollector1">



<h:form styleClass="form" id="form2">
<f:subview id="header">
<tiles:insert definition="Layout" flush="false" />
</f:subview>
</h:form>
</hx:scriptCollector></BODY>
</f:view>
</HTML>


Please help me to find out what is going wrong


Thanks
17 years ago
JSF
Hi, Iam new to jsf . can anyone tell me how to send selected node object value to backend.If i add onnodehighlight(this) . ths object goes to java script but how to send it to backend . My object will have one id and name . Name i am using to diaplay as node name .Id i want to send to back end.
Thanks in advance
17 years ago