Bhavesh Thakkar

Greenhorn
+ Follow
since Mar 04, 2007
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 Bhavesh Thakkar

Any updates on the same.

Can some bosy please help me on the same.

Ii is one of urgent business requirements and i am not able to find any solution for the same.
15 years ago
JSF
Hi,

I am using trinidad faces in my project and i am using the <tr:table> tag provided by trinidad to display the data in a tabular format.

I am using the navigation feature that is provided by the table tag, but the next previous links are not working as expected. When ever i click on the next link the new set of records is populated at the backhand but somehow the page is not being rendered to display the newer fetched records. If i press f5 and refresh the page then the newly populated set of records is displayed fine.

Can someone please help me with the same.

Thanks i million in advance.

Regards,
Bhavesh Thakkar.
15 years ago
JSF
Hi,

I am sorry for putting my subject like in capital and will mark it for my futuer communications.

yes i have tried it with "footer" facet too, but it is not giving me the desired output.

Actually ADF comes with three default skin implementations namely :
1.Oracle
2.Minimal
3.Simple.

The Oracle skin of adf displays the ontrol bar at the bottom as well at the top.

But when ever we write a custom skin of our own, adf overrides the simple skin and the simple skin of adf implementation has no support for displaying the control bar at the bottom. Also i was not able to find a way in which i can set my application to overide the Oracle skin which is provided by adf faces implementation.

Thank you,
regards,
Bhavesh Thakkar
15 years ago
JSF
Hi,

I am using ADF faces in my project i am having a problem like this.

I am having a data table where in i am setting the "rows" attribute for the same to 100, so at a time only 100 records will be displayed in the grid.

The navigation part appears fine on the top of the data table. I want the same to be also appearing at the Bottom of the data table.

I am using the "selection" facet and tableSelectOne tag of adf in the data table.

There are links which say that it is possible to display the same at the top as well as at the bottom, but i am not able to figure out a way for the same.

My code goes as follows :

<af:table var="cpt" width="100%"
bandingInterval="1" banding="row"
value="# {mo_counterpartySearchManager.counterpartyDetailList}"
summary="Counterparty Summary"
styleClass="standard"
rendered="#{mo_counterpartySearchManager.visible}"
binding="#{mo_counterpartySearchManager.detailTable}">

<f:facet name="selection">
<af:tableSelectOne>
<af:commandButton id="cmd_deal_details"
styleClass="align:center;" text="Deal Details" action="#
{mo_counterpartySearchManager.doDealDetails}"/>
</af:tableSelectOne>
</f:facet>

<af:column sortProperty="id"
sortable="#mo_counterpartySearchManager.sortable}" >
<f:facet name="header">
<af:outputText value="Counterparty Id"/>
</f:facet>
<af:outputText value="#{cpt.id}" />
</af:column>
</af:table>

I have been working on this for quite a long time now.

Your help is highly appreciated.

Thank you,
Regards,
Bhavesh Thakkar
15 years ago
JSF
Thanks a ton Merrill, my problem has been resolved.

Thank you,
Regards,
Bhavesh Thakkar
16 years ago
Hi,

I have configured a data source in web sphere and given the JNDI look up name in it as follows "java:JTDS".

Now i am trying to do a look up for the same in my servlet's do post method as follows

protected void doPost(HttpServletRequest request,
HttpServletResponse response) throws
ServletException, IOException {

try {

Context i = new InitialContext();
Context e = (Context) i.lookup("java:comp/env");

DataSource d = (DataSource) e.lookup("java:JTDS");
}

} catch (NamingException e) {
e.printStackTrace();
// TODO: handle exception
}
}

It generates a error saying

javax.naming.NameNotFoundException: Name "JTDS" not found in context "java:".
[12/24/07 14:11:08:893 IST] 00000024 SystemErr R at com.ibm.ws.naming.ipbase.NameSpace.lookupInternal(NameSpace.java:1095)
[12/24/07 14:11:08:893 IST] 00000024 SystemErr R at com.ibm.ws.naming.ipbase.NameSpace.lookup(NameSpace.java:991)
[12/24/07 14:11:08:893 IST] 00000024 SystemErr R at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup(UrlContextImpl.java:1263)
[12/24/07 14:11:08:893 IST] 00000024 SystemErr R at com.ibm.ws.naming.java.javaURLContextImpl.lookup(javaURLContextImpl.java:384)
[12/24/07 14:11:08:893 IST] 00000024 SystemErr R at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:204)
[12/24/07 14:11:08:893 IST] 00000024 SystemErr R at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup(UrlContextImpl.java:1255)
[12/24/07 14:11:08:893 IST] 00000024 SystemErr R at com.ibm.ws.naming.java.javaURLContextImpl.lookup(javaURLContextImpl.java:384)
[12/24/07 14:11:08:893 IST] 00000024 SystemErr R at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup(UrlContextImpl.java:1307)
[12/24/07 14:11:08:893 IST] 00000024 SystemErr R at com.ibm.ws.naming.java.javaURLContextImpl.lookup(javaURLContextImpl.java:353)
[12/24/07 14:11:08:893 IST] 00000024 SystemErr R at com.test.servlet.dbTest.doPost(dbTest.java:59)
[12/24/07 14:11:08:893 IST] 00000024 SystemErr R at


Can some one please tell me, what am i missing in the same,

Do i need to make any entries in the database???

Thank you,
Regards,
Bhavesh Thakkar


[BSouther: Removed Urgent from subject line]
[ December 24, 2007: Message edited by: Ben Souther ]
16 years ago
Hi All,

I am getting a string from database of type varchar(998) , what i want to do is to break this string up into different tokens based on its length.

Lets say for example i am having 10 fields on my screen, then i want to assign the first two chracters of the String to the first field, next 10 to the second field and so n and so forth.

e.g Field 1 ( 2 characters out of the 998 chracters long string)
Field 2 ( next 10 characters )
..
..

can anyone of you provide me up with some kind of sample code for the same.

Thanks in advance!!
Bhavesh Thakkar
16 years ago
Hi,

I am using itext to display a report in a pdf file for a specific requirement in my project.

Is it possible in Itext to diplay a record in two different lines when we are getting it from a result set.

For example suppose we are getting ten fields in a result set which we are using to generate new coloms in Itext as shown below

Field1 Field2 Field3 Field4 Field5 Field6 Field7 Field8

and now we want to display a data in the follwing manner

Field1 Field2 Field3 Field4 Field5 Field6 Field7 Field8
rs. rs. rs. rs. rs. rs. rs. rs.
get(1) get(2) get(3) get(4) get(5) get(6) get(9) get(10)

rs. rs.
get(7) get(8)

Here my problem is as shown. I want to show the resultSet(7) and resultSet(8) value below the resultSet(5) and result(6) value in a new row.

Can this be achieved using IText.

Thanks in advance!!

Regards,
Bhavesh Thakar
Hey thanks everyone i think my dought is clear now.

Regards,
Bhavesh Thakkar
Given:

int []arr = {1,2,3,4};
for ( int i : arr )
{
arr[i] = 0;
}
for ( int i : arr )
{
System.out.println(i);
}

and the options

a.Prints 0 1 2 3
b.Prints 0 0 0 0
c.Prints 0 0 3 0
d.Prints 0 2 0 0
e.Compile error
f.Runtime Exception occurs.

I think the answer should have been 'b' but the correct answer is 'c',can someone please tell me how the answer is 'c' and not 'b'.

Thanks in Advance.

Regards,
Bhavesh Thakkar
Hi Shiv,

My email id is "tbhavesh2@gmail.com" Thanks a lot for your great help.When shall i expect them in my inbox?

Regards!
Bhavesh Thakkar
Thanks Shiv,

Even its not been mentioned in the objectives, but it was present in one of the mock exams i was trying out.

Hey, it would be of great help from you if you can provide me with some of the Mock exams list which be beneficial for me. I am planning to give the exam this month end.

Thanks in advance!!

Regards
Bhavesh Thakkar
Hi,

Will there we questions on the Random Access files for the SCJP5.0 Test???


Regards!
Bhavesh Thakkar
Is Ieteration over Linked list faster then an ArrayList.If Yes can anyone please explain me how???

Regards!
Bhavesh Thakar
Actually i tried ding that but was not able to find enough stuf for SCJP 1.5.

Will search for more things

Thank You Very Much Sir

Regards!
Bhavesh Thakkar