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: 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(). I

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

Re: ajax event not quite working as planned

2014-03-29 Thread Stefan Renz
Hi, Entropy wrote: > I solved my button issue by creating two buttons and toggling their > visibility rather than changing the label on a single button. i still think > the original solution should have worked, but I have fixed the problem. I guess you want to #setBody() instead of #setLabel() -

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, a

Re: Error handling in IResource implementations?

2014-04-03 Thread Stefan Renz
way you can use response#setError() if needed. > > Martin Grigorov > Wicket Training and Consulting > > > On Wed, Apr 2, 2014 at 3:25 PM, Stefan Renz wrote: > >> Hi, >> >> I'm currently at loss: what would be the correct way signalling that a >> IR

Re: Error handling in IResource implementations?

2014-04-08 Thread Stefan Renz
re straightforward, so I'll skip this suggestions. > > > Martin Grigorov > Wicket Training and Consulting > Thanks, Martin. Bye Stefan > > On Thu, Apr 3, 2014 at 10:41 AM, Stefan Renz wrote: > >> Hi Martin, >> >> yes, I figured that, and some errors

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 alt

Re: problem with AbstractEntityModel from Igor Vaynberg

2014-05-12 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: 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 that has been created for TextField? I don't think

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 > http://en

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 tha

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* t

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: > ignorePathsmanage/ > to WicketFilter in web.xml. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail

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
naldo 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 wrote: >

Re: Download file and redirect in one go?

2014-12-06 Thread Stefan Renz
nesto Reinaldo Barreiro < > reier...@gmail.com> wrote: > >> You can also >> >> 1- mount a resource and serve the file from there. >> 2- Once new page is loaded you do setTimeout(\"window.location.href='" + >> url + "'\", 100)

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 t

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 populateItem'

Re: Access the row index in an AbstractColumn?

2015-04-21 Thread Stefan Renz
.nabble.com/DataTable-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 wrote: &g

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

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

2016-04-28 Thread Stefan Renz
wiki/BootstrapSettings >> >> Hope this helps, >> Sebastien >> >> On Thu, Apr 28, 2016 at 8:00 PM, Stefan Renz wrote: >> >>> Hi forum, >>> >>> for some parts of a web application I need to suppress delivering the >>> bundled

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

2016-04-28 Thread Stefan Renz
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

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, a

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 P

Re: WiQuery tabs remain selected across requests?

2012-11-26 Thread Stefan Renz
it). So, what > you 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 M

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?

Re: WiQuery tabs remain selected across requests?

2012-11-26 Thread Stefan Renz
et back > the selected tab. > > P.S. See also the Tabs#setCookie method (to store selected index in > cookie). > > On Mon, Nov 26, 2012 at 1:51 PM, Ernesto Reinaldo Barreiro < > reier...@gmail.com> wrote: > >> Let me see if I can add those features today or tomorrow

Re: WiQuery tabs remain selected across requests?

2012-11-27 Thread Stefan Renz
xLoadEvent... Any ideas? What can _I_ do? Come up with a demo page? Bye 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. >

Re: WiQuery tabs remain selected across requests?

2012-11-27 Thread Stefan Renz
spotted (and hopefully > 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 wrote: > >> Hi Ernesto, >> >> I'm getting a "Uncaught SyntaxError: Unexpected identifi

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

2012-12-13 Thread Stefan Renz
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 displays data retrieved by a web service, typically by means of LoadableDetachableModel or IDataProvider. In my case, the WebService

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

2012-12-13 Thread Stefan Renz
owever, I 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/201

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

2012-12-13 Thread Stefan Renz
cceptable time. That way, slow response times of the service have some indication, too. Thanks, bye Stefan > > > 2012/12/13 Stefan Renz > >> Hi, >> >> my searches didn't turn up anything, so I figured I ask on the mailing >> list: >> >>

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

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 well

Re: Additional CSS HeaderItems in Wicket/WiQuery 6?

2013-01-22 Thread Stefan Renz
Item;} > } > > and register it as replacement. Tried 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 wrote: >

Re: Additional CSS HeaderItems in Wicket/WiQuery 6?

2013-01-22 Thread Stefan Renz
e with all 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. &

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 Concrete

Re: Leave out a HeaderItem?

2013-01-31 Thread Stefan Renz
lse) { >ihr.render(CssHaderItem.forUrl(externalUrl)); > } > } > > protected String getExternalResourceUrl() { ... } > } > > class ChildPage extends BasePage { > > @Override protected String getExternalResourceUrl() {return null} > } > > > On Thu, Jan 31, 2013

Re: Problem with InmethodGrid in IE

2013-02-12 Thread Stefan Renz
find any problems? > > > > On Tue, Feb 12, 2013 at 11:47 AM, Stefan Renz 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 InMeth

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 > R

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: Text 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 Text Please note that I want to preserve the componentTagBody. I know h

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 a

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 reload

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 reload

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 ca

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) loc

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 remin

Re: How to hide an optional Image component?

2013-07-17 Thread Stefan Renz
serves 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.

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 subm