Question about property expressions

2008-11-04 Thread Jan Stette
Hi all, if I have a class like this: class SomeClass { String getValue(String key); } ...is there a way I can use a property expression to get values out of this class? E.g. using an expression like value[myKey]. In other words, something very similar to if the class looked like this:

Re: Question about property expressions

2008-11-04 Thread Igor Vaynberg
no you cannot use propertymodel, but you can easily write your own model that calls the method directly. -igor On Tue, Nov 4, 2008 at 12:52 PM, Jan Stette [EMAIL PROTECTED] wrote: Hi all, if I have a class like this: class SomeClass { String getValue(String key); } ...is there a way I

Re: Question about property expressions

2008-11-04 Thread Jan Stette
Sure. To explain a bit more why I'm asking: I have a table component that's configured using property expressions as to what's shown in each column. The types of objects to be shown in the table are not known in advance, hence having a hard coded model for a specific type of class isn't really

Re: Small question about URL rewriting

2008-10-15 Thread Daan van Etten
Now thats *really* friendly :-) On 15 okt 2008, at 13:11, James Carman wrote: Right, I guess that's what I meant by friendly too. Friendly to search engines, not just our eyes. On Wed, Oct 15, 2008 at 7:08 AM, Daan van Etten [EMAIL PROTECTED] wrote: Keeping keywords in URLs also improves

Re: Small question about URL rewriting

2008-10-15 Thread Witold Czaplewski
Hmm...could be. Google shows only one urls [1] Maybe amazon uses other techniques like robots.txt or the meta-tag robots to block the other urls. But i didn't look at it. If you are interested in duplicate content, the google webmaster central blog has some very nice posts [2] [3]. [1]

Re: Small question about URL rewriting

2008-10-15 Thread Jon Stockdill
Django adds a slug field, which is unique, for its urls. Then you look up the content by slug instead of id Its admin interface suggests a slug, which is alterable if it is not unique. On 10/15/08, James Carman [EMAIL PROTECTED] wrote: To be fair, I didn't find that second URL. I

Re: Small question about URL rewriting

2008-10-15 Thread Daan van Etten
Hi Hbiloo, Check out the various UrlCodingStrategies. See http://cwiki.apache.org/WICKET/url-coding-strategies.html I wrote something about RESTful urls here: http://stuq.nl/weblog/2008-06-20/create-restful-urls-with-wicket Regards, Daan On 15 okt 2008, at 11:19, Azzeddine Daddah wrote:

Re: Small question about URL rewriting

2008-10-15 Thread Daan van Etten
Hi Hbiloo, I don't know of an existing working solution. A while ago some people where working on this, according to the mailing list: http://mail-archives.apache.org/mod_mbox/wicket-dev/200802.mbox/[EMAIL PROTECTED] You can prefix the article title with the date (as I did on my blog), so

Re: Small question about URL rewriting

2008-10-15 Thread Daan van Etten
Keeping keywords in URLs also improves search engine rankings. Regards, Daan On 15 okt 2008, at 13:01, James Carman wrote: When Amazon.com does something like this, they still use an id on the URL. Check out these two URLs (which are equivalent and happen to be for a book I was suggesting

Re: Small question about URL rewriting

2008-10-15 Thread James Carman
When Amazon.com does something like this, they still use an id on the URL. Check out these two URLs (which are equivalent and happen to be for a book I was suggesting to someone): http://www.amazon.com/Pragmatic-Version-Control-Using-Subversion/dp/0974514063 http://www.amazon.com/dp/0974514063

Re: Small question about URL rewriting

2008-10-15 Thread James Carman
Right, I guess that's what I meant by friendly too. Friendly to search engines, not just our eyes. On Wed, Oct 15, 2008 at 7:08 AM, Daan van Etten [EMAIL PROTECTED] wrote: Keeping keywords in URLs also improves search engine rankings. Regards, Daan On 15 okt 2008, at 13:01, James Carman

Re: Small question about URL rewriting

2008-10-15 Thread Azzeddine Daddah
Hi Daan, Thanks for your quick response :). It's a really interesting article to read. I don't really want to set the ID's of my product in the URL. I was thinking to do something like this :) :

Re: Small question about URL rewriting

2008-10-15 Thread James Carman
To be fair, I didn't find that second URL. I hand-crafted it. So, maybe Amazon doesn't let the search engines find those types of URLs by crawling. Wouldn't that help? On Wed, Oct 15, 2008 at 7:32 AM, Witold Czaplewski [EMAIL PROTECTED] wrote: Btw... amazon.com is a very bad example for a

Re: Small question about URL rewriting

2008-10-15 Thread Witold Czaplewski
Btw... amazon.com is a very bad example for a search engine friendly site. Duplicate content like the posted urls are more problematic than non-friendly urls. The perfect solution (unfortunately not always possible) is only one friendly or meaningful url for every unique page. Witold Am Wed, 15

Re: hi, question about wicket maven project

2008-09-20 Thread James Carman
] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/hi%2C-question-about-wicket-maven-project-tp19528847p19582777.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: hi, question about wicket maven project

2008-09-19 Thread shrimpywu
, does anybody know how to do that? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/hi%2C-question-about-wicket

hi, question about wicket maven project

2008-09-17 Thread shrimpywu
in context: http://www.nabble.com/hi%2C-question-about-wicket-maven-project-tp19528847p19528847.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: hi, question about wicket maven project

2008-09-17 Thread Martin Grigorov
The easiest approach is to use Wicket's quickstart and start Start.java in debug mode in your favorite IDE. With hot code replace and DEVELOPMENT mode you will have all your changes in .java and resources files reloaded automatically. Other options are: 1. use Jetty's Maven plugin (mvn jetty:run)

Question about transient and serialization

2008-07-24 Thread HHHHH
this message in context: http://www.nabble.com/Question-about-transient-and-serialization-tp18641031p18641031.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Question about transient and serialization

2008-07-24 Thread Igor Vaynberg
in context: http://www.nabble.com/Question-about-transient-and-serialization-tp18641031p18641031.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: A question about cookie value loading

2008-07-02 Thread Timo Rantalaiho
On Mon, 30 Jun 2008, nate roe wrote: I'm now using Wicket 1.3.3 but I'm still seeing this behavior, where when my ListView is visited (from Form.loadPersistentFormComponentValues(),) my listView's children is null when it is visited in FormComponent.visitFormComponentsPostOrderHelper(). It

Re: A question about cookie value loading

2008-06-30 Thread nate roe
I'm now using Wicket 1.3.3 but I'm still seeing this behavior, where when my ListView is visited (from Form.loadPersistentFormComponentValues(),) my listView's children is null when it is visited in FormComponent.visitFormComponentsPostOrderHelper(). It is difficult to understand why the ListView

Re: beginner question about models when having more than one component of the same type on the same page

2008-06-12 Thread Gwyn Evans
Just to come back to your original question (as I was intrigued dug into it), the reason why Wicket didn't find the properties as expected is that the ResourceModel is relative to the component, so it was looking for properties such as: vacancyForm.hrContactPanel.nameLabel.nameLabel=HR

beginner question about models when having more than one component of the same type on the same page

2008-06-11 Thread Peter Eriksson
Hello, I have just begun to use wicket and so far I am very impressed with the framework. I have a question about best practice to solve a problem. I have a component (wicket panel) that contain contact information (like name, address, email, phone, etc) and on a specific web page I want to have

Re: beginner question about models when having more than one component of the same type on the same page

2008-06-11 Thread Martin Makundi
Can you paste the code for better insight into your problem? 2008/6/11 Peter Eriksson [EMAIL PROTECTED]: Hello, I have just begun to use wicket and so far I am very impressed with the framework. I have a question about best practice to solve a problem. I have a component (wicket panel

Re: beginner question about models when having more than one component of the same type on the same page

2008-06-11 Thread Maurice Marrink
, I have just begun to use wicket and so far I am very impressed with the framework. I have a question about best practice to solve a problem. I have a component (wicket panel) that contain contact information (like name, address, email, phone, etc) and on a specific web page I want to have two

Re: beginner question about models when having more than one component of the same type on the same page

2008-06-11 Thread Peter Eriksson
to use wicket and so far I am very impressed with the framework. I have a question about best practice to solve a problem. I have a component (wicket panel) that contain contact information (like name, address, email, phone, etc) and on a specific web page I want to have two of the contact

Re: beginner question about models when having more than one component of the same type on the same page

2008-06-11 Thread Peter Eriksson
and so far I am very impressed with the framework. I have a question about best practice to solve a problem. I have a component (wicket panel) that contain contact information (like name, address, email, phone, etc) and on a specific web page I want to have two of the contact panels

Re: A question about cookie value loading

2008-06-11 Thread nate roe
Hrm. This issue may well be what I've run up against. When exactly are ListView children created (or reused)? On Tue, Jun 10, 2008 at 8:04 PM, Timo Rantalaiho [EMAIL PROTECTED] wrote: On Tue, 10 Jun 2008, nate roe wrote: Don't forget that I'm using 1.2... this has maybe changed and that's

Re: A question about cookie value loading

2008-06-11 Thread Timo Rantalaiho
On Wed, 11 Jun 2008, nate roe wrote: When exactly are ListView children created (or reused)? Use the source, Luke! onBeforeRender AFAIK. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/

Re: beginner question about models when having more than one component of the same type on the same page

2008-06-11 Thread Peter Eriksson
Thanks Timo for your very helpful suggestion! Best Regards, /Peter 2008/6/11 Timo Rantalaiho [EMAIL PROTECTED]: On Wed, 11 Jun 2008, Peter Eriksson wrote: I will answer my own post, just in case somebody else is looking for a solution to the same problem. I have found two ways to get the

A question about cookie value loading

2008-06-10 Thread nate roe
I'm using Wicket 1.2. I have a form with several components. Some components are within a ListView. Cookie value persistence does not appear to be loading values for components in the ListView. I have a breakpoint in Form.loadPersistentFormComponentValues(...) at line 261: if

Re: A question about cookie value loading

2008-06-10 Thread Timo Rantalaiho
On Tue, 10 Jun 2008, nate roe wrote: I have a form with several components. Some components are within a ListView. Cookie value persistence does not appear to be loading values for components in the ListView. I have a breakpoint in Form.loadPersistentFormComponentValues(...) at line 261:

Re: A question about cookie value loading

2008-06-10 Thread nate roe
Yes, I have. On Tue, Jun 10, 2008 at 11:48 AM, Timo Rantalaiho [EMAIL PROTECTED] wrote: On Tue, 10 Jun 2008, nate roe wrote: I have a form with several components. Some components are within a ListView. Cookie value persistence does not appear to be loading values for components in the

Re: A question about cookie value loading

2008-06-10 Thread Igor Vaynberg
i dont think cookie persistence is going to work for listviews out of the box. the problem is that components inside repeaters do not have stable component paths - and that is the key the cookie uses to store values. so you will need to roll your own solution for this usecase. -igor On Tue, Jun

Re: A question about cookie value loading

2008-06-10 Thread nate roe
I'm already using cookie names different from the component IDs. It's just that the components that belong to a ListView are never even checked for loading. Where does Wicket discard the ListView components when visiting its child FormComponents? On Tue, Jun 10, 2008 at 1:14 PM, Igor Vaynberg

Re: A question about cookie value loading

2008-06-10 Thread nate roe
I believe it's because a ListView is not a FormComponent, and the Form only visits its direct children. Does this sound plausible? How can I work around this to cause a Form's ListView's children to also be visited? On Tue, Jun 10, 2008 at 1:37 PM, nate roe [EMAIL PROTECTED] wrote: I'm

Re: A question about cookie value loading

2008-06-10 Thread Igor Vaynberg
listview rebuilds its components in the beginning of each request. setreuseitems inhibits that if the same page is redrawn, but if you change the page the items are not preserved. -igor On Tue, Jun 10, 2008 at 1:37 PM, nate roe [EMAIL PROTECTED] wrote: I'm already using cookie names different

Re: A question about cookie value loading

2008-06-10 Thread Igor Vaynberg
form components inside listview are visited. -igor On Tue, Jun 10, 2008 at 1:40 PM, nate roe [EMAIL PROTECTED] wrote: I believe it's because a ListView is not a FormComponent, and the Form only visits its direct children. Does this sound plausible? How can I work around this to cause a

Re: A question about cookie value loading

2008-06-10 Thread nate roe
I can't figure out why Wicket is not calling Form.loadPersisitentFormComponentValues() for FormComponents that belong to a ListView. Page.setFormComponentValuesFromCookies() calls visitChildren() inherited from MarkupContainer. I can see that visitChildren() is called for my ListView, but it

Re: A question about cookie value loading

2008-06-10 Thread Igor Vaynberg
what calls that method? call hieararchy for it is empty in eclipse...which is pretty strange... -igor On Tue, Jun 10, 2008 at 2:40 PM, nate roe [EMAIL PROTECTED] wrote: I can't figure out why Wicket is not calling Form.loadPersisitentFormComponentValues() for FormComponents that belong to a

Re: A question about cookie value loading

2008-06-10 Thread nate roe
I'm sorry, which method do you mean? On Tue, Jun 10, 2008 at 4:02 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: what calls that method? call hieararchy for it is empty in eclipse...which is pretty strange... -igor On Tue, Jun 10, 2008 at 2:40 PM, nate roe [EMAIL PROTECTED] wrote: I can't

Re: A question about cookie value loading

2008-06-10 Thread Igor Vaynberg
Form.loadPersisitentFormComponentValues() -igor On Tue, Jun 10, 2008 at 4:23 PM, nate roe [EMAIL PROTECTED] wrote: I'm sorry, which method do you mean? On Tue, Jun 10, 2008 at 4:02 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: what calls that method? call hieararchy for it is empty in

Re: A question about cookie value loading

2008-06-10 Thread nate roe
That's called from Page.setFormComponentValuesFromCookies(...) which is in turn called from .renderPage(...) Don't forget that I'm using 1.2... this has maybe changed and that's why Eclipse isn't showing the call hierarchy? On Tue, Jun 10, 2008 at 5:19 PM, Igor Vaynberg [EMAIL PROTECTED] wrote:

Re: A question about cookie value loading

2008-06-10 Thread Timo Rantalaiho
On Tue, 10 Jun 2008, nate roe wrote: Don't forget that I'm using 1.2... this has maybe changed and that's why Eclipse isn't showing the call hierarchy? Before 1.3.0-beta3 there was trouble visiting repeater children before they are rendered, could your problem be caused by that?

Re: hi all, question about invoke some other service in wicket

2008-05-28 Thread shrimpywu
the sample is greate..it works fine... -- View this message in context: http://www.nabble.com/hi-all%2C-question-about-invoke-some-other-service-in-wicket-tp17503718p17506079.html Sent from the Wicket - User mailing list archive at Nabble.com

question about dojo yahoo map in wicket

2008-05-28 Thread shrimpywu
;/div -- View this message in context: http://www.nabble.com/question-about-dojo-yahoo-map-in-wicket-tp17506917p17506917.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL

hi all, question about invoke some other service in wicket

2008-05-27 Thread shrimpywu
the xml format respone, so that i can get the image location Thanks -- View this message in context: http://www.nabble.com/hi-all%2C-question-about-invoke-some-other-service-in-wicket-tp17503718p17503718.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: hi all, question about invoke some other service in wicket

2008-05-27 Thread Gabriel Bucher
have you had a look at the wicketstuff flickr example integration? https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-flickr/ example is based on wicket 1.2 but it could be an inspiration. shrimpywu wrote: hmm..i don`t know here is the right place to post this question

Re: hi all, question about invoke some other service in wicket

2008-05-27 Thread Gabriel Bucher
have you had a look at the wicketstuff flickr example integration? https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-flickr/ example is based on wicket 1.2 but it could be an inspiration. shrimpywu wrote: hmm..i don`t know here is the right place to post this question

Re: A question about IHeaderContributor

2008-05-14 Thread Johan Compagner
as long as eelco wants to fix it i dont mind On Wed, May 14, 2008 at 9:59 AM, Gerolf Seitz [EMAIL PROTECTED] wrote: On Wed, May 14, 2008 at 2:33 AM, Eelco Hillenius [EMAIL PROTECTED] wrote: If you think it is a bug, please open a JIRA issue for it. didn't we EOL Wicket 1.2.x?

Re: A question about IHeaderContributor

2008-05-14 Thread Eelco Hillenius
If you think it is a bug, please open a JIRA issue for it. didn't we EOL Wicket 1.2.x? http://martijndashorst.com/blog/2008/03/23/wicket-127-the-last-maintenance-release/ Yeah, I actually meant for Wicket 1.3 and up, because the bug is in there as well. Eelco

Re: A question about IHeaderContributor

2008-05-14 Thread Gerolf Seitz
gotcha, thx On Wed, May 14, 2008 at 6:40 PM, Eelco Hillenius [EMAIL PROTECTED] wrote: If you think it is a bug, please open a JIRA issue for it. didn't we EOL Wicket 1.2.x? http://martijndashorst.com/blog/2008/03/23/wicket-127-the-last-maintenance-release/ Yeah, I actually meant

Re: A question about IHeaderContributor

2008-05-14 Thread nate roe
Well I made a new behavior, extending AbstractBehavior implementing IHeaderContributor. I gave this behavior a reference to the Form that might have errors, and I added the behavior to the Page on which the Form lives. In this case, the behavior's renderHead(...) is called as expected. I'm not

A question about IHeaderContributor

2008-05-13 Thread nate roe
I'm using Wicket 1.2. I have a Form that implements IHeaderContributor. My intent is to use renderHead(Response) to write some JavaScript to the response. The Form is added to the Page. However, renderHead(...) on my Form is never called. Am I using this interface incorrectly? Thanks, Nate

Re: A question about IHeaderContributor

2008-05-13 Thread Eelco Hillenius
On Tue, May 13, 2008 at 5:28 PM, nate roe [EMAIL PROTECTED] wrote: I can try that I suppose. The Javadoc for 1.2 seems to mention Component quite a lot though: http://wicket.sourceforge.net/apidocs/wicket/markup/html/IHeaderContributor.html Right. I guess I just lost track of what was

Re: A question about partial form updates with AJAX

2008-05-09 Thread Johan Compagner
but that wont work ofcourse you are replacing components.. wicket generates then the html on the server with the data it then haves. johan On Thu, May 8, 2008 at 8:04 PM, nate roe [EMAIL PROTECTED] wrote: Hrm. I've only added the AjaxFormComponentUpdatingBehavior to the components that

Re: A question about partial form updates with AJAX

2008-05-08 Thread Maurice Marrink
Can you show us some code? This should work as long as the component models are updated. Maurice On Thu, May 8, 2008 at 1:22 AM, nate roe [EMAIL PROTECTED] wrote: I have a form with several items. About half of the form is wrapped in a named div attached to a WebMarkupContainer. When a

Re: A question about partial form updates with AJAX

2008-05-08 Thread Johan Compagner
are you sure that all the form elements that are in that div that you replace have the AjaxFormComponentUpdatingBehavior attached? On Thu, May 8, 2008 at 1:22 AM, nate roe [EMAIL PROTECTED] wrote: I have a form with several items. About half of the form is wrapped in a named div attached to a

Re: A question about partial form updates with AJAX

2008-05-08 Thread nate roe
Hrm. I've only added the AjaxFormComponentUpdatingBehavior to the components that cause the visibility of other components to change. The idea -- and I'm new to Wicket so it may not have been a very good one -- was to limit server round-trips until a rendering change is required. I'll add the

A question about partial form updates with AJAX

2008-05-07 Thread nate roe
I have a form with several items. About half of the form is wrapped in a named div attached to a WebMarkupContainer. When a drop-down value changes, the div is updated via AJAX, re-rendering that part of the form. However, the components in that part of the form are not updated and so this

Question about IAuthorizationStrategy

2008-05-01 Thread Ned Collyer
this message in context: http://www.nabble.com/Question-about-IAuthorizationStrategy-tp16993036p16993036.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Question about IAuthorizationStrategy

2008-05-01 Thread Igor Vaynberg
in context: http://www.nabble.com/Question-about-IAuthorizationStrategy-tp16993036p16993036.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Question about IAuthorizationStrategy

2008-05-01 Thread Johan Compagner
, isInstantiationAuthorized(component.getClass()) Been driving me crazy - u'd expect this to be called before instantiation. I'm curious because it's probably been done for a good reason. -- View this message in context: http://www.nabble.com/Question-about-IAuthorizationStrategy

Re: Question about IAuthorizationStrategy

2008-05-01 Thread Ned Collyer
Fair point :) I was surprised because it was happening for the HomePage i have, which is only ever referenced by class (in my app), and comes out of the page factory - which you do control. I think you're probably doing the right thing - it would be a nightmare to handle it differently depending

Re: Question about IAuthorizationStrategy

2008-05-01 Thread Jonathan Locke
before instantiation. I'm curious because it's probably been done for a good reason. -- View this message in context: http://www.nabble.com/Question-about-IAuthorizationStrategy-tp16993036p16995059.html Sent from the Wicket - User mailing list archive at Nabble.com

WicketTester in spring, question about springinjection

2008-04-25 Thread Sarkast
-in-spring%2C-question-about-springinjection-tp16895558p16895558.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: WicketTester in spring, question about springinjection

2008-04-25 Thread James Carman
the real code, as it seems strange to modify it so the test can run. Hope that someone could understand what the problem is and help me :-( Thanks in advance, Tom -- View this message in context: http://www.nabble.com/WicketTester-in-spring%2C-question-about-springinjection

Re: WicketTester in spring, question about springinjection

2008-04-25 Thread Daniel Stoch
code, as it seems strange to modify it so the test can run. Hope that someone could understand what the problem is and help me :-( Thanks in advance, Tom -- View this message in context: http://www.nabble.com/WicketTester-in-spring%2C-question-about-springinjection

Re: WicketTester in spring, question about springinjection

2008-04-25 Thread Nino Saturnino Martinez Vazquez Wael
take a look at the wicket blog tutorial: http://cwiki.apache.org/WICKET/blog-tutorial.html Or even better the wicket-persistence-template: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-persistence-template Sarkast wrote: Hello there, I have a question which

Re: WicketTester in spring, question about springinjection

2008-04-25 Thread cwilkes
() { protected void addSpringInitializer() { // don't do anything } }; -- View this message in context: http://www.nabble.com/WicketTester-in-spring%2C-question-about-springinjection-tp16895558p16896589.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: WicketTester in spring, question about springinjection

2008-04-25 Thread Sarkast
Thanks, much more elegant then what I came up with. (novice programmer -.-) -- View this message in context: http://www.nabble.com/WicketTester-in-spring%2C-question-about-springinjection-tp16895558p16896956.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Question about StringResourceLoader

2008-04-23 Thread Ned Collyer
this message in context: http://www.nabble.com/Question-about-StringResourceLoader-tp15888948p16831749.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Question about StringResourceLoader

2008-04-23 Thread Erik van Oosten
That is easy. Use getLocalizer.getString(key, City.class, new Model(obj)). You can not do this in the constructor of your component though. There are 2 workaround: 1) create a model (for example by subclassing AbstractReadOnlyModel), 2) override the method onBeforeRender in your component.

Question about Modal Window

2008-04-14 Thread freak182
Hello, I have a question about modal window. When I click the [x] button in the modal window, two methods were called namely CloseButtonCallback and WindowClosedCallback and when I called window.close(target) only WindowClosedCallback clled.I think this is default behavior. But I want to call

Re: Simple question about alert string

2008-03-17 Thread Timo Rantalaiho
On Tue, 11 Mar 2008, tsuresh wrote: When I click on the next name the output is User selected: Bob. i.e. The first output comes in second click and second ouput comes in third click and so on. My code is as shown below: Where am I missing ? Please help. String username =; Link

Re: Simple question about alert string

2008-03-17 Thread Igor Vaynberg
or even better, it should really be something like this class deleteuserlink extends link { protected void oncomponenttag(tag) { string uname=((user)getmodelobject()).getusername(); tag.put(onclick, return alert('are you sure you want to delete +uname. } } and in your code

Re: Simple question about alert string

2008-03-11 Thread tsuresh
, return alert('User selected: +username + ');)); thanks -- View this message in context: http://www.nabble.com/Simple-question-about-alert-string-tp15950581p15997606.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Simple question about alert string

2008-03-11 Thread tsuresh
(new SimpleAttributeModifier(onclick, return alert('User selected: +username + ');)); thanks I solved it using modal window,but still couldnot do it in popup javascript. -- View this message in context: http://www.nabble.com/Simple-question-about-alert-string-tp15950581p15998027.html

Simple question about alert string

2008-03-10 Thread tsuresh
to append this selectedName after: Are you sure to delete How to append this? thanks -- View this message in context: http://www.nabble.com/Simple-question-about-alert-string-tp15950581p15950581.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Simple question about alert string

2008-03-10 Thread Martijn Dashorst
selectedName = user1; deleteLink.add(new SimpleAttributeModifier(onclick, return confirm('Are you sure to delete?');)); I am not able to append this selectedName after: Are you sure to delete How to append this? thanks -- View this message in context: http://www.nabble.com/Simple-question

Re: Simple question about alert string

2008-03-10 Thread john_wicket
?');)); I am not able to append this selectedName after: Are you sure to delete How to append this? thanks -- View this message in context: http://www.nabble.com/Simple-question-about-alert-string-tp15950581p15950760.html Sent from the Wicket - User mailing list archive at Nabble.com

Question about StringResourceLoader

2008-03-06 Thread Ned Collyer
obvious if this can be achieved with inbuilt wicket objects. I can use the IStringResourceLoader and write something myself, or... perhaps I'm overlooking something. Can someone shed some light please? -- View this message in context: http://www.nabble.com/Question-about-StringResourceLoader

Re: Question About Locale

2008-01-25 Thread Michael Sparer
] - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/Question-About-Locale-tp15076727p15082988.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Question About Locale

2008-01-25 Thread Eelco Hillenius
On Jan 24, 2008 2:33 PM, Steve Thompson [EMAIL PROTECTED] wrote: I have a customer who has requested the ability to view multiple locales on a page. It looks like I can do this fine with Wicket through the use of properties files, Probably combined with overriding getLocale of component for

Re: Question About Locale

2008-01-25 Thread Johan Compagner
you have to program that yourself. that is not somethign wicket or a framework can do On Jan 25, 2008 3:40 PM, Steve Thompson [EMAIL PROTECTED] wrote: On 1/25/08, Michael Sparer [EMAIL PROTECTED] wrote: steve, wicket by default checks the user's locale (i.e. the locale of the session)

Re: Question About Locale

2008-01-25 Thread Steve Thompson
On 1/25/08, Michael Sparer [EMAIL PROTECTED] wrote: steve, wicket by default checks the user's locale (i.e. the locale of the session) and looks for matching files. e.g. if your user accesses Foo.html with the german locale de wicket checks whether there is a Foo_de.html (and/or

Question About Locale

2008-01-24 Thread Steve Thompson
I have a customer who has requested the ability to view multiple locales on a page. It looks like I can do this fine with Wicket through the use of properties files, but what I would like to do is automatically detect which locales there are properties files for. Is this possible, and if so,

Question about wicket:message

2007-12-13 Thread AshleyAbraham
to ignore or somehow escape the colon in the attribute name...and still process it? I tried using slash in front of it and it didn't work...any suggestions, please help. Thanks -- View this message in context: http://www.nabble.com/Question-about-wicket%3Amessage-tp14326982p14326982.html Sent from

Re: Question about wicket:message

2007-12-13 Thread Igor Vaynberg
in front of it and it didn't work...any suggestions, please help. Thanks -- View this message in context: http://www.nabble.com/Question-about-wicket%3Amessage-tp14326982p14326982.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Question about JavaScript validation

2007-11-24 Thread Timo Rantalaiho
On Fri, 23 Nov 2007, Java Programmer wrote: Is there any simple way to generate javascripts to validate forms against validation rules provided by Wicket Validators e.g. RequiredValidator? I have on mind client side validators to check is fields not empty, or provided passwords match. For now

Re: Question about JavaScript validation

2007-11-24 Thread Johan Compagner
I agree that is is nice to have the simple field validation done in javascript on the client side. But this is an add on, the same validation has still to be done on the server anyway. But in the further we could have some validations that also contribute some javascript to the output which does

Re: Question about JavaScript validation

2007-11-24 Thread Java Programmer
Thank you for the answers, I agree that server side validation is more important, from e.g. security reasons, but if you make something we called now Web 2.0 application is nice to have also client side validations scripts. So I can check if login is free to use via Ajax, but checking if password

Question about JavaScript validation

2007-11-23 Thread Java Programmer
Hello, Is there any simple way to generate javascripts to validate forms against validation rules provided by Wicket Validators e.g. RequiredValidator? I have on mind client side validators to check is fields not empty, or provided passwords match. For now I see that Ajax support is great, but

Re: Question about JavaScript validation

2007-11-23 Thread Alex Objelean
: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Question-about-JavaScript-validation-tf4861904.html#a13918947 Sent from the Wicket - User mailing list archive at Nabble.com

Re: question about HybridUrlCodingStrategy

2007-11-13 Thread Sebastiaan van Erk
Turns out I had a listview on the page which was generating new versions of the page. Setting setReuseItems(true) solved the versioning problem. (Which was basically the only real problem I was having). Regards, Sebastiaan Sebastiaan van Erk wrote: Hi, Thanks for the reply! Actually, in

Re: question about HybridUrlCodingStrategy

2007-11-12 Thread Matej Knopp
If the page is stateless, why are you using hybrid url coding strategy for it? You should just mount it. Also, even more important thing, is the page really stateless? Stateless pages don't have versions. Link is not a stateless component so if you use it on a page, it will make it statefull. As

Re: question about HybridUrlCodingStrategy

2007-11-12 Thread Sebastiaan van Erk
Hi, Thanks for the reply! Actually, in some cases the page is not stateless all the time (which is why I use that strategy), i.e. it starts out on a stateless form. Another reason why I use it on non-stateless pages is because the URL looks so much better. ;-) Anyway, I do use Link, so yes

Re: Question about Guice integration with Wicket 1.3 beta 4

2007-11-09 Thread pmularien
/Question-about-Guice-integration-with-Wicket-1.3-beta-4-tf4778901.html#a13671501 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Question about Guice integration with Wicket 1.3 beta 4

2007-11-09 Thread Al Maw
pmularien wrote: Was there a conscious design decision to not use the org.apache.wicket.injection.web.InjectorHolder class (and, by association, have the wicket-guice stuff inherit from ConfigurableInjector)? It would be pretty convenient if the GuiceComponentInjector worked similarly to the

<    1   2   3   4   >