Wicketstuff tinymce 1.5

2011-09-15 Thread Sotil Bertanzetti, Matteo
Hello, I'm migrating from wicket 1.4.18 to wicket 1.5.0, but I need wicketstuff/tinymce dependency, and I think it is not migrated to 1.5 yet; is there some prevision to do it?, or where can I find it?. My dependency: dependency groupIdorg.wicketstuff/groupId

static validators feedback unrendered on page with multiple forms and feedback filtered

2011-09-15 Thread manuelbarzi
hi, got the following composite: page |-form1 |     |-field1 |     |     |-StringValidator.MaximumLengthValidator [1] |     |-feedbackPanel1(ComponentFeedbackMessageFilter(form1) [3]) |-form2       |-field2       |     |-StringValidator.MaximumLengthValidator [2]      

Re: static validators feedback unrendered on page with multiple forms and feedback filtered

2011-09-15 Thread Martin Grigorov
You need ContainerFeedbackMessageFilter instead of ComponentFeedbackMessageFilter. On Thu, Sep 15, 2011 at 11:56 AM, manuelbarzi manuelba...@gmail.com wrote: hi, got the following composite: page |-form1 |     |-field1 |     |     |-StringValidator.MaximumLengthValidator [1] |    

Patch for Portlet support in Wicket 1.5

2011-09-15 Thread Martin Grigorov
Hi Portlet users, At https://issues.apache.org/jira/browse/WICKET-4019 you can find an attachment provided by Peter Pastrnak that brings back the support of Portlets for Wicket 1.5. If you would like to have this feature in your 1.5 applications now is the time to test it and give feedback.

Creating a resource from a byte array and its content type

2011-09-15 Thread Ian Marshall
In Wicket 1.4, I used an org.apache.wicket.resource.ByteArrayResource to create a resource from a byte array and its content type. I then used this object's getResourceStream() method to return an IResourceStream, to get an InputStream and read it into a byte array. (I do this as part of my

Re: Creating a resource from a byte array and its content type

2011-09-15 Thread Martin Grigorov
org.apache.wicket.request.resource.ByteArrayResource is not abstract. you just need org.apache.wicket.markup.html.image.NonCachingImage.NonCachingImage(String, IResource) ByteArrayResource can work with static byte[] or with dynamic - see

Re: LocaleFirstMapper in wicket 1.5

2011-09-15 Thread Bas Gooren
Another question regarding LocaleFirstMapper: in mapHandler() it always adds the locale as the first segment. In wicket 1.4 a url could start with ../-strings in the IRequestCodingStrategy.encode() call. Wicket would generate a relative url to the wicket filter. Since LocaleFirstMapper

Re: LocaleFirstMapper in wicket 1.5

2011-09-15 Thread Martin Grigorov
The code that makes the Url relative is executed after #mapHandler(IRequestHandler) On Thu, Sep 15, 2011 at 2:49 PM, Bas Gooren b...@iswd.nl wrote: Another question regarding LocaleFirstMapper: in mapHandler() it always adds the locale as the first segment. In wicket 1.4 a url could start

Re: LocaleFirstMapper in wicket 1.5

2011-09-15 Thread Bas Gooren
So does that mean that all urls generated by mapHandler() are relative to the wicket filter, and are later made relative to the current page url? When looking at RequestCycle.urlFor() and UrlRenderer it appears this way. Op 15-9-2011 14:00, schreef Martin Grigorov: The code that makes the Url

Re: static validators feedback unrendered on page with multiple forms and feedback filtered

2011-09-15 Thread Andrea Del Bene
Hi, are form1 and form2 nested inside another form? hi, got the following composite: page |-form1 | |-field1 | | |-StringValidator.MaximumLengthValidator [1] | |-feedbackPanel1(ComponentFeedbackMessageFilter(form1) [3]) |-form2 |-field2 |

GAE, DataView and performance

2011-09-15 Thread Chris Merrill
I'm using Objectify for datastore access in GAE, though the problem would be the same if I was using the datastore API directly. For optimal performance, Google recommends doing batch requests to the datastore whenever possible - they say making the requests in parallel is much faster than

Re: GAE, DataView and performance

2011-09-15 Thread manuelbarzi
may you execute the query db in IDataProvider.iterator, instead of populateItem. see IDataProvider javadoc. . On Thu, Sep 15, 2011 at 3:16 PM, Chris Merrill ch...@webperformance.com wrote: I'm using Objectify for datastore access in GAE, though the problem would be the same if I was using the

Re: Creating a resource from a byte array and its content type

2011-09-15 Thread Ian Marshall
I don't know why I said that ByteArrayResource was abstract. Sorry about that; I got it mixed up with another class. I need to keep my byte array wrapped in a LoadableDetachableModel, in order to prevent the array being stored in the page and session, so I do not supply an IResource to the

Re: Creating a resource from a byte array and its content type

2011-09-15 Thread Martin Grigorov
On Thu, Sep 15, 2011 at 5:13 PM, Ian Marshall ianmarshall...@gmail.com wrote: I don't know why I said that ByteArrayResource was abstract. Sorry about that; I got it mixed up with another class. I need to keep my byte array wrapped in a LoadableDetachableModel, in order to prevent the array

Re: Creating a resource from a byte array and its content type

2011-09-15 Thread Ian Marshall
I used my other method instead of using ByteArrayResource directly, in order to reduce session size. I therefore presume that I was using ByteArrayResource incorrectly for that reduction to happen! Martin Grigorov-4 wrote: On Thu, Sep 15, 2011 at 5:13 PM, Ian Marshall

Display HTML in Label with validation

2011-09-15 Thread Daniel Stoch
Hi, How to display dynamic HTML content on page which can be invalid (because this HTML is entered by a user). I can use Label.setEscapeModelStrings(false), but with invalid HTML content the page will not be rendered (because of HTML parsing error). So maybe I can use some of standard Wicket

Panel Loop

2011-09-15 Thread Fred
Hello, I have a panel to which I want to add multiple items. I have put it into a loop and as long as I have only one panel I am good, with more than one it errorsI get why it errors, it has a panel with that name already, however I have no idea how to solve this. Can I create a list of the

Re: Panel Loop

2011-09-15 Thread Bas Gooren
Have a look at repeaters (e.g. RepeatingView and ListView). Op 15-9-2011 17:10, schreef Fred: Hello, I have a panel to which I want to add multiple items. I have put it into a loop and as long as I have only one panel I am good, with more than one it errorsI get why it errors, it has a panel

Re: Panel Loop

2011-09-15 Thread manuelbarzi
may you need a RepeatingView. see javadoc. . On Thu, Sep 15, 2011 at 5:10 PM, Fred smiths...@hotmail.com wrote: Hello, I have a panel to which I want to add multiple items. I have put it into a loop and as long as I have only one panel I am good, with more than one it errorsI get why it

Default Captcha Implementation in Wicket 1.5

2011-09-15 Thread Erinc Arikan
Hi everybody; I am a newbie, so I hope my question won't be too trivial, I've been going through some examples, I am currently using Wicket 1.5 and I just included latest wicket extensions jar to my build path(which is 3 years old) String imagePass = randomString(6, 8); add(new Image(challenge,

Re: Display HTML in Label with validation

2011-09-15 Thread manuelbarzi
may HtmlDocumentValidator help you. . On Thu, Sep 15, 2011 at 5:05 PM, Daniel Stoch daniel.st...@gmail.com wrote: Hi, How to display dynamic HTML content on page which can be invalid (because this HTML is entered by a user). I can use Label.setEscapeModelStrings(false), but with invalid

Re: Panel Loop

2011-09-15 Thread Fred
Thanks! worked with: RepeatingView view = new RepeatingView(people); for(People person : searchResponse.getAll()) { for(Employees employee : person.getEmployees()) { for(District dis : person.getDistrict()) { view.add(new

Minor typo in the Migration to Wicket 1.5 guide?

2011-09-15 Thread Ian Marshall
Under the final section List of renamed classes and methods, should the first 1.4 class listed not be org.apache.wicket.request.resource.ResourceReference but org.apache.wicket.ResourceReference? -- View this message in context:

HomePage with PageParameters wicket 1.5

2011-09-15 Thread Mikko Pukki
Hi, Is there any reasonable way to set PageParameters for home page. In wicket 1.4 it was possible to override WebRequestCycleProcessor's resolveHomePageTarget method and add RequestParameters for the request. We do use this functionality because application has customizable home pages per user

Re: Default Captcha Implementation in Wicket 1.5

2011-09-15 Thread Igor Vaynberg
wicket 1.5 jars are not three years old, so you probably have the wrong jar to see how to implement the catcha see the captcha example in wicket-examples. live one here: http://www.wicketstuff.org/wicket/captcha -igor On Thu, Sep 15, 2011 at 8:31 AM, Erinc Arikan erincari...@gmail.com wrote:

Re: HomePage with PageParameters wicket 1.5

2011-09-15 Thread Igor Vaynberg
i dont really understand your question. homepage should be accessible without parameters, but in any case urlfor(homepage.class, pageparameters) should generate a correct url... -igor On Thu, Sep 15, 2011 at 9:06 AM, Mikko Pukki mikko.pu...@syncrontech.com wrote: Hi, Is there any reasonable

Re: Default Captcha Implementation in Wicket 1.5

2011-09-15 Thread Erinc Arikan
Hi Igor; Thanks for the response. Jar file that is three years old isn't wicket 1.5.0 jar, it's the wicket-extensions jar. I already checked the example that you posted, it's importing from import org.apache.wicket.extensions.markup.html.captcha.CaptchaImageResource ; I am using

Re: Default Captcha Implementation in Wicket 1.5

2011-09-15 Thread Dan Retzlaff
http://repo1.maven.org/maven2/org/apache/wicket/wicket-extensions/ On Thu, Sep 15, 2011 at 10:13 AM, Erinc Arikan erincari...@gmail.comwrote: Hi Igor; Thanks for the response. Jar file that is three years old isn't wicket 1.5.0 jar, it's the wicket-extensions jar. I already checked the

Re: HomePage with PageParameters wicket 1.5

2011-09-15 Thread Martin Grigorov
The home page cannot have indexed parameters (/indexed1/indexed2) because this way it will match every request which is not matched by another mapper with higher compatibility score. But it should work with query parameters (/?param1=value1...) On Thu, Sep 15, 2011 at 7:06 PM, Mikko Pukki

Re: Minor typo in the Migration to Wicket 1.5 guide?

2011-09-15 Thread Martin Grigorov
fixed the wiki is editable by everyone. improve it! ;-) On Thu, Sep 15, 2011 at 7:03 PM, Ian Marshall ianmarshall...@gmail.com wrote: Under the final section List of renamed classes and methods, should the first 1.4 class listed not be  org.apache.wicket.request.resource.ResourceReference

Re: Minor typo in the Migration to Wicket 1.5 guide?

2011-09-15 Thread Ian Marshall
Good point, Martin. I never noticed the Edit Page link at the top of the migration guide until your post. Next time, I'll (register and) log on to the Apache Software Foundation and submit minor typo corrections myself. Martin Grigorov-4 wrote: fixed the wiki is editable by everyone.

Stateful pages without page Id in the url

2011-09-15 Thread hok
Hello, I have an application where all the pages are stateful (have ajax components in them). However, most of the pages are also bookmarkable and can be fully restored via the PageParameters. In addition to this, some of pages with input forms contain unmanaged hibernate entities (unmanaged,

Re: Stateful pages without page Id in the url

2011-09-15 Thread Pedro Santos
Hi, yes you can, but F5 will instance the page again and its state will get lost. I think the problem is related to https://issues.apache.org/jira/browse/WICKET-4014 Can you open a ticket so we can track it? 2011/9/15 hok ivanvasi...@gmail.com Hello, I have an application where all the pages

Re: Stateful pages without page Id in the url

2011-09-15 Thread hok
Thanks for the fast response. In my case though, I have pages that are defined by their page parameters, so even if the page is expired, pressing F5 would reload the same page from the server (and it's not important if the state is lost). However if I'm using the aforementioned

MixedParamUrlCodingStrategy and form submit

2011-09-15 Thread Alexander Gubin
Googled around, but no clear answer: In my app I mount a page like this: mount(new MixedParamUrlCodingStrategy(/store/product, ItemPage.class, new String[]{itemId, itemName})); which gives me a URL store/product/45336/some-name I have a form on the resulting page, which on submit sends me

Re: Stateful pages without page Id in the url

2011-09-15 Thread Martin Grigorov
If WICKET-4014 is the reason then the following workaround should revert it: @Override public Url mapHandler(IRequestHandler requestHandler) { if (requestHandler instanceof ListenerInterfaceRequestHandler) { return null; } else {

Re: Wicket 1.5: request mapper to make all urls absolute

2011-09-15 Thread Bas Gooren
Ok, I've been playing around with this, and it doesn't work. WebPageRenderer#respond() compares the current url to the target url. The current url is always normalized (without context path), so if my absolute mapper generates a target url which is absolute, and as such includes the context

Re: Stateful pages without page Id in the url

2011-09-15 Thread hok
Thanks Martin, your solution seems to work. There are two cases where I need stateful pages without page id. The first one is for purely aesthetic reasons and concerns bookmarkable pages which can be opened with page parameters. The second is a bit more important. I have a user profile page,

Re: Stateful pages without page Id in the url

2011-09-15 Thread Dan Retzlaff
We have use cases similar to this. For explanation purposes, consider a User class that has a collection of Features. We have an IModelListFeature implementation called EntityListModelFeature. This class maintains a list of feature IDs within its implementation (the actual list of Features is

Re: Create a stand-alone link and get its URL

2011-09-15 Thread Alec Swan
Great idea, worked like a charm. Thanks! On Tue, Sep 13, 2011 at 8:19 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: create a single metadata key that holds a mapstring,object where string is a uuid. -igor On Tue, Sep 13, 2011 at 5:40 PM, Alec Swan alecs...@gmail.com wrote: Great idea,

IHeaderContributor#renderHead does not inject CSS on panel swap

2011-09-15 Thread Alec Swan
Hello, Our app uses panel swapping as a tabbing implementation. I noticed that if I inject CSS using component.add(CSSPackageResource.getHeaderContribution(resourceRef, media)) during panel construction, then the CSS is included correctly and takes effect after the panel swap. However, if I

Re: IHeaderContributor#renderHead does not inject CSS on panel swap

2011-09-15 Thread Igor Vaynberg
that should work, please create a quickstart. -igor On Thu, Sep 15, 2011 at 8:06 PM, Alec Swan alecs...@gmail.com wrote: Hello, Our app uses panel swapping as a tabbing implementation. I noticed that if I inject CSS using component.add(CSSPackageResource.getHeaderContribution(resourceRef,

AjaxSubmitLink 1.4.18 issue/not working

2011-09-15 Thread Wayne W
Hi, I'm trying to upgrade from 1.4.8 to 1.4.18 and I'm finding that AjaxSubmitLink is not working (at least with one form). The form doesn't get submitted - the problem in wicket-ajax.js is (~line 1120): // Submits a form using ajax. // This method serializes a form and sends it as