Vadym Baranenko

Greenhorn
+ Follow
since Oct 06, 2010
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vadym Baranenko

Mohamed Sanaulla wrote:If you happened to check the source of the Integer.java wrapper class, you can find that the equals method has been overridden to check that both the Integer objects have same int value.


Yes, you are right. After posting this topic I go to source code and found this line"


It was mistake in the book i reading now and a mistake in my code. Double mistake confused me.
10 years ago
Hi folks,
during the reading of Java documentation I found one interesting thing about the collections. Wrapper classes do not override equals method. So it sepouseto mean that it's impossible to use them as a keys to map. I found this interesting because I use wrappers before and thay seems work fine. So I wrote simple test code:


And now I feel like a fool
10 years ago

inora kumar wrote:Thanks for your response Tim. Yes i am using ViewScope only.

But the requirement is to use Request scope only, i am colleting the points to show benefit of View scope.

if possible please add your points. thanks.



Or you can just use javaScript to enable the button
10 years ago
JSF
So why not to use JPA + Hibernate as a data provider like it does in SEAM ? http://seamframework.org

akhter wahab wrote:

java -Xmx256m yourApp




i knew this command and when i was running this program from the net-beans i was adjusting this now i want to run this program on some other computer where there is only Java not any IDE so i am executing the jar of that program using command line how i can adjust the perimeters there ??


You can run your program like that without any IDE, just write this in your console. Or you can make .bat script for windows and .sh script for linux.
11 years ago

akhter wahab wrote:

Wouter Oet wrote:First: do you really need that much memory (more then 128 MB)?
Second: just pass the the appropriate parameters to java



i really don't know any how i can know the actual memory needs of my program... how i can find this ??
2nd thing is how i can pass appropriate parameters to java??



java -Xmx256m yourApp
11 years ago
Sorry, but I don't know how it works in primefaces.
11 years ago
JSF
Oh, I see. I didn't get it. I assuming that small window is a modal panel? than gust try to rerender only part of the page. Use something like that :

<a4j:commandButton type="button" action="#{somsBean.save}" reRender="idThatYouNeed" immediate="true" value="#{messages.button_Save}"/>
11 years ago
JSF
So why don't you use one bean for this actions?
11 years ago
JSF
Try to use ajax support, But seems to me that it is a bad practice to share page between two dialogs. Personally I when need such functionality, using one beal for the list and for the edit/create functionality.
11 years ago
JSF
Guys, why you doing it so complex? Is it be easier to to something like this:

11 years ago
JSF
But the problem is than value of #{subList.msisdnPK.msisdn} changes while table fills with data. You should use "immutable" data, something like this "#{xxx..msisdnPK.msisdn} which will be a property of your bean.
11 years ago
JSF

Cesar Coz wrote:
2) which complement should i use.. i saw that i can implement PrimeFaces, IceFaces, RichFaces, EasyFaces, etc.. which you recomend ?



I think that it's a good question for holly war
As for me, I'm using richFaces+SEAM. Looks fine for me.
11 years ago
JSF
Correct my if I wrong, but subList in your code is an iterator for your data, but header in your teble should contain names of the columns, not data. So, you don't meed it in #{subList.msisdnPK.msisdn} in your header, use it only on the body of the table.
11 years ago
JSF
Your question is not very clear for me, but you should try a custom validator where you can define your own message.


11 years ago
JSF