Ahmed Barradah

Greenhorn
+ Follow
since Oct 02, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Ahmed Barradah

One more thing, if later on I added a new object in my code and I want to store it into an XML will I be able to use the XMLEncodeer/Decoder to store it or let's say, I took one object out of my code will that work? Will I be able to read my old XML file? I am asking about all this because I am thinking about the maintability of the code and whether using the Encoder will provide me that option or not.

Thanks guys you have very helpful!
Hi again,
I wonder if XMLEnconding/Deconding is a good solution in the case of having the states of the objects changing between the Encoding and Deconing. If that were the case what would you suggest to do?

Thanks Bill
first thanks for replying to my email, Could you please explain those tools and where I can find some info about them. I have several Enums that has the states of some GUI objects and I need to save them into an XML file. I have learned that i have to use the XMLEncoder and PresistanceDelegate in order to do that but I am not aware how should I start? Also I thought about using JDOM to describe and manipulate the structure of the XML document but will I be able to manipulate those(Enums) through JDOM?

Thanks
Hi,
I am trying to store multipule objects in an XML file, but can I store write out several objects into XML ? becuase I tried to do that and when I read them back from the XML file I get an index out of bound exception.

Thanks in Advance,
Could you please show me an example, I am kinda new to designing GUIs in Java
18 years ago
Good Morning all,
I am trying to design a GUI for radio buttons where 0 or 1 radio button is selected instead of having at least one radio button is selected. I konw that once you select a radio button then there always must be one radio button selected, but I want to overide that, do you know a way around this? Thanks for yout time!
18 years ago
Hi,
I am developing a JSF application where I have a login page that authinticates the users and allow them to look into a DB(Oracle) and then execute some Perl Scripts on the backend and then present the output using <dataTable> However, lately I have been getting the outofMemory message alot and I don't know what am I getting for? and what should I do about it

Here is what I am getting:

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: javax.servlet.jsp.JspException: null
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:842)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.pages.seisPMFiles_jsp._jspService(seisPMFiles_jsp.java:204)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)


root cause

java.lang.OutOfMemoryError


Any help is appreciated it !!

Regards,
Ahmed
18 years ago
JSF
Hi all,
I am writing a JSF application, where I am using a dataTable tag to prsesnt a collection of beans. However, I need to color certain table cells. I tried to use CSS and StyleClass but I only get to color the fonts inside the not the whole cell. Btw, I don't want to use the oddrow or evenrow becuase I am coloring the cells based on some specific values and I managed to accomplish that but only the fonts that get colored. Is there something in JSF that can allow me to color the whole cell?

Best regards,
18 years ago
JSF