RE: Ideas on implementing dynamic addition of components that use AJAX?

2012-11-23 Thread Chris Colman
historically the components you add from auto resolvers are added via the autoAdd() method, not using add(). these components only exist during render of the page (in detach() phase all auto-added components are removed). the thinking here is that auto resolved components are not normal

Re: Wicket CryptoMapper loses RequestParameters for HomePage (1.5-SNAPSHOT)

2012-11-23 Thread matmar
Jesse, thanks for fixing this in Wicket 6.3.0! https://issues.apache.org/jira/browse/WICKET-4865 On Mon, Nov 5, 2012 at 10:50 PM, matmar [via Apache Wicket] ml-node+s1842946n4653637...@n4.nabble.com wrote: Hi! We have a problem with using CryptoMapper, and a proposed fix. I'd like some

RE: Ideas on implementing dynamic addition of components that use AJAX?

2012-11-23 Thread Chris Colman
I had a thought - is there an interface implemented that provides the parsing of markup? If there was then I could somehow hook into that or provide another implementation and avoid double parsing of the markup - or would that be happening too late in the lifecycle to work? -Original

Re: Ideas on implementing dynamic addition of components that use AJAX?

2012-11-23 Thread Martin Grigorov
See IMarkupFilter implementations. On Fri, Nov 23, 2012 at 12:08 PM, Chris Colman chr...@stepaheadsoftware.com wrote: I had a thought - is there an interface implemented that provides the parsing of markup? If there was then I could somehow hook into that or provide another implementation

Force Ajax onClick event on empty a

2012-11-23 Thread Ronny.Voss
Hi all I seem to struggle more than expected on this scenario: An empty A tag wont trigger Ajax HTML is pretty simple span class=myIcon id=id3192 a href=../page?3-2.ILinkListener-navigation-navigation_body-wmc-left-4-comp-content-tabs-panel-body-rows-5-cells-2-cell-3-link id=link17a /a /span

Re: Force Ajax onClick event on empty a

2012-11-23 Thread Thomas Götz
Ajax works also with empty tags, but your link does not receive click events because of the surrounding span (which gets the click events). Try this: a wicket:id=link class=myIcon/a .myIcon { background: url(...); display: inline-block; height: XXXpx; width: YYYpx; } Cheers,

Re: Force Ajax onClick event on empty a

2012-11-23 Thread Nick Pratt
Try putting a non-breaking space in there: anbsp;/a On Fri, Nov 23, 2012 at 6:41 AM, ronny.v...@consult.nordea.com wrote: Hi all I seem to struggle more than expected on this scenario: An empty A tag wont trigger Ajax HTML is pretty simple span class=myIcon id=id3192 a

Re: Force Ajax onClick event on empty a

2012-11-23 Thread Martin Grigorov
On Fri, Nov 23, 2012 at 4:22 PM, Nick Pratt nbpr...@gmail.com wrote: Try putting a non-breaking space in there: anbsp;/a And then only this space character will be clickable. Better wrap the span in a: a ...span.../span/a On Fri, Nov 23, 2012 at 6:41 AM, ronny.v...@consult.nordea.com

Re: File download through form submit feedback messages

2012-11-23 Thread Joachim Schrod
juhar wrote: Hi, I have a page with a form on it. After the user has submitted the form successfully (all the fields have validated ok), the server creates a report-file based on the form values. The file is not created as physical file on the server, but it is given as download to the

Re: DropDownChoice.setNullValid

2012-11-23 Thread Paul Borș
Are you confusing nullValid w/ nullAllowed? ~ Thank you, Paul Bors On Nov 14, 2012, at 5:43 PM, Nick Pratt nbpr...@gmail.com wrote: As a followup - if you dont pass the null in the choices list, then it works as expected. On Wed, Nov 14, 2012 at 5:35 PM, Nick Pratt nbpr...@gmail.com

WicketTagIdentifier: possible optimization

2012-11-23 Thread Chris Colman
Just looking at the Wicket source for an unrelated issue I noticed that WicketTagIdentifier stores a private static collection of wellKnownTagNames as an ArrayList. and a method called isWellKnown is called from within WicketTagIdentifier.onComponentTag and presumably it's called on every

Re: Wicket 1.5.8 + EJB 3.1 - strange problem

2012-11-23 Thread Paul Borș
Why don't you instead use a bigger and more robust IoC framework like Spring and a persistence framework you can trust like Hibernate? Check out: http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/ Have a great day, Paul Bors On Nov 19, 2012, at 8:39 AM, Satrix

Re: Updating datatable ajax

2012-11-23 Thread Paul Borș
Silly question, but do you refresh the table either via Ajax or a page refresh by sending a parameter of your data provider through a constructor or something? Because simply manipulating the data provider will no magically redraw things on the screen :) Put a log or break in your data

Re: Updating datatable ajax

2012-11-23 Thread Paul Borș
I stand corrected as I missed one of your replies. I see now that you're using Ajax and you have a drop down of which value you would like to append an extra row to your table. Yes, keep the list in memory if its small enough and add the enter in the correct place and the refresh the table via

RE: Ideas on implementing dynamic addition of components that use AJAX?

2012-11-23 Thread Chris Colman
Wow! That was a bit too easy! Here's how to override onInitialize to dynamically add components to a page that are specified in the markup: protected void onInitialize() { super.onInitialize(); IMarkupFragment markupElements = getMarkup();