kranthi devarapalem

Greenhorn
+ Follow
since Sep 10, 2012
Merit badge: grant badges
For More
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 kranthi devarapalem

do i need that ?. Actually i am new to JSF. The code of changeDropDownOne is there in the first post IF POSSIBLE could you validate that method too and correct me if i am wrong.

Thanks a Ton
10 years ago
JSF
Have kept the below code it did not work. control is not going to the method mentioned in listener attribute on change

<td width="42.5%" style="background-color: #DDEEF5;"><h:selectOneMenu
value="#{loginBean.dropDownValue}" itemValue="#{dropDownValue}">
<f:selectItem itemValue="****select***" />
<f:selectItems value="#{loginBean.testDropDown}"/>
<f:ajax event="change" listener="#{loginBean.changeDropDownOne}" update="testDropDownTwo" />
</h:selectOneMenu></td>
<td width="42.5%" style="background-color: #DDEEF5;">If model
users are shared with regulators please select the names(s) of the
regulator</td>
</tr>
<tr>
<td width="15%" background="red" style="background-color: #9ABDE7;">
<b>Regulator Area*</b>
</td>
<td width="42.5%" style="background-color: #DDEEF5;"><h:selectOneMenu
value="#{loginBean.dropDownTwoValue}" id="testDropDownTwoValue" render="#{loginBean.dropDownTwoValue}">
<f:selectItem itemValue="****select***" />
<f:selectItems value="#{loginBean.testDropDownTwo}" />
</h:selectOneMenu></td>
10 years ago
JSF
Thanks for the reply.

I have changed the spelling of the listener and it is not working.

in listener="#{loginBean.changeDropDownOne} will return a List that should be applied to another dropdown.

Thanks
KK
10 years ago
JSF
Hi

i am trying to add ajax for a dropdown and i have added the below code in my xhtml but the listner is not getting called once there is a change.

XHTML Code:
<h:selectOneMenu
value="#{loginBean.dropDownValue}" itemValue="#{dropDownValue}">
<f:selectItem itemValue="****select***" />
<f:selectItems value="#{loginBean.testDropDown}"/>
<f:ajax event="change" listner="#{loginBean.changeDropDownOne}" render="testDropDownTwoValue" />
</h:selectOneMenu>


method in the bean:

public List<SelectItem> changeDropDownOne() {
System.out.println("$$$$$$$$$$");
String dp = getDropDownValue();
if(dp != null) {
System.out.println("**********************getTestDropDownTwo********************************"+dp);
if(dp.equalsIgnoreCase("One")) {
testDropDownTwo.add(new SelectItem("One - One"));
testDropDownTwo.add(new SelectItem("One - Two"));
testDropDownTwo.add(new SelectItem("One - Three"));
testDropDownTwo.add(new SelectItem("One - Four"));
} else if(dp.equalsIgnoreCase("Two")) {
testDropDownTwo.add(new SelectItem("Two - One"));
testDropDownTwo.add(new SelectItem("Two - Two"));
testDropDownTwo.add(new SelectItem("Two - Three"));
testDropDownTwo.add(new SelectItem("Two - Four"));
}else if(dp.equalsIgnoreCase("Two")) {
testDropDownTwo.add(new SelectItem("Three - One"));
testDropDownTwo.add(new SelectItem("Three - Two"));
testDropDownTwo.add(new SelectItem("Three - Three"));
testDropDownTwo.add(new SelectItem("Three - Four"));
}else {
testDropDownTwo.add(new SelectItem("Four - One"));
testDropDownTwo.add(new SelectItem("Four - Two"));
testDropDownTwo.add(new SelectItem("Four - Three"));
testDropDownTwo.add(new SelectItem("Four - Four"));
}
}
return testDropDownTwo;
}


Please help me in this regard

KK
10 years ago
JSF
Hi all

i am using a custom tag that was already written and my requirement was that the variable should not be equal to some value.

existing tag:(if role value is equal to user then it will be true)
<mdc:test1 role="user">
</mdc:test1>

My requirement:the role value should not be equal to user

can someone help me how to write tag for this one.


thanks in advance

KK

10 years ago
JSP
Hi

I am trying to uninstall java in windows7. but i am getting a popup saying that
"Error 1723:There is a problem with windows installer package. A Dll required for this install to complete could not be run".

i have googled the error and i have removed the registries ("all registries that have java or jre in the name"). but i am still facing the issue. Could someone help me in this issue.

Thanks & Regards
Kranthi.
10 years ago
Hi all

i have a general doubt in struts and here it goes

is there any difference between below two in behavior
1.<struts:form action ="/loginaction">
2.<struts:form action="loginaction">

is there any difference between below two in behavior
1.<forward name = "confirm" path="/confirm.do"/>
2.<forward name = "confirm" path="/confirm"/>


does "/" makes any difference in the flow?


Thanks
kranthi.
11 years ago
got the answer we have to use "\\" insted of "\". Sorry For wating a post.
11 years ago
Hi all

i want to add two strings with '\' parameter between them but it is not working. could someone please help me on this.

Example code:

"Kranthi"+"\"+"Kumar";

this is throwing complier time exception.

Thanks In Advance.

Regards
Kranthi.
11 years ago
Thanks A Lot it worked. Actually i was getting the path from a column and i am using that in src as that is absolute path it did not work i think.
11 years ago
JSP
Thanks for the response. But its not working in my system also
11 years ago
JSP
Hi all

in one of my jsp i tried to display a image but it is not displaying the image. i have tried to the same code on html it worked. below is the jsp code and i am using Tomcat. below is the code

<tr align="center" height="80%">
<td align="center">
<img src='E:\Kranthi\eclipse\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\App\newsimages\JrNtr.jpg' alt="image" >
</td>
</tr>


thanks in Advance for the help.

Regards
Kranthi.
11 years ago
JSP
Great! its Working !. Sorry for not giving the exact information but you have guessed what i need. Thanks A Lot.
11 years ago
Hi all

I came across a requirement where i have to store paragraphs of data (not huge maximum of 5 paragraphs) in database, i have kept the column as TEXT. while insertion every thing is going fine it is storing as paragraphs(saw that in database). but while retrieving it is trimming all the spaces between the paragraph's and giving it as a single string. i read somewhere that we have to get the text as CLOB i tried that but it is also not working. below is the code.



Clob descClob = rs.getClob(2);
String descString = descClob.getSubString(1, (int)descClob.length());
engArticle.setNewsDescription(descString);

Thanks a lot in advance.


Regards
Kranthi.
11 years ago