Re: duplicated messages useing addMessage and aliasBean

2005-09-13 Thread Rashmi Kumari
Hi, Instead of MessageFactory.getMessage(context,"myMessageID") you can use new FacesMessage("Message to print", "") Thanx and Regards Rashmi

RE: having problem with inputSecret tag

2005-07-19 Thread Rashmi Kumari
the desired behavior of the password field. -----Original Message- From: Rashmi Kumari [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 19, 2005 9:22 AM To: MyFaces Discussion Subject: having problem with inputSecret tag Hi, I have a user form having password field(using tag) and a list box(

having problem with inputSecret tag

2005-07-19 Thread Rashmi Kumari
Hi, I have a user form having password field(using tag) and a list box(using ). whenever I change value of the list box, password entered in the text field disappears and user has to renter the password. Similarly if I retrieve user's data from the database, all the values are shown except pa

Re: incorrect display of error message

2005-07-13 Thread Rashmi Kumari
I had the same problem of getting the error messages twice. I used this constructor of FacesMessage FacesMessage(java.lang.String summary, java.lang.String detail) and set the detail to an empty string. Now it is working as desired. So in ur case, you can try context.addMessage(

Re: Redirect on Session Timeout

2005-07-07 Thread Rashmi Kumari
Thanx for your replies... Its working now... Regards, Rashmi [EMAIL PROTECTED]

RE: Redirect on Session Timeout

2005-07-07 Thread Rashmi Kumari
Hi, I did the same thing to check for an invalidated session. But when session becomes null, infinite loop is formed and the output string "Session is null" is getting printed infinite times. public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws

RE: File upload problem

2005-06-30 Thread Rashmi Kumari
x is empty ) the backing bean checks if the image was already uploaded or not, if it was it uses the uploaded image, else it thinks that the user hasn't chosen any image. HTH Srikanth -Original Message- From: Rashmi Kumari [mailto:[EMAIL PROTECTED] Sent: Thursday, June 30, 2005 8:50 AM

RE: File upload problem

2005-06-30 Thread Rashmi Kumari
Do you have upload and a submit button on the form ? -Original Message- From: Rashmi Kumari [mailto:[EMAIL PROTECTED] Sent: Thursday, June 30, 2005 12:55 AM To: MyFaces Discussion Subject: RE: File upload problem Thanks a lot Srikanth. By using the tag, I found where lies the error. Actually

RE: File upload problem

2005-06-29 Thread Rashmi Kumari
ensionsFilter /faces/* also have you tried with the tag on your form ? -Original Message- From: Rashmi Kumari [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 29, 2005 8:56 AM To: MyFaces Discussion Subject: RE: File upload problem url pattern for JSF is

RE: File upload problem

2005-06-29 Thread Rashmi Kumari
Also check the filter mapping. Seems like you just cut and pasted the extension filter setup into your web.xml. How is your url pattern for JSFs. I am talking about this part... extensionsFilter *.jsf extensionsFilte

Re: File upload problem

2005-06-29 Thread Rashmi Kumari
Discussion" have you configured the extension filter and added enctype to ? -Matthias On 6/29/05, Rashmi Kumari <[EMAIL PROTECTED]> wrote: > > Hi,

File upload problem

2005-06-29 Thread Rashmi Kumari
Hi, I have added File upload component in my application. User selects the image and can see the preview of it as it is happening in myfaces examples. I have a save button also for calling the action but form is not getting submitted when this button is clicked. If I remove the file upload tag, t

Re: SelectItem and Hibernate

2005-06-28 Thread Rashmi Kumari
I think writing the getRoles method in this way will help. List roles; public List getRoles() { ArrayList list = new ArrayList(); try { Session session = HibernateSessionFactory.currentSession(); List l = session.find("from Role"); fo

Re: Unable to render Server side tree2

2005-06-23 Thread Rashmi Kumari
ld be able to modify the client-side trees in the examples using the server-side examples as your guide. HTH, sean On 6/23/05, Rashmi Kumari <[EMAIL PROTECTED]> wrote: > > Hi, > > I have build a client side tree using X:tree2 tag which is working fine but > when I ch

Unable to render Server side tree2

2005-06-23 Thread Rashmi Kumari
Hi, I have build a client side tree using X:tree2 tag which is working fine but when I change it to server side tree using clientSideToggle="false" attribute, it is giving error. The jsp is---

conditional display of checkboxes

2005-06-02 Thread Rashmi Kumari
Hi, I have to include checkboxes on the jsp based on the value in a String array . I have included the relevant code of the jsp that does this. First 2 checkboxes are printed. Then the application throws error. Please guide me where I am wrong. <% String[] rightsList = (String[])session.ge

parent of a child node

2005-04-07 Thread Rashmi Kumari
Hi, I have to find the name of the immediate parent of the selected leaf node. The below code gives me the name of the selected node. public void selectionTreeActionListener(ActionEvent actionEvent) throws AbortProcessingException { UIComponent component = actionEvent.getComponent

colorpicker + MyFaces

2005-03-29 Thread Rashmi Kumari
Hi, I have to attach a colorpicker with a text field. With a struts application this javascript was working fine but with MyFaces the color picker is opening fine but I am unable to select any color. The jsp part where I am attaching the javascript is as below: