J Ruing

Greenhorn
+ Follow
since Feb 27, 2009
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 J Ruing

I was coming to this conclusion see code below - have to say not very happy about it ;



employeeBean.columns in my place is just four instances in a list of type Column (taken from rich faces sample project)
14 years ago
JSF
Hi,

I am relatively new to JSF so forgive me if this is a bit of a silly question. Our product allows clients to dynaimically select what fields they which to view on a html page. I am looking to move this to JSF.

At the moment I can display a single list (2 columns - label name & value) in a single table. I iterate over a list of field elements and thats fine. What I cannot figure out is how to display this in 4 columns label name, value, label name, value this would look much nicer to the user and would be a much better use of the available space on screen.

Any suggestions much obliged.
14 years ago
JSF
Not sure if the link posted previously is of any value as it relates to updating a jsf component based on user interaction this is not what I am trying to do. I will attempt to outline the problem domain:

Problem:
I have a jsf page that before it loads in the browser I would like to exclude certain fields from being rendered in the response. Sounds fine if I had a traditional backing bean but this is not the case. The application is dhtml and js using ajax requests to get data back from the server - I don't want to change this for now but want the advanages of using the jsf component libs.

We have a client that does not want 3 fields on a particular form so I decided to convert this form to a jsf document so that I could use the jsf panel and the response would render fine no need for me to code the client to ensure that there was no gaps in the form. I have attempted to use the rendered attribute but this has not worked. I have coded a PhaseListener that gets me most of the way it excludes the 3 fields from the form but only after the inital request has been served, i.e. only on second request. I have played around with all the different phase types but none seem to be able to take the 3 fields out of the inital client response. If anyone was any ideas on how to manipulate the component tree for the initial request and render the response please let me know.

Thanks,

JR.
15 years ago
JSF
What you have said is not correct when you have a list of fields the param value is always the last one so your suggestion is useless.
15 years ago
JSF
I have done as you suggested:



but on the bean the currentId is not a string it is an instance of

"getCurrentId()"= "javax.faces.component.UIParameter@1a06d8b" ???
15 years ago
JSF
I am using core tag libs for now and have played around with f:param and f:attribute as far as I can see:

f:param is used on a link or button to append additional info to the request

f:attribute (name/value) to be use to place addtional information into a individual UIComponent

both of these tags will not help - as within the method I don't know what component is exactly executing the call.

Thanks for the prompt reply - I am using a phase listener as I think this will allow me to do what I need.
15 years ago
JSF
Hi,

I am migrating a dhtml/ajax/spring web app to jsf on the front-end and am running into the following problem.

We have fields that are optionally rendered depending on a conditional flag that comes off the backend.



The bean is implmented as follows:




But the problem I have is within this method determining what form element has currently executed the method. Am I using the wrong approach here should I be using a phase listener not sure as new to JSF but any help much appreciated.

15 years ago
JSF