Scenario:A list page with pagination enabled on the dataTable. Each entity has 3 links 'EDIT', 'DELETE' and 'START/STOP'. On clicking EDIT , the detail of that row is taken and a details page is displayed for editing. On click of DELETE, a confirmation is asked and proceeds to delete the ...
Hello.Just started working on a jsf project. I have made a template which includes a stylesheet. But if I create a jsf page in a different folder than the defaultfolder and I make it extend the template with ../layout/template.xhtml my template cant find the css file. Is there a workaround for that ...
589 byte By
siri85a at 2007-11-27 10:40:11
Hi All,I am learning Jsf and facelets.Please tell me how to write one facelet with example using jsf.I have downloaded one example on facelets.and when I am trying to run that example it is showing the errors that are related to <ui:composite>tag,do i need to copy any tld files in WEB-INF ...
Hi all,I am developing a website which requires to render big images on every page. The problem is...it takes ages to load.So is there any technique or special processing in HTML mark up / JSP to make it faster? Few lines of code would be useful...And can I use flash instead of HTML for this ...
185 byte By
jimmy6a at 2007-11-27 10:40:27
<p>How to avoid jsf Validator bypass empty string? I am doing hibernate annotation validation. i found that if the textbox is empty it will not reach to javax.faces.validator phase.</p>
115 byte By
JavaIQa at 2007-11-27 10:40:33
<p>Dear All,</p><p> Any one know how to remove ToolBar in IE and Firefox,</p><p>Thanks in Advance,</p><p>Manssi</p>
Hi,Can anybody provide solution for the following scenarion with respect to search opertion.scenario 1:I have one dropdown list and textbox with find button, if i change anything in the dropdown list it will give me the records based on the selected value in the dropdown list. scenarion 2: If i ...
HelloI have a form with 2 fields : 1) User Name 2) PasswordBoth are inside a managed bean.I tried to add validator to the password field in order to check if password is legal.The problem is that inside the validator , i can see only the password (by the 'object ' which has been sent to the ...
15741 byte By
forumaica at 2007-11-27 10:41:17
I am writing an ASP.NET application and using javascript DateTime Picker code (I have found it on the Internet):<script type="text/javascript">// <!-- <![CDATA[// Code begin...// Set the initial date.var ds_i_date = new Date();ds_c_month = ds_i_date.getMonth() + 1;ds_c_year = ...
199 byte By
uandmea at 2007-11-27 10:41:31
<p>Hi!</p><p>Is there anyway to place WEB-INF folder somewhere in the system(not in the app base path) and specify that path in web.xml or server.xml file? Pls help..</p><p>with rgds</p><p>Anvar.</p>
262 byte By
SecfGuya at 2007-11-27 10:41:44
<p>Hi all,</p><p>How can i read a file which is located inside the web application in servlet,.I have used getServletContext().getRealPath() but it is returning null when i deploy the application through war file,.</p><p>Please suggest me a work around here.</p>
918 byte By
Troilusa at 2007-11-27 10:41:46
Hi,I am trying to build a simple web app to get deeper into the basic of jsp/servlet programming.Until now I only used the JSF framework but I want to know some basics :)For this little project I have 2 JSP Views with forms which will be send to the Controllerservlet where the servlet could access ...
hi frndsi need to read a csv file, display its field names on jsp againest field names fetched from database.. the user will map fields from csv to that of db... and data from csv wil be transferred to database... can anyone help me in how to approach this ...
<p>hi,</p><p>In html,we have table,tr,td tags.what are the jsf tags for these three.</p>
<p>hi,</p><p>what is the difference between panelGrid tag and dataTable tag in jsf</p>
591 byte By
oftskya at 2007-11-27 10:42:28
hi, guys,i have a problem with myfaces 1.1.1. myfaces-all.jar used.it is totally ok, can write the right date in DB, but the date readd from DB will be shown a day before the date of DB.a litte funny. for example, i choosed 2.1.2001 , correct write into db 1.1.2001, but if u read this from db, will ...
Hello frndsAm a newbie to JavaServer Faces, I want to use JSF for creating a toolbar in my application. Now my question is can I have a class that creates components dynamically and also have the components actionlistener method in it?Well I want to have a plugin kind of a toolbar, that talks to an ...
<p>How do u register/define servlet to be used in tomcat?</p>
<p>Why patterns r useful in describing application architecture?</p>
Hi all,My quetion is:When a push on a button in my *.jsf page I generate a event, this event is manage by a backingbean java class, as far OK.After process the request in my backingbean, I want to open a new browser, how can i do that?Message was edited by: ...
522 byte By
Jay3205a at 2007-11-27 10:42:59
I am working on a JSF page that I want to automatically submit without any input from the user. However, I can't figure out how to make it auto submit. I currently have a javascript that just presses a form button to submit...document.getElementById("mainForm:submitButton").click();However, it ...
<p>Hi,</p><p>Hows does a Filter work in terms of its object instantiation and destroy. Is it a singleton class? Or is there a new instance of a Filter created for each client accessing the page ?</p><p>I couldnt find any information on this.</p><p>Please help</p><p>thanks</p><p>Riz</p>
Hi Everyone,I have one text box in jsp page. I ask user to type in one article then using one servlet to check out the typo. I pass the article back to jsp and highlight the typo. My question is 1. how do i pass the article ? In ListArray or String?2. then, it would come out the 2nd question how do ...
3488 byte By
kagaraa at 2007-11-27 10:43:23
I created a file using iReport and have been trying to execute it with no success. I want to call the report template in xml and display it on a browser. My problem is that, it returns nothings or never prompts me to download<%@ page import = "java.sql.*"%><%@ page import = ...
Hello All,I have the JS function which i connect to a .dll's and get back XML String. I want to pass this xml to my java/jsp. I am guessing that i can do it with AJAX.here is what i am trying to do:<script language="javascript" type="text/javascript">var xmlHttp;function createXMLHttpRequest() ...
276 byte By
rnDa at 2007-11-27 10:43:42
<p>Hello,</p><p>I need a help. I have a requirement, where I have to change the image of a label from "Tradeable" to "Non tradeable" after 15 seconds.</p><p>Can anyone please tell me how can I implement it. I am using JSF in my screen.</p><p>Thanks & Regards,</p><p>RD</p>
681 byte By
sivasaia at 2007-11-27 10:44:00
hi,how to set default to radion button.my code <h:selectOneRadio id="searchTypeId" value="#{Bean.searchType}" onclick="submit()" valueChangeListener="#{Bean.searchChange}"immediate="true"><f:selectItem itemValue="app" itemLabel="Search 1"/><f:selectItem itemValue="Invst" ...
460 byte By
KY8a at 2007-11-27 10:44:02
I have a form made up of a table. In one row I have a date picker. Unfortunately, I need to hide this row before the page load up. When a radio is picked, then this date picker row will show. However, when the row shows, the date picker does not appear. Why is this and how can I get around this ...
Hi all,I have an issue of renderring jspf's dynamically in an jspf. I have three JSPF's and the order is dependent on backend, so the order can be of any sort . I need to use the string in the name property of <jsp:include name = str ></jsp:include>, here the str is determined during ...
<p>Hi all,</p><p>I wrote a servlet which queries a database and returs the results to the calling client. Now I want to enable the client to cancel long-running queries. Is it possible to catch an event in the servlet e.g. if the client-user hits a "cancel" button? </p><p>Thank you!</p><p>Benni</p>
[nobr]Hi, I am a Beginner of learning Tomcat & JSP. According tutorial, I follow the code and found it can't work,I place the BasicServlet.java into C:\jakarta-tomcat-5.0.28\webapps\ROOT\import javax.servlet.*;import javax.servlet.http.*;import java.io.*;import java.util.*;public class ...
[nobr]Hi, I am a Beginner of learning Tomcat & JSP. According tutorial, I follow the code and found it can't work,I place the BasicServlet.java into C:\jakarta-tomcat-5.0.28\webapps\ROOT\import javax.servlet.*;import javax.servlet.http.*;import java.io.*;import java.util.*;public class ...
1006 byte By
Huija at 2007-11-27 10:45:14
I am trying to detect whether a radio button was selected before submitting the formI want a popup alert saying "Please make a selection" if none of the radio buttons were selected.heres what i have so far (i only created one button to see if it works):<script type="text/JavaScript">function ...
13151 byte By
losheaa at 2007-11-27 10:45:27
All,I have written a custom component, but am having trouble getting it to work. When i place it in a jsp or jspx and try to run the application using this control, i get compilation errors:org.apache.jasper.JasperException: Unable to compile class for JSPGenerated servlet error:[javac] ...
1148 byte By
Troilusa at 2007-11-27 10:45:29
Hi,I am trying to realise the PRG Pattern in a simple example web app. Do you think i "solve" this pattern with this approach?-->I have got a register.jsp file with a form which submits data per POST to a servlet. This servlet (Controller) "call" the Model to save the data into the DB and ...
I notice that "use a Filter" is the common response for securing Java web apps. We posted a short how-to for using the built-in web app security tools. It's easy to use and it can interface easily with a user database and require SSL encryption, but the configuration can be ...
For my Tomcat 4.1.27 Java container I have to use the startup.bat and shutdown.bat to start and stop the Web Server.I tried using the http://myserver:8080/admin/login.jsp with the correct username and password that I got from conf/tomcat-users.xml.It gives me back a reply: Access to requested ...
When loading a War file in our Tomcat 4.1.3 on Windows Server, the first time it takes the war and creates the specific webapp folder and I dont have to stop and start the container. If I want to put in a newer war for the same web app it requires me to stop and start the web container. Even if I ...
<p>Hi </p><p>I am very new to JSF and looking for step by step navigation example documentation. Could you please anybody let me know which document I should refer? Appreciate your responses. </p><p>Regards </p><p>Kiran Akkiraju</p>
I have a problem like this:My Data Table is like ThisSELECTNAMEAGESTATUSABC25DONEXYZ20NEWBBB18DONEA12328NEWNOTE: Select Column have check boxes.I want to display my table like this:When STATUS is DONE, this row should be disable. I mean to say, check box should be unselectable. If Status is NEW ...
672 byte By
roamera at 2007-11-27 10:46:20
I would like to show my current url path when I execute a jsp page.I write a javabean file, using this method:String currentdir = System.getProperty("user.dir");Then print it out in my jsp page, it shows:D:\Program Files\Apache Software Foundation\Tomcat 5.5 but my desired answer should ...
hi,I have a html page here.now I want to convert it into jsf page.I have lot of confusion regarding this.Pls,can anyone change my code into jsf.here is my code in html <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><table width="100%" border="0" cellspacing="0" ...
2217 byte By
xyzta at 2007-11-27 10:46:32
HelloI have a controller class like that:public class MyAction {private String name;public MyAction() {}public String action1(){setName("guest");return "ok";}public String getName() {return name;}public void setName(String name) {this.name = name;}}And in faces-config.xml, a session scoped bean is ...
335 byte By
esh_pva at 2007-11-27 10:46:40
how to position or allign command buttons inside a page?for example if i include reset command button inside my page using,<h:commandButton value="#{form.buttonText}" type="reset"/> they are placed towards a corner only, how to bring them to the center of a page in jsp? or how to set the ...
hello all,Need help.Please help me in adding all the values from result set to the arraylist.And also tell me as to how we comparing two string values with delimiter in it.For example :string1 = "Ejb,Jsp,Weblogic9.0,hibernate,jsf"and string2 = "Weblogic9.0,struts"in this two string at least one ...
<p>We all know that AJAX functionality doesn't work if the user has disabled JavaScript of the browser.</p><p>Can anyone suggest me that is there any way to programatically enable the JavaScript of users browser through Ajax or any other way?</p>
292 byte By
siri85a at 2007-11-27 10:46:52
<p>Hi,</p><p>Any One can u please tell me what is the difference between jsf1.1 and jsf1.2.we are doing some r&d on jsf for our project.So,please tell me what are the differences. and please tell me what are the advantages of jsf.and why we need to go for jsf framework?</p><p>Thanks.</p>
123 byte By
manu_ama at 2007-11-27 10:46:53
<p>Hi friends,</p><p> Can anyone expalin what is .jspa extention . Is it for jsp advanced</p><p>with thanks,</p><p>Manu</p>
I have a dataTable like this where i put entire table within div,<div style="overflow:auto;height:120px;"><h:dataTable class="adresstable"value="#{PatientWebGuiListBean.patientDemographs}" var="patient"rowClasses="oddRow, evenRow" columnClasses="column" ...
<p>hi </p><p>i have a form which takes name,age,sex and a photo of the user for registration. if in two forms i am able to succeed the task, but in the same form i am not able to do it. can anyone please help me with the data storing and file uploading script.</p>