I made my own abstract page and added method like this:
protected void setAndAddLabelForComponent(String labelString,
FormComponent component) {
String componentId = component.getId();
addLabel("label-" + componentId, labelString);
component.setLabel(new Model(labelString));
}
protected void addL
Thanks, it works.
On Tue, Jul 6, 2010 at 8:25 AM, Jeremy Thomerson
wrote:
> No, don't rename. Call setLabel on the component.
>
> Jeremy Thomerson
> -- sent from my smartphone - please excuse formatting and spelling errors
>
> On Jul 6, 2010 12:11 AM, "Martin Makundi" <
> martin.maku...@koodaripa
I meant "wish list". Mornings after a sleepless night are not easy...
Ernesto
On Tue, Jul 6, 2010 at 7:53 AM, Ernesto Reinaldo Barreiro
wrote:
> Hi Jeremy,
>
> Wasn't this on the which list for 1.5? [1] and [2]?
>
> Cheers,
>
> Ernesto
>
> 1-https://cwiki.apache.org/WICKET/wicket-15-wish-list.h
WiQuery provides a nice Java Interface for using effects. You can see
them in action here.
http://wiquery-plugins-demo.appspot.com/demo/?wicket:bookmarkablePage=:com.wiquery.plugins.demo.EffectsPage
Ernesto
On Tue, Jul 6, 2010 at 7:53 AM, Anh <7za...@gmail.com> wrote:
> Please disregard my last
I'm building a Wicket-based project that uses Wasp/Swarm for
authorization. I've connected it to Spring Security to use it as an
authentication backend, and I've also used Spring Security to perform
authentication and authorization on my middle tier Spring beans.
I have a secured web page with thr
Hi Jeremy,
Wasn't this on the which list for 1.5? [1] and [2]?
Cheers,
Ernesto
1-https://cwiki.apache.org/WICKET/wicket-15-wish-list.html#Wicket1.5WishList-multiplychild%252Fextendinheritance
2-https://issues.apache.org/jira/browse/WICKET-1134
On Tue, Jul 6, 2010 at 7:37 AM, Jeremy Thomerson
Please disregard my last question - I looked at WiQuery and looks
perfect for my needs. I had wrongly assumed it was a fork of Wicket
that used jQuery as its ajax implementation.
Thanks
On Mon, Jul 5, 2010 at 5:21 PM, Anh <7za...@gmail.com> wrote:
> Hi Pedro,
>
> Do you or anyone else have an e
Search the list for this and you'll find some quite long discussions.
Basically, it's not going to happen. This would be multiple inheritance, not
single. You can easily use panels to accomplish what you're looking for.
Jeremy Thomerson
-- sent from my smartphone - please excuse formatting and sp
> I dont want to save these characters into the database.
Why not? Why are you inputting data that you don't want to put into database?
**
Martin
>
>
> --- On Tue, 7/6/10, Martin Makundi wrote:
>
>> From: Martin Makundi
>> Subject: Re: Configure Wicket to detect some special HTML characters?
>
No, don't rename. Call setLabel on the component.
Jeremy Thomerson
-- sent from my smartphone - please excuse formatting and spelling errors
On Jul 6, 2010 12:11 AM, "Martin Makundi" <
martin.maku...@koodaripalvelut.com> wrote:
> Or I have to rename all my forms fields to the same values as thei
Create a custom converter.
Jeremy Thomerson
-- sent from my smartphone - please excuse formatting and spelling errors
On Jul 6, 2010 12:16 AM, "David Chang" wrote:
I dont want to save these characters into the database.
--- On Tue, 7/6/10, Martin Makundi
wrote:
> From: Martin Makundi
> Sub
I dont want to save these characters into the database.
--- On Tue, 7/6/10, Martin Makundi wrote:
> From: Martin Makundi
> Subject: Re: Configure Wicket to detect some special HTML characters?
> To: users@wicket.apache.org
> Date: Tuesday, July 6, 2010, 1:09 AM
> Why would you want to do that
> Or I have to rename all my forms fields to the same values as their labels
> are?
Yes, rename.
**
Martin
2010/7/6 Sigmar Muuga :
> Hello,
> when I validate my form, wicket gives me errors like this:
> '"someFieldCode" is mandatory' etc.
>
> But how to use it like '"Some field" is mandatory'?
>
Why would you want to do that?
**
Martin
2010/7/6 David Chang :
> If someone enters
>
> alert(1)
>
> in a wicket form's text field,
>
> can Wicket be configured to detect special characters such as angle brackets
> and translate them into HTML entities before sending user input to database?
> I
If someone enters
alert(1)
in a wicket form's text field,
can Wicket be configured to detect special characters such as angle brackets
and translate them into HTML entities before sending user input to database? If
yes, any pointers?
Best,
David
Hello,
when I validate my form, wicket gives me errors like this:
'"someFieldCode" is mandatory' etc.
But how to use it like '"Some field" is mandatory'?
Is it only the default behaviour of replacing placeholders in
wicket-messages and can be customized?
Or I have to rename all my forms fields t
Hi Pedro,
Do you or anyone else have an example of this?
I have the same need as Chris, and would like to avoid a Wicket
integration project in order to use jQuery animations.
I would like to be able to use simple jQuery animations when
adding/remove components, or a modal lightbox.
I'm a littl
Thank you, this works fine.
Of course, now I can't remember the example that made me think this
approach wouldn't work!
Thanks again
On Mon, Jul 5, 2010 at 12:33 PM, Pedro Santos wrote:
> UI state as properties in the component should be to fine, see if using
> session relative urls the problem
Hi Chris, if you simple want to add an javascript effect to an browser
component, there is no need to use an wicket integration with an javascript
frameworks. About the browser compatibility, use only the component api
provided by the javascript framework, there is no reason to have browser
aware j
UI state as properties in the component should be to fine, see if using
session relative urls the problem remains
On Mon, Jul 5, 2010 at 4:10 PM, Anh <7za...@gmail.com> wrote:
> Hi,
>
> I'm having trouble on how to best implement something simple:
>
> I'm frequently finding the need to have 2 Mod
Wicket stores the "state" (its fields) of a component (and thus pages)
between requests. So, your idea should work. Did you see any
serialization errors/warnings on your output log? Perhaps the
component's state can't be serialized?
On Mon, Jul 5, 2010 at 3:10 PM, Anh <7za...@gmail.com> wrote:
Ok, sorry, my bad. I did the initialization afterwards :(
Sometimes such mistakes just happen...
On Mon, Jul 5, 2010 at 10:45 AM, Wilhelmsen Tor Iver wrote:
> > Also, organisation is initialized in constructor with new
> > Organisation().
>
> Does this initialization happen before or after you cr
Hi,
I'm having trouble on how to best implement something simple:
I'm frequently finding the need to have 2 Models for a component:
One Model is the bound data object (persisted),
The other is lightweight UI state, such as whether a section is expanded, etc.
The UI state is not needed outside of
you should set all the popups to use the same pagemap, i think that should help.
-igor
On Sun, Jul 4, 2010 at 12:19 PM, Branislav Kalas wrote:
> Hi,
> sorry for my terrible english.I am trying to achieve this:
> I have webapp where i want to allow users open some links in new window. I
> want to
Can't say much without the code and markup.
**
Martin
2010/7/5 Victor_Trapiello :
>
> but... the error that comes up is:
>
> org.apache.wicket.markup.MarkupNotFoundException: Base markup of inherited
> markup not found. Component class: com.mycompany.RatingsPage Enable debug
> messages for org.ap
but... the error that comes up is:
org.apache.wicket.markup.MarkupNotFoundException: Base markup of inherited
markup not found. Component class: com.mycompany.RatingsPage Enable debug
messages for org.apache.wicket.util.resource.Resource to get a list of all
filenames tried.
at
org.apache.wi
The star is already included in the wicket/extensions jars.
**
Martin
2010/7/5 Victor_Trapiello :
>
> Hello guys,
>
> I´m trying to integrate the Rating Component in my application, but I´m
> having some minnor problems, let me see if you can help me..
>
> I´m trying to get the pictures (I mean t
Hello guys,
I´m trying to integrate the Rating Component in my application, but I´m
having some minnor problems, let me see if you can help me..
I´m trying to get the pictures (I mean the starts for the component), I have
entered here...
http://www.wicket-library.com/wicket-examples/ajax/rating
:) You could try to write some unit test, with rhino, it should be "fairly"
simple.. Just wriite a junit test that executes a rhino test which in turn
parses your js.. :)
As someone mentioned to me once, "In java you can always add a new layer of
abstraction" :)
2010/7/5 David Leangen
>
> Ok, t
Hi, Chris,
I tend to agree with you, that's why I prefer Java over Javascript.
However, I need to write a few components, so I'm wondering what
others do to help them avoid these types of errors that would normally
be caught at compile time.
Cheers,
=David
On Jul 5, 2010, at 6:41 PM,
Hi, you can upload it at http://megaupload.com/ or everywhere else...
2010/6/30
> Hello, mostly of interest to wicket noobs: i have a wicketized/eclipseized
> hibernate 1.1 tutorial that should work out-of-the-box albeit for mysql
> only. Where to upload the project? Or, I can put it on my blog
>Ok, this is fun. It was due to an error in my script.
>
>I've been doing Java for so many years that I forgot how to use a
dynamic
>language. I guess I'm too used to having the compiler tell me how much
of
>an idiot I am so I have less pain at runtime. ;-)
Humans aren't perfect - that's why human
Yes, I was trying to keep it a pure Java app and so avoid writing the
javascript myself (my days of writing browser aware javascript are
hopefully over =]) so I was wondering what's the best option.
>From my short research jQuery seems to be really gaining some good
momentum.
It also appears as t
You'll have to create your own javascript to do so (or use/integrate
it with jquery/mootools/dojo/etc )
Martijn
On Fri, Jul 2, 2010 at 5:18 PM, Chris Colman
wrote:
> Is it possible to animate the opening of a modal window using wicket? I
> know it can be done in javascript but I'm wondering how
> Also, organisation is initialized in constructor with new
> Organisation().
Does this initialization happen before or after you create the model?
> java.lang.IllegalArgumentException: Parameter modelObject cannot be
> null
This error message indicates it happens after.
- Tor Iver
Is in "entity" the field name also initialized? Try to set it to the empty
String in the initialization of entity.
Am 05.07.2010 09:37, schrieb Sigmar Muuga:
> Also "entity" is initalized for that organisation object.
>
> On Mon, Jul 5, 2010 at 10:36 AM, Sigmar Muuga wrote:
>
>> Hello,
>> I am
Also "entity" is initalized for that organisation object.
On Mon, Jul 5, 2010 at 10:36 AM, Sigmar Muuga wrote:
> Hello,
> I am creating a form, my form has an instance variable:
> private Organization organisation;
>
> Also, organisation is initialized in constructor with new Organisation().
>
>
Hello,
I am creating a form, my form has an instance variable:
private Organization organisation;
Also, organisation is initialized in constructor with new Organisation().
Now I am creating a TextField, that uses the propertyModel:
IModel m1 = new PropertyModel(organisation, "
entity.name");
Text
On Sun, 2010-07-04 at 21:05 -0500, David Brown wrote:
> Hello, I put the hib-tut.zip file in my gmail uploaded files in a
> directory called uploads. I don't know what u need to do to get to my
> uploaded files on gmail. :-David.
All we need is your password ;-)
Thanks for sharing !
>
> On Sat, 20
39 matches
Mail list logo