Win a copy of Securing DevOps this week in the Security forum!

Bob Good

Ranch Hand
+ Follow
since Jan 09, 2008
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 Bob Good

In Rational Application Developer, you can invoke a method using:
9 years ago
JSF
perhaps try binding the field to a backing bean property
9 years ago
JSF
One thing can happen in Internet Explorer if a user chooses 'open in new window' is that the new windows gets the same session id as the original windows. These windows would then be going after the same managed beans.
There are many situations where this can wreak havoc unless you handle it.
9 years ago
JSF
This is a extremely annoying shortfall in the JSF specification, making immediate=true fields incompatible with validation. Unfortunately it is 'as per specification'. As a consequence I tend to only use immediate=true if I have no validation, or for cancel buttons.

One thing I have used in place of immediate=true is an Ajax call to refresh the other elements when a list box is selected.

There are many options and frameworks to make the Ajax/JSF call, and have Ajax communicate with your backing bean in a JSF compatible way.

Hope this helps.
Bob
9 years ago
JSF
A phase listener is a type of plug in to allow you application to be invoked during the java server faces request life cycle.
You can invoke custom processing before or after a particular phase.
Here is a sample that is invoked before and afetr the RESTORE_VIEW lifecycle stage.




You also need to set up in faces config:

10 years ago
JSF
lol from above:


Missing closing brace for myBean.myBooleanOption

10 years ago
JSF
Here is a working example with backing bean of selectOneRadio:

http://www.exadel.com/tutorial/jsf/jsftags-guide.html

Sample code can be downloaded from the site.
10 years ago
JSF
Can you use a checkbox instead? GUI wise I think it is more correct for a true false selection. It will talk properly to a backing bean boolean:
10 years ago
JSF
This kind of code will send a file to the browser. It assumes 'doc' has the file contents. Make sure file has a known extension (pdf, doc, rtf, etc):

10 years ago
JSF
Are there any javascript errors on the page? If you are using IE, look in the bottom left corner of status line...Done it say 'Done' or 'Error'?
10 years ago
JSF
Yes, keep the edit, just give them subtle hints too as they are typing and tabbing.
10 years ago
JSF
if you debug / break on the getter, is it going up to the server when you expect?
10 years ago
JSF
does you backing bean have a both getFlcArr and a setFlcArr?
10 years ago
JSF
Rational Application Developer V7 has one built in but it is an IBM extension:
<%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
<hx:panelDialogtype="modal" ...
10 years ago
JSF
If it is an action (as opposed to actionListener) it should return a String. the string triggers navigation.

Also you want to ensure there are no javascript errors on your page.
10 years ago
JSF