reading a resource file

2008-09-22 Thread eyalbenamram
Hi I have a wicket application that is being deployed to tomcat using Eclipse IDE. I need to be able to read a .txt file from the application object. the problem is I cannot find where to put the txt file. I tried to put it everywhere in the application, and under any directory in the tomact.

Re: reading a resource file

2008-09-22 Thread eyalbenamram
, Sep 22, 2008 at 1:58 PM, eyalbenamram [EMAIL PROTECTED] wrote: Hi I have a wicket application that is being deployed to tomcat using Eclipse IDE. I need to be able to read a .txt file from the application object. the problem is I cannot find where to put the txt file. I tried to put

customizing PagingNavigator

2008-09-24 Thread eyalbenamram
Hi I need to have a PagingNavigator that has only the next and previous links visible, and in addition, to change their looks from to prev and from to next Can you please add code? I searched the forum and found some messy stuff that didn't work.. Thaks, Eyal. -- View this message in

Re: customizing PagingNavigator

2008-09-24 Thread eyalbenamram
eyalbenamram wrote: Hi I need to have a PagingNavigator that has only the next and previous links visible, and in addition, to change their looks from to prev and from to next Can you please add code? I searched the forum and found some messy stuff that didn't work.. Thaks, Eyal

Page Navigation - order of items

2008-09-28 Thread eyalbenamram
Hi, I have a DataView object holding items, and a PagingNavigator object (customized) that enables paging. When the page is first loaded, the items are displayed from begining to end (if there are 5 items per page, 1-5 are displayed). I need them to be displayed from last to first, without me

Re: Page Navigation - order of items

2008-09-28 Thread eyalbenamram
of setting up the columns, I call SortableDataProvider.setSort() ie., - dataProvider.setSort(publishDate, false); to define the initial sort column (and ascending/descending order). Phil On Sun, Sep 28, 2008 at 9:57 AM, eyalbenamram [EMAIL PROTECTED]wrote: Hi, I have a DataView

Re: Page Navigation - order of items

2008-09-28 Thread eyalbenamram
, eyalbenamram [EMAIL PROTECTED]wrote: Hi again, I do not think I need to sort the list of items. think of 5 messages sent by the user, 3 items per page are displayed. I need it to show items 3,4,5 on the current page (in this order), and when pressing previous page, show items 1,2. Any solution

Form GET doesn't call onSubmit method

2008-10-02 Thread eyalbenamram
Hi, I have a form that overrides the method: protected String getMethod() { return Form.METHOD_GET; } When the form is submitted, the onSubmit method is never called and I am routed to the home page instead of the location I specified. Any

Re: Form GET doesn't call onSubmit method

2008-10-02 Thread eyalbenamram
Hi How? what is a quickstart? I am using wicket 1.3.4 is it still not fixed there? igor.vaynberg wrote: create a quickstart and attach it to a jira issue -igor On Thu, Oct 2, 2008 at 7:09 AM, eyalbenamram [EMAIL PROTECTED] wrote: Hi, I have a form that overrides the method

Re: Form GET doesn't call onSubmit method

2008-10-04 Thread eyalbenamram
://issues.apache.org/jira/browse/WICKET. The quickstart should be attached to the created issue. Regards, Erik. eyalbenamram wrote: Hi How? what is a quickstart? I am using wicket 1.3.4 is it still not fixed there? igor.vaynberg wrote: create a quickstart and attach

Re: Form GET doesn't call onSubmit method

2008-10-05 Thread eyalbenamram
there is a bug. You can file the bug by creating an issue in Wicket's bug tracking system at: https://issues.apache.org/jira/browse/WICKET. The quickstart should be attached to the created issue. Regards, Erik. eyalbenamram wrote: Hi How? what is a quickstart? I am using wicket 1.3.4

Re: Form GET doesn't call onSubmit method

2008-10-05 Thread eyalbenamram
there is a bug. You can file the bug by creating an issue in Wicket's bug tracking system at: https://issues.apache.org/jira/browse/WICKET. The quickstart should be attached to the created issue. Regards, Erik. eyalbenamram wrote: Hi How? what is a quickstart? I am using wicket 1.3.4

form GET calling onSubmit

2008-10-05 Thread eyalbenamram
Hi There is a bug in wicket of a form that uses the GET method never calls the onSubmit method. I am now using wicket 1.4 m3, and the bug (already reported long time ago) is still not fixed, though it is said it was fixed. here is my code: Button backBtn = new Button(back_button, new

Re: Form GET doesn't call onSubmit method

2008-10-05 Thread eyalbenamram
I have no idea why.. I think it is a bug.. when using POST it works just fine. So is there a way to use GET and call onSubmit in another way? igor.vaynberg wrote: first you have to figure out why its not getting called -igor On Sun, Oct 5, 2008 at 4:10 AM, eyalbenamram [EMAIL

Re: form GET calling onSubmit

2008-10-05 Thread eyalbenamram
JIRA: https://issues.apache.org/jira/browse/WICKET-1580 igor.vaynberg wrote: where is the bug report? -igor On Sun, Oct 5, 2008 at 6:56 AM, eyalbenamram [EMAIL PROTECTED] wrote: Hi There is a bug in wicket of a form that uses the GET method never calls the onSubmit method. I am

Re: Form GET doesn't call onSubmit method

2008-10-05 Thread eyalbenamram
- what did I do wrong? igor.vaynberg wrote: just tried the code you pasted in the other email and it works fine for me. this is why i asked for a quickstart...for now i cant reproduce your problem. -igor On Sun, Oct 5, 2008 at 8:57 AM, eyalbenamram [EMAIL PROTECTED] wrote: I have

Re: form GET calling onSubmit

2008-10-05 Thread eyalbenamram
:04 AM, eyalbenamram [EMAIL PROTECTED] wrote: JIRA: https://issues.apache.org/jira/browse/WICKET-1580 igor.vaynberg wrote: where is the bug report? -igor On Sun, Oct 5, 2008 at 6:56 AM, eyalbenamram [EMAIL PROTECTED] wrote: Hi There is a bug in wicket of a form that uses the GET

Re: Form GET doesn't call onSubmit method

2008-10-05 Thread eyalbenamram
OK.. thanks anyway igor.vaynberg wrote: no idea if it works for post but not get... -igor On Sun, Oct 5, 2008 at 9:26 AM, eyalbenamram [EMAIL PROTECTED] wrote: I will try to reproduce it in a quickstart application.. If you won't hear from me again about this problem - it's

Serialization problem - detaching an oblect from session

2008-10-28 Thread eyalbenamram
Hi, My session is holding an non serializable object. this causes a problem every time wicket is trying to serialize a page (since most pages in my app are hoding a pointer to the session) Here is the exception: http-6789-6 ERROR lang.Objects - Error serializing object class screens.Login

Re: Serialization problem - detaching an oblect from session

2008-10-28 Thread eyalbenamram
Thank you for the quick response. eyalbenamram wrote: Hi, My session is holding an non serializable object. this causes a problem every time wicket is trying to serialize a page (since most pages in my app are hoding a pointer to the session) Here is the exception: http-6789-6 ERROR

inserting javascript from java to html file

2008-10-28 Thread eyalbenamram
Hi I am inserting javascript code like this: StringBuffer config = new StringBuffer(); config.append(script language=\JavaScript\\n); config.append(function onLoad() { getValue(); setTimeout(\onRefresh();\,+ns.getAutoRefreshSecs()*1000+); }\n);

Re: Serialization problem - detaching an oblect from session

2008-10-28 Thread eyalbenamram
objects. -igor On Tue, Oct 28, 2008 at 10:02 AM, eyalbenamram [EMAIL PROTECTED] wrote: Hi, My session is holding an non serializable object. this causes a problem every time wicket is trying to serialize a page (since most pages in my app are hoding a pointer to the session) Here

Re: inserting javascript from java to html file

2008-10-28 Thread eyalbenamram
On Tue, Oct 28, 2008 at 10:57 AM, eyalbenamram [EMAIL PROTECTED] wrote: Hi I am inserting javascript code like this: StringBuffer config = new StringBuffer(); config.append(script language=\JavaScript\\n); config.append(function onLoad() { getValue

Re: inserting javascript from java to html file

2008-10-28 Thread eyalbenamram
Sorry, I understood what you meant and used IHeaderContributor. Thanks. igor.vaynberg wrote: use iheadercontributor, that should work much better also make sure your page has body tag. -igor On Tue, Oct 28, 2008 at 10:57 AM, eyalbenamram [EMAIL PROTECTED] wrote: Hi I am inserting

Re: inserting javascript from java to html file

2008-10-28 Thread eyalbenamram
iheadercontributor, that should work much better also make sure your page has body tag. -igor On Tue, Oct 28, 2008 at 10:57 AM, eyalbenamram [EMAIL PROTECTED] wrote: Hi I am inserting javascript code like this: StringBuffer config = new StringBuffer

Re: Serialization problem - detaching an oblect from session

2008-10-28 Thread eyalbenamram
is the object? -igor On Tue, Oct 28, 2008 at 11:09 AM, eyalbenamram [EMAIL PROTECTED] wrote: The problem is, this object the session is holding cannot be serialized. Is there a way to hold this object on a defferent level or detach it from the session despite the J2ee specs? igor.vaynberg

Re: inserting javascript from java to html file

2008-10-28 Thread eyalbenamram
(/script\n); response.renderOnLoadJavascript(config.toString()); igor.vaynberg wrote: what is your code look like? -igor On Tue, Oct 28, 2008 at 11:28 AM, eyalbenamram [EMAIL PROTECTED] wrote: Hi again, I used IHeaderContributer, and the javascript code is now garbled

Re: inserting javascript from java to html file

2008-10-28 Thread eyalbenamram
at 11:33 AM, eyalbenamram [EMAIL PROTECTED] wrote: public void renderHead(IHeaderResponse response) { StringBuffer config = new StringBuffer(); config.append(script language=\JavaScript\\n); config.append(function removeBlur(checked) {\n

force client to use GET method

2008-11-10 Thread eyalbenamram
Hi How do I tell the client to use a GET method instead of POST? The problem is, the client is sending the form from a previous page in a POST request, causing a double submission. -- View this message in context: http://www.nabble.com/force-client-to-use-GET-method-tp20420920p20420920.html

Re: force client to use GET method

2008-11-10 Thread eyalbenamram
Ok.. that didn't stop the client from submitting the form of the previous page again. Any other solutions to preventing double submissions? Pills wrote: write it in html? form wicket:id=foo method=GET... eyalbenamram a écrit : Hi How do I tell the client to use a GET method instead

form being posted many times

2008-11-10 Thread eyalbenamram
Hi I have a login page (with a form) that redirects to a progress bar page. after the user submits the login form, I redirect to the progress bar page, and it has an auto refresh so that every few seconds it refresh the page (to check if the login sequence is done). The problem is the on refresh

Re: form being posted many times

2008-11-10 Thread eyalbenamram
Lazy load doesn't work for me. I cannot use AJAX since it is supposed to work on Mobile that may not support it. Any other solution? eyalbenamram wrote: Hi I have a login page (with a form) that redirects to a progress bar page. after the user submits the login form, I redirect

Re: SV: force client to use GET method

2008-11-10 Thread eyalbenamram
Thanks!! Wilhelmsen Tor Iver wrote: Ok.. that didn't stop the client from submitting the form of the previous page again. Any other solutions to preventing double submissions? Tell people to use a less stupid browser than IE? (Which is the one with that behavior if memory serves)? :)

Re: force client to use GET method

2008-11-10 Thread eyalbenamram
at 6:27 AM, eyalbenamram [EMAIL PROTECTED] wrote: Hi How do I tell the client to use a GET method instead of POST? The problem is, the client is sending the form from a previous page in a POST request, causing a double submission. -- View this message in context: http://www.nabble.com/force

Re: AW: form being posted many times

2008-11-10 Thread eyalbenamram
Can you please elaborate? Stefan Lindner wrote: Why don't you use a LazyLoadPanel? May this be an option? -Ursprüngliche Nachricht- Von: eyalbenamram [mailto:[EMAIL PROTECTED] Gesendet: Montag, 10. November 2008 12:17 An: users@wicket.apache.org Betreff: form being posted

Adding a header contributor raise an error in logs

2008-11-11 Thread eyalbenamram
Hi, I get a message: http-8095-Processor20 ERROR html.WebPage - You probably forgot to add a body or header tag to your markup since no Header Container was found but components where found which want to write to the head section. meta http-equiv=refresh content=10/ but my markup already