Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

Mike Minner

Greenhorn
+ Follow
since Nov 21, 2003
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 Mike Minner

Now, don't go setting me on another adventure that I don't have time to go on but probably will any way because I am incapable of letting it go.
16 years ago
JSF
Yes, you are right. Just wrap it in a panelGrid. I wanted to keep the code simple.

You shouldn't have to adjust the javascript, because the <td> will still be the parentNode of the element passes as "this" in the method call.

cheers
16 years ago
JSF
Will this work for you?

Javascript:


JSP


Note: I had to put a space in "onmouseover" to be able to post this.
16 years ago
JSF
Will this work for you?



Edit: had to put a space in 'onmouseover' call because the BB would not let me post it otherwise.

[ August 23, 2005: Message edited by: Mike Minner ]

Smilies are the spawn of Satan!!! Aaarrggghhhh!!!
[ August 23, 2005: Message edited by: Mike Minner ]
16 years ago
JSF
Will this work for you?



You'd probably want to put the colors into css styles. I added them like this to emphasize the colors.

[ August 23, 2005: Message edited by: Mike Minner ]

Why is it that when you edit a post, it unchecks the 'Disable Smilies' box?!?!?!

[ August 23, 2005: Message edited by: Mike Minner ]

AAAAARRRRRGGGGHHHHH!!! Smilies!!!
[ August 23, 2005: Message edited by: Mike Minner ]
16 years ago
JSF
The HF patterns book is not a j2ee patterns book. If you are interested in j2ee patterns, then I would suggest Core J2EE Patterns by Alur, Crupi and Malks. If that is what you are interested in, then yes, you should have a good understanding of EJB, Servlets, etc...

The HF patterns book is a learning tool for OO patterns, j2ee is not a pre-requisite. These patterns would work just fine in command line apps, Swing apps, applets, client/server apps, and yes, enterprise apps. But they are not enterprise only, or even enterprise-focused.
Aaaahhhhh.....

I am trying to learn JSF in WSAD 5.1.2


Missed that part of your first post. There are folks here familiar with this. I am not one. Can somebody help Percy out?

[ August 10, 2005: Message edited by: Mike Minner ]

[ August 10, 2005: Message edited by: Mike Minner ]

[ August 10, 2005: Mike Minner is getting tired of trying to get formatting correct ]
[ August 10, 2005: Message edited by: Mike Minner ]
16 years ago
JSF
Was it Sargeant Hulka that said something like, "Don't call me 'sir', I work for a living"? Something like that...





Are these the same method? I suppose they cannot be since they are obviously different.

Are they in the same backing bean? I suppose they cannot be since they have the same signature.

So are there two different backing beans which each contain a method with the signature ?

If so, are the <h:commandButtons>'s wired to the right bean? Can you post the relevant parts of the actual JSPs?

Your navigation rules look good. I do not see any problems there.

[Edit] grrrr....
[ August 09, 2005: Message edited by: Mike Minner ]
16 years ago
JSF
hey amit -

I've read it a couple times, and now I'm participating in a design patterns group at work using this book as the text. I'll give the book a rating of 7. They do a good job of explaining the GOF patterns, but some of the examples seem really forced and use design patterns for the sake of using design patterns (but it is a design patterns book ya know ). Of course, following the HF philosphy, the examples are supposed to concern things that the audience is really interested in (ie Pizza, Coffee, Rubber Ducks :roll: ) . If you are new to patterns, this is the right book for you. If you are experienced with patterns, I'd stick with the GOF book.

one more question....for reading j2ee desing pattern book like HF

is it cumpulsary to know EJBs.. ?

what if i have all knowledge of jsp/servlets ..will that work for studing design patterns ?



You won't need to know any of that stuff for this book. Just Java.

My two cents. Hope it helps.
[ August 09, 2005: Message edited by: Mike Minner ]
16 years ago
So both your usermainmenu.jsp and your login.jsp contain a Submit button? Are they using the same backing bean? Are they both bound to the same value? Are you calling the same action method from both buttons?

Can you show more of your code, or describe what you're trying to do?
16 years ago
JSF

As far as the URL not matching the current page, The URL is always a page behind with JSF. You can pretty much ignore what is happening in the address line in your browser. It is meaningless to the page you are on.



While it being 'meaningless to the page you are on' might be true, the URL does not always have to be 'a page behind with JSF'. If you use the <redirect/> tag as I listed above, the URL will reflect the current page.
16 years ago
JSF
Instead of defining your goto pages in the action, why don't you use a <navigation-rule> in the faces-config file instead? Then your action could look like this:

if (getUserId().getValue().equals("admin"))
return "admin";
else
return "user";

Then, define your <navigation-rule> like this:

<navigation-rule>
<from-view-id>/login.jsp</from-view-id>
<navigation-case>
<from-outcome>admin</from-outcome>
<to-view-id>/adminMainMenu.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>user</from-outcome>
<to-view-id>/userMainMenu.jsp</to-view-id>
<redirect/>
</navigation-case>
</navigation-rule>

Note the use of <redirect/>. That should help with your URL troubles.
16 years ago
JSF
The Java Blueprints are a good source, as Nathan suggested. An article that really helped me integrate Ajax and Struts was Frank Zammetti's piece.
Is calling BodyTagSupport.getPreviousOut() equivalent to calling BodyTagSupport.getBodyContent().getEnclosingWriter()?

I have my exam in a couple of hours and I am still unclear on this matter.

I think you mean this
code:
if (x == 0 ) doThis(); else doThat();


Yes, yes. Thank you, chi. My bad.
18 years ago