Vallidevi Appana

Greenhorn
+ Follow
since Jun 30, 2006
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 Vallidevi Appana

Hi Tim,

Thank you very much for your response.
I have tried your solution and it is working fine as expected in FireFox browser.
But not working in IE9 explorer.
Could you suggest me any solution to make it work on IE 9 also.
Thank you very much in advance.

Regards
Valli
11 years ago
JSF
Hi Sivaji,

Thank you very much for your response.
There is no value attribute availabe for a4j:support component.
Can you give me any more suggestions.

Regards
Valli
11 years ago
JSF
Hi all,

I have two dropdowns in my jsp page. one dropdown is geographical unit and another dropdown is Country.
Whenever Geographical drop down changes, country dropdown should be populated again. I have used a4j:support to do this. But that Country dropdown is not repopulated. I don't want to use onchange="submit" attribute as it is creating problems.

This is my code in jsp page.



The code Service code is like this:



The countryList is populated properly on change of Geo Unit dropdown. But the Country dropdown is not rerendered.

Thank you very much in advance.

Regards
Valli
11 years ago
JSF
Hi Preity,

The setters and getters in a bean should have public access modifier.

Regards
Valli
13 years ago
Hi Matt,

You can use body onload attribute to load the value.
You can refer the following piece of code.

<html>
<head>
<script>
var paramValue = 1234;
function setTextBoxValue(){
document.getElementById("textBox1").value=paramValue;
}
</script>
</head>
<body onload="setTextBoxValue()">
<input type="text" id="textBox1"/>


</body>
</html>

Regards
Valli
Check whether you have validate="true" in your action? For validation to happen the corresponding action tag should have validate="true"

Regards
Valli
14 years ago
Hi Viji,

Try the following piece of code. It will work only if "registrationForm" is in session scope.
The name attribute value, that you are referrring in logic:iterate tag should match with form-bean name.
I feel "RegistrionForm" is the class name.
you can get the form-bean name from struts-config.xml file.
You should see following kind of line in your struts-config.xml file.

<form-bean name="registrationForm" type="com.XXXX.XXXX.XXXX.RegistrationForm"/>

Now use the name attribute value(from form-bean definition) as logic:iterate name attribute value.

<logic:iterate id="sponsor" scope="session" name="registrationForm" property="sponsorList">
<tr>
<td>
<bean:write name="sponsor" property="sponsorId"/>
</td>
<td>
<bean:write name="sponsor" property="sponsorcmpNmae"/>
</td>
<td>
<bean:write name="sponsor" property="cntPerson"/>
</td>
<td>
<bean:write name="sponsor" property="pNo"/>
</td>
<td>
<bean:write name="sponsor" property="emailId"/>
</td>
</tr>
</logic:iterate>

Hope this works for you?

Regards
Valli
14 years ago
Hi Alex,

Instead of closing and opening the session back, you can just call refresh method on sesion, so that object state will be refreshed from DB.

so instead of 4 and 5 steps in your code, you can just call,
session.refresh(dataObject);

Hope this works for you.

Regards
Valli
Hi Eric

Thank you very much for the help.
I found out some scripts in these sites.
Have to check whether they fit my requirement.

Thank you

--- Valli
Hi all

I ned to include date picker in my jsp. But the user should be able to select the date from Today to 3 months ahead.
Basically I am looking for a date picker which is configurable.
Can anyone tell me is there any js available with this requirement?

Thanks in Advance

--- Valli
Hi all

I am using SelectMayListBox component in my jspx.
I want to get the value of this component which is List or array in my action class. ( Here I want this value without submitting the form so I used ParameterMap in my action class.)



The third line in the code throwing ClassCastException. I tried to replace List with String[] then also same thing happened.
But when I put String instead List it didn't throw anything. But in this case I can get only one item selected by the user.
How can I get the list in my action class?

Thansk in advance.
15 years ago
JSF
You can try this JS code..



If the following is not working, then change embed tag to Image tag and try the above code.

Hope this helps you.
You can try return id from the method instead of result set.



Call this method by passing statment object.

Hope this will solve your problem.
Hi

I think you can use same method to populate the form elements and to enable button on onclick of table row.

put the following code in your js function...

document.getElementById("myButton").disabled=false;

here "myButton" is name of the button.
[ July 20, 2006: Message edited by: Vallidevi Appana ]
Hi

The condition you are using to check the param value is wrong. Here is the modified code....(check the code in bold)