Click here to Skip to main content
16,008,183 members
Home / Discussions / Java
   

Java

 
QuestionHow to use "chartdirector" as a portlet of Liferay? Pin
nicholasng12-Sep-10 15:40
nicholasng12-Sep-10 15:40 
AnswerRe-repost re-warning! Pin
Peter_in_278012-Sep-10 16:23
professionalPeter_in_278012-Sep-10 16:23 
QuestionProblem with conditional assignment Pin
Nagy Vilmos9-Sep-10 23:43
professionalNagy Vilmos9-Sep-10 23:43 
AnswerRe: Problem with conditional assignment Pin
Luc Pattyn10-Sep-10 2:11
sitebuilderLuc Pattyn10-Sep-10 2:11 
GeneralRe: Problem with conditional assignment Pin
Nagy Vilmos10-Sep-10 3:06
professionalNagy Vilmos10-Sep-10 3:06 
GeneralRe: Problem with conditional assignment Pin
Luc Pattyn10-Sep-10 3:11
sitebuilderLuc Pattyn10-Sep-10 3:11 
GeneralRe: Problem with conditional assignment Pin
Nagy Vilmos10-Sep-10 4:59
professionalNagy Vilmos10-Sep-10 4:59 
GeneralRe: Problem with conditional assignment Pin
Luc Pattyn10-Sep-10 5:15
sitebuilderLuc Pattyn10-Sep-10 5:15 
if there is no logical or algorithmic link between some Foo's and some Bar's, all you can do is link them explicitly, in any style you like. Examples:

1.
yours:
if (aFoo != null && aFoo.isSet) {
   redLion = aFoo.bar;
}


2.
also yours:
someStaticMethod(aFoo, redLion);


3.
my alternative, meaningful only if it (or parts of it) is needed more than once (syntax now resembles C#) so it can get initialized once:

Dictionary<Bar,Foo> map=new Dictionary<Bar,Foo>();
map.Add(redLion,aFoo);
map.Add(whiteHart,bFoo);
...

and used many times:
foreach(KeyValuePair<Bar,Foo> kvp in map) {
    someStaticMethod(kvp.Value, kvp.Key);  // or the actual code
}


BTW: I like the way you give your questions some sense of reality

Laugh | :laugh:
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


QuestionDoes anyone know a good tutorial of how to configuare RichFaces on Eclipse ? Pin
Paul Guralivu9-Sep-10 23:13
Paul Guralivu9-Sep-10 23:13 
QuestionAaarrrhhh! What is it with Glassfish? Pin
Nagy Vilmos7-Sep-10 9:38
professionalNagy Vilmos7-Sep-10 9:38 
Questionlearning advanced java programming Pin
bigifab7-Sep-10 3:28
bigifab7-Sep-10 3:28 
AnswerRe: learning advanced java programming Pin
Richard MacCutchan7-Sep-10 4:41
mveRichard MacCutchan7-Sep-10 4:41 
GeneralRe: learning advanced java programming Pin
bigifab8-Sep-10 9:57
bigifab8-Sep-10 9:57 
AnswerRe: learning advanced java programming Pin
Paul Guralivu8-Sep-10 9:17
Paul Guralivu8-Sep-10 9:17 
GeneralRe: learning advanced java programming Pin
bigifab8-Sep-10 10:32
bigifab8-Sep-10 10:32 
AnswerRe: learning advanced java programming Pin
Paul Guralivu9-Sep-10 22:57
Paul Guralivu9-Sep-10 22:57 
GeneralRe: learning advanced java programming Pin
bigifab12-Sep-10 18:54
bigifab12-Sep-10 18:54 
QuestionHow to show own created jsp page in portlet of Liferay? Pin
nicholasng6-Sep-10 21:03
nicholasng6-Sep-10 21:03 
AnswerRe: How to show own created jsp page in portlet of Liferay? Pin
Richard MacCutchan6-Sep-10 21:40
mveRichard MacCutchan6-Sep-10 21:40 
GeneralRe: How to show own created jsp page in portlet of Liferay? Pin
nicholasng6-Sep-10 22:11
nicholasng6-Sep-10 22:11 
GeneralRe: How to show own created jsp page in portlet of Liferay? Pin
Richard MacCutchan7-Sep-10 4:43
mveRichard MacCutchan7-Sep-10 4:43 
GeneralRe: How to show own created jsp page in portlet of Liferay? Pin
nicholasng20-Sep-10 22:00
nicholasng20-Sep-10 22:00 
QuestionRead Table of Content from PDF using PDFBOX library Pin
Nilesh Araligidad3-Sep-10 3:58
Nilesh Araligidad3-Sep-10 3:58 
AnswerIgnore - crosspost Pin
Dave Kreskowiak3-Sep-10 4:55
mveDave Kreskowiak3-Sep-10 4:55 
Questionlooking for simple java code to read serial port Pin
aliyesami1-Sep-10 11:51
aliyesami1-Sep-10 11:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.