AW: How to reload a Wicket-page from Wicket-panel.

2012-06-20 Thread Hans Lesmeister
Hi, panel.getPage() gives you the current page which you can reload i.e. with setResponsePage() Cheers Hans -Ursprüngliche Nachricht- Von: vaibhav2012 [mailto:vaibhav.bit2...@gmail.com] Gesendet: Mittwoch, 20. Juni 2012 07:54 An: users@wicket.apache.org Betreff: How to reload a

Re: AW: How to reload a Wicket-page from Wicket-panel.

2012-06-20 Thread vaibhav2012
Hi Hans, I have already tried this, but it doesn't work. SignInPanel is a seperate class which extends *org.apache.wicket.markup.html.panel.Panel*, and it is having its seperate markup. I am adding this SignInPanel as a Component in different wicket pages, as mentioned in the scenario in my

Re: How to reload a Wicket-page from Wicket-panel.

2012-06-20 Thread Hans Lesmeister
Please post your code -Ursprüngliche Nachricht- Von: vaibhav2012 [mailto:vaibhav.bit2...@gmail.com] Gesendet: Mittwoch, 20. Juni 2012 08:20 An: users@wicket.apache.org Betreff: Re: AW: How to reload a Wicket-page from Wicket-panel. Hi Hans, I have already tried this, but it doesn't

Re: How to reload a Wicket-page from Wicket-panel.

2012-06-20 Thread Hans Lesmeister
I used this.getPage() in SignInPanel's constructor In the constructor, the page is not yet set (See onInitialize and onConfigure) -Ursprüngliche Nachricht- Von: vaibhav2012 [mailto:vaibhav.bit2...@gmail.com] Gesendet: Mittwoch, 20. Juni 2012 08:20 An: users@wicket.apache.org Betreff:

Re: Verifying image HREF with Wicket tester

2012-06-20 Thread Martin Grigorov
Yes, this should be improved. Please create a ticket with a test case. On Wed, Jun 20, 2012 at 12:21 AM, Alec Swan alecs...@gmail.com wrote: I had to make sure that my img element had a closing /img The problem is that org.apache.wicket.util.tester.TagTester#createTagByAttribute requires the

Re: How to reload a Wicket-page from Wicket-panel.

2012-06-20 Thread vaibhav2012
Hi Hans, Thanks for the information. Its working :). - Regards, Vaibhav Gupta -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-reload-a-Wicket-page-from-Wicket-panel-tp4650097p4650103.html Sent from the Users forum mailing list archive at Nabble.com.

Re: DynamicImageResource in ajax panel

2012-06-20 Thread vineet semwal
try new noncachingimage(id, dynamicmodelfortheresource()) On Wed, Jun 20, 2012 at 7:01 AM, mlabs mlabs@gmail.com wrote: I have a panel that I update via ajax. In that panel is an Image. The Image uses a DynamicWebResource, whose getImageData() method produces a PNG file. The

Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread ramlael
Hi, I have embed/include a wicket page in a third party jsp site ( with iframe ) and on form submit the jsp sending the values to iframe through post method. I need to get those values in wicket page, I have used pageparameters and getRequest().getPostParameters().getParameterNames() but no

Re: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread Martin Grigorov
This should just work... Can you show us the java (wicket) code ? Also check with Firebug/Dev tools that the post data is actually sent. On Wed, Jun 20, 2012 at 11:12 AM, ramlael grambab...@gmail.com wrote: Hi, I have embed/include a wicket page in a third party jsp site ( with iframe ) and  

Re: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread ramlael
HI JSP and Wikcet Iframe running on different server. The JAVA Code public class abc extends WebPage { public abc(final PageParameters parameters) { logger.debug(+ + parameters.getIndexedCount());

Re: Properly share data model in TabbedPanel

2012-06-20 Thread nunofaria11
So are you suggesting that I create a form inside each tab-panel? Or a form that includes the whole TabbedPanel? 2012/6/20 Sven Meier [via Apache Wicket] ml-node+s1842946n4650096...@n4.nabble.com when I click a submit button the data gets refreshed inside the model and I can see the

Re: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread vineet semwal
you forgot to do super(parameters) in constructors On Wed, Jun 20, 2012 at 1:58 PM, ramlael grambab...@gmail.com wrote: HI JSP and Wikcet Iframe running on different server. The JAVA Code public class abc extends WebPage { public abc(final PageParameters parameters) {

Re: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread Martin Grigorov
PageParameters contain only the GET parameters. Calling super(parameters) only helps to use page.getPageParameters() later. getRequest().getPostParameters().getParameterNames() is the right way to read POST params in this case. As I said check that the browser actually sends them. On Wed, Jun

Re: Verifying image HREF with Wicket tester

2012-06-20 Thread Carl-Eric Menzel
On Tue, 19 Jun 2012 15:21:17 -0600 Alec Swan alecs...@gmail.com wrote: I had to make sure that my img element had a closing /img The problem is that org.apache.wicket.util.tester.TagTester#createTagByAttribute requires the img element to be closed, i.e. img/ or img/img. Otherwise closeTag

Re: Ajaxbutton, updating forms, broken persistence: strange, seemingly unrelated behaviour

2012-06-20 Thread lucast
Thank you, Sven. In my code I was not calling LoadableDetachableModel.detach() after persisting objects to the database. Something I should have done. As for the new events mechanism, I just had a look at the Migration to Wicket 1.5 and it looks like it's just what I need. The example from the

Re: Properly share data model in TabbedPanel

2012-06-20 Thread Martin Grigorov
You need to update the value of coors somehow before going to the next tab. As Sven explained clicking on the tab wont submit the form inside a tab panel. You can submit the form in a tab panel explicitly with its own button. You can wrap the tabbed panel in a form and use a SubmitLink to switch

Re: Verifying image HREF with Wicket tester

2012-06-20 Thread Martin Grigorov
On Wed, Jun 20, 2012 at 11:34 AM, Carl-Eric Menzel cmen...@wicketbuch.de wrote: On Tue, 19 Jun 2012 15:21:17 -0600 Alec Swan alecs...@gmail.com wrote: I had to make sure that my img element had a closing /img The problem is that org.apache.wicket.util.tester.TagTester#createTagByAttribute

Re: Properly share data model in TabbedPanel

2012-06-20 Thread nunofaria11
Worked like a charm. Thank you everyone. And for future users who bump into this thread, solved it with this... TabbedPanel tabbedPanel = new TabbedPanel(tabs, tabs) { @Override protected WebMarkupContainer newLink(String linkId, final int index) { return

Support for native Web Socket in Wicket 6.0

2012-06-20 Thread Martin Grigorov
Hi, A new experimental module has been added to Wicket 6 - Wicket Native WebSocket. This module adds support for using HTML5 WebSockets as you may use Ajax in your Wicket applications. All you have to do is to add a WebSocketBehavior to your page and from there on you can receive messages from

Re: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread ramlael
Yes... the post values are submitted. I have checked in firefox debugger Parametersapplication/x-www-form-urlencoded firstName ram lastNamebabu memberId1234 name parenttoken 123456 sumbit Submit Query -- View this message in context:

Re: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread Martin Grigorov
Create a quickstart and attach it to a ticket in Jira. On Wed, Jun 20, 2012 at 12:25 PM, ramlael grambab...@gmail.com wrote: Yes... the post values are submitted. I have checked in firefox debugger Parametersapplication/x-www-form-urlencoded firstName       ram lastName        babu memberId

Re: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread ramlael
Hi, I didn't get you.. what r u saying.. shall I add all the pages to JIRA? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106p4650122.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread Martin Grigorov
Just a small demo application. This is what we call a 'quickstart'. http://wicket.apache.org/start/quickstart.html On Wed, Jun 20, 2012 at 12:32 PM, ramlael grambab...@gmail.com wrote: Hi, I didn't get you.. what r u saying.. shall I add all the pages to JIRA? -- View this message in context:

Check component onSubmit behavior selects all

2012-06-20 Thread nunofaria11
Hi I have a problem when submitting a form that has a ListView with a group of Check components. Everything seems to work fine (checkgroupselector, the selected collection model gets updated) - but when I submit the form that contains the checkgroup (in my case, jump between a tab in a

Re: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread ramlael
Hey... I solved the problem.. I have changed the form action action=http://localhost:8080/abc; to action=http://localhost:8080/abc/; (added '/' after abc)... now its working fine. thank you very much. -- View this message in context:

Re: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread Martin Grigorov
Good! What is the value of url-mapping for WicketFilter in your web.xml ? On Wed, Jun 20, 2012 at 1:29 PM, ramlael grambab...@gmail.com wrote: Hey... I solved the problem.. I have changed the form action action=http://localhost:8080/abc; to action=http://localhost:8080/abc/;   (added '/'  

Re: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread ramlael
org.apache.wicket.protocol.http.WicketFilter -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106p4650127.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Wicket 6.0 WebSocket question: client API

2012-06-20 Thread Martin Grigorov
Hi Pierre, Take a look at https://github.com/martin-g/wicket-native-websocket-example/blob/master/src/main/resources/org/apache/wicket/websocket/jetty/example/client.js There is Wicket.WebSocket object which basically wraps native window.WebSocket just to be able to intercept the calls and send

Re: Wicket 6.0 WebSocket question: client API

2012-06-20 Thread Pierre Goupil
Great! Thanks a lot! Regards, Pierre On Wed, Jun 20, 2012 at 2:31 PM, Martin Grigorov mgrigo...@apache.orgwrote: Hi Pierre, Take a look at https://github.com/martin-g/wicket-native-websocket-example/blob/master/src/main/resources/org/apache/wicket/websocket/jetty/example/client.js

Re: Verifying image HREF with Wicket tester

2012-06-20 Thread Carl-Eric Menzel
In this case, yes, I think. Carl-Eric On Wed, 20 Jun 2012 09:27:27 -0600 Alec Swan alecs...@gmail.com wrote: So, this is a bug, right? On Wed, Jun 20, 2012 at 2:36 AM, Martin Grigorov mgrigo...@apache.org wrote: On Wed, Jun 20, 2012 at 11:34 AM, Carl-Eric Menzel cmen...@wicketbuch.de

Sync up sessions

2012-06-20 Thread wicket user
Hi, we are using Wicket as a Presentation layer, so we need to sync up with the Session of the Business Layer framework, we kept this in the same WAR. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Sync-up-sessions-tp4650134.html Sent from the Users forum mailing

Re: validation without form

2012-06-20 Thread srinash
form textfield select box submit (for these 2 fields after validation) /form The form above is the outer form. There is no inner form, only one form the outer form. Can a link be used to validate the user input fields. Please let me know Thanks -- View this message in context:

Re: Sync up sessions

2012-06-20 Thread Thomas Götz
Great! And what would be your question, please? ;) -Tom Am Mittwoch, 20. Juni 2012 um 18:25 schrieb wicket user: Hi, we are using Wicket as a Presentation layer, so we need to sync up with the Session of the Business Layer framework, we kept this in the same WAR. -- View

Re: Sync up sessions

2012-06-20 Thread Igor Vaynberg
what do you mean by sync up? you want to retrieve http session inside wicket code? ((HttpServletRequest)getRequestCycle().getRequest().getContainerRequest()).getSession() -igor On Wed, Jun 20, 2012 at 10:57 AM, wicket user samd...@live.com wrote: how can we sync up the session with the

Re: Sync up sessions

2012-06-20 Thread wicket user
Yes taking Wicket Session and Spring Session and maintaining one session across layers (presentation and business layers) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Sync-up-sessions-tp4650134p4650141.html Sent from the Users forum mailing list archive at

Re: Sync up sessions

2012-06-20 Thread Igor Vaynberg
wicket stores its Session object in the http session. so im not sure what you need to sync up, both wicket and spring have access to the same http session object. -igor On Wed, Jun 20, 2012 at 2:46 PM, wicket user samd...@live.com wrote: Yes taking Wicket Session and Spring Session and