Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!

Gopu Akraju

Ranch Hand
+ Follow
since Jan 13, 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 Gopu Akraju

Should I use Ajax for this? But I haven't used it before.
So any simple solution for the above situation? Thanks.
6 years ago
JSF
I am trying to craete a JSF page. I want to get the user input either from a drop down list or input text field
If the user starts typing in "input text" then the drop down list should be disabled. Otherwise if the user selects a name from the drop down list, then input text filed should be disabled. I tried as follows. But it doesn't work properly. Can anyone give me some suggestion?



6 years ago
JSF
Hi,
I am constructing an url like below and trying to get the JSON objects.

I get the following error.

Error retrieving library list java.lang.IllegalArgumentException: Invalid uri 'http://test.ntu.edu.sh/libs/sample name/list/json': escaped absolute path not valid

If I paste the above URI on an browser, it goes through and I get the JSON object.
How to introduce a white space between "sample" + " " + "name" as the above construction doesn't pass.
Many Thanks in advance.
6 years ago
Great, Thanks Harsha. It works.
6 years ago
I get the following error.

Can not file symbol Name_

I am trying to assign
Name_1 = "str1";
Name_2 = "str2";
Name_3 = "str3";
Name_4 = "str4";
Name_5 = "str5";
Name_6 = "str6";
Name_7 = "str7";
Name_8 = "str8";

I am trying to do the above inside a for loop which fails...


6 years ago
Hi,
I have declared 8 strings as below.
I want to assign value to each variable inside a for loop. I tried as below but, it is showing errors. I need tehse values as string values to be displayed in a jsf page.



I get the error this.Name_[i]. Can anyone please help to resolve this issue. Thanks.
6 years ago
Hi Ravi,
Thanks for your response. But I want to just display the table in a dataTable and also have to bind these beans for further manipumation.
I also tried dataList as below:


The results are still displayed as ".[HI, BYE] "
Regards
6 years ago
JSF
Is there anyway that I can display my list horizontally? Thanks.

I also need some help in binding these beans..Thanks.
6 years ago
JSF
My list of item to be displayed in in an arrayList. I tried datable as bleow:

Initially I have just one set data for each row to be displayed as below:
lane2A is an arraylist with just one item.


now lane2A might have more than 1 tem and still items in an arraylist
I am trying as follows but the list is displayed horizontally as



How to display a horizontal list as


Thanks.
6 years ago
JSF
Hi,
Since I didn't get any resonse, may be my query is not very clear.
Right now , I query a database and displau them as jsf components as below. (8 rows and 3 columns)
But my new query each row might contain either 1 set of 3 columns or 4 sets of 3 columns. How to dynamically include tehse data to be displayed? A small example would be very very helpful. Thanks again.
6 years ago
JSF
Hi,
I am a beginner in java programming. I query a database and display them in a fixed set of jsf components in a jsp page.
Basically its a 8 rows table and 3 columns table. And hence I have displayed as below simply.
Each row had only 3 columns to display as below.


Now I have something new to learn. for each row in a table, there might be 4 or 8 (dynamic number) of rows and 3 columns for each row (inside) to be displayed. How to display them. Can any one show me a very simple example? I would really appreciate any help as I am getting my hands in java after a long time. Thanks.

6 years ago
JSF
Hi I am trying to catch exception for missing JSON objects


sometines "names" may not be found. Exception is being printed as org.json.JSONException: JSONObject["name"] not found.

But I want to add a "null" in the aaray list "a" and move on to next item in the for loop. How do I implement it. Thanks.>
7 years ago
Thanks. Henry. I have changed my code as suggested.
7 years ago
Hi Henry,
I have declared them as in line 1.


I want to loop these variables without writing like



I don't get any errors in the above lines. Where as I am trying do this inside a for loop.
7 years ago
Hi Simon,

error says "can not find symbol lib"
7 years ago