Suresh Kumar Rajendran

Greenhorn
+ Follow
since Oct 31, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Suresh Kumar Rajendran

Thank you so much for reply.I was using bean only not controller.

I have tried <repeat> and <foreach> both tags none of them worked. My requirement is to update entire records (all column field) of the table, so i retrieved complete records assign to Inputtext for editing the value.

As i mentioned its an n rows x n columns. My code has mentioned below, i'm sure it's incorrect logic. Please let me know if you see any logic for this specific requirement.

Ist forech represents row count.

2nd foreach represents columns value for all the record.

Say I have table having 3 columns and 2 records on it .


Bean Code:

public String retrieve() {



parentlist=new ArrayList<Integer>();
parentlist.add(1); //Row 1
parentlist.add(2); //Row 2

list = new ArrayList<Integer>();
list.add(0,1); //Column 1 value of Row1
list.add(1,2); //Column 2 value of Row1
list.add(2,3); //Column 3 value of Row1
list.add(3,4); //Column 1 value of Row2
list.add(4,5); //Column 2 value of Row2
list.add(5,6);//Column 3 value of Row2
}

//This is will return column value based index
public List<Integer> getList() {

return list;
}

//Submit
public String processRequest() {

try {
System.out.println("***********User Saved data*****************" + list);//list

} catch (Exception anException) {
}

return "";
}



JSF code

<c:forEach items="#{backedbean.parentlist}"
var="prntstationCodeString" varStatus="prentrowCounter"
id="parentloop">

<h:outputLabel style="text-valign:middle;"
value="#{counter}"
escape="false" />

<c:forEach items="#{backedbean.list}"
var="CodeString" varStatus="rowCounter" id="loop">

<c:if test="#{rowCounter.index lt 2}"> //Since total column is 3 so it loop through up to 2

<h:inputText
value="#{bean.list[counter]}" /> // getList() will be called.

</c:if>

<c:set var="counter" value="${counter + 1}" />

</c:forEach>
</c:forEach>
7 years ago
JSF
Hello,

Basically I want to read table records, edit and update dynamically. Reading part is fine, only update part is having problem. Once I retrieve the records from table I'm assigning those values to dynamic InputText fields. Table has 5 records and 6 columns. I don't wants to hardcode the InputText fields with array like this below. If you see the below columns all are hard coded with numbers.

Can you please suggest me any Logic for this condition in JSF2 framework. It's Basically N rows x N Columns.


Rows:

R1

C1 C2 C3
<h:inputText value="#{controller.Tl[0]}" /> <h:inputText value="#{controller.Tl[1]}" /> <h:inputText value="#{controller.Tl[2]}" /> <h:inputText value="#{controller.Tl[3]}" /> <h:inputText value="#{controller.Tl[4]}" />

R2
C1 C2 C3
<h:inputText value="#{controller.Tl[0]}" /> <h:inputText value="#{controller.Tl[1]}" /> <h:inputText value="#{controller.Tl[2]}" /> <h:inputText value="#{controller.Tl[3]}" /> <h:inputText value="#{controller.Tl[4]}" />






7 years ago
JSF
Hi All,

I have some questions on general hibernate and JDBC.

1) Can we apply hibernate framework in application which points to database(All Tables) where having only READ access and don't have WRITE? Since hibernate objects (Session, Transaction, SessionFactory) would do some manipulation and give PO objects , will these required right access to database?.

2) Is there any situation in which we cannot apply Hibernate framework and the same conditon JDBC will workout there?


Regards,
Suresh

Hai Deepak,

Thanks for your reply. There is no warning window only error window. Looks to me VISTA OS issue.

Now i uninstalled websphere 6.1 and install 7 now its ok.

Thanks & Regards,
Suresh
8 years ago
Hi Friends,

I have installed web sphere server 6.1 in my local machine. When i try to start the server, getting this error message "Java Launcher not started and closed" and finally stopped.

I tried possible ways like updated java version, uninstall/install java..etc but none of them works.

My System OS: Windows Vista

All your suggestion welcome..

Regards,
Suresh
8 years ago
Hello,

If i implement singleton class in cluster environments, each environment would have JVM so can i get single instance for each environment (or) only instance for all clustered environments. How it works could please explain..
8 years ago
Thanks for your reply. I'm not sure how to implement the lazy initialize. Can you please send me some sample code.
8 years ago
Thanks for your reply. Memory is not an issue. If i use static every time new instance will not be created once it is created already. But i want to create new instance of the class only when there is no exist/running in the server.

8 years ago
If we use SinglePattern instance always in server even the process completed. In may case new instance have to create only after there is no exiting instance exists.
8 years ago
I have to check that class XXXXX instance is running or not in server. If it is already running then if we try to create a 2nd instance of the same class some exception has to generate. How to implement this? Any suggestion welcome!!

Example:
Batch Job:
Say java instance is instantiated by triggering Batch job and java instance is running in server; in this scenario if we try initiate same job again new instance will be created. Here I don’t want to happens 2nd instance creation.
8 years ago
Hello Friends,

Could please share what are the books and notes that you referred for EJB 6 certification.

Since it is JEE6 in which App server did you tried the sample code?

I'm working with JDK 1.4 & 1.5 version, do we need an experince on JDK 1.6 to appear for this exam?

Normally how long it will take to complete this exam.

Please share your experience.

Regards
Suresh
SCJP 1.4 SCDJWS 1.5
Thank you very much for your point of view..

Regards
Suresh
Hello friends,
I'm silent member of this group. I have recently cleared the SCDJWS 5. Since I cleared this exam(EJB is small part of this curriculum), is it really worth to appear for EJB 6 exam (or) can I go for any other exam, if you feel that other exam please let me know. My current designation is senior Software Engineer in my company. Please advise me.

Regards
Suresh
Hello friends,

Please advice for my above request.

Regards
Suresh