Re: Help on wizard solution...

2009-09-09 Thread Matthias Keller
Hi Well, if you know of all the steps but there's only some small difference (like you said, Step 6 might be D or F), you might also consider a normal Wizard, but use the conditional step functionality. That way you would add ALL pages, but hide those that are not relevant. Hiding can also be

RE: Passing parameters from markup to panels

2009-09-09 Thread Michael Mosmann
Am Dienstag, den 08.09.2009, 09:10 +1000 schrieb Chris Colman: When my web designer guy wants control over whether he wants to place either 10 songs or 50 songs into the 'top of the charts' panel I consider that to be something that should definitely not be something we have to make separate

RE: Flash/ExternalInterface does not work in IE if movie is fetched via Wicket/Ajax

2009-09-09 Thread Heikki Uotinen
Thanks, https://issues.apache.org/jira/browse/WICKET-2457 -Heikki -Original Message- From: Matej Knopp [mailto:matej.kn...@gmail.com] Sent: 9. syyskuuta 2009 0:10 To: users@wicket.apache.org Subject: Re: Flash/ExternalInterface does not work in IE if movie is fetched via Wicket/Ajax

Problem when submitting component is not a button

2009-09-09 Thread Martin Makundi
Hi! I have a dropdown choice which submits the form as IFormSubmittingComponent because I need to have the effect of IFormSubmittingComponent.getDefaultFormProcessing=false. However, Wicket ajax does the following: wicket-ajax: if (submitButton != null) { s +=

Re: Help on wizard solution...

2009-09-09 Thread Ernesto Reinaldo Barreiro
Or have the complete definition on the database and use a factory approach to generate the steps and the content of the steps... That way you don't to hide/show anything but generate what you want, e.g. using repeaters, out of some predefined wizard defining grammar... Best, Ernesto On Wed, Sep

@SpringBean and IDataProvider

2009-09-09 Thread Charles Moulliard
Hi, I have a strange problem that I can't explain. I don't know if this is a bug or a limitation. When I inject Spring dependency of a service inside a Wicket web page, everything works fine but when I inject this dependency in a separate class (in the following code example, the class

Re: @SpringBean and IDataProvider

2009-09-09 Thread vineet semwal
InjectorHolder.getInjector().inject(this); //do this in dataprovider constructor -- regards, Vineet Semwal On Wed, Sep 9, 2009 at 1:50 PM, Charles Moulliard cmoulli...@gmail.comwrote: Hi, I have a strange problem that I can't explain. I don't know if this is a bug or a limitation.

Re: @SpringBean and IDataProvider

2009-09-09 Thread Matthias Keller
Hi Charles @SpringBean only seems to work in some wicket base classes. In your own separate classes, noone will actively inject your content. What I do (maybe there's a better possibility) is to add this line to that classes constructor to force injection:

Can't get attribute from AuthenticatedWebSession for no-role -needed page.

2009-09-09 Thread Anders
Hi, I can get the user id attribute from my authenticatedWebSession in a role-needed page. But I can't get user id when I go to no-role-needed page. Do I need to override newSession() method in WebApplication? Please help me~ Belows are my classes: public class HelloWorldApplication extends

DownloadLink and Resource

2009-09-09 Thread Eyal Golan
Hi, I have two separate questions/wishes: we use Wicket 1.3.6 DownloadLink - can we add a getter for fileName (I can open an issue in JIRA if it's necessary). Resource: onResourceRequested is final so I can't override the ResourceStreamRequestTarget in the line cycle.setRequestTarget(new

Re: @SpringBean and IDataProvider

2009-09-09 Thread Martijn Dashorst
Obligatory salve plug goes here :-) It helps to understand what happens by stepping through some construction logic of your components. If you follow that path you'll venture along the registered IComponentInstantiationListener objects, typically only your Spring component injector. This doesn't

Re: Help on wizard solution...

2009-09-09 Thread Muro Copenhagen
Hi John and Eyal Thanks, i appreciate the help you offer. I will get back to you if it should be necessecary :) Best Regards Muro On Wed, Sep 9, 2009 at 10:15 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Or have the complete definition on the database and use a factory approach

Panel not using generics

2009-09-09 Thread Kurt Zitze
hey, why does the panel is not using generics for type safety? regards -- Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser - To

Re: Panel not using generics

2009-09-09 Thread Ernesto Reinaldo Barreiro
What's the meaning you want to attach to the missing generic parameter? Best, Ernesto On Wed, Sep 9, 2009 at 12:23 PM, Kurt Zitze g...@gmx.net wrote: hey, why does the panel is not using generics for type safety? regards -- Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla

Re: Panel not using generics

2009-09-09 Thread garz
i want the getModelObject() (which is in fact the getDefaultModelObject()) to return the actual type that i dont need to do unchecked casts. i'm just wondering, now that everything uses generics, why does the panel do not use generics? just want to understand the reason behind this. regards garz

RE: Panel not using generics

2009-09-09 Thread Stefan Lindner
Check the mailinglist archive. I remember that there was a long discussion about this question. I also would prefert to have a generic Panel. But the Wicket users vote against it. Most users did not want to write PanelVoid for not generic Panels. The easiest was is to define your own generic

Re: Panel not using generics

2009-09-09 Thread Ernesto Reinaldo Barreiro
The main point I could object is that you might have panels that are not associated to a model... and then you will still have to pass a model object type to avoid unchecked warnings... I know I could always use PanelVoid, or PanelObject, but as a user I would not like to be forced to do that all

Re: Can't get attribute from AuthenticatedWebSession for no-role -needed page.

2009-09-09 Thread Pedro Santos
Please, what is user id that you refers? On Wed, Sep 9, 2009 at 5:31 AM, Anders innocentl...@gmail.com wrote: Hi, I can get the user id attribute from my authenticatedWebSession in a role-needed page. But I can't get user id when I go to no-role-needed page. Do I need to override

Re: Can't get attribute from AuthenticatedWebSession for no-role -needed page.

2009-09-09 Thread liny
Hi, user id is the username. I want to set user id into session attribute. After I call WebSession.bind(), now the problem is solved. But why MyauthenticatedWebSession is temporary in default? (no session id) Pedro Santos-6 wrote: Please, what is user id that you refers? On Wed, Sep 9,

RE: Panel not using generics

2009-09-09 Thread Craig McIlwee
I agree with Ernesto, I think the reasoning behind non-parameterized panels is that panels needing a model is rare compared to panels that do not need a model. If you need a panel with a strongly typed model then look into FormComponentPanel, since it's a FormComponent it gets the typed model

wicket.properties conflict 1.2.6 vs 1.4.1

2009-09-09 Thread A. Zwaan
Hello all, At the moment we migrated one of our applications to wicket 1.4.1 to solve an issue, but some of our other application are still running on wicket 1.2.6. Now we ran into a problem with wicket.properties, both wicket versions use the same file and both versions look up ALL the

Re: Can't get attribute from AuthenticatedWebSession for no-role -needed page.

2009-09-09 Thread Pedro Santos
Hi, I take a look at Page and WicketFilter code, it seems that an actual session (typically an instance of {...@link HttpSession}) are created only if it is necessary. For example: if (!isPageStateless()) { // trigger creation of the actual session in case it was

Re: How test modal windows with wicket tester?

2009-09-09 Thread Per Lundholm
/** * Execute a close on a modal window. */ private void executeClose() { ModalWindow window = (ModalWindow) tester.getComponentFromLastRenderedPage(MODAL); tester.clickLink(MODAL + :content:closeOK, true); ListIBehavior behaviors =

placing multiple gmap markers

2009-09-09 Thread shiraz memon
Hi, I am trying to put multiple markers at the same position. It looks fine if I magnifies it but as soon as I zoom out it shows only one marker (which becomes ambiguous while clicking at the info window). I came to know that it might be solved by setting the z-Index of every marker (if they are

Re: How test modal windows with wicket tester?

2009-09-09 Thread Martin Makundi
Be careful.. that will execute all callbacks, not just close callback. This is safer: public void executeModalWindowCloseCallback(ModalWindow modalWindow) { for (IBehavior behavior : modalWindow.getBehaviors()) { if (behavior instanceof AbstractDefaultAjaxBehavior) { String

Using Wicket together with Microsoft VirtualEarth/BingMaps

2009-09-09 Thread Christian Reiter
Hi! I am relatively new to Wicket but impressed by the comfort it offers. So far I used Perl/ModPerl/JavaScript for my web projects. I am usually using Java for my Desktop apps. For a application which should be created from scratch I am forced to use Microsofts Bing Maps (formerly known as

ResourceModel and getting the key in it

2009-09-09 Thread Fernando Wermus
Hi all,I use a resourceModel to show some titles in my menu bar. But, I also use this key as a way to construct new keys for another components information. For instance, menubar.client.title=this is a title for an item in the menu bar about a client menustatus.client.title=this is a title

Re: ResourceModel and getting the key in it

2009-09-09 Thread Martin Makundi
Just extend it? ** Martin 2009/9/9 Fernando Wermus fernando.wer...@gmail.com: Hi all,    I use a resourceModel to show some titles in my menu bar. But, I also use this key as a way to construct new keys for another components information. For instance, menubar.client.title=this is a title

Re: DownloadLink and Resource

2009-09-09 Thread Igor Vaynberg
1.3.x branch is no longer actively developed. you can add your wishes to the 1.4.x branch. downloadlink is a small class that does nothing special, you can copy paste it into your own and customize if the core one does not meet your needs. -igor On Wed, Sep 9, 2009 at 1:34 AM, Eyal Golan

Re: ResourceModel and getting the key in it

2009-09-09 Thread Fernando Wermus
I cant because the attribute is private On Wed, Sep 9, 2009 at 12:21 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Just extend it? ** Martin 2009/9/9 Fernando Wermus fernando.wer...@gmail.com: Hi all,I use a resourceModel to show some titles in my menu bar. But, I

Re: wicket.properties conflict 1.2.6 vs 1.4.1

2009-09-09 Thread Igor Vaynberg
are you sharing your wicket jars? is both 1.2.6 and 1.4.1 in a servlet container's shared lib dir? -igor On Wed, Sep 9, 2009 at 6:09 AM, A. Zwaan a.zw...@finan.nl wrote: Hello all, At the moment we migrated one of our applications to wicket 1.4.1 to solve an issue, but some of our other

Re: ResourceModel and getting the key in it

2009-09-09 Thread Fernando Wermus
Another option or should I fill up a Jira? On Wed, Sep 9, 2009 at 12:46 PM, Fernando Wermus fernando.wer...@gmail.comwrote: I cant because the attribute is private On Wed, Sep 9, 2009 at 12:21 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Just extend it? ** Martin

Re: ResourceModel and getting the key in it

2009-09-09 Thread Martin Makundi
You can extend the model no problem... catch the key at your constructor. ** Martin 2009/9/9 Fernando Wermus fernando.wer...@gmail.com: Another option or should I fill up a Jira? On Wed, Sep 9, 2009 at 12:46 PM, Fernando Wermus fernando.wer...@gmail.comwrote: I cant because the attribute

Re: ResourceModel and getting the key in it

2009-09-09 Thread Pedro Santos
The ResourceModel just call: Application.get().getResourceSettings().getLocalizer().getString(resourceKey, (Component)null, defaultValue) using the resourceKey you parse. You can call getString of your localizer by your own, using your assembled resourceKey On Wed, Sep 9, 2009 at 12:47 PM,

Re: Using Wicket together with Microsoft VirtualEarth/BingMaps

2009-09-09 Thread t3_chris
Thanks for your Response! As I am quite new to Wicket I don't exactly understand what you mean... Do you have any sample code? It isn't required to be Bing specific, it would also be helpful if you could demonstrate how i can get the result of a non-Wicket-JavaScript-Function into the Wicket

Re: Using Wicket together with Microsoft VirtualEarth/BingMaps

2009-09-09 Thread Pedro Santos
ok: non-Wicket-JavaScript-Function is bingJavaScriptFunctionCalledOnYourApp so: function bingJavaScriptFunctionCalledOnYourApp(){ /* callback script */ } How can I get the callback script? I'm wondering something like: class BingTask extends AbstractDefaultAjaxBehavior {

Re: Using Wicket together with Microsoft VirtualEarth/BingMaps

2009-09-09 Thread t3_chris
I got on (hopefully) final question: Is there a more elegant way to pass Data into the BingTask.respond(AjaxRequestTarget) method than appending something like data=myValue to the Callback URL and then decoding it withing the respond-Method? -- View this message in context:

Re: Using Wicket together with Microsoft VirtualEarth/BingMaps

2009-09-09 Thread Pedro Santos
Hi, for curios, I take a look at wicket-gmap.js on http://fisheye3.atlassian.com/browse/wicket-stuff/trunk/wicket-contrib-gmap2/src/main/java/wicket/contrib/gmap/wicket-gmap.js?r1=4174r2= that has an similar situation... you can see on line 49 the parameter passage. I don't know other way to

Re: placing multiple gmap markers

2009-09-09 Thread Pedro Santos
See if it occurs on http://maps.google.com/ too. You can put markers on this map too. If the problem remains, you can disable the zoom out. On Wed, Sep 9, 2009 at 11:35 AM, shiraz memon shiraz.li...@googlemail.comwrote: Hi, I am trying to put multiple markers at the same position. It looks

Re: Transparent resolver parent child working but cannot add third component

2009-09-09 Thread Pedro Santos
I want an added third component (a WebPage class) to be displayed setResponsePage(third component) are not enough because you adding the third component inside an iframe? can you send significant code of parent page? On Fri, Sep 4, 2009 at 8:08 PM, da...@davidwbrown.name wrote: Hello all, I

Re: Transparent resolver parent child working but cannot add third component

2009-09-09 Thread David Brown
Hello Pedro, I have since resolved this issue. I was trying to use an existing WebPage class fired from the WebPage attached to the submenu class. Eventually, I relented and allowed the constructor inside the submenu WebPage to call the needed private method by refactoring the target WebPage

same data set shows for all users

2009-09-09 Thread Randy
I have my first wicket application running which allows the user to specify a date range and see a list of items from a database. The problem is that all users see the same set of items for the same date range. User A enters Tuesday through Friday, and user B runs the app and sees the same data

Re: same data set shows for all users

2009-09-09 Thread Jeremy Thomerson
You're not using models properly, but there's no way we can help without seeing code. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Sep 9, 2009 at 4:18 PM, Randy ran...@goodsmillwork.com wrote: I have my first wicket application running which allows the user to specify a date

multiple changes vs. session-per-request

2009-09-09 Thread Troy Cauble
I have a database entity that refers to a collection of non-entity components. @Entity class A { @CollectionOfElements CollectionString b = new ArrayListString(); } I'm running session-per-request and I really don't want to change that. I have a Form where b strings can be added and

Re: multiple changes vs. session-per-request

2009-09-09 Thread James Carman
Add them to a List that you keep and then when you're done, dump that list into the entity? On Wed, Sep 9, 2009 at 10:15 PM, Troy Caubletroycau...@gmail.com wrote: I have a database entity that refers to a collection of non-entity components. @Entity class A {     @CollectionOfElements    

defaultFormProcessing is no longer considered when processing multipart form in ajax request

2009-09-09 Thread Vladimir Kovalyuk
I added AjaxFallbackButton(Cancel).setDefaultFormProcessing(false) to the multipart form and when it is pressed the form is handled as well as the button would have defaultFormProcessing=true. It happens because request parameters does not contain the name of the submitting button. The magic is

how to embed one wicket app into another

2009-09-09 Thread Quan Zhou
Hi.I've developed my simple forum with Wicket(we call it A), and I want to embed it into another website (B) developed by Wicket. like, the left panel and the navigator panel are both from B, and the right panel is from A, I dont want to use Frame because my page will be complicated. Does anyone

RE: Passing parameters from markup to panels

2009-09-09 Thread Chris Colman
Chris Colman wrote: I've thought of a very ugly way of doing it with the current version of wicket but it relies on quite a lot of smoke and mirrors and hooking into the component creation process. I'll give that a go for now. We went a similar but still different way :) We use our own

Re: how to embed one wicket app into another

2009-09-09 Thread Jeremy Thomerson
If you have created good self-contained components, you should be able to just embed PanelB into PageA -- Jeremy Thomerson http://www.wickettraining.com On Wed, Sep 9, 2009 at 10:54 PM, Quan Zhou betoget...@gmail.com wrote: Hi.I've developed my simple forum with Wicket(we call it A), and I

RE: Passing parameters from markup to panels

2009-09-09 Thread Chris Colman
why? what is different between a 10 or a 50 item song panel? the number of items? you should anyhow use a ListView which repeats the her is the song-block as many times as you want to.. It is using a ListView - the desire was to provide an easy way for the UI guy to specify a row count in the

Re: defaultFormProcessing is no longer considered when processing multipart form in ajax request

2009-09-09 Thread Igor Vaynberg
this bit of javascript: if (submitButton != null) { s += Wicket.Form.encode(submitButton) + =1; } is needed because we do perform a custom form serialization - really just constructing the query string - that we submit back to server via ajax. the multipart handling performs a regular post into

Re: how to embed one wicket app into another

2009-09-09 Thread Quan Zhou
sorry, i forget to say this two apps are installed in different servers.each is a single standalone app. so i think i can't embed panelB into PageA. On Thu, Sep 10, 2009 at 11:58 AM, Jeremy Thomerson jer...@wickettraining.com wrote: If you have created good self-contained components, you

Re: how to embed one wicket app into another

2009-09-09 Thread Jeremy Thomerson
If you can't share the code, then you basically have the same options for embedding one in the other than you would with any other app - Perl, PHP, ASP, Wicket, Struts - whatever it is. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Sep 9, 2009 at 11:25 PM, Quan Zhou

Re: how to embed one wicket app into another

2009-09-09 Thread Martin Makundi
Use Iframe ** Martin 2009/9/10 Quan Zhou betoget...@gmail.com: sorry, i forget to say  this two apps are installed in different servers.each is a single standalone app. so i think i can't embed panelB into PageA. On Thu, Sep 10, 2009 at 11:58 AM, Jeremy Thomerson jer...@wickettraining.com

Re: defaultFormProcessing is no longer considered when processing multipart form in ajax request

2009-09-09 Thread Vladimir K
it is attached to the input tag as follows: form wicket:id=actionForm enctype='multipart/form-data' div class=buttonBox input wicket:id=cancelAction type=submit

Re: defaultFormProcessing is no longer considered when processing multipart form in ajax request

2009-09-09 Thread Igor Vaynberg
i guess create a quickstart and attach it to a jira issue. when i tested buttons, while developing the feature, it seemed to work fine. -igor On Wed, Sep 9, 2009 at 10:40 PM, Vladimir K koval...@gmail.com wrote: it is attached to the input tag as follows:                        form

Re: defaultFormProcessing is no longer considered when processing multipart form in ajax request

2009-09-09 Thread Vladimir K
sure igor.vaynberg wrote: i guess create a quickstart and attach it to a jira issue. when i tested buttons, while developing the feature, it seemed to work fine. -igor On Wed, Sep 9, 2009 at 10:40 PM, Vladimir K koval...@gmail.com wrote: it is attached to the input tag as follows:

css filter that evaluates expressions

2009-09-09 Thread Vladimir Kovalyuk
Richfaces has one useful feature. It parses .xcss files, finds expressions, evaluates them and replaces expressions with evaluated values. for instance: td.odd { background-color: ${some.expression}; } Does anybody know something similar that could be employed in Wicket?