Re: DynamicImageResource in ajax panel

2012-06-20 Thread vineet semwal
try new noncachingimage(id, dynamicmodel()) On Wed, Jun 20, 2012 at 7:01 AM, mlabs 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 getImageData() override gets called 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 luc

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 wrote: > Hi, > > I have embed/include a wicket page in a third party jsp site ( with iframe ) > and  on form submit th

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()); logger.debug("++

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 wrote: > HI > > JSP and Wikcet Iframe running on different server. > > The JAVA Code > public class abc extends WebPage { > > public abc(final PageParameters parameters) { > logger.debug("+

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 20,

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 wrote: > I had to make sure that my element had a closing > > The problem is that > org.apache.wicket.util.tester.TagTester#createTagByAttribute requires > the element to be closed, i.e. or . Otherwise > closeTag variable is never set and the loop

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 wi

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 wrote: > On Tue, 19 Jun 2012 15:21:17 -0600 > Alec Swan wrote: > >> I had to make sure that my element had a closing >> >> The problem is that >> org.apache.wicket.util.tester.TagTester#createTagByAttribute requires >> the element to be closed

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 the

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: http://apache-wicket.1842946.n4

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 wrote: > Yes... the post values are submitted. I have checked in firefox debugger > > Parametersapplication/x-www-form-urlencoded > firstName       ram > lastName        babu > memberId        1234 >

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 wrote: > 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

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 TabbedPanel

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: http://apache-wicket.1842946.n4.nabble.com/Not-getti

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

2012-06-20 Thread Martin Grigorov
Good! What is the value of for WicketFilter in your web.xml ? On Wed, Jun 20, 2012 at 1:29 PM, ramlael wrote: > 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 >

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. --

Wicket 6.0 WebSocket question: client API

2012-06-20 Thread Pierre Goupil
Good afternoon, Thanks for the WebSocket support in Wicket 6.0, that's very good news to hear. But I have a couple of questions, though. Firstly, how am I supposed to send a message from the client-side? Am I supposed to use the plain-vanilla WebSocket API? For instance, would this do the trick:

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: Variable dependant dynamic panel

2012-06-20 Thread Walter Rugora
Similar setup on top of that ... I lost myself in models a bit. A WebPage contains two Panels. Both panels share the same model: Model idModel Now, whenever a new value in a DDC on the 1st panel is selected the idModel value is updated. The change on the selected value can be seen via a label o

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 wrote: > 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.Web

Re: Verifying image HREF with Wicket tester

2012-06-20 Thread Alec Swan
So, this is a bug, right? On Wed, Jun 20, 2012 at 2:36 AM, Martin Grigorov wrote: > On Wed, Jun 20, 2012 at 11:34 AM, Carl-Eric Menzel > wrote: >> On Tue, 19 Jun 2012 15:21:17 -0600 >> Alec Swan wrote: >> >>> I had to make sure that my element had a closing >>> >>> The problem is that >>> org

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 wrote: > So, this is a bug, right? > > On Wed, Jun 20, 2012 at 2:36 AM, Martin Grigorov > wrote: > > On Wed, Jun 20, 2012 at 11:34 AM, Carl-Eric Menzel > > wrote: > >> On Tue, 19 Jun 2012 15:21:17 -0600 > >> A

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 l

Re: validation without form

2012-06-20 Thread srinash
textfield select box submit (for these 2 fields after validation) 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: http://apache-wicket

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. > > > -- > V

Re: Sync up sessions

2012-06-20 Thread wicket user
how can we sync up the session with the existing session of the business layer framework . -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Sync-up-sessions-tp4650134p4650137.html Sent from the Users forum mailing list archive at Nabble.com. --

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 wrote: > how can we sync up the session with the existing session of

Re: validation without form

2012-06-20 Thread vineet semwal
yes, you can also submit the form using submitlink/ajaxsubmitlink On Wed, Jun 20, 2012 at 10:23 PM, srinash wrote: > > textfield > select box >  submit (for these 2 fields after validation) > > > The form above is the outer form. There is no inner form, only one form the > outer form. > > Can a

Re: How to get request page in Wicket 1.5

2012-06-20 Thread LeaveNewb
I'm having the same problem, but passing a page through will not work for me. I used to use the Page passed in to onRuntimeException to send an error report to the developers that included the page the user was on. I can't seem to get that information with the RequestCycle. Is this still possibl

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 Nabble.co

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 wrote: > Yes taking Wicket Session and Spring Session and maintaining one session