I have a simple data object: Car. I am showing the properties of Car objects in a JSF datatable. If i display the properties using inputText tags, i am able to get the modified values in the managed bean. However i just want a single row editable. So have placed a edit button in a separate column and inputText and outputText for every p...
I am not sure jndi lookup is necessary or not in terms of ejb3 technology advantages. Any help would be appreciated, thanks.
...
<h:dataTable width="100%" border="1" cellspacing="0"
cellpadding="2" style="border-collapse:collapse;display:block"
styleClass="Header" value="#{adminBean.displayResults}"
var="aResult" binding="#{adminBean.browseResultsHTMLDataTable}">
This is what i am trying to do. I have a dynamic list of data, which i try to display in the H...
I am using JSF 1.1 with struts. Pages flicker while navigation. Is there any solution for that. I used the below code to avoid
<meta http-equiv="Page-Enter" content="BlendTrans(Duration=.01)" />
<meta http-equiv="Page-Exit" content="BlendTrans(Duration=.01)" />
is it correct?
...
How to display data in horizontal direction like:
lable: data
name: srinu
in multiple rows using h:dataTable in JSF? Right now I'm getting data in vertical direction like:
| lable | data|
data srinu
I want it in this format:
lable: data
name: srinu
Code which I used is:
<h:dataTable id="fundInfo" value="#{clientFundInfo}" ...
Hi,
I have a requirement to allow a user to embed JSP pages into my website...I'm using IceFaces/Facelets to do the navigation menus etc. and would like to include a JSP page using ui:include
Is there anyway of doing this (given that the JSP is not valid XML).
Thanks.
...
I need to have resource messages that contain EL expressions be resolved when loaded from a ResourceBundle. Basically I have a number of properties files containing the text. Some of the text will look like the following:
welcomeText=Welcome #{userbean.name}
The only possible way I can see this working currently is implementing a custo...
Hello All,
I am doing small Project in JSF richfaces.
I have specified getter and setter methods for member variables...
Mbean created for the same. The Constructor getting called but all other methods which i have specified is not calling.
i have specified bean in faces-config also
please help me out
Thanks,
Jungle_Hacker
...
I am using richfaces 3.3
I want my user to able to specify a location on the server where he can save the file.
How do I do it ?
...
I am trying to write a component in JSF to read legacy JSP files. I am using RequestDispatcher.include to do this...The only problem is that externalContext.getRequest().getRequestDispatcher(...) returns an UnsupportedOperationException in Icefaces.
Is there a way round this?
Thanks.
...
I'm looking for a way to show/hide an arbitrary RichFaces component. In this case, I have a <rich:dataTable> that contains several rows. Each row needs to have it's own, independent Show/Hide link, such that when you click "Show details", two things happen:
The "Show details" link is re-rendered as "Hide details"
The associated details...
I'm developing web-application with JSF. I tested it as I was able to but from time to time runtime exceptions are thrown.
So, how to redirect user to special error page every time an exception is thrown (instead of displaying 500 Error with full tomcat logs)?
...
In my application i have three buttons, If i click on one button I have to disable all the button till the operation on that button is finished.
I dont know how to disable the other two buttons. Kindly help.
...
Hi All,
I am totally new to UI programming. I am designing a JSF web application and planning to use JAAS also. I am interested in knowing if there is a way to give on the fly UI for different roles based on the capabilities/permissions a particular Role has. From a brief look my understanding is that JAAS will throw exception if the pe...
Hi,
I have a web application with a backing bean which has the context of the current logged in user. It is implemented on JSF.
When the user logs out he is forwarded to a login screen (in another JSP page). I would like the current session to be erased when that happens and a new one to be created the next time the user logs in and en...
I am new to JSF, I want to integrate JSF with Jasper report. I am generating custom report from server side, that report should display into the UI using JSF components.
How to do that? Could you please provide the JSF and Jasper Report Simple Program and required libraries.
...
I've an h:dataTable to display my item information (in my case a customer support request) and for each row I'd like to put an h:inputText and h:commandButton to add a comment to the desired item. I've no problem with action, but my question is about the correct way to manage many h:inputText and related value on backbean.
I'm not sure ...
I have a problem in JSF2 with client side state saving and serialization. I have created a page with a full description and a small class diagram: http://tinyurl.com/jsf2serial. For the client-side state saving I have to implement Serializable at the classes Search, BackingBean and Connection. The exception that was thrown is:
java.io...
Hello,
I have a folder named Common/Images/Photounavailbale.jpg. Is this right way of refering to a image from root? I want to refer this image from any page in any folder in my web application.
private String getPhotoUnavailablePath = "/Common/Images/PhotoNotAvailable.jpg";
private String getPhotoUnavailablePath(){
return p...
Hello,
Let's consider that I want to extend an existing JSF component, such as the <rich:datatable/>. My main requirement is to dynamically modify the content of a <f:facet>, to change its content.
What is the best way to achieve that? Or where is the best place in the code to achieve that?
In my faces-config.xml, I have the following...