Re: adding wicket generated link to javascript

2014-09-04 Thread Martin Grigorov
Hi,

On Wed, Sep 3, 2014 at 11:15 PM, Jason Novotny jason.novo...@gmail.com
wrote:

 Hi,

 My designer gave me code where HTML is created in javascript as part of a
 jquery dataTable:

 script
 $(document).ready(function() {
 $('#datatable').dataTable( {
 
 $('.clientinvoices .dropholder').html('div class=opener/div*button
 class=btn type=resetCancel Order/button*');
 ..
 /script


 And I need that button to be a wicket button, is there a way to pass it a
 generated link, etc? What would be the best way to deal with this?


One way is to generate this code with Wicket and make it invisible
(display: none). Then the JS code should just make it visible
(jQuery.show()).

Another way is, as Pierre explained, to use Ajax behavior. In some
#renderHead() method do:
response.render(OnDomReadyHeaderItem.forScript(window.resetUrl =
'+ajaxBehavior.getCallbackUrl()+';))

Later in the JS code you can use jQuery#ajax() or Wicket.Ajax.get() and
make use of window.resetUrl as an endpoint.



 Thanks, Jason




Re: wicket atmosphere not updating the page

2014-09-04 Thread Martin Grigorov
Hi,


On Wed, Sep 3, 2014 at 10:24 PM, fachhoch fachh...@gmail.com wrote:

 I am  trying to use wicket-atmosphere (0.18) in wicket 6.12.0, on post,
 subscribe method is getting called but any component I add to target is not
 updating  in  the page, ajax debug window  shows empty ajax-response, and
 browser  console has this error.


 wicket/bookmarkable/resource/org.apache.wic…bstractDefaultAjaxBehavior/res/js/wicket-event-jquery-ver-1409764822476.js


The url is wrong. It should not have the bookmarkable segment in it. Not
sure how it got there.
If your can reproduce it in a quickstart app with latest Wicket (6.17.0)
then please attach it to a ticket in JIRA.


 404 (Not Found)

 Please advice.



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/wicket-atmosphere-not-updating-the-page-tp4667321.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: wicket atmosphere not updating the page

2014-09-04 Thread fachhoch
I have  quickstart with 6.12.0  could not reproduce there, I also tried
setResponsePage instead of adding component to target  in the subscribe
method, noticed the same 'bookmarkable' in the url   ending up with resource
not found page.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-atmosphere-not-updating-the-page-tp4667321p4667341.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: wicket atmosphere not updating the page

2014-09-04 Thread Martin Grigorov
/wicket/bookmarkable/com.example.MyPage is generated for pages without
explicit mount path (e.g. MyApp#mountPage(somewhere, MyPage.class))
/wicket/resource/com.example.SomeScope/some.css is generated for package
resource references without explicit mount point, e.g. MyApp#mountResource

but /wicket/bookmarkable/resource/... is broken url

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Thu, Sep 4, 2014 at 3:47 PM, fachhoch fachh...@gmail.com wrote:

 I have  quickstart with 6.12.0  could not reproduce there, I also tried
 setResponsePage instead of adding component to target  in the subscribe
 method, noticed the same 'bookmarkable' in the url   ending up with
 resource
 not found page.


 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/wicket-atmosphere-not-updating-the-page-tp4667321p4667341.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




[ANNOUNCE] WicketStuff 6.17.0 and 7.0.0.-M3 are released

2014-09-04 Thread Martin Grigorov
Hi,

WicketStuff core 6.17.0/7.0.0-M3 based on Apache Wicket 6.17.0/7.0.0-M3 are
released and soon will be available in Maven Central.

*6.17.0*

The changelog for 6.17.0 release is:

Hannes Dohrn (1):
  [async-tasks-impl] Adding refreshBehavior in ProgressButton ctor if
task container already running

Jered Myers (1):
  [lightbox2] Updated to the latest version of lightbox2 from
http://lokeshdhakar.com/projects/lightbox2/.  Removed unused that were
from earlier versions.

Martin Tzvetanov Grigorov (24):
  [parent] Build against Wicket 6.17.0-SNAPSHOT
  [annotation] Fixes #317 - Use HomePageMapper for mount path /
  [openlayers] Add SphericalMercatorLonLat
  [scala] Upgrade ScalaTest and scala-maven-plugin
  [inmethod-grid] Fixes #333 - Reintroduce SizeUnit#PERCENT
  [datatables] Fixes #336 - Upgrade DataTables to 1.10.2
  [openlayers] Remove a wrongly cherry-picked file from master
  [datatables] Add basic support for Bootstrap theme
  [datatables] Add support for sorting (
https://datatables.net/examples/basic_init/table_sorting.html)
  [datatables] Add an example of multi column ordering
  [datatables] Extract the Person related classes to outer classes
  [datatables] Use released version of jquery-selectors
  [datatables] Extract DataTablesBehavior
  [datatables] Add support for colspan (
https://datatables.net/examples/basic_init/complex_header.html)
  [datatables] Add support for state saving
  [datatables] Add support for alternative pagination (
https://datatables.net/examples/basic_init/alt_pagination.html)
  [datatables] Add support for scrollY, scrollCollapse and to disable
paging
  [datatables] Add support for scrollX (
https://datatables.net/examples/basic_init/scroll_x.html)
  [datatables] Add an option for rowCallback
  [datatables] Add a demo how to select a row with jQuery
  [datatables] Add an option for deferLoading
  [datatables] Add support for createdRow
  [datatables] Add support for lengthMenu option
  Set versions to 6.17.0

Maxim Solodovnik (3):
  [whiteboard] Wb js code is better organized, exceptions are fixed
  [whiteboard] variable for WB callbackURL is added to wb.js

Peter Henderson (1):
  [scala] Enhanced Fodel, added companion object which has nice apply
methods so Fodel can be used without 'new'

cmiles74 (44):
  [openlayers3] Incremented OpenLayers version.
  [openlayers3] Added transparent transformation to points.
  [openlayers3] Altered the default center for new OpenLayerMap
instances.
  [openlayers3] Updated examples.
  [openlayers3] Added comments, cleaned up imports.
  [openlayers3] Updated Wicket AJAX calls.
  [openlayers3] Altered test to compare contents of the JSON object.
  [openlayers3] Completed first pass at OpenLayers3 support.
  [openlayers3] Started work on OpenLayers3 examples.
  [openlayers3] Added a simple map example.
  [openlayers3] Added the simple map page.
  [openlayers3] Added jrebel.xml to the ignore list.
  [openlayers3] Worked on the examples.
  [openlayers3] Removed erroneously committed file
  [openlayers3] Moved the OpenLayers3 README file
  [openlayers3] Removed dependency on java.awt.Color
  [openlayers3] Minor fixes and code cleanup
  [openlayers3] Fixed bugs in the Color class.
  [openlayers3] Removed extra import.
  [openlayers3] Altered the Color class to implement serializable.
  [openlayers3] Altered the escaping of String in HTML content.
  [openlayers3] Added code to escape ' before JS output.
  [openlayers3] Removed HTML escaping of popover titles.
  [openlayers3] More code cleanup and minor changes
  [openlayers3] Added a listener for vector features
  [openlayers3] Altered to prevent unnecessary callbacks
  [openlayers3] Added a listener behavior for view changes.
  [openlayers3] Added files missing from last commit.
  [openlayers3] Added a listener that provides feature in extent data.
  [openlayers3] Merge branch 'wicket-6.x' of
https://github.com/wicketstuff/core into wicket-6.x
  [openlayers3] Added a new page to demo WFS functionality.
  [openlayers3] More work on the demo page.
  [openlayers3] Increased the size of form content.
  [openlayers3] Worked on clustering.
  [openlayers3] Fixed typo in the gitignore file.
  [openlayers3] Added links from examples to Java code
  [openlayers3] Added click handler to clustering example
  [openlayers3] Added Travis CI profile
  [openlayers3] Travis CI doesn't support Oracle JDK 6
  [openlayers3] Fixed a couple minor issues.
  [openlayers3] Optimized imports for the project
  [openlayers3] Added demo link to the README
  [openlayers3] Merge branch 'wicket-6.x' of
https://github.com/wicketstuff/core into wicket-6.x
  [openlayers3] Fixed issues with example pages

cosmin-lazar (1):
  

Re: wicket atmosphere not updating the page

2014-09-04 Thread fachhoch
I tried some tests ,
1. redirect to a different page, using setResponsePage   works fine.
2. redirect to same  page, ends with resource not found page, reason(it
stripping servlet-mapping str)

servlet mapping  configration



atmosphere changes url to  http://localhost:8080/artms/test   from
http://localhost:8080/artms/app/test   


3.  update same page  with ajax response  (missing wicket prefix for the
resource url)


 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-atmosphere-not-updating-the-page-tp4667321p4667347.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: wicket atmosphere not updating the page

2014-09-04 Thread fachhoch
log output from my app and quickstart, my app does not work quick start works

my app

quickstarts


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-atmosphere-not-updating-the-page-tp4667321p4667348.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: wicket atmosphere not updating the page

2014-09-04 Thread fachhoch
logs from my app and quick start

my app


quick start


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-atmosphere-not-updating-the-page-tp4667321p4667349.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: wicket atmosphere not updating the page

2014-09-04 Thread fachhoch
I am able reproduce this issue in a quickstart,   The issue happens in
bookmarkable pages, any bookmarkable page, response to atmosphere request
fails.

below is the error from   browser console. Attached the quickstart.zip 
myproject.zip
http://apache-wicket.1842946.n4.nabble.com/file/n4667350/myproject.zip  

response.responseBody: ?xml version=1.0
encoding=UTF-8?ajax-responsecomponent id=mw3
/componentheader-contribution encoding=wicket1
/header-contributionevaluate/evaluate/ajax-response
jquery.atmosphere-ver-1409156999263.js:2799
GET
http://localhost:8081/myproject/app/wicket/bookmarkable/resource/org.apache…resource.JQueryResourceReference/jquery/jquery-1.10.1-ver-1409764822476.js
404 (Not Found) wicket-ajax-jquery-ver-1409764822476.js:2167
jQuery.extend.Head.addElement wicket-ajax-jquery-ver-1409764822476.js:2167
(anonymous function) wicket-ajax-jquery-ver-1409764822476.js:2114
run wicket-ajax-jquery-ver-1409764822476.js:125
proxy jquery-1.10.1-ver-1409764822476.js:827
processNext wicket-ajax-jquery-ver-1409764822476.js:140
start wicket-ajax-jquery-ver-1409764822476.js:146
Wicket.Ajax.Call.process wicket-ajax-jquery-ver-1409764822476.js:673
jQuery.extend.Ajax.process wicket-ajax-jquery-ver-1409764822476.js:1854
callback jquery.wicketatmosphere-ver-1409156999263.js:31
_invokeCallback.call jquery.atmosphere-ver-1409156999263.js:2405
jQuery.extend.each jquery-1.10.1-ver-1409764822476.js:657
_invokeCallback jquery.atmosphere-ver-1409156999263.js:2440
_executeWebSocket._websocket.onmessage


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-atmosphere-not-updating-the-page-tp4667321p4667350.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: wicket atmosphere not updating the page

2014-09-04 Thread Martin Grigorov
Hi,

I am on my phone now so I can't check your quickstart but I remember a
problem with bookmarkable pages fixed in 6.13.0
On Sep 4, 2014 10:45 PM, fachhoch fachh...@gmail.com wrote:

 I am able reproduce this issue in a quickstart,   The issue happens in
 bookmarkable pages, any bookmarkable page, response to atmosphere request
 fails.

 below is the error from   browser console. Attached the quickstart.zip
 myproject.zip
 http://apache-wicket.1842946.n4.nabble.com/file/n4667350/myproject.zip

 response.responseBody: ?xml version=1.0
 encoding=UTF-8?ajax-responsecomponent id=mw3
 /componentheader-contribution encoding=wicket1
 /header-contributionevaluate/evaluate/ajax-response
 jquery.atmosphere-ver-1409156999263.js:2799
 GET
 http://localhost:8081/myproject/app/wicket/bookmarkable/resource/org.apache
 …resource.JQueryResourceReference/jquery/jquery-1.10.1-ver-1409764822476.js
 404 (Not Found) wicket-ajax-jquery-ver-1409764822476.js:2167
 jQuery.extend.Head.addElement wicket-ajax-jquery-ver-1409764822476.js:2167
 (anonymous function) wicket-ajax-jquery-ver-1409764822476.js:2114
 run wicket-ajax-jquery-ver-1409764822476.js:125
 proxy jquery-1.10.1-ver-1409764822476.js:827
 processNext wicket-ajax-jquery-ver-1409764822476.js:140
 start wicket-ajax-jquery-ver-1409764822476.js:146
 Wicket.Ajax.Call.process wicket-ajax-jquery-ver-1409764822476.js:673
 jQuery.extend.Ajax.process wicket-ajax-jquery-ver-1409764822476.js:1854
 callback jquery.wicketatmosphere-ver-1409156999263.js:31
 _invokeCallback.call jquery.atmosphere-ver-1409156999263.js:2405
 jQuery.extend.each jquery-1.10.1-ver-1409764822476.js:657
 _invokeCallback jquery.atmosphere-ver-1409156999263.js:2440
 _executeWebSocket._websocket.onmessage


 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/wicket-atmosphere-not-updating-the-page-tp4667321p4667350.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