Win a copy of React Cookbook: Recipes for Mastering the React Framework this week in the HTML Pages with CSS and JavaScript forum!

Zack Marrapese

Greenhorn
+ Follow
since Jul 02, 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 Zack Marrapese

I found out my problem. According to the manual, there are some limitations on submitting from a modal pane:
1.) A form must be declared within the modal panel (and therefore, the modal panel must be defined outside any existing form to avoid nested forms).
2.) The modal panel can't be included onto the page. It must be in the base of the page.

Hope this helps others that have this problem.
~Zack
13 years ago
JSF
I am working on a project in which I would like to pop up a window which will do some basic form submission. After this I would like to return to the previous view.

I chose the rich:modalPanel component for this. I have no trouble showing and hiding the window. However, when I try to call any actionListener from a command object within the modal panel, it does not reach the actionListener. Here is the relevant portion of my code:

TEMPLATE:


modalPanel defined:


Backing bean:


However, the actionListener is never even reached (confirmed in debug). Any suggestions?
13 years ago
JSF
never used tomahawk datatable...but on h:dataTable and rich:dataTable, you can create an action using a command button, command link, or whatever you like just like you do when you are outside a data table.
13 years ago
JSF
I think the compatability issue would be with websphere, not RAD (?). And as far as that goes, it supports JSF 1.1 I believe. It is way behind and a very buggy IDE also...my company just stopped using it.
13 years ago
JSF
You should seriously consider using RichFaces. They do an excellent job of it, and there is no real reason to re-invent the wheel. You will end up spending a ton of time and the result will be inferior to richFaces/ajax4jsf anyways...they have been working on this project for years.
13 years ago
JSF
Core Javaserver Faces is a great book.
13 years ago
JSF
Thanks for the informative reply, Tim! How would I instantiate the session bean the old fashioned way? I am relatively new to JSF, and haven't instantiated them manually before.
13 years ago
JSF
that will happen if the button isn't actually within a form...make sure there is a form tag around that button.
13 years ago
JSF
Hi all-
I have a session scoped backing bean which is never actually referenced in the view. It is simply used to store EJBs, which can be retrieved by my request scoped beans (which are referenced in my .xhtml files).

However, how can I actually get this session bean into the FacesContext's session scope map? Since it's never actually used on the page, it's never loaded into session.

I realize I could put a dummy variable into the session scope bean and tie it to a hidden field in the view. However, that seems really hacky...any suggestions?

Thanks in advance,
~Zack
13 years ago
JSF
you should be able to access it using #{param.keyName}
13 years ago
JSF
Creating custom components is REALLY easy with facelets.
13 years ago
JSF
You can still access any folder that's in your web content folder by making the URL reflect the file structure.
13 years ago
JSF
Not sure why you would not want to use AJAX...check out the richFaces/ajax4jsf libraries...they really are wonderful.

They hide all the javascript and what-not involved in HTTP requests and just give an extremely easy-to-use set of tags.
13 years ago
JSF
two problems:

1.) your setter for select items is never actually getting called. You could probably fix the problem by calling that setter in your constructor.

2.) you are binding the value of f:selectItems to plList, but your getter is for options. You can either change the getter to getPlList, or you can change the value binding to selectItemsBean.options

Hope this helps
~Zack
13 years ago
JSF
Or a more JSF-like way to do it would be to bind your loginError and error values into a backing bean in the faces-config and then use <h:messages /> and generate a message depending on whether or not loginError is null:
13 years ago
JSF