Re: [Wicket-user] More on refreshing page contents
No it return me to not found component in the response -- View this message in context: http://www.nabble.com/Refreshing-page-contents-tf1367256.html#a6004446 Sent from the Wicket - User forum at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] More on refreshing page contents
calling textarea.setOutputMarkupId(true) will cause the proper id attribute output to the component.-IgorOn 8/26/06, Roman Mandeleil [EMAIL PROTECTED] wrote:No it return me to not found component in the response --View this message in context: http://www.nabble.com/Refreshing-page-contents-tf1367256.html#a6004446Sent from the Wicket - User forum at Nabble.com.-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] More on refreshing page contents
no, it should append id=foo to textarea tag - what you are doing now manually.-IgorOn 8/26/06, Roman Mandeleil [EMAIL PROTECTED] wrote:I have tried it but it doesn't work, should setOutputMarkupId(true)cause some output in the ajax debug window ?--View this message in context: http://www.nabble.com/Refreshing-page-contents-tf1367256.html#a6004492 Sent from the Wicket - User forum at Nabble.com.-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] More on refreshing page contents
Ok, now it works, the problem was that I should call setOutputMarkupId on the parent FORM object too. Thanks -- View this message in context: http://www.nabble.com/Refreshing-page-contents-tf1367256.html#a6004517 Sent from the Wicket - User forum at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] More on refreshing page contents
not unless you are adding the form to the ajax target.standard behaviors that update the form will make that call themselves.-IgorOn 8/26/06, Roman Mandeleil [EMAIL PROTECTED] wrote: Ok, now it works, the problem was that I should call setOutputMarkupId on theparent FORM object too.Thanks--View this message in context: http://www.nabble.com/Refreshing-page-contents-tf1367256.html#a6004517Sent from the Wicket - User forum at Nabble.com.- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] More on refreshing page contents
What can I do if I have a simple form with AjaxSubmitButton and some TextArea, every submit I want to update the TextArea with some new text (it can't be read only model because it get's an input) ??? -- View this message in context: http://www.nabble.com/Refreshing-page-contents-tf1367256.html#a6002331 Sent from the Wicket - User forum at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] More on refreshing page contents
add the textarea to the target provided by the button's onsubmit() call and the textarea will be repainted.-IgorOn 8/26/06, Roman Mandeleil [EMAIL PROTECTED] wrote: What can I do if I have a simple form with AjaxSubmitButton and someTextArea,every submit I want to update the TextArea with some new text (it can't beread only model because it get's an input) ??? --View this message in context: http://www.nabble.com/Refreshing-page-contents-tf1367256.html#a6002331Sent from the Wicket - User forum at Nabble.com.-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] More on refreshing page contents
I have tried it and it is not works, do you have any idea why ? -- View this message in context: http://www.nabble.com/Refreshing-page-contents-tf1367256.html#a6004232 Sent from the Wicket - User forum at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] More on refreshing page contents
are there any _javascript_ errors? anything interesting in the ajax debug window?-IgorOn 8/26/06, Roman Mandeleil [EMAIL PROTECTED] wrote:I have tried it and it is not works, do you have any idea why ? --View this message in context: http://www.nabble.com/Refreshing-page-contents-tf1367256.html#a6004232Sent from the Wicket - User forum at Nabble.com.-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] More on refreshing page contents
Ok it looks for component with id: [form.id]_[component.id], now it works if i give that special id to the component but it good for a workaround, the more intuitive behavior is when the response will find component by it's origin id. -- View this message in context: http://www.nabble.com/Refreshing-page-contents-tf1367256.html#a6004348 Sent from the Wicket - User forum at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] More on refreshing page contents
heh, you didnt call setOutputMarkupId(true) on the textarea before you tried updating it via ajax? that is a prereq for any component you will be adding to the ajax target.-Igor On 8/26/06, Roman Mandeleil [EMAIL PROTECTED] wrote: Ok it looks for component with id: [form.id]_[component.id], now it worksif i givethat special id to the component but it good for a workaround, the more intuitive behavior is whenthe response will find component by it's origin id.--View this message in context: http://www.nabble.com/Refreshing-page-contents-tf1367256.html#a6004348 Sent from the Wicket - User forum at Nabble.com.-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] More on refreshing page contents
Hi All, With one page I'm displaying a matrix of numbers and I have a problem updating/refreshing it. I roughly understand why it doesn't work, but I don't know what the best/correct way to make it work is. Basically I have a ListView of rows and the last column in each row is in turn a ListView creating more columns to the right. That final ListView is implemented with the code you can see below. How was I supposed to have done this to have updating/refreshing happen as automagically as possible? (I'm using Wicket 1.1.1) /Anders ListView tmpCorrList = new ListView(ID_CORRELATIONS, tmpInstrument.getCorrelations()) { BigDecimal tmpCoefficient; public void populateItem(final ListItem anItem) { tmpCoefficient = (BigDecimal) anItem.getModelObject(); anItem.add(new Label(ID_COEFFICIENT, tmpCoefficient.toString())); } --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] More on refreshing page contents
Hi, I am also wrestling with the matrix beast and am still exploring my options. However i might be able to help you out. In your code the label is given a string as diplay value. This string is not updated when the item model is. So you should give the label the model of the item. If you want some fancy numberformatting to take place you can always overwrite the getConverter() method of your label to convert the bigdecimal to a string there. Hope this helps. Maurice On 4/4/06, Anders Peterson [EMAIL PROTECTED] wrote: Hi All, With one page I'm displaying a matrix of numbers and I have a problem updating/refreshing it. I roughly understand why it doesn't work, but I don't know what the best/correct way to make it work is. Basically I have a ListView of rows and the last column in each row is in turn a ListView creating more columns to the right. That final ListView is implemented with the code you can see below. How was I supposed to have done this to have updating/refreshing happen as automagically as possible? (I'm using Wicket 1.1.1) /Anders ListView tmpCorrList = new ListView(ID_CORRELATIONS, tmpInstrument.getCorrelations()) { BigDecimal tmpCoefficient; public void populateItem(final ListItem anItem) { tmpCoefficient = (BigDecimal) anItem.getModelObject(); anItem.add(new Label(ID_COEFFICIENT, tmpCoefficient.toString())); } --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] More on refreshing page contents
actually, the string in the label is fine because the listview rebuilds its items on every request so new labels will be created. the problem is here:ListView tmpCorrList = new ListView(ID_CORRELATIONS,tmpInstrument.getCorrelations ())this is making listview use the same list w/out updating it on every request, this should be a detachable model so that a fresh list is used on every request:IModel listViewModel=new LoadableDetachableModel() { Object load() { return tmpInstrument.getCorrelations(); }}ListView tmpCorrList = new ListView(ID_CORRELATIONS, listViewModel) {...};hope this helps,-IgorOn 4/4/06, Maurice Marrink [EMAIL PROTECTED] wrote: Hi,I am also wrestling with the matrix beast and am still exploring my options.However i might be able to help you out.In your code the label is given a string as diplay value. This stringis not updated when the item model is. So you should give the label the model of the item.If you want some fancy numberformatting to take place you can alwaysoverwrite the getConverter() method of your label to convert thebigdecimal to a string there.Hope this helps. MauriceOn 4/4/06, Anders Peterson [EMAIL PROTECTED] wrote: Hi All, With one page I'm displaying a matrix of numbers and I have a problem updating/refreshing it. I roughly understand why it doesn't work, but I don't know what the best/correct way to make it work is. Basically I have a ListView of rows and the last column in each row is in turn a ListView creating more columns to the right. That final ListView is implemented with the code you can see below. How was I supposed to have done this to have updating/refreshing happen as automagically as possible? (I'm using Wicket 1.1.1) /Anders ListView tmpCorrList = new ListView(ID_CORRELATIONS, tmpInstrument.getCorrelations()) { BigDecimal tmpCoefficient;public void populateItem(final ListItem anItem) {tmpCoefficient = (BigDecimal) anItem.getModelObject();anItem.add (new Label(ID_COEFFICIENT, tmpCoefficient.toString())); } --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user--- This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user