Select one Validator problem when using converter on JSF 1.2

1244 byte By lucasma at 2007-11-27 9:08:12
I implement a converter to put on select one boxes witch will translate ids to complex bean types.This convertes works fine with JSF 1.1 Myfaces implementation.Now i am using JSF 1.2 and i am facing the folowing problem.The converter successfully converts the Id to my bean but it returns a ...

How JPA Transactions Work ? DAOs and Transactions generic is possible ?

1054 byte By Solraca at 2007-11-27 9:08:13
Hi all, I have a question respect to a EJB3.0 JPA Transactions work.if i have the folowing code inside EJB container:In a Generic DAO:public Object mergeEntity(Object entity) {return em.merge(entity);}public Object persistEntity(Object entity) {em.persist(entity);return entity;}In a ...

i am not able to set JMSMessageID when i publish a message to a queue

756 byte By Your-Answera at 2007-11-27 9:08:16
Hi, I am trying to set JMSMessageID using Message_id="5555";tmessage.setJMSMessageID(MESSAGE_ID); statement. but i could set that id. the EMS server is setting some id by default. is there any possibliity to change that id and give user definied id? if so let me know how to do that. the below ...

reference EJB from servlet's action/helper classes

784 byte By STFa at 2007-11-27 9:08:52
HelloHow to make a reference to stateless session bean from one of the helper classes of a servlet WITHOUT using any of these:* dependency injection (like @EJB) - I think this is not supported in this kind of class, EJB references can be injected only to servlets themselves or some other things ...

Validate Composite unique key using Hibernate

340 byte By ILANGOa at 2007-11-27 9:09:07
Friends,Can any one help on "How to validate a composite unique key" with hibernate. Lets say table "MyTable" has columnsIDAmountParentIDTypeHere ParentID & Type are composite unique. How do I enforce this rule via hibernate? OR is there any work around. Please ...

Using servletRequest and servletResponse to redirect

1001 byte By jco1323a at 2007-11-27 9:09:10
Hi,In researching ways to prevent direct access to pages in a jsf application, I came across a filter made by oracle. It seems to be a good filter so I decided to use it. It checks to see if the request is GET because, with the exception of redirect, JSF navigation is all POST and a GET request ...

JRE 1.5 VS. JRE 1.6 - Could not convert socket to TLS

5993 byte By zparticlea at 2007-11-27 9:09:14
I have an applet that is trying to send an email through an SMTP server. It works just fine 1.6 but on 1.5 it blows up and I'm kind of at the end of my rope. Any help here would be great.I've had to set up the DummySSLSocketFactory as described in the JavaMail readme but still no luck on ...

Eliminate external dependencies from XML files

754 byte By RaymondDeCampoa at 2007-11-27 9:09:17
Does anybody have any pointers on how to eliminate external dependencies on schema within XML configuration files? For example, my web.xml starts out like:<web-app version="2.5" xmlns=" http://java.sun.com/xml/ns/javaee" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" ...

jsp--option

2125 byte By deroka at 2007-11-27 9:09:35
Hi,I am programming a Products sale.I am working with this variable "pricevar" which represents a price in a table, and a submit button that everytime is pressed, it adds this price with a product description.There is also a select> <option so the user could choose the quantity of the ...

pass an array from servlet to JSP

549 byte By karenJJa at 2007-11-27 9:10:01
Hi,I want to pass an array from servlet to JSP page. in the servlet: stringArray[0]= "string1"; stringArray[1]= "string2"; stringArray[2]= "string3";session.setAttribute("stringarray", stringArray);in the jsp:String[] stringArray=session.getAttribute("stringarray");but it seems that ...

pass an array from servlet to JSP

549 byte By karenJJa at 2007-11-27 9:10:03
Hi,I want to pass an array from servlet to JSP page. in the servlet: stringArray[0]= "string1"; stringArray[1]= "string2"; stringArray[2]= "string3";session.setAttribute("stringarray", stringArray);in the jsp:String[] stringArray=session.getAttribute("stringarray");but it seems that ...

Getting XPath from current Node

1225 byte By andrers2ba at 2007-11-27 9:10:12
Hey everyone,I have a JDom document and I'm trying to visit all the nodes and print their path. How do I do the printing?This is what I have (from javaalmanac):// This method visits all the nodes in a DOM treepublic static void visit(Node node, int level) {// Process node// If there are any ...

Reloading data model when page in session scope accessed.

1021 byte By ryanskellera at 2007-11-27 9:10:46
I'm looking for a better solution to a page refresh problem I've encountered.I am working with a POJO managed bean in Session scope which displays data for one of my domain objects. When I navigate to the page, I would like it to re-load the data for this domain object from the database and ...

Preserving whitespace in DOM

363 byte By ysh78NJa at 2007-11-27 9:10:48
Hi All, Suppose I have an xml fragment within a valid xml file which is like "<input name='test'>". When doing DocumentBuilder.parse(xmlString), is it possible to preserve the space after 'test' and before '>'? Right now when I print the document the whitespace is stripped. I'm ...

Calling A Servlet from JSP

742 byte By stricksa at 2007-11-27 9:10:50
Hello, I'm trying to do the following. When a user submits a form, several validations are done. The last validation needs to gather information from a database.I don't want to put all the connectivity code and such in my JSP (trying to keep logic out or display).I would rather not use an ...

Question for Faces Frameworks, ICEfaces, trinidad, Oracle, ajax4jsf...

949 byte By Solraca at 2007-11-27 9:11:06
Hi all, I have a developed a application using Oracle ADF Faces, good, have some pitfails but OK.Now its necessary i develop a new application to system 24*7 Critic Mission, what of this frameworks i Use ?Ajax4Jsf and RichFaces one or two projects ? What diferences ?Apache tinidad, MyFaces and ...

Through Hyperlink do some action ?

350 byte By khan_vu2007a at 2007-11-27 9:11:14
HI,What i want to do is through a Hyperlink go to next page and on that page i want to get values from database .Example:suppose we have a page like this FormidDepartmentNameViewDetailsand after clicking that Hyperlink it shows the values from the databasehow can i do that ...

Simple Java Question

1352 byte By mail2bansia at 2007-11-27 9:11:18
We use JSF, Spring, HibernateWe are having problems updating associated objectsLet say if Parent object ( in my case DeviceType) is associated with 3 records of Child object ( in my case Role) . During update, if i add or delete a Role from User Interface, i have observed the default behaviour ...

struts <global-forwards> issue

1556 byte By MrReddya at 2007-11-27 9:11:35
Hi,I searched a bit on <global-forwards> and my understanding is that in the Action class, the ActionMapping object will try to look for the local forward defined in the <action-mappings> tag, if it is not found in that, it will then look for the <global-forwards> ...

how to refresh JSP pages?

178 byte By jayson17a at 2007-11-27 9:11:46
help i cant get my JSP page to refresh..it keeps on displaying the old page even if i have edited the old one.im using tomcat 6.0 can someone help me please?

Using html:select trag in struts

379 byte By CPGuptea at 2007-11-27 9:12:01
I have a masterbean (placed in appl;ication scope as mb) holding collection of various data which is populated when application starts up.In the page when I try to use the html:select tag it gives an errorThe tag is <html:select property="city"><html:optionCollection ...

selectOneMenu Conversion Error

2674 byte By freebsdmap7a at 2007-11-27 9:12:14
I'm trying to create a drop down box with a list of security levels for a user. The problem I'm having is my selectOneMenu box is creating a Conversion Error when I submit the form (to create a new user).I've been reading a lot of different posts about this problem and tried their ...

how to use request Object on form submit

309 byte By subrato_001a at 2007-11-27 9:12:30
Hai all,i have a JSF page having simple form, username, password field and submit button, so on submit the form i want to get the data from the request object in next page without using a bean.How can i get it? I am looking for this problem for quite a long time, so can anyone help ...

Display value of 'checked' radio button

1039 byte By aparna_ra at 2007-11-27 9:12:31
Hi,I have 3 radio buttons on my jsp page and I would like the value of the radio button that has been selected, to be alerted in a pop-up message.This is my code:JSP,[CODE]<h:form id='msForm'>function ...

Display value of 'checked' radio button

1691 byte By aparna_ra at 2007-11-27 9:12:32
Hi,I have 3 radio buttons on my jsp page and I would like the value of the radio button that has been selected, to be alerted in a pop-up message.This is my code:JSP,<h:form id='msForm'>function ...

PhaseListener afterPhase(), getViewRoot() children are empty

285 byte By Pro-grammera at 2007-11-27 9:12:33
I have a PhaseListener which has a phaseId = PhaseId.RESTORE_VIEW. However in the afterPhase() is there a reason that the UIViewRoot object is not populated with UIComponents? Or is my understanding not right? I need to access UIComponents asap from the viewRoot!!

opening .tif file

134 byte By Suri.ya at 2007-11-27 9:12:34
I am having a JSP page from this jsp page on clicking the file name I want to open that ".tif " file is there any way for that?

how to auto email the generated jsp output page

187 byte By stalin_111521a at 2007-11-27 9:12:37
hi,guys i know how to mail and all that stuff.My present situation is to mail the jsp output page(that is the last page in my application)so thanks in advance.

installation

144 byte By codename47a at 2007-11-27 9:12:39
Hi all I am a beginer. I have to do a jsp project I installed tomcat 6.how can i change the work directory to D:/JSP

unit testing

145 byte By anu_pawara at 2007-11-27 9:12:43
hello,I want info about unit testing(manual & automated).actually what are things developers has to perform while unit testing?

jsp page doesn't find class

1034 byte By Aharona at 2007-11-27 9:12:57
Hi I'm new to web development so I'm sure this problem has a really easy solution (although its bugged me for days now).I have created a simple web application with eclipse and tomcat consisting of an html page (index.html) with a link to a jsp page (testpage.jsp) my test page calls a class ...

how t ocapture the jsp output page

203 byte By stalin_111521a at 2007-11-27 9:12:58
hi,my situation is to mail the ouput jsp page(last of my app) .i know how to send the mail.so the problem is i need to capture the jsp page so that i can mail it.thanks

valueChangeListener

1459 byte By Roberts_Va at 2007-11-27 9:13:04
Hello,i'm struggling with JSF.inside the jsp page there is list of client types, if the user selects some value, then in output fields have to be shown details of this client ...

Servlet VS JSP

149 byte By BomberMana at 2007-11-27 9:13:33
Hi, thereI'm newbie, can any one tell me what is advantage and disadvantage of servlet compare to JSP?Thanks for advance

Take Down : Store Image (or) Pic into DataBase and Retrieve from Database

4035 byte By drvijayy2k2a at 2007-11-27 9:13:55
Hi Lovables,Today i Posted a new Topic for u.. what i done successfully, Helping Hands is better than Praying Lips Thats my PrincipleProgram by : d.r. vijaykumaremail : drvijayy2k2@yahoo.co.in , drvijayy2k2@gmail.comph : hyd 09912877343 , tn 09842088860Plese Feedback Here is an example for How ...

How to dim the page when the pop-up is called?

432 byte By Sat@301177a at 2007-11-27 9:14:11
Scenario:I have the main page with floating button. While scroll throw the page, this button will move in the right side of the page (nearer to scroll bar). While clicking this button, I am calling the pop-up (using iframe for pop up and calling through java script). Here I want to dim the ...

Error when using a condition for required attribute

1327 byte By avnera at 2007-11-27 9:14:13
HiI have a requirement to validate the mandatory fields only when the submit button is pressed....if some other button is pressed or some how the form is submitted the validations should not be performed....I have used required="#{MyBB.somecondition}" for all the mandatory fields...the method ...

Unable to get <h:inputText> value inside the datatable when using phaselist

1711 byte By spywherea at 2007-11-27 9:14:16
i want to trim leading and trailing whitespaces from input boxes. i dont want to do that manually becuase there are quite number of controls in the application, i used PhaseListener with phaseID as UPDATE_MODEL_VALUES for this purpose, but the problem i am getting is that the input boxes inside ...

How to pass a value in session from java file to JSF JSP

341 byte By vijay_foruma at 2007-11-27 9:14:27
Hi,I am setting a value in session in java file and want to get that value in JSF JSP side in java script code since I am doing some action handling based on the value passed in session.But anyhow I am not able to do the same. Can anyone help me in doing this.?Thanks in ...

displaytag_xx and JSTL

423 byte By Sharifa at 2007-11-27 9:14:32
Dear Friends, I am using displaytag 1.1. I wish to use the string on the moving pages (ie First/Prev Next/Last) as a localized in italian. I have created two displaytag properties files (displaytag.properties and displaytag_it.properties) I have put the above files in WEB-INF/classes under ...

HOW TO RUN WEB LOGIC 8.1 SERVER

149 byte By SIVACHANDRAN55a at 2007-11-27 9:14:34
I want to run weblogic8.1 server ... so any body can u help me? I need urgently so kindly pls sent immediately......Thanking you

html:text box focus setting using javascript

238 byte By GuruSeethaa at 2007-11-27 9:14:42
Hi all,pls help me with setting the focus on a html:text box using a javascript function where i have validated the value of that text box. document.formName.textName.focus () is not working .Thanks in advance

Problem with decoding

185 byte By burchika at 2007-11-27 9:14:46
How to decode text like this: ?koi8-r?Q?=FD=C5=CC=CB=D5=CE=CF=D7_=ED=C9=C8=C1=C9=CC?= with the help of Java, of course?P.S. Do not send me to Java Mail FAQ, I've read it.

error compile stylesheet

3307 byte By Taigoa at 2007-11-27 9:15:11
hi!i need to transform a xml file into html file using docbook styleseheets, my java is:import javax.xml.parsers.DocumentBuilderFactory;import javax.xml.parsers.DocumentBuilder;import javax.xml.transform.TransformerFactory;import javax.xml.transform.Transformer;import ...

Give me your Suggestion for this Online Banking EJB

796 byte By Sri_Sria at 2007-11-27 9:15:15
Dear Friends,i am developing online banking project,using J2EE serverIn this just checking the customer transaction status only that is status of(withdraw,loan,account info). In this what type of enterprise bean is needed ? my idea is Session bean is selected,in this i am selecting stateless ...

HOWTO: Separate .property files rather than one big one

1284 byte By arnieAustina at 2007-11-27 9:15:26
I am familiar with the process of creating localized .property files for my JSF pages. What I would like to do however, is segment the file into multiple ones so that the messages stored in the request scope for each page is only the ones it needs, NOT the entire application's messages. To ...

Please tell me how to solve this

12805 byte By George-Kankavaa at 2007-11-27 9:15:31
I am using EJB 3.0 and SJSAS 9.0 --deployed with moduleid = EmployeeEntity[TopLink Config]: 2007.06.29 06:14:14.760--ServerSession(11110670)--The alias name for the entity class [class employeeentity.entity.Employess] is being defaulted to: Employess.[TopLink Config]: 2007.06.29 ...

Batch job in Java

366 byte By ASH_2007a at 2007-11-27 9:15:41
Hello ,How can I run a batch job (java class) that will update my jsp page with newly added entries from table in database.In short, i want to run a batch job which updates drop down list in jsp page every time any update happens in my table in database.Can anyone help with sample ...

HOWTO: Display a custom image on a jsp page

8173 byte By mokopaa at 2007-11-27 9:15:54
You need 4 files.1. a jsp page (index.jsp)2. A servlet (myPackage.ImageMaker)3. A supplier class (myPackage.PluggableSupplier)4. web.xml (your IDE should supply this)From the jsp page you're calling the servlet with an <img> tag, and passing it some parameters.The servlet obtains a ...

accessing item in list by index

252 byte By andrewbee2a at 2007-11-27 9:15:56
Hi,I am trying to write an EL expression, in a JSF page, that grabs a specific item in a list. Something like:#{ vendor.addresses[0].street }but this doesn't work. How do I get an item from a list by its index?Thanks