Re: Use custom bootstrap.css/.js instead of bundled .css/.js

2016-04-28 Thread Stefan Renz
that I find satisfying. Bye Stefan Stefan Renz wrote: > Hi, > > thanks for your answers, they put me on the right track. Problem is, I > need to replace the stock bootstrap resources just for some pages (a > particular border, to be precise), whereas both suggestes solution

Re: Use custom bootstrap.css/.js instead of bundled .css/.js

2016-04-28 Thread Stefan Renz
n/wicket-bootstrap/wiki/BootstrapSettings >> >> Hope this helps, >> Sebastien >> >> On Thu, Apr 28, 2016 at 8:00 PM, Stefan Renz <s.r...@efonds.com> wrote: >> >>> Hi forum, >>> >>> for some parts of a web application I need to suppress

Use custom bootstrap.css/.js instead of bundled .css/.js

2016-04-28 Thread Stefan Renz
Hi forum, for some parts of a web application I need to suppress delivering the bundled webjar's bootstrap css and js, delivering custom versions of the respective resources. It there a way to "replace" the bundled versions? How can one suppress them? Is it possible to even do that for some pages

Access the row index in an AbstractColumn?

2015-04-21 Thread Stefan Renz
Hi, my client asked me to implement a simple row numbering in a data table. What I have is a Panel with a DataTable, with a varying number of IColumns. I thought that I could add such a row number column implementation in virtually no time, but it turns out that the index returned by

Re: Access the row index in an AbstractColumn?

2015-04-21 Thread Stefan Renz
-how-to-make-a-column-showing-the-row-number-td1855450.html : public void populateItem(Item cell, String compId, IModel rowModel) { item.getindex() is cell, ((item)item.getparent()).getindex() is row On Tue, Apr 21, 2015 at 2:35 PM, Stefan Renz s.r...@efonds.com wrote: Hi, my client

Re: Question regarding index handling with RefreshingView and OddEvenItem

2015-02-15 Thread Stefan Renz
Hi, I know that I'm skirting around answering your questions, but you could add an AttributeAppender to the item based on the index. Something like item.add( AttributeAppender.modify( class, item.getIndex() % 2 == 1 ? getEvenCssClass() : getOddCssClass() ); Apply further refactorings to

Re: Download file and redirect in one go?

2014-12-06 Thread Stefan Renz
is loaded you do setTimeout(\window.location.href=' + url + '\, 100); where url is the URL of the resource. This will trigger download. On Thu, Dec 4, 2014 at 4:50 PM, Stefan Renz s.r...@efonds.com wrote: Hi, how do I automatically trigger an AJAX request? Timer behavior? Any other ideas? I'd

Download file and redirect in one go?

2014-12-04 Thread Stefan Renz
Hi, after a form submission, I'd like to redirect the user to another page, and stream a file to the browser (generated as a result of the form submission). How would I achieve this? I can do both single steps, but not both together... Thanks, bye, Stefan

Re: Download file and redirect in one go?

2014-12-04 Thread Stefan Renz
Barreiro wrote: After submit redirect to the new page that automatically trigger an AJAX request and use https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow On Thu, Dec 4, 2014 at 12:17 PM, Stefan Renz s.r...@efonds.com wrote: Hi, after a form

How to *not* handle a request

2014-11-29 Thread Stefan Renz
Hi, seems a simple thing to ask, but I can't seem to be able to find the solution: I have certain endpoints of Spring Boot (their actuator endpoints) that I want to make available under, say, /admin/manage/..., but I have a fronting wicket page mounted under /admin. I want to tell wicket *not*

Re: How to *not* handle a request

2014-11-29 Thread Stefan Renz
Thanks, Martin. I knew there had to be a simple answer :-) Martin Grigorov schrieb: init-paramparam-nameignorePaths/param-nameparam-valuemanage//param-value/init-param to WicketFilter in web.xml. - To unsubscribe, e-mail:

Re: form submit / parameters sometimes missing

2014-11-19 Thread Stefan Renz
Hi, I don't think URL-length is an issue -- after all, we are talking about POST, not GET. I had trouble once by having PageParameters with some keys (for example, name) and form field id with the same key (here: name). Wicket got that mixed up (AFAIR that was Wicket 1.4 or 5). Ever since that

Re: resource encoding troubles

2014-08-28 Thread Stefan Renz
Hi Garret, Garret Wilson wrote: Exactly! Quoting from the page you provided: Java uses the standard character set ISO 8859-11 to encode text files like properties files. ... (Note that this is a typo above---the author meant to say ISO 8859-1, not ISO 8859-11. The link to

Re: is it possible to add a css class to FormComponent.setLabel()?

2014-08-01 Thread Stefan Renz
Hi, lucast wrote: Dear Forum, Currently, I make heavy use of TextField.setLabel(). If adding a css field to TextField is as easy as TextField.add(new AttributeAppender(class, TestCSSClass )); then: How can I add a CSS class to label that has been created for TextField? I don't think that

Re: problem with AbstractEntityModel from Igor Vaynberg

2014-05-13 Thread Stefan Renz
Hi, Piratenvisier wrote: If I include the folowing lines : if(NachweiseForm.this.getModelObject().getKunde()!=null) { Kunde kunde = kundeManager.get(NachweiseForm.this.getModelObject().getKunde().getId()); NachweiseForm.this.getModelObject().setKunde(kunde);

Re: User Agent (mobile) specific Pages

2014-04-19 Thread Stefan Renz
Hi Arun, Arjun Dhar wrote: Hi, there is a 1 to 1 mapping between the Wicket Page/Panel and the HTML. However one may want to present a different HTML version for a given Page/Template. Where I am going with this ls say you have a entire Site on a Template; but want to provide alternate

Re: Error handling in IResource implementations?

2014-04-08 Thread Stefan Renz
Grigorov Wicket Training and Consulting Thanks, Martin. Bye Stefan On Thu, Apr 3, 2014 at 10:41 AM, Stefan Renz s.r...@efonds.com wrote: Hi Martin, yes, I figured that, and some errors (such as can't find metadata) I handle accordingly. However, I get the actual binary content in my

Re: Error handling in IResource implementations?

2014-04-03 Thread Stefan Renz
() if needed. Martin Grigorov Wicket Training and Consulting On Wed, Apr 2, 2014 at 3:25 PM, Stefan Renz s.r...@efonds.com wrote: Hi, I'm currently at loss: what would be the correct way signalling that a IResource implementation encountered an error? Here's the case: I have a custom

Error handling in IResource implementations?

2014-04-02 Thread Stefan Renz
Hi, I'm currently at loss: what would be the correct way signalling that a IResource implementation encountered an error? Here's the case: I have a custom AbstractResource implementation that grabs an object from a WebService. Getting information about the object (metadata and ID) is one call,

Re: Does wicket have parameter-based security?

2014-03-29 Thread Stefan Renz
Hi, Tom Norton wrote: Let's say I have a page called: /order-details/${orderId}. Let's also say I want to ensure that some customer named Bob can only see the order-details pages for the orders he placed, but not any of the order-details pages for orders that John placed. I already know

Re: Show Excelsheet in Browser

2014-03-24 Thread Stefan Renz
Hi, we use a ResourceLink with a ResourceReference wrapping an AbstractResource, that generates an Excel via POI in a WriteCallback implementation. The AbstractResource implementation can #setContentType() and #setContentDisposition() on the attributes object passed into #newResourceResponse().

Re: Expandable section in ListView

2014-03-18 Thread Stefan Renz
Hi, try to setOutputMarkupPlaceholderTag(true) on your expandable, otherwise your component doesn't render at all when setVisible(false)... Bye Stef Entropy wrote: I have a list view that will have a button on the left to expand or contract a section that starts out hidden. this section

Re: Mutliple forms - single login popup

2013-07-19 Thread Stefan Renz
Hi Jeff, could you use an AjaxSubmitLink and treat unauthenticated users as a validation failure so that you end up in #onError() of your link? That way, you can keep the submission login in Form#onSubmit()... Bye Stefan Jeff Schneller wrote: Easy enough to implement when 1 form with

Re: How to hide an optional Image component?

2013-07-17 Thread Stefan Renz
Hi Sven, Sven Meier wrote: apart from asking the database _again_ for the data or presence thereof Whether the image is visible must be determined when the page is rendered. The actual loading of the image is done in another request. Thus two times to ask the databse. thanks for reminding

Re: How to hide an optional Image component?

2013-07-17 Thread Stefan Renz
to show or hide the Image component using that Resource. Thanks for your time and suggestions. Bye Stefan Stefan Renz wrote: Hi guys, I'm desparate for your help: I just can't figure out how to suppress an Image in case its IResource yields nothing. Here's some context: A customer may

How to hide an optional Image component?

2013-07-16 Thread Stefan Renz
Hi guys, I'm desparate for your help: I just can't figure out how to suppress an Image in case its IResource yields nothing. Here's some context: A customer may have a custom logo image (in fact, there's some logic involved in determining which exact logo to use, but that's beside the point)

Re: Problem with WiQuery Tab component after page reload

2013-07-05 Thread Stefan Renz
Hi, has no-one observed this yet? Shall I file an issue? Bye Stefan Stefan Renz wrote: Hi, I've observed the following behavior with WiQuery's Tabs-component: after reloading a page with a tabs component on it (or by navigating the browser history), one can't switch the active tab

Problem with WiQuery Tab component after page reload

2013-06-11 Thread Stefan Renz
Hi, I've observed the following behavior with WiQuery's Tabs-component: after reloading a page with a tabs component on it (or by navigating the browser history), one can't switch the active tab anymore -- the component always jumps back. The browser makes a new request. Apparently, Wicket loads

Re: Problem with WiQuery Tab component after page reload

2013-06-11 Thread Stefan Renz
I forgot to mention that this happens with an ITabsAjaxEvent handler installed on the Tabs component... so is this a stateful/stateless thing? Bye Stefan Stefan Renz wrote: Hi, I've observed the following behavior with WiQuery's Tabs-component: after reloading a page with a tabs

Re: Problem with WiQuery Tab component after page reload

2013-06-11 Thread Stefan Renz
I forgot to mention that this happens with an ITabsAjaxEvent handler installed on the Tabs component... so is this a stateful/stateless thing? Bye Stefan Stefan Renz wrote: Hi, I've observed the following behavior with WiQuery's Tabs-component: after reloading a page with a tabs

How to modify markup?

2013-02-20 Thread Stefan Renz
Hi, what would be the best way to modify the HTML output of a component? Consider this: a wicket:id=...Text/a which is backed by a Link component. By adding a behavior (I would assume), I would like to modify this HTML to become sth like a ...span .../spanspanText/span/a Please note that I

Re: Redirect to the HomePage on newSession

2013-02-15 Thread Stefan Renz
vov wrote: Is it possible to redirect user to the HomePage when new session is created? @Override public Session newSession(Request request, Response response) { //RequestCycle.get().setResponsePage(getHomePage()); //or //RequestCycle.get().replaceAllRequestHandlers(new

Re: Problem with InmethodGrid in IE

2013-02-12 Thread Stefan Renz
, Stefan Renz s.r...@efonds.com wrote: Hi, since migrating to Wicket 6, we have problems with InmethodGrid when rendering in IE (6 and 8). Just rendering the page containing an InMethod grid causes IE to complain about JavaScript: Inmethod.XTableManager.instance is either null or not an object

Leave out a HeaderItem?

2013-01-31 Thread Stefan Renz
Hi, I'm wondering how I could conditionally leave out or replace a CSSHeaderItem that is usually included. Application-wide resource replacement is not an option. Here's the scenario: BasePage adds a Stylesheet by rendering a URL (it's external to the Wicket application). A component in

Re: Leave out a HeaderItem?

2013-01-31 Thread Stefan Renz
String getExternalResourceUrl() { ... } } class ChildPage extends BasePage { @Override protected String getExternalResourceUrl() {return null} } On Thu, Jan 31, 2013 at 4:44 PM, Stefan Renz s.r...@efonds.com wrote: Hi, I'm wondering how I could conditionally leave out or replace

Additional CSS HeaderItems in Wicket/WiQuery 6?

2013-01-22 Thread Stefan Renz
Hi, how would I specify to load an additional stylesheet when Wicket loads the WiQueryCoreThemeResourceReference? Background: I'd like to tweak some of the jquery-ui styles by providing a custom CSS. I want to make sure that whenever wiquery's core resource loads, the additional CSS loads as

Re: Additional CSS HeaderItems in Wicket/WiQuery 6?

2013-01-22 Thread Stefan Renz
that, getDependencies() never isn't called. Once again, I will double check. Thanks, bye Stefan I'd use the bundle approach. On Tue, Jan 22, 2013 at 5:15 PM, Stefan Renz s.r...@efonds.com wrote: Hi, how would I specify to load an additional stylesheet when Wicket loads

Re: Additional CSS HeaderItems in Wicket/WiQuery 6?

2013-01-22 Thread Stefan Renz
the dependencies. As I suspected, I just did not grasp the Wicket API; the bundle adds the dependencies itself. Quite elegant, just like the rest of Wicket and WiQuery :-) Thanks for the help. Bye Stefan Stefan Renz wrote: Hi Martin, thanks for the quick response. Martin Grigorov wrote

Re: How to handle failing calls to external systems within a Component without resorting to an error page?

2012-12-14 Thread Stefan Renz
attached to the BorderBodyContainer and alert message component. Thanks for your suggestions. Bye Stefan Stefan Renz wrote: Hi, my searches didn't turn up anything, so I figured I ask on the mailing list: Consider the following scenario: a Page contains a number of Panels, one of which

Re: How to handle failing calls to external systems within a Component without resorting to an error page?

2012-12-13 Thread Stefan Renz
think that #onConfigure() should catch most cases, in particular any forgot to start the service scenario. I'll give it shot and see if I can get away with probing in #onConfigure(). Thanks for your suggestion. Bye Stefan T Sven On 12/13/2012 09:46 PM, Stefan Renz wrote: Hi, my searches

Re: How to handle failing calls to external systems within a Component without resorting to an error page?

2012-12-13 Thread Stefan Renz
time. That way, slow response times of the service have some indication, too. Thanks, bye Stefan 2012/12/13 Stefan Renz s.r...@efonds.com Hi, my searches didn't turn up anything, so I figured I ask on the mailing list: Consider the following scenario: a Page contains a number

Re: WiQuery tabs remain selected across requests?

2012-11-27 Thread Stefan Renz
Stefan Ernesto Reinaldo Barreiro wrote: Stefan, Yes it will make it into the next 1.5.x release. It will be good if you can test it before that, so that we can fix/add anything else you need. On Mon, Nov 26, 2012 at 10:58 PM, Stefan Renz s.r...@efonds.com wrote: Hi Ernesto, fabulous

Re: WiQuery tabs remain selected across requests?

2012-11-27 Thread Stefan Renz
fixed) a JavaScript error from your code bellow. Can you please try with latest 1.5.x branch? On Tue, Nov 27, 2012 at 1:04 PM, Stefan Renz s.r...@efonds.com wrote: Hi Ernesto, I'm getting a Uncaught SyntaxError: Unexpected identifier in the JavaScript console as soon as I use the Tabs

WiQuery tabs remain selected across requests?

2012-11-26 Thread Stefan Renz
Hi, we're using WiQuery tabs in our web application to divide information into smaller, logically grouped chunks. Often times, our users will select a few items in a list in order to browse through information. For each of those selected items we present a detail page with WiQuery tabs on them,

Re: WiQuery tabs remain selected across requests?

2012-11-26 Thread Stefan Renz
In principle, yes, that's one part of the solution. However, I need to know which index the page currently displays. How can I get the information, which tab is selected? Ernesto Reinaldo Barreiro wrote: Can you try setDefaultSelectedTabIndex? On Mon, Nov 26, 2012 at 12:55 PM, Stefan Renz s.r

Re: WiQuery tabs remain selected across requests?

2012-11-26 Thread Stefan Renz
will need is some sort of AJAX version for http://api.jqueryui.com/tabs/#event-activate and on server side record this number (that you will pass as an extra parameter to AJAX request). Which wicket version are you using? On Mon, Nov 26, 2012 at 1:07 PM, Stefan Renz s.r...@efonds.com wrote

Re: Howto display 404 cause of response on custom error page?

2012-11-26 Thread Stefan Renz
Hi, we had a similar requirement, so we did the following: instead of throwing a AbortWithHttpErrorCodeException, we throw a semantic exception. In your case, throw MissingSubsiteException( your message ). How to make Wicket aware of such an exception and implement a proper reaction/response?