Re: org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException when provider data for DataTable changes before paging (Wicket 6.x up to and including 6.15.0)

2014-06-10 Thread Oddgeir Bell

It's not our component, but a Wicket component:
org.apache.wicket.extensions.ajax.markup.html.repeater.data.table.AjaxNavigationToolbar

We add it like this:
datatable.addBottomToolbar(new AjaxNavigationToolbar(this));

And then I would assume it took care of itself, and updated the table when it 
needed to...

Regards,
Oddgeir


It seems the link is already disabled when you click on it.

Which component do you update via Ajax after deleting the row? It seems
the browser isn't showing the latest state of the table.

Regards
Sven



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



Re: FileDownload hides the activity indicator

2014-06-10 Thread Ernesto Reinaldo Barreiro
1-
http://stackoverflow.com/questions/683571/jquery-blockui-how-to-unblock-ui-after-file-download
2-
http://geekswithblogs.net/GruffCode/archive/2010/10/28/detecting-the-file-download-dialog-in-the-browser.aspx
3-http://hasselba.ch/blog/?p=1274


On Wed, Jun 11, 2014 at 1:44 AM, msalman  wrote:

> Hi,
>
> I have code that downloads file in Ajax mode.  The download is fired by
> IndicatingAjaxButton.  The activity indicator is visible for a very short
> time but when file download code starts the activity indicator vanishes.
>  It
> is a big problem if the file takes a long time to download.  Any ideas
> about
> how to fix it?  I am attaching a quick start for the test code.
>
>
> ajaxfileDownload.zip
> <
> http://apache-wicket.1842946.n4.nabble.com/file/n4666181/ajaxfileDownload.zip
> >
>
> As always, I would appreciate any help in fixing this issue.
>
> Thanks,
>
> -msalman
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/FileDownload-hides-the-activity-indicator-tp4666181.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
>
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: Ajax Form Submit via jquery plugin / javascript

2014-06-10 Thread Paul Bors
http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/ajax/form/AjaxFormSubmitBehavior.html

"Ajax event behavior that submits a form via ajax when the event it is attached 
to, is invoked.”

You’re attaching the submit event so who fires that?

On Jun 10, 2014, at 5:28 AM, Vishal Popat  wrote:

> Hi,
> 
> I am using a jquery steps plugin which has the ability to change options.
> One of the options I have is:
>   onFinished: function (event, currentIndex) {
>var form = document.forms["selectionForm"];
>form.submit();
>},
> 
> The javascript above submits the associated form. However I would like to 
> submit the form via ajax. Normally I would use an AjaxButton for ajax 
> processing but in this case I need something else. I have tried
> 
> selectionForm.add(new AjaxFormSubmitBehavior(selectionForm, "onsubmit") {
>   @Override
>   protected void onSubmit(AjaxRequestTarget target) {
>   log.debug("*** ajax form submit");
>   }
> }
> 
> but this does not seem to work as the debug does not get outputted.
> Additionally, the onSubmit Form version is called. Is there a way to stop 
> this?
> 
> Let me know if should be using something else instead.
> 
> Regards
> Vishal
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 



Re: Link in repeaters

2014-06-10 Thread Paul Bors
You need to wrap a the Anchor around a Label and you can do so either in a 
fragment or your own LablledLinkPanel…

On Jun 10, 2014, at 2:01 PM, Sven Meier  wrote:

> Hi,
> 
> a link does not output a label. Read here for two possible solutions:
> 
> https://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg28621.html
> 
> Regards
> Sven
> 
> On 06/10/2014 06:02 PM, kumar ramanathan wrote:
>> Hi Friends ,
>> I have successfully generated the view using repeaters using the following
>> code.
>> 
>> HTML:
>> 
>> 
>> Name Id
>> 
>>  
>> 
>> 
>> 
>> HelloWorld.java
>> public HelloWorld(){
>>  List list = new  ArrayList();
>>  list.add(new Persons("sam","one"));
>>  list.add(new Persons("ram","two"));
>>  ListDataProvider listDataProvider = new
>> ListDataProvider(list);
>> DataView dataView = new DataView("rows",
>> listDataProvider) {
>> @Override protected void populateItem(Item item)
>>  {
>>   Persons person = item.getModelObject();
>>RepeatingView repeatingView = new RepeatingView("dataRow");
>>   repeatingView.add(new Label(repeatingView.newChildId(),
>> person.getName()));
>>   repeatingView.add(new Label(
>> repeatingView.newChildId(),person.getId()));
>>   item.add(repeatingView);
>>  }
>>  };
>>  add(dataView);
>>  }
>> Ouput I got :
>> 
>> Name Id
>> sam one(not link)
>> ram  two(not link)
>> 
>> Now I have tried to display the above ouput as below with link
>> 
>> Name Id
>> sam one(link)
>> ram  two(link)
>> 
>> 
>> For this ouput i have altered the code in helloword.java as below
>> 
>> 
>> DataView dataView = new DataView("rows",
>> listDataProvider){
>>  protected void populateItem(Item item){
>>   Persons person = item.getModelObject();
>>   RepeatingView repeatingView = new RepeatingView("dataRow");
>>   repeatingView.add(new Label(repeatingView.newChildId(),
>> person.getName()));
>>   repeatingView.add(new Link(person.getId()){
>>  public void onClick(){
>>  setResponsePage(Output.class);
>>  }
>>   });
>>   item.add(repeatingView);
>>   }
>> }; add(dataView);}}
>>  Output I got for the above code change is
>> 
>> Name Id
>> sam
>> ram
>> 
>> No Id value is displayed.
>> 
>> I need your help on making code changes to display the id as link. Kindly
>> help me what are the things i need to update.
>> Thanks,
>> Kumar
>> 
>> 
>> --
>> View this message in context: 
>> http://apache-wicket.1842946.n4.nabble.com/Link-in-repeaters-tp4666176.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
>> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 


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



Re: OnChangeAjaxBehavior.onUpdate() not called

2014-06-10 Thread Paul Bors
Well, by hidden do you mean an input type of hidden or not present on the DOM?

On Jun 10, 2014, at 7:03 PM, Lucio Crusca  wrote:

>> everything looks OK to me
>> check whether there are any JS errors in the browser's Dev Tools console.
> 
> No errors. Can the fact that the input fields are inside a div that is
> initially hidden and then slid down via jQuery make a difference?
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 


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



Re: Newbie question : How do I display a tabbed list vertically rather than horizontally?

2014-06-10 Thread Paul Bors
Extend the Wicket class you want like the AjaxTabbedPanel in Java (Model and 
Controller) and change the HTML (viewer) as you please.

You would need access to Wicket’s source code thus if you use Maven see the 
sources classifier at:
 http://maven.apache.org/pom.html

Perhaps your IDE (Eclipse, Netbeans, IntelliJ IDEA, etc) is already configured 
to view the sources of your project’s dependencies.
If not download the sources manually from maven central or view the source code 
in the right branch online at GitHub:
https://github.com/apache/wicket/tree/master/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/tabs

Note the TabbedPanel.html contents:
http://wicket.apache.org";>


[[tab title]]





So create your own VerticalTabbedPanel.html and change the HTML mark-up to say 
a table but preserve the wicket:id hierarchy:
http://wicket.apache.org";>







[[tab title]]




 

[panel]






Then you need to extend the AjaxTabbedPanel java class to your own 
VerticalTabbedPanel.java say:
public class VerticalTabbedPanel extends TabbedPanel {
// In your own VerticalTabbedPanel constructors call super.*
}

From then on, feel free to use your new VerticalTabbedPanel.

Alternately you can use CSS to style the original markup of the 
TabbedPanel.html to be vertical which might be an easier solution as earlier 
suggested.
I only provided this answer to you so you can learn how easy it is to override 
Wicket’s code and its markup if so desired.

On Jun 9, 2014, at 10:34 AM, Tim Collins  wrote:

> I am rather new to wicket and am trying to do something that ought to be 
> rather easy... I want to make the tabs I display show up vertically rather 
> than horizontally.
> 
> I am currently building a arraylist of tabs and then passing them to 
> AjaxTabbedPanel, but as far as I can see there is no way to make the 
> resulting tabs on a page show up down the left side of a page rather than 
> across the top... Is there an easy way to do that?
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 



FileDownload hides the activity indicator

2014-06-10 Thread msalman
Hi,

I have code that downloads file in Ajax mode.  The download is fired by
IndicatingAjaxButton.  The activity indicator is visible for a very short
time but when file download code starts the activity indicator vanishes.  It
is a big problem if the file takes a long time to download.  Any ideas about
how to fix it?  I am attaching a quick start for the test code.


ajaxfileDownload.zip
 
 

As always, I would appreciate any help in fixing this issue.

Thanks,

-msalman

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/FileDownload-hides-the-activity-indicator-tp4666181.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: OnChangeAjaxBehavior.onUpdate() not called

2014-06-10 Thread Lucio Crusca
> everything looks OK to me
> check whether there are any JS errors in the browser's Dev Tools console.

No errors. Can the fact that the input fields are inside a div that is
initially hidden and then slid down via jQuery make a difference?


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



Re: Implementing a SecureForm to avoid CSRF attacks

2014-06-10 Thread Sven Meier

my form contains a panel with tabs, each tab refreshes
the Form class through ajax but the HTML stays the same.


I don't understand this:
IF the form is updated on each Ajax request, the hidden input should always 
have an up-to-date token value.

Sven



On 06/10/2014 05:04 PM, shayy wrote:

I'm trying to implement a SecureForm (extends Form) which dynamically adds a
hidden field to prevent CSRF attacks as described here:
http://apache-wicket.1842946.n4.nabble.com/Security-Features-offered-by-Wicket-td1861659.html

My problem is that my form contains a panel with tabs, each tab refreshes
the Form class through ajax but the HTML stays the same.
The result is that when I try to enter the first tab, click on the second
tab and try to post it I'm getting invalid tockens since the second tab HTML
has the first token but it's Form class already instantiated a new CSRF
token.

Anyone have an idea how i can replace the injected HTML from the
onComponentTagBody.
I'd like to try and use this approach (token field in the SecureForm class)
instead of just putting the token inside the session.

Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Implementing-a-SecureForm-to-avoid-CSRF-attacks-tp4666175.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




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



Re: Link in repeaters

2014-06-10 Thread Sven Meier

Hi,

a link does not output a label. Read here for two possible solutions:

https://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg28621.html

Regards
Sven

On 06/10/2014 06:02 PM, kumar ramanathan wrote:

Hi Friends ,
I have successfully generated the view using repeaters using the following
code.

HTML:


 
Name	Id
 



 




HelloWorld.java
public HelloWorld(){
List list = new  ArrayList();
list.add(new Persons("sam","one"));
list.add(new Persons("ram","two"));
ListDataProvider listDataProvider = new
ListDataProvider(list);
 DataView dataView = new DataView("rows",
listDataProvider) {
 @Override protected void populateItem(Item item)
{
   Persons person = item.getModelObject();
  RepeatingView repeatingView = new RepeatingView("dataRow");
   repeatingView.add(new Label(repeatingView.newChildId(),
person.getName()));
   repeatingView.add(new Label(
repeatingView.newChildId(),person.getId()));
   item.add(repeatingView);
  }
};
add(dataView);
  }
Ouput I got :

Name Id
sam one(not link)
ram  two(not link)

Now I have tried to display the above ouput as below with link

Name Id
sam one(link)
ram  two(link)


For this ouput i have altered the code in helloword.java as below


DataView dataView = new DataView("rows",
listDataProvider){
  protected void populateItem(Item item){
   Persons person = item.getModelObject();
   RepeatingView repeatingView = new RepeatingView("dataRow");
   repeatingView.add(new Label(repeatingView.newChildId(),
person.getName()));
   repeatingView.add(new Link(person.getId()){
  public void onClick(){
  setResponsePage(Output.class);
  }
   });
   item.add(repeatingView);
   }
}; add(dataView);}}
  
Output I got for the above code change is


Name Id
sam
ram

No Id value is displayed.

I need your help on making code changes to display the id as link. Kindly
help me what are the things i need to update.
Thanks,
Kumar


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Link-in-repeaters-tp4666176.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




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



Re: Link in repeaters

2014-06-10 Thread Mihir Chhaya
Would simple String concatenation not work here for you?

-Mihir.


On Tue, Jun 10, 2014 at 12:02 PM, kumar ramanathan  wrote:

> Hi Friends ,
> I have successfully generated the view using repeaters using the following
> code.
>
> HTML:
> 
>
>
> NameId
>
>
>
>
>
> 
>
> HelloWorld.java
> public HelloWorld(){
> List list = new  ArrayList();
> list.add(new Persons("sam","one"));
> list.add(new Persons("ram","two"));
> ListDataProvider listDataProvider = new
> ListDataProvider(list);
> DataView dataView = new DataView("rows",
> listDataProvider) {
> @Override protected void populateItem(Item item)
> {
>   Persons person = item.getModelObject();
>   RepeatingView repeatingView = new
> RepeatingView("dataRow");
>   repeatingView.add(new Label(repeatingView.newChildId(),
> person.getName()));
>   repeatingView.add(new Label(
> repeatingView.newChildId(),person.getId()));
>   item.add(repeatingView);
>  }
> };
> add(dataView);
>  }
> Ouput I got :
>
> Name Id
> sam one(not link)
> ram  two(not link)
>
> Now I have tried to display the above ouput as below with link
>
> Name Id
> sam one(link)
> ram  two(link)
>
>
> For this ouput i have altered the code in helloword.java as below
>
>
> DataView dataView = new DataView("rows",
> listDataProvider){
>  protected void populateItem(Item item){
>   Persons person = item.getModelObject();
>   RepeatingView repeatingView = new RepeatingView("dataRow");
>   repeatingView.add(new Label(repeatingView.newChildId(),
> person.getName()));
>   repeatingView.add(new Link(person.getId()){
>  public void onClick(){
>  setResponsePage(Output.class);
>  }
>   });
>   item.add(repeatingView);
>   }
> }; add(dataView);}}
>
> Output I got for the above code change is
>
> Name Id
> sam
> ram
>
> No Id value is displayed.
>
> I need your help on making code changes to display the id as link. Kindly
> help me what are the things i need to update.
> Thanks,
> Kumar
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Link-in-repeaters-tp4666176.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
>
>


Link in repeaters

2014-06-10 Thread kumar ramanathan
Hi Friends ,
I have successfully generated the view using repeaters using the following
code.

HTML:



NameId 







HelloWorld.java
public HelloWorld(){
List list = new  ArrayList();
list.add(new Persons("sam","one"));
list.add(new Persons("ram","two"));
ListDataProvider listDataProvider = new
ListDataProvider(list);
DataView dataView = new DataView("rows",
listDataProvider) {
@Override protected void populateItem(Item item) 
{ 
  Persons person = item.getModelObject();
  RepeatingView repeatingView = new RepeatingView("dataRow");
  repeatingView.add(new Label(repeatingView.newChildId(),
person.getName()));
  repeatingView.add(new Label(
repeatingView.newChildId(),person.getId()));
  item.add(repeatingView); 
 }
}; 
add(dataView);
 }
Ouput I got :

Name Id
sam one(not link)
ram  two(not link)

Now I have tried to display the above ouput as below with link

Name Id
sam one(link)
ram  two(link)


For this ouput i have altered the code in helloword.java as below 


DataView dataView = new DataView("rows",
listDataProvider){
 protected void populateItem(Item item){
  Persons person = item.getModelObject();
  RepeatingView repeatingView = new RepeatingView("dataRow");
  repeatingView.add(new Label(repeatingView.newChildId(),
person.getName()));
  repeatingView.add(new Link(person.getId()){
 public void onClick(){
 setResponsePage(Output.class);
 }
  });
  item.add(repeatingView);
  }
}; add(dataView);}}
 
Output I got for the above code change is

Name Id
sam
ram  

No Id value is displayed.

I need your help on making code changes to display the id as link. Kindly
help me what are the things i need to update.
Thanks,
Kumar


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Link-in-repeaters-tp4666176.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



Implementing a SecureForm to avoid CSRF attacks

2014-06-10 Thread shayy
I'm trying to implement a SecureForm (extends Form) which dynamically adds a
hidden field to prevent CSRF attacks as described here:
http://apache-wicket.1842946.n4.nabble.com/Security-Features-offered-by-Wicket-td1861659.html

My problem is that my form contains a panel with tabs, each tab refreshes
the Form class through ajax but the HTML stays the same.
The result is that when I try to enter the first tab, click on the second
tab and try to post it I'm getting invalid tockens since the second tab HTML
has the first token but it's Form class already instantiated a new CSRF
token.

Anyone have an idea how i can replace the injected HTML from the
onComponentTagBody.
I'd like to try and use this approach (token field in the SecureForm class)
instead of just putting the token inside the session.

Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Implementing-a-SecureForm-to-avoid-CSRF-attacks-tp4666175.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: org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException when provider data for DataTable changes before paging (Wicket 6.x up to and including 6.15.0)

2014-06-10 Thread Sven Meier
>12:26:02,310 WARN [org.apache.wicket.RequestListenerInterface] 
(http--0.0.0.0-8203-2) behavior not enabled; ignore call.
>Behavior 
org.apache.wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigationIncrementLink$1@609bfc99 
at component


It seems the link is already disabled when you click on it.

Which component do you update via Ajax after deleting the row? It seems 
the browser isn't showing the latest state of the table.


Regards
Sven


On 06/10/2014 10:07 AM, Oddgeir Bell wrote:

Hello,

I have a 
org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable 
with a 
org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider.

The dataprovider gets data from a database-table.
We add an AjaxNavigationToolbar to the datatable.

Everything works fine, most of the time, BUT there is one case where a 
problem arises:
We have set rowsPerPage to 20, and we have 21 rows in the 
database-table. If we show the initial datatable, delete one row from 
the database, and then try to go to the next page (which now doesn't 
exist, since we have 20 rows per page and 20 rows), we get an 
exception (instead of what I would assume: stay on the 1st page and 
remove the navigation-buttons):
12:26:02,310 WARN  [org.apache.wicket.RequestListenerInterface] 
(http--0.0.0.0-8203-2) behavior not enabled; ignore call. Behavior 
org.apache.wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigationIncrementLink$1@609bfc99 
at component [AjaxPagingNavigationIncrementLink [Component id = next]]
12:26:02,312 WARN  [RequestCycleExtra] (http--0.0.0.0-8203-2) 

12:26:02,313 WARN  [RequestCycleExtra] (http--0.0.0.0-8203-2) Handling 
the following exception: 
org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException: 
Behavior rejected interface invocation. Component: 
[AjaxPagingNavigationIncrementLink [Component id = next]] Behavior: 
org.apache.wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigationIncrementLink$1@609bfc99 
Listener: [RequestListenerInterface name=IBehaviorListener, 
method=public abstract void 
org.apache.wicket.behavior.IBehaviorListener.onRequest()]
at 
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:237) 
[wicket-core-6.9.0.jar:6.9.0]
at 
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:247) 
[wicket-core-6.9.0.jar:6.9.0]
at 
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:226) 
[wicket-core-6.9.0.jar:6.9.0]
at 
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:861) 
[wicket-core-6.9.0.jar:6.9.0]
at 
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) 
[wicket-request-6.9.0.jar:6.9.0]
at 
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261) 
[wicket-core-6.9.0.jar:6.9.0]
at 
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218) 
[wicket-core-6.9.0.jar:6.9.0]
at 
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289) 
[wicket-core-6.9.0.jar:6.9.0]
at 
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259) 
[wicket-core-6.9.0.jar:6.9.0]
at 
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201) 
[wicket-core-6.9.0.jar:6.9.0]
at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282) 
[wicket-core-6.9.0.jar:6.9.0]
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) 
[jbossweb-7.0.13.Final.jar:]
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) 
[jbossweb-7.0.13.Final.jar:]
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) 
[jbossweb-7.0.13.Final.jar:]
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) 
[jbossweb-7.0.13.Final.jar:]
at 
org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) 
[jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
at 
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) 
[jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) 
[jbossweb-7.0.13.Final.jar:]
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 
[jbossweb-7.0.13.Final.jar:]
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 
[jbossweb-7.0.13.Final.jar:]
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) 
[jbossweb-7.0.13.Final.jar:]
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) 
[jbossweb-7.0.13.Final.jar:

org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException when provider data for DataTable changes before paging (Wicket 6.x up to and including 6.15.0)

2014-06-10 Thread Oddgeir Bell

Hello,

I have a 
org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable 
with a 
org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider.

The dataprovider gets data from a database-table.
We add an AjaxNavigationToolbar to the datatable.

Everything works fine, most of the time, BUT there is one case where a 
problem arises:
We have set rowsPerPage to 20, and we have 21 rows in the 
database-table. If we show the initial datatable, delete one row from 
the database, and then try to go to the next page (which now doesn't 
exist, since we have 20 rows per page and 20 rows), we get an exception 
(instead of what I would assume: stay on the 1st page and remove the 
navigation-buttons):
12:26:02,310 WARN  [org.apache.wicket.RequestListenerInterface] 
(http--0.0.0.0-8203-2) behavior not enabled; ignore call. Behavior 
org.apache.wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigationIncrementLink$1@609bfc99 
at component [AjaxPagingNavigationIncrementLink [Component id = next]]
12:26:02,312 WARN  [RequestCycleExtra] (http--0.0.0.0-8203-2) 

12:26:02,313 WARN  [RequestCycleExtra] (http--0.0.0.0-8203-2) Handling 
the following exception: 
org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException: 
Behavior rejected interface invocation. Component: 
[AjaxPagingNavigationIncrementLink [Component id = next]] Behavior: 
org.apache.wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigationIncrementLink$1@609bfc99 
Listener: [RequestListenerInterface name=IBehaviorListener, 
method=public abstract void 
org.apache.wicket.behavior.IBehaviorListener.onRequest()]
at 
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:237) 
[wicket-core-6.9.0.jar:6.9.0]
at 
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:247) 
[wicket-core-6.9.0.jar:6.9.0]
at 
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:226) 
[wicket-core-6.9.0.jar:6.9.0]
at 
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:861) 
[wicket-core-6.9.0.jar:6.9.0]
at 
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) 
[wicket-request-6.9.0.jar:6.9.0]
at 
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261) 
[wicket-core-6.9.0.jar:6.9.0]
at 
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218) 
[wicket-core-6.9.0.jar:6.9.0]
at 
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289) 
[wicket-core-6.9.0.jar:6.9.0]
at 
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259) 
[wicket-core-6.9.0.jar:6.9.0]
at 
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201) 
[wicket-core-6.9.0.jar:6.9.0]
at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282) 
[wicket-core-6.9.0.jar:6.9.0]
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) 
[jbossweb-7.0.13.Final.jar:]
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) 
[jbossweb-7.0.13.Final.jar:]
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) 
[jbossweb-7.0.13.Final.jar:]
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) 
[jbossweb-7.0.13.Final.jar:]
at 
org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) 
[jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
at 
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) 
[jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) 
[jbossweb-7.0.13.Final.jar:]
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 
[jbossweb-7.0.13.Final.jar:]
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 
[jbossweb-7.0.13.Final.jar:]
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) 
[jbossweb-7.0.13.Final.jar:]
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) 
[jbossweb-7.0.13.Final.jar:]
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) 
[jbossweb-7.0.13.Final.jar:]
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) 
[jbossweb-7.0.13.Final.jar:]

at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_51]

Have I done something wrong, or is this expected behavior?
We mostly ignore this, since it's very rare for it to happen, but if 
possible we would like to avoid it happening at all


ki

Ajax Form Submit via jquery plugin / javascript

2014-06-10 Thread Vishal Popat
Hi,

I am using a jquery steps plugin which has the ability to change options.
One of the options I have is:
onFinished: function (event, currentIndex) {
var form = document.forms["selectionForm"];
form.submit();
},

The javascript above submits the associated form. However I would like to 
submit the form via ajax. Normally I would use an AjaxButton for ajax 
processing but in this case I need something else. I have tried

selectionForm.add(new AjaxFormSubmitBehavior(selectionForm, "onsubmit") {
@Override
protected void onSubmit(AjaxRequestTarget target) {
log.debug("*** ajax form submit");
}
}

but this does not seem to work as the debug does not get outputted.
Additionally, the onSubmit Form version is called. Is there a way to stop this?

Let me know if should be using something else instead.

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



Re: Help request regarding simple DefaultNestedTree implementation

2014-06-10 Thread denethon
The solution was to disable page specific styling of fonts. Seems that using
a different font (inherited from master page) was causing the B folder to
appear as shifted to the right. When using font-family:inherit, this visual
presentation is now correct.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Help-request-regarding-simple-DefaultNestedTree-implementation-tp4666163p4666168.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