Rahul Santha

Greenhorn
+ Follow
since Apr 17, 2008
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 Rahul Santha

From maintenance perspective wouldn't it be easy to have everything under the same roof. If there is a compelling reason to split it into d different module with another framework/technology the you may opt to do so. My 2 cents.
11 years ago
JSF
Try Tomahawk forum.
11 years ago
JSF
<h:selectOneMenu id="corporationBI"
value="#{pc_page1.countryId}">

<f:selectItems value="#{pc_page1.countries}" />

Backing Bean
countries = new ArrayList<SelectItem>(10);
new SelectItem("NY", "NY")

When pc_page1.countryId = "NY", it gets selected in the UI.
11 years ago
JSF
Don't know.

But it is not a mandatory, unless you are trying to use the tomahawk library.
11 years ago
JSF
Debasree Saha - If you are using RAD right click on the JSP and click on "Edit page code" in the menu to edit your JAVA CLASS. Every IDE/tool has it own navigation to the class. Like BalusC said the pencil is in your hands, look again.
11 years ago
JSF
I have a text box in a JSP.
Value of the textbox is present in a DO.
DO is present inside a HashMap.

How do I write the expression in the textbox {#.. blah blah..} to point to the value and display it? Below is my code:

DataObject:
public class PageNameDO {

private String whereAmI = "";

public PageNameDO(String val){
whereAmI = val;
}
//getters and setters
}

BackingBean with HashMap inside it:
public class HashBind extends PageCodeBase {

private HashMap<String, PageNameDO> hash1 = null;

public HashBind(){
hash1 = new HashMap<String, PageNameDO>();
hash1.put("A", new PageNameDO("Apple"));
}

//getters and setters for hashmap
}

JSP Page:
<h:inputText styleClass="inputText"
id="text1"
value="#{pc_HashBind.hash1[0].pageNameDO.whereAmI}">
</h:inputText>

How to display the value inside the text box?

Help!!
11 years ago
JSF
Did you find an answer for this?

I have a need to bind a textbox to an object living inside HashMap. Share your thoughts, if you have found the answer.
11 years ago
JSF
What is char1RegEx1?
11 years ago
JSF
This is what I use. Try this and see if there is any luck with loose.dtd.

Example:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>

<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="Rational Application Developer">
<link rel="stylesheet" type="text/css" href="sdmenu/sdmenu.css" />
<link rel="stylesheet" type="text/css" href="js/datepicker/DatePicker.css" title="Style">
<link rel="stylesheet" type="text/css" href="template/Styles.css" title="Style">
<link rel="stylesheet" type="text/css" href="theme/stylesheet.css" title="Style">
<script type="text/javascript" src="sdmenu/sdmenu.js">
</script>
<script type="text/javascript">

//JS code

</script>
</head>
11 years ago
JSF
Looks like you are using IBM JSF 1.1 in RAD 7.

Try my blog:
http://ibm-jsf-ajax.blogspot.com/

Thanks,
Santha
11 years ago
JSF

Try IBM forum.

11 years ago
JSF
You need to do Ajax refresh after the onChange event of dropdown.

Below link is something similar.. but it uses IBM JSF Ajax component.
http://www.ibm.com/developerworks/rational/library/06/1205_kats_rad2/

Thanks,
Santha
12 years ago
JSF