Jason O'Brien

Greenhorn
+ Follow
since Aug 27, 2014
Merit badge: grant badges
For More
South Africa
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 Jason O'Brien

Typically figure this out only after posting, not to worry, all sorted here. Thanks anyway!
5 years ago
JSF
Hi

I am using JSF richfaces 3.3.0. I have a rich:datatable, one of the columns is a h:inputtext and I need to validate the input as it happens. I call a method onblur in my backing bean that checks the value and displays an error message if the value is out of range (this works). I would however like the h:inputtext element to gain focus only if the value is out of bounds. The focus attribute does not work as this only specifies which element should gain focus after the function is complete and therefore happens regardless of the value entered. I have tried to embed some Javascript in my xhtml file (see below) but this does not seem to be working. Any suggestions are welcome.

5 years ago
JSF
Thank you Tim. Your reply was very informative. I obviously did not word my initial post very well but there are three options to select with the radio buttons but as you say only one option per row may be selected.

I have resolved the problem thankfully. The ajaxSingle attribute I mentioned above did the trick. The build just did not compile correctly the first time around.

Thanks again!
7 years ago
JSF
I should probably also mention that I cannot replicate this issue when working on my local server however when deployed to the application server I experience the problem.
7 years ago
JSF
Hi

So I have a rich:Datascroller with a rich:DataTable. One of the columns has a selectOneRadioButton with the values "approve", "decline" and "none". When the page loads all the rows have the value set to "none by default". At the bottom of the page is a group of buttons, one of which is "approve all" which sets the value for that column to "approve" for each and every row.

My problem come in when I change to next page from page 1, the values for this column on pages other than page 1 are set to null and hence none of the radio buttons are selected. This does not happen every time, it happens randomly. I found advice online to try and set the ajaxSingle attribute of the datascroller to false but this has not helped.

Any advice would be greatly appreciated.

Thanks,
Jason
7 years ago
JSF
Okay, thanks Tim, much appreciated
8 years ago
JSF
Hi

I am trying to modify existing code that uses a simpleTogglePanel where each simpleTogglePanel has a couple fields that can be changed.

Basically I want to set a boolean value based on whether any one of the fields inside the simpleTogglePanel have been changed. I would like to avoid having to put a change listener on each and every field.

Does anyone know if it is possible to apply a change listener to the entire panel? Or if there is another solution?

Thanks,
Jason
8 years ago
JSF
Hi

I will do my best to describe the problems I am experiencing, but this is all fairly new to me, so if there is any more information required, I will do my best to provide it.

I am having two issues and I am unsure as to whether or not they are related or not.

The first problem is one I am experiencing with SVN. I add our branch as an SVN location within Eclipse, I then check out the Domain as well as the project. The project used to check out with a whole lot of Maven dependencies, however it no longer does this and I have to add a user library to my build path containing hundreds of JARS and there are still some missing that I am unable to locate. Also when we start working on a new branch, I am unable to switch my branch, I have to delete the project from my work space and re check it out and re add the user library. This all started after I noticed that when I checked out the project it was not checking out with the latest files in some instances, so I decided to delete my work space and start from scratch.

Then second issue I am having is when I build using Maven, there is a file in my Domain (which has been built successfully), this file is referenced from my project and even though when I open up the file in question it has all the relevant methods I need, I try to build the project and it complains about these methods being missing from the Domain file and hence the build fails.

If anyone has any idea about what might wrong I would appreciate suggestions. I hope this makes sense.

Thanks,
Jason
8 years ago
Hi

I was hoping somebody could offer me the best way forward. I am still fairly new to JSF and am not sure how to proceed.

What I have is a backing bean with all the data I require that is populated into a rich:datatable. The issue I have is that one of the columns in the table is a column of buttons and I require for one of the rows to not have a button based on the data in the backing bean.

Ie. there are three possible rows returned to populate the table, and only if 2 specific rows are returned, I need only one of them to have a button, or better yet, for the button to span 2 rows and effectively apply to both.

If anyone has any ideas as to how to proceed it would be greatly appreciated.

Thanks,
Jason
8 years ago
JSF
Wow guys, thanks so much for the advice. I'm definitely going to get started with those books. I really appreciate the help!
9 years ago
Hi

I am fairly new to the forum, I was hoping to get some advice/direction.

I have just finished an introductory course in Java. The course covered most of the basics. To give some perspective our final project was a DVD store system with database interaction, client/server model, booking system, report printing, rentals etc.

Since then I have started working at a corporate company in a type of learnership role, which is experimental for them not having done it before. They use technology such as JSF, EJB, JBoss, this is all very new to me and somewhat overwhelming.

I am not actually sure how far away my current knowledge is, in terms of gaps that need to be filled. The two topics that seem to be of some importance moving forward are learning about servlets and JSP's as a grounding.

I'd appreciate if anyone could offer any advice in terms of topics to focus on or if I should jump straight into JSF? And potentially any good books available on these subjects.

Thanks in advance.
9 years ago