Re: 1.5 integer textfield

2010-12-15 Thread Martin Grigorov
see Alexander Morozov reply either use new TextFieldInteger(refreshRate, refreshRateModel, Integer.class); or call textField.setType(Integer.class) On Wed, Dec 15, 2010 at 7:48 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: same result : private void

Wicket extensions AjaxIndicatingDropdownChoice?

2010-12-15 Thread nino martinez wael
should I add one, its just inline with the other indicating components? package com.netdesign.wallboard.component; import java.util.List; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.IAjaxIndicatorAware; import

Re: How to listen for CHILD ajax form submits

2010-12-15 Thread Martin Grigorov
if you use 1.5 then you can use the new event mechanism. see WICKET-1312 in 1.4 you can use something like: new AjaxFormSubmitBehavior(event) { onSubmit(AjaxRequestTarget target, Form form) { ... target.addChildren(getPage(), MyDialog.class); } } The last line will register all

Re: Detach() explanation

2010-12-15 Thread Martin Grigorov
hi, each page with all its components is being serialized and stored somewhere (session, disk) at the end of a request. This is needed to be able to support stateful pages and to be able to return to previous page or version of a page with the browser back button. Each component and model has

Re: Wicket extensions AjaxIndicatingDropdownChoice?

2010-12-15 Thread Andrea Del Bene
Yes, your code seems accordant with other indicating components. should I add one, its just inline with the other indicating components? package com.netdesign.wallboard.component; import java.util.List; import org.apache.wicket.ajax.AjaxRequestTarget; import

help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread Adam Gibbons
Hi there, For some time now I have been trying to put together a simple project to get me off the ground with a Wicket/Spring/Hibernate setup. I've had lots of ups and downs, and found this guide really useful: http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/ However, I

Re: How to listen for CHILD ajax form submits

2010-12-15 Thread Ernesto Reinaldo Barreiro
If you have full control over the contents of your dialog you could try to 1- create the interface to mark your dialog: public interface IAjaxSubmitAware { void onSubmit(AjaxRequestTarget target); } 2- create your own link, buttons, etc as in public abstract class

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread James Carman
@SpringBean isn't for use inside your Spring services, just Wicket stuff. Just use the native Spring injection mechanisms. Try @Autowired. On Wed, Dec 15, 2010 at 5:43 AM, Adam Gibbons adam.s.gibb...@gmail.com wrote: Hi there, For some time now I have been trying to put together a simple

Re: Form.isMultiPart - Visitor not checking for IFormVisitorParticipant

2010-12-15 Thread Daniel Soneira
Works perfectly fine with the snapshot. Thanks a lot for the quick change Pedro (gotta love the Wicket community for its helpful members). Cheers, Daniel Soneira On 14.12.2010 21:18, Pedro Santos wrote: I changed the PagingToolbar to set the visibility at onConfigure to avoid early

Re: RadioGroup/Radio runtime exception

2010-12-15 Thread Grafas
I'm kinda still stuck with this problem. Any help would be appreciated. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/RadioGroup-Radio-runtime-exception-tp2331304p3088874.html Sent from the Users forum mailing list archive at Nabble.com.

Re: 1.5 integer textfield

2010-12-15 Thread nino martinez wael
hmm that fixes it, it's because of generic limitations that we need to set the class explicitly, correct? 2010/12/15 Martin Grigorov mgrigo...@apache.org see Alexander Morozov reply either use new TextFieldInteger(refreshRate, refreshRateModel, Integer.class); or call

Re: wicket global call handlers

2010-12-15 Thread fachhoch
function wicketGlobalPreCallHandler() { } this method gets called before sending ajaxrequest ? can I retrieve more information about the request , please help me understand -- View this message in context:

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread adam.gibbons
Hi James, Thanks for the suggestion! However, even with your change, I still get the There is no application attached to current thread ContainerBackgroundProcessor[StandardEngine[Catalina]] error. Regards, Adam On 15 December 2010 11:17, James Carman [via Apache Wicket]

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread James Carman
You need to be able to fire your spring context outside the context of Wicket. Can it be instantiated outside your container? Once you get that down, you should be good to go. On Wed, Dec 15, 2010 at 8:50 AM, adam.gibbons adam.s.gibb...@gmail.com wrote: Hi James, Thanks for the suggestion!

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread adam.gibbons
I thought that was the whole point of the Wicket-Spring project... That tutorial looked like it worked as recently as a year ago. I find it hard to believe that it's no longer possible or harder to integrate Wicket and Spring than it was a year ago. On researching that error, all I find are

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread Matthias Gasser
Does the spring context startup without the wicket part? I've integrated Wicket in an existing Spring project (following the same guide as you did) and it worked without any (greater) problem. cheers, Matthias Am 15.12.2010 um 15:06 schrieb adam.gibbons: I thought that was the whole point

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread James Carman
What's the code for UserServiceImpl? On Wed, Dec 15, 2010 at 9:02 AM, adam.gibbons adam.s.gibb...@gmail.com wrote: New log: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userServiceImpl' defined in file

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread adam.gibbons
Hi Matthias, Sorry, I'm not sure what you mean by that? If you look at the new log I just posted, Spring seems to be starting up fine. How could I check it without the wicket part? What would I need to change exactly? Thanks, Adam On 15 December 2010 14:15, Matthias Gasser [via Apache Wicket]

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread adam.gibbons
The UserServiceImpl code is in the first post. On 15 December 2010 13:53, James Carman [via Apache Wicket] ml-node+3089041-1452804699-201...@n4.nabble.comml-node%2b3089041-1452804699-201...@n4.nabble.com wrote: You need to be able to fire your spring context outside the context of Wicket.

Re: RadioGroup/Radio runtime exception

2010-12-15 Thread Grafas
Lucky me. I checked newest Wicket release (1.4.14) and saw bugfix about Radio button. https://issues.apache.org/jira/browse/WICKET-3175 My bug occurred because we use one page for everything. That solution worked like a charm. -- View this message in context:

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread James Carman
Spring is not starting up fine. It's unable to instantiate the UserServiceImpl bean which is why I asked for the code for that class. On Wed, Dec 15, 2010 at 9:19 AM, adam.gibbons adam.s.gibb...@gmail.com wrote: Hi Matthias, Sorry, I'm not sure what you mean by that? If you look at the new

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread James Carman
So, you didn't change UserServiceImpl, as I suggested? The section you need to change is: @SpringBean private Temp1DAO temp1DAO; Change that to @Autowired instead of @SpringBean On Wed, Dec 15, 2010 at 9:23 AM, adam.gibbons adam.s.gibb...@gmail.com wrote: The UserServiceImpl code is in

Re: RequiredValidator

2010-12-15 Thread mrblobby
Hi, I dont see how this reply solves the problem. The forms fields have this: passwordField.setRequired(true); the Page.properties file has the following structure: Form.FeildName=fieldname RequiredValidator=Holy cow, ${lablel} is blank. This works fine, except the Required Validator part of

Fwd: Wicket 1.5-M3 migration experiences

2010-12-15 Thread Hielke Hoeve
Hi all, I have been working on a 1.5 WiQuery branch to see if we can get an experimental version online. I am facing several problems, most of which I can find a workaround for. One, though, I can't seem to tackle. We provide ResourceReferences, Resources and ResourceStreams for the plugin

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread adam.gibbons
Yes but directly below it states: Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [uk.co.company.product.business.spring.UserServiceImpl]: Constructor threw exception; nested exception is org.apache.wicket.WicketRuntimeException: There is no

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread adam.gibbons
Sorry perhaps I didn't make that clear before. I made that change as you suggested and this is the result. On 15 December 2010 14:28, James Carman [via Apache Wicket] ml-node+3089111-1454695690-201...@n4.nabble.comml-node%2b3089111-1454695690-201...@n4.nabble.com wrote: So, you didn't

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread James Carman
Get rid of the InjectorHolder code in your constructor. On Wed, Dec 15, 2010 at 9:39 AM, adam.gibbons adam.s.gibb...@gmail.com wrote: Yes but directly below it states: Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class

SV: 1.5 integer textfield

2010-12-15 Thread Wilhelmsen Tor Iver
hmm that fixes it, it's because of generic limitations that we need to set the class explicitly, correct? Yes, type information is only available at compile time, the compiler synthesizes generics use into explicit casting used at runtime. - Tor Iver

Re: Wicket 1.5-M3 migration experiences

2010-12-15 Thread Martin Grigorov
Hi Hielke, So basically you need org.apache.wicket.request.resource.PackageResource.getResourceStream() to become protected, right ? This way you can wrap super.getResourceStream() with compressing one. On Wed, Dec 15, 2010 at 11:35 AM, Hielke Hoeve hielke.ho...@gmail.comwrote: Hi all, I

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread James Carman
Put a log statement in your DAO's constructor to see if it's getting instantiated (it's probably not). Then turn on component scanning as suggested by someone else. On Wed, Dec 15, 2010 at 10:01 AM, adam.gibbons adam.s.gibb...@gmail.com wrote: There is definitely only 1 implementation. I read

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread adam.gibbons
Ok, I think this is now back to a Wicket question. Start up is ok now. However when I try and invoke UserServiceImpl.authenticate(){ final Temp1 temp1 = new Temp1(); temp1.setValue(userName); temp1DAO.save(temp1); return testUserService.authenticate(userName,

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread jcgarciam
In your web.xml the OSV Filter must comes in front (first) of the wicket filter On Wed, Dec 15, 2010 at 12:58 PM, adam.gibbons [via Apache Wicket] ml-node+3089284-1530997070-65...@n4.nabble.comml-node%2b3089284-1530997070-65...@n4.nabble.com wrote: Ok, I think this is now back to a Wicket

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread Hielke Hoeve
Hey Adam, This is still a spring error, you need a sessionfactory and transactionfactory and link them together. The opensessioninview filter only opens a transaction if you get this right. The spring forums are filled with examples. Hielke On 15 Dec 2010 16:58, adam.gibbons

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread adam.gibbons
Like this?: ?xml version=1.0 encoding=UTF-8? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd version=2.4

RE: Wicket extensions AjaxIndicatingDropdownChoice?

2010-12-15 Thread John Owen
+1 I just made the exact same thing locally the other day. :) -Original Message- From: nino martinez wael [mailto:nino.martinez.w...@gmail.com] Sent: Wednesday, December 15, 2010 2:14 AM To: users@wicket.apache.org Subject: Wicket extensions AjaxIndicatingDropdownChoice? should I add

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread adam.gibbons
Hi Hielke, Thank you for the helpful reply. :) But I think I already have those in my applicationConext.xml...: ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

Re: RequiredValidator

2010-12-15 Thread jcgarciam
See if this can help: https://cwiki.apache.org/WICKET/form-validation-messages.html https://cwiki.apache.org/WICKET/form-validation-messages.htmlFrom the link aboves: --- Changes in Wicket 1.3 Whether a field is required is now determined by testing the isRequired() method of

Test CheckBoxMultipleChoice or CheckGroup

2010-12-15 Thread Anton Bessonov
Hello list, I'm trying to set checkboxes with junit but without significant success. My trouble is to find checkboxes. I've not found any way to access it if I use CheckBoxMultipleChoice. With CheckGroup I get access with Visitor tester.getLastRenderedPage().visitChildren(Check.class, new

Re: Test CheckBoxMultipleChoice or CheckGroup

2010-12-15 Thread Martin Makundi
Use getters: https://cwiki.apache.org/WICKET/type-safe-testing-in-wicket.html 2010/12/15 Anton Bessonov exe...@googlemail.com: Hello list, I'm trying to set checkboxes with junit but without significant success. My trouble is to find checkboxes. I've not found any way to access it if I use

Re: Test CheckBoxMultipleChoice or CheckGroup

2010-12-15 Thread Anton Bessonov
Thanks, I will try! Use getters: https://cwiki.apache.org/WICKET/type-safe-testing-in-wicket.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: Wicket resources (css, js and images)?

2010-12-15 Thread Alex Objelean
Though this topic is quite old, I think it is still actual. Since the 1.5 release is not far away, did anybody thought if the (at least) js resource merging should occur? This is very useful when you have a page with a large number of components, each loading a large number of small resources.

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread James Carman
You also need to make sure you've set up your transactions properly. Are you using the @Transactional annotations? On Wed, Dec 15, 2010 at 11:40 AM, adam.gibbons adam.s.gibb...@gmail.com wrote: Hi Hielke, Thank you for the helpful reply. :) But I think I already have those in my

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread Michael O'Cleirigh
A good way to resolve the spring/hibernate/transactional errors first (to separate from the wicket errors) is to create a junit test case that bootstraps the spring context (everything except the wicketapplication bean). You can verify that your transaction demarcation is correct before

Re: Wicket resources (css, js and images)?

2010-12-15 Thread Hielke Hoeve
On 15 December 2010 21:05, Alex Objelean alex.objel...@gmail.com wrote: Though this topic is quite old, I think it is still actual. Since the 1.5 release is not far away, did anybody thought if the (at least) js resource merging should occur? We at WiQuery have been discussing multiple

vararg'ing StringResourceModel

2010-12-15 Thread Enrique Rodriguez
I noticed today that StringResourceModel could be slightly nicer to use if the Object[] parameter used by the underlying MessageFormat was replaced with a vararg in the StringResourceModel constructor. Sure enough, there was an old thread that touched on this topic. The defaultValue would have

Page mounting

2010-12-15 Thread Jeffrey Schneller
I think this was discussed here but I can't seems to find it so I will ask again. I would like to mount a page Login to Login.class. I know how to do this and have it working. Now I would like to mount a page called AdminLogin to Login.class but also pass a parameter to Login.class so

Re: how to validate a ListView?

2010-12-15 Thread rolandpeng
thanks for your reply.I'd like to try your second suggestion. But after looking into AbstractFormValidator and other related examples, I find that in my case I don't have any FormComponet to pass to error(FormComponent fc) after validate. Is there any way or examples to validate without

Re: how to validate a ListView?

2010-12-15 Thread Alexander Morozov
@Override protected void onInitialize() { super.onInitialize(); Form.findForm(this).add(new AbstractFormValidator() { private static final long serialVersionUID = 1L; @Override public void validate(Form? form) { if (/* ... */) {

Re: how to validate a ListView?

2010-12-15 Thread rolandpeng
That's really what I want!Thank you very much. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-validate-a-ListView-tp3088381p3090257.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Page mounting

2010-12-15 Thread Hielke Hoeve
Its fairly simple. Create a class Login, give it a constructor with pageparameters. Create two panels, one for each login type. Based on the page parameters you show one or the other. Mount the page on 2 paths, each with its own parameter. Hielke On 16 Dec 2010 00:43, Jeffrey Schneller