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.

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



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

how can i achieve this in wicket 6. 

Thanks in advance. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Opening-a-Modal-window-on-page-load-in-Wicket-6-tp4666083.html
Sent from the Users forum 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: 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(emailWarningModalWindow);

public class EmailWarningModalWindow extends ModalWindow implements
IHeaderContributor {

public EmailWarningModalWindow(String id) {
super(id);
}

@Override
public void renderHead(IHeaderResponse response) {
   
response.render(JavaScriptHeaderItem.forScript(getWindowOpenJavaScript(),null));
}

@Override
protected boolean makeContentVisible() {
return true;
}
}

and her's the exception i'm getting,

org.apache.wicket.WicketRuntimeException: Error creating page for modal
dialog.
at
org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow.getWindowOpenJavaScript(ModalWindow.java:1082)
at
com.fanminder.merchant.app.programs.EmailWarningModalWindow.renderHead(EmailWarningModalWindow.java:26)
at org.apache.wicket.Component.renderHead(Component.java:4446)
at org.apache.wicket.Component.renderHead(Component.java:2704)
at
org.apache.wicket.markup.renderStrategy.ChildFirstHeaderRenderStrategy$1.component(ChildFirstHeaderRenderStrategy.java:85)
at
org.apache.wicket.markup.renderStrategy.DeepChildFirstVisitor.visit(DeepChildFirstVisitor.java:96)
at
org.apache.wicket.markup.renderStrategy.DeepChildFirstVisitor.visit(DeepChildFirstVisitor.java:87)
at
org.apache.wicket.markup.renderStrategy.DeepChildFirstVisitor.visit(DeepChildFirstVisitor.java:51)
at
org.apache.wicket.markup.renderStrategy.ChildFirstHeaderRenderStrategy.renderChildHeaders(ChildFirstHeaderRenderStrategy.java:78)
at
org.apache.wicket.markup.renderStrategy.ChildFirstHeaderRenderStrategy.renderHeader(ChildFirstHeaderRenderStrategy.java:57)
at
org.apache.wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:170)
at
org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)
at 
org.apache.wicket.Component.internalRenderComponent(Component.java:2551)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1494)
at org.apache.wicket.Component.internalRender(Component.java:2381)
at org.apache.wicket.Component.render(Component.java:2309)
at 
org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1390)
at 
org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1555)
at org.apache.wicket.Page.onRender(Page.java:887)
at org.apache.wicket.markup.html.WebPage.onRender(WebPage.java:142)
at org.apache.wicket.Component.internalRender(Component.java:2381)
at org.apache.wicket.Component.render(Component.java:2309)
at org.apache.wicket.Page.renderPage(Page.java:1024)
at
org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:121)
at
org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:274)
at
org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:175)
at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:97)
at
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
at
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.fanminder.HibernateFilter.doFilter(HibernateFilter.java:24)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

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. 

i cant place the AjaxFallbackHeadersToolbar any other place other than the
header element. how can i accomplish this in wicket 6.14. 

thanks in advance. regards. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Creating-a-AjaxFallbackHeadersToolbar-outside-header-tp4665340.html
Sent from the Users forum 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: Customized Navigation Toolbar not getting added to the table.

2014-04-09 Thread chathuraka.waas
Hi Martin,

my markup in the customizedtable.html is like this, 

div class=bottom-toolbar
wicket:container wicket:id=bottomToolbars
class=fan-nav/wicket:container
/div


but in runtime it doesnt create any markup. when i inspected with firebug it
shows as, 

div class=bottom-toolbar
 
/div

regards,

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Customized-Navigation-Toolbar-not-getting-added-to-the-table-tp4665297p4665299.html
Sent from the Users forum 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: Customized Navigation Toolbar not getting added to the table.

2014-04-09 Thread chathuraka.waas
hi martin,

updated the markup as u mentioned, 

tfoot





/tfoot

but its still not working. its generating the following, 

tfoot
   

 
  
/tfoot

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Customized-Navigation-Toolbar-not-getting-added-to-the-table-tp4665297p4665303.html
Sent from the Users forum 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: 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. 



 

wicket:container
wicket:id=topToolbars/wicket:container





[cell]






div class=bottom-toolbar
wicket:container wicket:id=bottomToolbars
class=fan-nav/wicket:container
/div





but it still doesnt work. this is what i get it in run time for the
bottom-toolbar. 




div class=bottom-toolbar /div





and i also noticed that top toolbar also doesnt get added. im' using this
code to add the table row header values. 

addTopToolbar(new AjaxFallbackHeadersToolbar(this, dataProvider));

i'm not sure where has i got it wrong. 

Regards, 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Customized-Navigation-Toolbar-not-getting-added-to-the-table-tp4665297p4665310.html
Sent from the Users forum 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: 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. 

tfoot wicket:id=bottomToolbars
wicket:container
wicket:id=toolbars/wicket:container
/tfoot



div wicket:id=navigatorFirst | Previous |  Next
NavigationToolbar.html#   |  Last NavigationToolbar.html#  /div
div
wicket:id=navigatorLabel[navigator-label]/div




Thanks for all the help guys. 

Regards, 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Customized-Navigation-Toolbar-not-getting-added-to-the-table-tp4665297p4665326.html
Sent from the Users forum 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



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 NavigationToolbar(this));

customized navigation bar. 

public class NavigationToolbar extends AbstractToolbar {
private static final long serialVersionUID = 6646820801010951840L;

public NavigationToolbar(final DataTable?,Object table) {
super(table);
add(new NavigatorLabel(navigatorLabel, table));
add(new Navigator(navigator, (DataTable?,Object) table) {
private static final long serialVersionUID = 
1541054336938996456L;

@Override
protected void onAjaxEvent(AjaxRequestTarget target) {
target.add(table);
}
}

wicket:panel xmlns:wicket=http://wicket.apache.org/;
div class=fan-nav
1-3 of 3
 
/div
/wicket:panel

what am i doing wrong here. 

Thanks in advance. 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Customized-Navigation-Toolbar-not-getting-added-to-the-table-tp4665297.html
Sent from the Users forum 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: 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 issue now?


Best Regards, 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Exception-thrown-when-refreshing-the-page-tp4665212p4665218.html
Sent from the Users forum 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



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

Whats the best way to show users a splash screen when a users comes from the
old urls and redirect him to the new page. 

Best Regards, 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Redirecting-users-to-my-new-pages-with-a-message-tp4665239.html
Sent from the Users forum 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: 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 pointed to the same application how can i
intercept request coming through abc.com/login and show a message and
redirect to def.com/login


Regards,


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Redirecting-users-to-my-new-pages-with-a-message-tp4665239p4665241.html
Sent from the Users forum 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



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. 

TextFieldStringfirstName = new TextField(firstName, false, 50);
firstName.setOutputMarkupId(true);
fragment.add(firstName);
fragment.add(new Label(firstName.getId() +
.feedback).setOutputMarkupId(true));

wicket:fragment wicket:id=fragment
label for=firstNameFirst
Name/label
input id=firstName
wicket:id=firstName type=text value={firstName} maxlength=50
tabindex=1 /

/wicket:fragment


and here's the exception i'm getting. 


org.apache.wicket.WicketRuntimeException: Exception in rendering component:
[Component id = firstName.feedback]
at 
org.apache.wicket.Component.internalRenderComponent(Component.java:2578)
at
org.apache.wicket.markup.html.WebComponent.onRender(WebComponent.java:56)
at org.apache.wicket.Component.internalRender(Component.java:2381)
at org.apache.wicket.Component.render(Component.java:2309)
at 
org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1390)
at 
org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1555)
at
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1530)
at
org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1485)
at
org.apache.wicket.markup.html.panel.FragmentMarkupSourcingStrategy.onComponentTagBody(FragmentMarkupSourcingStrategy.java:86)
at 
org.apache.wicket.Component.internalRenderComponent(Component.java:2551)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1494)
at org.apache.wicket.Component.internalRender(Component.java:2381)
at org.apache.wicket.Component.render(Component.java:2309)
at 
org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1390)
at 
org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1555)
at
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1530)
at
org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1485)
at
org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:1696)
at
org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)
at 
org.apache.wicket.Component.internalRenderComponent(Component.java:2551)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1494)
at org.apache.wicket.Component.internalRender(Component.java:2381)
at org.apache.wicket.Component.render(Component.java:2309)
at 
org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1390)
at 
org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1555)
at org.apache.wicket.Page.onRender(Page.java:887)
at org.apache.wicket.markup.html.WebPage.onRender(WebPage.java:142)
at org.apache.wicket.Component.internalRender(Component.java:2381)
at org.apache.wicket.Component.render(Component.java:2309)
at org.apache.wicket.Page.renderPage(Page.java:1024)
at
org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:121)
at
org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
at
org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:175)
at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
at
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.fanminder.HibernateFilter.doFilter(HibernateFilter.java:24)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at

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 to my pages and show the
errors. but i can only see them after refreshing the page. 

heres my code and markup. 

this.add(new FeedbackPanel(feedback).setVisible(true));

div wicket:id=feedback/div

what am i doing wrong here. 

Thanks in advance. 

Regards, 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Need-to-refresh-the-page-to-see-the-errors-on-feedbackpanel-tp4665139.html
Sent from the Users forum 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: 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;

@Override
public void submit(AjaxRequestTarget target, Form? f) {
isDraft = false;
processSubmit(target, (PublishForm) form.getModelObject());
}

@Override
protected void onError(AjaxRequestTarget target, Form? form) {
setError(, null, target);
}
};

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Need-to-refresh-the-page-to-see-the-errors-on-feedbackpanel-tp4665139p4665142.html
Sent from the Users forum 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



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

When i have the validator added to the form and debug i reach to the
validator method but doesnt get into onsubmit or onError methods. 

when i remove the validator from the form the flow reaches onError method on
the submitAjaxLink. but i'm unable to find whats causing the error. 

is there a way i can identify the error being caused so that i can rectify
it. There are no expceptions thrown or compilation errors. 

Thanks in advance. 




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Cannot-find-the-form-error-caused-tp4665039.html
Sent from the Users forum 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: 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, 





[cell]



div class=last-row-bottom-border/div


but with wicket 6.14 i'm unable to do this. when i place wicket elements
inside the table it complains telling that only row html elements are
allowed inside a table component. 

my current table mark up is this,

 
 


how can i achieve to add a empty column after the rows are being rendered in
wicket 6.14. 

Thanks in advance. 

Regards, 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Extending-the-DataTable-class-doesnt-work-tp4664952p4665018.html
Sent from the Users forum 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: 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. 

ListIColumnlt;TestData,String columns = new
ArrayListIColumnlt;TestData,String();

columns.add(new PropertyColumnTestData, String(new ModelString(Name),
o.name)
{
@Override
public String getCssClass()
{
return sampleCss;
}
});

table = new DefaultDataTableOfferData,
String(OffersTable,columns,dataProvider,5);
table.setOutputMarkupId(true);
table.addTopToolbar(new AjaxFallbackHeadersToolbar(table, dataProvider));

i have this code inside a panel and i'm adding the panel to my page. when i
inspected the generated html i cant find any tabel elements. the column
headers are shown inside span tags.  and also the css classes are not
applied to the columns as well. 

what am i doing wrong in here. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Extending-the-DataTable-class-doesnt-work-tp4664952p4664956.html
Sent from the Users forum 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: Extending the DataTable class doesnt work

2014-03-14 Thread chathuraka.waas
hi,

this is my markup for the panel 

wicket:panel xmlns:wicket=http://wicket.apache.org/;
div wicket:id=OffersTable/div
/wicket:panel

and the generated markup is this, 
div id=id28 class=offer-type-panel
   div id=id29
   Name
   Name
   divNo Records Found/div
   div class=navigatorLabel
   div class=navigator
   /div
/div

Regards, 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Extending-the-DataTable-class-doesnt-work-tp4664952p4664958.html
Sent from the Users forum 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: 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.

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



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 OfferTableT,S extends DataTableT,S {

private static final long serialVersionUID = 1L;


public OfferTable(String id, ListIColumnlt;T, S columns,
IDataProviderT dataProvider, int rowsPerPage) {
super(id, columns, dataProvider, rowsPerPage);
}

}


and i have the corresponding markup file for this class. 

wicket:panel xmlns=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;




wicket:container wicket:id=topToolbars/wicket:container

tfoot
wicket:container wicket:id=bottomToolbars
class=fan-nav/wicket:container
/tfoot




[cell]



div class=last-row-bottom-border/div




/wicket:panel


i'm creating a instance out of this Table class and placing it in my panel. 

ListIColumnlt;OfferData, String columns = new
ArrayListIColumnlt;OfferData, String();
columns.add(name);
columns.add(fans);
 
table = new OfferTableOfferData,String(OffersTable, columns,
dataProvider, 5) {

private static final long serialVersionUID =
8235090332329499560L;

@Override
protected Item newRowItem(String id, int index, IModel model) {
Item item = new Item(id, index, model);
item.add(new AttributeModifier(class, new
ModelString(index % 2 == 0 ? current
: altrow)));
return item;
}
};


table.setOutputMarkupId(true);
table.addTopToolbar(new AjaxFallbackHeadersToolbar(table, dataProvider));


when  i do this the table does not gets generated. i cant find any compile
time errors or runtime errors. 
what am i doing wrong in here. 



 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Extending-the-DataTable-class-doesnt-work-tp4664952p4664962.html
Sent from the Users forum 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: Extending the DataTable class doesnt work

2014-03-14 Thread chathuraka.waas
hi,

thanks for your reply. I tried making the div to a 
 element in the panel markup. 

wicket:panel xmlns=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;


/wicket:panel

it didnt work out. 

then i tried removing the outer panel elements from the OfferTable.html
markup and it gave an runtime error asking for the panel markup element. 




wicket:container wicket:id=topToolbars/wicket:container





[cell]



div class=last-row-bottom-border/div 

tfoot
wicket:container wicket:id=bottomToolbars
class=fan-nav/wicket:container
/tfoot



as i tried earlier just placing the table content inside the panel and using
DataTable gets me the work done. but i'm trying to use this method since
there are few other places which uses this code. 

Regards, 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Extending-the-DataTable-class-doesnt-work-tp4664952p4664965.html
Sent from the Users forum 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



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 TestTableT,Object extends DataTableT,Object {

private static final long serialVersionUID = 1L;


public TestTable(String id, ListIColumnlt;T, Object columns,
IDataProviderT dataProvider, int rowsPerPage) {
super(id, columns, dataProvider, rowsPerPage);
}

}

am i doing something wrong here. please shed some light on this. Thanks in
advance. 

Regards,

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Extending-the-DataTable-class-doesnt-work-tp4664952.html
Sent from the Users forum 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: 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.

div id=MenuFirstPanel wicket:id=MenuFirstPanel /div

This is the code for adding the fragment. 

wicket:panel
form wicket:id=form  
div wicket:id=MenuPanel/div   
wicket:fragment  wicket:id=testFragment
div class=clear/div
div
sample test
/div
p class=welcometest message: 244326./p
br/
div style=margin-top: 10px;Your name is: /div
/wicket:fragment
/form
/wicket:panel

this is how i add the fragment in my corresponding panel.java class. 

Fragment testFrag  = new Fragment(MenuPanel,testFragment, this);
  testFrag.add(new Label(shortcode, 1);
  add(testFrag);


when i do this the following exception is thrown: 

org.apache.wicket.markup.MarkupNotFoundException: No Markup found for
Fragment 'testFragment' in providing markup container [MenuFirstPanel
[Component id = MenuFirstPanel]]
at
org.apache.wicket.markup.html.panel.FragmentMarkupSourcingStrategy.getMarkup(FragmentMarkupSourcingStrategy.java:145)
at org.apache.wicket.MarkupContainer.getMarkup(MarkupContainer.java:451)
at org.apache.wicket.Component.getMarkup(Component.java:743)
at org.apache.wicket.Component.getMarkupTag(Component.java:1389)
at org.apache.wicket.Component.getMarkupIdFromMarkup(Component.java:752)
at org.apache.wicket.Component.getMarkupIdImpl(Component.java:1446)
at org.apache.wicket.Component.getMarkupId(Component.java:1474)


I tried moving the fragment code outside the form element and it works fine
without an issue.  can any one shed some light on this issue. Thanks in
advance. 




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Cannot-place-a-fragment-inside-a-form-element-tp4664841p4664843.html
Sent from the Users forum 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: 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.

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



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-place-a-fragment-inside-a-form-element-tp4664841.html
Sent from the Users forum 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



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 there's anyway to fix this in wicket 6. 

thanks in advance.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Component-fatal-String-message-doesnt-work-in-wicket-6-tp4664785.html
Sent from the Users forum 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: 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 list archive at Nabble.com.

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



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

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Retrieving-the-submit-button-value-tp4664137.html
Sent from the Users forum 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: 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.

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



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.getResponse().setContentLength(authUrl.length());

and in wicket 6 it seems response doesnt have those methods. how can i
achieve this in wicket 6. 

thanks in advance. 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/setting-response-parameters-in-wicket-6-tp4664084.html
Sent from the Users forum 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: 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 context: 
http://apache-wicket.1842946.n4.nabble.com/setting-response-parameters-in-wicket-6-tp4664084p4664088.html
Sent from the Users forum 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: setting response parameters in wicket 6

2014-01-31 Thread chathuraka.waas
Thanks for reply guys.


On Fri, Jan 31, 2014 at 2:25 PM, Martin Grigorov-4 [via Apache Wicket] 
ml-node+s1842946n4664089...@n4.nabble.com wrote:

 response.setContentType(text/xml; charset= + encoding);

 Martin Grigorov
 Wicket Training and Consulting


 On Fri, Jan 31, 2014 at 9:48 AM, chathuraka.waas
 [hidden email] http://user/SendEmail.jtp?type=nodenode=4664089i=0wrote:


  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 context:
 
 http://apache-wicket.1842946.n4.nabble.com/setting-response-parameters-in-wicket-6-tp4664084p4664088.html

  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=4664089i=1
  For additional commands, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=4664089i=2
 
 


 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://apache-wicket.1842946.n4.nabble.com/setting-response-parameters-in-wicket-6-tp4664084p4664089.html
  To unsubscribe from setting response parameters in wicket 6, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4664084code=Y2hhdGh1cmFrYS53YWFzQGdtYWlsLmNvbXw0NjY0MDg0fC04NTAwMjE3MTc=
 .
 NAMLhttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml




-- 
Thanks  Regards,
Chathuraka Waas


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/setting-response-parameters-in-wicket-6-tp4664084p4664090.html
Sent from the Users forum 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



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.EntryString, Object entry : parameters.entrySet()) {}

but in wicket 6.13 this is not possible. how can this be achieved.

Thanks in advance.  

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Iterating-through-the-Pageparameters-tp4664093.html
Sent from the Users forum 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: Iterating through the Pageparameters

2014-01-31 Thread chathuraka.waas
hi,

thanks for the reply. got it working.


On Fri, Jan 31, 2014 at 4:02 PM, Martin Grigorov-4 [via Apache Wicket] 
ml-node+s1842946n4664096...@n4.nabble.com wrote:

 org.apache.wicket.request.mapper.parameter.PageParameters#getAllNamed

 Martin Grigorov
 Wicket Training and Consulting


 On Fri, Jan 31, 2014 at 11:01 AM, chathuraka.waas [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4664096i=0
  wrote:

  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.EntryString, Object entry : parameters.entrySet()) {}
 
  but in wicket 6.13 this is not possible. how can this be achieved.
 
  Thanks in advance.
 
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/Iterating-through-the-Pageparameters-tp4664093.html
  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=4664096i=1
  For additional commands, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=4664096i=2
 
 


 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://apache-wicket.1842946.n4.nabble.com/Iterating-through-the-Pageparameters-tp4664093p4664096.html
  To unsubscribe from Iterating through the Pageparameters, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4664093code=Y2hhdGh1cmFrYS53YWFzQGdtYWlsLmNvbXw0NjY0MDkzfC04NTAwMjE3MTc=
 .
 NAMLhttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml




-- 
Thanks  Regards,
Chathuraka Waas


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Iterating-through-the-Pageparameters-tp4664093p4664098.html
Sent from the Users forum 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



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.

Thanks in advance. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Cannot-add-InputHintFormBehavior-to-a-form-element-tp4663928.html
Sent from the Users forum 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



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

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



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/how-to-implement-AjaxPagingNavigator-newNavigation-in-wicket-6-tp4663933.html
Sent from the Users forum 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: how to implement AjaxPagingNavigator.newNavigation in wicket 6

2014-01-24 Thread chathuraka.waas
thanks for the reply. my mistake its just that the method signature has
been changed.


On Fri, Jan 24, 2014 at 3:24 PM, Martin Grigorov-4 [via Apache Wicket] 
ml-node+s1842946n4663936...@n4.nabble.com wrote:

 Hi,


 https://github.com/apache/wicket/blob/master/wicket-core/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://user/SendEmail.jtp?type=nodenode=4663936i=0
  wrote:

  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/how-to-implement-AjaxPagingNavigator-newNavigation-in-wicket-6-tp4663933.html
  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=4663936i=1
  For additional commands, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=4663936i=2
 
 


 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://apache-wicket.1842946.n4.nabble.com/how-to-implement-AjaxPagingNavigator-newNavigation-in-wicket-6-tp4663933p4663936.html
  To unsubscribe from how to implement AjaxPagingNavigator.newNavigation in
 wicket 6, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4663933code=Y2hhdGh1cmFrYS53YWFzQGdtYWlsLmNvbXw0NjYzOTMzfC04NTAwMjE3MTc=
 .
 NAMLhttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml




-- 
Thanks  Regards,
Chathuraka Waas


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-implement-AjaxPagingNavigator-newNavigation-in-wicket-6-tp4663933p4663938.html
Sent from the Users forum 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: 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.com/Error-with-getPageCount-when-extending-the-Datatable-in-Wicket-6-13-tp4663896p4663898.html
Sent from the Users forum 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: 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. 


Thanks,

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Error-with-getPageCount-when-extending-the-Datatable-in-Wicket-6-13-tp4663896p4663901.html
Sent from the Users forum 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: 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 DataTableFanData,Object {

}

im not at the liberty to post the whole code in here since its client work.
Hope this error and code will help. 

thanks. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Error-with-getPageCount-when-extending-the-Datatable-in-Wicket-6-13-tp4663896p4663904.html
Sent from the Users forum 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: 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 

dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket-extensions/artifactId
version6.13.0/version
/dependency


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.html
Sent from the Users forum 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: 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-with-getPageCount-when-extending-the-Datatable-in-Wicket-6-13-tp4663896p4663909.html
Sent from the Users forum 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



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 Ipageable
return type long is not compatible with int

I looked at both the Datatable class and the Ipagable interface but both
methods use the long return type.

glad if anyone can shed some light on this issue. Thanks in advance.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Error-with-getPageCount-when-extending-the-Datatable-in-Wicket-6-13-tp4663896.html
Sent from the Users forum 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