Hi,
I noticed a possible inefficiency in AbstractPageableView's getItemModels()
method:
/**
* This method retrieves the subset of models for items in the current page
and allows
* RefreshingView to generate items.
*
* @return iterator over models for items in the current
You can try using Uploadify from code.google.com/p/jqwicket/, which lets you
put event handlers on successful completion. You need to write a separate
servlet to handle upload though, but it's quite straightforward. One small
trick is overriding getEventHandler() so you can pass the javascript
Hi,
The following seems to be a bug with JRockit or Weblogic, but maybe
someone on this list has seen it before and has a better
workaround/solution.
We have been developing a Wicket application for a government agency
that is going to be used by 15k users. The application will be
deployed on a
On Saturday, November 7, 2009, Janos Cserep cser...@metaprime.hu wrote:
Yes.
2009/11/7 Ilja Pavkovic ilja.pavko...@binaere-bauten.de:
Hi,
I cannot reach wicketstuff.org anymore. Anyone else experiencing this
problem
Yes.
2009/11/7 Ilja Pavkovic ilja.pavko...@binaere-bauten.de:
Hi,
I cannot reach wicketstuff.org anymore. Anyone else experiencing this problem?
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional
At least this gives me a reason and time now to setup Nexus to proxy
wicketstuff.org until my builds are broken:)
Any estimate when the dns change would be visible?
Thanks,
Janos
2009/11/7 Martijn Dashorst martijn.dasho...@gmail.com:
THE server had been moves to another ip. I havent had time
I'm using the following custom tinymce javascript initialization (I
don't use the default which comes with wicket-tinymce, but put this
together manually). I override the image button of tinymce so the
callback can change the whole panel and display a selector one. The
user can use the selector
AFAIR a button's label comes from it's Model. So you should do:
new AjaxButton(preview){
public void onSubmit(AjaxRequestTarget target, Form form){
String label = getModelObject(); // or
getDefaultModelObject(); if 1.4
if (click.equals(label) {
And of course don't forget to add the button or a parent component to
the ajaxrequesttarget as well.
On Wed, May 6, 2009 at 11:58 AM, Janos Cserep cser...@metaprime.hu wrote:
AFAIR a button's label comes from it's Model. So you should do:
new AjaxButton(preview){
public void onSubmit
Hi Mariana,
Yes, with __trackPageview you can pretty much achieve what you want to do.
In your menu component you probably change the panels by instantiating and
replacing a main panel inside your page, right?
If yes, do something like this:
public void onClick(AjaxRequestTarget target) {
//
1. Set an instance variable in the base page called basePageName
You don't need a variable - all you need is a getter:
public IModelString getPageTitleModel() {
return new Model(ApplicationName);
}
2. Use a Label to set the title in the base page
Exactly, like this:
add(new
You have to mount your page via MixedParamUrlCodingStrategy:
mount(new MixedParamUrlCodingStrategy(/company, CompanyPage.class, new
String[] {companyName});
and in CompanyPage(PageParameters parameters) constructor do something like
this:
String nameInUrl = parameters.getString();
String
why the locale changes does not apply to the components?
Are you setting up your components based on your locale in the constructor?
Because if you do, then setting a Page object with setResponsePage won't
create new component objects for you.
Try:
Actually now I have only one label for testing purposes:
add(new Label(locale, getSession().getLocale().getLanguage()));
That's actually bad practice. You are adding the component in the
constructor. That code runs only once - when you create the component,
page, etc.
Try:
add(new
Bruce,
Just use simpel strings as your role names:
Roles roles = new Roles(OWNER,SUPERVISOR);
roles.hasAnyRole(new Roles(OWNER)) - this will be true
I usually put these as public final static Strings into my WebApplication
class...
Janos
On Thu, Feb 14, 2008 at 8:39 PM, Bruce McGuire [EMAIL
Is it possible at all to have content at / ? Trying to mount something at
/
results in an error and I'm wondering of there's a workaround.
By default it displays your home page (actually the page represented by the
page class returned by WebApplication's getHomePage() method) if you
So I take it, it's currently not possible.
Looks like I was not clear enough, sorry:)
Configure your wicket filter to /* and return the page class you want to
view as / as the home page in your application class. You don't have to
mount anything, it will be displayed as /
If you're looking for a way to use different layouts, templates for
different virtual servers you have several options:
- use the Session.setStyle() to set the style... you can do this in a custom
WebRequest and by examining the server name of the request url. Then you can
have different .html
How do you guys implement a link that is conditional? Like for example the
link only shows if a given data is provided. Adding the a-tag in the
Markup will coz an error if the condition is not met, because AjaxLink is
not added.
I usually handle such a situation by overriding the
19 matches
Mail list logo