Re: Frozen error form object

2009-01-28 Thread Anton Veretennikov
It works! Thank you.

On Wed, Jan 28, 2009 at 2:38 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 you need to wire your events. listpanel can have an abstract onclicked();
 editpanel can have a method called inputchanged() which calls 
 form.clearinput()
 your listpanel can then look like this:

 add(new listpanel() { onclicked() { editpanel.inputchanged(); }}):

 that way everything is still nicely encapsulated, but accessible.

 -igor

 On Tue, Jan 27, 2009 at 11:35 PM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 Thank you very much, Igor

 This really works.
 I think that it will be nice not to keep reference to a form by the way.
 So I tried to make override of onBeforeRender() but...

 Seems that getModelObject() every time returns just clicked object not
 the one editing-continued.
 Is there any method to know it? The problem will be solved clearly.

 Tony



 On Wed, Jan 28, 2009 at 1:27 PM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 if the form is in invalid state and you want to reuse the same
 instance of it you have to call Form#clearInput()

 -igor

 On Tue, Jan 27, 2009 at 8:06 PM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 I'm still with this problem... and created Test App for this.

 When required field is empty and error message is shown, pressing on
 other links does not change the form.

 Please, help me, I'm stuck here.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: WicketTester - Problem submitting a form

2009-01-28 Thread Stephan Koch
Hi Per,

I tried that before, still the same exception. From what I read using
clickLink() on the SubmitLink or doing submit() should do the same.

Per Newgro wrote:
 Hi Stephan Koch,
 
 i can't help you on the exception. But all i can see is that you don't
 call submit.
 
 FormTester loginFormTester = tester.newFormTester(form);
 loginFormTester.setValue(loginName, testUser.getUsername());
 loginFormTester.setValue(password, test);
 loginFormTester.submit(); //  insert
 tester.clickLink(form:loginSubmit);
 
 But give it a try. I always have strange exceptions if i call methods
 invalidly.
 
 Cheers
 Per
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Open popup on form submit?

2009-01-28 Thread sghavoc

Hi,

I had the same problem, and after some trial and error I managed to make a
SubmitPageLink, which, in addition to the PageLink class, submits the form.
The way you save your data remains up to you. For example, I call a save
function in the getPage method, right before i put a
setResponsePage(popupPage).

If you're still interested, contact me by e-mail. Who knows, maybe it will
work for you.
If you've solved the problem, please give me an example of how you've done
it, maybe it's better and I'll replace mine


rhodebump wrote:
 
 Hi,
 
 Is it possible to do a form submit and display a popup?
 
 I want it to be on form submit so that the form data is saved since I  
 need to reload it when the popup is closed.  Just having a anchor that  
 generates the popup causes users to lose data entry.
 
 
 Thanks.
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Open-popup-on-form-submit--tp21447521p21702558.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: WicketTester - Problem submitting a form

2009-01-28 Thread Stephan Koch
Hi all,

the exception is apparently caused by mounting the LoginPage. In my
Application init(), I do this:

mountBookmarkablePage(/login, LoginPage.class);

When I remove that line, the test runs fine. Could be a bug in
WicketTester? I'd like some opinions on that before I file a JIRA issue.

I'm using Wicket 1.3.5.

-stephan


Stephan Koch wrote:
 Hi all,
 
 I ran into a problem with WicketTester. I am doing a very simple test of
 the login form of my application:
 
 code
 .. setup stuff ...
 
 tester.startPage(LoginPage.class);
 tester.assertComponent(form:loginName, TextField.class);
 FormTester loginFormTester = tester.newFormTester(form);
 loginFormTester.setValue(loginName, testUser.getUsername());
 loginFormTester.setValue(password, test);
 tester.clickLink(form:loginSubmit);
 tester.assertRenderedPage(DashboardPage.class);
 
 /code
 
 The form is a standard wicket form object with 1 Textfield, 1
 PasswordTextField for username and password, 2 buttons that use
 SubmitLinks, and a FeedbackPanel.
 
 I get the following error when submitting the form. I have no idea where
 that '/' comes from, but its obviously causing the problem.
 I also tried to use formtester.submit(loginSubmit) with the same results.
 
 Any suggestions?
 
 
 
 BR,
 Stephan
 
 org.apache.wicket.WicketRuntimeException: Internal error parsing
 wicket:interface = :0:form::IFormSubmitListener::/; wrong format for url
 depth argument. Expected a number but was '/'
   at
 org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.addInterfaceParameters(WebRequestCodingStrategy.java:617)
   at
 org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.addInterfaceParameters(WebRequestCodingStrategy.java:554)
   at
 org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.decode(WebRequestCodingStrategy.java:199)
   at org.apache.wicket.Request.getRequestParameters(Request.java:171)
   at org.apache.wicket.RequestCycle.step(RequestCycle.java:1233)
   at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
   at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
   at
 org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:484)
   at
 org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:472)
   at
 org.apache.wicket.util.tester.BaseWicketTester.executeListener(BaseWicketTester.java:248)
   at
 org.apache.wicket.util.tester.BaseWicketTester.submitForm(BaseWicketTester.java:791)
   at
 org.apache.wicket.util.tester.BaseWicketTester.clickLink(BaseWicketTester.java:741)
   at
 org.apache.wicket.util.tester.BaseWicketTester.clickLink(BaseWicketTester.java:617)
   at
 com.xxx.xxx.wicket.pages.AllPagesInstantiationTest.testAllPagesFromMainMenu(AllPagesInstantiationTest.java:41)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at junit.framework.TestCase.runTest(TestCase.java:154)
   at junit.framework.TestCase.runBare(TestCase.java:127)
   at
 org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:69)
   at junit.framework.TestResult$1.protect(TestResult.java:106)
   at junit.framework.TestResult.runProtected(TestResult.java:124)
   at junit.framework.TestResult.run(TestResult.java:109)
   at junit.framework.TestCase.run(TestCase.java:118)
   at
 org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
   at
 org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
   at
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
   at
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
   at
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
   at
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
 Caused by: java.lang.NumberFormatException: For input string: /
   at
 java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
   at java.lang.Integer.parseInt(Integer.java:447)
   at java.lang.Integer.parseInt(Integer.java:497)
   at
 org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.addInterfaceParameters(WebRequestCodingStrategy.java:613)
   ... 30 more
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


-
To unsubscribe, e-mail: 

Re: Wicketstuff 1.3.5 versions?

2009-01-28 Thread Peter Neubauer
Mmh,
probably this should be posted on the Wicket Developer list ...

/peter

Do Good. opencauses.org.

GTalk:  neubauer.peter
Skype   peter.neubauer
Phone   +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter  http://twitter.com/peterneubauer

http://www.neo4j.org - New Energy for Data - the Graph Database.
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org- New Energy for Java - Domain Driven Development.




On Wed, Jan 28, 2009 at 11:29 AM, Peter Neubauer
peter.neuba...@jayway.se wrote:
 Hi folks,
 I added Gmap layer support to Wicketstuff-OpenLayers, but I am using
 the 1.3.5 Wicket, all wicketstuff core is at Wicket 1.4-SNAPSHOT.

 Is there any chance to open a stable branch to get such stuff in
 without being forced to upgrade Wicket to SNAPSHOT versions?

 /peter

 Do Good. opencauses.org.

 GTalk:  neubauer.peter
 Skype   peter.neubauer
 Phone   +46 704 106975
 LinkedIn   http://www.linkedin.com/in/neubauer
 Twitter  http://twitter.com/peterneubauer

 http://www.neo4j.org - New Energy for Data - the Graph Database.
 http://www.ops4j.org - New Energy for OSS Communities - Open
 Participation Software.
 http://www.qi4j.org- New Energy for Java - Domain Driven Development.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wicketstuff 1.3.5 versions?

2009-01-28 Thread Peter Neubauer
Hi folks,
I added Gmap layer support to Wicketstuff-OpenLayers, but I am using
the 1.3.5 Wicket, all wicketstuff core is at Wicket 1.4-SNAPSHOT.

Is there any chance to open a stable branch to get such stuff in
without being forced to upgrade Wicket to SNAPSHOT versions?

/peter

Do Good. opencauses.org.

GTalk:  neubauer.peter
Skype   peter.neubauer
Phone   +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter  http://twitter.com/peterneubauer

http://www.neo4j.org - New Energy for Data - the Graph Database.
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org- New Energy for Java - Domain Driven Development.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Example for presenting pdf in modal window

2009-01-28 Thread reiern70

Hi Per,

I don't think you could use InlineFrame class to show a PDF in an iframe. I
just built a DocumentInlineFrame class, inspired on InlineFrame, that allows
to render a Resource (see attached files). To view the example all you have
to do is:

1- lt;span wicket:id=pdfpanelgt;lt;/spangt;
2- add(new MyPdfPanel(pdfpanel));
3- and drop a pdf file test.pdf on the same package as class MyPdfResource. 

Hope this example is of some help. Maybe the class DocumentInlineFrame.java,
or some improved version of it, can be included  as part of wicket
distribution?

Best,

Ernesto

References

http://www.nabble.com/file/p21704182/MyPdfResource.java MyPdfResource.java 
http://www.nabble.com/file/p21704182/MyPdfPanel.html MyPdfPanel.html 
http://www.nabble.com/file/p21704182/MyPdfPanel.java MyPdfPanel.java 
http://www.nabble.com/file/p21704182/DocumentInlineFrame.java
DocumentInlineFrame.java 


Newgro wrote:
 
 And how should i add the pdf?
 Page.add(InlineFrame.add(???));
 
 That is exactly hte problem i can't get over.
 
 Thanks for helping me
 Per
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Example-for-presenting-pdf-in-modal-window-tp21666757p21704182.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



HTML markup not found ?

2009-01-28 Thread Antoine Roux

Hi,
I am new to Wicket and I am currently exploring it.
I made a first simple demo application and now I am evolving it a bit 
further. I am also trying to integrate it with Spring, using the 
annotation approach.


For now, I have a simple form with two drop down lists. When the user 
clicks Submit it is redirected to the HomePage and the choices of the 
drop down list are passed as arguments to display a message related to 
them. Quite simple. It used to work.


I began integration with Spring. For now, my Spring beans are loaded on 
Tomcat startup, but I do not use them on my web tier yet.


Now, when I submit the form, Wicket complains about not finding the HTML 
page, with the following exception:




WicketMessage: Markup of type 'html' for component 
'com.netvitesse.nvconnect.HomePage' not found. Enable debug messages for 
org.apache.wicket.util.resource to get a list of all filenames tried: 
[Page class = com.netvitesse.nvconnect.HomePage, id = 1, version = 0]


Root cause:

org.apache.wicket.markup.MarkupNotFoundException: Base markup of 
inherited markup not found. Component class: 
com.netvitesse.nvconnect.HomePage Enable debug messages for 
org.apache.wicket.util.resource.Resource to get a list of all filenames 
tried. at 
org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance(InheritedMarkupMarkupLoader.java:102) 
at 
org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:63) 
at 
org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:55) 
at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:458) 
at 
org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:553) 
at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:319) 
at 
org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:215) 
at 
org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:343) 
at org.apache.wicket.Page.onRender(Page.java:1463) at 
org.apache.wicket.Component.render(Component.java:2317) at 
org.apache.wicket.Page.renderPage(Page.java:904) at 
org.apache.wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:163) 
at 
org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:58) 
at 
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104) 
at 
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1181) 
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252) at 
org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353) at 
org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at 
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355) 
at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200) 
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) 
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) 
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) 
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) 
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) 
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) 
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) 
at java.lang.Thread.run(Thread.java:595)


Complete stack:

org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' 
for component 'com.netvitesse.nvconnect.HomePage' not found. Enable 
debug messages for org.apache.wicket.util.resource to get a list of all 
filenames tried: [Page class = com.netvitesse.nvconnect.HomePage, id = 
1, version = 0] at 
org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:355) 
at org.apache.wicket.Page.onRender(Page.java:1463) at 
org.apache.wicket.Component.render(Component.java:2317) at 
org.apache.wicket.Page.renderPage(Page.java:904) at 
org.apache.wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:163) 
at 
org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:58) 
at 
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104) 
at 
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1181) 
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252) 

Change Year in DatePicker

2009-01-28 Thread Luca Provenzani
Hi All,

i use org.apache.wicket.extensions.yui.calendar.DateField as DatePicker.
with wicket 1.3.0
But when i open datePicker on my webpage i can't change year, i can only
change the months.
Does someone know how to configure DateField to do this?  is it possible?

Thank
Luca


Re: HTML markup not found ?

2009-01-28 Thread Dipu
could you please check if your IDE is copying the markup file to the
target folder.
check if HomePage.html is there in the folder where HomePage.class is.

regards
Dipu


On Wed, Jan 28, 2009 at 12:25 PM, Antoine Roux
antoine.r...@net-vitesse.com wrote:
 Hi,
 I am new to Wicket and I am currently exploring it.
 I made a first simple demo application and now I am evolving it a bit
 further. I am also trying to integrate it with Spring, using the annotation
 approach.

 For now, I have a simple form with two drop down lists. When the user clicks
 Submit it is redirected to the HomePage and the choices of the drop down
 list are passed as arguments to display a message related to them. Quite
 simple. It used to work.

 I began integration with Spring. For now, my Spring beans are loaded on
 Tomcat startup, but I do not use them on my web tier yet.

 Now, when I submit the form, Wicket complains about not finding the HTML
 page, with the following exception:

 

 WicketMessage: Markup of type 'html' for component
 'com.netvitesse.nvconnect.HomePage' not found. Enable debug messages for
 org.apache.wicket.util.resource to get a list of all filenames tried: [Page
 class = com.netvitesse.nvconnect.HomePage, id = 1, version = 0]

 Root cause:

 org.apache.wicket.markup.MarkupNotFoundException: Base markup of inherited
 markup not found. Component class: com.netvitesse.nvconnect.HomePage Enable
 debug messages for org.apache.wicket.util.resource.Resource to get a list of
 all filenames tried. at
 org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance(InheritedMarkupMarkupLoader.java:102)
 at
 org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:63)
 at
 org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:55)
 at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:458) at
 org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:553)
 at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:319) at
 org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:215)
 at
 org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:343)
 at org.apache.wicket.Page.onRender(Page.java:1463) at
 org.apache.wicket.Component.render(Component.java:2317) at
 org.apache.wicket.Page.renderPage(Page.java:904) at
 org.apache.wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:163)
 at
 org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:58)
 at
 org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104)
 at
 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1181)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252) at
 org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353) at
 org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355) at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
 at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
 at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
 at java.lang.Thread.run(Thread.java:595)

 Complete stack:

 org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for
 component 'com.netvitesse.nvconnect.HomePage' not found. Enable debug
 messages for org.apache.wicket.util.resource to get a list of all filenames
 tried: [Page class = com.netvitesse.nvconnect.HomePage, id = 1, version = 0]
 at
 org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:355)
 at org.apache.wicket.Page.onRender(Page.java:1463) at
 org.apache.wicket.Component.render(Component.java:2317) at
 org.apache.wicket.Page.renderPage(Page.java:904) at
 org.apache.wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:163)
 at
 org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:58)
 

Re: Wicketstuff 1.3.5 versions?

2009-01-28 Thread Martin Grigorov
There is a branch for 1.3.x

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3.x/

El mié, 28-01-2009 a las 11:29 +0100, Peter Neubauer escribió:
 Hi folks,
 I added Gmap layer support to Wicketstuff-OpenLayers, but I am using
 the 1.3.5 Wicket, all wicketstuff core is at Wicket 1.4-SNAPSHOT.
 
 Is there any chance to open a stable branch to get such stuff in
 without being forced to upgrade Wicket to SNAPSHOT versions?
 
 /peter
 
 Do Good. opencauses.org.
 
 GTalk:  neubauer.peter
 Skype   peter.neubauer
 Phone   +46 704 106975
 LinkedIn   http://www.linkedin.com/in/neubauer
 Twitter  http://twitter.com/peterneubauer
 
 http://www.neo4j.org - New Energy for Data - the Graph Database.
 http://www.ops4j.org - New Energy for OSS Communities - Open
 Participation Software.
 http://www.qi4j.org- New Energy for Java - Domain Driven Development.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Convert a null Model to a custom string rather than

2009-01-28 Thread Anton Veretennikov
But it throws Internal Error (not in feedback) when conversion
error rises on this line:

mNestedModel.setObject(object);

So it will be nice to correct it somehow..


Example of error on BigDecimal:

ERROR - RequestCycle   - Cannot parse '2.5' using format
java.text.decimalfor...@674dc
org.apache.wicket.util.convert.ConversionException: Cannot parse '2.5'
using format java.text.decimalfor...@674dc
at 
org.apache.wicket.util.convert.converters.AbstractConverter.newConversionException(AbstractConverter.java:78)
at 
org.apache.wicket.util.convert.converters.AbstractConverter.parse(AbstractConverter.java:58)
at 
org.apache.wicket.util.convert.converters.AbstractNumberConverter.parse(AbstractNumberConverter.java:80)
at 
org.apache.wicket.util.convert.converters.BigDecimalConverter.convertToObject(BigDecimalConverter.java:43)
at 
org.apache.wicket.util.convert.converters.BigDecimalConverter.convertToObject(BigDecimalConverter.java:28)
at 
org.apache.wicket.util.lang.PropertyResolverConverter.convert(PropertyResolverConverter.java:68)
at 
org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1082)
at 
org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:582)
at 
org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136)
at 
org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169)
at 
common.component.DefaultWhenNullModel.setObject(DefaultWhenNullModel.java:41)


On Wed, Jan 28, 2009 at 11:51 AM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
 Not very nice but works (Jeremy Thomerson's variant with setObject changes):

 public class DefaultWhenNullModelT implements IModelT {

  private static final long serialVersionUID = 1L;
  private final IModelT mNestedModel;
  private final T mDefaultValue;

  public DefaultWhenNullModel(IModelT nestedModel, T defaultValue) {
mNestedModel = nestedModel;
mDefaultValue = defaultValue;
  }

  public T getObject() {
T val = mNestedModel.getObject();
return val == null ? mDefaultValue : val;
  }

  public void setObject(T object) {
if (object!=null  object.equals(mDefaultValue)) {
  mNestedModel.setObject(null);
} else {
  mNestedModel.setObject(object);
}
  }

  public void detach() {
mNestedModel.detach();
  }
 }


 Usage:
form.add(new TextField(value,
new DefaultWhenNullModel(new
 PropertyModel(getSomeModel(),value), Enter a value)

));




 On Wed, Jan 28, 2009 at 5:16 AM, nate roe phl...@gmail.com wrote:
 Actually, I don't think that this will work for me.

 The behavior that I want is to display a special string when the model is
 null.  However, I still want the model to be null.

 My custom converter converts a special keyword to a null model.  I want also
 to convert a new model to a special keyword for display.

 On Tue, Jan 27, 2009 at 11:46 AM, nate roe phl...@gmail.com wrote:

 Excellent, thanks for writing that one up!


 On Tue, Jan 27, 2009 at 11:41 AM, Jeremy Thomerson 
 jer...@wickettraining.com wrote:

 This has come up quite a bit here on the user list.

 See the first example on this page:

 http://www.jeremythomerson.com/blog/2008/11/06/wicket-the-power-of-nested-models/


 --
 Jeremy Thomerson
 http://www.wickettraining.com

 On Tue, Jan 27, 2009 at 1:38 PM, nate roe phl...@gmail.com wrote:

  I'm using Wicket v1.3.4.
 
  I would like to create a kind of TextField that converts a null model
 value
  to a custom string rather than an empty string.  Unfortunately, the
  converter is not run when the model object is null, and it looks like
  Component.getModelObjectAsString(...) is hard-coded to return  when
 the
  model is null.
 
  Is there some way I can overcome this without modifying the Wicket
 source?
 
  Thanks,
  Nate Roe
 






-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



[OT] Wicket Like framework for desktop applications?

2009-01-28 Thread nino martinez wael
Hi Guys

I've havent done much desktop development but I wondered if there were
something like wicket for desktop applications? I need it to be a desktop
application because I need to manipulate the keyboard etc, via robot. (I
have been thinking of embedding winstone in a jar with a wicket application
and just run it locally on each desktop, but that seems really overkill and
will not let me manipulate the desktop).

So I've looked at Eclipse RCP, but it does quite not feel like a light
weight way, it might just be me.. What else would you guys suggest, I could
look into?

regards Nino


Re: [OT] Wicket Like framework for desktop applications?

2009-01-28 Thread Antoine Roux
Swing may be what you are looking for. I never used it, but Wicket is 
often compared to Swing. Swing is included in JSE.



Antoine



nino martinez wael a écrit :

Hi Guys

I've havent done much desktop development but I wondered if there were
something like wicket for desktop applications? I need it to be a desktop
application because I need to manipulate the keyboard etc, via robot. (I
have been thinking of embedding winstone in a jar with a wicket application
and just run it locally on each desktop, but that seems really overkill and
will not let me manipulate the desktop).

So I've looked at Eclipse RCP, but it does quite not feel like a light
weight way, it might just be me.. What else would you guys suggest, I could
look into?

regards Nino

  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OT] Wicket Like framework for desktop applications?

2009-01-28 Thread nino martinez wael
True, I thought that too.. I guess it could be that simple...

2009/1/28 Antoine Roux antoine.r...@net-vitesse.com

 Swing may be what you are looking for. I never used it, but Wicket is often
 compared to Swing. Swing is included in JSE.


 Antoine



 nino martinez wael a écrit :

  Hi Guys

 I've havent done much desktop development but I wondered if there were
 something like wicket for desktop applications? I need it to be a desktop
 application because I need to manipulate the keyboard etc, via robot. (I
 have been thinking of embedding winstone in a jar with a wicket
 application
 and just run it locally on each desktop, but that seems really overkill
 and
 will not let me manipulate the desktop).

 So I've looked at Eclipse RCP, but it does quite not feel like a light
 weight way, it might just be me.. What else would you guys suggest, I
 could
 look into?

 regards Nino





 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: HTML markup not found ?

2009-01-28 Thread Antoine Roux

Hi Dipu,
Thanks for your help.

I checked and, yes, HomePage.class and HomePage.html both exist and are 
in the same directory in the resulting build.


I am using Eclipse. I meet this problem both when I deploy from Eclipse 
but also if I deploy manually to a Tomcat installation. In the war 
deployed to Tomcat, I checked that HomePage.html is there.


I am still investigating on my side...


Antoine


(sorry if you receive this message twice, the first time I was told it 
was rejected because seen as spam...)


Dipu a écrit :

could you please check if your IDE is copying the markup file to the
target folder.
check if HomePage.html is there in the folder where HomePage.class is.

regards
Dipu
  


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: HTML markup not found ?

2009-01-28 Thread nino martinez wael
Are you using markup inheritance ? Then you must remember to put in
wicket:extend into the sub page. And wicket:child in the parent page.

2009/1/28 Antoine Roux antoine.r...@net-vitesse.com

 Hi Dipu,
 Thanks for your help.

 I checked and, yes, HomePage.class and HomePage.html both exist and are in
 the same directory in the resulting build.

 I am using Eclipse. I meet this problem both when I deploy from Eclipse but
 also if I deploy manually to a Tomcat installation. In the war deployed to
 Tomcat, I checked that HomePage.html is there.

 I am still investigating on my side...


 Antoine


 (sorry if you receive this message twice, the first time I was told it was
 rejected because seen as spam...)

 Dipu a écrit :

 could you please check if your IDE is copying the markup file to the
 target folder.
 check if HomePage.html is there in the folder where HomePage.class is.

 regards
 Dipu



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: [OT] Wicket Like framework for desktop applications?

2009-01-28 Thread Martijn Dashorst
On Wed, Jan 28, 2009 at 2:39 PM, Piller Sébastien pi...@hmcrecord.ch wrote:
 far easier than web dev

Nope.

 almost no compatibility issue between jre versions

With Wicket you don't even have any compatibility issues *AT ALL*.

  looks pretty nice (builtin selectable look and feel, etc.)

I can spot a Swing UI a mile away. Usually ugly, and doesn't mesh
correctly with established GUI standards on platforms.

 runs much faster than a webapp (but everybody knows than
 desktop are faster than networks), etc...

But first you have to locally install the application, ensure you have
a compatible JRE, fix your classpath if you have multiple JRE's
installed. Next you often don't have working copy/paste between
native applications and swing apps, are the swing apps slow, don't
support drag'n drop between the OS and the swing application, etc.

I tend to like native apps much better than Java apps. And in several
cases, I like web apps even more than respective native GUI apps
(gmail, bug trackers, viewvc, etc).

Martijn

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OT] Wicket Like framework for desktop applications?

2009-01-28 Thread nino martinez wael
Hmm another even more ot question then are, how does spring/juice/hibernate
integrate with swing? As you mention there are no management of application
lifecycle..?

2009/1/28 Piller Sébastien pi...@hmcrecord.ch

 Hi,

 Swing is more an API than a framework (it provides components, models, etc)
 but it is a bit less powerfull (it doesn't manage your application life
 cycle neither the request cycle, don't have any builtin error management,
 etc).

 But it is great to use and learn, far easier than web dev, almost no
 compatibility issue between jre versions, looks pretty nice (builtin
 selectable look and feel, etc.), has a lot of powerfull components (tree,
 table, spinners, panels where you can draw lines and circles, ...) and
 layouts, and runs much faster than a webapp (but everybody knows than
 desktop are faster than networks), etc...

 If you need to do desktop dev, I guess swing is the best choice. Others
 usually used API are SWT (used for Eclipse) or AWT (ancestor of swing), etc.

 ;)

 nino martinez wael a écrit :

 Hi Guys


 I've havent done much desktop development but I wondered if there were
 something like wicket for desktop applications? I need it to be a desktop
 application because I need to manipulate the keyboard etc, via robot. (I
 have been thinking of embedding winstone in a jar with a wicket
 application
 and just run it locally on each desktop, but that seems really overkill
 and
 will not let me manipulate the desktop).

 So I've looked at Eclipse RCP, but it does quite not feel like a light
 weight way, it might just be me.. What else would you guys suggest, I
 could
 look into?

 regards Nino





 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: [OT] Wicket Like framework for desktop applications?

2009-01-28 Thread jWeekend

Nino,

Swing has a familiar programming model, is very flexible, extensible,
powerful and robust. You can also make use of all the core and open-source
Java libraries you already know. If the target client machines have a JRE
why use anything else.

Using Swing would also open up various deployment options like Web Start. 

I've used AWT's Robot (although I think it may have been in the last
century!) as well with good success for an RMI based shared whiteboard.

Regards - Cemal
http://www.jWeekend.co.uk jWeekend 




Nino Martinez-2 wrote:
 
 True, I thought that too.. I guess it could be that simple...
 
 2009/1/28 Antoine Roux antoine.r...@net-vitesse.com
 
 Swing may be what you are looking for. I never used it, but Wicket is
 often
 compared to Swing. Swing is included in JSE.


 Antoine



 nino martinez wael a écrit :

  Hi Guys

 I've havent done much desktop development but I wondered if there were
 something like wicket for desktop applications? I need it to be a
 desktop
 application because I need to manipulate the keyboard etc, via robot. (I
 have been thinking of embedding winstone in a jar with a wicket
 application
 and just run it locally on each desktop, but that seems really overkill
 and
 will not let me manipulate the desktop).

 So I've looked at Eclipse RCP, but it does quite not feel like a light
 weight way, it might just be me.. What else would you guys suggest, I
 could
 look into?

 regards Nino





 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 
 

-- 
View this message in context: 
http://www.nabble.com/-OT--Wicket-Like-framework-for-desktop-applications--tp21705472p21706360.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OT] Wicket Like framework for desktop applications?

2009-01-28 Thread nino martinez wael
juice=Guice, in the previous mail ..:)

2009/1/28 nino martinez wael nino.martinez.w...@gmail.com

 Hmm another even more ot question then are, how does spring/juice/hibernate
 integrate with swing? As you mention there are no management of application
 lifecycle..?

 2009/1/28 Piller Sébastien pi...@hmcrecord.ch

 Hi,

 Swing is more an API than a framework (it provides components, models,
 etc) but it is a bit less powerfull (it doesn't manage your application life
 cycle neither the request cycle, don't have any builtin error management,
 etc).

 But it is great to use and learn, far easier than web dev, almost no
 compatibility issue between jre versions, looks pretty nice (builtin
 selectable look and feel, etc.), has a lot of powerfull components (tree,
 table, spinners, panels where you can draw lines and circles, ...) and
 layouts, and runs much faster than a webapp (but everybody knows than
 desktop are faster than networks), etc...

 If you need to do desktop dev, I guess swing is the best choice. Others
 usually used API are SWT (used for Eclipse) or AWT (ancestor of swing), etc.

 ;)

 nino martinez wael a écrit :

 Hi Guys


 I've havent done much desktop development but I wondered if there were
 something like wicket for desktop applications? I need it to be a desktop
 application because I need to manipulate the keyboard etc, via robot. (I
 have been thinking of embedding winstone in a jar with a wicket
 application
 and just run it locally on each desktop, but that seems really overkill
 and
 will not let me manipulate the desktop).

 So I've looked at Eclipse RCP, but it does quite not feel like a light
 weight way, it might just be me.. What else would you guys suggest, I
 could
 look into?

 regards Nino





 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





Re: [OT] Wicket Like framework for desktop applications?

2009-01-28 Thread Edward Yakop
On Wed, Jan 28, 2009 at 22:04, nino martinez wael
nino.martinez.w...@gmail.com wrote:
 Hmm another even more ot question then are, how does spring/juice/hibernate
 integrate with swing? As you mention there are no management of application
 lifecycle..?

This is currently what I do to inject spring bean to my hibernate object.
http://www.aspectprogrammer.org/blogs/adrian/2006/02/a_practical_gui_2.html

If you use maven, you can do without load time weaving.
http://mojo.codehaus.org/aspectj-maven-plugin/

The best part about this is, spring bean dependency are injected even
with new operator.

Regards,
Edward Yakop

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicketstuff 1.3.5 versions?

2009-01-28 Thread Peter Neubauer
Ah ok,
thanks!

/peter

Do Good. opencauses.org.

GTalk:  neubauer.peter
Skype   peter.neubauer
Phone   +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter  http://twitter.com/peterneubauer

http://www.neo4j.org - New Energy for Data - the Graph Database.
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org- New Energy for Java - Domain Driven Development.




On Wed, Jan 28, 2009 at 2:01 PM, Martin Grigorov mcgreg...@e-card.bg wrote:
 There is a branch for 1.3.x

 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3.x/

 El mié, 28-01-2009 a las 11:29 +0100, Peter Neubauer escribió:
 Hi folks,
 I added Gmap layer support to Wicketstuff-OpenLayers, but I am using
 the 1.3.5 Wicket, all wicketstuff core is at Wicket 1.4-SNAPSHOT.

 Is there any chance to open a stable branch to get such stuff in
 without being forced to upgrade Wicket to SNAPSHOT versions?

 /peter

 Do Good. opencauses.org.

 GTalk:  neubauer.peter
 Skype   peter.neubauer
 Phone   +46 704 106975
 LinkedIn   http://www.linkedin.com/in/neubauer
 Twitter  http://twitter.com/peterneubauer

 http://www.neo4j.org - New Energy for Data - the Graph Database.
 http://www.ops4j.org - New Energy for OSS Communities - Open
 Participation Software.
 http://www.qi4j.org- New Energy for Java - Domain Driven Development.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OT] Wicket Like framework for desktop applications?

2009-01-28 Thread nino martinez wael
So basically, if one uses spring 2.5 or Guice, it's probably just supported
by default.



2009/1/28 Edward Yakop edward.ya...@gmail.com

 On Wed, Jan 28, 2009 at 22:04, nino martinez wael
 nino.martinez.w...@gmail.com wrote:
  Hmm another even more ot question then are, how does
 spring/juice/hibernate
  integrate with swing? As you mention there are no management of
 application
  lifecycle..?

 This is currently what I do to inject spring bean to my hibernate object.
 http://www.aspectprogrammer.org/blogs/adrian/2006/02/a_practical_gui_2.html

 If you use maven, you can do without load time weaving.
 http://mojo.codehaus.org/aspectj-maven-plugin/

 The best part about this is, spring bean dependency are injected even
 with new operator.

 Regards,
 Edward Yakop

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: [OT] Wicket Like framework for desktop applications?

2009-01-28 Thread nino martinez wael
2009/1/28 jWeekend jweekend_for...@cabouge.com


 Nino,

 Swing has a familiar programming model, is very flexible, extensible,
 powerful and robust. You can also make use of all the core and open-source
 Java libraries you already know. If the target client machines have a JRE
 why use anything else.

Yeah true, my thoughts exactly. Seems Swing is the choice to make.



 Using Swing would also open up various deployment options like Web Start.

 I've used AWT's Robot (although I think it may have been in the last
 century!) as well with good success for an RMI based shared whiteboard.

hehe :) I've used it previously with somewhat good effects on World of
warcraft, and similar but thats another tale..:)



 Regards - Cemal
 http://www.jWeekend.co.uk jWeekend




 Nino Martinez-2 wrote:
 
  True, I thought that too.. I guess it could be that simple...
 
  2009/1/28 Antoine Roux antoine.r...@net-vitesse.com
 
  Swing may be what you are looking for. I never used it, but Wicket is
  often
  compared to Swing. Swing is included in JSE.
 
 
  Antoine
 
 
 
  nino martinez wael a écrit :
 
   Hi Guys
 
  I've havent done much desktop development but I wondered if there were
  something like wicket for desktop applications? I need it to be a
  desktop
  application because I need to manipulate the keyboard etc, via robot.
 (I
  have been thinking of embedding winstone in a jar with a wicket
  application
  and just run it locally on each desktop, but that seems really overkill
  and
  will not let me manipulate the desktop).
 
  So I've looked at Eclipse RCP, but it does quite not feel like a light
  weight way, it might just be me.. What else would you guys suggest, I
  could
  look into?
 
  regards Nino
 
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/-OT--Wicket-Like-framework-for-desktop-applications--tp21705472p21706360.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Change Year in DatePicker

2009-01-28 Thread Daniel Peters
Luca Provenzani wrote:

  i use org.apache.wicket.extensions.yui.calendar.DateField as DatePicker.
 with wicket 1.3.0
 But when i open datePicker on my webpage i can't change year, i can only
 change the months.
 Does someone know how to configure DateField to do this?  is it possible?
extend DatePicker and override one method:

protected boolean enableMonthYearSelection() {
  return true;
}

(not sure about version 1.3.0, but it worked in 1.3.5 and 1.4)
-Daniel

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: HTML markup not found ?

2009-01-28 Thread Antoine Roux

Thank you so much, it helped me solve my problem !

In fact, I was doing exactly the opposite : my markup contained 
wicket:extend markup but I forgot to inherit from my BasePage in 
HomePage. I messed up while copying my project.


Sometimes, you just need an external look on your work.

Thanks again.


Antoine



nino martinez wael a écrit :

Are you using markup inheritance ? Then you must remember to put in
wicket:extend into the sub page. And wicket:child in the parent page.

2009/1/28 Antoine Roux antoine.r...@net-vitesse.com

  


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



DateTimeField

2009-01-28 Thread Wadi Jalil Maluf
Hi all!I'm new to wicket, I would like to know how I can get the date from a
yui DateTimeField. I had put this inside a modal window.Should I use an ajax
behavior with a model?How?

Thanks in advance,

Regards,

Wadi



Re: Example for presenting pdf in modal window

2009-01-28 Thread Per Newgro

Great Ernesto,

this is exactly the solution i was looking for. Thanks alot for sharing 
this with us.

I would suggest that you add it to the wiki.

Cheers
Per

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: DateTimeField

2009-01-28 Thread Per Newgro

Hi Wadi,

checkout this example (reached by click to examples link on 
wicket-homepage (wicket.apache.org))

http://www.wicketstuff.org/wicket13/dates/
Short version:
- Add a form
- Add a DateTextField to form
- Set the model of DateTextfield
- Get the date from model.

HTH
Per

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Change Year in DatePicker

2009-01-28 Thread Luca Provenzani
Thank you for answer, but i can't do it in wicket 1.3.0.
i think that the unique way is try to update the application to wicket 1.3.5

Luca

2009/1/28 Daniel Peters daniel.pet...@idealo.de

 Luca Provenzani wrote:

   i use org.apache.wicket.extensions.yui.calendar.DateField as DatePicker.
  with wicket 1.3.0
  But when i open datePicker on my webpage i can't change year, i can only
  change the months.
  Does someone know how to configure DateField to do this?  is it possible?
 extend DatePicker and override one method:

 protected boolean enableMonthYearSelection() {
  return true;
 }

 (not sure about version 1.3.0, but it worked in 1.3.5 and 1.4)
 -Daniel

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Example for presenting pdf in modal window

2009-01-28 Thread Ernesto Reinaldo Barreiro
Your are welcome! I'll add this to Wiki if I find the time...
Cheers,

Ernesto

On Wed, Jan 28, 2009 at 4:35 PM, Per Newgro per.new...@gmx.ch wrote:

 Great Ernesto,

 this is exactly the solution i was looking for. Thanks alot for sharing
 this with us.
 I would suggest that you add it to the wiki.

 Cheers

 Per

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Need help with Upgrade to wicket 1.4-rc1

2009-01-28 Thread Karen Schaper
Hi,

I decided now is a good time for me to upgrade to the latest wicket code -
wicket 1.4-rc

We are currently at 1.3.4.


I'll also need to update the following other wicket jars I am using.  Are
there version that are compiled against wicket 1.4?

wicketstuff-dojo-1.3.0-beta.jar
wicketstuff-minis-1.3.0-SNAPSHOT.jar
wicketstuff-yui-1.3.0-SNAPSHOT.jar

I can't find them anywhere.

Thanks Karen


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Need help with Upgrade to wicket 1.4-rc1

2009-01-28 Thread Thomas R. Corbin
On Wednesday 28 January 2009, Karen Schaper said:
 Hi,

 I decided now is a good time for me to upgrade to the latest wicket code -
 wicket 1.4-rc

 We are currently at 1.3.4.


 I'll also need to update the following other wicket jars I am using.  Are
 there version that are compiled against wicket 1.4?

   wicketstuff-dojo-1.3.0-beta.jar
   wicketstuff-minis-1.3.0-SNAPSHOT.jar
   wicketstuff-yui-1.3.0-SNAPSHOT.jar

 I can't find them anywhere.

 Thanks Karen

I think that's one of the hard things about upgrading wicket - I had to 
compile all that code myself.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Need help with Upgrade to wicket 1.4-rc1

2009-01-28 Thread Jeremy Thomerson
The wicketstuff- has been taken out of the name of most wicketstuff
projects in 1.4.
See http://wicketstuff.org/maven/repository/org/wicketstuff/
Example:
http://wicketstuff.org/maven/repository/org/wicketstuff/yui/1.4-SNAPSHOT/

Or, if you use Maven, just use org.wicketstuff and yui as the
artifactId, 1.4-SNAPSHOT as the version (there have been no rc1 releases
cut from most of these)


-- 
Jeremy Thomerson
http://www.wickettraining.com

On Wed, Jan 28, 2009 at 10:21 AM, Karen Schaper karen.scha...@gmail.comwrote:

 Hi,

 I decided now is a good time for me to upgrade to the latest wicket code -
 wicket 1.4-rc

 We are currently at 1.3.4.


 I'll also need to update the following other wicket jars I am using.  Are
 there version that are compiled against wicket 1.4?

wicketstuff-dojo-1.3.0-beta.jar
wicketstuff-minis-1.3.0-SNAPSHOT.jar
wicketstuff-yui-1.3.0-SNAPSHOT.jar

 I can't find them anywhere.

 Thanks Karen


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: How to make a popup page for exception handling?

2009-01-28 Thread Mo Wu

Hi my wicket friends,

There is fast way to make the popup for exception handling:

try {
...
} 
catch (Exception e){
target.appendJavascript(String.format(alert('%s'),
e));
}

and AjaxSubmitLink is used.

-Mo Wu


Michael O'Cleirigh wrote:
 
 Hi Mo,
 
 I tried them, I can generate the modal Window. but the AjaxLink is not
 submit
 link for a form. I need to show the error message only if there is form
 processing error.
 Should I use AjaxSubmitLink instead? or do you have some examples similar
 to
 this condition?

   
 If the alerts you want to show are tied to the existence of form 
 processing errors then prehaps you should subclass FeedbackPanel to add 
 in a javascript popup alert in addition to/replacing the standard 
 behavior of displaying the form errors in an unordered list?
 
 Or you could create a panel consisting of the modal window and the 
 activation link but tied to the existence of feedback messages.  If 
 there are zero feedback messages (the form not submitted yet case) you 
 can have the panel invisible to start with (i.e. the link would not be 
 there or say something like 'No Errors').  When there are errors present 
 the link would be visible (or say something link 'There are X errors')  
 clicking the link would show the modal window with the errors.
 
 Normally feedback messages are expected to be consumed by the feedback 
 panels during the rendering phase so they are cleared at the end of the 
 form submission request; you might have to cache it somewhere so that 
 the modal window will have the data available it since it populates 
 itself via an ajax update after the form submitting request that 
 generated the errors has already finished. 
 
 Regards,
 
 Mike
 
 cheers, :)
 Mo


 Newgro wrote:
   
 Fkleinko wrote:
 
 To show the ModalWindow you need an AjaxRequestTarget.
 where do you get that from?

   
 AjaxLink theLinkThatWillShowTheModalWindowIfItsClicked = new
 AjaxLink(...)
 {
   public void onClick(AjaxRequestTarget target) {
 myModalWindow.show(target);
   }
 }

 Please check the examples i gave you. It's all there.

 Cheers
 Per

 

   
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-make-a-popup-page-for-exception-handling--tp21588129p21709550.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: HTML markup not found ?

2009-01-28 Thread nino martinez wael
Just happy to help:) And I've also needed a parrot a couple of times (it
would be rather effective, because the error are  just so obvious some
times)...

2009/1/28 Antoine Roux antoine.r...@net-vitesse.com

 Thank you so much, it helped me solve my problem !

 In fact, I was doing exactly the opposite : my markup contained
 wicket:extend markup but I forgot to inherit from my BasePage in HomePage. I
 messed up while copying my project.

 Sometimes, you just need an external look on your work.

 Thanks again.


 Antoine



 nino martinez wael a écrit :

 Are you using markup inheritance ? Then you must remember to put in
 wicket:extend into the sub page. And wicket:child in the parent page.

 2009/1/28 Antoine Roux antoine.r...@net-vitesse.com




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




RE: DateTimeField

2009-01-28 Thread Wadi Jalil Maluf
Crap, on a modal windows I get an alert message cause it reloads the page,
is there another way?it should be another way! :(
-Mensaje original-
De: Per Newgro [mailto:per.new...@gmx.ch] 
Enviado el: miércoles, 28 de enero de 2009 13:47
Para: users@wicket.apache.org
Asunto: Re: DateTimeField

Hi Wadi,

checkout this example (reached by click to examples link on 
wicket-homepage (wicket.apache.org))
http://www.wicketstuff.org/wicket13/dates/
Short version:
- Add a form
- Add a DateTextField to form
- Set the model of DateTextfield
- Get the date from model.

HTH
Per

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


__ Information from ESET NOD32 Antivirus, version of virus signature
database 3805 (20090127) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


 

__ Information from ESET NOD32 Antivirus, version of virus signature
database 3805 (20090127) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



@SpringBean attr null after back button

2009-01-28 Thread Thies Edeling
Spring injected beans using the @SpringBean annotation seem to be null 
when I return to a page using the back button. I now reinject them 
manually using the InjectorHolder but I was wondering if this is 
expected behaviour or that something in my setup is wrong.


thx
Thies

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: @SpringBean attr null after back button

2009-01-28 Thread Igor Vaynberg
make sure you dont declare those fields as transient.

-igor

On Wed, Jan 28, 2009 at 10:00 AM, Thies Edeling th...@rrm.net wrote:
 Spring injected beans using the @SpringBean annotation seem to be null when
 I return to a page using the back button. I now reinject them manually using
 the InjectorHolder but I was wondering if this is expected behaviour or that
 something in my setup is wrong.

 thx
 Thies

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Where can i find ResourceBundle

2009-01-28 Thread taha siddiqi
Hi everyone,

I am using Hibernate's ClassValidator and one of its constructors requires a

java.util.ResourceBundle to be given as a parameter, how can i attach
the wicket resource stream to it


Thanks in advance

regards
Tawus

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: @SpringBean attr null after back button

2009-01-28 Thread Thies Edeling

it isn't, that's what surprised me as it's a normal field.

Igor Vaynberg wrote:

make sure you dont declare those fields as transient.

-igor

On Wed, Jan 28, 2009 at 10:00 AM, Thies Edeling th...@rrm.net wrote:
  

Spring injected beans using the @SpringBean annotation seem to be null when
I return to a page using the back button. I now reinject them manually using
the InjectorHolder but I was wondering if this is expected behaviour or that
something in my setup is wrong.

thx
Thies

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OT] Wicket Like framework for desktop applications?

2009-01-28 Thread Maarten Bosteels
Hi Nino,

I don't have much Swing experience, but I think this can be handy for
lifecycle stuff etc:
https://appframework.dev.java.net/intro/index.html

regards,
Maarten

On Wed, Jan 28, 2009 at 3:27 PM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

 2009/1/28 jWeekend jweekend_for...@cabouge.com

 
  Nino,
 
  Swing has a familiar programming model, is very flexible, extensible,
  powerful and robust. You can also make use of all the core and
 open-source
  Java libraries you already know. If the target client machines have a JRE
  why use anything else.

 Yeah true, my thoughts exactly. Seems Swing is the choice to make.

 
 
  Using Swing would also open up various deployment options like Web Start.
 
  I've used AWT's Robot (although I think it may have been in the last
  century!) as well with good success for an RMI based shared whiteboard.

 hehe :) I've used it previously with somewhat good effects on World of
 warcraft, and similar but thats another tale..:)

 
 
  Regards - Cemal
  http://www.jWeekend.co.uk jWeekend
 
 
 
 
  Nino Martinez-2 wrote:
  
   True, I thought that too.. I guess it could be that simple...
  
   2009/1/28 Antoine Roux antoine.r...@net-vitesse.com
  
   Swing may be what you are looking for. I never used it, but Wicket is
   often
   compared to Swing. Swing is included in JSE.
  
  
   Antoine
  
  
  
   nino martinez wael a écrit :
  
Hi Guys
  
   I've havent done much desktop development but I wondered if there
 were
   something like wicket for desktop applications? I need it to be a
   desktop
   application because I need to manipulate the keyboard etc, via robot.
  (I
   have been thinking of embedding winstone in a jar with a wicket
   application
   and just run it locally on each desktop, but that seems really
 overkill
   and
   will not let me manipulate the desktop).
  
   So I've looked at Eclipse RCP, but it does quite not feel like a
 light
   weight way, it might just be me.. What else would you guys suggest, I
   could
   look into?
  
   regards Nino
  
  
  
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/-OT--Wicket-Like-framework-for-desktop-applications--tp21705472p21706360.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



Is there a way to be notified when a tab in a TabbedPanel is selected?

2009-01-28 Thread Zhubin Salehi

Hi all,

How can I be notified when one of the tabs in a TabbedPanel is selected?
Where is no onSelect() method in ITab interface, is there a way to achieve
this?

Thanks,
Zhubin
-- 
View this message in context: 
http://www.nabble.com/Is-there-a-way-to-be-notified-when-a-tab-in-a-TabbedPanel-is-selected--tp21713724p21713724.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



AW: getRequest().getPage() always null

2009-01-28 Thread Arthur Leigh Allen
Hello people,

any explanation or suggestion?
Is there a possible way to retrieve the page from the request cycle?
There is the getPage() method but the result is always null. Why?

I would appreciate any answers.

Thx a lot
Leigh





Von: Dipu dipu@googlemail.com
An: users@wicket.apache.org
Gesendet: Mittwoch, den 21. Januar 2009, 17:46:38 Uhr
Betreff: Re: getRequest().getPage() always null

I think  setting this
get().getApplicationSettings().setPageExpiredErrorPage(StartPage.class)
in your application's init method  will solve your problem if i
understand it correctly.

regards
Dipu

On Wed, Jan 21, 2009 at 3:18 PM, Arthur Leigh Allen
arthurleigh.al...@yahoo.de wrote:
 Hello wicket community,


 there is a second issue I don't know how to solve.

 Imagine the following situation:
 -User visits page
 -User logs in
 -User clones the browser window by pressing Strg+N (2 browser windows with 
 logged-in-panels are shown now)
 -User logs out in second page
 -User closes second page
 -User calls a use case function for logged-in-users in a panel in first page 
 (*)

 The aim is to navigate to the start page when the user tries the last action 
 (*).

 My idea is to override the onBeginRequest method of the WebRequestCycle in 
 the application class.
 Then check if the boolean member wasLoggedIn in my page is set to true and 
 the boolean member isLoggedIn in the session is set to false.
 When this constellation happens, I would call the 
 setResponsePage(StartPage.class) etc.

 The problem is: When I call getRequest().getPage() in the onBeginRequest 
 method, the result is always null.
 Do you know how to get the page the request was initiated from?

 Best regards
 Leigh





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


  

AW: open link in new window = target is null

2009-01-28 Thread Arthur Leigh Allen
Hello people,

this is my second problem I cannot resolve.
Why is the target object always null if I open an AjaxFallbackLink in a new 
window or tab?

Best regards,
Leigh





Von: Arthur Leigh Allen arthurleigh.al...@yahoo.de
An: users@wicket.apache.org
Gesendet: Mittwoch, den 21. Januar 2009, 13:23:35 Uhr
Betreff: open link in new window = target is null


AjaxFallbackLink link = 
        ...    }
};
 newAjaxFallbackLink(link) {    publicvoidonClick(AjaxRequestTarget target) {

Hello wicket community,

yesterday I found out in the example above that the target object is null if I 
click with the right mouse button on the link and select open in new window.
Does someone know why?

Best regards
Leigh



  

Re: [OT] Wicket Like framework for desktop applications?

2009-01-28 Thread Nino Martinez

thanks:)

Maarten Bosteels wrote:

Hi Nino,

I don't have much Swing experience, but I think this can be handy for
lifecycle stuff etc:
https://appframework.dev.java.net/intro/index.html

regards,
Maarten

On Wed, Jan 28, 2009 at 3:27 PM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

  

2009/1/28 jWeekend jweekend_for...@cabouge.com



Nino,

Swing has a familiar programming model, is very flexible, extensible,
powerful and robust. You can also make use of all the core and
  

open-source


Java libraries you already know. If the target client machines have a JRE
why use anything else.
  

Yeah true, my thoughts exactly. Seems Swing is the choice to make.



Using Swing would also open up various deployment options like Web Start.

I've used AWT's Robot (although I think it may have been in the last
century!) as well with good success for an RMI based shared whiteboard.
  

hehe :) I've used it previously with somewhat good effects on World of
warcraft, and similar but thats another tale..:)



Regards - Cemal
http://www.jWeekend.co.uk jWeekend




Nino Martinez-2 wrote:
  

True, I thought that too.. I guess it could be that simple...

2009/1/28 Antoine Roux antoine.r...@net-vitesse.com



Swing may be what you are looking for. I never used it, but Wicket is
often
compared to Swing. Swing is included in JSE.


Antoine



nino martinez wael a écrit :

 Hi Guys
  

I've havent done much desktop development but I wondered if there


were


something like wicket for desktop applications? I need it to be a
desktop
application because I need to manipulate the keyboard etc, via robot.


(I
  

have been thinking of embedding winstone in a jar with a wicket
application
and just run it locally on each desktop, but that seems really


overkill


and
will not let me manipulate the desktop).

So I've looked at Eclipse RCP, but it does quite not feel like a


light


weight way, it might just be me.. What else would you guys suggest, I
could
look into?

regards Nino





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


  


--
View this message in context:

  

http://www.nabble.com/-OT--Wicket-Like-framework-for-desktop-applications--tp21705472p21706360.html


Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


  


  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OT] Wicket Like framework for desktop applications?

2009-01-28 Thread Nino Martinez
hmm I see that one of the guys behind are Josh Marinacci, which now are 
on the javaFX team..


Maarten Bosteels wrote:

Hi Nino,

I don't have much Swing experience, but I think this can be handy for
lifecycle stuff etc:
https://appframework.dev.java.net/intro/index.html

regards,
Maarten

On Wed, Jan 28, 2009 at 3:27 PM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

  

2009/1/28 jWeekend jweekend_for...@cabouge.com



Nino,

Swing has a familiar programming model, is very flexible, extensible,
powerful and robust. You can also make use of all the core and
  

open-source


Java libraries you already know. If the target client machines have a JRE
why use anything else.
  

Yeah true, my thoughts exactly. Seems Swing is the choice to make.



Using Swing would also open up various deployment options like Web Start.

I've used AWT's Robot (although I think it may have been in the last
century!) as well with good success for an RMI based shared whiteboard.
  

hehe :) I've used it previously with somewhat good effects on World of
warcraft, and similar but thats another tale..:)



Regards - Cemal
http://www.jWeekend.co.uk jWeekend




Nino Martinez-2 wrote:
  

True, I thought that too.. I guess it could be that simple...

2009/1/28 Antoine Roux antoine.r...@net-vitesse.com



Swing may be what you are looking for. I never used it, but Wicket is
often
compared to Swing. Swing is included in JSE.


Antoine



nino martinez wael a écrit :

 Hi Guys
  

I've havent done much desktop development but I wondered if there


were


something like wicket for desktop applications? I need it to be a
desktop
application because I need to manipulate the keyboard etc, via robot.


(I
  

have been thinking of embedding winstone in a jar with a wicket
application
and just run it locally on each desktop, but that seems really


overkill


and
will not let me manipulate the desktop).

So I've looked at Eclipse RCP, but it does quite not feel like a


light


weight way, it might just be me.. What else would you guys suggest, I
could
look into?

regards Nino





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


  


--
View this message in context:

  

http://www.nabble.com/-OT--Wicket-Like-framework-for-desktop-applications--tp21705472p21706360.html


Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


  


  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OT] Wicket Like framework for desktop applications?

2009-01-28 Thread Serkan Camurcuoglu
Though I've never used it, I think Netbeans platform is worth giving a 
try if you are willing to use the Netbeans IDE.. you can check out 
http://platform.netbeans.org/





Nino Martinez wrote:
hmm I see that one of the guys behind are Josh Marinacci, which now 
are on the javaFX team..


Maarten Bosteels wrote:

Hi Nino,

I don't have much Swing experience, but I think this can be handy for
lifecycle stuff etc:
https://appframework.dev.java.net/intro/index.html

regards,
Maarten

On Wed, Jan 28, 2009 at 3:27 PM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

 

2009/1/28 jWeekend jweekend_for...@cabouge.com

   

Nino,

Swing has a familiar programming model, is very flexible, extensible,
powerful and robust. You can also make use of all the core and
  

open-source
   
Java libraries you already know. If the target client machines have 
a JRE

why use anything else.
  

Yeah true, my thoughts exactly. Seems Swing is the choice to make.

   
Using Swing would also open up various deployment options like Web 
Start.


I've used AWT's Robot (although I think it may have been in the last
century!) as well with good success for an RMI based shared 
whiteboard.
  

hehe :) I've used it previously with somewhat good effects on World of
warcraft, and similar but thats another tale..:)

   

Regards - Cemal
http://www.jWeekend.co.uk jWeekend




Nino Martinez-2 wrote:
 

True, I thought that too.. I guess it could be that simple...

2009/1/28 Antoine Roux antoine.r...@net-vitesse.com

   
Swing may be what you are looking for. I never used it, but 
Wicket is

often
compared to Swing. Swing is included in JSE.


Antoine



nino martinez wael a écrit :

 Hi Guys
 

I've havent done much desktop development but I wondered if there


were
   

something like wicket for desktop applications? I need it to be a
desktop
application because I need to manipulate the keyboard etc, via 
robot.


(I
 

have been thinking of embedding winstone in a jar with a wicket
application
and just run it locally on each desktop, but that seems really


overkill
   

and
will not let me manipulate the desktop).

So I've looked at Eclipse RCP, but it does quite not feel like a


light
   
weight way, it might just be me.. What else would you guys 
suggest, I

could
look into?

regards Nino




- 


To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


  


--
View this message in context:

  
http://www.nabble.com/-OT--Wicket-Like-framework-for-desktop-applications--tp21705472p21706360.html 

   

Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


  


  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



non-web-server functionality ?

2009-01-28 Thread Troy Cauble
Wicket is my first exposure to web server programming.  I don't have the
usual background in spring, hibernate, tomcat, jetty, or even maven.

The Wicket I've written is for the configuration of a distributed application.

Now I need server functionality that, based on this configuration data,
will communicate with clients and other servers, do scheduling, etc.

Can/should this server live within my Wicket app, perhaps started
by creating threads in my WebApplication's constructor or init() ??

Or should this server live in a separate process and only communicate
with the configuration data store?

Thanks,
-troy

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: @SpringBean attr null after back button

2009-01-28 Thread Igor Vaynberg
do you call Objects#setObjectStreamFactory to set wicket's
objectstreamfractory instead of the default? wicket's doesnt handle
proxies which may result in you seeing nulls.

-igor

On Wed, Jan 28, 2009 at 11:44 AM, Thies Edeling th...@rrm.net wrote:
 it isn't, that's what surprised me as it's a normal field.

 Igor Vaynberg wrote:

 make sure you dont declare those fields as transient.

 -igor

 On Wed, Jan 28, 2009 at 10:00 AM, Thies Edeling th...@rrm.net wrote:


 Spring injected beans using the @SpringBean annotation seem to be null
 when
 I return to a page using the back button. I now reinject them manually
 using
 the InjectorHolder but I was wondering if this is expected behaviour or
 that
 something in my setup is wrong.

 thx
 Thies

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: open link in new window = target is null

2009-01-28 Thread Igor Vaynberg
read fallback link's javadoc.

-igor

On Wed, Jan 28, 2009 at 12:20 PM, Arthur Leigh Allen
arthurleigh.al...@yahoo.de wrote:
 Hello people,

 this is my second problem I cannot resolve.
 Why is the target object always null if I open an AjaxFallbackLink in a new 
 window or tab?

 Best regards,
 Leigh




 
 Von: Arthur Leigh Allen arthurleigh.al...@yahoo.de
 An: users@wicket.apache.org
 Gesendet: Mittwoch, den 21. Januar 2009, 13:23:35 Uhr
 Betreff: open link in new window = target is null


 AjaxFallbackLink link =
 ...}
 };
  newAjaxFallbackLink(link) {publicvoidonClick(AjaxRequestTarget target) 
 {

 Hello wicket community,

 yesterday I found out in the example above that the target object is null if 
 I click with the right mouse button on the link and select open in new 
 window.
 Does someone know why?

 Best regards
 Leigh





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: @SpringBean attr null after back button

2009-01-28 Thread Thies Edeling
no I didn't, will try that but I thought that was default on 1.3 ? 
(running 1.3.5)


Igor Vaynberg wrote:

do you call Objects#setObjectStreamFactory to set wicket's
objectstreamfractory instead of the default? wicket's doesnt handle
proxies which may result in you seeing nulls.

-igor

On Wed, Jan 28, 2009 at 11:44 AM, Thies Edeling th...@rrm.net wrote:
  

it isn't, that's what surprised me as it's a normal field.

Igor Vaynberg wrote:


make sure you dont declare those fields as transient.

-igor

On Wed, Jan 28, 2009 at 10:00 AM, Thies Edeling th...@rrm.net wrote:

  

Spring injected beans using the @SpringBean annotation seem to be null
when
I return to a page using the back button. I now reinject them manually
using
the InjectorHolder but I was wondering if this is expected behaviour or
that
something in my setup is wrong.

thx
Thies

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Issues with wicket-contrib-input-events in Mozilla

2009-01-28 Thread dukejansen

Has anyone had any issues getting the wicket-contrib-input-events package to
work properly with Mozilla?

It seems to work great in IE, but somehow my events are not being picked up
in Firefox.

Specifically, let's say I have a link which launches a modal, and inside
that modal is a panel with an OK button and a Cancel button. I have set up
keyboard shortcuts so that Escape fires the Cancel onclick event and Enter
fires the OK onclick event.

This works great in IE, but in Firefox when I hit Enter it seems to think
I'm clicking the link that was originally clicked to launch the modal - the
link that presumably still has focus behind the modal mask.

I believe that Nino actually tested against FF2, so I was surprised by this,
and thought perhaps I'm seeing the result of some kind of interaction with
other JavaScript on the page.

Has anyone else run into this, and if so do you have any wisdom to share?

Thanks.

-Jason
-- 
View this message in context: 
http://www.nabble.com/Issues-with-wicket-contrib-input-events-in-Mozilla-tp21718528p21718528.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Issues with wicket-contrib-input-events in Mozilla

2009-01-28 Thread dukejansen

Additional testing with FireBug reveals that the JavaScript engine is
reporting an error when the Escape or Enter key is hit:

document.getElementById(cancelLink9d7).click is not a function
http://.../resources/wicket.contrib.input.events.InputBehavior/shortcuts.js
Line 4

It seems like somehow that click function doesn't exist in Firefox...

Researching online a bit confirms this... for example:

http://quomon.com/question_simulation-click-html-anchor-javascript_2786.aspx

My guess is that the input-events package was written to work with buttons,
which have a click event, and not anchor tags, which don't, which means I'll
need to modify that code a bit to work with anchor tags...


dukejansen wrote:
 
 Has anyone had any issues getting the wicket-contrib-input-events package
 to work properly with Mozilla?
 
 It seems to work great in IE, but somehow my events are not being picked
 up in Firefox.
 
 Specifically, let's say I have a link which launches a modal, and inside
 that modal is a panel with an OK button and a Cancel button. I have set up
 keyboard shortcuts so that Escape fires the Cancel onclick event and Enter
 fires the OK onclick event.
 
 This works great in IE, but in Firefox when I hit Enter it seems to
 think I'm clicking the link that was originally clicked to launch the
 modal - the link that presumably still has focus behind the modal mask.
 
 I believe that Nino actually tested against FF2, so I was surprised by
 this, and thought perhaps I'm seeing the result of some kind of
 interaction with other JavaScript on the page.
 
 Has anyone else run into this, and if so do you have any wisdom to share?
 
 Thanks.
 
 -Jason
 

-- 
View this message in context: 
http://www.nabble.com/Issues-with-wicket-contrib-input-events-in-Mozilla-tp21718528p21718790.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: @SpringBean attr null after back button

2009-01-28 Thread Igor Vaynberg
no, the default is the standard one. the standard one is used by
default so unless you tweaked it there shouldnt be a problem.

-igor

On Wed, Jan 28, 2009 at 3:59 PM, Thies Edeling tedel...@gmail.com wrote:
 no I didn't, will try that but I thought that was default on 1.3 ? (running
 1.3.5)

 Igor Vaynberg wrote:

 do you call Objects#setObjectStreamFactory to set wicket's
 objectstreamfractory instead of the default? wicket's doesnt handle
 proxies which may result in you seeing nulls.

 -igor

 On Wed, Jan 28, 2009 at 11:44 AM, Thies Edeling th...@rrm.net wrote:


 it isn't, that's what surprised me as it's a normal field.

 Igor Vaynberg wrote:


 make sure you dont declare those fields as transient.

 -igor

 On Wed, Jan 28, 2009 at 10:00 AM, Thies Edeling th...@rrm.net wrote:



 Spring injected beans using the @SpringBean annotation seem to be null
 when
 I return to a page using the back button. I now reinject them manually
 using
 the InjectorHolder but I was wondering if this is expected behaviour or
 that
 something in my setup is wrong.

 thx
 Thies

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Where can i find ResourceBundle

2009-01-28 Thread taha siddiqi
Hi everyone,

I am using Hibernate's ClassValidator and one of its constructors requires a

java.util.ResourceBundle to be given as a parameter, how can i attach
the wicket resource stream to it


Thanks in advance

regards
Tawus

I tried to google but couldn't find any thing

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Where can i find ResourceBundle

2009-01-28 Thread Igor Vaynberg
you will have to implement one yourself using the localizer which can
be obtained via component.getlocalizer() call.

-igor

On Wed, Jan 28, 2009 at 6:30 PM, taha siddiqi tawushaf...@gmail.com wrote:
 Hi everyone,

 I am using Hibernate's ClassValidator and one of its constructors requires a

 java.util.ResourceBundle to be given as a parameter, how can i attach
 the wicket resource stream to it


 Thanks in advance

 regards
 Tawus

 I tried to google but couldn't find any thing

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: non-web-server functionality ?

2009-01-28 Thread Antoine Roux
After what I understand, you want to have a server process that 
communicate  with other servers on other machines. And sometimes, 
someone uses the web interface to configure your server. The main 
business lies in in the server process. Is it right ?


I think it could be more interesting to see the server process and the 
web interface as two separate pieces : that will make the server 
independant of the web interface. So if you want to upgrade the web 
tier, you won't have to restart the server process doing the important 
work. You can even imagine having your server process and your web tier 
hosted on different machines.


Your web tier can then communicate only with the data store or with your 
server process through web services or another protocol like JMS 
(depends on your needs).



Antoine


Troy Cauble a écrit :

Wicket is my first exposure to web server programming.  I don't have the
usual background in spring, hibernate, tomcat, jetty, or even maven.

The Wicket I've written is for the configuration of a distributed application.

Now I need server functionality that, based on this configuration data,
will communicate with clients and other servers, do scheduling, etc.

Can/should this server live within my Wicket app, perhaps started
by creating threads in my WebApplication's constructor or init() ??

Or should this server live in a separate process and only communicate
with the configuration data store?

Thanks,
-troy

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org