Re: Wicket and Guice / legup / warp persist?

2010-04-28 Thread nino martinez wael
Yes it should work on 1.4.x I believe..

Regarding the method question, I think it has something todo with that
the ldm gets serialized and the dao does not get reloaded on
deserialization.

2010/4/28 Douglas Ferguson doug...@douglasferguson.us:
 Does this work on the 1.4.6 version of wicket?

 D/

 On Apr 26, 2010, at 4:30 AM, nino martinez wael wrote:

 I found out that If I injected in the constructor, when using inmethod
 grid hibernate would complain about a closed session. So solved it as
 the pastebin shows..

 2010/4/26 nino martinez wael nino.martinez.w...@gmail.com:
 I do it like this :

 http://pastebin.com/wcZ8XANh



 public class InjectorHolder {

        private static Injector injector;

        public InjectorHolder() {
        }
       �...@inject
        public static void setInjector(Injector injector) {
                InjectorHolder.injector = injector;
        }

        public static Injector getInjector() {
                return injector;
        }


 }

 2010/4/25 Douglas Ferguson doug...@douglasferguson.us:
 Anybody have tips on the correct way to do this?

 On Apr 24, 2010, at 5:42 PM, Douglas Ferguson wrote:

 I'm curious about how this would work with serialization/deserialization.

 For instance, with a data provider where would you actually put this:

 InjectorHolder.getInjector().inject(this)

 To make sure it gets called at the appropriate times? Is it ok to put it 
 in the constructor of the data provider?

 Sounds like this won't be available until 1.4.8, any idea when that might 
 surface?

 D/

 On Apr 24, 2010, at 5:33 PM, Douglas Ferguson wrote:

 Interesting...

 I've been curious about how to properly use injection in data provider 
 as this does not subclass component.

 Any tips on how to get this to work?

 D/

 On Apr 24, 2010, at 12:32 PM, nino martinez wael wrote:

 BTW if anyone has trouble with this until 1.4.8 comes out then just
 write your own injectorholder class and in your guice module call
 requeststatic injection on that.. Works like a charm..

 2010/4/8 nino martinez wael nino.martinez.w...@gmail.com:
 Ahh typical :) And thanks for the update.

 2010/4/8 Martin Grigorov mcgreg...@e-card.bg:
 The ticket for this is 
 https://issues.apache.org/jira/browse/WICKET-2761
 The fix is applied to 1.4.x at 13/03 by Juergen.
 1.4.7 was released at 03/03.

 So, it will be included in next release - probably 1.4.8.

 On Thu, 2010-04-08 at 11:08 +0200, nino martinez wael wrote:
 Hi

 I revived my old wicket talk yesterday and since we are using guice 
 at
 the company where Im at now the people attending the talk wanted to
 see my examples in guice / wicket instead of spring / wicket. So I
 used the legup archetype. Which worked nicely until I did a ldm which
 I had to inject a dao into. With spring I would add the ldm to the
 component instantiation listener, but if I do it the spring way
 (InjectorHolder.getInjector().inject(this);) I get this error:

 WicketMessage: Can't instantiate page using constructor public
 com.netdesign.blog.ViewPostPage(org.apache.wicket.PageParameters) and
 argument postid = [3]

 Root cause:

 java.lang.IllegalStateException: InjectorHolder has not been assigned
 an injector. Use InjectorHolder.setInjector() to assign an injector.
 In most cases this should be done once inside SpringWebApplication
 subclass's init() method.
 at 
 org.apache.wicket.injection.web.InjectorHolder.getInjector(InjectorHolder.java:70)

 Now there are several things I wonder about, first of all, why are
 spring mentioned at all? Does wicket package DI specific classes in a
 common distribution, and if so should'nt it be called something
 specific towards the targetet DI framework. And second and more
 important how can I achieve the same thing with guice? Or this could
 also be a bug with legup or something. But I actually checked the
 init method and  InjectorHolder.setInjector does not take the guice
 component injector as argument.



 regards Nino

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 

RE: Wicket survey?

2010-04-28 Thread Karolina Rusin

I was able to resolve the issue. 
Survey should work now correctly.

Best regards
Karolina Rusin
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-survey-tp2068318p2068707.html
Sent from the Wicket - User 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



{Spam?} Re: wicketpath is not valid html

2010-04-28 Thread Emond Papegaaij
Our validator is always on in development mode, so that would require 
completely turning off the attribute (which is what I did now), but the 
attribute can be very useful for debugging, so I'm loosing that functionality 
right now. Can't it be a tri-state configuration option 
(ON/SELENIUM_COMPATIBLE/OFF)? Perhaps this can be implemented in wicket 1.5?

On Tuesday 27 April 2010 18:05:48 Igor Vaynberg wrote:
 turn off the attribute before you run your validator.
 
 -igor
 
 On Tue, Apr 27, 2010 at 12:11 AM, Emond Papegaaij
 
 emond.papega...@topicus.nl wrote:
  Hi,
  
  For our project, we use the Wicket Stuff HTML Validator
  (http://github.com/dashorst/wicket-stuff-markup-validator), which informs
  us of invalid HTML upfront. However, with the switch from wicket 1.3 to
  1.4, this validator is giving many errors on the wicketpath attribute.
  
  This attributed used to be named wicket:path, and was renamed to
  wicketpath as part of WICKET-1877, because selenium is having trouble
  using wicket:path. It was opted to make the name configurable, but
  decided that 'we don't need yet another configuration option'. Could
  this please be reconsidered? I like to keep the wicket:path attributes
  in the generated markup, because they can be very handy for debugging,
  but I have to disable them to keep the HTML validator happy.
  
  Best regards,
  Emond Papegaaij
  
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



{Spam?} Re: wicketpath is not valid html

2010-04-28 Thread Emond Papegaaij
I don't like changing the DTD, but I could always add it as a known wicket bug 
to HtmlValidationResponseFilter.

Emond

On Wednesday 28 April 2010 02:12:06 b...@actrix.gen.nz wrote:
 Hi,
 
 You can extend the DTD of the validator to accept the attribute.
 
 !ATTLIST yourtag
   wicketpath  CDATA  #IMPLIED
 
 
 
 Bernard
 
 On Tue, 27 Apr 2010 09:11:37 +0200, you wrote:
 Hi,
 
 For our project, we use the Wicket Stuff HTML Validator
 (http://github.com/dashorst/wicket-stuff-markup-validator), which informs
 us of invalid HTML upfront. However, with the switch from wicket 1.3 to
 1.4, this validator is giving many errors on the wicketpath attribute.
 
 This attributed used to be named wicket:path, and was renamed to
 wicketpath as part of WICKET-1877, because selenium is having trouble
 using wicket:path. It was opted to make the name configurable, but
 decided that 'we don't need yet another configuration option'. Could this
 please be reconsidered? I like to keep the wicket:path attributes in the
 generated markup, because they can be very handy for debugging, but I
 have to disable them to keep the HTML validator happy.
 
 Best regards,
 Emond Papegaaij
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: using selenium

2010-04-28 Thread Joe Fawzy
Hi
any tutorials, how to,or best practice?
thanks
Joe

On Wed, Apr 28, 2010 at 4:15 AM, Jeremy Thomerson jer...@wickettraining.com
 wrote:

 yes - the id path

 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Tue, Apr 27, 2010 at 8:00 PM, Joe Fawzy joewic...@gmail.com wrote:

  Hi dear
  what is wicket:path? do you mean the component id path,like:
  page:panel1:form2:component4
  or it is a library or what
  any samples or pointers please
  thanks
  Joe
 
  On Wed, Apr 28, 2010 at 1:53 AM, Jeremy Thomerson 
  jer...@wickettraining.com
   wrote:
 
   I think most are using wicket:path (which is output in dev mode)
  
  
   Jeremy Thomerson
   http://www.wickettraining.com
   -- sent from a wireless device
  
  
   -Original Message-
   From: Joe Fawzy joewic...@gmail.com
   Sent: Tuesday, April 27, 2010 6:13 PM
   To: users@wicket.apache.org
   Subject: using selenium
  
   Hi all
   i am building an application which use ajax heavily so i have to use
   component.setOutputMarkupId(true)
   this generate unique dom id for the components which changes every time
 i
   load the same page
   when using selenium , specially with its Firefox ide , it depends
 mainly
  on
   the id attribute value and as this is dynamically generated by wicket
 ,it
   cannot work smoothly
  
   i can use xpath, but i then will lose some of the benefits of both
  selenium
   and wicket,
   selenium , i cannot use its code generation capability as it generate
  code
   based on the the id
of wicket(designer friendly markup) as i cannot freely change my
 markup,
   otherwise it will break my tests
  
   what is your experience
  
   thanks in advance
   Joe
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 



type safe field references

2010-04-28 Thread Jesper Tejlgaard Pedersen
Hi all

I am new to Wicket and investigating if usable for our project or not. I
have a minor question related to type safety and the creation of models. It
seems to me, that existing bean models are used by referencing the bean
fields using Strings, e.g.

public PojoStockQuotePage()
{
StockQuote quote = new StockQuote(IBM);
add(new Label(stockIBM, new PropertyModel(quote, quote));
}



I seem to remember, that I've seen an example of a Wicket extension, which
allows me to write type safe field references. Does any one have a clue,
which extension I stumbled into or how to perform type safe references?

Best regards,
Jesper


Re: type safe field references

2010-04-28 Thread Leo . Erlandsson
Hi,

Perhaps this is what you're looking for?
http://code.google.com/p/bindgen-wicket/

add(new Label(state, new PropertyModel(person, address.state.code)));
becomes
add(new Label(state, new PropertyModel(person, new 
PersonBinding().address().state().code().getPath(;

Type safe and refactor safe.

// Leo


Hi all

I am new to Wicket and investigating if usable for our project or not. I
have a minor question related to type safety and the creation of models. 
It
seems to me, that existing bean models are used by referencing the bean
fields using Strings, e.g.

public PojoStockQuotePage()
{
StockQuote quote = new StockQuote(IBM);
add(new Label(stockIBM, new PropertyModel(quote, quote));
}

I seem to remember, that I've seen an example of a Wicket extension, 
which
allows me to write type safe field references. Does any one have a clue,
which extension I stumbled into or how to perform type safe references?




Re: inmethod grid / Delete/add a row?

2010-04-28 Thread Swanthe Lindgren
The row model is probably easily accessible from your proposed delete 
column, but I don't know how to rerender a single row.


//Swanthe

On 2010-04-27 17:48, nino martinez wael wrote:

True... I am in the process of doing my own delete column, and expect
to have it working by tomorrow. I just need to be able to mark the
item dirty, somehow I either use the wrong model or the grid does not
pick it up. On either account it does not remove the delete row until
a manual refresh as is now.

regards Nino

2010/4/27 Swanthe Lindgrenswanthe.lindg...@megasol.se:
   

That is a part of the inmethod grid I find very hard, as its based solely on
a list of models. I haven't even found a way to know which row is selected,
even less which row is next to the selected row, which can be very useful
information when you wish to insert a row or select the row before/after the
row you just removed.

//Swanthe

On 2010-04-26 16:00, nino martinez wael wrote:
 

Hi

Are there any built in functionality to delete or add rows with
inmethod grid? Or should I just roll my own?

regards Nino

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



   


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


 

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


   



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket + security, what are the best options? Spring Security reached almost all the way...

2010-04-28 Thread Jimi

Thanks for the link. I've already looked at that page and besides the fact
that alot of the xml/code is missing in the beginning (like web.xml) I was
shocked by the amount of boilerplate code needed to get the wicket side
working.

That tells me that either 
1) people actually copy-paste all this boilerplate code and maybe do minor
modifications for their project
2) people use this code as a guide, and write a lot of the implementation
them selfs
3) there is some easier (but undocumented) way to use wicket auth-roles (or
WASP/SWARM or wicket-shiro), with way less boilerplate code needed. Maybe .
4) people use some other framework

1 and 2 seems just plain wrong, the way I see it. If 3 or 4 is the case I
would love to hear about it from someone.

/Jimi

 You can use Spring security with wicket auth-roles, I works out pretty
 nice
 compared to the alternatives.  iirc You need do your normal Spring
 setup, extend AuthenticatedWicketApplication, and AuthenticatedSession
  which has an authenticate method you'll call your UserDetails bean from.
 
 Outdated Link
 https://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html#SpringSecurityandWicket-auth-roles-ExampleWicket1.3.5

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-security-what-are-the-best-options-Spring-Security-reached-almost-all-the-way-tp2068415p2068908.html
Sent from the Wicket - User 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



Re: Wicket + security, what are the best options? Spring Security reached almost all the way...

2010-04-28 Thread Giovanni
James, can you share your SpringSecurityWebApplication and 
SpringSecurityWebSession
classes?

If you also write a  small tutorial on how to use them, it will be great.

Best regards,
giovanni






From: James Carman jcar...@carmanconsulting.com
To: users@wicket.apache.org
Sent: Wed, April 28, 2010 1:51:57 AM
Subject: Re: Wicket + security, what are the best options? Spring Security  
reached almost all the way...

I have a SpringSecurityWebApplication and SpringSecurityWebSession
class you can use if you want.

On Tue, Apr 27, 2010 at 7:49 PM, Ben Tilford bentilf...@gmail.com wrote:
 You can use Spring security with wicket auth-roles, I works out pretty nice
 compared to the alternatives.  iirc You need do your normal Spring
 setup, extend AuthenticatedWicketApplication, and AuthenticatedSession
  which has an authenticate method you'll call your UserDetails bean from.

 Outdated Link
 https://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html#SpringSecurityandWicket-auth-roles-ExampleWicket1.3.5


 On Tue, Apr 27, 2010 at 7:20 PM, Jimi jimi.hulleg...@mogul.com wrote:


 Hi,

 I'm curious to know what security frameworks you guys are using.

 The reason I'm asking is because I recently tried out Spring Security
 together with a simple wicket web application, and was amazed on how easy
 it
 was. I applied the steps mentioned in their Pet Clinic tutorial
 (
 http://static.springsource.org/spring-security/site/petclinic-tutorial.html
 )
 more or less exactly as they are, and I didn't have to write a single line
 of code. All was done using configuration. And even when I replaced the
 hard
 coded list of users (with their passwords and groups) with my custom
 authentication provider (or actually custom UserDetailsService) I only had
 two write two simple classes that implemented two very simple and logical
 interfaces respectively, that used my pre existing hibernate configuration
 and POJOs.

 BUT... when I wanted to replace the auto generated login screen (which
 worked great, but just didn't look very appealing) with a custom login page
 I quickly ran into trouble. If the login was successful then all was fine.
 But for the cases when the login failed for some reason (like incorrect
 username/password or database being down) I was having problems accessing
 the error cause. Because as far as I could tell this message (actually an
 Exception subclass) was only available as a http session attribute. And it
 seems that Wicket does everything to hide those from the user, discourages
 the use of the getHttpServletRequest() and the session attributes of the
 wicket session object only seems to include attributes with a specific
 wicket-prefix (like wicket:wicket.myProject:) which of course caused my
 precious Spring Security session attributes to be unavailable.

 It was then I started thinking that Spring Security maybe isn't the best
 security framework together with Wicket. So I started looking around for
 other alternatives. Wicket-security/WASP/SWARM (still not sure what is
 what)
 and wicket auth roles where the first two, and some time later I also
 heard about wicket-shiro.

 But all these three seemed to have one or more of the following down sides
 that irritated me when I evaluated them:

 1. Missing official site. [wicket auth roles] At least I can't find it.

 2. Seems old. [wicket auth roles + WASP/SWARM] Found a two year old
 discussion labeled is wicket-auth-roles discontinued?. And the comments
 on
 the Getting started with Swarm wiki page is from 2007 and 2008, plus that
 they talk about Acegi (the old name for Spring Security) and the project
 has
 dependencies to Wicket 1.3 and Spring 2.0.

 3. Doesn't seem stable. [wicket-shiro] No maven repository (you have to
 check out trunk and build yourself) and has three different SNAPSHOT
 dependencies.

 4. Seems to require a lot of different project specific java classes. [all
 three].


 The last point, number 4, is a really big down side if you ask me. Keep in
 mind that I was able to integrate Spring Security almost completely in my
 wicket web application with very little new java code needed. And that is a
 good thing, because project specific code is of course much less tested and
 tried compared to official stable code of reputable frameworks. Plus that I
 don't have to reinvent the wheel, considering the simple authentication and
 authorization demands of my project. The only thing stopping me was this
 stupid error message in the unavailable http session attribute.

 I actually started converting my project into a WASP/SWARM project, using
 the example project from

 http://out-println.blogspot.com/2009/02/wicket-swarm-spring-security-how-to.html
 ,
 but after creating class after class after class of in-my-eyes boilerplate
 code I got the overwhelming feeling that I was making my project more and
 more dirty. And, more importantly, I got the feeling that this shouldn't be
 so complicated. 

Re: Wicket + security, what are the best options? Spring Security reached almost all the way...

2010-04-28 Thread Jimi

Thanks for that kind suggestion, but I already have working
SecurityWebApplication and SecurityWebSession implementations. And my
problem was never a lack of code examples, but instead my problem was the
need for so much boilerplate code in the first place. I get the feeling most
of this code can be exactly the same for a lot of projects, and then it
would be logical to have a shared base for all these projects, maybe as a
part of SWARM/WASP, or wicket auth roles or wicket-shiro.

Regards
/Jimi

 I have a SpringSecurityWebApplication and SpringSecurityWebSession
 class you can use if you want.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-security-what-are-the-best-options-Spring-Security-reached-almost-all-the-way-tp2068415p2068916.html
Sent from the Wicket - User 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



Wizards, urls parameters

2010-04-28 Thread Rommert de Bruijn

Hi all,

I'm maintaining a web application that's mostly based on wizard steps. 
My question is about the way the wizard modifies the urls.


I realize that once I've entered the wizard flow, my url's are modified 
by wicket to look like [url]/?wicket:interface=:1. I've read earlier 
posts on wizards  urls, and I agree that a wizard step should not (and 
probably can not) be a bookmarkable page. But is it possible to add 
parameters to the url modified by wicket?


What I would like to accomplish (mainly for farming statistics about the 
visited steps) is to have an identifier of the current step be displayed 
in the url. So when I'm at step 3 I'd like to see the wicket-formatted 
[url]/?wicket:interface=:1, but with an additional parameter 
stepIdentifier=3, resulting in something like 
[url]/?wicket:interface=:1stepIdentifier=3. That way -I hope- a 
tool like Google Analytics can show me the number of visits for each step.


Is it possible to add parameters to a wicket-generated url? I've set up 
a simple POC with the StaticWizard from WizardExamples but once I'm in 
the wizard flow I do not have any control over the url, it seems.


Thanks in advance,
Rommert

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket + security, what are the best options? Spring Security reached almost all the way...

2010-04-28 Thread Reinout van Schouwen
Op dinsdag 27-04-2010 om 16:20 uur [tijdzone -0700], schreef Jimi:

 2. Seems old. [wicket auth roles + WASP/SWARM] Found a two year old
 discussion labeled is wicket-auth-roles discontinued?. And the comments on
 the Getting started with Swarm wiki page is from 2007 and 2008, plus that
 they talk about Acegi (the old name for Spring Security) and the project has
 dependencies to Wicket 1.3 and Spring 2.0.

This lives on as a wicket-stuff subproject. 
Just yesterday a new version, 1.4rc1 was announced on this list:

http://apache-wicket.1842946.n4.nabble.com/announce-Wicket-Security-1-4-rc1-released-tt2067350.html#a2067350

regards,

-- 
Reinout van Schouwen


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: using selenium

2010-04-28 Thread Kent Tong

Hi Joe,

Take a look at http://wicketpagetest.sourceforge.net which allows you to
locate an html element
with something like wicket=//myTextField

--
Kent Tong
Case studies on ITIL, Linux, OpenOffice and Extreme Programming at
http://www2.cpttm.org.mo/cyberlab

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Extract DNS web-url from Wicket request

2010-04-28 Thread allgo

Hi all,
I am trying to find a solution to the following situation -
We have a server architecture where, all requests to say the url
https://my-server-one.com
first hits a Apache webserver in the front end. Apache then uses Mod-proxy
to forward the request over a firewall to our internal server where a 
Wicket 1.3.7 application hosted in Jboss. say that server has an IP
192.168.100.100.
What mod proxy in apache does is it redirects any request it gets for
https://my-server-one.com to 192.168.100.100 over the default port 80.
Now from within my application I am trying to retrieve the Http request
object and try to extract out the actual DNS name i.e. my-server-one.com.
However didnt have much success with it.
Is it at all possible to do so? Or after a Apache redirect the request
object actually loses the actual DNS url that the client had actually hit on
the browser.
Have tried getPath(), get Url() etc standard metods on the getRequest()
object.. but in vain.

Any one tried that before?

The reason is we want to host 2 urls
https://my-server-one.com
and 
https://my-server-two.com

and both should point to same internal application on 192.168.100.100. Now
teh application should be intelligent enough to load different CSS files
based on which url was tried.

Please help and oblige.

Thanks in advance!
Allgo
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Extract-DNS-web-url-from-Wicket-request-tp2068948p2068948.html
Sent from the Wicket - User 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



Notice: PDF Creator toolbar causes modal window onShow redirect

2010-04-28 Thread Martin Asenov
Hello everyone!

I noticed that the PDF Creator toolbar, installed on the browser, causes 
ModalWindows to get closed and the page to be immediately redirected to some 
other page (usually a search engine page).

Please advice...

Best,
Martin




Modal window and panels replacement

2010-04-28 Thread Ivan Dudko
Hi all,

I am trying to replace panels in modal window.
I have two panels:
1) with datatable and link to second panel
2) with edit form and link to datatable

Each panel have a feedback.

For the first panel all is fine.
But when i am replace first panel with second i see this difference through
ajax-debug:

script type=text/javascript
src=resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js/script
link rel=stylesheet type=text/css
href=resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.css
/

Modal is versioned. And when i close it with displayed second panel and open
again then all is fine with second panel, until i replace it.


Please help.

Thanks in advance!
Allgo


Re: Modal window and panels replacement

2010-04-28 Thread Ernesto Reinaldo Barreiro
I do not understand well what is you problem...  Do you want to change
Modal contents without reloading whole Modal via AJAX?

Ernesto

On Wed, Apr 28, 2010 at 1:17 PM, Ivan Dudko ivan.du...@gmail.com wrote:
 Hi all,

 I am trying to replace panels in modal window.
 I have two panels:
 1) with datatable and link to second panel
 2) with edit form and link to datatable

 Each panel have a feedback.

 For the first panel all is fine.
 But when i am replace first panel with second i see this difference through
 ajax-debug:

 script type=text/javascript
 src=resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js/script
 link rel=stylesheet type=text/css
 href=resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.css
 /

 Modal is versioned. And when i close it with displayed second panel and open
 again then all is fine with second panel, until i replace it.


 Please help.

 Thanks in advance!
 Allgo


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: inmethod grid / Delete/add a row?

2010-04-28 Thread Thierry Peng

Hello

I solved this problem some months ago and created a 
SubmitCancelDeleteColumn. A custom Grid Class provides the possibility 
to add a row.

I had to fork the inmethod-grid because some changes were necessary.
Drop me an email if you want the source code of this fork and the client 
code.


greetings


Swanthe Lindgren schrieb:
The row model is probably easily accessible from your proposed delete 
column, but I don't know how to rerender a single row.


//Swanthe

On 2010-04-27 17:48, nino martinez wael wrote:

True... I am in the process of doing my own delete column, and expect
to have it working by tomorrow. I just need to be able to mark the
item dirty, somehow I either use the wrong model or the grid does not
pick it up. On either account it does not remove the delete row until
a manual refresh as is now.

regards Nino

2010/4/27 Swanthe Lindgrenswanthe.lindg...@megasol.se:
  
That is a part of the inmethod grid I find very hard, as its based 
solely on
a list of models. I haven't even found a way to know which row is 
selected,
even less which row is next to the selected row, which can be very 
useful
information when you wish to insert a row or select the row 
before/after the

row you just removed.

//Swanthe

On 2010-04-26 16:00, nino martinez wael wrote:


Hi

Are there any built in functionality to delete or add rows with
inmethod grid? Or should I just roll my own?

regards Nino

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



   


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


 

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


   



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Extract DNS web-url from Wicket request

2010-04-28 Thread allgo

Got the solution..

log.info(x-forwarded-host  
-+getWebRequestCycle().getWebRequest().getHttpServletRequest().getHeader(x-forwarded-host));

if(getWebRequestCycle().getWebRequest().getHttpServletRequest().getHeader(x-forwarded-host).equals(my-server-one)){
add(HeaderContributor.forCss(ApplicationBasePage.class,
ServerOneApplication.css));
}

x-forwarded-host Header actually contains that information.

Thanks guys. Hopefully it will help someone later
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Extract-DNS-web-url-from-Wicket-request-tp2068948p2069072.html
Sent from the Wicket - User 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



Re: Modal window and panels replacement

2010-04-28 Thread Sven Meier

See ModalWindow javadoc:

If you want to use form in modal window component make sure that you put
the modal window itself in another form ...
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Modal-window-and-panels-replacement-tp2068998p2069096.html
Sent from the Wicket - User 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



Re: Modal window and panels replacement

2010-04-28 Thread Ivan Dudko
Thank you a lot, Sven, for notice.
Now all works!

2010/4/28 Sven Meier s...@meiers.net


 See ModalWindow javadoc:

 If you want to use form in modal window component make sure that you put
 the modal window itself in another form ...
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Modal-window-and-panels-replacement-tp2068998p2069096.html
 Sent from the Wicket - User 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




Re: Wicket + security, what are the best options? Spring Security reached almost all the way...

2010-04-28 Thread James Carman
Those two classes are here:

http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/common/security/

They're part of my advanced wicket demo code.  The project already
has them set up and working, so you can look there for a tutorial.

On Wed, Apr 28, 2010 at 6:18 AM, Giovanni pino_o...@yahoo.com wrote:
 James, can you share your SpringSecurityWebApplication and 
 SpringSecurityWebSession
 classes?

 If you also write a  small tutorial on how to use them, it will be great.

 Best regards,
 giovanni





 
 From: James Carman jcar...@carmanconsulting.com
 To: users@wicket.apache.org
 Sent: Wed, April 28, 2010 1:51:57 AM
 Subject: Re: Wicket + security, what are the best options? Spring Security  
 reached almost all the way...

 I have a SpringSecurityWebApplication and SpringSecurityWebSession
 class you can use if you want.

 On Tue, Apr 27, 2010 at 7:49 PM, Ben Tilford bentilf...@gmail.com wrote:
 You can use Spring security with wicket auth-roles, I works out pretty nice
 compared to the alternatives.  iirc You need do your normal Spring
 setup, extend AuthenticatedWicketApplication, and AuthenticatedSession
  which has an authenticate method you'll call your UserDetails bean from.

 Outdated Link
 https://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html#SpringSecurityandWicket-auth-roles-ExampleWicket1.3.5


 On Tue, Apr 27, 2010 at 7:20 PM, Jimi jimi.hulleg...@mogul.com wrote:


 Hi,

 I'm curious to know what security frameworks you guys are using.

 The reason I'm asking is because I recently tried out Spring Security
 together with a simple wicket web application, and was amazed on how easy
 it
 was. I applied the steps mentioned in their Pet Clinic tutorial
 (
 http://static.springsource.org/spring-security/site/petclinic-tutorial.html
 )
 more or less exactly as they are, and I didn't have to write a single line
 of code. All was done using configuration. And even when I replaced the
 hard
 coded list of users (with their passwords and groups) with my custom
 authentication provider (or actually custom UserDetailsService) I only had
 two write two simple classes that implemented two very simple and logical
 interfaces respectively, that used my pre existing hibernate configuration
 and POJOs.

 BUT... when I wanted to replace the auto generated login screen (which
 worked great, but just didn't look very appealing) with a custom login page
 I quickly ran into trouble. If the login was successful then all was fine.
 But for the cases when the login failed for some reason (like incorrect
 username/password or database being down) I was having problems accessing
 the error cause. Because as far as I could tell this message (actually an
 Exception subclass) was only available as a http session attribute. And it
 seems that Wicket does everything to hide those from the user, discourages
 the use of the getHttpServletRequest() and the session attributes of the
 wicket session object only seems to include attributes with a specific
 wicket-prefix (like wicket:wicket.myProject:) which of course caused my
 precious Spring Security session attributes to be unavailable.

 It was then I started thinking that Spring Security maybe isn't the best
 security framework together with Wicket. So I started looking around for
 other alternatives. Wicket-security/WASP/SWARM (still not sure what is
 what)
 and wicket auth roles where the first two, and some time later I also
 heard about wicket-shiro.

 But all these three seemed to have one or more of the following down sides
 that irritated me when I evaluated them:

 1. Missing official site. [wicket auth roles] At least I can't find it.

 2. Seems old. [wicket auth roles + WASP/SWARM] Found a two year old
 discussion labeled is wicket-auth-roles discontinued?. And the comments
 on
 the Getting started with Swarm wiki page is from 2007 and 2008, plus that
 they talk about Acegi (the old name for Spring Security) and the project
 has
 dependencies to Wicket 1.3 and Spring 2.0.

 3. Doesn't seem stable. [wicket-shiro] No maven repository (you have to
 check out trunk and build yourself) and has three different SNAPSHOT
 dependencies.

 4. Seems to require a lot of different project specific java classes. [all
 three].


 The last point, number 4, is a really big down side if you ask me. Keep in
 mind that I was able to integrate Spring Security almost completely in my
 wicket web application with very little new java code needed. And that is a
 good thing, because project specific code is of course much less tested and
 tried compared to official stable code of reputable frameworks. Plus that I
 don't have to reinvent the wheel, considering the simple authentication and
 authorization demands of my project. The only thing stopping me was this
 stupid error message in the unavailable http session attribute.

 I actually started converting my project into a 

Re: Wicket + security, what are the best options? Spring Security reached almost all the way...

2010-04-28 Thread James Carman
Those two classes are here:

http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/common/security/

They're part of my advanced wicket demo code.  The project already h

On Wed, Apr 28, 2010 at 6:18 AM, Giovanni pino_o...@yahoo.com wrote:
 James, can you share your SpringSecurityWebApplication and 
 SpringSecurityWebSession
 classes?

 If you also write a  small tutorial on how to use them, it will be great.

 Best regards,
 giovanni





 
 From: James Carman jcar...@carmanconsulting.com
 To: users@wicket.apache.org
 Sent: Wed, April 28, 2010 1:51:57 AM
 Subject: Re: Wicket + security, what are the best options? Spring Security  
 reached almost all the way...

 I have a SpringSecurityWebApplication and SpringSecurityWebSession
 class you can use if you want.

 On Tue, Apr 27, 2010 at 7:49 PM, Ben Tilford bentilf...@gmail.com wrote:
 You can use Spring security with wicket auth-roles, I works out pretty nice
 compared to the alternatives.  iirc You need do your normal Spring
 setup, extend AuthenticatedWicketApplication, and AuthenticatedSession
  which has an authenticate method you'll call your UserDetails bean from.

 Outdated Link
 https://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html#SpringSecurityandWicket-auth-roles-ExampleWicket1.3.5


 On Tue, Apr 27, 2010 at 7:20 PM, Jimi jimi.hulleg...@mogul.com wrote:


 Hi,

 I'm curious to know what security frameworks you guys are using.

 The reason I'm asking is because I recently tried out Spring Security
 together with a simple wicket web application, and was amazed on how easy
 it
 was. I applied the steps mentioned in their Pet Clinic tutorial
 (
 http://static.springsource.org/spring-security/site/petclinic-tutorial.html
 )
 more or less exactly as they are, and I didn't have to write a single line
 of code. All was done using configuration. And even when I replaced the
 hard
 coded list of users (with their passwords and groups) with my custom
 authentication provider (or actually custom UserDetailsService) I only had
 two write two simple classes that implemented two very simple and logical
 interfaces respectively, that used my pre existing hibernate configuration
 and POJOs.

 BUT... when I wanted to replace the auto generated login screen (which
 worked great, but just didn't look very appealing) with a custom login page
 I quickly ran into trouble. If the login was successful then all was fine.
 But for the cases when the login failed for some reason (like incorrect
 username/password or database being down) I was having problems accessing
 the error cause. Because as far as I could tell this message (actually an
 Exception subclass) was only available as a http session attribute. And it
 seems that Wicket does everything to hide those from the user, discourages
 the use of the getHttpServletRequest() and the session attributes of the
 wicket session object only seems to include attributes with a specific
 wicket-prefix (like wicket:wicket.myProject:) which of course caused my
 precious Spring Security session attributes to be unavailable.

 It was then I started thinking that Spring Security maybe isn't the best
 security framework together with Wicket. So I started looking around for
 other alternatives. Wicket-security/WASP/SWARM (still not sure what is
 what)
 and wicket auth roles where the first two, and some time later I also
 heard about wicket-shiro.

 But all these three seemed to have one or more of the following down sides
 that irritated me when I evaluated them:

 1. Missing official site. [wicket auth roles] At least I can't find it.

 2. Seems old. [wicket auth roles + WASP/SWARM] Found a two year old
 discussion labeled is wicket-auth-roles discontinued?. And the comments
 on
 the Getting started with Swarm wiki page is from 2007 and 2008, plus that
 they talk about Acegi (the old name for Spring Security) and the project
 has
 dependencies to Wicket 1.3 and Spring 2.0.

 3. Doesn't seem stable. [wicket-shiro] No maven repository (you have to
 check out trunk and build yourself) and has three different SNAPSHOT
 dependencies.

 4. Seems to require a lot of different project specific java classes. [all
 three].


 The last point, number 4, is a really big down side if you ask me. Keep in
 mind that I was able to integrate Spring Security almost completely in my
 wicket web application with very little new java code needed. And that is a
 good thing, because project specific code is of course much less tested and
 tried compared to official stable code of reputable frameworks. Plus that I
 don't have to reinvent the wheel, considering the simple authentication and
 authorization demands of my project. The only thing stopping me was this
 stupid error message in the unavailable http session attribute.

 I actually started converting my project into a WASP/SWARM project, using
 the example project from

 

Re: Wicket + security, what are the best options? Spring Security reached almost all the way...

2010-04-28 Thread Jimi

Reinout wrote:
 Op dinsdag 27-04-2010 om 16:20 uur [tijdzone -0700], schreef Jimi:
 
  2. Seems old. [wicket auth roles + WASP/SWARM] Found a two year old
  discussion labeled is wicket-auth-roles discontinued?. And the
 comments on
  the Getting started with Swarm wiki page is from 2007 and 2008, plus
 that
  they talk about Acegi (the old name for Spring Security) and the project
 has
  dependencies to Wicket 1.3 and Spring 2.0.
 
 This lives on as a wicket-stuff subproject. 
 Just yesterday a new version, 1.4rc1 was announced on this list:
 
 http://apache-wicket.1842946.n4.nabble.com/announce-Wicket-Security-1-4-rc1-released-tt2067350.html#a2067350

Interesting... I looked for postings about wicket security in this mailing
list before that posting, during Monday, and when I wrote my posting
yesterday I didn't think to look again to see if any more security related
postings had come in. But apparently it had... =)

Now I also found this posting about Wicket Security:

http://apache-wicket.1842946.n4.nabble.com/Future-of-Wicket-Security-WASP-SWARM-tt1908153.html#a1908153

And I tend to agree with the last post, by Antoine. Wicketstuff feels a bit
like a playground, with production ready projects mixed with crude
copy-paste-example projects.

By the way, isn't
http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security the
official web site for it? Because it doesn't mention 1.4rc1

Regards
/Jimi
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-security-what-are-the-best-options-Spring-Security-reached-almost-all-the-way-tp2068415p2069145.html
Sent from the Wicket - User 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



Re: Wicket + security, what are the best options? Spring Security reached almost all the way...

2010-04-28 Thread Martijn Dashorst
Confluence and JIRA for Wicket Stuff have been down since the JIRA
attacks. I've enabled service to Confluence as I didn't see any files
that were tampered with, nor was there any indication that it had been
compromised in other installations.

Confluence hasn't been updated with the release status because of this.

That said, we (the current Wicket Security maintainers) are 90% sure
that we'll move Wicket Security over to github, and host the
documentation there.

Martijn

On Wed, Apr 28, 2010 at 3:11 PM, Jimi jimi.hulleg...@mogul.com wrote:

 Reinout wrote:
 Op dinsdag 27-04-2010 om 16:20 uur [tijdzone -0700], schreef Jimi:

  2. Seems old. [wicket auth roles + WASP/SWARM] Found a two year old
  discussion labeled is wicket-auth-roles discontinued?. And the
 comments on
  the Getting started with Swarm wiki page is from 2007 and 2008, plus
 that
  they talk about Acegi (the old name for Spring Security) and the project
 has
  dependencies to Wicket 1.3 and Spring 2.0.

 This lives on as a wicket-stuff subproject.
 Just yesterday a new version, 1.4rc1 was announced on this list:

 http://apache-wicket.1842946.n4.nabble.com/announce-Wicket-Security-1-4-rc1-released-tt2067350.html#a2067350

 Interesting... I looked for postings about wicket security in this mailing
 list before that posting, during Monday, and when I wrote my posting
 yesterday I didn't think to look again to see if any more security related
 postings had come in. But apparently it had... =)

 Now I also found this posting about Wicket Security:

 http://apache-wicket.1842946.n4.nabble.com/Future-of-Wicket-Security-WASP-SWARM-tt1908153.html#a1908153

 And I tend to agree with the last post, by Antoine. Wicketstuff feels a bit
 like a playground, with production ready projects mixed with crude
 copy-paste-example projects.

 By the way, isn't
 http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security the
 official web site for it? Because it doesn't mention 1.4rc1

 Regards
 /Jimi
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Wicket-security-what-are-the-best-options-Spring-Security-reached-almost-all-the-way-tp2068415p2069145.html
 Sent from the Wicket - User 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





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.7

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: YUI 3 anyone?

2010-04-28 Thread Fernando Wermus
+1

On Tue, Apr 27, 2010 at 8:02 PM, Joe Fawzy joewic...@gmail.com wrote:

 Hi
 i hope the dev team to consider jQuery , it seams it is the standard now ,
 used by all the big companies , even microsoft
 and although YUI is great, Yahoo has its own problem these days and we
 cannot consider the commited to the lib, they dropped support for many of
 their products and abandond many projects in the last 2 years

 this is my opinion only, u may make a vote or poll or something , or just
 pick YUI
 thanks
 Joe
 On Tue, Apr 27, 2010 at 6:13 PM, Jeremy Thomerson 
 jer...@wickettraining.com
  wrote:

  Yes, it's experimental, and it is not 100% decided that YUI will be used.
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
  On Mon, Apr 26, 2010 at 6:03 AM, Ernesto Reinaldo Barreiro 
  reier...@gmail.com wrote:
 
   Isn't this an experimental branch?
  
   Ernesto
  
   On Mon, Apr 26, 2010 at 12:34 PM, danisevsky danisev...@gmail.com
  wrote:
I think wicket 1.5 will use YUI 3. You can look to svn:
   
  
 
 http://svn.apache.org/repos/asf/wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/_wicket/ajax/
   
   
2010/4/26 Istvan Soos istvan.s...@gmail.com
   
Hi,
   
Is there a cool best-practice or even better an integration library
 to
use YUI 3? I know the standard generic way, I'm interested
specifically in YUI 3...
   
Thanks,
  Istvan
   
   
 -
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
   
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 




-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: YUI 3 anyone?

2010-04-28 Thread Fernando Wermus
+1 Jquery I mean

On Wed, Apr 28, 2010 at 10:34 AM, Fernando Wermus fernando.wer...@gmail.com
 wrote:

 +1


 On Tue, Apr 27, 2010 at 8:02 PM, Joe Fawzy joewic...@gmail.com wrote:

 Hi
 i hope the dev team to consider jQuery , it seams it is the standard now ,
 used by all the big companies , even microsoft
 and although YUI is great, Yahoo has its own problem these days and we
 cannot consider the commited to the lib, they dropped support for many of
 their products and abandond many projects in the last 2 years

 this is my opinion only, u may make a vote or poll or something , or just
 pick YUI
 thanks
 Joe
 On Tue, Apr 27, 2010 at 6:13 PM, Jeremy Thomerson 
 jer...@wickettraining.com
  wrote:

  Yes, it's experimental, and it is not 100% decided that YUI will be
 used.
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
  On Mon, Apr 26, 2010 at 6:03 AM, Ernesto Reinaldo Barreiro 
  reier...@gmail.com wrote:
 
   Isn't this an experimental branch?
  
   Ernesto
  
   On Mon, Apr 26, 2010 at 12:34 PM, danisevsky danisev...@gmail.com
  wrote:
I think wicket 1.5 will use YUI 3. You can look to svn:
   
  
 
 http://svn.apache.org/repos/asf/wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/_wicket/ajax/
   
   
2010/4/26 Istvan Soos istvan.s...@gmail.com
   
Hi,
   
Is there a cool best-practice or even better an integration library
 to
use YUI 3? I know the standard generic way, I'm interested
specifically in YUI 3...
   
Thanks,
  Istvan
   
   
 -
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
   
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 




 --
 Fernando Wermus.

 www.linkedin.com/in/fernandowermus




-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


BreadcrumbPanel Form Model

2010-04-28 Thread Dr. Wolf Blecher
Hi everybody,

For the last two days I'm stumbling around the following problem.
I have a BreadCrumbPanel (UserEditPanel) and a form inside this panel.
In the form there are two textfields (Name, ChristianName),  a
DropDownChoice (role), a link (Edit Roles) and two buttons (Save, Cancel).
The idea is that I change something in the textfields, click on the
editRolesLink, a new BreadCrumbPanel is opened, where I can add some
Roles, and when I return to the EditUserPanel the CHANGED values are in
the text fields instead of the ORIGINAL values.

At the moment I am doing the following:
On creation of the UserEditPanel I am assigning the modelObject that is
passed via the constructor to a local variable user.
The form gets as default model a new CompoundPropertyModel with this
local variable:

userEditForm.setDefaultModel(new CompoundPropertyModelUser(user));

The values of the variable are correctly filled in the TextFields, so
adding my textfields works fine.

If I change something in the Textfields, click the Save Button (which
submits the form) and I set my values to user.getName() etc. the changed
values are taken, so the values of the local user variable are updated.

But when I click on the BreadCrumbPanelLink (which does not submit the
form by default), the original values are restored in the textfields
when I come back to the UserEditPanel.
So I tried to overwrite the onClick Method of the BreadCrumbPanelLink to
start a form processing (which should do nothing except storing changed
values from the model in the local user variable since I did not
overwrite the onSubmit method of the form)
the values of my local user variable are set to null.

One possible solution I was thinking of is that instead of using
userEditForm.add(new TextField(vorname))
I write
TextField vorname = new Textfield(vorname);
userEditForm.add(vorname);
and in the onClick Method of the BreadCrumbPanelLink I use
user.setVorname(vorname.getInput());

but as far as I understood models correctly, this should not be
necessary. But where is the missing link?

Regards

Wolf


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



pagemap locking

2010-04-28 Thread Frank van Lankvelt
Hi all,

hoping to get some debugging tips on a concurrency issue I've run into.
 What we're seeing is concurrent access to a Page instance, when our
application is under a lot of stress.

The backend is taking a lot of time, which should be handled by Wicket by
locking on the pagemap.  This is what I see in the (wicket) code and appears
to be working fine in ordinary circumstances.  (i.e. request being aborted
after a minute)

What's probably funny about our application is that multiple pages from the
same pagemap can be involved in one request cycle. After handling the
action, but before rendering, we process events that have been delivered to
the session.  This involves invoking listeners on different page instances.
 (we're not serializing pages to disk)

I'm happy to give more details of the way we use wicket (it's all open
source anyway), but perhaps there are some gotcha's that I've been missing.
 Does anyone have a clue?

thanks, Frank


Re: YUI 3 anyone?

2010-04-28 Thread Jeremy Thomerson
I also agree that we should use jQuery.  jQuery seems more aligned with
Wicket than YUI.

--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Apr 28, 2010 at 8:34 AM, Fernando Wermus
fernando.wer...@gmail.comwrote:

 +1 Jquery I mean

 On Wed, Apr 28, 2010 at 10:34 AM, Fernando Wermus 
 fernando.wer...@gmail.com
  wrote:

  +1
 
 
  On Tue, Apr 27, 2010 at 8:02 PM, Joe Fawzy joewic...@gmail.com wrote:
 
  Hi
  i hope the dev team to consider jQuery , it seams it is the standard now
 ,
  used by all the big companies , even microsoft
  and although YUI is great, Yahoo has its own problem these days and we
  cannot consider the commited to the lib, they dropped support for many
 of
  their products and abandond many projects in the last 2 years
 
  this is my opinion only, u may make a vote or poll or something , or
 just
  pick YUI
  thanks
  Joe
  On Tue, Apr 27, 2010 at 6:13 PM, Jeremy Thomerson 
  jer...@wickettraining.com
   wrote:
 
   Yes, it's experimental, and it is not 100% decided that YUI will be
  used.
  
   --
   Jeremy Thomerson
   http://www.wickettraining.com
  
  
  
   On Mon, Apr 26, 2010 at 6:03 AM, Ernesto Reinaldo Barreiro 
   reier...@gmail.com wrote:
  
Isn't this an experimental branch?
   
Ernesto
   
On Mon, Apr 26, 2010 at 12:34 PM, danisevsky danisev...@gmail.com
   wrote:
 I think wicket 1.5 will use YUI 3. You can look to svn:

   
  
 
 http://svn.apache.org/repos/asf/wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/_wicket/ajax/


 2010/4/26 Istvan Soos istvan.s...@gmail.com

 Hi,

 Is there a cool best-practice or even better an integration
 library
  to
 use YUI 3? I know the standard generic way, I'm interested
 specifically in YUI 3...

 Thanks,
   Istvan


  -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



   
   
 -
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
  
 
 
 
 
  --
  Fernando Wermus.
 
  www.linkedin.com/in/fernandowermus
 



 --
 Fernando Wermus.

 www.linkedin.com/in/fernandowermus



Re: YUI 3 anyone?

2010-04-28 Thread Ernesto Reinaldo Barreiro
I remember there was a long discussion on this list, some time ago,
about this...

About jQuery... jQuery isn't perfect either and I have heard of people
having bad experiences about their support. For instance, I have
reported a bug related to DD, IE and its usage in combination with
Wicket AJAX and their reaction was to close the bug because I was not
able to reproduce this only using jQuery. It seems the same bug has
been reported many times, in other contexts, and it hasn't been fixed
yet. In spite of this I'm still planning to use jQuery for my
projects.

At the end I think we should trust Wicket core developers and let them
do what they deem best for the framework.

Best,

Ernesto


On Wed, Apr 28, 2010 at 1:02 AM, Joe Fawzy joewic...@gmail.com wrote:
 Hi
 i hope the dev team to consider jQuery , it seams it is the standard now ,
 used by all the big companies , even microsoft
 and although YUI is great, Yahoo has its own problem these days and we
 cannot consider the commited to the lib, they dropped support for many of
 their products and abandond many projects in the last 2 years

 this is my opinion only, u may make a vote or poll or something , or just
 pick YUI
 thanks
 Joe
 On Tue, Apr 27, 2010 at 6:13 PM, Jeremy Thomerson jer...@wickettraining.com
 wrote:

 Yes, it's experimental, and it is not 100% decided that YUI will be used.

 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Mon, Apr 26, 2010 at 6:03 AM, Ernesto Reinaldo Barreiro 
 reier...@gmail.com wrote:

  Isn't this an experimental branch?
 
  Ernesto
 
  On Mon, Apr 26, 2010 at 12:34 PM, danisevsky danisev...@gmail.com
 wrote:
   I think wicket 1.5 will use YUI 3. You can look to svn:
  
 
 http://svn.apache.org/repos/asf/wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/_wicket/ajax/
  
  
   2010/4/26 Istvan Soos istvan.s...@gmail.com
  
   Hi,
  
   Is there a cool best-practice or even better an integration library to
   use YUI 3? I know the standard generic way, I'm interested
   specifically in YUI 3...
  
   Thanks,
     Istvan
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: YUI 3 anyone?

2010-04-28 Thread Martijn Dashorst
iirc the new implementation of Wicket ajax is slated for post 1.5.
Something with too many irons in the fire...

Martijn

On Wed, Apr 28, 2010 at 3:50 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:
 I also agree that we should use jQuery.  jQuery seems more aligned with
 Wicket than YUI.

 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Wed, Apr 28, 2010 at 8:34 AM, Fernando Wermus
 fernando.wer...@gmail.comwrote:

 +1 Jquery I mean

 On Wed, Apr 28, 2010 at 10:34 AM, Fernando Wermus 
 fernando.wer...@gmail.com
  wrote:

  +1
 
 
  On Tue, Apr 27, 2010 at 8:02 PM, Joe Fawzy joewic...@gmail.com wrote:
 
  Hi
  i hope the dev team to consider jQuery , it seams it is the standard now
 ,
  used by all the big companies , even microsoft
  and although YUI is great, Yahoo has its own problem these days and we
  cannot consider the commited to the lib, they dropped support for many
 of
  their products and abandond many projects in the last 2 years
 
  this is my opinion only, u may make a vote or poll or something , or
 just
  pick YUI
  thanks
  Joe
  On Tue, Apr 27, 2010 at 6:13 PM, Jeremy Thomerson 
  jer...@wickettraining.com
   wrote:
 
   Yes, it's experimental, and it is not 100% decided that YUI will be
  used.
  
   --
   Jeremy Thomerson
   http://www.wickettraining.com
  
  
  
   On Mon, Apr 26, 2010 at 6:03 AM, Ernesto Reinaldo Barreiro 
   reier...@gmail.com wrote:
  
Isn't this an experimental branch?
   
Ernesto
   
On Mon, Apr 26, 2010 at 12:34 PM, danisevsky danisev...@gmail.com
   wrote:
 I think wicket 1.5 will use YUI 3. You can look to svn:

   
  
 
 http://svn.apache.org/repos/asf/wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/_wicket/ajax/


 2010/4/26 Istvan Soos istvan.s...@gmail.com

 Hi,

 Is there a cool best-practice or even better an integration
 library
  to
 use YUI 3? I know the standard generic way, I'm interested
 specifically in YUI 3...

 Thanks,
   Istvan


  -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



   
   
 -
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
  
 
 
 
 
  --
  Fernando Wermus.
 
  www.linkedin.com/in/fernandowermus
 



 --
 Fernando Wermus.

 www.linkedin.com/in/fernandowermus





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.7

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: BreadcrumbPanel Form Model

2010-04-28 Thread Dr. Wolf Blecher
I'm not quite sure if this is the perfect way of doing this, but here is
a workaround:

Instead of placing a BreadCrumbPanelLink, I placed a SubmitLink and in
the onSubmit method I use the IBreadCrumbPanelFactory-Method to create
the new BreadCrumbPanel.
So the form gets submitted (which is needed to update the model) and the
new BreadCrumbPanel is created and after returning the changed values
are still alive.

Cheers

Wolf


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: YUI 3 anyone?

2010-04-28 Thread nicolas melendez
+1 YUI.
I have been working with it, and it is a very good js framework, non
intrusive with the markup, also was easy (i mean REALLY easy) to integrate
to wicket.
i used YUI components, like rich text editor or modal windows. I don't know
the ajax how it is, because i use wicket ajax.
NM

On Wed, Apr 28, 2010 at 10:59 AM, Martijn Dashorst 
martijn.dasho...@gmail.com wrote:

 iirc the new implementation of Wicket ajax is slated for post 1.5.
 Something with too many irons in the fire...

 Martijn

 On Wed, Apr 28, 2010 at 3:50 PM, Jeremy Thomerson
 jer...@wickettraining.com wrote:
  I also agree that we should use jQuery.  jQuery seems more aligned with
  Wicket than YUI.
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
  On Wed, Apr 28, 2010 at 8:34 AM, Fernando Wermus
  fernando.wer...@gmail.comwrote:
 
  +1 Jquery I mean
 
  On Wed, Apr 28, 2010 at 10:34 AM, Fernando Wermus 
  fernando.wer...@gmail.com
   wrote:
 
   +1
  
  
   On Tue, Apr 27, 2010 at 8:02 PM, Joe Fawzy joewic...@gmail.com
 wrote:
  
   Hi
   i hope the dev team to consider jQuery , it seams it is the standard
 now
  ,
   used by all the big companies , even microsoft
   and although YUI is great, Yahoo has its own problem these days and
 we
   cannot consider the commited to the lib, they dropped support for
 many
  of
   their products and abandond many projects in the last 2 years
  
   this is my opinion only, u may make a vote or poll or something , or
  just
   pick YUI
   thanks
   Joe
   On Tue, Apr 27, 2010 at 6:13 PM, Jeremy Thomerson 
   jer...@wickettraining.com
wrote:
  
Yes, it's experimental, and it is not 100% decided that YUI will be
   used.
   
--
Jeremy Thomerson
http://www.wickettraining.com
   
   
   
On Mon, Apr 26, 2010 at 6:03 AM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:
   
 Isn't this an experimental branch?

 Ernesto

 On Mon, Apr 26, 2010 at 12:34 PM, danisevsky 
 danisev...@gmail.com
wrote:
  I think wicket 1.5 will use YUI 3. You can look to svn:
 

   
  
 
 http://svn.apache.org/repos/asf/wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/_wicket/ajax/
 
 
  2010/4/26 Istvan Soos istvan.s...@gmail.com
 
  Hi,
 
  Is there a cool best-practice or even better an integration
  library
   to
  use YUI 3? I know the standard generic way, I'm interested
  specifically in YUI 3...
 
  Thanks,
Istvan
 
 
   -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 


  -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


   
  
  
  
  
   --
   Fernando Wermus.
  
   www.linkedin.com/in/fernandowermus
  
 
 
 
  --
  Fernando Wermus.
 
  www.linkedin.com/in/fernandowermus
 
 



 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.4 increases type safety for web applications
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.7

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




DropDownChoice problem

2010-04-28 Thread Josh Kamau
Hi team

I need your help

I am using a DropDownChoiceT in a form as follows:

DropDownChoiceNationality lstNationality = new
DropDownChoiceNationality(nationality,getNationalities());

 The form has a CompoundPropertyModel

After adding the dropdown to the form, i am able to save the record
properly. However, when i display a  form with an existing record,

the DropDownChoice is not showing the current 'nationality' and it is only
showing Choose One;

When i replace is with a textfield, the correct record is displayed. Is
where could i be going wrong?

Regards.


Re: DropDownChoice problem

2010-04-28 Thread Ernesto Reinaldo Barreiro
I remember having a similar problem because missing the equal on some
bean. Could that be the case?

Ernesto

On Wed, Apr 28, 2010 at 4:20 PM, Josh Kamau joshnet2...@gmail.com wrote:
 Hi team

 I need your help

 I am using a DropDownChoiceT in a form as follows:

 DropDownChoiceNationality lstNationality = new
 DropDownChoiceNationality(nationality,getNationalities());

  The form has a CompoundPropertyModel

 After adding the dropdown to the form, i am able to save the record
 properly. However, when i display a  form with an existing record,

 the DropDownChoice is not showing the current 'nationality' and it is only
 showing Choose One;

 When i replace is with a textfield, the correct record is displayed. Is
 where could i be going wrong?

 Regards.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



SV: DropDownChoice problem

2010-04-28 Thread Wilhelmsen Tor Iver
 After adding the dropdown to the form, i am able to save the record
 properly. However, when i display a  form with an existing record,
 
 the DropDownChoice is not showing the current 'nationality' and it is
 only
 showing Choose One;

Sounds like Wicket gets confused regarding value/id, try setting an 
IChoiceRenderer, e.g.

lstNationality.setChoiceRenderer(new ChoiceRenderer(name, id));

- Tor Iver

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket:message attribute in regular html tags with child components

2010-04-28 Thread Igor Vaynberg
when you have markup like:

table wicket:message=summary:myresource
 trtdspan wicket:id=myComponent/span/td/tr
 /table

where do you expect your localized message to go?

-igor

On Wed, Apr 28, 2010 at 2:51 AM, Xavier López xavil...@gmail.com wrote:
 Hi,

 I have just bumped into a particular situation, I think I know what's
 happening but I'd like to share and, if possible, have it confirmed here.
 Additionally, some info on this subject could be added to the wiki page
 https://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket%27sXHTMLtags-Attributewicket:message

 In a regular table html tag (wicket:id-less), I'd like to have a
 wicket:message attribute (for the 'summary' attribute) in order to take
 advantage from wicket's localization mechanism. Under this tag, I have a
 number of wicket components. My surprise came when I found the following
 error:

 table wicket:message=summary:myresource
 trtdspan wicket:id=myComponent/span/td/tr
 /table

 org.apache.wicket.markup.MarkupException: Unable to find component with id
 'myComponent' in [MarkupContainer [Component id = _message_attr_303]]. This
 means that you declared wicket:id=myComponentin your markup, but that you
 either did not add the component to your page at all, or that the hierarchy
 does not match.



 The first suspicious thig I noticed here was the _message_attr_303 in the
 component hierarchy. Digging through the code, I found in
 WicketMessageTagHandler that this id is given to components with
 wicket:message attributes and without wicket:id's.

 So, maybe what's happening here is that the table tag is being assigned a
 wicket:id and Wicket expects me to add 'myComponent' to the automatically
 generated _message_attr_303... Should it be fixed by modelling the table
 tag with a webmarkupcontainer and adding 'myComponent' to it ?

 Cheers,
 Xavier


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: pagemap locking

2010-04-28 Thread Igor Vaynberg
most likely this concurrent access happens when you are iterating over
pages in the pagemap and invoking listeners on them and another thread
access one of the pages you are iterating over. you will have to lock
your iteration loop on the same lock wicket uses. as a rule of thumb
we do not recommend accessing pages in the pagemap yourself...

-igor

On Wed, Apr 28, 2010 at 6:44 AM, Frank van Lankvelt
f.vanlankv...@onehippo.com wrote:
 Hi all,

 hoping to get some debugging tips on a concurrency issue I've run into.
  What we're seeing is concurrent access to a Page instance, when our
 application is under a lot of stress.

 The backend is taking a lot of time, which should be handled by Wicket by
 locking on the pagemap.  This is what I see in the (wicket) code and appears
 to be working fine in ordinary circumstances.  (i.e. request being aborted
 after a minute)

 What's probably funny about our application is that multiple pages from the
 same pagemap can be involved in one request cycle. After handling the
 action, but before rendering, we process events that have been delivered to
 the session.  This involves invoking listeners on different page instances.
  (we're not serializing pages to disk)

 I'm happy to give more details of the way we use wicket (it's all open
 source anyway), but perhaps there are some gotcha's that I've been missing.
  Does anyone have a clue?

 thanks, Frank


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Form, panel and model reuse (newbie)

2010-04-28 Thread Anatoliy Knyazev
Dear Wicket users,

I'm seeking your advice on designing a small Wicket application. I'm new to
the list, hope I'm not violating any rules with such newbie questions. I've
studied the examples, the sample phonebook app and the mailing list archive
on Nabble, yet I haven't find the best practices for what I'm trying to
achieve. Please feel free to point me to an appropriate example if I'm
asking too much questions.

Basically, I'd like to have one form, used to search POJOs, shared
by several pages, each showing the set of POJOs in a different way, e.g. as
a number of JFreeChart images, as a ListView with limited number of items,
as a DataView with paging.

The Form seems pretty straightforward:

 public class TasksFilterForm extends FormTasksFilter

 {

  public TasksFilterForm(String id, IModelTasksFilter tasksFilterModel)

  {

  super(id, new CompoundPropertyModelTasksFilter(tasksFilterModel));




  add(new DateTimeField(beginDate));

  add(new DateTimeField(endDate));

 /*skipped the rest of fields

  }

 }


In order to reuse it, I've created a Panel:

public class TasksFilterPanel extends Panel

{

 private IModelArrayListCleoTask tasksModel;


  public TasksFilterPanel(String id, final TasksDAO tasksDAO,
 IModelTasksFilter tasksFilterModel, final IModelArrayListCleoTask
 tasksModel)

 {

 super(id, tasksModel);

 this.tasksModel = tasksModel;

 add(new TasksFilterForm(tasksform, tasksFilterModel) {

 @Override

 protected void onSubmit()

 {

 tasksModel.setObject(tasksDAO.findByFilter(getModelObject()));

 }

 });

 }


1)I'm passing the IModelArrayListCleoTask tasksModel as the constructor
argument for the panel, is this correct?
2)And what is the most appropriate model for a list of POJOs? Can you show
me an example with an LDM, perhaps? What if I'd like to access it from the
DataView?
3)I'm not using any ORM, just simple DAOs. Which is the most elegant way to
inject them? I've checked the Spring+Wicket entry in the wiki, the approach
described there works for pages, not for panels.

The TasksFilterPanel is in turn used in a number of pages like this one:

  public class ClusterPage extends SVAStartPage

 {

  private TasksFilter tasksFilter = new TasksFilter();

  ArrayListCleoTask tasks;

  private PropertyModelArrayListCleoTask tasksModel;


  public ClusterPage() throws SQLException

  {

  ArrayListString users = getDB().getCleoUsersArray();

  tasksFilter.setUsers(users);


  tasksModel = new PropertyModelArrayListCleoTask(this, tasks);

  add(new TasksFilterPanel(tasksformpanel, new TasksDAO(getDB()), new
 PropertyModelTasksFilter(this, tasksFilter), tasksModel));

  add(new TasksChartPanel(taskschartpanel, tasksModel));

  }

 }

 4)Should I hold a reference to the tasksModel and tasksFilter from the
TasksPage (declare it as a field, as above) ?
5)Where should I populate the tasksFilter with default values (e.g. existing
users) - in the page? But then I'd have to copy/paste the code across
pages...

In order to display the POJOs, I've created a Panel that shows JFreeChart
images.

 public class TasksChartPanel extends Panel

{

 private IModelArrayListCleoTask tasksModel;

 private JFreeChartImage cImage;



  public TasksChartPanel(String id, IModelArrayListCleoTask tasksModel)

 {

 super(id, tasksModel);

 this.tasksModel = tasksModel;

 }


  @Override

 protected void onBeforeRender()

 {

 super.onBeforeRender();


  ArrayListCleoTask tasks = tasksModel.getObject();


  IntervalXYDataset ds = ... /* produce a dataset from tasks */

 JFreeChart chart = ChartFactory.createScatterPlot(/* plot parameters */)

 if (cImage != null) remove(cImage);


  cImage = new JFreeChartImage(cImage, chart, 1500, 550);

 add(cImage);

 }


  @Override

 public boolean isVisible()

 {

 return tasksModel.getObject() != null;

 }

}

 6) I don't have a solid understanding of the request cycle yet, so I'm
doing all the processing in the onBeforeRender - is this correct?
7)With this approach, I have to manually remove and re-add the image every
time the set of POJOs changes - perhaps Wicket can take care of this, I just
didn't find a way?

That's it for now, I've tried to pinpoint the questions and not be too
vague.

Thank you in advance!
Anatoliy.


Re: DropDownChoice problem

2010-04-28 Thread Xavier López
Hi,

I also bumped into this matter when starting with Wicket, make sure the
Collection returned by getNationalities() contains the value of the
'nationality' attribute of the CPM's backing object, or use a suitable
ChoiceRenderer, as Wilhelmsen suggests, in order to be able to put as
choices the same objects you can have in the 'nationality' attribute.

I think the DDC's ModelObject has to be/will be one of the objects in the
choices list before rendering/after form submission

Cheers,
Xavier

2010/4/28 Wilhelmsen Tor Iver toriv...@arrive.no

  After adding the dropdown to the form, i am able to save the record
  properly. However, when i display a  form with an existing record,
 
  the DropDownChoice is not showing the current 'nationality' and it is
  only
  showing Choose One;

 Sounds like Wicket gets confused regarding value/id, try setting an
 IChoiceRenderer, e.g.

 lstNationality.setChoiceRenderer(new ChoiceRenderer(name, id));

 - Tor Iver

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Klein bottle for rent--inquire within.


Re: pagemap locking

2010-04-28 Thread Frank van Lankvelt
yeah, that's why I thought that I would be safe when only dispatching events
during the request processing to a page from the page-map.

thanks, Frank


On Wed, Apr 28, 2010 at 4:48 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 most likely this concurrent access happens when you are iterating over
 pages in the pagemap and invoking listeners on them and another thread
 access one of the pages you are iterating over. you will have to lock
 your iteration loop on the same lock wicket uses. as a rule of thumb
 we do not recommend accessing pages in the pagemap yourself...

 -igor

 On Wed, Apr 28, 2010 at 6:44 AM, Frank van Lankvelt
 f.vanlankv...@onehippo.com wrote:
  Hi all,
 
  hoping to get some debugging tips on a concurrency issue I've run into.
   What we're seeing is concurrent access to a Page instance, when our
  application is under a lot of stress.
 
  The backend is taking a lot of time, which should be handled by Wicket by
  locking on the pagemap.  This is what I see in the (wicket) code and
 appears
  to be working fine in ordinary circumstances.  (i.e. request being
 aborted
  after a minute)
 
  What's probably funny about our application is that multiple pages from
 the
  same pagemap can be involved in one request cycle. After handling the
  action, but before rendering, we process events that have been delivered
 to
  the session.  This involves invoking listeners on different page
 instances.
   (we're not serializing pages to disk)
 
  I'm happy to give more details of the way we use wicket (it's all open
  source anyway), but perhaps there are some gotcha's that I've been
 missing.
   Does anyone have a clue?
 
  thanks, Frank
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: DropDownChoice problem

2010-04-28 Thread Swanthe Lindgren

I had the same problem you do. Solved it by doing

lstNationality.setDefaultModel(new 
PropertyModelNationality(getDefaultModel(), nationality));


but I bet you that Igor is gonna jump right in an say how its supposed 
to be done and why.


//Swanthe

On 2010-04-28 16:20, Josh Kamau wrote:

Hi team

I need your help

I am using a DropDownChoiceT  in a form as follows:

DropDownChoiceNationality  lstNationality = new
DropDownChoiceNationality(nationality,getNationalities());

  The form has a CompoundPropertyModel

After adding the dropdown to the form, i am able to save the record
properly. However, when i display a  form with an existing record,

the DropDownChoice is not showing the current 'nationality' and it is only
showing Choose One;

When i replace is with a textfield, the correct record is displayed. Is
where could i be going wrong?

Regards.

   



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket:message attribute in regular html tags with child components

2010-04-28 Thread Xavier López
Hi, I'd expect it to lie in the ContainerComponent's folder, assuming
ContainerComponent is the the Page or Panel associated with that markup...
In other words, getString(myresource) from that component would find it.

Does this have something to do with that error ?

Thanks,
Xavier

2010/4/28 Igor Vaynberg igor.vaynb...@gmail.com

 when you have markup like:

 table wicket:message=summary:myresource
  trtdspan wicket:id=myComponent/span/td/tr
  /table

 where do you expect your localized message to go?

 -igor

 On Wed, Apr 28, 2010 at 2:51 AM, Xavier López xavil...@gmail.com wrote:
  Hi,
 
  I have just bumped into a particular situation, I think I know what's
  happening but I'd like to share and, if possible, have it confirmed here.
  Additionally, some info on this subject could be added to the wiki page
 
 https://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket%27sXHTMLtags-Attributewicket:message
 
  In a regular table html tag (wicket:id-less), I'd like to have a
  wicket:message attribute (for the 'summary' attribute) in order to take
  advantage from wicket's localization mechanism. Under this tag, I have a
  number of wicket components. My surprise came when I found the following
  error:
 
  table wicket:message=summary:myresource
  trtdspan wicket:id=myComponent/span/td/tr
  /table
 
  org.apache.wicket.markup.MarkupException: Unable to find component with
 id
  'myComponent' in [MarkupContainer [Component id = _message_attr_303]].
 This
  means that you declared wicket:id=myComponentin your markup, but that
 you
  either did not add the component to your page at all, or that the
 hierarchy
  does not match.
 
 
 
  The first suspicious thig I noticed here was the _message_attr_303 in
 the
  component hierarchy. Digging through the code, I found in
  WicketMessageTagHandler that this id is given to components with
  wicket:message attributes and without wicket:id's.
 
  So, maybe what's happening here is that the table tag is being assigned
 a
  wicket:id and Wicket expects me to add 'myComponent' to the automatically
  generated _message_attr_303... Should it be fixed by modelling the
 table
  tag with a webmarkupcontainer and adding 'myComponent' to it ?
 
  Cheers,
  Xavier
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




reload a tab from TabbedPanel

2010-04-28 Thread tubin gen
I am using AjaxTabbedPanel and it contains   several tabs all  of them are
 PanelCachingTab  , can I reload  any one  tab  through ajax ?


Re: wicket:message attribute in regular html tags with child components

2010-04-28 Thread Igor Vaynberg
i meant where do you expect the localized message to be rendered into?
if wicket:message is attached to the table tag?

-igor

On Wed, Apr 28, 2010 at 9:52 AM, Xavier López xavil...@gmail.com wrote:
 Hi, I'd expect it to lie in the ContainerComponent's folder, assuming
 ContainerComponent is the the Page or Panel associated with that markup...
 In other words, getString(myresource) from that component would find it.

 Does this have something to do with that error ?

 Thanks,
 Xavier

 2010/4/28 Igor Vaynberg igor.vaynb...@gmail.com

 when you have markup like:

 table wicket:message=summary:myresource
  trtdspan wicket:id=myComponent/span/td/tr
  /table

 where do you expect your localized message to go?

 -igor

 On Wed, Apr 28, 2010 at 2:51 AM, Xavier López xavil...@gmail.com wrote:
  Hi,
 
  I have just bumped into a particular situation, I think I know what's
  happening but I'd like to share and, if possible, have it confirmed here.
  Additionally, some info on this subject could be added to the wiki page
 
 https://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket%27sXHTMLtags-Attributewicket:message
 
  In a regular table html tag (wicket:id-less), I'd like to have a
  wicket:message attribute (for the 'summary' attribute) in order to take
  advantage from wicket's localization mechanism. Under this tag, I have a
  number of wicket components. My surprise came when I found the following
  error:
 
  table wicket:message=summary:myresource
  trtdspan wicket:id=myComponent/span/td/tr
  /table
 
  org.apache.wicket.markup.MarkupException: Unable to find component with
 id
  'myComponent' in [MarkupContainer [Component id = _message_attr_303]].
 This
  means that you declared wicket:id=myComponentin your markup, but that
 you
  either did not add the component to your page at all, or that the
 hierarchy
  does not match.
 
 
 
  The first suspicious thig I noticed here was the _message_attr_303 in
 the
  component hierarchy. Digging through the code, I found in
  WicketMessageTagHandler that this id is given to components with
  wicket:message attributes and without wicket:id's.
 
  So, maybe what's happening here is that the table tag is being assigned
 a
  wicket:id and Wicket expects me to add 'myComponent' to the automatically
  generated _message_attr_303... Should it be fixed by modelling the
 table
  tag with a webmarkupcontainer and adding 'myComponent' to it ?
 
  Cheers,
  Xavier
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: Wicket survey?

2010-04-28 Thread Russell Morrisey

Ok, great =) Do you need me to resubmit my responses? It sounds like you got 
them already.

RUSSELL E. MORRISEY
Programmer Analyst Professional
Mission Solutions Engineering, LLC

| russell.morri...@missionse.com | www.missionse.com
304 West Route 38, Moorestown, NJ 08057

-Original Message-
From: Karolina Rusin [mailto:karolina.ru...@gmail.com]
Sent: Wednesday, April 28, 2010 3:18 AM
To: users@wicket.apache.org
Subject: RE: Wicket survey?


I was able to resolve the issue.
Survey should work now correctly.

Best regards
Karolina Rusin
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-survey-tp2068318p2068707.html
Sent from the Wicket - User mailing list archive at Nabble.com.


This is a PRIVATE message. If you are not the intended recipient, please delete 
without copying and kindly advise us by e-mail of the mistake in delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any 
order or other contract unless pursuant to explicit written agreement or 
government initiative expressly permitting the use of e-mail for such purpose.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket survey?

2010-04-28 Thread Russell Morrisey
I filled out the survey, and wanted to forward this to the mailing list. This 
is the author of the survey's response to my question about it. Thanks for your 
reply, Karolina.



RUSSELL E. MORRISEY
Programmer Analyst Professional
Mission Solutions Engineering, LLC

| russell.morri...@missionse.com | www.missionse.comhttp://www.missionse.com/
304 West Route 38, Moorestown, NJ 08057

From: Karolina Rusin [mailto:karolina.ru...@gmail.com]
Sent: Wednesday, April 28, 2010 2:29 AM
To: Russell Morrisey
Subject: Re: Wicket survey?

Thank you Russell for sending this thead to me directly. This research mean a 
lot to me and if it wasn't you I wouldn't have noticed that people have this 
concerns about its reliability.

About the problem you have. It can be possible, that your response was 
submitted correctly, because I have 2 responses saved around the time you sent 
me this mail. Your ip address is 192.148.195.254? Strange you weren't 
redirected to the thank you page.

I will be testing the application on IE7 and hope I will be able to reproduce 
the problem you had.

Thank you very much for you help.

Best regards
Karolina Rusin


W dniu 2010-04-28 01:09, Russell Morrisey pisze:

The survey appears to have normal usability questions; however, the Submit 
answers button at the bottom of the page doesn't appear to do anything at all. 
I tried it first in FireFox, then in IE7.





RUSSELL E. MORRISEY

Programmer Analyst Professional

Mission Solutions Engineering, LLC



| russell.morri...@missionse.commailto:russell.morri...@missionse.com | 
www.missionse.comhttp://www.missionse.com

304 West Route 38, Moorestown, NJ 08057



-Original Message-

From: James Carman [mailto:jcar...@carmanconsulting.com]

Sent: Tuesday, April 27, 2010 6:36 PM

To: users@wicket.apache.orgmailto:users@wicket.apache.org

Subject: Re: Wicket survey?



I got this email too and was wondering the same thing.  If you find

out it's legit, let me/us know.



On Tue, Apr 27, 2010 at 5:53 PM, Russell Morrisey

russell.morri...@missionse.commailto:russell.morri...@missionse.com wrote:



I received a personal e-mail from somebody's g-mail account, claiming to be 
from the Wroclaw University of Technology, soliciting my input for a Wicket 
user study. It mentions Wicket, and other tools like Spring and Hibernate in 
the e-mail.







Can anybody confirm that this survey is what it claims to be? (Keeping in mind 
that the Apache JIRA server was recently attacked and broken into)?







RUSSELL E. MORRISEY

Programmer Analyst Professional

Mission Solutions Engineering, LLC



| russell.morri...@missionse.commailto:russell.morri...@missionse.com | 
www.missionse.comhttp://www.missionse.comhttp://www.missionse.com/http://www.missionse.com/

304 West Route 38, Moorestown, NJ 08057







This is a PRIVATE message. If you are not the intended recipient, please delete 
without copying and kindly advise us by e-mail of the mistake in delivery.

NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any 
order or other contract unless pursuant to explicit written agreement or 
government initiative expressly permitting the use of e-mail for such purpose.









This is a PRIVATE message. If you are not the intended recipient, please delete 
without copying and kindly advise us by e-mail of the mistake in delivery.

NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any 
order or other contract unless pursuant to explicit written agreement or 
government initiative expressly permitting the use of e-mail for such purpose.





This is a PRIVATE message. If you are not the intended recipient, please delete 
without copying and kindly advise us by e-mail of the mistake in delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any 
order or other contract unless pursuant to explicit written agreement or 
government initiative expressly permitting the use of e-mail for such purpose.


RE: DatePicker css

2010-04-28 Thread shetc

Stefan -- please show me what the trick was. Thanks, Steve
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DatePicker-css-tp1844715p2073801.html
Sent from the Wicket - User 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



Wicket Bench

2010-04-28 Thread Brian Mulholland
Hi,

Wicket n00b here.  How good is Wicket Bench?  I read on the site that
it lacks maintainers and it didn't seem like it had alot of powerful
features, just some nice convenience things.  Is it a must have?
Also, is it compatible with the latest Wicket release?  I didn't see
anything on the wicket bench site saying what version of wicket it was
compatible with.

Brian Mulholland

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket Bench

2010-04-28 Thread Igor Vaynberg
wicket does not require any tooling because it is 90% java code and
10% markup. so none of ide plugins provide must have features, only
conveniences

-igor

On Wed, Apr 28, 2010 at 12:17 PM, Brian Mulholland
blmulholl...@gmail.com wrote:
 Hi,

 Wicket n00b here.  How good is Wicket Bench?  I read on the site that
 it lacks maintainers and it didn't seem like it had alot of powerful
 features, just some nice convenience things.  Is it a must have?
 Also, is it compatible with the latest Wicket release?  I didn't see
 anything on the wicket bench site saying what version of wicket it was
 compatible with.

 Brian Mulholland

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket Bench

2010-04-28 Thread Brian Mulholland
Would you say those conveniences are worth it?  In other words, would
you recommend Wicket Bench (or any other plugins)?

Brian Mulholland

On Wed, Apr 28, 2010 at 3:36 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 wicket does not require any tooling because it is 90% java code and
 10% markup. so none of ide plugins provide must have features, only
 conveniences

 -igor

 On Wed, Apr 28, 2010 at 12:17 PM, Brian Mulholland
 blmulholl...@gmail.com wrote:
 Hi,

 Wicket n00b here.  How good is Wicket Bench?  I read on the site that
 it lacks maintainers and it didn't seem like it had alot of powerful
 features, just some nice convenience things.  Is it a must have?
 Also, is it compatible with the latest Wicket release?  I didn't see
 anything on the wicket bench site saying what version of wicket it was
 compatible with.

 Brian Mulholland

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket Bench

2010-04-28 Thread Igor Vaynberg
if it was still supported i would recommend it.

-igor

On Wed, Apr 28, 2010 at 12:44 PM, Brian Mulholland
blmulholl...@gmail.com wrote:
 Would you say those conveniences are worth it?  In other words, would
 you recommend Wicket Bench (or any other plugins)?

 Brian Mulholland

 On Wed, Apr 28, 2010 at 3:36 PM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 wicket does not require any tooling because it is 90% java code and
 10% markup. so none of ide plugins provide must have features, only
 conveniences

 -igor

 On Wed, Apr 28, 2010 at 12:17 PM, Brian Mulholland
 blmulholl...@gmail.com wrote:
 Hi,

 Wicket n00b here.  How good is Wicket Bench?  I read on the site that
 it lacks maintainers and it didn't seem like it had alot of powerful
 features, just some nice convenience things.  Is it a must have?
 Also, is it compatible with the latest Wicket release?  I didn't see
 anything on the wicket bench site saying what version of wicket it was
 compatible with.

 Brian Mulholland

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



close a modal window and setResponsePage

2010-04-28 Thread Fernando Wermus
Hi all,
I have a modal window. There are some image avatars in it, and the user
could click on them. In case the user click it, it should close the modal
window an redirect to antoher page. But, I get the redirected page into the
modal window instead. I am not findind any to solution to this situation.
How come?

myModalWindo.close(target);
getPage().setResponsePage(PaginaAmistades.class);

ps: getPage() returns not the modal window page, but the one which is under.

thanks

-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


AjaxFormComponentUpdatingBehavior breaking wicket 's convention ? Which alternatives then?

2010-04-28 Thread Joseph Pachod
 
hi

I was quite surprised, recently, by the AjaxFormComponentUpdatingBehavior, 
which directly updates the model. At the time it seemed pretty  odd but I moved 
on. 

then I recently read this article from Igor, Building a ListEditor form 
component 
(http://wicketinaction.com/2008/10/building-a-listeditor-form-component/comment-page-1/)
 which states in order to be a good citizen in Wicket’s form processing a 
component should Implement atomic form updates – this is perhaps the most 
important  feature. If the user moves an item up or down in the list this 
change  should not be reflected in the model object until the form is  
submitted.

However, the AjaxFormComponentUpdatingBehavior completely breaks this important 
aspect, by going directly at the model. Furthermore, the javadoc doesn't 
illustrate how dangerous it is. For example, setting setDefaultFormProcessing 
on some cancel button won't work anymore. Neither does the javadoc hint at some 
ways to avoid this.

Among the way to avoid this, I currently mostly see the 
AjaxFormValidatingBehavior or writing an ad hoc form component copying his 
initial state and implementing IFormModelUpdateListener.

Thinking back on my initial issue, a Behavior which would only update the input 
of the component would have been resolved it (issue was a listview where adding 
a line would loose non submitted input on textfields). 

A such AjaxFormComponentConvertingBehavior is in fact easy to do, it's a copy 
of AjaxFormComponentUpdatingBehavior with a shortened onEvent: 
@Override
protected final void onEvent(final AjaxRequestTarget target) {
final FormComponent? formComponent = getFormComponent();

if (getEvent().toLowerCase().equals(onblur)  disableFocusOnBlur()) {
target.focusComponent(null);
}

try {
formComponent.inputChanged();
onUpdate(target);
} catch (RuntimeException e) {
onError(target, e);

}
}

 Such a behavior would resolve some of the use case currently  wrongly 
addressed by the AjaxFormComponentUpdatingBehavior. It could even be its parent 
class and be spoken of in its javadoc. 

What your feelings on that ?

sorry for this long post and thanks in advance for your answers (which most 
likely will show I've missed something obvious there!).

++
joseph
  

Re: AjaxFormComponentUpdatingBehavior breaking wicket's convention ? Which alternatives then?

2010-04-28 Thread Jeremy Thomerson
I'm not sure I understand what your problem with this component is.  The
component is designed to mimic the entire submit process for a single
component.  It says this in the javadoc: This behavior encapsulates the
entire form-processing workflow as relevant only to this component.  It
also warns you that the model will be updated: so if validation is
successful the component's model will be updated according to the submitted
value

The key is that it does validation, etc, just like a form submit would do.
 It just does it on a local (i.e. single component) level rather than for
the entire form.  If you don't want the model updated,
override getUpdateModel() and return false.

--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Apr 28, 2010 at 5:24 PM, Joseph Pachod josephpac...@thomas-daily.de
 wrote:


 hi

 I was quite surprised, recently, by the AjaxFormComponentUpdatingBehavior,
 which directly updates the model. At the time it seemed pretty  odd but I
 moved on.

 then I recently read this article from Igor, Building a ListEditor form
 component (
 http://wicketinaction.com/2008/10/building-a-listeditor-form-component/comment-page-1/)
 which states in order to be a good citizen in Wicket’s form processing a
 component should Implement atomic form updates – this is perhaps the most
 important  feature. If the user moves an item up or down in the list this
 change  should not be reflected in the model object until the form is
  submitted.

 However, the AjaxFormComponentUpdatingBehavior completely breaks this
 important aspect, by going directly at the model. Furthermore, the javadoc
 doesn't illustrate how dangerous it is. For example, setting
 setDefaultFormProcessing on some cancel button won't work anymore. Neither
 does the javadoc hint at some ways to avoid this.

 Among the way to avoid this, I currently mostly see the
 AjaxFormValidatingBehavior or writing an ad hoc form component copying his
 initial state and implementing IFormModelUpdateListener.

 Thinking back on my initial issue, a Behavior which would only update the
 input of the component would have been resolved it (issue was a listview
 where adding a line would loose non submitted input on textfields).

 A such AjaxFormComponentConvertingBehavior is in fact easy to do, it's a
 copy of AjaxFormComponentUpdatingBehavior with a shortened onEvent:
 @Override
protected final void onEvent(final AjaxRequestTarget target) {
final FormComponent? formComponent = getFormComponent();

if (getEvent().toLowerCase().equals(onblur) 
 disableFocusOnBlur()) {
target.focusComponent(null);
}

try {
formComponent.inputChanged();
onUpdate(target);
} catch (RuntimeException e) {
onError(target, e);

}
}

  Such a behavior would resolve some of the use case currently  wrongly
 addressed by the AjaxFormComponentUpdatingBehavior. It could even be its
 parent class and be spoken of in its javadoc.

 What your feelings on that ?

 sorry for this long post and thanks in advance for your answers (which most
 likely will show I've missed something obvious there!).

 ++
 joseph



Re: Wicket + security, what are the best options? Spring Security reached almost all the way...

2010-04-28 Thread Jimi

Martijn wrote:
 
 Confluence and JIRA for Wicket Stuff have been down since the JIRA
 attacks. I've enabled service to Confluence as I didn't see any files
 that were tampered with, nor was there any indication that it had been
 compromised in other installations.
 
 Confluence hasn't been updated with the release status because of this.

I had no idea there was a JIRA attack. That explains a lot.

 That said, we (the current Wicket Security maintainers) are 90% sure
 that we'll move Wicket Security over to github, and host the
 documentation there.

ok, sounds like a good move.
Thanks for a great project, by the way. I'm starting to like it more and
more now. :)

/Jimi
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-security-what-are-the-best-options-Spring-Security-reached-almost-all-the-way-tp2068415p2075000.html
Sent from the Wicket - User 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



Re: close a modal window and setResponsePage

2010-04-28 Thread Steve Swinsburg
Hi,

close the modal, then do the setResponsePage in the window closed callback that 
you can provide.

cheers,
Steve



On 29/04/2010, at 7:53 AM, Fernando Wermus wrote:

 Hi all,
I have a modal window. There are some image avatars in it, and the user
 could click on them. In case the user click it, it should close the modal
 window an redirect to antoher page. But, I get the redirected page into the
 modal window instead. I am not findind any to solution to this situation.
 How come?
 
 myModalWindo.close(target);
 getPage().setResponsePage(PaginaAmistades.class);
 
 ps: getPage() returns not the modal window page, but the one which is under.
 
 thanks
 
 -- 
 Fernando Wermus.
 
 www.linkedin.com/in/fernandowermus


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wizards, urls parameters

2010-04-28 Thread Jeremy Thomerson
On the form, could you try something like this?  I've never tried it - but
it might work:

@Override
protected void onComponentTag(final ComponentTag tag) {
super.onComponentTag(tag);
String action = tag.get(action);
tag.put(action, action + myStep=foo);
}


--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Apr 28, 2010 at 5:29 AM, Rommert de Bruijn r.debru...@func.nlwrote:

 Hi all,

 I'm maintaining a web application that's mostly based on wizard steps. My
 question is about the way the wizard modifies the urls.

 I realize that once I've entered the wizard flow, my url's are modified by
 wicket to look like [url]/?wicket:interface=:1. I've read earlier posts
 on wizards  urls, and I agree that a wizard step should not (and probably
 can not) be a bookmarkable page. But is it possible to add parameters to the
 url modified by wicket?

 What I would like to accomplish (mainly for farming statistics about the
 visited steps) is to have an identifier of the current step be displayed in
 the url. So when I'm at step 3 I'd like to see the wicket-formatted
 [url]/?wicket:interface=:1, but with an additional parameter
 stepIdentifier=3, resulting in something like
 [url]/?wicket:interface=:1stepIdentifier=3. That way -I hope- a tool
 like Google Analytics can show me the number of visits for each step.

 Is it possible to add parameters to a wicket-generated url? I've set up a
 simple POC with the StaticWizard from WizardExamples but once I'm in the
 wizard flow I do not have any control over the url, it seems.

 Thanks in advance,
 Rommert

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Wizards, urls parameters

2010-04-28 Thread Jeremy Thomerson
Nevermind - you're most likely using redirect after post (since it's
default).  So, the URL you are referring to is most likely the one that
actually appears after you redirect.  If so, that means the solution I
mentioned a minute ago won't work.  I'm going to bed now.

--
Jeremy Thomerson
http://www.wickettraining.com



On Thu, Apr 29, 2010 at 12:33 AM, Jeremy Thomerson 
jer...@wickettraining.com wrote:

 On the form, could you try something like this?  I've never tried it - but
 it might work:

 @Override
 protected void onComponentTag(final ComponentTag tag) {
 super.onComponentTag(tag);
 String action = tag.get(action);
 tag.put(action, action + myStep=foo);
 }


 --
 Jeremy Thomerson
 http://www.wickettraining.com




 On Wed, Apr 28, 2010 at 5:29 AM, Rommert de Bruijn r.debru...@func.nlwrote:

 Hi all,

 I'm maintaining a web application that's mostly based on wizard steps. My
 question is about the way the wizard modifies the urls.

 I realize that once I've entered the wizard flow, my url's are modified by
 wicket to look like [url]/?wicket:interface=:1. I've read earlier posts
 on wizards  urls, and I agree that a wizard step should not (and probably
 can not) be a bookmarkable page. But is it possible to add parameters to the
 url modified by wicket?

 What I would like to accomplish (mainly for farming statistics about the
 visited steps) is to have an identifier of the current step be displayed in
 the url. So when I'm at step 3 I'd like to see the wicket-formatted
 [url]/?wicket:interface=:1, but with an additional parameter
 stepIdentifier=3, resulting in something like
 [url]/?wicket:interface=:1stepIdentifier=3. That way -I hope- a tool
 like Google Analytics can show me the number of visits for each step.

 Is it possible to add parameters to a wicket-generated url? I've set up a
 simple POC with the StaticWizard from WizardExamples but once I'm in the
 wizard flow I do not have any control over the url, it seems.

 Thanks in advance,
 Rommert

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org