mark weatherill

Greenhorn
+ Follow
since Jan 21, 2006
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 mark weatherill

Dear Sir / Madam

Can anyone confirm the Sun policy on partially correct answered questions on the scwcd exam? In other words, for multiple answer questions, if there are three correct parts to the question and you only get two correct, is the question scored as 0/1 or is it scored partially correct, such as 0.66/1?
Cheers

Mark Weatherill.
Folks

I would like to include both a text label and image of a close button in the header of a richfaces tab component.
I have tried including a
<f:facet name="label">
<h:graphicImage value="closeButton.gif"/>
</f:facet>
in the <rich:tab> tag which also has a label attribute, but only the image data gets displayed, not both.
Could someone please suggest a way to include both text and image in a richfaces tab component?
Thanks,

Mark Weatherill.
16 years ago
JSF
Hello Ranchers

I have a UI form consisting of a menu bar along the top and several button components on the page. At the moment, it is possible to display hidden (ie. not rendered) pop-up windows when either menu items or buttons are clicked. All these components get sent to the client during the JSF request processing lifecycle.
What i would like to know is this: in order to reduce network traffic in the case of low bandwidth internet connections, is it possible to suppress sending of the hidden pop-up windows from the server machine to the client machine as long as the user does not request them by making a mouse click?
And if it is possible, what methods could be used?!
Cheers,

Mark Weatherill.
16 years ago
JSF
Problem statement: i have implemented the RichFaces suggestionbox tag using Java statements in a method of a Seam backing bean. In order to customize its behaviour, i am trying to pass a parameter to the method of the backing bean; the catch is, the method which sets up the suggestionbox is invoked in the Seam bean using the @Create annotation.
The JSF statement is:
<a4j:outputPanel binding="#{tabManager.autocompletePanels[tabID]}"/>
The getAutocompletePanels() method just returns an instance of autocompletePanels (a HashMap).
In the Seam backing bean, the annotation is:
@Create
public void afterCreate() {
methodToSetupSuggestionbox();
}
I know it is possible to pass parameters to backing bean methods using a JSF page nested tag like: <f:param name="paramName" value="paramValue"/>, and
then accessing such a request parameter in the bean method using:
FacesContext context = FacesContext.getCurrentInstance();
Map map = context.getExternalContext().getRequestParameterMap();
String paramName = (String) map.get("paramValue");

The problem is how to pass a parameter into the method which is called from the Seam annotation to create an instance of the backing bean when one doesn't exist in the session?

Any useful suggestions gratefully received, otherwise back to the drawing board!
Cheers,

Mark Weatherill.
16 years ago
JSF
Hi Ulf

I got it all working now; for a totally sublime Java Swing Mastermind gaming experiance, browse over to http://geocities.com/m_weatherill/HomePage.html and follow the link to the Mastermind game.
Basically, I did the following:
1) Changed the ImageIcon constructors' argument from a string to a URL object ref.
2) Created keys & certificate using the JDK's keytool.
3) Exported the self-certified X.509 certificate and then imported it into the cacerts keystore on my local file system, also using keytool.
4) Signed the jar file using jarsigner.
5) Uploaded the signed jar file and all the image files to the server.
And it now works.
Thanks for your advice!
Mark.
18 years ago
Hi

I've written a game JApplet which uses 3rd party image gifs and jpgs embedded in JLabels / JButtons. Trouble is when I try to browse my Japplet, I get security exceptions left, right & centre becuse it won't allow the JApplet to read external files, even on my local machine!
The only solutions I can think of are twofold:
1. use public / private key encryption (messy), or
2. use custom graphics routines
Are these the only viable solutions, or is there a more elegant answer out there somewhere in Javaspace?!
Thanks.
18 years ago