Wicket, Spring, JDO on Google App Engine - Sample Application

2009-07-13 Thread Nick Wiedenbrück
I've written a Wicket, Spring, JDO sample application that runs on the Google App Engine. An introduction ist available as a blog post at http://stronglytypedblog.blogspot.com/2009/07/wicket-spring-jdo-on-google-app-engine.html. The source code is available at http://kenai.com/projects/wicketgae.

Re: MixedHybridUrlCodingStrategy wanted

2009-07-13 Thread Vladimir K
I didn't find it easy to do it myself. By easy I mean what I can accomplish within 15 mins. From the first glance it looks just like a mix of two strategies but it actually does not. MixedHybridUrlCodingStrategy should handle all the parameters delimited by slashes and some of them have names

Re: [Announce] wicketstuff-push ported to use wicket 1.4 jetty 6.1.14

2009-07-13 Thread freak182
Hello, I checkout the latest wicket-push in wicketstuff but unfortunately this was built in 1.4. How can I build for 1.3.x wicket? Because our application is using 1.3.x and I cannot tell them to migrate to 1.4 since the development has already started. Thanks a lot. Cheers. Rodolfo Hansen

Re: artwork problem while changing background color of liquid canvas

2009-07-13 Thread nino martinez wael
Great.. And please if you have any patches, youre very welcome commit them.. 2009/7/11 vineet semwal vineetsemwal1...@gmail.com We are not even half way mark in the application we are developing :( i will give you a update as soon as the application concludes .. regards, Vineet Semwal On

Re: MixedHybridUrlCodingStrategy wanted

2009-07-13 Thread Erik van Oosten
Hi Vladimir, You are right. Now I look at it, it is clearly more complex then I remembered. You can get my version here: http://pastie.org/543892 Regards, Erik. Vladimir K wrote: I didn't find it easy to do it myself. By easy I mean what I can accomplish within 15 mins. From the first

Re: How to throw new PageExpiredException?

2009-07-13 Thread Ann Baert
I have overridden the RequestCycle.onRuntimeException method: @Override public RequestCycle newRequestCycle(final Request request, final Response response) { return new WebRequestCycle(this, (WebRequest) request, (WebResponse) response) { @Override public Page

Re: intercept security check in wicket-auth-roles

2009-07-13 Thread Erik van Oosten
You don't have to use the spring xml config files to use Sprint Security. Just instantiate the beans from code! There is a small catch, you'll need to know something about Spring callbacks. These are some interface that Spring will automatically call. These are: InitializingBean,

Re: MixedHybridUrlCodingStrategy wanted

2009-07-13 Thread Vladimir K
Thanks very much! Why not suggest it as a patch to wicket core? Erik van Oosten wrote: Hi Vladimir, You are right. Now I look at it, it is clearly more complex then I remembered. You can get my version here: http://pastie.org/543892 Regards, Erik. Vladimir K wrote: I

Re: model detached many times

2009-07-13 Thread Vladimir K
Martijn, you probably mean how chained models would be detached. So instead of propagating detach in IChainedModel they would be detached automatically? Is there a vision how it would be accomplished? Martijn Dashorst wrote: Automatic detachment is one of the things we're looking into for

How to show ModalWindow in menuě onClick event?

2009-07-13 Thread Petr Fejfar
Hi all, originally I had a row of AjaxLinks and on some clicks I opened a modal window by calling: dialog.show(target); Later, I've changed AjaxLinks to menuBar based on YUI menu2, but I do know how to show the modal window because of my onClick handler does not have an argument of

Re: linking to a text ResourceReference

2009-07-13 Thread CrocodileShoes
I found the problem. It seems the url must be encoded otherwise the OFC cannot find the data file. I don't have an account on apache yet so I can't update the wiki. private String getUrlForJson() { CharSequence dataPath = RequestCycle.get().urlFor(OpenFlashChart.this,

Re: How to show ModalWindow in menuě onClick event?

2009-07-13 Thread sander v F
I don't know YUI menu2, but if it is an AjaxClick, you could use AjaxRequestTarget.get() to get the current AjaxRequestTarget. 2009/7/13 Petr Fejfar petr.fej...@gmail.com Hi all, originally I had a row of AjaxLinks and on some clicks I opened a modal window by calling:

Re: MixedHybridUrlCodingStrategy wanted

2009-07-13 Thread Erik van Oosten
Please do :) Erik. Vladimir K wrote: Thanks very much! Why not suggest it as a patch to wicket core? Erik van Oosten wrote: Hi Vladimir, You are right. Now I look at it, it is clearly more complex then I remembered. You can get my version here: http://pastie.org/543892 Regards,

Re: How to show ModalWindow in menuě onClick event?

2009-07-13 Thread Petr Fejfar
On Mon, Jul 13, 2009 at 12:05 PM, sander v Fsandervanfaas...@gmail.com wrote: I don't know YUI menu2, but if it is an AjaxClick, you could use AjaxRequestTarget.get() to get the current AjaxRequestTarget. It is easy, as I've found finally: Originally, I followed examples and implement just

Re: model detached many times

2009-07-13 Thread James Carman
No, he means *all* models. The idea would be that Wicket would look for fields of type IModel (or its descendants) on components/pages. If it sees one, it would automatically detach it. On Mon, Jul 13, 2009 at 3:47 AM, Vladimir Kkoval...@gmail.com wrote: Martijn, you probably mean how

Can one avoid the pagmap name in the url

2009-07-13 Thread Oliver Krohne
Hi, I turned on the option Automatic Multi Window Support and now if I open some windows / tabs I see the pagemap name in the url like /?wicket:pageMapName=wicket-3. After each link I click the pagemap name changes even in the same window, I wonder if this is correct ? Is there any way that

Re: model detached many times

2009-07-13 Thread Erik van Oosten
As models are nested this is not possible with the current setup. If a model nests another model, the nesting model is responsible for calling detach on the nested model. Multiple models may nest the same model. So the best thing to do for now is to have some flag to see if you're already

Re: model detached many times

2009-07-13 Thread James Carman
On Mon, Jul 13, 2009 at 7:32 AM, Erik van Oostene.vanoos...@grons.nl wrote: So the best thing to do for now is to have some flag to see if you're already detached. In getObject the flag is cleared. For most models however, it should not matter if they're called multiple times; the typical thing

AjaxEditableLabel and feedback on error

2009-07-13 Thread Erich W Schreiner
Dear all, I am trying to implement a list with AJAX-powered inline editing and have set one field of the model to required using ajaxEditableLabel.setRequired(true). Now, whenever I hit [Enter] after clearing the related input field, I get the message Field 'editor' is required.. The field

Modal window X button doesn't work

2009-07-13 Thread Eyal Golan
Hello, I have a table in a page that one of the columns is a Panel. In that panel I have an AjaxLink that opens a Modal window. The modal window has content as a WebPage. Using setPageCreator etc. everything works fine except that the window is not closed when pressing the X button. We have an

Re: Updating an inmethod grid, looking for hints

2009-07-13 Thread Erik van Oosten
Hi Matej, I just got a hint from a colleague: it might has something to do with returning the wrong number of items in the dataprovider query. We probably return UNDEFINED too often. I'll look further into it. Regards, Erik. Erik van Oosten wrote: DataGrid. DefaultDataGrid mostly.

Re: Mysterious NullPointerException

2009-07-13 Thread Jeremy Levy
Take a look at this one: 2009-07-12 11:03:11,865 ERROR Web [RequestCycle] : java.lang.NullPointerException 2009-07-12 11:03:11,879 ERROR Web [MMRequestCycle] : The exception had a length of 0, dumping Stack 2009-07-12 11:03:11,885 ERROR Web [MMRequestCycle] : Logging:

Re: Mysterious NullPointerException

2009-07-13 Thread Jeremy Levy
Hmm, looking at that again, it looks just like the dump... On Mon, Jul 13, 2009 at 8:55 AM, Jeremy Levy jel...@gmail.com wrote: Take a look at this one: 2009-07-12 11:03:11,865 ERROR Web [RequestCycle] : java.lang.NullPointerException 2009-07-12 11:03:11,879 ERROR Web [MMRequestCycle] : The

How to show/hide, enable/disable items in menu based on YUI menu2

2009-07-13 Thread Petr Fejfar
Hi all, I'm still trying to build menubar based on YUI menu2 from wicketstuff and still have a problems: currently I'd like to hide/show ev. to enable/disable some menu items (YuiMenuBarItem) in dependence of actions taken by commands related to this menu bar. If I tried to add those menu items

Re: intercept security check in wicket-auth-roles

2009-07-13 Thread Les Hazlewood
JSecurity has been renamed to Apache Shiro and is referenced in the linked page as 'wicket-shiro'. Cheers, Les On Mon, Jul 13, 2009 at 3:41 AM, Erik van Oosten e.vanoos...@grons.nlwrote: You don't have to use the spring xml config files to use Sprint Security. Just instantiate the beans from

Re: [Announce] wicketstuff-push ported to use wicket 1.4 jetty 6.1.14

2009-07-13 Thread Rodolfo Hansen
Hi, You have two options: 1. use a previous version of wicketstuff-push, 2. or help out with branching the current code back to 1.3.x Right now, the code requres java 1.5, so if your proyect requires java 1.4 then I recomend using a previous version. the old wicket 1.3, java 1.4 branch

Re: getting child items of a ListView ListItem

2009-07-13 Thread Steve Swinsburg
Ok thats working nicely, the ModalWindow callback is inside the onClick of the Link in the Item and using one instance of a MW per list instead of one per item. Thanks for your help Martin :) Regards. On 12 Jul 2009, at 18:45, Martin Makundi wrote: BTW::: SHOW AFTER initializing

XsltTransformerBehavior without component tags

2009-07-13 Thread Iain Reddick
Hi, We are trying to use XsltTransformerBehavior with pre-existing XSLT templates to display various kinds of XML data in a panel. While this is working fine, it looks as if we will have to modify our XSL to take account of the fact that the transforming component's tags become the root

Re: [Announce] wicketstuff-push ported to use wicket 1.4 jetty 6.1.14

2009-07-13 Thread freak182
Hello, Although we use java 1.5, the wicket version we are gonna use it wicket 1.3.6 ..the problem from the latest branch is the MetaDataKey is now generified becuase it is built against 1.4. I found out that in 1.3.x branch has same wicket-push codebase but the metadatakey is not using

Re: Rewrite page parameter to Login_page when session's expired

2009-07-13 Thread Igor Vaynberg
the page is gone - thats why its expired. if the parameters are still on the url you can get those by retrieving them from webrequest. -igor On Sun, Jul 12, 2009 at 8:28 PM, glooorrryyyglo_sari...@yahoo.com wrote: I want to get the page parameter from an expired_page... Is it possible?

Re: Can one avoid the pagmap name in the url

2009-07-13 Thread Igor Vaynberg
not sure if storing in a cookie would work easily. we would still have to keep the cookie name somewhere...and so you are back to adding that to the url. i think in 1.5 what we can do is make the page id unique across all pagemaps and keep the mapping in session. not sure how easy that would be

ReplaceWith don't works properly after call to AjaxTabbedPanel.setSelectedTab

2009-07-13 Thread Marco Aurélio Silva
Hi All I'm having a problem using replaceWith method on a panel. That panel is inside a tab on AjaxTabbedPanel, and everything works fine, except when I need to open the page with a tab selected (call to mypage.tabbedPanel.setSelectedTab), then the panel is replaced on the tab itself instead of be

Javascript Header Contribution via Ajax

2009-07-13 Thread Joel Hill
I have a custom behavior that contributes Javascript to the header. In order to prevent collisions with other components that may also be using that behavior, I include it using TextTemplateHeaderContributor. Like so: public class CustomBehavior extends AbstractBehavior { private Component

add html-attribute to a tab

2009-07-13 Thread Pi Trash
Hi, I generate a tab navigation panel and use a name abbreviation for the tab label: ITab tab = (new AbstractTab(new ModelString(nameAbbreviation)) { private static final long serialVersionUID = 1L; @Override public Panel getPanel(String id) {

Re: Dynamic links in inmethod DataGrid

2009-07-13 Thread satar
James, is this similar to calling getMarkupSettings().setStripWicketTags(boolean), which I am doing in the application init for my app? I saw that in some example somewhere during my reading and wondered why would you want to ever include wicket id's in the generated html? Is there any good

Problem with AjaxFallbackDefaultDataTable in 1.4-SNAPSHOT wicket-1.4-20090709.154646-550.jar [SEC=UNCLASSIFIED]

2009-07-13 Thread Michelle . Bhaal
Hello. I'm attempting a simple AjaxFallbackDefaultDataTable with using 1.4-SNAPSHOT and the wicket-1.4-20090709.154646-550.jar and wicket-extensions-1.4-20090709.154646-542.jar files. I get the following error: WicketMessage: Unable to find component with id 'label' in [MarkupContainer

Re: Help us release 1.4 sooner by helping out with the migration guide

2009-07-13 Thread Cristiano Kliemann
I have just migrated 33 very small projects I use in a basic Wicket course and everything went fine. Everything I had to change was already covered by the current migration guide. -- Cristiano 2009/7/10 Igor Vaynberg igor.vaynb...@gmail.com: We would like to release Wicket 1.4 very soon, but

Wicket-Scala extensions

2009-07-13 Thread Antony Stubbs
I've been playing around with the idea of creating some wicket extensions in Scala for developing wicket with Scala... For example, taking advantage of Scala's functional language, we can mixin the following function and class to make models easier: def f(gtr: = String):Fodel = new

Re: model detached many times

2009-07-13 Thread Ian MacLarty
On Mon, Jul 13, 2009 at 9:43 PM, James Carmanjcar...@carmanconsulting.com wrote: On Mon, Jul 13, 2009 at 7:32 AM, Erik van Oostene.vanoos...@grons.nl wrote: So the best thing to do for now is to have some flag to see if you're already detached. In getObject the flag is cleared. For most models

Re: Wicket-Scala extensions

2009-07-13 Thread Sam Stainsby
On Tue, 14 Jul 2009 11:38:33 +1200, Antony Stubbs wrote: I'm very interested in people's suggestions of otherways of taking advantage of Scala to make Wicket programming easier. We are using Scala and Wicket intensively (and the DB4O object database as well). One thing we are working on is

Re: Wicket-Scala extensions

2009-07-13 Thread Antony Stubbs
Just a quick note, is the source available for all this? all I see is svn checkout file:///home/sam/work/svn_repository/uniscala/trunk uniscala on http://uniscala.net/source-repository.html On 14/07/2009, at 12:46 PM, Sam Stainsby wrote: On Tue, 14 Jul 2009 11:38:33 +1200, Antony Stubbs

Re: Help us release 1.4 sooner by helping out with the migration guide

2009-07-13 Thread Igor Vaynberg
thanks major, i added a couple of notes to the wiki. i totally forgot about 2350, i will get it into 1.4.0 for sure. -igor 2009/7/11 Major Péter majorpe...@sch.bme.hu: Hi, I have recently upgraded my project and I did find these changes: - the first parameter of

Re: Wicket-Scala extensions

2009-07-13 Thread Antony Stubbs
I'm much more interested in reading the source code, than reading the scaladoc :) you could put it up on git hub privately if you want? On 14/07/2009, at 1:10 PM, Sam Stainsby wrote: Not yet, but I can make it available if there is interest. Antony Stubbs wrote: Just a quick note, is the

Odd behavior

2009-07-13 Thread Russell Simpkins
All, Every now and then my for ends up displaying [Ljava.lang.String;@7cd46bea instead of displaying my string value. There is no rhyme or reason, just going back and forth through my application and eventually I see that value dumped out in lieu of my actual string value. ValueMap

Re: Wicket-Scala extensions

2009-07-13 Thread Sam Stainsby
No problem. I'll let you know when its available. Its just one of those things I haven't gotten around to yet. On Tue, 14 Jul 2009 14:01:51 +1200, Antony Stubbs wrote: I'm much more interested in reading the source code, than reading the scaladoc :) you could put it up on git hub privately if

Re: Odd behavior

2009-07-13 Thread Igor Vaynberg
its not a reference to a string, its a reference to a string *array*, notice the [ in the beginning. can happen if you add the same key twice to the valuemap - it will create an array. -igor On Mon, Jul 13, 2009 at 7:43 PM, Russell Simpkinsrussellsimpk...@hotmail.com wrote: All, Every now and

Re: Wicket-Scala extensions

2009-07-13 Thread Sam Stainsby
Done. Here is the code: http://uniscala.svn.sourceforge.net/viewvc/uniscala/trunk/ The overall aim of the project is to produce a web framework like Zope but for Scala instead of Python. That framework is in the 'unsicala- granite' module. The parts I was discussing were in the modules

RE: Dropdownchoice missing (only when the page with Tinymce component) while scrolling the vertical scroll bar

2009-07-13 Thread 彭光裕
I have learned how to make a quickstart. But for simulating this problem, tinymce-1.4-SNAPSHOT.jar should be included into classpath. My question is how to include tinymce-1.4-SNAPSHOT.jar in maven. to avoid the exception below: java.lang.NoClassDefFoundError:

How to speed up a page that uses data from a slow webservice

2009-07-13 Thread Martin Tilma
Hi all, I have a page and it's a bit slow and I want to speed it up, but don't know a proper solution. The case: I have a page that contains 5 components showing different data retrieved from a webservice. Each webservice call takes about 1 second. Besides that I have 2 buttons who's