Re: Wicket Model - A very simple question

2007-10-22 Thread Eelco Hillenius
You only need models when you have something to display (and possibly receive) I see..so how would you comment on a component like label (just came across this example) where you still want to display something but can go ahead without the usage of model like add(new Label(message,Hello

Re: Wicket Model - A very simple question

2007-10-22 Thread mfs
makes sense... Thanks . Farhan. mfs wrote: Guys, Would sound like a very naive question, actually still in the process of understand the different concepts in wicket, Wicket Models in this particular case...so my question is Wouldn't the below two statements act exactly the same

Accessing PageMap ?

2007-10-22 Thread mfs
Guys, A quick question.. How would i go about fetching a page (so as to access an attirbute within it e.g. LoginPage with userId in it) which wicket by default stores in pageMap (which in turn is stored in Session). I mean i think it wouldn't be a good idea to store something in a session (even

which component to use to preserve the template html

2007-10-22 Thread Johan Maasing
I have some places where I use components only to modify the tag attributes. As in: div wicket:id=id/div final Label noopComponent = new Label(id, ); noopComponent.add(new AttributeModifier(style... I was just wondering if there is an alternative to using Labels? It works fine but

Re: which component to use to preserve the template html

2007-10-22 Thread Gerolf Seitz
you could use a WebMarkupContainer. Gerolf On 10/22/07, Johan Maasing [EMAIL PROTECTED] wrote: I have some places where I use components only to modify the tag attributes. As in: div wicket:id=id/div final Label noopComponent = new Label(id, ); noopComponent.add(new

Re: Accessing PageMap ?

2007-10-22 Thread Eelco Hillenius
How would i go about fetching a page (so as to access an attirbute within it e.g. LoginPage with userId in it) You don't. Keep pages and components for representing your user interface, and work with regular objects to carry your 'business state'. which wicket by default stores in pageMap

Re: which component to use to preserve the template html

2007-10-22 Thread Johan Maasing
Of course, sometimes it is too simple :-) Thank you. On 10/22/07, Gerolf Seitz [EMAIL PROTECTED] wrote: you could use a WebMarkupContainer. Gerolf On 10/22/07, Johan Maasing [EMAIL PROTECTED] wrote: I have some places where I use components only to modify the tag attributes. As in:

Re: spring acegi injection question

2007-10-22 Thread Michael Sparer
Hi auron, by chance I did the same on friday and it works for me. The only differences to my xml-files I noticed was, as Igor said, the use of the wicket filter instead of the wicket servlet. I.e. !-- tell wicket to retrieve the webapp class from the springwebappfactory to enable DI in

Re: Accessing PageMap ?

2007-10-22 Thread mfs
Eelco Hillenius wrote: How would i go about fetching a page (so as to access an attirbute within it e.g. LoginPage with userId in it) You don't. Keep pages and components for representing your user interface, and work with regular objects to carry your 'business state'. I GET your

Re: Accessing PageMap ?

2007-10-22 Thread Eelco Hillenius
I GET your point, but what about scenarios where one has regular objects (e.g. Person) mapped as a model using CompoundPropertyModel on a page, wouldnt it be reasonable to access/use the same object (which would already be stored in session since its part of the page)..rather than

Re: Weird Ajax non-English characters encoding problem.

2007-10-22 Thread Fabio Fioretti
Hi Matej and Johan, thanks for your replies. I'm using Latin1 because the page I'm talking about is part of a legacy web application fully encoded in ISO-8859-1. The application server it runs on is Tomcat 5.5, which defaults to Latin1, so it shouldn't be a problem. I tried to set the

Re: wicket-contrib-input-events : keyboard shortcuts for wicket

2007-10-22 Thread Eelco Hillenius
Just wanted to tell that the first working release of input events now are in place, although currently only available via wicket stuff svn. You can bind keys to alot of stuff, form submission, ajax events, buttons... The best part its easy;) Just add the behavior and tell which key to use,

Re: Accessing PageMap ?

2007-10-22 Thread Johan Compagner
I GET your point, but what about scenarios where one has regular objects (e.g. Person) mapped as a model using CompoundPropertyModel on a page, wouldnt it be reasonable to access/use the same object (which would already be stored in session since its part of the page)..rather than

Re: Out of order requests

2007-10-22 Thread Johan Compagner
yes and that can't be fixed as easy (in 1.2) Because that would mean that is not an access stack anymore... for example if you have a stack or only 3. And you go back once, do a refresh click on something and then again 2 times back if we wouldn't have the access stack like now page expired would

How to validate wicket FileUploadField?

2007-10-22 Thread Edi
Hello, I have created one FileUploadField upload button. Support I do not select any file, It should be validated. How? I know fileuploadButtonName.setRequired(true); But I did not get any validation messages. How can I add validation message for FileUploadField button? Thanking You -- View

Re: VisitChildren + IComponentResolver broken in beta 4?

2007-10-22 Thread Juha Alatalo
Great! Thanks a lot Matej. When this fix is coming? - Juha Matej Knopp wrote: Well, I believe we can keep the component instance until the end of request and then clean it up in detach, would this help you? (it still wouldn't be the same as before the fix, as the instance was (supposed to be)

Re: How to validate wicket FileUploadField?

2007-10-22 Thread Bruno Borges
I have this custom validator: fileUploadField.add(new IValidator() { public void validate(IValidatable validatable) { String input = (String) validatable.getValue(); if (!luceneService.isSupportedFormat(input))

float value problem?

2007-10-22 Thread Edi
Hello, I have one field name called Maximum value. It's a float value in DB. I have put 1000. This data have stored in DB. When I edit this data, It's looks like 1,000(one comma have added here). How can I avoid this problem? -- View this message in context:

RE: Input Text Mask?

2007-10-22 Thread William Hoover
johan, see https://issues.apache.org/jira/browse/WICKET-1085 -Original Message- From: Johan Compagner [mailto:[EMAIL PROTECTED] Sent: Saturday, October 20, 2007 12:55 PM To: users@wicket.apache.org Subject: Re: Input Text Mask? I think such a thing in extentions would also be nice.

Re: Weird Ajax non-English characters encoding problem.

2007-10-22 Thread Paolo Di Tommaso
I'm experiencing a similar problem i.e. I'm able to submit any Latin encoded characters but when I'm using an AjaxSubmitButton some characters are not encoded properly. This happens also specifying the right encoding with: getRequestCycleSettings().setResponseRequestEncoding(ISO-8859-1); So it

Re: float value problem?

2007-10-22 Thread Johan Compagner
thats the toString representation. Just use another converter for that johan On 10/22/07, Edi [EMAIL PROTECTED] wrote: Hello, I have one field name called Maximum value. It's a float value in DB. I have put 1000. This data have stored in DB. When I edit this data, It's looks like

IndicatingAjaxSubmitLink missing?

2007-10-22 Thread Juha Alatalo
Hi, there is AjaxSubmitLink and IndicatingAjaxLink but not IndicatingAjaxSubmitLink. Are you planning to create one? - Juha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: IndicatingAjaxSubmitLink missing?

2007-10-22 Thread Gerolf Seitz
iirc, AjaxSubmitLink has been marked deprecated in favor of AjaxLink. Gerolf On 10/22/07, Juha Alatalo [EMAIL PROTECTED] wrote: Hi, there is AjaxSubmitLink and IndicatingAjaxLink but not IndicatingAjaxSubmitLink. Are you planning to create one? - Juha

Re: IndicatingAjaxSubmitLink missing?

2007-10-22 Thread Gerolf Seitz
oh sorry, that was AjaxSubmitButton, so forget my first answer. if you look at IndicatingAjaxLink, it's really a matter of a couple of lines to add the Indicating-feature. so you could easily roll your own :) Gerolf On 10/22/07, Gerolf Seitz [EMAIL PROTECTED] wrote: iirc, AjaxSubmitLink

Re: IndicatingAjaxSubmitLink missing?

2007-10-22 Thread Juha Alatalo
That is the case with AjaxSubmitButton and AjaxButton not with the links, is it?. AjaxSubmitLink submits a form AjaxLink does not. - Juha Gerolf Seitz wrote: iirc, AjaxSubmitLink has been marked deprecated in favor of AjaxLink. Gerolf On 10/22/07, Juha Alatalo [EMAIL PROTECTED] wrote:

Re: Wicket and Netbeans 6

2007-10-22 Thread Reinout van Schouwen
Op zaterdag 20-10-2007 om 16:20 uur [tijdzone +0100], schreef Ayodeji Aladejebi: if you are a beginner with both Netbeans and Maven then find one of the wicket plugins for NB6 and install them. they have a quickstart project by default One of the wicket plugins for NB6? As far as I have been

wicketstuff push and sharing an IChannelService

2007-10-22 Thread Michael Sparer
Hi, today I wondered if there's a wicket-approach for pushing messages from the server to the client (also called reverse ajax or pushlets). Well yes, there is one called wicketstuff push. I looked at its examples and soon managed to implement my own pushing stuff. In the examples

Re: wicket-contrib-input-events : keyboard shortcuts for wicket

2007-10-22 Thread Nino Saturnino Martinez Vazquez Wael
Thanks for the kind words:) We needed this on our project, and always a pleasure adding new stuff to wicket:) Im wondering if we(wickeers) would need an integration for a window manager possibly: http://www.vegui.org/ ? Havent checked it enough to see how complex it are and how easy it would

Re: Wicket logo and badges anywhere?

2007-10-22 Thread Nino Saturnino Martinez Vazquez Wael
What about t-shirts, and caps? I have to produce em myself? regards Nino Martijn Dashorst wrote: You should take a look at the maven-site-skin version 1.2 in svn. I think there's one or two badges in the style dir.

Re: Accessing PageMap ?

2007-10-22 Thread mfs
Johan, I am wondering if it would be a good approach to load the User (or any required object) for every request (i beleive you meant to override the newRequestCycle() method and provide impl for WebRequestCycle.onBeginRequest and WebRequestCycle.onEndRequst) and subsequently load/unload the

From Beta 2 To Beta 4 ( getConvertedInput () )

2007-10-22 Thread Francisco Diaz Trepat - gmail
Hi guys, I have the following issue I would like to resolve properly. I have a FormComponentPanel that encompasses a label and a textfield. We used to have the getConvertedInput() overridden int he FormComponentPanel calling the textfield.getConvertedInput(). But now the method is final.

Re: From Beta 2 To Beta 4 ( getConvertedInput () )

2007-10-22 Thread Igor Vaynberg
override convertinput() and inside call setconvertedinput() -igor On 10/22/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hi guys, I have the following issue I would like to resolve properly. I have a FormComponentPanel that encompasses a label and a textfield. We used to have

Re: spring acegi injection question

2007-10-22 Thread Evan Chooly
You can do this: InjectorHolder.getInjector().inject(this); You need to do it in init(), though. The constructor is too early for the injector to be configured. Other than that, you can @SpringBean any bean you want. otherwise spring wouldn't be able to inject the bean - this is

Re: Wicket logo and badges anywhere?

2007-10-22 Thread Gerolf Seitz
i was actually thinking about it too. imagine you can spot wicket users on conferences right away cause they're wearing orange t-shirts with a nice W on it ;) On 10/22/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: What about t-shirts, and caps? I have to produce em myself?

Re: Accessing PageMap ?

2007-10-22 Thread Johan Compagner
if you want to cache it you can cache it in the session But for example hibernate objects that are not attached to the current session can give shitty errors also caching of datatabase objects shouldn't be done in the web layer you should use ehcache for that or something. and you don't have to

Re: From Beta 2 To Beta 4 ( getConvertedInput () )

2007-10-22 Thread Francisco Diaz Trepat - gmail
Great. I would like to learn more about this change. Can I see that in the JIRA or somewhere? I mean, we are speculating here at the office on why this change was made but why speculate if we could know. :-) f(t) On 10/22/07, Igor Vaynberg [EMAIL PROTECTED] wrote: override convertinput()

Re: From Beta 2 To Beta 4 ( getConvertedInput () )

2007-10-22 Thread Martijn Dashorst
Search the archives? Martijn On 10/22/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Great. I would like to learn more about this change. Can I see that in the JIRA or somewhere? I mean, we are speculating here at the office on why this change was made but why speculate if we

Re: Wicket Model - A very simple question

2007-10-22 Thread Johan Compagner
Nope. Typical reasons to use PropertyModels explicitly is when you don't use a CompoundPropertyModel on the parent, or when you want to use IDs that are different from the property expressions you want the model to work on. Also, note that you can use completely different models as well;

Re: From Beta 2 To Beta 4 ( getConvertedInput () )

2007-10-22 Thread Francisco Diaz Trepat - gmail
On nabble? or the JIRA thing. f(t) On 10/22/07, Martijn Dashorst [EMAIL PROTECTED] wrote: Search the archives? Martijn On 10/22/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Great. I would like to learn more about this change. Can I see that in the JIRA or

Re: Wicket Model - A very simple question

2007-10-22 Thread Eelco Hillenius
CompoundPropertyModel cpm = new CompoundPropertyModel (xxx); Form f = new Form(form,cpm); f.add(new TextField(username)); f.add(new TextField(notinmodel, cpm.bind(address)); Yes, that is another alternative to using property model. I didn't mention this since it only complicates things.

Re: wicketstuff push and sharing an IChannelService

2007-10-22 Thread Xavier Hanin
On 10/22/07, Michael Sparer [EMAIL PROTECTED] wrote: Hi, today I wondered if there's a wicket-approach for pushing messages from the server to the client (also called reverse ajax or pushlets). Well yes, there is one called wicketstuff push. I looked at its examples and soon managed to

Re: Wicket Model - A very simple question

2007-10-22 Thread Johan Compagner
complicates? its only a much smaller notation for creating a property model And i think it reads very well. What would be better then something reversed? cpm.bind(textField,address) ? But then you have to first have a reference.to the textfield. We had such a thing in wicket 1.1

Re: Accessing PageMap ?

2007-10-22 Thread mfs
if you want to cache it you can cache it in the session But for example hibernate objects that are not attached to the current session can give shitty errors sorry but I dont completely get your point on hibernate objects not attached to the current session...can you please elaborate..I mean

Re: Wicket Model - A very simple question

2007-10-22 Thread Eelco Hillenius
On 10/22/07, Johan Compagner [EMAIL PROTECTED] wrote: complicates? its only a much smaller notation for creating a property model And i think it reads very well. Yes, but in this particular case it doesn't let people understand better what goes on. What would be better then something

Re: Wicket Model - A very simple question

2007-10-22 Thread Martijn Dashorst
On 10/22/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Of course, you can write a book on in how many other ways you can do the same thing. I thought we already did :P Martijn -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta4 is released Get it now:

Re: Accessing PageMap ?

2007-10-22 Thread Johan Compagner
sorry but I dont completely get your point on hibernate objects not attached to the current session...can you please elaborate..I mean given the context in discussion if lets say i stored hibernate objects in the current session, would that cause any issues..is that what you mean OR ??

Re: Wicket Model - A very simple question

2007-10-22 Thread Johan Compagner
just go back to that chapter and redo it! On 10/22/07, Martijn Dashorst [EMAIL PROTECTED] wrote: On 10/22/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Of course, you can write a book on in how many other ways you can do the same thing. I thought we already did :P Martijn -- Buy

Re: Weird Ajax non-English characters encoding problem.

2007-10-22 Thread Johan Compagner
is this reproduceable in a simple testcase? (junit) johan On 10/22/07, Paolo Di Tommaso [EMAIL PROTECTED] wrote: I'm experiencing a similar problem i.e. I'm able to submit any Latin encoded characters but when I'm using an AjaxSubmitButton some characters are not encoded properly. This

Re: Wicket Model - A very simple question

2007-10-22 Thread Martijn Dashorst
AGAIN? AARGH!!! /me points gun to head On 10/22/07, Johan Compagner [EMAIL PROTECTED] wrote: just go back to that chapter and redo it! On 10/22/07, Martijn Dashorst [EMAIL PROTECTED] wrote: On 10/22/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Of course, you can write a book on

Re: Wicket Model - A very simple question

2007-10-22 Thread mfs
LOL...anyways guys i must say that you are doing a great job on this forum, yet to read your book though.. Farhan. Martijn Dashorst wrote: AGAIN? AARGH!!! /me points gun to head On 10/22/07, Johan Compagner [EMAIL PROTECTED] wrote: just go back to that chapter and redo it!

Re: Wicket Model - A very simple question

2007-10-22 Thread Martijn Dashorst
On 10/22/07, mfs [EMAIL PROTECTED] wrote: LOL...anyways guys i must say that you are doing a great job on this forum, yet to read your book though.. The book is even better. You don't have to listen to Igor and Johan in it :-) Martijn -- Buy Wicket in Action: http://manning.com/dashorst

Re: Wicket Model - A very simple question

2007-10-22 Thread Johan Compagner
and miss all the fun. how boring will the book be i asked my self now. On 10/22/07, Martijn Dashorst [EMAIL PROTECTED] wrote: On 10/22/07, mfs [EMAIL PROTECTED] wrote: LOL...anyways guys i must say that you are doing a great job on this forum, yet to read your book though.. The book is

Re: VisitChildren + IComponentResolver broken in beta 4?

2007-10-22 Thread Johan Compagner
the fix is in. Still i don't get that you depend on an auto add component from another component For example is that auto add component always rendered before that other componenet? How do you exactly use it? And why? johan On 10/22/07, Juha Alatalo [EMAIL PROTECTED] wrote: Great! Thanks a

Re: Wicket Model - A very simple question

2007-10-22 Thread Eelco Hillenius
On 10/22/07, Johan Compagner [EMAIL PROTECTED] wrote: and miss all the fun. how boring will the book be i asked my self now. You mean you didn't start reading it yet?! Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Session timeout

2007-10-22 Thread Johan Compagner
something like ((WebRequest)RequestCycle().getRequest()).getHttpServletRequest().getSession(). getMaxInactiveInterval() johan On 10/20/07, glr [EMAIL PROTECTED] wrote: Hello Can anyone tell me what the desired way is to query the value of the session timeout from within Wicket?

Re: Wicket logo and badges anywhere?

2007-10-22 Thread Eelco Hillenius
On 10/22/07, Gerolf Seitz [EMAIL PROTECTED] wrote: i was actually thinking about it too. imagine you can spot wicket users on conferences right away cause they're wearing orange t-shirts with a nice W on it ;) I'd rather they'd be recognized by not being obvious fan boys (or girls) of a

Wicket applications as indipendent component in a page...

2007-10-22 Thread Vincenzo Vitale
Would it be possible to have more than one application in a single page? It would be great if developers can create independent Wicket applications and then assemble these enhanced components in another phase (maybe based on roles or more complex logic) on the same page. For example an application

Re: Wicket Model - A very simple question

2007-10-22 Thread mfs
yeah...all the knowledge is from the different articles/forums on the web.. Eelco Hillenius wrote: On 10/22/07, Johan Compagner [EMAIL PROTECTED] wrote: and miss all the fun. how boring will the book be i asked my self now. You mean you didn't start reading it yet?! Eelco

Re: Accessing PageMap ?

2007-10-22 Thread mfs
So basically what you are saying is that caching hibernate object in wicket's session can cause issues with hibernate when using the cached object...either in the same request or any subsequent request..right ? I wonder if that has anything to do with wickets session impl, its just would be true

Wicket - Session Manamagement

2007-10-22 Thread mfs
Guys, Given my short research of wicket so far, i am carrying the following assumption about wicket's session management, please correct me if thats not true. - There is NO way for you to store anything in the Session other than to have your own custom WebSession class and define the attributes

Re: Wicket - Session Manamagement

2007-10-22 Thread Eelco Hillenius
- There is NO way for you to store anything in the Session other than to have your own custom WebSession class and define the attributes you would want to maintain... That's the idea. Unlike the typical way of using HttpSession which is basically a hashmap, we provide a pattern that lets you

Re: Wicket - Session Manamagement

2007-10-22 Thread mfs
Thanks..certainly makes sense...just a question on the meta-data facilty though, am just wondering as to how would we be using the same in the context (as you said) where components are not aware of the Session type...if you ilustrate it with an example that would be great, am just trying to

Re: Wicket applications as indipendent component in a page...

2007-10-22 Thread Igor Vaynberg
you can compose pages of multiple panels. a panel is self contained and doesnt depend on application/session subclasses unless you explicitly make it so... -igor On 10/22/07, Vincenzo Vitale [EMAIL PROTECTED] wrote: Would it be possible to have more than one application in a single page? It

Re: Wicket Model - A very simple question

2007-10-22 Thread Igor Vaynberg
must be a pretty serious book, no comic relief at all? no smartass comments? i wont buy it! -igor On 10/22/07, Martijn Dashorst [EMAIL PROTECTED] wrote: On 10/22/07, mfs [EMAIL PROTECTED] wrote: LOL...anyways guys i must say that you are doing a great job on this forum, yet to read your

Reload Captcha Image

2007-10-22 Thread Toscano
Hello, I'm having problems with a Captcha image reloading method, and I'm sure it must be very easy to solve, but I can't!! I have a form with about 10 fields, and at the end one Captcha image using CaptchaImageResource and Image controls. Sometimes it is difficult to read, so I put one link

AjaxFallbackButton resetting validation status of form?

2007-10-22 Thread Mike Comb
I've got a form that is a simple collection of TextFields. I'd like to validate that form through AJAX prior to submission and redraw the TextFields which have a Behavior attached to them that changes the font color if they are invalid. To do that I've added an AjaxFallbackButton that

Newbie question - how to create a Default Data Table with onmouseover row style changes + link per row

2007-10-22 Thread Chris Ainsley
Hi, I'm new to Wicket but can see in principle that it is a very good approach to the clean seperation between the presentation layer and the model/controller layer. That said, I'm having a hard time. I wish to create a simple table that lists the contents of a table in the database. I have

Re: Wicket Model - A very simple question

2007-10-22 Thread Eelco Hillenius
On 10/22/07, Igor Vaynberg [EMAIL PROTECTED] wrote: must be a pretty serious book, no comic relief at all? no smartass comments? i wont buy it! It's not too late for a few quotes of you. Maybe you could write the intro's of the chapters? :-) Eelco

Re: Wicket Model - A very simple question

2007-10-22 Thread Dirk Markert
2007/10/23, Eelco Hillenius [EMAIL PROTECTED]: On 10/22/07, Igor Vaynberg [EMAIL PROTECTED] wrote: must be a pretty serious book, no comic relief at all? no smartass comments? i wont buy it! It's not too late for a few quotes of you. Maybe you could write the intro's of the chapters? :-)

Re: Newbie question - how to create a Default Data Table with onmouseover row style changes + link per row

2007-10-22 Thread Igor Vaynberg
create a subclass of defaultdatatable, override newrowitem to be like this: component newrowitem(...) { return new clickableitem(...) { onclick() { // implement onclick } } } class clickableitem extends item implements iclicklistener { oncomponenttag(tag) {

Re: Wicket Model - A very simple question

2007-10-22 Thread Igor Vaynberg
lol, nice try :) you aint offloading any of this writing fun on me :) -igor On 10/22/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On 10/22/07, Igor Vaynberg [EMAIL PROTECTED] wrote: must be a pretty serious book, no comic relief at all? no smartass comments? i wont buy it! It's not too

Exception Handling

2007-10-22 Thread Suad AlShamsi
Hi All, I am working on a project and I am using wicket 1.3 for the view layer, spring for service layer, and oracle database. As you know there are two types of exception I need to take care of. One is the business logic exception thrown from the service layer and the other one is the