I'm new to jsf VWP..i need code for searching
Hi,
i need code for search...
just populate records from database using jsf VWP5.5.1
how to bind in table.
we enter name r value in textbox click button related records display to table.how write code in button.
pls help me....
Don't crosspost. Please proceed here: http://forum.java.sun.com/thread.jspa?threadID=5211369
Similar Messages
-
Trying to load a downloaded version of illustrator 6cs onto new mac and the old activation code for my illustrator cs doesn't work with it. Do I need a new code or am I missing something? Same goes for my Photoshop cs.
you need your serial number.
if you purchased from or registered with adobe check your account, https://www.adobe.com/account.html -
I need autocomplete for search for words in a txt. file
i am not so good in java.
I have a running code for search in text with a txt. file (from user bluefox815).
But I need a solution with autocomplete for search for words in a txt. file.
test_file.txt (Teil des Inhaltes):
Roboter robots
Mechatronik mechatronics
and so on
Can you help me please.
Here is the code:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
* this program searches for a string in a text file and
* says which line it found the string on
public class SearchText implements ActionListener {
private String filename = "test_file.txt";
private JFrame frame;
private JTextField searchField;
private JButton searchButton;
private JLabel lineLabel;
private String searchFor;
private BufferedReader in;
public SearchText() {
frame = new JFrame("SearchText");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
searchField = new JTextField(80);
searchButton = new JButton("Search");
// this is used later in our actionPerformed method
searchButton.setActionCommand("search");
// this sets the action listener for searchButton, which is the current class
// because this class implements ActionListener
searchButton.addActionListener(this);
lineLabel = new JLabel("nach dem Fachbegriff suchen");
public void createGUI() {
JPanel topPanel = new JPanel();
topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.X_AXIS));
JPanel bottomPanel = new JPanel();
JPanel mainPanel = new JPanel();
mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));
topPanel.add(searchField);
topPanel.add(searchButton);
bottomPanel.add(lineLabel);
mainPanel.add(topPanel);
mainPanel.add(bottomPanel);
frame.getContentPane().add(mainPanel);
frame.pack();
frame.setVisible(true);
public void actionPerformed(ActionEvent e) {
// now we get the action command and if it is search, then it is the button
if ("search".equals(e.getActionCommand())) {
searchFor = searchField.getText();
searchTheText();
private void searchTheText() {
// I initialize the buffered reader here so that every time the user searches
// then the reader will start at the beginning, instead of where it left off last time
try {
in = new BufferedReader(new FileReader(new File(filename)));
} catch (IOException e) {
String lineContent = null;
int currentLine = 0;
// this will be set to true if the string was found
boolean foundString = false;
while (true) {
currentLine++;
// get a line of text from the file
try {
lineContent = in.readLine();
} catch (IOException e) {
break;
// checks to see if the file ended (in.readLine() returns null if the end is reached)
if (lineContent == null) {
break;
if (lineContent.indexOf(searchFor) == -1) {
continue;
} else {
lineLabel.setText(String.valueOf(lineContent));
foundString = true;
break;
if (!foundString)
lineLabel.setText("Es kann kein Fachbegriff gefunden werden.");
try {
in.close();
} catch (IOException ioe) {
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
new SearchText().createGUI();
}Markus1 wrote:
But I need a solution with autocomplete for search for words in a txt. file.What is your question? What have you tried so far? What are you having difficulty with?
Mel -
I need code for gpib to ITC 502.
Need to set temperature and threshold,
thankxThe instruction manual for this instrument is available from Oxford
Instruments at no charge- they sent me a copy by email as a PDF file. I
don't have it to hand at the moment so can't dig out the relevant info but
it would be worth having the full manual, I think. There's a bit more to a
decent driver than simply setting the temperature, and I'm not sure what you
mean by "threshold".
"mdeleon" wrote in message
news:[email protected]..
> I need code for gpib to ITC 502.
> Need to set temperature and threshold,
> thankx -
Need code for padding (spacing) 5 navigation links in my #topnavbar internal style
need code for padding (spacing) 5 navigation links in my #topnavbar internal style
I'm new at this and the below code is regarding the navigation bar and links
I started using a template to create the first html page and made copies of it to create the other four.
All the links work but I wanted to space them apart further.
They look basically like this horizontally: Home About Us Photo Gallery Services Contact Us
#topnavbar {
text-align:center;
#topnavbar a:link a:visited{
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 100%;
font-weight: bold;
color: #039;
text-decoration: none;
margin: 0 25px:
#topnavbar a:hover a:active {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 100%;
font-weight: bold;
color: #039;
text-decoration: none;
<div id="topnavbar">
<nav>
<p><a href="index.html">Home</a>
<a href="aboutus.html">About Us</a>
<a href="photogallery.html">Photo Gallery</a>
<a href="services.html">Services</a>
<a href="contactus.html">Contact Us</a></p>
</nav>
</div> -
Need code for sales order create report using bapi's
need code for sales order create report using bapi's
Hi,
Go through below link
http://www.saptechies.com/bapi_salesorder_createfromdat2/
<b>Reward points if it helps,</b>
Satish -
Need code for restarting my system
hello every body i need code for restarting system
this code does not work
try {
Runtime.getRuntime().exec("shutdown -s -t01") // stop
}catch(...
or
try {
Runtime.getRuntime().exec("shutdown -r -t01") // reboot
}catch(...
or
try {
Runtime.getRuntime().exec("shutdown -l -t01") // logout
}catch(...write a jni function that calls this method : ExitWindowsEx()
check the documentation -
Need code for Sales order creation in oops using xi as integration server
Need code for Sales order creation in oops using xi as integration server.
hi rocky,
could you pls give a bit explanation on what you are expecting.
regards,
Pavan -
Urgently Need Code for Copy & Paste from Html Table in JSP to Excel file
I am creating a html table in JSP file .
I need code for 'Cut,Copy,Paste' functions ie. if someone wants to copy data from my table to excel file or from excel file to html table he shud be able to do that.
Can someone give me code for 'Cut,Copy and Paste' i.e. some javascript functions which can do cut, copy and paste which i can put in my jsp file
Thanks
Message was edited by:
javatechguru2007package com.chinmayananda
public class Tetris{
// complete here
code]
public abstract class AbstractTetris {
public abstract void start();
public abstract void stop();
}nearly done -
Need code for this program in pl/sql
Hi,
was looking for a pl/sql code for the following case
If there are two employees from the EMP table. i want all the names of the managers common to the two employees....
to explain in detail : if employee1 and employee2 have the same manager mgr1....mgr1 should be displayed.
else if employee 1 and employee2 have no immediate manager in common...meaning team leader of employee 1 and employee2 are different but the project managers for both the employee is same..in this case the project manager's name should be displayed......
else in worst case when there are no managers common between these two employees.........the CEO who is at the highest level is common....then display CEO's name
it's hierchiacal structure......
thanks,
PreethiWhy PL/SQL? Why not look at if this can be done using SQL firstly? SQL is the preferred language for crunching Oracle data. Not PL/SQL.
Think data sets.
One method to do this in SQL would be to build a hierarchical list of managers for each employee. E.g.
LEVEL MANAGER
1 Jack
2 John
10 Dan the CEOOnce you have such a list for each employee, you can join these two lists on matching names. Then you simply need to find the matching join that has the lowest level.
I'm sure there are other approaches. But unless you put together some test data, put together some SQLs and play around with this problem, you are not going to learn anything.
And no, copying and pasting an answer that someone is inevitable to post in response is NOT learning anything new.
So why not try and solve this problem yourself? Gain some new knowledge. That will only do your career well as your employer is after all expecting you to write the code to solve this problem - and not for members of this forum to supply the code for you. -
Need code for this Small validation on when-validate-item
Hi All,
I have a text item(date datatype) in forms 4.5 I need to do a small validation want to write on when-validate-item. When I enter a date in that text item (Ex 10-JUN-2005) it has to check
1) It Cannot be "blank"
2) It cannot be "Not older than today"
can you please put me code for this small validation. I am new to Forms.
Thanks in Advance,
ReddyI always put code in the when-validate-RECORD trigger to ensure fields are entered, rather than setting the property. That way, the user can enter other fields within the record, and then gets a message that the field is required only when leaving the record.
...of course, if the date item is the only field in the block, then the when-validate triggers will not run unless the user at least types a space in the date. In that case, you need to check in the key-commit trigger. -
Need Code For...
Hello i am new to java...I need help code for something i am doing.
Lets say. i have a start date(ex:1/01/03) and end date(ex:1/30/03),I
need to go to the server and get all the information(logs or .txt) between those two date, and save it temp so I can view it. Please help,Thanks alot!SQL supports the <= >= functionality so that you could look for something like this:
String SQLString = " SELECT * FROM MyTABLE WHERE dbStartDate > '" + strStartDate + "' AND dbEndDate < '" + strEndDate + "'";
You probably would want to modify to use a prepared statement to handle the date conversion. Check out the SimpleDateFormat for parsing a String date to a Date class, remembering there are two "Date" classes types: Util and SQL
If you search the forum on :
SimpleDateFormat
Converting dates
Prepared Statements
Hope this gets you started, and don't forget aobut the API, a great resource.... -
Need code for calculation of amount field(DMBTR)of BSEG table conditionally
Hi all,
I am selecting data for fields belnr(A/c doc.), dmbtr(Amount), hkont(G/L acc) from bseg cluster table giving the particular value for hkont in the selection screen.now there are some records fetched out of which there are few records in which same A/c no.(belnr) .So my requirement is to collect those same belnr records and do following calculation:
1. suppose for some record of same belnr , if all the value for field SHKZG is 'H' then summing up the values of field DMBTR.
2. suppose for some record of same belnr , if few value for the field SHKZG is 'H' and few are 'S' then the (summation the values of field DMBTR for all 'H' in field SHKZG -summation the values of field DMBTR for all 'S') and both the case the single record will fetched with belnr, sum(DMBTR) according to the condition, and hkont. Please provide me the reqd. code for the above problem.Thanks in advance.
regards
Anand.Hi Anand,
We can do like this.
This will take into account 'S', 'H' (debit/credit indicator) and BELNR wise sum.
1. Create new internal table, STAB with only two fields. (with header line)
BELNR "<------- refer below statement
HKONT "<------ Whatever unique combination of field(s) you want, you can put here 1,2,
DMBTR "<----
Numeric field
If you want only HKONT wise SUM, then remove BELNR
2. Now write this code.
Loop at Itab.
Clear STAB.
IF ITAB-SHKZG = 'H'.
STAB-DMBTR = ITAB-DMBTR.
else.
STAB-DMBTR = - ITAB-DMBTR. "<----- Negative Sign
endif.
STAB-BELNR = ITAB-BELNR.
STAB-HKONT = ITAB-HKONT.
COLLECT STAB. "<------ Important.
Endloop
Note:
Based upon the alphanumeric fields combination (BELNR and HKONT), the sum will be done.
Similar to group by in a select query
regards,
amit m.
Edited by: Amit Mittal on Jan 22, 2010 2:14 PM -
Hi All,
My requirement is to create a selection screen with
1. browse field - selection for the files to be uploaded
2. Checkbox - Test run the transaction without parking the entries
3. Two push button Execute and Cancel
Execute - to lunch the program
Cancel - cancel the program and return to menu
Please provive the code and procedure to create screen. i am new for dialog program.
Thanks,
MadhuRather than waiting for someone here to write the code for you, you'd be better off looking at the examples in SAP as already mentioned and reading the SAP help at[http://help.sap.com/saphelp_47x200/helpdata/en/9f/dba66935c111d1829f0000e829fbfe/frameset.htm]
-
Need Code for book publishing in BPC
Does anyone have any VBA code for generating multiple report tabs? This would take the place of book publishing since I do not want to create PDFs or HTML reports, but rather spreadsheets.
I am just noticing this - did you resolve your issue? You basically need to write the code.
Edited by: Deborah Silverman on Mar 16, 2009 7:30 PM
Maybe you are looking for
-
If iTunes could add this to an update then I (and surely many others) would be extremely happy that it would be easier to get back your accidently deleted notes right then and there so you wouldnt have to stress about the fact that you have to delete
-
Time Capsule and external 2 tb drive
I am trying to connect a 2 tb seagate free agent desk external drive for mac to my time capsule through the USB port. I would like to have additional memory available for the three macs on the home network. Everything works fine for 15 mins or so and
-
How to reference to a relative group of cells in numbers for iOS ?
Hi, I'm trying to use numbers on my iPhone to track my daily work expenses, inputting my data through a formulary. What I've come up with so far is a 2-sheet, 1-formulary document. The first sheet contains the raw data : week number, date, place, exp
-
Allow blank fields in JSP form
Hi, I have a form where you have to enter some information. Some fields are optional. When I try to insert the data in the database, the null fields give me an error. How can i rectify this? I am using <jsp:setProperty name="userInfoBean" property="*
-
What method replace handler(before jheadstart 9.0.5.1) in jheadstart 10.1.2.0. Does anybody tell me how to do it ? Thanks for your help.