Wicket 1.3.4 and Spring annotations

2008-08-13 Thread alex2008
It's possible use this version of wicket with a service injected on spring by annotations? -- View this message in context: http://www.nabble.com/Wicket-1.3.4-and-Spring-annotations-tp18962935p18962935.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Wicket 1.3.4 and Spring annotations

2008-08-13 Thread alex2008
/Wicket-Iolite alex2008 wrote: Is it possible use this version of wicket with a service injected on spring by annotations? -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684

Re: Wicket 1.3.4 and Spring annotations

2008-08-13 Thread alex2008
public class WicketApplication extends WebApplication { public void init() { addComponentInstantiationListener(new SpringComponentInjector(this)); //mount(/Home, PackageName.forClass(Home.class)); } .. public class Home extends WebPage {

Re: SpringWebApplicationFactory cannot load WA from parent bean factory

2008-08-06 Thread alex2008
Now I would try to use dataview then should I use the method createSpringBeanProxy but since my application of departure does not extend SpringWebApplication (i'm use WebApplication because the first and the second system don't function)how can I do to move forward? -- View this message in

Re: SpringWebApplicationFactory cannot load WA from parent bean factory

2008-08-06 Thread alex2008
I'm seeing spring-phonebook, i would like use dataview for obtain a list. I'm read on ContactsDataProvider: note: it is important that the dao passed to the data provider be a proxy from wicket-contrib-spring when used in non-testing environment. Why do you have to use

Re: Questions about wicket-phonebook-1.2

2008-08-06 Thread alex2008
Sorry. :blush: -- View this message in context: http://www.nabble.com/Questions-about-wicket-phonebook-1.2-tp18834046p18850595.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:

Re: SpringWebApplicationFactory cannot load WA from parent bean factory

2008-08-06 Thread alex2008
Thanks. :-) What you can do is inject (via @SpringBean) your dao into a component/page. When that component/page constructs the data provider, it can pass in the injected dao reference. That reference will be okay to serialize/deserialize. -- View this message in context:

Help on create a list with dataview

2008-08-06 Thread alex2008
This is the code: public class ListProductPage extends WebPage { public ListProductPage() { add(new Link(createLink) { /** * Go to the Edit page when the link is clicked, passing an empty * Product details */

Re: Help on create a list with dataview

2008-08-06 Thread alex2008
No i'm using wicket 1.3.4. If there is a system to have a more simple code ... are you using wicket 1.2??? -igor -- View this message in context: http://www.nabble.com/Help-on-create-a-list-with-dataview-tp18852545p18853703.html Sent from the Wicket - User mailing list archive at

Re: Help on create a list with dataview

2008-08-06 Thread alex2008
I'm trying to customize an example but without success if there is a better way to get the same result with the 1.3.4 so much the better. Which part of the code would be modify? i guess i am wondering where this code came from? looks like code from 1.2... -- View this message in context:

Questions about wicket-phonebook-1.2

2008-08-05 Thread alex2008
1) On ListContactsPage.java: // set up data provider ContactsDataProvider dataProvider = new ContactsDataProvider(getDao()); There is a reference to getDao(). Where is declared this method? 2) Image of the screen when happen the error expire page:

Re: Questions about wicket-phonebook-1.2

2008-08-05 Thread alex2008
.jar and spring-1.2.6.jar Perhaps this is the problem? Thanks. igor.vaynberg wrote: On Tue, Aug 5, 2008 at 8:51 AM, alex2008 [EMAIL PROTECTED] wrote: 1) On ListContactsPage.java: // set up data provider ContactsDataProvider dataProvider = new ContactsDataProvider(getDao

Problem on external LoadableDetachableModel class

2008-08-03 Thread alex2008
@SpringBean private ProductManager productManager; //@Autowired public void setProductManager(ProductManager productManager) { this.productManager = productManager; } . LoadableDetachableModel personListModel = new LoadableDetachableModel() {

Re: Problem on external LoadableDetachableModel class

2008-08-03 Thread alex2008
Thanks for the link. I read the article but i don't understand how i can resolve the problem. -- View this message in context: http://www.nabble.com/Problem-on-external-LoadableDetachableModel-class-tp18797009p18798487.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Problem on external LoadableDetachableModel class

2008-08-03 Thread alex2008
(this); See also [1] Martijn [1] http://markmail.org/message/u7lgvd2azwpl3m4a#query:+page:1+mid:xzzx2cz6si36x7bz+state:results On Sun, Aug 3, 2008 at 3:10 PM, alex2008 [EMAIL PROTECTED] wrote: Thanks for the link. I read the article but i don't understand how i can resolve the problem

Mistake on extending panel

2008-08-02 Thread alex2008
package wicketapp; import org.apache.wicket.markup.html.link.Link; import org.apache.wicket.markup.html.panel.Panel; /** * * @author alearchlinux */ public class LogoutPanel extends Panel { public void LogoutPanel(String id) { super(id); . } }

Re: Mistake on extending panel

2008-08-02 Thread alex2008
Many Thanks!!! :handshake: Martijn Dashorst wrote: remove the void before your constructor On 8/2/08, alex2008 [EMAIL PROTECTED] wrote: package wicketapp; import org.apache.wicket.markup.html.link.Link; import org.apache.wicket.markup.html.panel.Panel; /** * * @author

Re: How take a field to a form so that it can manage within submit on the same form?

2008-08-01 Thread alex2008
No problem. I will try to use different names perhaps is more clearer. Form: Percentage: 20 Button: Execute When i click on button Execute (on submit) i would like take 20 because i wold like use this value. Note: Bruno you understand Italian? I could be more clear in my language. -- View

How can force always the same error message?

2008-08-01 Thread alex2008
I have just read http://cwiki.apache.org/WICKET/form-validation-messages.html Form validation messages Form form = new Form(f); final TextField percentage = new TextField(percentage, percentageModel, Integer.class); percentage.add(new NumberValidator.MinimumValidator(1));

Re: How can force always the same error message?

2008-08-01 Thread alex2008
Thanks. In this case is the easiest solution. :) For more complex situations which system I can use to achieve the same result? Are there NumberValidator.range(...,...) instead Martijn -- View this message in context:

Re: How can force always the same error message?

2008-08-01 Thread alex2008
I'm tried many times but nothing! I can't customize message error. :,( -- View this message in context: http://www.nabble.com/How-can-force-always-the-same-error-message--tp18772519p18778125.html Sent from the Wicket - User mailing list archive at Nabble.com.

SpringWebApplicationFactory cannot load WA from parent bean factory

2008-07-31 Thread alex2008
I have the same problem described on: https://issues.apache.org/jira/browse/WICKET-1189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel SpringWebApplicationFactory cannot load WA from parent bean factory I have tried the suggest workaround without result. I'm use jdk 1.6.x,

Re: SpringWebApplicationFactory cannot load WA from parent bean factory

2008-07-31 Thread alex2008
sorry, dont really understand where your problem is...wicket-1189 has been fixed a long time ago. are you saying the bug is back or something else is a problem? -igor Now I'm not sure perhaps is only similar. :blush: For the moment i have find a workaround to this problem I used the

Re: SpringWebApplicationFactory cannot load WA from parent bean factory

2008-07-31 Thread alex2008
I like use @SpringBean but i don't understand why if i'm trying settings as serverlet or as a filter does not work. what does this addComponentInstantiationListener (new SpringComponentInjector (this)); have to do with whether or not you use a servlet or a filter? you always have to do that

How take a field to a form so that it can manage within submit on the same form?

2008-07-31 Thread alex2008
How take a field to a form so that it can manage within submit on the same form? Form form=new Form(f); form.add(new RequiredTextField(integerInRangeProperty).add(NumberValidator.range(0, 100))); form.add(new Button(execute) { public void onSubmit() {