Re: Settting of PageManagerProvider is overridden in debug mode

2011-10-10 Thread Martin Grigorov
On Tue, Oct 11, 2011 at 12:58 AM, Chris Colman wrote: > I have a workaround that's probably a bit of a hack but it works ;) Yep, we are aware that IInitializers override Application's configuration: https://issues.apache.org/jira/browse/WICKET-4088 I just removed the autoregistering of DebugDiskD

Re: Ajax : Modifying CallBackUrl in OnEvent()

2011-10-10 Thread Arjun Dhar
Hi, I wound a solution/decent work-around to my problem. So to re-explain it based on what Andrea says: Yes, its true its too late and there is no pure API way. But there is a work around. Problem:: Modify the CallBackUrl for an event based on some condition that may occur in the event. Technical

RE: Is it possible to turn off page serialization in 1.5?

2011-10-10 Thread Chris Colman
I just turned off serializing using: private class NullPageManagerProvider implements IPageManagerProvider { public IPageManager get(IPageManagerContext context) { return new NullPageManager(context); } } But now the back button goes back one page only. Is

Re: SelectOption and DropDownChoice

2011-10-10 Thread Andrea Del Bene
Hi, you can take a look at method AbstractChoice.appendOptionHtml. You can manipulate HTML overriding it. But I think there's no way to access to single options. I solved a similar problem using some JavaScript... Hi. I need to add an attribute to an inside a dropdown. I'd rather have a Drop

RE: Settting of PageManagerProvider is overridden in debug mode

2011-10-10 Thread Chris Colman
I have a workaround that's probably a bit of a hack but it works ;) I overwrite Application#validateInit() and set it there: protected void validateInit() { super.validateInit(); setPageManagerProvider(new MyPageManagerProvider()); } __

Settting of PageManagerProvider is overridden in debug mode

2011-10-10 Thread Chris Colman
In debug mode, setting the page manager provider like this: setPageManagerProvider(new MyPageManagerProvider(this)); in MyApplication#init() gets overridden because after the derived class init() is called Application executes some debug behaviour if in debug mode. This behaviour

Retaining TextFilter cursor position on ajax update

2011-10-10 Thread Bertrand Guay-Paquet
Hello, I am trying to use DataTable's FilterToolbar and friends to filter a table's contents. One of the columns is a string so I use the TextFilter class. However, I can't find how to properly integrate ajax with this. I want the text field to submit the form when its input changes which tr

Removing jsessionid in wicket 1.5

2011-10-10 Thread Gaetan Zoritchak
Hi, Removing the jsessionid for scrawling robots is important to avoid the duplicate content problem. The solution proposed in the wiki https://cwiki.apache.org/WICKET/seo-search-engine-optimization.html is not working anymore. Does anyone knows the new way of doing it in wicket 1.5? Thanks in a

Re: W 1.5: templates added to head on ajax reload ...

2011-10-10 Thread Martin Grigorov
Replace with . are not normal DOM nodes and later Ajax functionality cannot find such component for replacement. On Mon, Oct 10, 2011 at 6:27 PM, armandoxxx wrote: > Hey guys. > > I've got a little question regarding templates. > > I'm creating a javascript chart and a chart needs a container t

Re: W 1.5: templates added to head on ajax reload ...

2011-10-10 Thread Bas Gooren
Override Component#renderHeader(IHeaderResponse response) and call response.renderOnDomReadyJavascript() The above assumes wicket 1.5, although this is also possible in 1.4. OnDomReady javascript code is handled properly for both regular and ajax requests. Op 10-10-2011 17:27, schreef armand

Mounting external pages to root

2011-10-10 Thread Daniele Dellafiore
Hi. I have now mounted some internal pages and then all the external are mounted like: getRootRequestMapperAsCompound().add(new MountedMapper("cms/${page}", ExternalPage.class) ); What I'd like is that ALL the URL that are not mounted with an explicit mapper are automatically redirected to Extern

SelectOption and DropDownChoice

2011-10-10 Thread Daniele Dellafiore
Hi. I need to add an attribute to an inside a dropdown. I'd rather have a DropDownChoice and the ability to add an AttributeModifier to every option but I can't find a way to acccess the single options of the drop down. Instead I've read about solutions that involve SelectOption but I can't get

W 1.5: templates added to head on ajax reload ...

2011-10-10 Thread armandoxxx
Hey guys. I've got a little question regarding templates. I'm creating a javascript chart and a chart needs a container to be drawn in. To tell my javascript chart library what container to draw a chart in I use a template. my template: my markup file: now to the problem ... on ajax rel

Re: PackageResourceReference and Doctype in Markup file

2011-10-10 Thread Dirk Forchel
I've figured out, that this might be a problem with autodetecting the content type of a FileResourceStream. If our application uses the development mode, we use our own ResourceStreamLocator for loading resources from the source path rather than the class path. This was working in Wicket 1.4 withou

Re: PackageResourceReference and Doctype in Markup file

2011-10-10 Thread Dirk Forchel
After creating a quickstart I've noticed that this might not be a bug but rather a problem with my application settings. I've got no problems with the quickstart application and the test page running on Jetty. I let you know what causes the problem. -- View this message in context: http://apache-

Re: PackageResourceReference and Doctype in Markup file

2011-10-10 Thread Martin Grigorov
Looks like a bug. Please create a quickstart and attach it to ticket in Jira. Thanks! On Mon, Oct 10, 2011 at 11:02 AM, Dirk Forchel wrote: > What is the prefered way to replace removed HeaderContributors in Wicket 1.5? > The migration guide says: > > Wicket 1.4: > public class MyPage extends Web

PackageResourceReference and Doctype in Markup file

2011-10-10 Thread Dirk Forchel
What is the prefered way to replace removed HeaderContributors in Wicket 1.5? The migration guide says: Wicket 1.4: public class MyPage extends WebPage { public MyPage() { add(HeaderContributor.forCss(AbstractCalendar.class, "assets/skins/sam/calendar.css")); } } becomes in Wicket 1.5: p