Re: Question about Resource Management changes in Wicket 8

2024-06-08 Thread Chris Colman
When you mentioned overriding renderHead it triggered a memory of a change to the API from Wicket <= 6 to Wicket >=7: "org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964 Component#renderHead(HtmlHeaderContainer

Re: Question about Resource Management changes in Wicket 8

2024-06-07 Thread Bas Gooren
Hi Kyle, I’ve been using for Wicket for a long time and have never seen anything like what you describe (auto-adding of resources). Just to check my assumptions I had a look again at the source code of wicket’s application, webapplication and page classes for the 6.21 tag, and don’t see any code

Question about Resource Management changes in Wicket 8

2024-06-06 Thread Kyle Bibby
Hello, I have a large project that I am upgrading from Wicket 6 to Wicket 8. Yes, it's fairly old. As I am working through the various changes one issue has stumped me. With Wicket 8, my javascript/CSS resources that are added to my WicketApplication are no longer being automatically added to my w

Re: Question about Wicket 10.0.0-M2

2024-02-06 Thread Martin Grigorov
Hi Tom, It seems that you run your application with modulePath (JPMS) instead of classpath. But your application is not a JPMS module itself - "unnamed module". I guess you just need to disable JPMS for Maven Surefire plugin - https://stackoverflow.com/a/73654342/497381 On Tue, Feb 6, 2024 at 3:3

Question about Wicket 10.0.0-M2

2024-02-06 Thread Tom Benjamins
Hello, I was wondering whether this is the correct mailinglist to send a quiestion about upgrading a Wicket 9 application to Wicket 10. I have upgraded from Wicket 9.15 to 10.0.0-M2, Java 17 and Spring Boot 3.2 I have a regression/ test which uses a CachingPageStore and during the adding of a

Re: Question about log warning: "IndicatingAjaxButton should be applied on a 'button' tag"

2023-06-29 Thread Martin Grigorov
https://github.com/sebfz1/wicket-jquery-ui/issues/359 On Thu, Jun 29, 2023 at 2:43 PM Shawn McKinney wrote: > > > On Jun 29, 2023, at 6:30 AM, Shawn McKinney wrote: > > > > > > Which begs the question. What happens when we use the wicket extensions > instead? > > > > (Don’t know but I’ll find o

Re: Question about log warning: "IndicatingAjaxButton should be applied on a 'button' tag"

2023-06-29 Thread Shawn McKinney
> On Jun 29, 2023, at 6:30 AM, Shawn McKinney wrote: > > > Which begs the question. What happens when we use the wicket extensions > instead? > > (Don’t know but I’ll find out) The answer is it works as expected (with no warnings). The solution: use wicket extensions not googlecode. Ver

Re: Question about log warning: "IndicatingAjaxButton should be applied on a 'button' tag"

2023-06-29 Thread Shawn McKinney
> On Jun 29, 2023, at 3:25 AM, Martin Grigorov wrote: > > I don't see such code at > https://github.com/apache/wicket/blob/master/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/IndicatingAjaxButton.java > Is your IndicatingAjaxButton.java part of some third party

Re: Question about log warning: "IndicatingAjaxButton should be applied on a 'button' tag"

2023-06-29 Thread Martin Grigorov
On Wed, Jun 28, 2023 at 4:08 PM Shawn McKinney wrote: > Howdy, > > I’m a little embarrassed to be asking. It seems so basic, should know it > already. > > But, I’ve already spent a fair amount of time digging with no answers. > > My usage of Ajax buttons generates this warning in the logs: > > ``

Re: Question about log warning: "IndicatingAjaxButton should be applied on a 'button' tag"

2023-06-28 Thread Shawn McKinney
> On Jun 28, 2023, at 8:23 AM, Ernesto Reinaldo Barreiro > wrote: > > I think your question has been correctly answered already. But, anyways, it > is pleasant to have questions in wicket's users list :-) Indeed. Handled REALLY quickly! Next time I won’t wait so long to ask my dumb question

Re: Question about log warning: "IndicatingAjaxButton should be applied on a 'button' tag"

2023-06-28 Thread Shawn McKinney
> On Jun 28, 2023, at 8:27 AM, Bas Gooren wrote: > > Hi Shawn, > > That’s more of a styling issue. > > uses the “value” attribute to render the button text. > > For a you’ll need to put the value inside the button tag: > value goes here > Ah yes, that’s it. Thank you Bas! For completen

Re: Question about log warning: "IndicatingAjaxButton should be applied on a 'button' tag"

2023-06-28 Thread Ernesto Reinaldo Barreiro
This is true. Looking at the source code I don't why it needs to be a button :-) On Wed, Jun 28, 2023 at 4:34 PM Martin Grigorov wrote: > For me the real question is why is not supported too > ?! > IMO this is a bug! > > On Wed, Jun 28, 2023 at 4:28 PM Ernesto Reinaldo Barreiro < > reier...@gma

Re: Question about log warning: "IndicatingAjaxButton should be applied on a 'button' tag"

2023-06-28 Thread Ernesto Reinaldo Barreiro
I mean something like this: ;Wicket.Event.subscribe('/ajax/call/beforeSend', function(jqEvent, attributes, jqXHR, errorThrown, textStatus) { pageLoadingFrame("show"); }); Wicket.Event.subscribe('/ajax/call/failure', function(jqEvent, attributes, jqXHR, errorThrown, textStatus) { pageLoadingFrame(

Re: Question about log warning: "IndicatingAjaxButton should be applied on a 'button' tag"

2023-06-28 Thread Martin Grigorov
For me the real question is why is not supported too ?! IMO this is a bug! On Wed, Jun 28, 2023 at 4:28 PM Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > By the way... in almost all wicket applications I have worked with we had a > blocking div covering the page and activated/deactivat

Re: Question about log warning: "IndicatingAjaxButton should be applied on a 'button' tag"

2023-06-28 Thread Ernesto Reinaldo Barreiro
By the way... in almost all wicket applications I have worked with we had a blocking div covering the page and activated/deactivated via global AJAX listeners. On Wed, Jun 28, 2023 at 4:24 PM Shawn McKinney wrote: > > > On Jun 28, 2023, at 8:11 AM, Bas Gooren wrote: > > > > Hi Shawn, > > > > Th

Re: Question about log warning: "IndicatingAjaxButton should be applied on a 'button' tag"

2023-06-28 Thread Bas Gooren
Hi Shawn, That’s more of a styling issue. uses the “value” attribute to render the button text. For a you’ll need to put the value inside the button tag: value goes here Met vriendelijke groet, Kind regards, Bas Gooren Op 28 juni 2023 bij 15:24:44, Shawn McKinney (smckin...@symas.com) schre

Re: Question about log warning: "IndicatingAjaxButton should be applied on a 'button' tag"

2023-06-28 Thread Ernesto Reinaldo Barreiro
You need to put something inside the button for it not to be tiny On Wed, Jun 28, 2023 at 4:24 PM Shawn McKinney wrote: > > > On Jun 28, 2023, at 8:11 AM, Bas Gooren wrote: > > > > Hi Shawn, > > > > The code basically checks if you apply the behavior to a > element. > > > > In other words: > >

Re: Question about log warning: "IndicatingAjaxButton should be applied on a 'button' tag"

2023-06-28 Thread Shawn McKinney
> On Jun 28, 2023, at 8:11 AM, Bas Gooren wrote: > > Hi Shawn, > > The code basically checks if you apply the behavior to a element. > > In other words: > > is considered an “invalid” element for this behavior. > > is considered “valid”. > Hello, As part of my scientific ‘poke and hop

Re: Question about log warning: "IndicatingAjaxButton should be applied on a 'button' tag"

2023-06-28 Thread Ernesto Reinaldo Barreiro
I think your question has been correctly answered already. But, anyways, it is pleasant to have questions in wicket's users list :-) On Wed, Jun 28, 2023 at 4:08 PM Shawn McKinney wrote: > Howdy, > > I’m a little embarrassed to be asking. It seems so basic, should know it > already. > > But, I’

Re: Question about log warning: "IndicatingAjaxButton should be applied on a 'button' tag"

2023-06-28 Thread Dirk Forchel
Hi Shawn, look at your markup and you will see, that the tag is not a -tag, it's an -tag.  If you change the markup the warning disappears. Dirk Am 28.06.2023 um 15:07 schrieb Shawn McKinney: Howdy, I’m a little embarrassed to be asking. It seems so basic, should know it already. But, I’ve

Re: Question about log warning: "IndicatingAjaxButton should be applied on a 'button' tag"

2023-06-28 Thread Bas Gooren
Hi Shawn, The code basically checks if you apply the behavior to a element. In other words: is considered an “invalid” element for this behavior. is considered “valid”. Met vriendelijke groet, Kind regards, Bas Gooren Op 28 juni 2023 bij 15:08:52, Shawn McKinney (smckin...@symas.com) schr

Question about log warning: "IndicatingAjaxButton should be applied on a 'button' tag"

2023-06-28 Thread Shawn McKinney
Howdy, I’m a little embarrassed to be asking. It seems so basic, should know it already. But, I’ve already spent a fair amount of time digging with no answers. My usage of Ajax buttons generates this warning in the logs: ``` WARN - 28 Jun 2023 07:35:56,704 - IndicatingAjaxButton - In

Re: Question about IChoiceRenderer

2018-10-30 Thread Martin Terra
I would definitely recommend leveraging the class hierarcy of DropDownChoice/AbstractSingleSelectChoice in case you are using a single select, and if it is multi select then respective ListMultipleChoice. This way you can leverage the existing implementation of isSelected etc. ** Martin ti 30. l

Re: Question about IChoiceRenderer

2018-10-30 Thread Claudia Hirt
Thanks for the tip Martin Terra! And thank you for the example code Martin Grigorov! Good to know I'm on the right track. I still have one proplem left, I know it really is a minor thing. I developed a framework component for a group selectbox which takes a HashMap containing the optgroups a

Re: Question about IChoiceRenderer

2018-10-30 Thread Martin Terra
e > > id > > > out of it. In case you cannot get such id then you may use the passed > > > index, but in this case you have to make sure that the same index is > > always > > > used for this object instance (as the javadoc explains). > > > > > >

Re: Question about IChoiceRenderer

2018-10-30 Thread Martin Grigorov
gt; > > > Wicket-Extensions' Select doesn't use IChoiceRenderer at all, so I don't > > see what is the relation to the first part of your question. > > > >> On Fri, Oct 26, 2018 at 2:54 PM Claudia Hirt > wrote: > >> > >> Hi all, > &g

Re: Question about IChoiceRenderer

2018-10-30 Thread Claudia Hirt
c explains). > > Wicket-Extensions' Select doesn't use IChoiceRenderer at all, so I don't > see what is the relation to the first part of your question. > >> On Fri, Oct 26, 2018 at 2:54 PM Claudia Hirt wrote: >> >> Hi all, >> >> i have a que

Re: Question about IChoiceRenderer

2018-10-30 Thread Martin Grigorov
54 PM Claudia Hirt wrote: > Hi all, > > i have a question about IChoiceRenderer used for Selectboxes. > > There is a method String getIdValue(Tobject, int index) to get the unique > id value of an option object. > The javadoc says the following: > > "This metho

Question about IChoiceRenderer

2018-10-26 Thread Claudia Hirt
Hi all, i have a question about IChoiceRenderer used for Selectboxes. There is a method String getIdValue(Tobject, int index) to get the unique id value of an option object. The javadoc says the following: "This method is called to get the id value of an object (used as the

Re: Question about

2017-05-25 Thread Claudia Hirt
Created wicket-6377. Thanks for the quick response. > Am 24.05.2017 um 23:07 schrieb Andrea Del Bene : > > Hi, > > I think it's actually a bug. Could you open an issue on JIRA? > > Andrea. > > PS: thank you for investigating the issue! > >> On 24/05/2017 18:45, Claudia Hirt wrote: >> Sorry,

Re: Question about

2017-05-24 Thread Andrea Del Bene
Hi, I think it's actually a bug. Could you open an issue on JIRA? Andrea. PS: thank you for investigating the issue! On 24/05/2017 18:45, Claudia Hirt wrote: Sorry, I think my description was a little unspecific. The problem appears with the following HTML-code: with autolinking set

Re: Question about

2017-05-24 Thread Claudia Hirt
Sorry, I think my description was a little unspecific. The problem appears with the following HTML-code: with autolinking set to true. This leads to the following exception: org.apache.wicket.markup.MarkupException: Unable to find component with id 'top' in [WebMarkupContainer [Compone

Re: Question about

2017-05-23 Thread Martin Grigorov
Hi, It is not very clear how your code looks like. Could you please provide more information the setup and how WICKET-6289 breaks it ? A quickstart application would be the best way to show us! You can share it via GitHub/BitBucket or even attach it to a ticket in JIRA! Thank you! Martin Grigorov

Question about

2017-05-23 Thread Claudia Hirt
Hi all, there's something I came across when trying to migrate an application to Wicket 7.7. When using an anchor link like with autmatic linking activated (getMarkupSettings().setAutomaticLinking(true)) the AutolinkResolver breaks my hierarchy. This does not appear when encapsulating the t

Re: Question about ajax encoding/decoding, problem with image data url

2017-05-03 Thread Martin Makundi
My bad. Problem solved, accidentally this part of code was within a block of markup text where all whitespace was replaced with non breaking space. Nbsp looks the same for naked eye but a diff tool shows the difference, and obviously browser will render differently compared to https://twitter.co

Re: Question about ajax encoding/decoding, problem with image data url

2017-05-03 Thread Martin Makundi
Really strange, works on same installation in simpler installation. No difference in http traffic... 2017-05-03 18:07 GMT+03:00 Martin Makundi < martin.maku...@koodaripalvelut.com>: > Interesting, it works in a quickstart also on v1.4. > > Need to investigate more. > > 2017-05-03 17:20 GMT+03:00

Re: Question about ajax encoding/decoding, problem with image data url

2017-05-03 Thread Martin Makundi
Interesting, it works in a quickstart also on v1.4. Need to investigate more. 2017-05-03 17:20 GMT+03:00 Martin Grigorov : > I don't see any reason why this could break. > If you are able to reproduce it in a quickstart with 6.26/7.6 then please > create a ticket in JIRA. > > Check what is in th

Re: Question about ajax encoding/decoding, problem with image data url

2017-05-03 Thread Martin Grigorov
I don't see any reason why this could break. If you are able to reproduce it in a quickstart with 6.26/7.6 then please create a ticket in JIRA. Check what is in the Ajax response, not what is in the DOM. Also you can check with Google Chrome. Maybe Firefox does something funky. Martin Grigorov Wi

Re: Question about ajax encoding/decoding, problem with image data url

2017-05-03 Thread Martin Makundi
Here is a sample how it works in jsfiddle without problems: https://jsfiddle.net/#&togetherjs=0SQvHmm6Nj But when same content is in ajax update it breaks. Wonder what happens to it before render? 2017-05-03 16:06 GMT+03:00 Martin Makundi < martin.maku...@koodaripalvelut.com>: > Hi! > > I am try

Question about ajax encoding/decoding, problem with image data url

2017-05-03 Thread Martin Makundi
Hi! I am trying to display (wicket 1.4) an image using base64 image data representation. For some reason the base64 gets garbled every time with ajax. For example: src="data:image/png;base64,iVBORw0KGgoNSUhEUgAAAcIAAACWCAYAAABNcIgQAAAKUklEQVR4nO3dzYoc1xkG4PcS+g5cVxDmAmzoC/BCm5BANrMIWXilCwgI

Re: Question About ModalWindows and IEventSink

2016-02-12 Thread Ernesto Reinaldo Barreiro
Hi, On Fri, Feb 12, 2016 at 3:34 PM, Aaron J. Garcia wrote: > Aaron J. Garcia rentec.com> writes: > > > > > Hi Martin & Sven, > > > > Thanks for your replies! > > > > I ended up sending getPage().getPageId(). Is the better practice to use > a > > PageReference? If so, I'll change my code to

Re: Question About ModalWindows and IEventSink

2016-02-12 Thread Aaron J . Garcia
Aaron J. Garcia rentec.com> writes: > > Hi Martin & Sven, > > Thanks for your replies! > > I ended up sending getPage().getPageId(). Is the better practice to use a > PageReference? If so, I'll change my code to use that instead. > > Secondly, I had no idea that you could use a Panel for th

Re: Question About ModalWindows and IEventSink

2016-02-12 Thread Aaron J . Garcia
Hi Martin & Sven, Thanks for your replies! I ended up sending getPage().getPageId(). Is the better practice to use a PageReference? If so, I'll change my code to use that instead. Secondly, I had no idea that you could use a Panel for the contents of a ModalWindow. I always thought you needed

Re: Question About ModalWindows and IEventSink

2016-02-12 Thread Sven Meier
Hi, > to pass a message from the content of my ModalWindow back to the ModalWindow itself why would you want to do that? Your ModalWindow is part of another page, so it cannot update itself in the same request. > getPage().getParent() returns null. Is there a reason for this? Each page ins

Re: Question About ModalWindows and IEventSink

2016-02-12 Thread Martin Grigorov
Hi, It is a bad practice to keep references from one page to another. Keeping reference means that serializing any of the pages will serialize the other too. For that reason there is PageReference class. You could use it to keep a "weak" reference to another page. It keeps just the page id, so it

Question About ModalWindows and IEventSink

2016-02-11 Thread Aaron J . Garcia
Hi Everyone, ModalWindow has a "setPageCreator()" method, to set the page that you want to display inside of the ModalWindow. I've never used Wicket's event infrastructure, but I decided to use it today to pass a message from the content of my ModalWindow back to the ModalWindow itself. Apparent

Re: a little question about add(new XComponent("id").setVisible(false))

2013-12-17 Thread Paul Bors
> > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/a-little-question-about-add-new-XComponent-id-setVisible-false-tp4663041p4663072.html > Sent from the Users forum mailing list archive at Nabble.com. > > ---

Re: a little question about add(new XComponent("id").setVisible(false))

2013-12-17 Thread Serban.Balamaci
I've found it nicely explained here: http://wicketguide.comsysto.com/guide/chapter6.html#chapter6_4 seems it's a great guide. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/a-little-question-about-add-new-XComponent-id-setVisible-false-tp4663041p4663072

Re: a little question about add(new XComponent("id").setVisible(false))

2013-12-17 Thread Martin Grigorov
the rendering > process? > I'm not aware of such in the public area. I do have it in the my training materials. > > Best regards, > Decebal > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/a-little-question-about-add-

Re: a little question about add(new XComponent("id").setVisible(false))

2013-12-17 Thread Decebal Suiu
ering process? Best regards, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/a-little-question-about-add-new-XComponent-id-setVisible-false-tp4663041p4663065.html Sent from the Users forum mailing list a

Re: a little question about add(new XComponent("id").setVisible(false))

2013-12-16 Thread Bas Gooren
ot called if MyPanel is not visible. My impression was that in onBeforeRender I cannot change the hierarchy (add children). The 100 children was a random number that show you that my panel contains many components :) Thanks, Decebal -- View this message in context: http://apache-wicket.1842

Re: a little question about add(new XComponent("id").setVisible(false))

2013-12-16 Thread Decebal Suiu
100 children was a random number that show you that my panel contains many components :) Thanks, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/a-little-question-about-add-new-XComponent-id-setVisible-false-tp4663041p466

Re: a little question about add(new XComponent("id").setVisible(false))

2013-12-16 Thread vineet semwal
ent is invisible > so don't bother to create the children". > > I know about the request cycle (not in details) and that it's impossible > for > now, I know that my "issue" is a philosophical issue but maybe someone has > a > good question. > > Best regards

a little question about add(new XComponent("id").setVisible(false))

2013-12-16 Thread Decebal Suiu
bother to create the children". I know about the request cycle (not in details) and that it's impossible for now, I know that my "issue" is a philosophical issue but maybe someone has a good question. Best regards, Decebal -- View this message in context: http://apache-

Re: Wicket DropDownChoice Question about Constructors and its Behavior

2013-09-26 Thread Paul Borș
See section 9.2.2 "CompoundPropertyModel and model inheritance" of the Wicket Free Guide: http://wicket.apache.org/learn/books/freeguide.html Direct link: https://wicket-guide.googlecode.com/files/Wicket%20free%20guide.pdf#page77 I think you're confusing components with null models (hence they l

Re: Wicket DropDownChoice Question about Constructors and its Behavior

2013-09-26 Thread Patrick Davids
Hmm... ok, does that mean, in forms I do not have to wrap my model(object) into a CompundPropertyModel, because DropDownList (or even all FormComponents?) automatically joins IComponentInheritedModel hierarchy? So, as conclusion, by using a constuctor with an empty model (id, new Model(), List

Re: Wicket DropDownChoice Question about Constructors and its Behavior

2013-09-26 Thread Ernesto Reinaldo Barreiro
I think if you do not provide a model wicket will try to find a parent with a IComponentInheritedModel and use that as the model (to set the object with the same name you passed as ID) On Thu, Sep 26, 2013 at 9:39 AM, Patrick Davids wrote: > Hi all, > > since I'm working with Wicket I am a bit c

Re: Wicket DropDownChoice Question about Constructors and its Behavior

2013-09-26 Thread Martin Grigorov
Hi, This use case will work only when the DropDownChoice has a parent in the hierarchy with org.apache.wicket.model.IComponentInheritedModel, like org.apache.wicket.model.CompoundPropertyModel. In this case the dropdown will use a slot from its parent's IComponentInheritedModel. On Thu, Sep 26,

Wicket DropDownChoice Question about Constructors and its Behavior

2013-09-26 Thread Patrick Davids
Hi all, since I'm working with Wicket I am a bit confused about the Constructors of DropDownChoice Class. DropDownChoice provides Constructors without any Model or ModelObject. e.g. (id, List choices) This is logical in an use-case, for instance, having just a page with a SelectBox and my firs

Re: question about page variable in AjaxRequestHandler

2013-03-28 Thread Andrew Geery
Done: https://issues.apache.org/jira/browse/WICKET-5121 Thanks Andrew On Thu, Mar 28, 2013 at 4:09 AM, Martin Grigorov wrote: > Hi, > > On Thu, Mar 28, 2013 at 3:54 AM, Andrew Geery wrote: > >> I just wanted to confirm that add(Component...) in AjaxRequestHandler >> will only work with (i.e., re

Re: question about page variable in AjaxRequestHandler

2013-03-28 Thread Martin Grigorov
Hi, On Thu, Mar 28, 2013 at 3:54 AM, Andrew Geery wrote: > I just wanted to confirm that add(Component...) in AjaxRequestHandler > will only work with (i.e., refresh) components that are on the same > page as the page associated with the AjaxRequestHandler. > > I had a case where the content of a

question about page variable in AjaxRequestHandler

2013-03-27 Thread Andrew Geery
I just wanted to confirm that add(Component...) in AjaxRequestHandler will only work with (i.e., refresh) components that are on the same page as the page associated with the AjaxRequestHandler. I had a case where the content of a ModalWindow was a WebPage. In the modal window, there was an AjaxL

Re: Question about name suffix that wicket appends to ResourceReferences

2013-03-22 Thread Pointbreak
Thanks! On Fri, Mar 22, 2013, at 14:07, Thomas Götz wrote: > Please have a look at FilenameWithVersionResourceCachingStrategy. > >-Tom > > > On 22.03.2013, at 14:01, Pointbreak > wrote: > > > When rendering the header items for packeded resource references, wicket > > appends a suffix lik

Re: Question about name suffix that wicket appends to ResourceReferences

2013-03-22 Thread Thomas Götz
Please have a look at FilenameWithVersionResourceCachingStrategy. -Tom On 22.03.2013, at 14:01, Pointbreak wrote: > When rendering the header items for packeded resource references, wicket > appends a suffix like "-ver-1363953702887" to the name of the resource. > Can somebody point me add

Re: Question about name suffix that wicket appends to ResourceReferences

2013-03-22 Thread Martin Grigorov
Here you are: https://cwiki.apache.org/WICKET/caching-in-wicket-15.html On Fri, Mar 22, 2013 at 3:01 PM, Pointbreak wrote: > When rendering the header items for packeded resource references, wicket > appends a suffix like "-ver-1363953702887" to the name of the resource. > Can somebody point me

Question about name suffix that wicket appends to ResourceReferences

2013-03-22 Thread Pointbreak
When rendering the header items for packeded resource references, wicket appends a suffix like "-ver-1363953702887" to the name of the resource. Can somebody point me add the place in the code where this suffix is generated and/or document if/how this could be disabled (preferably on a case by case

Re: Question about UrlRenderer and WebServletResponse

2012-12-18 Thread Martin Grigorov
Hi, On Tue, Dec 18, 2012 at 10:41 AM, Thijs wrote: > Hi, > > I'm trying to revive Wicket Portlets support and I'm running into a small > issue. For Liferay i've got my old 1.4 portlets working 90% with Wicket 6 > but I'm hitting a small problem with the UrlRenderer and WebServletResponse > > Web

Question about UrlRenderer and WebServletResponse

2012-12-18 Thread Thijs
Hi, I'm trying to revive Wicket Portlets support and I'm running into a small issue. For Liferay i've got my old 1.4 portlets working 90% with Wicket 6 but I'm hitting a small problem with the UrlRenderer and WebServletResponse WebServletResponse does an optimization for tomcat in the sendRe

Re: Question about unit testing

2012-09-05 Thread Martin Makundi
; > "blue", but "please select" was rendered in the DDC, because myChoice("red") > was not equal to dropChoice("red"). > > Sorry for the pseudo code :-) > > So the DDC could not find out that the "red" of my model was the same as the

Re: Question about unit testing

2012-09-05 Thread Markward Schubert
was the same as the "red" in the choices list. Of course this would be a stupid bug, but i would like to protect my code against fellows changing the equals behavior. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Question-ab

Re: Question about unit testing

2012-09-05 Thread Martin Makundi
https://cwiki.apache.org/WICKET/type-safe-testing-in-wicket.html =) 2012/9/5 Markward Schubert : > Hi folks! > > I am sure this is a trivial question, but i am simply too dumb to figure > this out. > We have a DopDownChoice, which is prefilled by some modelvalue, given to > the page. > Until now

Re: [Conception] question about mixed entities and model

2012-04-13 Thread myrz
Ok thanks it was my idea too but I didn't know if it was right to do this. Thank you very much -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Conception-question-about-mixed-entities-and-model-tp4551789p4554139.html Sent from the Users forum mailing list archi

Re: [Conception] question about mixed entities and model

2012-04-12 Thread Francois Meillet
you populate it? > > Thanks again > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Conception-question-about-mixed-entities-and-model-tp4551789p4552250.html > Sent

Re: [Conception] question about mixed entities and model

2012-04-12 Thread myrz
Thanks François for your reply. But my real question is. "UserDetails" is it a bean that you created "by hand"? How do you populate it? Thanks again -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Conception-question-about-mixed-entities-and-mod

Re: [Conception] question about mixed entities and model

2012-04-12 Thread Francois Meillet
line1.setValue(event1.getType()); > lines.add(line1); > line2.setName(person1.getName()); > line2.setValue(mail1.gettext()); > lines.add(line2); > return lines; >} > } > > > I

[Conception] question about mixed entities and model

2012-04-12 Thread myrz
e2.setValue(mail1.gettext()); lines.add(line2); return lines; } } It's a stupid example but i have to do something like this. And i'm afraid not to respect good practices presents here (http://www.devproof.org/wicket_best_practice) and not understand something. -- Vie

Re: New guy's question about component refresh.

2012-03-20 Thread Ilkemdk
Thank you very much for your help. Currently I achieve the refresh effect by WebMarkupContainer. I will test your code later. Thank you very much! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/New-guy-s-question-about-component-refresh-tp4489029p4489407.html Sent

Re: New guy's question about component refresh.

2012-03-20 Thread Andrea Del Bene
} else { .. } } @Override protected void onError(AjaxRequestTarget ajaxRequestTarget, Form components) { . } }); -- View this message in context: http://apache-wic

Re: New guy's question about component refresh.

2012-03-20 Thread Ilkemdk
protected void onError(AjaxRequestTarget ajaxRequestTarget, Form components) { . } }); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/New-guy-s-question-about-component-refresh-tp4489029p4489316.html Sent from the Users

Re: New guy's question about component refresh.

2012-03-20 Thread Bertrand Guay-Paquet
uestTarget); } add(linkEdit); Form editModalContainer = new Form("editModalContainer"); editModalContainer.setOutputMarkupId(true); add(editModalContainer); editModalContainer.add(edit); Thank you very much! -- View this message in context: http://apa

Re: Question about Unit Testing with custom Session

2011-02-09 Thread Attila Király
Hi, 2011/2/9 Dmitriy Neretin > Thank you it finally works! :) > Great! > But what I still don't understand: the problem appeared after I inserted > following in the custom session constructor: > > InjectorHolder.getInjector().inject(this); > > And why it worked with only one WicketTester cons

Re: Question about Unit Testing with custom Session

2011-02-09 Thread Dmitriy Neretin
Thank you it finally works! :) But what I still don't understand: the problem appeared after I inserted following in the custom session constructor: InjectorHolder.getInjector().inject(this); And why it worked with only one WicketTester constructor parameter (new MyApplication)? And after Spring

Re: Question about Unit Testing with custom Session

2011-02-09 Thread Attila Király
The problem is that your test is not actualy running in a servlet container, only in a wicket mocked servlet context. To access webapp resources in the test you have to specify in the second parameter of WicketTester constructor where your web app's root is. Like this (in a maven project): WicketT

Re: Question about Unit Testing with custom Session

2011-02-09 Thread Dmitriy Neretin
Hi, thank you! Now I know how to get the ServletContext :) But it didn't solve the main problem. This time I got following exception: IOException parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.io.FileNotFoundException: Could not open

Re: Question about Unit Testing with custom Session

2011-02-09 Thread Attila Király
Hi, Try this in your application's #init() method (before calling #refresh() on ctx) ctx.setServletContext(getServletContext()); Attila 2011/2/9 Dmitriy Neretin > Thank you for reply, > > yes! And I get then another exception :) > > Cannot resolve ServletContextResource without ServletContext

Re: Question about Unit Testing with custom Session

2011-02-09 Thread Dmitriy Neretin
Thank you for reply, yes! And I get then another exception :) Cannot resolve ServletContextResource without ServletContext Does andybody know how can I get/set the servletContext? Dmitriy On 8 February 2011 18:01, Igor Vaynberg wrote: > did you call context.refresh() ? like the error message

Re: Question about Unit Testing with custom Session

2011-02-08 Thread Igor Vaynberg
did you call context.refresh() ? like the error message said? -igor On Tue, Feb 8, 2011 at 1:31 AM, Dmitriy Neretin wrote: > Hi, > > my complete setUp looks like this: > > @Before >    public void setUp() { >        MworldWicketApplication wicketWebApp = new MworldWicketApplication() > { > >    

Re: Question about Unit Testing with custom Session

2011-02-08 Thread Dmitriy Neretin
Hi, my complete setUp looks like this: @Before public void setUp() { MworldWicketApplication wicketWebApp = new MworldWicketApplication() { ApplicationContext ctx = new XmlWebApplicationContext(); @Override public void init() { add

Re: Question about Unit Testing with custom Session

2011-02-07 Thread Igor Vaynberg
make sure your setup() code runs before wicket tester instance is created. -igor On Mon, Feb 7, 2011 at 7:41 AM, Dmitriy Neretin wrote: > Hi, > > of course. The point is if I delete this: > > InjectorHolder.getInjector().inject(this); > > from my session class everything works fine :( > > On 7 F

Re: Question about Unit Testing with custom Session

2011-02-07 Thread Dmitriy Neretin
Hi, of course. The point is if I delete this: InjectorHolder.getInjector().inject(this); from my session class everything works fine :( On 7 February 2011 15:27, Martijn Dashorst wrote: > Did you provide the application to the wicket tester? > > WicketTester tester = new WicketTester(myapp); >

Re: Question about Unit Testing with custom Session

2011-02-07 Thread Martijn Dashorst
Did you provide the application to the wicket tester? WicketTester tester = new WicketTester(myapp); Martijn On Mon, Feb 7, 2011 at 2:10 PM, Dmitriy Neretin wrote: > Hello everybody, > > After integration with spring I have following problem: > > if I add following to my CustomSession: > > Inje

Re: Question about Unit Testing with custom Session

2011-02-07 Thread Pedro Santos
I guess the problem is on the ApplicationContext object. Debug its creation and see if it has all your beans. You can use another implementation for tests, ex: FileSystemXmlApplicationContext On Mon, Feb 7, 2011 at 11:10 AM, Dmitriy Neretin < dmitriy.nere...@googlemail.com> wrote: > Hello everybo

Question about Unit Testing with custom Session

2011-02-07 Thread Dmitriy Neretin
Hello everybody, After integration with spring I have following problem: if I add following to my CustomSession: InjectorHolder.getInjector().inject(this); (because I store some spring beans in the custom session) My WicketTester doesn't work anymore. I get this exception: "BeanFactory not init

Re: Question about stateless forms

2011-01-18 Thread Igor Vaynberg
not sure if its a "bug", but its definitely a better way of handling stateless form submits i think. and yes, file a jira. -igor 2011/1/18 Major Péter : > So is this a bug? Should I create a JIRA issue for this? > > Thanks, > Peter > > 2011-01-15 23:14 keltezéssel, Igor Vaynberg írta: >> >> my fi

Re: Question about stateless forms

2011-01-18 Thread Major Péter
So is this a bug? Should I create a JIRA issue for this? Thanks, Peter 2011-01-15 23:14 keltezéssel, Igor Vaynberg írta: my first gut feeling is that if the form is stateless it should use the page's url as its action. this way page parameters are preserved and we can properly parse them out of

Re: Question about stateless forms

2011-01-15 Thread Igor Vaynberg
my first gut feeling is that if the form is stateless it should use the page's url as its action. this way page parameters are preserved and we can properly parse them out of the query string without mixing them with form parameters -igor 2011/1/15 Major Péter : > Hi, > > I'm experiencing, that i

Question about stateless forms

2011-01-15 Thread Major Péter
Hi, I'm experiencing, that if you have a stateless form on a page, and the user session expires, then Wicket reinstantiates the given page with the forms POST parameters as PageParameters. Is this the correct behaviour? Am I the only one suffering from this? If the user is at showuser/id/123

Re: Question about the Page state

2010-12-28 Thread Cemal Bayramoglu
Dmitry, Martin, Just be aware that when Dima (yes, another Dmitry), wrote that series [1], we may have still been on 1.2.6 or maybe 1.3 as it must be at least 2.5 years ago that he was working with us (and Wicket), so unless they have been reviewed recently, I am not sure if these sequence diagram

Re: Question about the Page state

2010-12-28 Thread Dmitriy Neretin
Thank you! I am quite happy with it :) Bye On 28 December 2010 21:34, Martin Grigorov wrote: > Hi Dmitri, > > I suggest you to take a look at these two pages: > https://cwiki.apache.org/WICKET/page-maps.html > > > https://cwiki.apache.org/WICKET/

Re: Question about the Page state

2010-12-28 Thread Martin Grigorov
Hi Dmitri, I suggest you to take a look at these two pages: https://cwiki.apache.org/WICKET/page-maps.html https://cwiki.apache.org/WICKET/request-cycle-and-request-cycle-processor.html

  1   2   3   4   >