deepa durai

Greenhorn
+ Follow
since May 08, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by deepa durai

Hi,
I want to validate the fields in the dataTable and the custom error message needs to be displayed on the top not beside the field.
I am able to display the error message beside the field.(<h:message for="email" style="color:red"/>).
But the error message is not displayed outside the dataTable.Can anyone help me please
15 years ago
JSF
Hi,
There is a requirement in my project to add and delete a row onclick of a button.
Each row has a drop down which displays ("<",">","<=",">=") operators.

When i am using the below HTML code for displaying dropdowns ,add and delete functionalities working fine..
<select name="select13" class="TextBlackNormal">
<option>></option>
<option><</option>
<option>>=</option>
<option><=</option>
</select>

But in case of JSF dropdown tag,add and delete fucntionalites are not working onclick of a button.But it displays the dropdown List.

<h:selectOneMenu value="#{ruleBlock.priceRangeFromOperator}">
<f:selectItems value="#{PriceVarianceRuleBean.priceRangeOpeList}"/>
</h:selectOneMenu>


I configured the priceRangeOpeList as
priceRangeOpeList.add(new SelectItem("<","<","<"));
priceRangeOpeList.add(new SelectItem(">",">",">"));

Add and delete functionlaites are working fine if i use below configuration for the drop down.but the the values in the drop down are dispalyed as (>,< like this instead of < , >).So i think the problem is with the operators.Can you please tell me how to display these opearators in the dropdown.
priceRangeOpeList=new ArrayList();
priceRangeOpeList.add(new SelectItem(">",">",">"));
priceRangeOpeList.add(new SelectItem("<","<",">"));


15 years ago
JSF
Thanks everyone
15 years ago
JSF
hi

Thanks Tim and vinc..

using <h:messages/> i am able to display the message wherever i want.
Can you tell me how to display the label in red color when error occurs or validation fails.


15 years ago
JSF
I need to validate a textfield.If it fails, i don't want to diaplay exception thrown by the JSf..
I just want to display the fields in red color and to display a global message"Fields in Red are error fields" .How can i achieve this?

I tried the following the code .It displays the message adjacent to the field.But i need my message to be displayed on top.Please help me

IBD Name:<h:message for="ibdName"/>
<h:inputText id="ibdName" name="ibdName" size="5" class="TextBlackNormal" value="#{MSPSAdminBean.ibdInfoBean.ibdName}" errorStyle="color:red"> <f:validateLength maximum="1"/> </h:inputText>


Thanks
15 years ago
JSF
hi ,

I am using JSF checkbox inside a dataTable.I am calling a javascript function by passing the argument (this object).
The value of the checkbox returns true when checkbox is unchecked.Why is the value always true?
What should be done to get the value as false when the checkbox is unchecked.Can anyone help me?
Please find my code below.



<h:dataTable cellspacing="0" cellpadding="3" width="100%" border="0" value="#{MSPSSecurityProfileDetailsBean.mspsDataModel}" var="item" rowClasses="oddRow, evenRow" headerClass="gridContainer" style="border-bottom:none;">
<h:column styleClass="Header">
<f:facet name="header" width="1%">
<h:outputText value="" />
</f:facet>
<h:selectBooleanCheckbox id="checkBox1" value="false" onclick="getIndexOfSelectedToremove(this)" valueChangeListener="# {MSPSSecurityProfileDetailsBean.getRemoveSelectableItems}" title="click it to select or deselect" style="width:14px;height:14px;"/>
</h:column>

<h:dataTable>


My javascript:

function getIndexOfSelectedToremove(val){
alert(val.value);
}
15 years ago
JSF
hi ,
I want to implement paging logic in my project. Please let me know if paging logic is available in JSF.

-Thanks
15 years ago
JSF
hi,

I want to add a row in a dataTable onclicking a button.
How can this be done using dojo?
15 years ago
JSF
Hi,
can anyone tell me how to use JSF with dojo?

Please send me tutorial links.

Thanks.
15 years ago
JSF
Links i found for scjp 1.4:



http://www.anilbachi.8m.com/docs/certification/mocks.htm
http://www.akgupta.com/Java/certification.htm
http://home-1.worldonline.nl/~bmc88/java/javacert/newmock.html
http://www.software.u-net.com/javaexam/javaexam.html
http://www.swtech.com/java/cert/
http://www.michael-thomas.com
http://www.lanw.com/java/javacert/default.htm
http://suned.sun.com/usa/cert_test.html?content=scjp2-obj
http://www.javaranch.com/roundupmain.html
http://www.learnjava.com/newtest.html
http://www.wandering-man.com/java/certification.html
http://home.worldline.nl/~bmc88/java/javacert/newboone40-70.html
http://www.tekmetrics.com
http://www.examware.com/online2.html
http://www.geocities.com/SiliconValley/Cable/1025/exam2.html
http://www.geocities.com/SiliconValley/Station/2060/javacert.html
http://www.javaranch.com/maha/_Mock_Exams/JohnJuntMockExam.htm
www.jchq.net
http://www.jchq.net/mockexams/exam2.htm
http://www.javacoding.net/certification/mocks/
http://www.javaranch.com/mock.jsp
http://www.jiris.com/online/page.do?p.w=1099318108713


http://www.levteck.com/

http://bmil.freeservers.com/tester/test.html

http://www.geocities.com/SiliconValley/Screen/5046/

http://www.geocities.com/skmajji/Main.html

http://www.javaprepare.com/quests/test.html

http://www.javacaps.com/scjp_mockexams1.html

http://www.javacaps.com/scjp_mockexams2.html#test2

http://www.jchq.net/mockexams/exam1.htm

http://www.jchq.net/mockexams/exam2.htm

http://www.jchq.net/mockexams/exam3.htm

http://www.lanw.com/java/javacert/HardestTest.htm

http://www.javaranch.com/maha/_Mock_Exams/JohnJuntMockExam.htm

http://www.danchisholm.net/july21/comprehensive/index.html

http://gocertify.com/quizzes/java/SCJP1_intro.shtml
http://certification.about.com/od/certifications/l/blscjp14q1.htm

http://www.akgupta.com/Java/mock_exam.htm

http://www.danchisholm.net/july21/comprehensive/index.html
Thanks
Deepa
Links i found for scjp 1.4:



http://www.anilbachi.8m.com/docs/certification/mocks.htm
http://www.akgupta.com/Java/certification.htm
http://home-1.worldonline.nl/~bmc88/java/javacert/newmock.html
http://www.software.u-net.com/javaexam/javaexam.html
http://www.swtech.com/java/cert/
http://www.michael-thomas.com
http://www.lanw.com/java/javacert/default.htm
http://suned.sun.com/usa/cert_test.html?content=scjp2-obj
http://www.javaranch.com/roundupmain.html
http://www.learnjava.com/newtest.html
http://www.wandering-man.com/java/certification.html
http://home.worldline.nl/~bmc88/java/javacert/newboone40-70.html
http://www.tekmetrics.com
http://www.examware.com/online2.html
http://www.geocities.com/SiliconValley/Cable/1025/exam2.html
http://www.geocities.com/SiliconValley/Station/2060/javacert.html
http://www.javaranch.com/maha/_Mock_Exams/JohnJuntMockExam.htm
www.jchq.net
http://www.jchq.net/mockexams/exam2.htm
http://www.javacoding.net/certification/mocks/
http://www.javaranch.com/mock.jsp
http://www.jiris.com/online/page.do?p.w=1099318108713


http://www.levteck.com/

http://bmil.freeservers.com/tester/test.html

http://www.geocities.com/SiliconValley/Screen/5046/

http://www.geocities.com/skmajji/Main.html

http://www.javaprepare.com/quests/test.html

http://www.javacaps.com/scjp_mockexams1.html

http://www.javacaps.com/scjp_mockexams2.html#test2

http://www.jchq.net/mockexams/exam1.htm

http://www.jchq.net/mockexams/exam2.htm

http://www.jchq.net/mockexams/exam3.htm

http://www.lanw.com/java/javacert/HardestTest.htm

http://www.javaranch.com/maha/_Mock_Exams/JohnJuntMockExam.htm

http://www.danchisholm.net/july21/comprehensive/index.html

http://gocertify.com/quizzes/java/SCJP1_intro.shtml
http://certification.about.com/od/certifications/l/blscjp14q1.htm

http://www.akgupta.com/Java/mock_exam.htm

http://www.danchisholm.net/july21/comprehensive/index.html
Thanks
Deepa
Hai all,
I planned to take SCJP 1.5 on September 30.I need to practice mock exam.
But I found most of the exams for SCJP1.4.Please tell me where i can find mock exams for SCJP1.5.


-Thanks
Deepa
Hi Burkhard,

Thanks for your answers.I have one more doubt.

If I create the account object inside the run method,what will happen?

I got answers like each thread has a copy of the balance variable,eventhough i make both the moethods synchronized.

Is this because of
BankAccount account =new BankAccount();
is inside the run() method ?



Thanks Deepa
Hai,
Please clear my doubt. In the following program, three threads accessing the same account.


My doubt is :
As withdrawal method is a synchronized one,only one thread is allowed to make the withdrawal.After it finishes the withdrawal,second thread will withdraw.Eventhough the balance is Rs.90 after first thread's withdrwal,the second thread reads the balance as Rs.100.Why is this so?
i)does the threads read the balance from the thread's local or from main memory?
ii)After each thread making a withdrawal,will it store the balance in main memory or thread's local?when it gets stored in main memory?

iii) the balance variable is accessed from main memory or from thread's local each time it reads.

iv) what are the values in thread's local and will be in main memory?

Thanks in advance


moderator Bu: made one long line into to.
[ August 23, 2007: Message edited by: Burkhard Hassel ]
Hai,
I wanted to know where the "account" object gets stored(stack or Heap).And will the threads have the separate copy of the objects or not?