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,
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
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
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?
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
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
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
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
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
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
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
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
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
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
, 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
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
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
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
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
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
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
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)
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
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
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
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
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().
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
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,
() 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
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
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
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);
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
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
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
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*
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:
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
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
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
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
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
-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
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
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
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
47 matches
Mail list logo