>
> 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 -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 isVis
>
> 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
con
>
> 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 and
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 <[EMA
extend from Label and override onComponentTagBody like this:
protected void onComponentTagBody(final MarkupStream markupStream, final
ComponentTag openTag) {
StringBuilder b = new StringBuilder();
... do a lot of b.append()...
replaceComponentTagBody(markupStream, openTag, b.toString());
}
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:
setResponsePage(this.getPage().getClas
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
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 pa
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 com
> 1. Set an instance variable in the base page called basePageName
You don't need a variable - all you need is a getter:
public IModel getPageTitleModel() {
return new Model("ApplicationName");
}
> 2. Use a Label to set the title in the base page
Exactly, like this:
add(new Label("pageTit
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) {
//
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) {
getMo
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 wrote:
> AFAIR a button's label comes from it's Model. So you should do:
>
> new AjaxButton("preview"
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 pan
Yes.
2009/11/7 Ilja Pavkovic :
> Hi,
>
> I cannot reach wicketstuff.org anymore. Anyone else experiencing this problem?
>
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@
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 :
> THE server had been moves to another ip. I havent had time to update dns
>
> Martijn
so things should get back to
> working order soon as the update trickles through internet.
>
> Martijn
>
> On Sat, Nov 7, 2009 at 11:40 PM, Martijn Dashorst
> wrote:
>> THE server had been moves to another ip. I havent had time to update dns
>>
>> Martijn
>>
&
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
gen
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 W
20 matches
Mail list logo