Error with getPageCount() when extending the Datatable in Wicket 6.13

2014-01-22 Thread chathuraka.waas
Hi, i'm trying to migrate my application from Wicket 1.4 to 6.13.0 and stuck on a compilation error related to DataTables. what my code does is extend the Datatable class. But when i do so it gives me a compilation error saying, "getPageCount() in DataTable cannot implement getPageCount() in Ipa

Re: Error with getPageCount() when extending the Datatable in Wicket 6.13

2014-01-23 Thread chathuraka.waas
Hi François, Thanks for the quick reply. I'm fairly new to wicket and didnt understood what you meant clearly. . But i'm not calling this getPageCount() method from my backend. and also the error comes in class definition. -- View this message in context: http://apache-wicket.1842946.n4.nabble.

Re: Error with getPageCount() when extending the Datatable in Wicket 6.13

2014-01-23 Thread chathuraka.waas
Hi, i'm working on a code which was not written by me. It seems my classes extending the Datatable class doesnt implement the getPageCount() method. But when i try to override the method netbeans shows me a signature with a int return type on the suggession list. Not sure what's causing this.

Re: Error with getPageCount() when extending the Datatable in Wicket 6.13

2014-01-23 Thread chathuraka.waas
Hi, the compile time error netbeans gives me is getPageCount() in DataTable cannot implement getPageCount() in Ipageable return type long is not compatible with int this is my class definition. class MyTable extends DataTable { } im not at the liberty to post the whole code in here since

Re: Error with getPageCount() when extending the Datatable in Wicket 6.13

2014-01-23 Thread chathuraka.waas
Hi, yes wicket-extentions is also 6.13.0 org.apache.wicket wicket-extensions 6.13.0 thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-with-getPageCount-when-extending-the-Datatable-in-Wicket-6-13-tp4663896p4663907

Re: Error with getPageCount() when extending the Datatable in Wicket 6.13

2014-01-23 Thread chathuraka.waas
Hi, it seems that i was able to fix the issue. there was a old version of wicket included because of another dependency. excluding that dependency did the trick. Thanks a lot for your help guys. Best Regards, -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-

Cannot add InputHintFormBehavior to a form element

2014-01-24 Thread chathuraka.waas
Hi, i'm trying to migrate my application from Wicket 1.4 to 6.13 and getting a compilation error when trying to add a InputHintFormBehavior to a form element. private final Form form = new Form(); form.add(new InputHintFormBehavior(component.getMarkupId())); how this is achieved in wicket 6. T

Cannot add InputHintFormBehavior to a form element

2014-01-24 Thread chathuraka.waas
Hi, got the issue fixed. it was due to a error in my own class. thanks for the reply. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Cannot-add-InputHintFormBehavior-to-a-form-element-tp4663928p4663931.html Sent from the Users forum mailing list archive at Nabble.co

how to implement AjaxPagingNavigator.newNavigation in wicket 6

2014-01-24 Thread chathuraka.waas
hi, i'm trying to migrate my app from wicket 1.4 to 6.13. and it seems AjaxPagingNavigator.newNavigation method has been deprecated. what should be used in wicket to get the same functionality. Thanks in advance. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ho

Re: how to implement AjaxPagingNavigator.newNavigation in wicket 6

2014-01-24 Thread chathuraka.waas
/src/main/java/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigator.java?source=cc#L124 > It is not deprecated... > > Martin Grigorov > Wicket Training and Consulting > > > On Fri, Jan 24, 2014 at 11:01 AM, chathuraka.waas <[hidden > email]<http

setting response parameters in wicket 6

2014-01-31 Thread chathuraka.waas
Hi, i'm trying to migrate my application from 1.4 to 6 and stuck in a problem. the current code for setting content type and other parameters for response is, requestCycle.getResponse().setContentType("application/json"); requestCycle.getResponse().setCharacterEncoding("UTF-8"); requestCycle.g

Re: setting response parameters in wicket 6

2014-01-31 Thread chathuraka.waas
Hi, thanks for the replies. ((WebResponse) requestCycle.getResponse()).setContentType("application/json"); did resolve the compiler issues. but i cant find a setCharacterEncoding("UTF-8"); method in web response. is there a way to handle this. Thanks and regards, -- View this message in con

Re: setting response parameters in wicket 6

2014-01-31 Thread chathuraka.waas
gt; > On Fri, Jan 31, 2014 at 9:48 AM, chathuraka.waas > <[hidden email] <http://user/SendEmail.jtp?type=node&node=4664089&i=0>>wrote: > > > > Hi, > > > > thanks for the replies. > > > > ((WebResponse) > > requestCycle.getResponse()

Iterating through the Pageparameters

2014-01-31 Thread chathuraka.waas
Hi, i'm trying to migrate my application from 1.4 to 6.13. and i was able to iterate through the parameter list in 1.4 as given below. for (Map.Entry entry : parameters.entrySet()) {} but in wicket 6.13 this is not possible. how can this be achieved. Thanks in advance. -- View this message i

Re: Iterating through the Pageparameters

2014-01-31 Thread chathuraka.waas
ing and Consulting > > > On Fri, Jan 31, 2014 at 11:01 AM, chathuraka.waas <[hidden > email]<http://user/SendEmail.jtp?type=node&node=4664096&i=0> > > wrote: > > > Hi, > > > > i'm trying to migrate my application from 1.4 to 6.13. and i was ab

Retrieving the submit button value

2014-02-03 Thread chathuraka.waas
Hi, i'm trying to migrate my application wicket 1.4 to 6.13 and my earlier code has this code snippet to get the button value. frm.getRootForm().findSubmittingButton().getInputName(); but this is not possible with 6.13. is there a way to get the submit buttons value for comparison. Thanks in a

Re: Retrieving the submit button value

2014-02-03 Thread chathuraka.waas
Thanks martin. It fixed the compilation issues for me. should try out deploying the artifact. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Retrieving-the-submit-button-value-tp4664137p4664139.html Sent from the Users forum mailing list archive at Nabble.com. -

Component.fatal(String message) doesnt work in wicket 6

2014-03-05 Thread chathuraka.waas
Hi, i'm trying to migration my application from wicket 1.4 to 6.13 and it seems previously worked messages are no longer working. my code uses somehting like this to add messages, fatal(message); can anyone describe what fatal() does since api documentation doesnt describe it much. and also if

Re: Component.fatal(String message) doesnt work in wicket 6

2014-03-05 Thread chathuraka.waas
Hi, thanks for the reply. there are no compilation errors. the functionality doesnt work as it used to be. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Component-fatal-String-message-doesnt-work-in-wicket-6-tp4664785p4664787.html Sent from the Users forum mailing

Cannot place a fragment inside a form element

2014-03-06 Thread chathuraka.waas
Hi, i'm trying to migrate from wicket 1.4 to 6.13 and it seems i cannot place fragments inside the form elements. i get an markupIdNotFound Exception. can anyone help me out with this issue. thanks in advance. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Cannot-

Re: Cannot place a fragment inside a form element

2014-03-07 Thread chathuraka.waas
Hi Martin, Thanks for your guidance on how to post a question. My scenario is like this. i'm having a webpage where i have a panel inside it and then inside the panel i have a form where i'm placing a fragment conditionally. This the code for adding the panel to the page. This is the code

Re: Cannot place a fragment inside a form element

2014-03-07 Thread chathuraka.waas
Thank Martin. it works fine now :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Cannot-place-a-fragment-inside-a-form-element-tp4664841p4664847.html Sent from the Users forum mailing list archive at Nabble.com. -

Extending the DataTable class doesnt work

2014-03-13 Thread chathuraka.waas
Hi, i'm trying to migrate my application from 1.4 to 6.14. i have a class extending the DataTable and it seems not working after the migration. i tried replacing the extended class with the DataTable class and it worked fine. this is my code for extending the DataTable class. public class Te

Re: Extending the DataTable class doesnt work

2014-03-14 Thread chathuraka.waas
Hi Thanks for your replies. what i ment from not working was it doesnt give any compilation errors or runtime errors but simply it doesnt show the table as in the html. I tried implementing the basics of DataTable just to try out. here's my code. List> columns = new ArrayList>(); col

Re: Extending the DataTable class doesnt work

2014-03-14 Thread chathuraka.waas
hi, this is my markup for the panel http://wicket.apache.org/";> and the generated markup is this, Name Name No Records Found Regards,

Re: Extending the DataTable class doesnt work

2014-03-14 Thread chathuraka.waas
Got the basic datatable to show in the page. Thanks Martin. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Extending-the-DataTable-class-doesnt-work-tp4664952p4664961.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Extending the DataTable class doesnt work

2014-03-14 Thread chathuraka.waas
hi, i'm still trying to fix my initial issue where i have a customized DataTable class. I have a panel and inside that i have the table i'm extended from the Data Table. the code for my extended table is this. public class OfferTable extends DataTable { private static final lo

Re: Extending the DataTable class doesnt work

2014-03-14 Thread chathuraka.waas
hi, thanks for your reply. I tried making the to a element in the panel markup. http://www.w3.org/1999/xhtml"; xmlns:wicket="http://git-wip-us.apache.org/repos/asf/wicket/repo?p=wicket.git;a=blob_plain;f=wicket-core/src/main/resources/META-INF/wicket-1.5.xsd;hb=master";> it didnt

Re: Extending the DataTable class doesnt work

2014-03-18 Thread chathuraka.waas
Hi, i'm still trying to fix my issue. Even though most of the issues are fixed there is one small glitch i cant get my way around. Given my business scenario i need to be able to add a empty row to the table after its been rendered by wicket. In wicket 1.4 this was achieved by,

Cannot find the form error caused.

2014-03-20 Thread chathuraka.waas
hi, i'm trying to migrate my applicatioin to 6.14, i'm having a form which has a AjaxSubmitLink. i have attached a form validator to the form as well. for debugging purposes i have placed debug points at validator method,inside onSubmit() of AjaxSubmit link and inside onError() of AjaxSubmitLin

Need to refresh the page to see the errors on feedbackpanel.

2014-03-27 Thread chathuraka.waas
Hi, i'm trying to migrate my app to wicket 6.14 and find it difficult to show the error messages in my feedback panel. i'm working on a project that has been for a long time so i'm not sure if there might be code thats disabling the error messages. what i'm trying to do is add a feedback panel

Re: Need to refresh the page to see the errors on feedbackpanel.

2014-03-27 Thread chathuraka.waas
Hi Martin, i'm bit new to wicket and actually dont know what you mean by using ajax to show messages. given below is my code for submit button if it helps. FMAjaxSubmitLink publishButton = new FMAjaxSubmitLink("Button") { private static final long serialVersionUID = 1L;

Re: Need to refresh the page to see the errors on feedbackpanel.

2014-03-27 Thread chathuraka.waas
Hi Martin, Thanks got it working. And thanks for the materials too. Regards, -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Need-to-refresh-the-page-to-see-the-errors-on-feedbackpanel-tp4665139p4665145.html Sent from the Users forum mailing list archive at Nabbl

Exception thrown when refreshing the page.

2014-04-01 Thread chathuraka.waas
Hi, i have a form which as few text field elements. and when i submit the form it works fine. but after submit if i go and refresh the page it gives me an expception. my java and html code is below. TextFieldfirstName = new TextField("firstName", false, 50); firstName.setOutputMarkupId(true); f

Re: Exception thrown when refreshing the page.

2014-04-02 Thread chathuraka.waas
Hi, i got it fixed by using the following code. fragment.add(new FormComponentFeedbackLabel("firstName.feedback", firstName)); but now when i refresh the page instead of clearing the text field values they are retained. and any error message i've appended is also retained. how can i fix this

Redirecting users to my new pages with a message.

2014-04-02 Thread chathuraka.waas
Hi, As a customer request my application domain is changing. and i need to show a popup message box saying that you are being redirected to the new site since some users can bookmark the older url. The application support team has configured both old and new urls to be pointed to the same applic

Re: Redirecting users to my new pages with a message.

2014-04-02 Thread chathuraka.waas
Hi, Thanks for the reply. I read the api documentation on RedirectPage. my question is how can i intercept the request which was sent from the old url. as an example my old url for login is : http://abc.com/login my new url is: http://def.com/login if both abc.com and def.com are

Customized Navigation Toolbar not getting added to the table.

2014-04-08 Thread chathuraka.waas
hi, i'm trying to add a navigation bar to my table. but its not getting displayed. I have a customized data table and i'm trying to add my customized navigation bar to it. Here's my code. Please note this NavigationToolbar class is not the one in API. in Customized tabel. addBottomToolbar(new

Re: Customized Navigation Toolbar not getting added to the table.

2014-04-08 Thread chathuraka.waas
Hi Martin, my markup in the customizedtable.html is like this, but in runtime it doesnt create any markup. when i inspected with firebug it shows as, regards, -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Customized-Navigati

Re: Customized Navigation Toolbar not getting added to the table.

2014-04-08 Thread chathuraka.waas
hi martin, updated the markup as u mentioned, but its still not working. its generating the following, -- View this message in context:

Re: Customized Navigation Toolbar not getting added to the table.

2014-04-09 Thread chathuraka.waas
Hi Martin, Thanks for your advices and help on this matter. as you suggessted i added the following markup.

Re: Customized Navigation Toolbar not getting added to the table.

2014-04-09 Thread chathuraka.waas
Hi, was able to resolve the issue by adding following markup. First | Previous | Next | Last [navigator-label] Thanks for all the help guys. Regards, -- View

Creating a AjaxFallbackHeadersToolbar outside header.

2014-04-10 Thread chathuraka.waas
Hi, i'm trying to migrate my application from wicket 1.4 to 6.14. previously i was able to place a div inside a table and attach it with a AjaxFallbackHeadersToolbar. in 1.4 i was able to place the AjaxFallbackHeadersToolbar inside a tr element i wanted inside a table. but with 6.14 its changed.

Opening a Modal window on page load in Wicket 6

2014-06-01 Thread chathuraka.waas
hi, i'm trying to open a modal window on page load to show some information to the user. i found this link specifying how to create a modalwindow class that gives this behavior. https://cwiki.apache.org/confluence/display/WICKET/Modal+Windows but in wicket 6 getWindowOpenJavascript() method is n

Re: Opening a Modal window on page load in Wicket 6

2014-06-01 Thread chathuraka.waas
hi, my bad the method is there. but now i'm getting a exception when creating the modal window and from the stack trace its hard to figure out whats the issue. here is my code. on page load. emailWarningModalWindow = new EmailWarningModalWindow(("emailwarningModal")); add(emailWarningModalWi

Re: Opening a Modal window on page load in Wicket 6

2014-06-04 Thread chathuraka.waas
Hi, Thanks for the info. it did fix my issue. Regards, -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Opening-a-Modal-window-on-page-load-in-Wicket-6-tp4666083p4666111.html Sent from the Users forum mailing list archive at Nabble.com.