Bob Good

Ranch Hand
+ Follow
since Jan 09, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Bob Good

In Rational Application Developer, you can invoke a method using:
16 years ago
JSF
perhaps try binding the field to a backing bean property
16 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.
16 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
16 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:

17 years ago
JSF
lol from above:


Missing closing brace for myBean.myBooleanOption

17 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.
17 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:
17 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):

17 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'?
17 years ago
JSF
Yes, keep the edit, just give them subtle hints too as they are typing and tabbing.
17 years ago
JSF
if you debug / break on the getter, is it going up to the server when you expect?
17 years ago
JSF
does you backing bean have a both getFlcArr and a setFlcArr?
17 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" ...
17 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.
17 years ago
JSF