[java ee programming] Nonstatic method

2011-07-26 Thread Rafał Laczek
In class 1st I have static method. I must change it for not static but I have a problem to pass result of this method to class 2nd. Can somebody advise. Class 1st.java boolean isNyHitt=false; public boolean isNyHitt(){ return isNyHitt; } Class 2nd.java

[java ee programming] Nonstatic way

2011-07-26 Thread Rafał Laczek
Can you please advise how to solve it. innlevertEiendel in class B is null Class A{ public InnlevertEiendel getInnlevEDUpdate(){ return innlevEDUpdate; } public void setInnlevEDUpdate(InnlevertEiendel innlevEDUpdate){ this.innlevEDUpdate = innlevEDUpdate; } Onclick(){

[java ee programming] Constructor

2011-07-26 Thread Rafał Laczek
Hi, In base class I have constructor with parameters. In subclass I must have constructor without parameters. I cant add non-parameters constructor in basic class. How to do it? Regards, Rafal -- You received this message because you are subscribed to the Google Groups Java EE (J2EE)

Re: [java ee programming] Constructor

2011-07-26 Thread Rafał Laczek
; } } --- package com.mysamples; public class ConstructorStudyChild extends ConstructorStudyParent { String ChildName; public ConstructorStudyChild() { super("SettingParentConstructor"); } } - 2011/7/26 Rafał Laczek

Re: [java ee programming] Constructor

2011-07-26 Thread Rafał Laczek
; public class ConstructorStudyChild extends ConstructorStudyParent { String ChildName; public ConstructorStudyChild() { super("SettingParentConstructor"); } } - 2011/7/26 Rafał Laczek rafal_lac...@wp.pl Hi, In base cl

[java ee programming] Session

2011-07-21 Thread Rafał Laczek
Hi Colleagues, In my apllication I use mySession class which extends WebSession. In other class I have form where the users input data. Field UserName is supplied automatically with username of current user (user.getUsername()). Sometimes this field is supplied with username of other user who

[java ee programming] ParseDouble problem

2011-07-16 Thread Rafał Laczek
Hi Colleagues, In my application I have input string field. String resultStr is parsed into double. The problem is when resultStr is with comma eg. 2,3 instead of 2.3 (with dot). Can I solve it in any way? Bellow is my current code. double resultDoub =Double.parseDouble(resultStr); Thanks in

Re: [java ee programming] ParseDouble problem

2011-07-16 Thread Rafał Laczek
ormat a number for a different Locale, specify it in the call togetInstance. NumberFormat nf = NumberFormat.getInstance(Locale.FRENCH); You can also use aNumberFormatto parse numbers: myNumber = nf.parse(myString); 2011/7/16 Rafał Laczek rafal_lac...@wp.pl Hi Colleagues,In my application I

[java ee programming] WebApplication

2011-06-28 Thread Rafał Laczek
Hi Colleagues, In MyApplication which extends WebApplication I have method getBean(). When I build the project I get cannot find method getContext() in WebApplication Can somebody help please. Regards, Rafal public class MyApplication extends WebApplication { public static Object getBean(String

[java ee programming] WebApplication

2011-06-27 Thread Rafał Laczek
Hi Colleagues, In MyApplication which extends WebApplication I have method getBean(). When I build the project I get cannot find method getContext() in WebApplication Can somebody help please. Regards, Rafal public class MyApplication extends WebApplication { public static Object

[java ee programming] WebApplication - this mail is correct

2011-06-27 Thread Rafał Laczek
Hi Colleagues, In MyApplication which extends WebApplication I have method getBean(). When I build the project I get cannot find method getContext() in WebApplication Can somebody help please. Regards, Rafal public class MyApplication extends WebApplication { public static Object getBean(String

[java ee programming] PD: WebApplication - this mail is correct

2011-06-27 Thread Rafał Laczek
Hi, Can you add urgently my post. Thank you BR Rafal Dnia 27-06-2011 o godz. 16:07 Rafał Laczek rafal_lac...@wp.pl napisał(a): Hi Colleagues, In MyApplication which extends WebApplication I have method getBean(). When I build the project I get cannot find method getContext

[java ee programming] SPRING - need urgen help

2011-06-27 Thread Rafał Laczek
Hi Colleagues, I need urgent help. I must change getServicePoint() which gets the service point to look up using Spring instead of the ClientConfig Thanks and regards, Rafal private static final ClientConfig config = ClientConfig.getConfig(ClientConfig.generateName(HittegodsAPI.class));

Odp: [java ee programming] SPRING - need urgen help

2011-06-27 Thread Rafał Laczek
Hi, This mail is not valid already. I wait when moderator will put my last post. Br, Rafal Dnia 27-06-2011 o godz. 11:44 Rafał Laczek napisał(a): Hi Colleagues, I need urgent help. I must change getServicePoint() which gets the service point to look up using Spring instead

[java ee programming] From char[] to arraylist

2011-06-11 Thread Rafał Laczek
Hi, I have a small problem. Can you help me to convert char[] into arraylist. Thank you Regards, Rafal char[]roles = group.getDefaultModelObjectAsString().toCharArray(); for(int counter = 0; counter roles.length; counter++){ System.out.println(Roles in char roles are: +roles[counter]);

[java ee programming] DropDownChoice

2011-05-05 Thread Rafał Laczek
Hi Colleagues, I have DropDownChoice with Integer list. I need simply to catch selected value (300, 400 or 500). It is not important how I will do it. Selected value will be used in other place of my code. Can somebody help. Thank you in advance! Regards, Rafal final LinkedList selectionList

Re: [java ee programming] Netbeans

2011-05-02 Thread Rafał Laczek
My standard tool in job is Eclipse but always in educational purposes I use NB because with this tool I feel safer. If you use materials of JavaPassion it is better to use NB. Regards, Rafal Dnia 1-05-2011 o godz. 13:19 bambang passion napisał(a): HI,Netbean is also a good place to start,

[java ee programming] Maven

2011-04-07 Thread Rafał Laczek
Hi, When I try to build in Maven war file I get communicate about missing jar file as follow. This is not my project. I can see that this jar is added to class path. I can try to add jar as it is mentioned in error communicate but I m not sure in which place of project it should be added. Have

[java ee programming] How to display in vertical way.

2011-04-01 Thread Rafał Laczek
Hi, I use method getLegaluseString() we get a few strings in one line (horizontally) I must display them in vertical way. It means that each string must be in separate line. Strings will be displayed in Wicket label. Maybe somebody knows how to do it. Regards, Rafal add(new

[java ee programming] Array list

2011-03-29 Thread Rafał Laczek
Hi, I have a small problem. I have orderTypeList array list. I don't know exactly how to display each recod in new line. In way as follow I removed bracket and my problem is still to display each record in ne line. String ordType ="" ; for (String s: orderTypeList) { System.out.println("S

[java ee programming] java.lang.NullPointerException

2011-03-15 Thread Rafał Laczek
Hi, I get exception as follow. I use Tomcat and it seems that I have all drivers. Here only mySql is used. Regards, Rafal WicketMessage: Method onFormSubmitted of interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component [MarkupContainer [Component id =

[java ee programming] Java abilities

2011-03-11 Thread Rafał Laczek
Hi, I have a general question. I have worked as Junior Java Developer for 1 year. I see any progress but I'm not sure if it is this I would like. Maybe you share with your opinion what should be standard level of skills etc. after 1 year. Thanks for all sensible opinions. Regards, Rafal --

[java ee programming] How to parse xml

2011-03-07 Thread Rafał Laczek
Hi, In my code I have dropMsg String variable. Variable includes list of messages. The messages are as plain xml. Finally I must use each field. But to do it I must parse it into Data and String. Can maybe somebody know any good tutorial, etc. how to do it. Thanks in advance for help! Regards,

[java ee programming] Web service client tutorial

2011-03-01 Thread Rafał Laczek
Hi, I need any really sensible and not so complicated Web service client tutorial for myEclipse. I can find nothing sensible. Even in myEclipse there are something nothing interesting.. Thanks Regards, Rafal -- You received this message because you are subscribed to the Google Groups Java EE

[java ee programming] Servlet refresh

2011-02-24 Thread Rafał Laczek
Hi, In doGet method of my Servlet I try to force the browser to refresh the page. The goal is the same as we click for example for f5 I try to use response.setHeader(Refresh, 5); Can somebody advise. Thanks Regards, Rafal -- You received this message because you are subscribed to the Google

[java ee programming] RSS - categories

2011-02-17 Thread Rafał Laczek
Hi, Maybe somebody will be able to help me. In my RSS the user can subscribe a few feeds. I make tests and select 2 ones (Nord, South). When I create new message (entry) for example with Nord category in the browser user can see it as a new message in New folder of NordFeed and it is OK. When

Re: [java ee programming] Property file

2011-02-15 Thread Rafał Laczek
cCategories. Is there any retrieved data on topicCategories? Any how, use this http://download.oracle.com/javase/tutorial/essential/environment/properties.html for your reference site. Chil --- On Tue, 2/15/11, Rafał Laczek rafal_lac...@wp.pl wrote: From: Rafał Laczek rafal_lac...@wp.

[java ee programming] Property file

2011-02-15 Thread Rafał Laczek
Hi, Can somebody advise me on reasons why I can't save these test datain property file. Thanks! Regards, Rafal try { Properties properties = new Properties(); FileOutputStream fos = null; properties.store((fos = new FileOutputStream("/WEB-INF/checkboxprop.properties")), "Author: jasonX");

[java ee programming] PD: Property file

2011-02-15 Thread Rafał Laczek
Hi, The problem seems to be solved. I added file to src. Regards, rafal Dnia 15-02-2011 o godz. 13:43 Rafał Laczek napisał(a): Hi, Can somebody advise me on reasons why I can't save these test datain property file. Thanks! Regards, Rafal try { Properties properties = new Properties

[java ee programming]

2011-02-14 Thread Rafał Laczek
Hi Colleagues, Thank you all of you for whole support I got from you. I really appreciate it. Regards, Rafal -- You received this message because you are subscribed to the Google Groups Java EE (J2EE) Programming with Passion! group. To post to this group, send email to

[java ee programming] Property file

2011-02-14 Thread Rafał Laczek
Hi, In my project I will have no database and that's why all selected results in checkbox I decided to store in property file. All these results I catch into topicCategories list(String). Now I want to save results in property file. Is any possibility to save this list in my property file? Below

[java ee programming] PD: How to pass data from doGet to other class

2011-02-13 Thread Rafał Laczek
Hi, In doGet I add received data to topicCategories list. When I invoke getTopicCategories() in other class unfortunately list is empty. My goal is to pass and usetopicCategories list in other class. Can somebody help. NB. My previous e-mails are not actual already. I have rebuilt the project.

[java ee programming] How to pass data from doGet to other class

2011-02-13 Thread Rafał Laczek
Hi, In doGet I add received data to topicCategories list. When I invoke getTopicCategories() in other class unfortunately list is empty. Can somebody help. NB. My previous e-mails are not actual already. I have rebuilt the project. Regards, Rafal public ArrayListString getTopicCategories() {

[java ee programming] Form

2011-02-11 Thread Rafał Laczek
Hi, In my Form.jsp page I have a simple checkbox. I need to send selected results to CategoryResult servlet. I can do that but in the browser the name of the servlet is automatically appended to the address as follow: http://localhost:8080/Rss/CategoryResult I know that this is executed by

[java ee programming] How to redirect from JSP to Servlet

2011-02-09 Thread Rafał Laczek
Hi, So far I was working in Wicket and JSP and servlets are not my stron side :) I have index.jsp and also CreareRssServlet. Index is a welcome page. Here the user will log-ing. When the project is opened the address in browser is: http://localhost:8080/RssProject Now I need to be redirected to

Re: [java ee programming] Message from ActMQ

2011-02-09 Thread Rafał Laczek
think the output will be an http message not DATE. b.l 2011/2/7 Rafał Laczek rafal_lac...@wp.pl Hi, The result of createRss.getTimestamp_long() is date in long format of last modification of my feed in RSS. This is the date when new message has been registered. I try to display 303 error when

Re: [java ee programming] How to redirect from JSP to Servlet

2011-02-09 Thread Rafał Laczek
Hi, Thank you. It should help me. Regards, Rafal Dnia 9-02-2011 o godz. 15:11 Chil-Hoan Kwon napisał(a): http://tomcat.apache.org/tomcat-4.1-doc/servletapi/javax/servlet/jsp/PageContext.html --- On Wed, 2/9/11, Rafał Laczek rafal_lac...@wp.pl wrote: From: Rafał Laczek rafal_lac

[java ee programming] Categories in RSS

2011-02-09 Thread Rafał Laczek
Hi, I need to add to my RSS the categories menu where the user can add subscriptions. It can by in the form as in enclosed picture or in other form. Thanks Regards, Rafal -- You received this message because you are subscribed to the Google Groups Java EE (J2EE) Programming with Passion!

Re: [java ee programming] Message from ActMQ

2011-02-07 Thread Rafał Laczek
Request); Can you help. Regards, Rafal Dnia 7-02-2011 o godz. 3:58 bambang passion napisał(a): HI,you need to define the : ConnectionFactory and TOPICb.l 2011/2/3 Rafał Laczek rafal_lac...@wp.pl Hi,Can somebody help me to get Message using following code.ThanksRafaltry{Properties pr

[java ee programming] Problem with request.getDateHeader

2011-02-07 Thread Rafał Laczek
Hi, In my servlet I want to send date of last modification and when I refresh the browser to get back this date. In response I try to send the date and in request to get this date. Unfortunately in response I get -1 Please look for following code: response.setDateHeader(Last-Modified,

Re: [java ee programming] Message from ActMQ

2011-02-07 Thread Rafał Laczek
and what you want, may be you could elaborate more?by the way, what is the result of createRss.getTimestamp_long() ?also check what are the required attributes for response.setDateHeader() ?b.l 2011/2/7 Rafał Laczek rafal_lac...@wp.pl Hi, Yes. Now it works. But I have the other small problem. In m

[java ee programming] Message from Active MQ

2011-02-02 Thread Rafał Laczek
Hi Colleagues, For my RSS project I need to take Message from Active MQ. Whole action is executed in Servlet. In Servlet I can open and close session. It works. The servlet has also overrive method onMessage(Message argMsg). My problem is that I don't know how to use onMessage() to get

Re: [java ee programming] Servlet

2011-02-01 Thread Rafał Laczek
Dnia 1-02-2011 o godz. 4:01 bambang passion napisał(a): Hi, Just code : response.out("htmlbodyptest/p/body/html") ;will do.b.l 2011/2/1 Rafał Laczek rafal_lac...@wp.pl Hi,I have a sample HelloWord servlet. I have also created web.xmlI have a problem to display it in the browser.I us

Re: [java ee programming] Servlet

2011-02-01 Thread Rafał Laczek
se, String feedTxt) throws IOException { Dnia 31-01-2011 o godz. 20:22 Rafał Laczek napisał(a): Hi, Finally I have used Eclipse and created simple servlet and created web.xml as follow: ?xml version="1.0" encoding="UTF-8"? web-app id="WebApp_ID" version

[java ee programming] RSS as WEB project

2011-01-31 Thread Rafał Laczek
Hi, I try to create RSS fedd as Servlet (Web project). Can maybe somebody help me. Below in doGet() I have code which works fine in main method in my other non-web project. I must create RSS web project. Pls. help Regards, Rafal public class WebFeedServlet extends HttpServlet{

[java ee programming] Servlet

2011-01-31 Thread Rafał Laczek
Hi, I have a sample HelloWord servlet. I have also created web.xml I have a problem to display it in the browser. I use NeatBeans. I don't want to have any jsp in this sample project. All htlm is in servlet. Can you help BR Rafal -- You received this message because you are subscribed to the

Re: [java ee programming] Servlet

2011-01-31 Thread Rafał Laczek
/HelloServlet I have used Tomcat and earlier I had to create war file. Tomorrow I will be rebuilding the servlet for RSS code. The RSS code works fine in main method I hope that it will work also in Servlet :) Thanks! Regards, Rafal Dnia 31-01-2011 o godz. 17:35 Jos Luis Casiano Celesti

Re: [java ee programming] java.lang.ClassNotFoundException: org.jdom.JDOMException

2011-01-29 Thread Rafał Laczek
); //67 LINE writer.close(); Dnia 27-01-2011 o godz. 14:35 bambang passion napisał(a): Hi,may be you need to check your jdom library i guess.rgdsb.l 2011/1/27 Rafał Laczek rafal_lac...@wp.pl Hi Colleagues, I create RSS feed. When I execute the main class I receive following exception

PD: Re: [java ee programming] java.lang.ClassNotFoundException:org.jdom.JDOMException

2011-01-29 Thread Rafał Laczek
Hi, The problem is solved. It was small mistake from my side in syntax. I should use String feedType = "rss_2.0" instead of String feedType = "rss=2.0"; Thank you colleagues for all advices! Regards, Rafal Dnia 27-01-2011 o godz. 22:40 Rafał Laczek napisał(a): Hi, I

Re: [java ee programming] java.lang.ClassNotFoundException: org.jdom.JDOMException

2011-01-29 Thread Rafał Laczek
Hi, The problem wasin syntax in rss=2.0 Should be rss_2.0 Regards, Rafal Dnia 29-01-2011 o godz. 11:43 bambang passion napisał(a): Hi,may be you need to check the argument : output.output(feed, writer); WHAT SHOULD BE THE INPUT TO BE FED TO :SyndFeedOutputrgdsbl 2011/1/28 Rafał Laczek rafal_lac

[java ee programming] java.lang.ClassNotFoundException: org.jdom.JDOMException

2011-01-27 Thread Rafał Laczek
Hi Colleagues, I create RSS feed. When I execute the main class I receive following exception: in thread "main" java.lang.NoClassDefFoundError: org/jdom/JDOMException at com.sun.syndication.io.SyndFeedOutput.init(SyndFeedOutput.java:44) at

[java ee programming] Servlet

2011-01-26 Thread Rafał Laczek
Hi, Bellow I send my web.xml. I create war file and then I deploy it in Tomcat. The file is deployed and I can see it in webapps folder but I can t see it at the main list/menu. Can somebody advise me. Regards, Rafal version=1.0 encoding=UTF-8? web-app id=WebApp_ID version=2.4

[java ee programming] Tomcat problems

2011-01-24 Thread Rafał Laczek
Hi Colleagues, I create war file using Maven. Than this file is deployed in Tomcat. Finally I can find war file in webapps of Tomcat but I can see nothing at Applications in Tomcat menu. Below there are my web.xml and POM.xml. Can you maybe help. Regards, Rafal Web.xml web-app

[java ee programming] RSS sample project

2011-01-21 Thread Rafał Laczek
Hi Coleagues, I'm new in RSS feed technology. In educational purposes I must create sensible RSS project with java class/classes and xml. Can you maybe advise me how to start it or maybe I could any sample (maybe any links etc.) Thanks Regards, Rafal -- You received this message because

[java ee programming] HashMap

2010-12-02 Thread Rafał Laczek
Hi Colleagues, I have HashMap. I have also method getAttrib() which returns 2 strings (key, value). I must in any way divide these data and get key and value in 2 separate strings (for example lists). In my application I must display them in to seperate columns. I look for in internet but can't

PD: [java ee programming] Eclipse/Maven

2010-11-30 Thread Rafał Laczek
Hi, I have just solved the problem. The project have some subprojects. Commend mvn eclipse:eclipse must be done at each project. Regards, Rafal Dnia 30-11-2010 o godz. 13:22 Rafał Laczek rafal_lac...@wp.pl napisał(a): Hi Colleagues, I have imported Maven project from SVN. Unfortunately

[java ee programming] fop.getDefaultHandler());

2010-11-19 Thread Rafał Laczek
Hi Colleagues, I have added all missing jars. Now I receive communicate as follow: log4j:WARN No appenders could be found for logger (org.apache.fop.util.ContentHandlerFactoryRegistry). log4j:WARN Please initialize the log4j system properly. mpUt is Error I/O error reported by XML parser

[java ee programming] fop.getDefaultHandler());

2010-11-18 Thread Rafał Laczek
Hi, Can sobmbody advise me please why by fop.getDefaultHandler()) I get error: The method getDefaultHandler() is undefined for the type Fop. Thanks for help! Regards, Rafal private static void createReceiptPDF() throws IOException, TransformerFactoryConfigurationError, FileNotFoundException,

Re: [java ee programming] fop.getDefaultHandler());

2010-11-18 Thread Rafał Laczek
using xml and fo:XSL. This will give you some idea how to write in Java. Good Luck Chil --- On Thu, 11/18/10, Rafał Laczek rafal_lac...@wp.pl wrote: From: Rafał Laczek rafal_lac...@wp.plSubject: [java ee programming] fop.getDefaultHandler());To: "Java EE (J2EE) Programming with Passion!"

[java ee programming] From XML to PDF - please check this code

2010-11-17 Thread Rafał Laczek
Hi Colleagues, I have some code from internet and I try to adopt it to my requirements. Im new in transforming xml into PDF. I decided to use FOP. I would like to ask you to verify this code. In this code I have following problems: 1. I get ArrayIndexOutOFBoundsException. My comment

[java ee programming] How to generate PDF from xml

2010-11-15 Thread Rafał Laczek
Hi Colleagues, I need to learn how to generate PDF files from xml. Can you advise me please any sensible learning materials. Thanks in advance for your help! Regards, Rafal -- You received this message because you are subscribed to the Google Groups Java EE (J2EE) Programming with Passion!

[java ee programming] Problem with List vaiable

2010-07-15 Thread Rafał Laczek
Hi Colleagues, Can you help me please. I have List stdTextList variable and String newTextField In onSubmit I try to add to stdTextList value of newTextField. newTextField for sure is not null. Unfortunately I get java.lang.NullPointerException. To solve the problem among the other things I was

Odp: [java ee programming] Problem with List vaiable

2010-07-15 Thread Rafał Laczek
Hi, This problem is solved. Regards, Rafal Dnia 15-07-2010 o godz. 13:24 Rafał Laczek napisał(a): Hi Colleagues, Can you help me please. I have List stdTextList variable and String newTextField In onSubmit I try to add to stdTextList value of newTextField. newTextField for sure

Re: Odp: [java ee programming] Problem with List vaiable

2010-07-15 Thread Rafał Laczek
Just like this. if (stdTextList == null){ stdTextList = new ArrayList(); } } Dnia 15-07-2010 o godz. 20:12 babu napisał(a): Can you share solution with every one? On Jul 15, 10:14 am, Rafał Laczek

Re: [java ee programming] input tag with image

2010-05-31 Thread Rafał Laczek
will be static. So the question is how to implement this wicket:id=Bil. input type=submit value=New wicket:id=NewRow img wicket:id=Bil title=tabell//input Rafal Dnia 31-05-2010 o godz. 21:15 Michčle Garoche napisał(a): Le 31 mai 10 Ă  19:00, Rafał Laczek a ĂŠcrit : Hi, It seems that I have

[java ee programming] Problems with NB

2010-05-27 Thread Rafał Laczek
Hi, I have a problem to turn on my NB6.5.1 I receive following exception. I have reinstalled NB but it has not helped. Can you maybe help me. In work I use Eclipse but in education purposes I use NB. Best regards, Rafal Laczek java.lang.NullPointerException at

[java ee programming] Refreshing of the list

2010-05-21 Thread Rafał Laczek
Hi, In my Wicket application we can add new data to the list (list view). The problem is that new data are displayed at the list after about 5 minutes after earlier refresh action using F5 or refreshing button in the application. Can you point me whether this is any database problem , data

[java ee programming] Wicket - problem with refreshing page

2010-05-09 Thread Rafał Laczek
Hi, To be more detailed I describe in a few steps how my application should work: 1.AjaxSubmitLink addLink = new AjaxSubmitLink(newrow, form) - Clicking for this button the new empty row is added to the list view. The new row includes also SubmitLink. It means that each item at the list has

[java ee programming] Wicket - saving changes in List view

2010-05-06 Thread Rafał Laczek
Hi, Using AjaxSubmitLink I have added to the list view new empty item/row. Now when I insert data and then I want to save it in db by Save button I receive below exception. Have you maybe any suggestions? I will add that Save button works great saving changes that have been done on existing

[java ee programming] Wicket- saving changes in db

2010-05-04 Thread Rafał Laczek
Hi, Maybe at this forum there is any Wicket expert and will be able to point me. I try to save changes in database but I have a problem with it. Can you maybe please verify whether I do it in proper way. In green color I describe all steps. if(itemObject != objectPanelid ){ item.add(new

[java ee programming] Passing new value of the variable

2010-05-02 Thread Rafał Laczek
Hi, Can you help me please. In my below code initial value of edit Boolean variable is TRUE. The problem is that clicking on link I am not able to pass the new FALSE value in order to execute the code in ELSE condition. I'm checking and onClick method works. Due to complexity of the project I

[java ee programming] Wicket editable table

2010-04-21 Thread Rafał Laczek
Hi Colleagues, In my Wicket project I have a table where I display 2 columns: Kode, EditLink. When the page is displayed all rows are displayed as Label. When I click editLink ALL rows are displayed as TextField and ready for edition. I would like the only this row to be displayed as TextField

Odp: [java ee programming] Highlighting syntax errors

2010-04-13 Thread Rafał Laczek
and change it to natures natureorg.eclipse.jdt.core.javanature/nature /natures Store the changed file. 3.Open the project again - now it's a java project. Dnia 12-04-2010 o godz. 16:16 Rafał Laczek napisał(a): Hi, I have imported the project from the server to the workspace in my pc

[java ee programming] Highlighting syntax errors

2010-04-12 Thread Rafał Laczek
Hi, I have imported the project from the server to the workspace in my pc. I have a problem with highlighting syntax errors. Can you advise me how to set up the project. NB: I use Eclipse. Thanks! Best regards, Rafal -- You received this message because you are subscribed to the Google Groups

Odp: [java ee programming] Highlighting syntax errors

2010-04-12 Thread Rafał Laczek
I will only add that I used SVN and it seems that IDE doesn't interpret this conctere project as Java project. Can somebody help. BR Rafal Dnia 12-04-2010 o godz. 16:16 Rafał Laczek napisał(a): Hi, I have imported the project from the server to the workspace in my pc. I have a problem

[java ee programming] jdbc

2010-03-25 Thread Rafał Laczek
Hi, In my application to extract data I use JDBC. The application is to display data according to organization the user is employed. There are 25 organizations . I wanted to identify users in following way: RequestCycle.get().getRequest()).getHttpServletRequest().getRemoteUser()); if (userId

[java ee programming] Wicket problem

2010-03-23 Thread Rafał Laczek
Hi, I have welcome following page Home.java public class HomePage extends WebPage { public HomePage(){ add(new Drift(panel)); } } It seems that everything should work but I receive exception that Can't instantiate page using constructor

Re: [java ee programming] Re: Find the J2ee web hosting site........

2010-03-17 Thread Rafał Laczek
Hi, It is really good to check the application / website in real environment. Sometimes website works very good at the desktop and the problem appears when you install it at real server. I know it from my experience when I was doing websites still in PHP. Regarding PHP the best free server is

Re: [java ee programming] Spring

2010-03-14 Thread Rafał Laczek
wMapper()); } public ListSomething selectAll() { JdbcTemplate select = new JdbcTemplate(dataSource); ... } public void deleteAll() { JdbcTemplate delete = new JdbcTemplate(dataSource); delete.update("DELETE from SOMETHING"); } ...} I guess thats you should figure out the

[java ee programming] Spring

2010-03-13 Thread Rafał Laczek
Hi, The Spring is quite new for me but in my project I must use it to extract data from database. Bellow I send you code. Unfortunately loading of the context should be left to the Spring listener instead of this explicit creation. Could you help me please to change this code. Thank you

[java ee programming] Spring - connecting to database

2010-03-11 Thread Rafał Laczek
Hi Friends, I need you small support in database subjects using Spring. In my application I MUST use Spring to connect to database in order to extract some data. Can you advise me preferably sending me any sample how to connect to database as well as configure the spring-config xml. Thank you

[java ee programming] Wicket technology - sample code

2010-02-27 Thread Rafał Laczek
Hey, In last time I'm working in big project where I also use Wicket framework. I think that now I'm quite good specialist in this technology. For persons interested in this technology I send as the sample the java class with its markup. Wicket is a little bit tricky technology and I think

[java ee programming] Can somebody help me please

2010-02-23 Thread Rafał Laczek
Hi, Pleaase compare my wicket java class with corresponding html and tell me what I'm going wrong. The comunicate in browser is: WicketMessage: Unable to find component with id 'wmc' in [MarkupContainer [Component id = wmc]]. This means that you declared wicket:id=wmc in your markup, but that

[java ee programming] Wicket - I need your advice

2010-02-18 Thread Rafał Laczek
Hi, I have a problem with ListView in Wicket. I try to add to the list the label which should display list via getGeneral() method. The label accept only String type and here I have List data type. Can you advise me please how to solve this problem. add(new ListView(category, model) { private

[java ee programming] Wicket - I need your urgent help friends

2010-02-12 Thread Rafał Laczek
Hi, I have a project that must be refactored in Wicket. The current project is in Corelet. Bellow I have the basic class that is responsible for sending the messages. In this class we have process method and I need to refactor this class/method to obtain reusable panel. Thank you very much for

[java ee programming] PD: Wicket panels

2010-02-10 Thread Rafał Laczek
public class Data extends Panel{ public Data(String id) { super(id); add(new Label(data,new ModelClass())); } } Best regards, Rafal Laczek Dnia 10-02-2010 o godz. 23:30 Rafał Laczek rafal_lac...@wp.pl napisał(a): Hi, Bellow I give you wicket panel and its markup html

[java ee programming] PD: Problem with NB

2010-02-07 Thread Rafał Laczek
I will add that in console I have SEVERE: java.lang.OutOfMemoryError: PermGen space BR Rafal Dnia 7-02-2010 o godz. 15:47 Rafał Laczek rafal_lac...@wp.pl napisał(a): Hi, For a few days I have problems with NB. When I run one application it takes a few minutes and seems that all

PD: [java ee programming] Missing markup.html in war file

2010-02-03 Thread Rafał Laczek
Hi, The problem has been solved. Br Rafal Dnia 3-02-2010 o godz. 13:18 Rafał Laczek rafal_lac...@wp.pl napisał(a): Hi, I'm still fighting with my Wicket project. It seems that web.xml is well configured because I can deploy war on the Tomcat and in browser I have communicate

[java ee programming] Problem with wicket id

2010-01-29 Thread Rafał Laczek
Hi, I have a problem with name id wicket. I receive communicate Unable to find component with id 'name' in [MarkupContainer] I send you piece of java class and markup. In label I was also trying to use name+ item.getMarkupId() Can you help me please. Best regards, Rafal public HomePage()

[java ee programming] Wicket - add method

2010-01-26 Thread Rafał Laczek
Hi, In Wicket project that I try to make in Eclipse I have a problem with add method. There is communicate ..is not applicable for the argument(Form). In this case I want to add form component to my application. The project works fine in NB and both for NB and Eclipse I have used the same

[java ee programming] Wicket in Eclipse

2010-01-14 Thread Rafał Laczek
Hi, Can somebody help me how to configurate MyEclipse in order to be able to make Wicket projects. I cannot make any imports for example import org.apache.wicket.protocol.http.WebApplication; In NB everything is going well. Thanks in advance for help. Best regards, Rafal Laczek

[java ee programming] Wicket /xml /Eclipse

2010-01-14 Thread Rafał Laczek
Hi, I'm creating sample wicket application using Eclipse as well as I have copied it to the NB. As I'm more familiar with NB I have no problem to display the welcome page in the browser from the level of this tool. The problem is with Eclipse. Unfortunately I am forced to use Eclipse due to

[java ee programming] Wicket framework

2010-01-07 Thread Rafał Laczek
Hi Colleagues, In forthcoming weekends I will be learning intensively Wicket framework. For sure I will have many questions on this forum. By the way I would like to ask you to send me interesting links to materials with this technology, sample codes, dedicated Wicked forums, any pdf, courses

Re: [java ee programming] JSP/Servlet

2010-01-05 Thread Rafał Laczek
file name (what you have given in your web.xml) ResultEdit.java -String action = ""> You have passed "do" to the jsp file, but you haven't sent it to the Servlet. User a "hidden" field to send to the servlet. hope this helps Any sufficiently advanced technology is

[java ee programming] JSP/Serwlet application

2009-12-28 Thread Rafał Laczek
Hi, I have prepared test application where after the log in the user can choose from combo box the country and then the chosen country is added to arraylist. Combobox is in html page and business logic and presentation layer are in JSP. Now I want to refactor the project in order the business

PD: [java ee programming] JSP/Serwlet application

2009-12-28 Thread Rafał Laczek
Hi, The problem is solved. BR Rafal Dnia 28-12-2009 o godz. 16:53 Rafał Laczek rafal_lac...@wp.pl napisał(a): Hi, I have prepared test application where after the log in the user can choose from combo box the country and then the chosen country is added to arraylist. Combobox is in html

[java ee programming] Java courses in Oslo/Norway

2009-12-21 Thread Rafał Laczek
Hi Colleagues, Do you know maybe about interesting courses of Java in Oslo /Norway? The course may be payable as the company where I'm employed is willing to refund the costs. Just I need to take decision very quickly. Best regards, Rafal Laczek

[java ee programming] JSP /Displaying arrayList

2009-12-19 Thread Rafał Laczek
Hi, This is main part of my result.jsp. I have a problem to display the results from arrayList. I wanted to do it by while loop. Please help. BR Rafal % ArrayList arraylist = (ArrayList)session.getAttribute(arraylist); if(arraylist == null){ arraylist = new ArrayList();

Re: [java ee programming] JSP and Servlets

2009-12-18 Thread Rafał Laczek
Hi, Many thanks to everybody for very usefull information on JSP and Servlets. Regards, Rafal Dnia 18-12-2009 o godz. 7:29 Irtiza Ali napisał(a): I think head first Jsp servlets is perhaps the best book on the subject.thanks On Thu, Dec 17, 2009 at 5:39 PM, James Boswell boswell_ja...@hotmail.com

[java ee programming] JSP/Arraylist

2009-12-18 Thread Rafał Laczek
Hi, As the training I`making test application in JSP including small form. The form in available on form.html and looks as follow: form action=result.jsp method=get pFirst name input type=text name=firstName //p pSurnameinput type=text name=surname //p Maleinput type=radio

  1   2   >