Re: Reading Image from absolute path

2016-12-16 Thread ganea iulia
Thank you all, I will give it a try. On Fri, Dec 16, 2016 at 3:32 PM, Tobias Soloschenko < tobiassolosche...@googlemail.com> wrote: > Hi, > > if you mean absolute file system path > > https://ci.apache.org/projects/wicket/apidocs/7.x/ >

Re: Reading Image from absolute path

2016-12-16 Thread Tobias Soloschenko
Hi, if you mean absolute file system path https://ci.apache.org/projects/wicket/apidocs/7.x/org/apache/wicket/resource/FileSystemResourceReference.html If you mean path my URL: https://ci.apache.org/projects/wicket/apidocs/7.x/org/apache/wicket/markup/html/image/ExternalImage.html Examples

Re: Reading Image from absolute path

2016-12-16 Thread Ernesto Reinaldo Barreiro
I think this example http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/ will do if you implement the getBytes method to read image from file system. On Fri, Dec 16, 2016 at 12:19 PM, ganea iulia wrote: > Hello, > Do you have any link for a tutorial? > >

Re: Reading Image from absolute path

2016-12-16 Thread ganea iulia
Hello, Do you have any link for a tutorial? On Fri, Dec 16, 2016 at 1:04 PM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Mount a resource that readi image form that folder > > On Fri, Dec 16, 2016 at 11:54 AM, ganea iulia > wrote: > > > Hello, > > Wicket 7.

Re: Reading Image from absolute path

2016-12-16 Thread Ernesto Reinaldo Barreiro
Mount a resource that readi image form that folder On Fri, Dec 16, 2016 at 11:54 AM, ganea iulia wrote: > Hello, > Wicket 7. > > I have been struggling to read an image from absolute path but with no > luck. > > I have a folder with some images inside catalina base

Reading Image from absolute path

2016-12-16 Thread ganea iulia
Hello, Wicket 7. I have been struggling to read an image from absolute path but with no luck. I have a folder with some images inside catalina base directory from where I need to display images in my web page. However, this does not work. Could you please guide me on how to do this? Thank

Re: How get wiki Framework Documentation for offline reading

2014-02-12 Thread Duke
.1842946.n4.nabble.com/How-get-wiki-Framework-Documentation-for-offline-reading-tp4664374p4664411.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: How get wiki Framework Documentation for offline reading

2014-02-12 Thread Martin Grigorov
-reading-tp4664374p4664411.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

How get wiki Framework Documentation for offline reading

2014-02-11 Thread Farrukh SATTOROV
Hi everyone!, Can i download wicket wiki framework documentation for offline reading. Thanks. https://cwiki.apache.org/confluence/display/WICKET/Index

Re: How get wiki Framework Documentation for offline reading

2014-02-11 Thread Martin Grigorov
http://wicket.apache.org/guide/guide/single.pdf Martin Grigorov Wicket Training and Consulting On Tue, Feb 11, 2014 at 6:06 PM, Farrukh SATTOROV fireda...@gmail.comwrote: Hi everyone!, Can i download wicket wiki framework documentation for offline reading. Thanks. https://cwiki.apache.org

Re: How get wiki Framework Documentation for offline reading

2014-02-11 Thread Farrukh SATTOROV
I have printed this guide as brochure and reading now, but i mean about wiki doc. Thanks anyway On Tue, Feb 11, 2014 at 10:52 PM, Martin Grigorov mgrigo...@apache.orgwrote: http://wicket.apache.org/guide/guide/single.pdf Martin Grigorov Wicket Training and Consulting On Tue, Feb 11, 2014

Re: How get wiki Framework Documentation for offline reading

2014-02-11 Thread Martin Grigorov
The Wiki is not very up-to-date... Martin Grigorov Wicket Training and Consulting On Tue, Feb 11, 2014 at 8:48 PM, Farrukh SATTOROV fireda...@gmail.comwrote: I have printed this guide as brochure and reading now, but i mean about wiki doc. Thanks anyway On Tue, Feb 11, 2014 at 10:52 PM

Re: Reading placeholder parameters in mounted resources

2013-07-24 Thread Martin Grigorov
Hi, On Tue, Jul 23, 2013 at 10:57 PM, Andrew Schetinin ascheti...@gmail.comwrote: Hi Cedric, I'm not sure what you mean by a quick start, but here you may find the piece of code I'm using: This is how the shared resource is initialized with the application: @Override protected void

Re: Reading placeholder parameters in mounted resources

2013-07-24 Thread Andrew Schetinin
Hi Martin, Thank you for the advise with attributes.getPageParameters() .get(id) - I did not know about it. You wrote: *Wicket won't call MediaStorageResourceReference#* *getResource() if the request url doesn't match the mount path.* Now, that's not quite correct - when I create a resource

Re: Reading placeholder parameters in mounted resources

2013-07-24 Thread Martin Grigorov
), because all request parameters belong to the currently created panel, and not to the resource. You can return an empty resource, i.e. a resource without any state. Move your logic for reading the request parameters in IResource#respond(Attributes) or AbstractResource#newResourceResponse(Attributes

Reading placeholder parameters in mounted resources

2013-07-23 Thread Andrew Schetinin
Hi, I have a shared resource mounted to a URL pattern /storage/${id} So that the URL look like /storage/12345 and with optional additional parameters /storage/12345?shape=xyz It works fine when I create a new URL - the id parameter is correctly encoded in the URL. But when I process the actual

Re: Reading placeholder parameters in mounted resources

2013-07-23 Thread Francois Meillet
Try this pattern /storage/${id}/#{shape} Optional parameters are denoted by using a # instead of $ François Meillet Formation Wicket - Développement Wicket Le 23 juil. 2013 à 19:14, Andrew Schetinin ascheti...@gmail.com a écrit : Hi, I have a shared resource mounted to a URL pattern

Re: Reading placeholder parameters in mounted resources

2013-07-23 Thread Cedric Gatay
Hi, I think this is because you're mixing path parameters with query string one. It could be a bug, could you provide a quickstart with this to help us qualify and fix it if it is a bug. Regards, __ Cedric Gatay (@Cedric_Gatay http://twitter.com/Cedric_Gatay) http://code-troopers.com |

Re: Reading placeholder parameters in mounted resources

2013-07-23 Thread Andrew Schetinin
Hi Cedric, I'm not sure what you mean by a quick start, but here you may find the piece of code I'm using: This is how the shared resource is initialized with the application: @Override protected void init() { super.init(); mountResource( /storage/${id}, new

RE: Reading placeholder parameters in mounted resources

2013-07-23 Thread Paul Bors
For direction of creating a quick start see: http://wicket.apache.org/start/quickstart.html -Original Message- From: Andrew Schetinin [mailto:ascheti...@gmail.com] Sent: Tuesday, July 23, 2013 3:58 PM To: users@wicket.apache.org Subject: Re: Reading placeholder parameters in mounted

Re: Reading POST data from standalone application

2013-04-04 Thread Martin Grigorov
in web.xml works just fine, the HttpServletRequest contains all my pretty data .. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Reading-POST-data-from-standalone-application-tp4657664p4657665.html Sent from the Users forum mailing list archive at Nabble.com

Re: Reading POST data from standalone application

2013-03-31 Thread nooblet
I might add that popping in a standard HttpServlet and mapping in web.xml works just fine, the HttpServletRequest contains all my pretty data .. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Reading-POST-data-from-standalone-application-tp4657664p4657665.html Sent

Reading POST data from standalone application

2013-03-30 Thread nooblet
: http://apache-wicket.1842946.n4.nabble.com/Reading-POST-data-from-standalone-application-tp4657664.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Reading a cookie in component constructor?

2012-10-05 Thread Ondrej Zizka
Hi, I have a component which sets a cookie in ajax response, and uses that cookie when rendering upon further requests to the page. But it doesn't work. Is there something wrong on the code below? I have checked that the cookie is set - Firefox's Web Developer plugin shows it in successive

setting and reading a JS variable from Wicket?

2011-11-03 Thread infiniter
via Ajax or extra fields in the form. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setting-and-reading-a-JS-variable-from-Wicket-tp3989058p3989058.html Sent from the Users forum mailing list archive at Nabble.com

Re: setting and reading a JS variable from Wicket?

2011-11-03 Thread anantasthana
for the AbstractDefaultAjaxBehavior using vars.put(url,geo.getCallbackUrl().toString()); add(TextTemplateHeaderContributor.forJavaScript(MasterPage.class,setLocation.js,Model.valueOf(vars))); where vars is a hashmap. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setting-and-reading

Reading

2011-05-04 Thread Matthew Pennington
Hi I've got a small wicket app that is using paypal to take payments. On reciept of payment, paypal posts a notification back to the website. If I intercept this with a filter and look at the request parameters all the information I would expect is there, transaction details, item details

Re: Reading

2011-05-04 Thread Igor Vaynberg
that should work. i know people use this to have external apps post to a wicket page, so it should work. -igor On Wed, May 4, 2011 at 11:51 AM, Matthew Pennington m...@profounddecisions.co.uk wrote: Hi I've got a small wicket app that is using paypal to take payments. On reciept of payment,

Re: Reading cookies on first/each request

2010-06-29 Thread Bilgin Ibryam
Thanks guys. This will solve my problem. Bilgin On Tue, Jun 29, 2010 at 6:10 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: alternatively requestcycle#onbeginrequest() is also a good place -igor On Mon, Jun 28, 2010 at 7:05 AM, M. Hammer nab...@hammer-tour.com wrote: Quoting Bilgin

Reading cookies on first/each request

2010-06-28 Thread Bilgin Ibryam
Hi all, I want to implement Remember me functionality by storing the encrypted and base64 encoded username in a cookie. Then I'd like to check for the cookie on the very first request (or every request) to the application. Any tips whats the best way to access httpRequest object on each request

Re: Reading cookies on first/each request

2010-06-28 Thread M. Hammer
Quoting Bilgin Ibryam bibr...@gmail.com: I want to implement Remember me functionality by storing the encrypted and base64 encoded username in a cookie. Then I'd like to check for the cookie on the very first request (or every request) to the application. Hi, I do this in the newSession()

Re: Reading cookies on first/each request

2010-06-28 Thread Igor Vaynberg
alternatively requestcycle#onbeginrequest() is also a good place -igor On Mon, Jun 28, 2010 at 7:05 AM, M. Hammer nab...@hammer-tour.com wrote: Quoting Bilgin Ibryam bibr...@gmail.com: I want to implement Remember me functionality  by storing the encrypted and base64 encoded username in a

Reading localization properties from Subclass .properties file

2009-11-06 Thread Leo . Erlandsson
Hi, We are in the process of moving our applications from JSP to Wicket. Right now we're writing a framework with BasePages and base components to build on and are learning Wicket on the fly. The BasePage contains a HeaderPanel which renders the Headline of the page: !-- BasePage.java --

Ang. Reading localization properties from Subclass .properties file

2009-11-06 Thread Leo . Erlandsson
Sorry for the inconvenience, Wicket is handling this beautifully and loads the correct resourceKey value from the Page subclass .properties file. I don't dare admit what the problem was Thanks for a great framework!

Reading localization properties from Page Subclass .properties file

2009-11-05 Thread Leo . Erlandsson
Hi, We are in the process of moving our applications from JSP to Wicket. Right now we're writing a framework with BasePages and base components to build on and are learning Wicket on the fly. The BasePage contains a HeaderPanel which renders the Headline of the page: !-- BasePage.java --

Re: Reading Wicket source code

2009-07-26 Thread Vladimir K
) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Reading-Wicket-source-code-tp24651141p24665454.html Sent from

Re: Reading Wicket source code

2009-07-26 Thread Martin Makundi
Coding style is not the best in all parts, fro reading point of view, definitely ... ** Martin 2009/7/26 Vladimir K koval...@gmail.com: For me the magic is how wicket is managing pages and their versions. For instance I realized that it increments version when preparing the page for render

Re: Reading Wicket source code

2009-07-25 Thread Martin Makundi
Also one very benefiial point of view is just to code something and when you find a bug (either in your own code or Wicket), debug through wicket source and find the cause. If it's a wicket bug - contribute quickstart to jira that repeats the bug. I have learned myself quite a bit by doing this.

Reading Wicket source code

2009-07-24 Thread Pierre Goupil
Good evening, In order to learn Wicket as well as good Java coding ^ ^, I'd like to read Wicket source code. It's been a couple of months since I use it, so I have a general user-view on it. Do you have advice ? Where should I start it all ? Is there any typical workflow through the code-base

Re: Reading Wicket source code

2009-07-24 Thread Jeremy Thomerson
I'd say you'd be best served by using a quickstart application and clicking into code to see what it does. Set breakpoints to see what's happening in a real, live application. Just randomly reading code files won't give you nearly as much benefit. -- Jeremy Thomerson http

Getting API/Wiki pages for offline reading

2008-12-14 Thread HHB
Hey, Why Wicket package doesn't include the API and Wiki pages (like Struts2 for example)? Any ideas how to get them for late night offline reading? Thanks. -- View this message in context: http://www.nabble.com/Getting-API-Wiki-pages-for-offline-reading-tp20998576p20998576.html Sent from

Re: Reading an attribute that is set in a CSS file as a class

2008-11-19 Thread jwcarman
it for? Why can't you just make another class with just the attribute in it and AttributeAppender that in? -Original Message- From: egolan74 [mailto:[EMAIL PROTECTED] Sent: Sun 11/16/2008 10:42 AM To: users@wicket.apache.org Subject: RE: Reading

Re: Reading an attribute that is set in a CSS file as a class

2008-11-19 Thread James Carman
with just the attribute in it and AttributeAppender that in? -Original Message- From: egolan74 [mailto:[EMAIL PROTECTED] Sent: Sun 11/16/2008 10:42 AM To: users@wicket.apache.org Subject: RE: Reading an attribute that is set in a CSS file as a class

Re: Reading an attribute that is set in a CSS file as a class

2008-11-17 Thread Eyal Golan
that in? -Original Message- From: egolan74 [mailto:[EMAIL PROTECTED] Sent: Sun 11/16/2008 10:42 AM To: users@wicket.apache.org Subject: RE: Reading an attribute that is set in a CSS file as a class Steve Swinsburg-2 wrote: On your component attach

Re: Reading an attribute that is set in a CSS file as a class

2008-11-17 Thread Steve Swinsburg
the attribute in it and AttributeAppender that in? -Original Message- From: egolan74 [mailto:[EMAIL PROTECTED] Sent: Sun 11/16/2008 10:42 AM To: users@wicket.apache.org Subject: RE: Reading an attribute that is set in a CSS file as a class Steve Swinsburg-2 wrote: On your component

Re: Reading an attribute that is set in a CSS file as a class

2008-11-17 Thread Ernesto Reinaldo Barreiro
it for? Why can't you just make another class with just the attribute in it and AttributeAppender that in? -Original Message- From: egolan74 [mailto:[EMAIL PROTECTED] Sent: Sun 11/16/2008 10:42 AM To: users@wicket.apache.org Subject: RE: Reading an attribute

Re: Reading an attribute that is set in a CSS file as a class

2008-11-17 Thread Eyal Golan
To: users@wicket.apache.org Subject: RE: Reading an attribute that is set in a CSS file as a class Steve Swinsburg-2 wrote: On your component attach an AttributeAppender or AttributeModifier, set the class attribute to be the name of your class. Done

Re: Reading an attribute that is set in a CSS file as a class

2008-11-17 Thread Ernesto Reinaldo Barreiro
that in? -Original Message- From: egolan74 [mailto:[EMAIL PROTECTED] Sent: Sun 11/16/2008 10:42 AM To: users@wicket.apache.org Subject: RE: Reading an attribute that is set in a CSS file as a class Steve Swinsburg-2 wrote: On your component attach

Re: Reading an attribute that is set in a CSS file as a class

2008-11-17 Thread James Carman
To: users@wicket.apache.org Subject: RE: Reading an attribute that is set in a CSS file as a class Steve Swinsburg-2 wrote: On your component attach an AttributeAppender or AttributeModifier, set the class attribute to be the name of your class. Done

RE: Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread Swinsburg, Stephen
On your component attach an AttributeAppender or AttributeModifier, set the class attribute to be the name of your class. Done :) -Original Message- From: egolan74 [mailto:[EMAIL PROTECTED] Sent: Sun 11/16/2008 10:05 AM To: users@wicket.apache.org Subject: Reading an attribute

Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread egolan74
PROTECTED] Visit: http://jvdrums.sourceforge.net/ JVDrums LinkedIn: http://www.linkedin.com/in/egolan74 LinkedIn -- View this message in context: http://www.nabble.com/Reading-an-attribute-that-is-set-in-a-CSS-file-as-a-class-tp20523855p20523855.html Sent from the Wicket - User mailing list

RE: Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread egolan74
is, getting a value of an attribute of a class in a CSS file. - Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/ JVDrums LinkedIn: http://www.linkedin.com/in/egolan74 LinkedIn -- View this message in context: http://www.nabble.com/Reading-an-attribute-that-is-set-in-a-CSS

RE: Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread Swinsburg, Stephen
What do you need it for? Why can't you just make another class with just the attribute in it and AttributeAppender that in? -Original Message- From: egolan74 [mailto:[EMAIL PROTECTED] Sent: Sun 11/16/2008 10:42 AM To: users@wicket.apache.org Subject: RE: Reading an attribute

Re: Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread James Carman
: Reading an attribute that is set in a CSS file as a class Steve Swinsburg-2 wrote: On your component attach an AttributeAppender or AttributeModifier, set the class attribute to be the name of your class. Done :) Thanks Steve but this is not what I meant. Adding a class as an attribute

Re: Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread Ernesto Reinaldo Barreiro
@wicket.apache.org Subject: RE: Reading an attribute that is set in a CSS file as a class Steve Swinsburg-2 wrote: On your component attach an AttributeAppender or AttributeModifier, set the class attribute to be the name of your class. Done :) Thanks Steve but this is not what I meant

Re: Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread James Carman
make another class with just the attribute in it and AttributeAppender that in? -Original Message- From: egolan74 [mailto:[EMAIL PROTECTED] Sent: Sun 11/16/2008 10:42 AM To: users@wicket.apache.org Subject: RE: Reading an attribute that is set in a CSS file as a class

Re: Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread Ernesto Reinaldo Barreiro
/2008 10:42 AM To: users@wicket.apache.org Subject: RE: Reading an attribute that is set in a CSS file as a class Steve Swinsburg-2 wrote: On your component attach an AttributeAppender or AttributeModifier, set the class attribute to be the name of your class. Done

Re: Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread James Carman
the attribute in it and AttributeAppender that in? -Original Message- From: egolan74 [mailto:[EMAIL PROTECTED] Sent: Sun 11/16/2008 10:42 AM To: users@wicket.apache.org Subject: RE: Reading an attribute that is set in a CSS file as a class Steve Swinsburg-2 wrote

reading a resource file

2008-09-22 Thread eyalbenamram
. for reading the file I used: URL url = this.getServletContext().getResource(a.txt); Please help Thanks, Eyal. -- View this message in context: http://www.nabble.com/reading-a-resource-file-tp19606548p19606548.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: reading a resource file

2008-09-22 Thread Emanuele Gesuato
directory in the tomact. for reading the file I used: URL url = this.getServletContext().getResource(a.txt); Please help Thanks, Eyal. Are you using maven ? If yes you could put your a.txt in src/main/resources. It should work. HTH, Emanuele

Re: reading a resource file

2008-09-22 Thread Martijn Dashorst
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. for reading the file I used

Re: reading a resource file

2008-09-22 Thread Eyal Golan
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. for reading the file I used: URL url = this.getServletContext().getResource(a.txt); Please help Thanks, Eyal. -- View

Re: reading a resource file

2008-09-22 Thread eyalbenamram
it everywhere in the application, and under any directory in the tomact. for reading the file I used: URL url = this.getServletContext().getResource(a.txt); Please help Thanks, Eyal. -- View this message in context: http://www.nabble.com/reading-a-resource-file-tp19606548p19606548.html Sent from

Reading Wicket properties file WITH substitutions

2008-08-28 Thread Neil McT
values. I understand that this is also as expected as its just grabbing the property. However I'm wondering how best to invoke the wicket pre-processing? Thanks, Neil. -- View this message in context: http://www.nabble.com/Reading-Wicket-properties-file-WITH-substitutions-tp19205222p19205222.html

Re: Reading files

2008-07-12 Thread Al Maw
2008/7/11 David Nedrow [EMAIL PROTECTED]: Here's what I've have... IResourceStream resStream = new PackageResourceStream(WicketApplication.class, protocols.csv); InputStream inStream = resStream.getInputStream(); InputStreamReader isr = new InputStreamReader(inStream); ListString[]

Re: Reading files

2008-07-11 Thread David Nedrow
On Jul 9, 2008, at 6:52 AM, greeklinux wrote: Hello, I do not know if it helps: Can you read the CSV file as Resource, get the IResourceStream, then getInputStream() on IResourceStream and put this inputStream in a java.io.InputStreamReader? Yeah, that's basically where I am. I thought

Re: Reading files

2008-07-09 Thread greeklinux
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Reading-files-tp18321041p18358873.html Sent from the Wicket - User mailing list archive at Nabble.com

Reading files

2008-07-07 Thread David Nedrow
I have a third party package that requires a java.io.Reader (or descendent) as an input. I need to provide a Reader for a file locate in either WEB-INF (or possibly package sourced). This file is a CSV list of items that is used to initialize a database table. I just need to iterate over

Re: problem when reading properties file

2008-06-02 Thread Gabor Szokoli
On 6/2/08, wenm [EMAIL PROTECTED] wrote: But my label only show the message when the web service returns error, not constant showing. So it is not a good idea to use resourceModel. I know I'm not answering your original question, but until someone does, you could look at either the

problem when reading properties file

2008-06-02 Thread wenm
java.lang.NullPointerException at java.util.Properties$LineReader.readLine(Properties.java:365) at java.util.Properties.load(Properties.java:293) Then I tried to test reading in main method, and it works fine there. public static void main(String[] args){ Properties property = new Properties

Re: problem when reading properties file

2008-06-02 Thread wenm
it show up conditionally. Gabor Szokoli - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/problem-when-reading

Re: problem when reading properties file

2008-06-02 Thread Eyal Golan
(Properties.java:293) Then I tried to test reading in main method, and it works fine there. public static void main(String[] args){ Properties property = new Properties(); try { property.load(ClassLoader.getSystemResourceAsStream(test.properties)); } catch

Re: problem when reading properties file

2008-06-02 Thread Eyal Golan
. Gabor Szokoli - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/problem-when-reading-properties-file

Re: problem when reading properties file

2008-06-02 Thread wenm
Thanks Eyal. I have tried with resourceModel before, it works fine. But my label only show the message when the web service returns error, not constant showing. So it is not a good idea to use resourceModel. -- View this message in context: http://www.nabble.com/problem-when-reading

Re: problem when reading properties file

2008-06-02 Thread wenm
the message to your liking? -- View this message in context: http://www.nabble.com/problem-when-reading-properties-file-tp17597421p17599504.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail

Re: problem when reading properties file

2008-06-02 Thread James Carman
? -- View this message in context: http://www.nabble.com/problem-when-reading-properties-file-tp17597421p17599504.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: problem when reading properties file

2008-06-02 Thread Johan Compagner
:) The problem is that I have to get different massages from properties file, and then comes to my original question. hmm i tried Chinese, Thais and some others. But i never got a massage from a property file, how does that feel?? johan

Re: problem when reading properties file

2008-06-02 Thread wenm
in context: http://www.nabble.com/problem-when-reading-properties-file-tp17597421p17599649.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: problem when reading properties file

2008-06-02 Thread wenm
. But i never got a massage from a property file, how does that feel?? johan -- View this message in context: http://www.nabble.com/problem-when-reading-properties-file-tp17597421p17599687.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: problem when reading properties file

2008-06-02 Thread James Carman
On Mon, Jun 2, 2008 at 8:01 AM, wenm [EMAIL PROTECTED] wrote: Sure. Maybe I need to explain more explicitly. I will get the unique error code from web service if there is something wrong. And then I would like to map the error codes to user-friendly messages (which are in properties file),

Re: problem when reading properties file

2008-06-02 Thread Eyal Golan
Exactly as James suggest and what I said earlier: use something like this, add( new Label( page.label, new ResourceModel( page.label ) ); Instead of 'page.label' do something like error.label.key# where key# is what you get from the service. On Mon, Jun 2, 2008 at 3:05 PM, James Carman [EMAIL

Re: problem when reading properties file

2008-06-02 Thread wenm
)) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/problem-when-reading-properties-file-tp17597421p17599820.html Sent from the Wicket - User mailing list archive

Re: problem when reading properties file

2008-06-02 Thread James Carman
On Mon, Jun 2, 2008 at 8:10 AM, wenm [EMAIL PROTECTED] wrote: yup, it works. But I would like to know the way to read the file, for studying and also maybe future use. For future use, I'd suggest you look at the java.util.ResourceBundle class. That will probably do what you are looking for.

Re: Reading selected radio in validator

2008-02-13 Thread Igor Vaynberg
you can use getconvertedinput() to get the value that will eventually be pushed into session. -igor On Feb 12, 2008 10:44 PM, Rik van der Kleij [EMAIL PROTECTED] wrote: Hi, Does someone knows a solution for reading the selected radio button in the validate() of a IFormValidator

Reading selected radio in validator

2008-02-12 Thread Rik van der Kleij
Hi, Does someone knows a solution for reading the selected radio button in the validate() of a IFormValidator implementation? The problem I have is that getOutput() on a form component gives the value out of the HTML because no conversion to objects is yet done in the validation step. By the way