Page indirection

2008-12-03 Thread Steve Flasby
Hi, I am looking to add a little more configurability to my Wicket app. At the moment all forward requests are coded something like: setResponsePage( EditTournament.class, pp ); but I would like to be able to configure this more flexibly. For example, for certain installations I may wan

Re: Looking for the previous thread about pagingnavigator with infinite pages

2008-12-03 Thread Wayne Pope
not sure if this is the one you mean - it was titled : "Is there any other way? DataProviders must hit the Db twice" On Wed, Dec 3, 2008 at 3:41 PM, Serkan Camurcuoglu <[EMAIL PROTECTED]> wrote: > > Hi all, > Sorry for disturbing but I remember I've read a discussion about implementing > a pagin

Re: GMAP2 Event Listners.

2008-12-03 Thread Jeremy Thomerson
This is untested, but an idea... could you do something like: public void onEvent(AjaxRequestTarget target) { yourListItem.add(new SimpleAttributeModifier("class", "highlighted")); target.add(yourListItem); } On Wed, Dec 3, 2008 at 11:57 PM, ej595 <[EMAIL PROTECTED]> wrot

GMAP2 Event Listners.

2008-12-03 Thread ej595
Not sure of the best approach. I have a list of Wicket Items (Dataview) with each plotted on a google map. Each item has a marker point which is number, and ive attached a listener to the GOverlay marker via ... marker.addListener(GEvent.click, new GEventHandler() Once the marker is clicked on

Re: Updating Form TextField Value

2008-12-03 Thread tim532
That was exactly it. Thanks for that explanation! Cheers, Tim Jeremy Thomerson-5 wrote: > > It doesn't have to do with your html input vs. button. It's because > default > form processing is turned off, the form model doesn't fire that it was > changed, so the model doesn't go back to your g

Re: Updating Form TextField Value

2008-12-03 Thread Jeremy Thomerson
It doesn't have to do with your html input vs. button. It's because default form processing is turned off, the form model doesn't fire that it was changed, so the model doesn't go back to your getName() method to get it's value. You can add this in your button onSubmit: getForm().modelChanged();

RE: Updating Form TextField Value

2008-12-03 Thread Dane Laverty
I think you'll want to use the tag rather than the mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2008 4:27 PM To: users@wicket.apache.org Subject: Updating Form TextField Value Hopefully this is a simple question with a simple answer... For reasons I can't quite grasp yet, the button t

Updating Form TextField Value

2008-12-03 Thread tim532
Hopefully this is a simple question with a simple answer... For reasons I can't quite grasp yet, the button to changeName doesn't change the textfield value when I click it. However, the submit button does work to change the value of the textfield, and setting the initial default value of the tex

Clearing Cache after Logout

2008-12-03 Thread vishy_sb
Hi all, I have a logout link that takes me to the login (Home) page. However when I click the back button it brings me back to the same page that I was on (Although I am not able to do anything on this page as whenever I press some button I get the error "Page Expired") A better option would be

Re: Openid integration?

2008-12-03 Thread Nino Saturnino Martinez Vazquez Wael
Yup I remember the page.. Michael Sparer wrote: Hmm Im using auth roles now.. Are there an way to integrate the two..? hey nino, take a look at http://cwiki.apache.org/WICKET/acegi-and-wicket-auth-roles.html - it's a bit older but I think it might still work. as acegi is now called spring

Re: Openid integration?

2008-12-03 Thread Nino Saturnino Martinez Vazquez Wael
Looks simple enough.. I guess my only fear are that I then will have it converted into something that still wont let me pull the two required values from the openid provider... Jan Kriesten wrote: Hi Nino, Hmm Im using auth roles now.. Are there an way to integrate the two..? that

Re: Embedding advanced flash object

2008-12-03 Thread Jeremy Thomerson
Take a look at this response I gave a while back: http://www.nabble.com/Adding-Adobe-Media-Player-in-wicket-td19797690.html Combine that with urlFor(new ResourceReference(SomeClass.class, "relative-path-to-movie.swf")) and urlFor(new ResourceReference(SomeClass.class, "relative-path-to-slides.xml"

RE: Maintain radio values on submit validation

2008-12-03 Thread Dane Laverty
That solved the problem. Thank you very much! -Original Message- From: Jeremy Thomerson [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2008 12:26 PM To: users@wicket.apache.org Subject: Re: Maintain radio values on submit validation Have you tried ListView.setReuseItems(true) -

Re: IMG SRC URL in iframe.

2008-12-03 Thread Graeme Knight
Ernesto, I really appreciate your help - thanks for the information. I will try to take a look at it tonight! Cheers, Graeme. reiern70 wrote: > > Hi Graeme, > > Yes, it is the approach I would follow... I'm not 100% sure about all > the details (e.g maybe the URL is not exactly /images/xxx)

Re: Maintain radio values on submit validation

2008-12-03 Thread Jeremy Thomerson
Have you tried ListView.setReuseItems(true) - I didn't look at your code in depth, but at a glance I think the problem is that your radios are getting recreated. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Dec 3, 2008 at 12:50 PM, Dane Laverty <[EMAIL PROTECTED]>wrote: > I have a

Re: IMG SRC URL in iframe.

2008-12-03 Thread Ernesto Reinaldo Barreiro
Hi Graeme, Yes, it is the approach I would follow... I'm not 100% sure about all the details (e.g maybe the URL is not exactly /images/xxx), but I'm sure that approach that will work. As said I used a similar approach sometime ago for displaying a documents inside an iframe: I mounted a dynamic

Maintain radio values on submit validation

2008-12-03 Thread Dane Laverty
I have a form with a list of RadioGroups, which are all required. If the user submits the form with one or more of the RadioGroups left blank, the validator correctly returns to form. However, when that happens, any RadioGroups the user filled also become blank. Is there a way to maintain the value

Re: Switch db connection when Local <> Remote

2008-12-03 Thread James Carman
If you're using Hibernate, one thing we do with this, to make sure the target database is up to snuff (all the right tables/columns, etc.) is to run a test case that executes the verifier from Hibernate against the schema (our test cases don't usually touch the real database; they run against an in

Re: IMG SRC URL in iframe.

2008-12-03 Thread Graeme Knight
Hi, thank you - this is invaluable information. So basically what you are suggesting is something like: 1) Read the HTML content (this will be set on the innerHTML of the iframe). 2) Parse the content to find the each IMG SRC CID - replace this CID with a URL to /images/xxx. 3) Set the HTML into

Re: Why can't I initialize PasswordTextField?

2008-12-03 Thread James Carman
You could also encrypt the information in the cookie. Make sure you use some salt. On Wed, Dec 3, 2008 at 10:50 AM, Jeremy Thomerson <[EMAIL PROTECTED] > wrote: > Yes, you need a token to look up the user by. But username sent in the > cookie isn't secure enough (i could send cookie w/ your un

Re: Create custom UrlCodingStrategy

2008-12-03 Thread Peter Ertl
maybe this would be the time to apply my patch? :-) https://issues.apache.org/jira/browse/WICKET-1666 Am 03.12.2008 um 16:18 schrieb Mathias P.W Nilsson: Yes, thanks! This is what I have been trying to do but with no luck. -- View this message in context: http://www.nabble.com/Create-custo

Re: WebMarkupContainer within WebMarkupContainer not updated when Ajax update

2008-12-03 Thread Timo Rantalaiho
On Wed, 03 Dec 2008, simonm wrote: > wmc2.add( new Label("new", ((ArrayList)wmc2.getModelObject()).get( > 4 ).toString()) ); That's the problem, your Labels never get new data. Their models should be something like this new AbstractReadOnlyModel() { @Override public Object getObjec

Re: Switch db connection when Local <> Remote

2008-12-03 Thread Anton Veretennikov
Thank you, James! On Wed, Dec 3, 2008 at 7:45 PM, James Carman <[EMAIL PROTECTED]> wrote: > We use "profiles" in Maven2 to decide which configuration parameters to > build with. Take a look at the example project for Wicketopia for an > example of how we do that: > https://wicketopia.svn.sourcefo

RE: Why can't I initialize PasswordTextField?

2008-12-03 Thread Jeremy Thomerson
Yes, you need a token to look up the user by. But username sent in the cookie isn't secure enough (i could send cookie w/ your un and be you), and you shouldn't put password in a cookie. So, typically you create a UUID when they sign in and use that as the token. Or a hash of something from u

Re: Create custom UrlCodingStrategy

2008-12-03 Thread Mathias P.W Nilsson
Yes, thanks! This is what I have been trying to do but with no luck. -- View this message in context: http://www.nabble.com/Create-custom-UrlCodingStrategy-tp20660813p20814900.html Sent from the Wicket - User mailing list archive at Nabble.com. ---

Re: Create custom UrlCodingStrategy

2008-12-03 Thread Martin Sachs
Yes, then you have two ways to do that * implement your own RequestCycleProcessor * implement IRequestCodingStrategy and IRequestTargetMountsInfo or subclass WebRequestCodingStrategy (you can look on UrlCompressingWebCodingStrategy for a sample) Thats the way... Martin Mathias P.W Nils

Re: Create custom UrlCodingStrategy

2008-12-03 Thread Mathias P.W Nilsson
Problem is this setResponsePage(new LoginPage(moreParam); will not generate an url like http://localhost/myapp/customer1/login. -- View this message in context: http://www.nabble.com/Create-custom-UrlCodingStrategy-tp20660813p20814520.html Sent from the Wicket - User mailing list archive at N

Re: WebMarkupContainer within WebMarkupContainer not updated when Ajax update

2008-12-03 Thread simonm
Timo, Thanks a lot for your reply, regarding your answer I’m suspecting that something is probably wrong with the Model of wmc2. I would like please to show how did I implemented the Model of wmc2 and hopefully you’ll notice something wrong over there: final WebMarkupContainer wmc1= new WebMarkup

Re: IMG SRC URL in iframe.

2008-12-03 Thread Ernesto Reinaldo Barreiro
...something like: private static String ID = "MyImages"; @Override protected void init() { super.init(); getSharedResources().add(ID, new MyDynamicImageResource()); mountSharedResource("/images", ID); } On you WebApplication class... Then ask back to the server for /ima

Re: Create custom UrlCodingStrategy

2008-12-03 Thread Martin Sachs
ok simple DispatchingPage with Pageparameter DispatchingPage(Pageparameter params){ customerId = params.getIndexedParam(0); // not real syntax action = params.getIndexedParam(1); // not real syntax if(action.equals("login")){ PageParameter moreParam = new PageParameter();

Looking for the previous thread about pagingnavigator with infinite pages

2008-12-03 Thread Serkan Camurcuoglu
Hi all, Sorry for disturbing but I remember I've read a discussion about implementing a paging navigator for an unknown (possibly infinite) number of pages in the list recently, but I haven't been able to find it on Nabble. Can somebody send me the link of this thread if you can find or rememb

Re: IMG SRC URL in iframe.

2008-12-03 Thread Graeme Knight
Hi Ernesto, I think that is exactly what I am after - just not certain how this implementation works in Wicket. It was real easy with Tapestry as all I did was get hold of the URL, append a path to the image, and replace the CID in the HTML with the image URL. Are there any examples of this sort

Re: Create custom UrlCodingStrategy

2008-12-03 Thread Mathias P.W Nilsson
Also you must handle the second parameter /login maybe by switching different panels or redirect to another page ! How should this be done? I must keep the customer/customerId in every page. What happens when redirecting? -- View this message in context: http://www.nabble.com/Create-custom-Url

Re: IMG SRC URL in iframe.

2008-12-03 Thread Ernesto Reinaldo Barreiro
Why not mount a resource that is servicing back images based of the CID? Best, Ernesto On Wed, Dec 3, 2008 at 2:59 PM, Graeme Knight <[EMAIL PROTECTED]> wrote: > > Oh, > > My use case is this: > > 1) Load up HTML email content. This content has CIDs which need to be > resolved to URLs. > > 2) I

Re: IMG SRC URL in iframe.

2008-12-03 Thread Graeme Knight
Oh, My use case is this: 1) Load up HTML email content. This content has CIDs which need to be resolved to URLs. 2) I will put the HTML content into the iframe using some Javascript to manipulate the innerHTML. 3) Before I do step 2 I need to convert the CID to a URL that points to an image f

Re: Why can't I initialize PasswordTextField?

2008-12-03 Thread kan
2008/12/3 James Carman <[EMAIL PROTECTED]>: > The browser's saved passwords support doesn't transmit your password over > HTTP along with the rest of the markup, though. It just remembers it and > auto-populates it for you once it receives the HTML from the site. So, it's > as unsafe as your com

Re: Why can't I initialize PasswordTextField?

2008-12-03 Thread Casper Bang
James Carman wrote: The browser's saved passwords support doesn't transmit your password over HTTP along with the rest of the markup, though. It just remembers it and auto-populates it for you once it receives the HTML from the site. So, it's as unsafe as your computer is (hopefully you use a p

Re: Create custom UrlCodingStrategy

2008-12-03 Thread Martin Sachs
hi, i have only a simple idea. implement a UrlcodingStrategy like IndexedParamUrlCodingStrategy, where the words after first / are parameter. if you use this e.g. mount(new CustomerParamUrlCodingStrategie("/customers",...)); you would able to get the customerID as PageParameter like from the I

Re: Create custom UrlCodingStrategy

2008-12-03 Thread Mathias P.W Nilsson
Is there no solution to this? this is my app ( http://localhost/myapp ). All I want is to be able to have a customer name after myapp that follows in the application. -- View this message in context: http://www.nabble.com/Create-custom-UrlCodingStrategy-tp20660813p20812776.html Sent from the Wi

Re: Why can't I initialize PasswordTextField?

2008-12-03 Thread James Carman
On Wed, Dec 3, 2008 at 6:55 AM, Casper Bang <[EMAIL PROTECTED]> wrote: > Yeah I thought of the security issue, it seems though quite a few PHP sites > works like that (not to mention, build-in browser functionality which does > the same kind of unsafe client side caching). > The browser's saved p

Re: Switch db connection when Local <> Remote

2008-12-03 Thread James Carman
We use "profiles" in Maven2 to decide which configuration parameters to build with. Take a look at the example project for Wicketopia for an example of how we do that: https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/example/ Basically, we add in a special resources directory that'

Re: Openid integration?

2008-12-03 Thread Jan Kriesten
Hi Nino, > Hmm Im using auth roles now.. Are there an way to integrate the two..? that shouldn't be a too big deal, you just have to convert the spring-security granted authorities into 'roles'. To get the AuthenticationManager into your Application you could use the Spring factory (Scala code)

Re: Why can't I initialize PasswordTextField?

2008-12-03 Thread Casper Bang
Yeah I thought of the security issue, it seems though quite a few PHP sites works like that (not to mention, build-in browser functionality which does the same kind of unsafe client side caching). In the idiom outlined in your source code, how can the server then re-authorize without username

Re: Switch db connection when Local <> Remote

2008-12-03 Thread Anton Veretennikov
Thanks you for suggestions. On Wed, Dec 3, 2008 at 5:55 PM, Ulf Gitschthaler <[EMAIL PROTECTED]> wrote: > Maybe you should have a look at: > http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html > > It describes how to use JNDI for your database connection. In short: the > to

Re: Openid integration?

2008-12-03 Thread Michael Sparer
> Hmm Im using auth roles now.. Are there an way to integrate the two..? hey nino, take a look at http://cwiki.apache.org/WICKET/acegi-and-wicket-auth-roles.html - it's a bit older but I think it might still work. as acegi is now called spring security. regards, Michael Nino.Martinez wrote: >

Re: Switch db connection when Local <> Remote

2008-12-03 Thread Ulf Gitschthaler
Maybe you should have a look at: http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html It describes how to use JNDI for your database connection. In short: the tomcat itself holds the necessary connection data and connects via JNDI to the DB. Jeremy Thomerson wrote: T

Embedding advanced flash object

2008-12-03 Thread Ekengren
Hello, I am trying to figure out the best way to embed the flash slideshow from http://www.maani.us/xml_slideshow/index.php. The flash clip reads from a configuration file given in the movie url (data="slideshow.swf?xml_source=slides.xml") and shows images whose url are in the file. I have three p

Re: examples of Wizard and working back button

2008-12-03 Thread novotny
Hi, I should have been more clear- I mean an example where the browser back button works like the "previous" button in the 1-2-3 example. I have a simple wizard already working but if a user is on Step 3 and hits browser back button it takes them to 1. Thanks, Jason Jeremy Thomerson-5 wrote: