Wicket-rest sample

2014-04-24 Thread Noven
Hi...

Does anyone here have running example with wicket rest that explain using web 
services between 2 application ? 

If yes, please share..

Thank you.

Re: Wicket-rest sample

2014-04-24 Thread Martin Grigorov
Hi,

Please explain better what you want to achieve.

Martin Grigorov
Wicket Training and Consulting


On Thu, Apr 24, 2014 at 10:34 AM, Noven noven_...@yahoo.com wrote:

 Hi...

 Does anyone here have running example with wicket rest that explain using
 web services between 2 application ?

 If yes, please share..

 Thank you.


Wicket Message Dialog Behavior, close on click

2014-04-24 Thread Neha
Hi,

I am using wicket message dialog box, which is a jquery ui widget dialog.

I want to close the dialog box , when user clicks on confirm
 button. Even if the operation takes time, the dialog box must close.

When I press Cancel dialog box closes immedialtely, but when I click
confirm, and the operation takes longer , then the dialog box is still
open. I don't want this behanvior, 

I am doing something like this:

final MessageDialogAjaxBehavior confirmDialog = new
MessageDialogAjaxBehavior(confirmDialog, Model.of(Warning), message,
DialogButtons.YES_NO, DialogIcon.WARN) {


 @Override
public void onClose(AjaxRequestTarget target, DialogButton button) {
 String js2 = this.getMarkupId() + .dialog('close'); 

target.appendJavaScript(js2);
 

if (button != null  YES.equalsIgnoreCase(button.toString())) 

labTestTypeService.delete(labTestTemplateType.getState(), EnoviaId.create)

target.add(container);
}

}

};



I created MessageDialogAjaxBehavior as below to add indicator appender:
public class MessageDialogAjaxBehavior extends MessageDialog implements
IAjaxIndicatorAware {

private static final long serialVersionUID = 1L;
private final AjaxIndicatorAppender indicatorAppender = new
AjaxIndicatorAppender();
DialogButtons buttons;

public MessageDialogAjaxBehavior(String id, IModelString title,
IModelString message, DialogButtons buttons, DialogIcon icon) {

super(id, title, message, buttons, icon);
this.buttons = buttons;
this.add(indicatorAppender);
}

@Override
public String getAjaxIndicatorMarkupId() {
return indicatorAppender.getMarkupId();
}

@Override
public void onClose(AjaxRequestTarget target, DialogButton button) {

}

@Override
public void onClick(AjaxRequestTarget target, DialogButton button) {

super.onClick(target, button);

}

But , this doesn't close the dialog box, til opertation is complete.

Kindly help


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Message-Dialog-Behavior-close-on-click-tp4665557.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-rest sample

2014-04-24 Thread Noven
Hi Martin,

I am learning about wicket rest today. But I still confuse about how to serve 
the web service and to consume it. The goal is to have 2 wicket application 
that serve and consume the service. 

If someone here is ever do this, I hope to see the code :)

Regards,
Noven
On Thursday, April 24, 2014 4:23 PM, Martin Grigorov mgrigo...@apache.org 
wrote:
 
Hi,

Please explain better what you want to achieve.

Martin Grigorov
Wicket Training and Consulting



On Thu, Apr 24, 2014 at 10:34 AM, Noven noven_...@yahoo.com wrote:

 Hi...

 Does anyone here have running example with wicket rest that explain using
 web services between 2 application ?

 If yes, please share..

 Thank you.

Wicket extensions - Data table component tag check

2014-04-24 Thread Timo Schmidt
Hi all,

with the release of Wicket 6.15.0 I have discovered the
following issue. The changes stated in WICKET-5534 has broken
my main application. Since I'm providing an own markup file for
my data table implementation to provide a scrollable table body
with a fixed header, the component tag check for the »table«
tag results in a MarkupException as I'm using a »div« tag as
surrounding HTML element.

As onComponentTag() should call super I'm not able to override
and thus bypass the check.

What would be a propper solution as a rewrite from »div« to
»table« in the markup file is not feasible.


  -Timo

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



Re: Wicket extensions - Data table component tag check

2014-04-24 Thread Martin Grigorov
Hi,

You can workaround it with something like:

@Override
public void onComponentTag(ComponentTag tag) {
  tag.setName(table);
  super.onComponentTag(tag);
  tag.setName(div);
  ...
}

How exactly do you use this custom datatable ?
We added the check because some users don't know very well HTML and tried
to use invalid HTML with the default DataTable component.

Martin Grigorov
Wicket Training and Consulting


On Thu, Apr 24, 2014 at 8:33 PM, Timo Schmidt wic...@xomit.de wrote:

 Hi all,

 with the release of Wicket 6.15.0 I have discovered the
 following issue. The changes stated in WICKET-5534 has broken
 my main application. Since I'm providing an own markup file for
 my data table implementation to provide a scrollable table body
 with a fixed header, the component tag check for the »table«
 tag results in a MarkupException as I'm using a »div« tag as
 surrounding HTML element.

 As onComponentTag() should call super I'm not able to override
 and thus bypass the check.

 What would be a propper solution as a rewrite from »div« to
 »table« in the markup file is not feasible.


   -Timo

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




Re: Wicket-rest sample

2014-04-24 Thread Martin Grigorov
Hi,

Both
https://github.com/wicketstuff/core/blob/master/jdk-1.7-parent/wicketstuff-restannotations-parent/readme.mdand
http://wicket.apache.org/guide/guide/wicketstuff.html#wicketstuff_6 provide
a lot of information how to setup the service.
https://github.com/wicketstuff/core/tree/master/jdk-1.7-parent/wicketstuff-restannotations-parent/restannotations-examplesis
a demo application.

You can use any client library to consume the service, e.g.
https://github.com/square/retrofit.

Martin Grigorov
Wicket Training and Consulting


On Thu, Apr 24, 2014 at 7:10 PM, Noven noven_...@yahoo.com wrote:

 Hi Martin,

 I am learning about wicket rest today. But I still confuse about how to
 serve the web service and to consume it. The goal is to have 2 wicket
 application that serve and consume the service.

 If someone here is ever do this, I hope to see the code :)

 Regards,
 Noven
 On Thursday, April 24, 2014 4:23 PM, Martin Grigorov mgrigo...@apache.org
 wrote:

 Hi,

 Please explain better what you want to achieve.

 Martin Grigorov
 Wicket Training and Consulting



 On Thu, Apr 24, 2014 at 10:34 AM, Noven noven_...@yahoo.com wrote:

  Hi...
 
  Does anyone here have running example with wicket rest that explain using
  web services between 2 application ?
 
  If yes, please share..
 
  Thank you.



Re: Wicket Message Dialog Behavior, close on click

2014-04-24 Thread Martin Grigorov
Hi,

#onClose() is executed only when the Ajax request is processed at the
server side.
The JavaScript created with String js2 = this.getMarkupId() +
.dialog('close'); target.appendJavaScript(js2);  will be executed when
the Ajax response is processed in the browser.

To close the dialog immediately you need to use 'onBeforeSend' JavaScript
callback.
See
https://github.com/martin-g/blogs/blob/master/wicket6-ajax-demo/src/main/java/com/wicketinaction/HandlebarsButton.java#L104for
a demo of 'before' callback.
Read also http://wicket.apache.org/guide/guide/ajax.html#ajax_5 for more
info.

Martin Grigorov
Wicket Training and Consulting


On Wed, Apr 23, 2014 at 11:32 PM, Neha puneet.meio...@gmail.com wrote:

 Hi,

 I am using wicket message dialog box, which is a jquery ui widget dialog.

 I want to close the dialog box , when user clicks on confirm
  button. Even if the operation takes time, the dialog box must close.

 When I press Cancel dialog box closes immedialtely, but when I click
 confirm, and the operation takes longer , then the dialog box is still
 open. I don't want this behanvior,

 I am doing something like this:

 final MessageDialogAjaxBehavior confirmDialog = new
 MessageDialogAjaxBehavior(confirmDialog, Model.of(Warning), message,
 DialogButtons.YES_NO, DialogIcon.WARN) {


  @Override
 public void onClose(AjaxRequestTarget target, DialogButton button) {
  String js2 = this.getMarkupId() + .dialog('close');

 target.appendJavaScript(js2);


 if (button != null  YES.equalsIgnoreCase(button.toString()))

 labTestTypeService.delete(labTestTemplateType.getState(), EnoviaId.create)

 target.add(container);
 }

 }

 };



 I created MessageDialogAjaxBehavior as below to add indicator appender:
 public class MessageDialogAjaxBehavior extends MessageDialog implements
 IAjaxIndicatorAware {

 private static final long serialVersionUID = 1L;
 private final AjaxIndicatorAppender indicatorAppender = new
 AjaxIndicatorAppender();
 DialogButtons buttons;

 public MessageDialogAjaxBehavior(String id, IModelString title,
 IModelString message, DialogButtons buttons, DialogIcon icon) {

 super(id, title, message, buttons, icon);
 this.buttons = buttons;
 this.add(indicatorAppender);
 }

 @Override
 public String getAjaxIndicatorMarkupId() {
 return indicatorAppender.getMarkupId();
 }

 @Override
 public void onClose(AjaxRequestTarget target, DialogButton button) {

 }

 @Override
 public void onClick(AjaxRequestTarget target, DialogButton button) {

 super.onClick(target, button);

 }

 But , this doesn't close the dialog box, til opertation is complete.

 Kindly help


 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Wicket-Message-Dialog-Behavior-close-on-click-tp4665557.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.15.0 is released

2014-04-24 Thread Martin Grigorov
Hi,

WicketStuff core 6.15.0 based on Apache Wicket 6.15.0 is released and is
available in Maven Central.

The changelog for this release is:

bitstorm (7):
  [tinymce] Removed workaround for WICKET-5248
  [tinymce] Fixed TinyMCE 3 behavior to work inside modal window
  [restannotations] Added mounting annotation and package scanner
  [restannotations] Packagew name fixing
  [restannotations] added test MountingAnnotationTest
  [restannotations] Package name fixing to port back resource mounting
  tinymce] improved InPlaceEditComponent constructors

John Sarman (6):
  [servlet3-security] Add support for servlet 3.0 security integrated
with wicket-auth-roles
  [servlet3-security] Updated code per remarks on the Pull Request
  [servlet3-security] Removed wicket-mount-runtime.
  [servlet3-security] Code cleanup and fixes to license header
  [servlet3-security] Add files for deployment for other servlet
containers
  [servlet3-security] Updated link in example to wicketstuff main wiki.

Piet Kromhout (6):
  [gmap3] Added the ability to specify a min and max zoom level on the
GMap.
  [gmap3] Fixed code formatting of zoom limit changes.
  [gmap3] Reverted examples pom.xml back to it's original state, as it
was accidentally committed on the zoom limit changes.
  [gmap3] Adjusted code formatting for the zoom limit changes.
  [gmap3] Adjusted code formatting for the zoom limit changes.
  [gmap3] Added a check for min and max zoom levels that are  0.

svenmeier (5):
  [lazy-model] reuse method to detect model type
  [lazy-model] #toString() must never fail
  [lazy-model] special handling of Serializable target type produced by
Mockito - use getObject().getClass() as fallback
  [lazy-model] generalized previous commit: if target type is just a
class, use the target object's class to improve the detected class
  [lazy-model] corrected exception message for missing getter

Martin Grigorov (3):
  Merge pull request #290 from PKromhout/master
  Merge pull request #291 from jsarman/master
  Merge pull request #293 from jsarman/master

Andrea Del Bene (2):
  Update readme.md
  Update readme.md

Martin Tzvetanov Grigorov (2):
  Use Wicket 6.15.0-SNAPSHOT
  Release 6.15.0


The WicketStuff team