Send an object to page

2010-11-01 Thread Gustavo Henrique
hi! what better way to send an object to webpage? I'm sending in constructor but the URI is not friendly. thanks!

statelessform and ajaxsubmitlink in the same page

2010-07-25 Thread Gustavo Henrique
Hi! I have a page with 1 statelessform and another form that use ajaxsubmitlink. I overrides the isStateless method to return false to avoid ajaxsubmitlink fail but when the normal form is submited wicket throws exception with text: ... deserializing proxy Is possible have a statelessform and

How to put a loading cursor in ajaxsubmitlink?

2010-07-24 Thread Gustavo Henrique
Hi! How to put a loading cursor in ajaxsubmitlink? thanks!

Re: Change from development to deployment mode in maven2

2010-07-20 Thread Gustavo Henrique
it with your dev server JVM property. See the JavaDoc for Application#getConfigurationType. Regards, Peter 2010-07-19 19:10 keltezéssel, Gustavo Henrique írta: Hi! I'm using wicket in development mode but I need to change to deployment mode when maven is called. How I configure

Change from development to deployment mode in maven2

2010-07-19 Thread Gustavo Henrique
Hi! I'm using wicket in development mode but I need to change to deployment mode when maven is called. How I configure maven to change that mode when it is to generate war file? thanks!

Form an external file or as inner class of page?

2010-07-07 Thread Gustavo Henrique
Hi! Is better put a class form as inner class in page or an external file imported in page? For example, I did have to add a cookie in onSubmit method so was need to put the form class inside an WebPage class. thanks!

how to pass parameters to javascript function?

2010-06-29 Thread Gustavo Henrique
Hi! I need to put in the page a javascript function with name and Id of customer. I'm using a label component because I don't know others solutions. Any idea? Thanks!

Testing wicket pages in project with maven structure

2010-06-05 Thread Gustavo Henrique
Hi! I'm trying using WicketTester but I got an error: org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for component 'br.com.ecommerce.wicket.pages.ContactPage' not found. I changed the html dir using the trick with PathStripperLocator class and this works. But the test not

Testing wicket pages in project with maven structure

2010-06-05 Thread Gustavo Henrique
Hi! I'm trying using WicketTester but I got an error: org.apache.wicket.markup. MarkupNotFoundException: Markup of type 'html' for component 'br.com.ecommerce.wicket.pages.ContactPage' not found. I changed the html dir using the trick with PathStripperLocator class and this works. But the test

Re: Testing wicket pages in project with maven structure

2010-06-05 Thread Gustavo Henrique
I already tried that but failed. Only pass an instance of application class to the tester don't work. Is need configure the pom.xml too or put the html dir on build path. I resolved configuring the pom.xml as: resource filteringfalse/filtering

Convention for classes name

2010-06-05 Thread Gustavo Henrique
Hi! Is there any name convention for classes using wicket? I'm using that model: CustomerPage, OrderPanel, ProductAddForm. What you think about? Thanks!

Re: problem with WicketTester to load template

2010-04-12 Thread Gustavo Henrique
org.apache.wicket.WicketRuntimeException: path: 'Example:username' does not exist for page: Example at org.apache.wicket.util.tester.BaseWicketTester.fail(BaseWicketTester.java:1344) at

Re: problem with WicketTester to load template

2010-04-12 Thread Gustavo Henrique
I'm sorry! Blank is the constructor. It is a wrong word, because in my source the class name is Blank (only for test) and I renamed for Example in this post!

Re: problem with WicketTester to load template

2010-04-12 Thread Gustavo Henrique
Yes, the problem is the word void in the constructor. Now is ok! Thank you guys!

problem with WicketTester to load template

2010-04-11 Thread Gustavo Henrique
hi guys! I have been a problem using WicktTester. When I run a simple test, wicket throws an exception because can't load the template html. But if I access page via browser, wicket works fine. the source code: CustomerApplicationTest.java http://pastebin.com/tRJ9hNuk Example.java

Create cookie before redirect

2010-04-01 Thread Gustavo Henrique
Hi! I need to create a cookie and redirect to page in other app, but when I try redirect the cookie is not send in response: Form loginForm = new StatelessForm(loginForm) { protected void onSubmit() { try { Customer authenticatedCustomer =

Re: A web site developed with Wicket

2010-03-31 Thread Gustavo Henrique
could you release the wicket code for us? that would be a great help for the community. thanks!

How to integrate wicket and velocity?

2010-03-26 Thread Gustavo Henrique
Can anyone tell me where I find a good documentation about this integration? Thanks!

Get hiddenfield value on onError method

2010-03-10 Thread Gustavo Henrique
How I get the hiddenfield value on Form's onError method? thanks!

Label state after submit

2010-03-09 Thread Gustavo Henrique
Hi! How I can keep the label's states values after form submit? My app update the values of 3 labels using ajax, but when the form is submited and not pass in validation, the label's value are missing. Thanks!

Re: Label state after submit

2010-03-09 Thread Gustavo Henrique
In a rgister form, I find the address by postal code (ajax) and show in the page using labels. The user can submit the form (not ajax). if invalid form, the same page is showed. all the textfields values self keep but the labels values are missing.

Re: Label state after submit

2010-03-09 Thread Gustavo Henrique
The problem is diferent but is related with the previous post.

Create a label in onUpdate method using ajax (AjaxFormComponentUpdatingBehavior)

2010-03-08 Thread Gustavo Henrique
Hi guys! I'm trying create a label contain an error message after ajax request, but no success. I can't use FeedbackPanel because it changes the design. So I did: final Label label = new Label(postalCodeNotExisti); label.setOutputMarkupId(true); final RequiredTextField postalCodeComplement =