How to compare and show differences of two xml files in wicket

2012-10-26 Thread venkat
Hi ,

In my application, i have a scenario where I need to compare data of sql
server tables from two environemnts and show the differences in side by side
panels. 

I am using SQL server For XML () to convert the sql table data in to XML
files and want to compare these two XMLs and show the differences in wicket
component. 

Could any one please share theier thughts and experiences , implementing xml
comparison or data comparison tools in wicket. 

Would appreciate a quick response.

Thanks
Venkat



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-compare-and-show-differences-of-two-xml-files-in-wicket-tp4653360.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



Multiple Wicket:Child Tag Support

2012-10-26 Thread Kapil Dhawan
Hi List,

I have tried finding answer to Multiple Wicket:Child Tag Support in archives 
but could not find anything conclusive.

Could you please confirm if Wicket is supporting it.

Thanks  Regards
Kapil Dhawan



Re: Multiple Wicket:Child Tag Support

2012-10-26 Thread Martin Grigorov
Hi,

On Fri, Oct 26, 2012 at 9:37 AM, Kapil Dhawan
kapil.dha...@tecnotree.com wrote:
 Hi List,

 I have tried finding answer to Multiple Wicket:Child Tag Support in archives 
 but could not find anything conclusive.

 Could you please confirm if Wicket is supporting it.

No, this is not supported.
The recommended way is to use composition instead of inheritance, i.e.
use Panels.


 Thanks  Regards
 Kapil Dhawan




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



RE: Multiple Wicket:Child Tag Support

2012-10-26 Thread Ronny.Voss
To my best knowledge.

Not supported directly - with multiple child/extend tags. You need using a 
design approach to achieve same - try search HOWTO header/header samples or 
look at possibilities using Fragment.

Best regards
Ronny

-Original Message-
From: Kapil Dhawan [mailto:kapil.dha...@tecnotree.com] 
Sent: 26 October 2012 08:37
To: 'users@wicket.apache.org'
Subject: Multiple Wicket:Child Tag Support

Hi List,

I have tried finding answer to Multiple Wicket:Child Tag Support in archives 
but could not find anything conclusive.

Could you please confirm if Wicket is supporting it.

Thanks  Regards
Kapil Dhawan


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



Re: Load table rows lazy when click browser scrollbar

2012-10-26 Thread vineet semwal
hi,
quickview's immediate parent can have only one child and that can only be
quickview.i have mentioned this issue in the below link
https://github.com/vineetsemwal/quickview/issues/3

this limitation is only for the immediate parent .

On Fri, Oct 26, 2012 at 10:32 AM, steven.li
steven...@skyworthglobal.com wrote:
 http://apache-wicket.1842946.n4.nabble.com/file/n4653359/Untitled.png



 -
 Steven Li

 Skyworthglobal www.skyworthglobal.com
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Load-table-rows-lazy-when-click-browser-scrollbar-tp4652541p4653359.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,

Vineet Semwal

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



Re: javascript modal onclose event

2012-10-26 Thread Martin Grigorov
Hi,

With JavaScript it is very easy to override the default behavior by
using a technique called Monkey patching.
This way you can override the function that closes the ModalWindow
with your own one that do something first and then calls the super
implementation.

On Thu, Oct 25, 2012 at 9:01 PM, Jack Berg erki.pub...@gmail.com wrote:
 Hi,

 Is it possible to register a modal-close event listener in javascript?



 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/javascript-modal-onclose-event-tp4653353.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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



RE: Multiple Wicket:Child Tag Support

2012-10-26 Thread Kapil Dhawan
Thanks a lot Ronny.

I was trying to avoid Panels/Fragments but now will consider.

Thanks  Regards
Kapil Dhawan

-Original Message-
From: ronny.v...@consult.nordea.com [mailto:ronny.v...@consult.nordea.com] 
Sent: Friday, October 26, 2012 12:21 PM
To: users@wicket.apache.org
Subject: RE: Multiple Wicket:Child Tag Support

To my best knowledge.

Not supported directly - with multiple child/extend tags. You need using a 
design approach to achieve same - try search HOWTO header/header samples or 
look at possibilities using Fragment.

Best regards
Ronny

-Original Message-
From: Kapil Dhawan [mailto:kapil.dha...@tecnotree.com] 
Sent: 26 October 2012 08:37
To: 'users@wicket.apache.org'
Subject: Multiple Wicket:Child Tag Support

Hi List,

I have tried finding answer to Multiple Wicket:Child Tag Support in archives 
but could not find anything conclusive.

Could you please confirm if Wicket is supporting it.

Thanks  Regards
Kapil Dhawan


-
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: Multiple Wicket:Child Tag Support

2012-10-26 Thread Kapil Dhawan
Thanks Martin.

I will consider it.

Thanks  Regards
Kapil Dhawan


-Original Message-
From: Martin Grigorov [mailto:mgrigo...@apache.org] 
Sent: Friday, October 26, 2012 12:20 PM
To: users@wicket.apache.org
Subject: Re: Multiple Wicket:Child Tag Support

Hi,

On Fri, Oct 26, 2012 at 9:37 AM, Kapil Dhawan kapil.dha...@tecnotree.com 
wrote:
 Hi List,

 I have tried finding answer to Multiple Wicket:Child Tag Support in archives 
 but could not find anything conclusive.

 Could you please confirm if Wicket is supporting it.

No, this is not supported.
The recommended way is to use composition instead of inheritance, i.e.
use Panels.


 Thanks  Regards
 Kapil Dhawan




--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.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: Load table rows lazy when click browser scrollbar

2012-10-26 Thread steven.li
Yes, I can find a workround for this limit.

but met into another one, in my case, each row contains multiple, and
under   , there are label, span. seems it doesn't work well if  is wrapped by 
.

see attached zip file, If I remove the  , it works fine in IE. but failed to
reload next page if with aroound.



-
Steven Li

Skyworthglobal www.skyworthglobal.com
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Load-table-rows-lazy-when-click-browser-scrollbar-tp4652541p4653371.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: Load table rows lazy when click browser scrollbar

2012-10-26 Thread vineet semwal
that limitation i described earlier is only in the case of
Reuse.ITEMSNAVIGATION
and Reuse.ALL ie. only in the case where you want to add new items/rows
without re-rendering the parent/quickview ,anyway this is not what you
are asking.

looks like the html you posted didn't pass through in the mail and i don't see
any zip file too ,if you think there is some issue ,please create a new issue
at https://github.com/vineetsemwal/quickview and attach your quickstart
there.



On Fri, Oct 26, 2012 at 1:27 PM, steven.li steven...@skyworthglobal.com wrote:
 Yes, I can find a workround for this limit.

 but met into another one, in my case, each row contains multiple, and
 under   , there are label, span. seems it doesn't work well if  is wrapped by
 .

 see attached zip file, If I remove the  , it works fine in IE. but failed to
 reload next page if with aroound.



 -
 Steven Li

 Skyworthglobal www.skyworthglobal.com
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Load-table-rows-lazy-when-click-browser-scrollbar-tp4652541p4653371.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,

Vineet Semwal

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



Re: Ajax file manager 'CKFinder' and Wicket = 1.5.8

2012-10-26 Thread Steamus
Hi, Martin

Yesterday, I migrated to the Wicket 6.2.0 and it started working again! 

I didn’t see any messages about some javascript’s error in browser, but I
didn’t use any special tools to debug javascript.

Integration was enough easy, so there is not so much to share. They provide
several jars. One of them contains ConnectorServlet and FileUploadFilter. So
you need to put it into the web.xml

servlet
servlet-nameConnectorServlet/servlet-name
   
servlet-classcom.ckfinder.connector.ConnectorServlet/servlet-class
init-param
param-nameXMLConfig/param-name
param-value/WEB-INF/config.xml/param-value
/init-param
init-param
param-namedebug/param-name
param-valuefalse/param-value
/init-param
init-param
param-nameconfiguration/param-name
param-valuecom.app.CKFinderConfiguration/param-value
/init-param
load-on-startup1/load-on-startup
/servlet

servlet-mapping
servlet-nameConnectorServlet/servlet-name
url-pattern
/script/ckfinder/core/connector/java/connector.java
/url-pattern
/servlet-mapping

filter
filter-nameFileUploadFilter/filter-name
filter-classcom.ckfinder.connector.FileUploadFilter/filter-class
init-param
param-namesessionCookieName/param-name
param-valueJSESSIONID/param-value
/init-param
init-param
param-namesessionParameterName/param-name
param-valuejsessionid/param-value
/init-param
/filter

filter-mapping
filter-nameFileUploadFilter/filter-name
url-pattern
/script/ckfinder/core/connector/java/connector.java
/url-pattern
/filter-mapping

It is possible to provide own CKFinderConfiguration class with easy code:

public class CKFinderConfiguration extends Configuration
{
@Override
public String getBaseDir()
{
return Application.CONTENT_MEDIA_FOLDER;
}

@Override
public String getBaseURL()
{
return /app/media/;
}
}

And one line in the javascript to link script’s parts of CKEditor with
CKFinder:

CKFinder.setupCKEditor(null, '/app/script/ckfinder/');

 That’s it. And that starts working just after preparing. I changed Wicket
versions several times last year and it worked very well up to 1.5.8. And
starts working again from 6.2.0. 

Thanx in advance.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Ajax-file-manager-CKFinder-and-Wicket-1-5-8-tp4653275p4653381.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: Ajax file manager 'CKFinder' and Wicket = 1.5.8

2012-10-26 Thread Martin Grigorov
Hi,

I think I know what broke it.
It should be fine in 1.5.9 again with
https://issues.apache.org/jira/browse/WICKET-4752

On Fri, Oct 26, 2012 at 12:35 PM, Steamus steam...@gmail.com wrote:
 Hi, Martin

 Yesterday, I migrated to the Wicket 6.2.0 and it started working again!

 I didn’t see any messages about some javascript’s error in browser, but I
 didn’t use any special tools to debug javascript.

 Integration was enough easy, so there is not so much to share. They provide
 several jars. One of them contains ConnectorServlet and FileUploadFilter. So
 you need to put it into the web.xml

 servlet
 servlet-nameConnectorServlet/servlet-name

 servlet-classcom.ckfinder.connector.ConnectorServlet/servlet-class
 init-param
 param-nameXMLConfig/param-name
 param-value/WEB-INF/config.xml/param-value
 /init-param
 init-param
 param-namedebug/param-name
 param-valuefalse/param-value
 /init-param
 init-param
 param-nameconfiguration/param-name
 param-valuecom.app.CKFinderConfiguration/param-value
 /init-param
 load-on-startup1/load-on-startup
 /servlet

 servlet-mapping
 servlet-nameConnectorServlet/servlet-name
 url-pattern
 /script/ckfinder/core/connector/java/connector.java
 /url-pattern
 /servlet-mapping

 filter
 filter-nameFileUploadFilter/filter-name
 filter-classcom.ckfinder.connector.FileUploadFilter/filter-class
 init-param
 param-namesessionCookieName/param-name
 param-valueJSESSIONID/param-value
 /init-param
 init-param
 param-namesessionParameterName/param-name
 param-valuejsessionid/param-value
 /init-param
 /filter

 filter-mapping
 filter-nameFileUploadFilter/filter-name
 url-pattern
 /script/ckfinder/core/connector/java/connector.java
 /url-pattern
 /filter-mapping

 It is possible to provide own CKFinderConfiguration class with easy code:

 public class CKFinderConfiguration extends Configuration
 {
 @Override
 public String getBaseDir()
 {
 return Application.CONTENT_MEDIA_FOLDER;
 }

 @Override
 public String getBaseURL()
 {
 return /app/media/;
 }
 }

 And one line in the javascript to link script’s parts of CKEditor with
 CKFinder:

 CKFinder.setupCKEditor(null, '/app/script/ckfinder/');

  That’s it. And that starts working just after preparing. I changed Wicket
 versions several times last year and it worked very well up to 1.5.8. And
 starts working again from 6.2.0.

 Thanx in advance.




 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Ajax-file-manager-CKFinder-and-Wicket-1-5-8-tp4653275p4653381.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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Ajax file manager 'CKFinder' and Wicket = 1.5.8

2012-10-26 Thread Steamus
Seems, yes.

Because I didn’t check 1.5.9. I jumped to 6.1.1 and it didn’t work yet.

Thank you, Martin




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Ajax-file-manager-CKFinder-and-Wicket-1-5-8-tp4653275p4653383.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 compare and show differences of two xml files in wicket

2012-10-26 Thread Ernesto Reinaldo Barreiro
Hi,

On Fri, Oct 26, 2012 at 8:26 AM, venkat venkatesh.b...@gmail.com wrote:

 Hi ,

 In my application, i have a scenario where I need to compare data of sql
 server tables from two environemnts and show the differences in side by
 side
 panels.

 I am using SQL server For XML () to convert the sql table data in to XML
 files and want to compare these two XMLs and show the differences in wicket
 component.

 Could any one please share theier thughts and experiences , implementing
 xml
 comparison or data comparison tools in wicket.

 Would appreciate a quick response.


Long time ago I have implemented a functionality like this by using

1-http://www.surfscranton.com/architecture/TextDiff.htm (or s similar
utility class that produced diff between text files).
2-Using the generated diff and original files I rendered original files
with markers for section that changed.i.e.

File 1| File 2

similar content   |  similar content
div class=Ch1 |  div class=Ch1
p   |  p This part changed
/p  |  /p
/div| /div
similar content| similar content

3- Then whenever user hover over class=Ch1 I added Selected to all divs
with class=Ch1 (for change 1)

So the effect was a component that allowed to compare changes much as you
see on eclipse of other development tools... I think there should be
projects out here that already do this? I do no longer have access to that
code:-(

Regards - Ernesto Reinaldo Barreiro
Antilia Soft
http://antiliasoft.com/ http://antiliasoft.com/antilia


RE: Multiple Wicket:Child Tag Support

2012-10-26 Thread Chris Colman
This feature has been requested multiple times in the past (including by
me a long time ago). It has even had fairly detailed implementation
options discussed (and in one case developed) but never seems to make it
to the core code base but given the interest in it hopefully it's just a
matter of time ;)

-Original Message-
From: Kapil Dhawan [mailto:kapil.dha...@tecnotree.com]
Sent: Friday, 26 October 2012 5:37 PM
To: 'users@wicket.apache.org'
Subject: Multiple Wicket:Child Tag Support

Hi List,

I have tried finding answer to Multiple Wicket:Child Tag Support in
archives but could not find anything conclusive.

Could you please confirm if Wicket is supporting it.

Thanks  Regards
Kapil Dhawan


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



RE: Multiple Wicket:Child Tag Support

2012-10-26 Thread Chris Colman
I forgot to mention - I have effectively achieved a multiple
wicket:child tag support by adding my own special 'slot' tags that allow
me to name slots and optionally override them in derived markup files. 

Obviously Wicket doesn't support my new 'slot' tags as is, so I run my
markup with the special slot tags through a special markup
preprocessor/compiler I created to produce Wicket compatible markup. It
works wonderfully and allows me to have multiple optionally overridden
'slots' in a way that mimics OO inheritance in any OO language.

The key point is that with multiple overridable slots an id/name needs
to be assigned to each slot otherwise it is not clear which slot is
being overridden in a derived markup. Obviously naming is not required
when you limit the number of overridable 'slots' to one as wicket
currently does. The possible solutions we discussed and designed years
ago all mandated the requirement to identify slots in both base (super)
and derived (extended) markups.

I can't recall exactly where these conversations are but they must be in
nabble somewhere.

-Original Message-
From: Kapil Dhawan [mailto:kapil.dha...@tecnotree.com]
Sent: Friday, 26 October 2012 5:37 PM
To: 'users@wicket.apache.org'
Subject: Multiple Wicket:Child Tag Support

Hi List,

I have tried finding answer to Multiple Wicket:Child Tag Support in
archives but could not find anything conclusive.

Could you please confirm if Wicket is supporting it.

Thanks  Regards
Kapil Dhawan


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



RE: Multiple Wicket:Child Tag Support - with link to JIRA feature request

2012-10-26 Thread Chris Colman
I found the JIRA request. This request has many links to discussions on
the topic over the years:

https://issues.apache.org/jira/browse/WICKET-1134


-Original Message-
From: Kapil Dhawan [mailto:kapil.dha...@tecnotree.com]
Sent: Friday, 26 October 2012 5:37 PM
To: 'users@wicket.apache.org'
Subject: Multiple Wicket:Child Tag Support

Hi List,

I have tried finding answer to Multiple Wicket:Child Tag Support in
archives but could not find anything conclusive.

Could you please confirm if Wicket is supporting it.

Thanks  Regards
Kapil Dhawan


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



Oracle Coherence as an IDataStore

2012-10-26 Thread Bruno Borges
Hi all,

I've been playing with Coherence for a while and started to code an
implementation of IDataStore.
If there's someone here interested in this, please contact me.
The code will soon be published on GitHub, but I'd like to have someone
using Coherence and/or WebLogic to share ideais and to help me polish the
code.

Thanks,
*Bruno Borges*
(11) 99564-9058
*www.brunoborges.com*


Re: Custom CSS for Feedback message is broken in 1.5

2012-10-26 Thread Joachim Schrod
Martin Grigorov wrote:
 Hi,
 
 Here is an example of the produced markup for an single INFO message:
 
 div id=feedbackPanel
   span
   ul class=feedbackPanel
 li class=feedbackPanelINFO
   span class=feedbackPanelINFOSaved model [TestInputObject
 stringProperty = 'test', integerProperty = 100, doubleProperty = 20.5,
 booleanProperty = false, integerInRangeProperty = 50, urlProperty =
 http://wicket.apache.org, phoneNumberUS = (123) 456-1234,
 numberRadioChoice = 1, numbersCheckgroup [], numberRadioGroup= null,
 selected sites {], lines [line one, line two, line three]]/span
 /li
   /ul
 /span
 /div
 
 Why do we need the new getters when you can just use normal CSS selectors:
 
 div.feedbackPanel {}
 div.feedbackPanel span {}
 ul.feedbackPanel {}
 li.feedbackPanelINFO {}
 span.feedbackPanelINFO {}
 
 What is the big CSS/HTML design problem that I miss ?

That feedbackPanelINFO is set both on li and on span.

In my current project, CSS styling is not done by us, but by a
designer and is shared over several projects, most of them who
don't use Wicket. The CSS styling is just for feedbackPanelINFO,
not for li.feedbackPanelINFO.

AFAIU, similar problems appear in portlet situations, or in other
situations where you don't control CSS fully. As Alec mentions,
Twitter bootstrap is an other example.

Btw, I never wrote that this is a big design problem. I just say
that IMHO it's an existing one that goes beyond a single project.
The standard way we cope in our projects is a more-or-less empty
FeedbackPanel subclass with replaced HTML. Not pretty, as we ignore
module boundaries for wicket identifiers; but the alternative --
copying the complete code of FeedbackPanel to a project specific
class -- wouldn't be good either.

Joachim

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod, Roedermark, Germany
Email: jsch...@acm.org


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



Migration of generateCallbackScript to Wicket 6

2012-10-26 Thread Adriano dos Santos Fernandes
Hi!

I'm migrating from Wicket 1.5 to 6, and I have a couple of
generateCallbackScript usage that I have no idea what to do.

An example:

class ToolbarBehaviour extends AbstractDefaultAjaxBehavior
{
private static final long serialVersionUID = 1L;

@Override
protected void respond(AjaxRequestTarget target)
{
int itemNumber =
getRequest().getRequestParameters().getParameterValue(item).toInt();
ToolItem item = Toolbar.this.registeredItems.get(itemNumber);
item.onClick(target);
}

public CharSequence getAjaxUrl(String params)
{
return generateCallbackScript(wicketAjaxGet(' +
getCallbackUrl() +
 + params + ');
}
};


This is an integration with ExtJS toolbar, and getAjaxUrl() isused to
build an ajax call in another place.

I do also have similar JQueryBehavior's using generateCallbackScript and
adding parameters to them.

How to code this with Wicket 6?


Adriano


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



Theoretical Q: JQuery client-only/RPC app?

2012-10-26 Thread Emmanouil Batsis (Manos)


Now that wicket uses jquery, would it be possible to implement a 
jquery/client-only app for a wicket backend?


To be more specific, I am asking mainly about the possibility of 
producing a javascript-only application client for a wicket6 app/json 
RPC backend.



Thanks,

Maons

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



Re: WiQuery SortableBehavior/DroppableBehavior questions

2012-10-26 Thread Decebal Suiu
HiSee how I resolved the problem in  wicket-dashboard
https://github.com/decebals/wicket-dashboard  . At the end drag and drop
operation I sent (using javascript) a json that keeps the positions for all
widgets to wicket. For more details see  StopSortableAjaxBehavior
https://github.com/decebals/wicket-dashboard/blob/master/core/src/main/java/ro/fortsoft/wicket/dashboard/web/StopSortableAjaxBehavior.java
 
.Best regards,Decebal



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WiQuery-SortableBehavior-DroppableBehavior-questions-tp4653349p4653396.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: EXTERNAL: Migration of generateCallbackScript to Wicket 6

2012-10-26 Thread Phillips, David
'generateCallbackScript()' was removed, but 'getCallbackScript()' still 
remains. You can call that to retrieve the necessary scripts, or 
'getCallbackFunction()' if you want to generate a full function.

If you want to add in additional parameters you can override 'getCallbackUrl()' 
and return your additional params.

Thanks,
-David Phillips - USAA

-Original Message-
From: Adriano dos Santos Fernandes [mailto:asfernan...@gmail.com] On Behalf Of 
Adriano dos Santos Fernandes
Sent: Friday, October 26, 2012 11:36 AM
To: wicket-users
Subject: EXTERNAL: Migration of generateCallbackScript to Wicket 6

Hi!

I'm migrating from Wicket 1.5 to 6, and I have a couple of 
generateCallbackScript usage that I have no idea what to do.

An example:

class ToolbarBehaviour extends AbstractDefaultAjaxBehavior
{
private static final long serialVersionUID = 1L;

@Override
protected void respond(AjaxRequestTarget target)
{
int itemNumber =
getRequest().getRequestParameters().getParameterValue(item).toInt();
ToolItem item = Toolbar.this.registeredItems.get(itemNumber);
item.onClick(target);
}

public CharSequence getAjaxUrl(String params)
{
return generateCallbackScript(wicketAjaxGet(' +
getCallbackUrl() +
 + params + ');
}
};


This is an integration with ExtJS toolbar, and getAjaxUrl() isused to build an 
ajax call in another place.

I do also have similar JQueryBehavior's using generateCallbackScript and adding 
parameters to them.

How to code this with Wicket 6?


Adriano


-
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: EXTERNAL: Migration of generateCallbackScript to Wicket 6

2012-10-26 Thread Sebastien
Hi,

If you want to add in additional parameters you can override
'getCallbackUrl()' and return your additional params.
Although it's still valid in wicket 6, the best is now to override
getCallbackParameters()

protected CallbackParameter[] getCallbackParameters()
{
return new CallbackParameter[] {
CallbackParameter.converted(...),
CallbackParameter.explicit(...),
CallbackParameter.context(...),
CallbackParameter.resolved(...)
};
}

See javadoc for difference between converted, explicit, etc

Best regards,
Sebastien

On Fri, Oct 26, 2012 at 7:52 PM, Phillips, David david.phill...@usaa.comwrote:

 'generateCallbackScript()' was removed, but 'getCallbackScript()' still
 remains. You can call that to retrieve the necessary scripts, or
 'getCallbackFunction()' if you want to generate a full function.

 If you want to add in additional parameters you can override
 'getCallbackUrl()' and return your additional params.

 Thanks,
 -David Phillips - USAA

 -Original Message-
 From: Adriano dos Santos Fernandes [mailto:asfernan...@gmail.com] On
 Behalf Of Adriano dos Santos Fernandes
 Sent: Friday, October 26, 2012 11:36 AM
 To: wicket-users
 Subject: EXTERNAL: Migration of generateCallbackScript to Wicket 6

 Hi!

 I'm migrating from Wicket 1.5 to 6, and I have a couple of
 generateCallbackScript usage that I have no idea what to do.

 An example:

 class ToolbarBehaviour extends AbstractDefaultAjaxBehavior
 {
 private static final long serialVersionUID = 1L;

 @Override
 protected void respond(AjaxRequestTarget target)
 {
 int itemNumber =
 getRequest().getRequestParameters().getParameterValue(item).toInt();
 ToolItem item = Toolbar.this.registeredItems.get(itemNumber);
 item.onClick(target);
 }

 public CharSequence getAjaxUrl(String params)
 {
 return generateCallbackScript(wicketAjaxGet(' +
 getCallbackUrl() +
  + params + ');
 }
 };


 This is an integration with ExtJS toolbar, and getAjaxUrl() isused to
 build an ajax call in another place.

 I do also have similar JQueryBehavior's using generateCallbackScript and
 adding parameters to them.

 How to code this with Wicket 6?


 Adriano


 -
 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: EXTERNAL: Migration of generateCallbackScript to Wicket 6

2012-10-26 Thread Phillips, David
I don't see that API in AbstractAjaxBehavior or AbstractDefaultAjaxBehavior 
(I'm looking at 6.2). Where is that available?

Thanks,
-David Phillips - USAA

-Original Message-
From: Sebastien [mailto:seb...@gmail.com] 
Sent: Friday, October 26, 2012 1:03 PM
To: users@wicket.apache.org
Subject: Re: EXTERNAL: Migration of generateCallbackScript to Wicket 6

Hi,

If you want to add in additional parameters you can override
'getCallbackUrl()' and return your additional params.
Although it's still valid in wicket 6, the best is now to override
getCallbackParameters()

protected CallbackParameter[] getCallbackParameters() { return new 
CallbackParameter[] { CallbackParameter.converted(...), 
CallbackParameter.explicit(...), CallbackParameter.context(...),
CallbackParameter.resolved(...)
};
}

See javadoc for difference between converted, explicit, etc

Best regards,
Sebastien

On Fri, Oct 26, 2012 at 7:52 PM, Phillips, David david.phill...@usaa.comwrote:

 'generateCallbackScript()' was removed, but 'getCallbackScript()' 
 still remains. You can call that to retrieve the necessary scripts, or 
 'getCallbackFunction()' if you want to generate a full function.

 If you want to add in additional parameters you can override 
 'getCallbackUrl()' and return your additional params.

 Thanks,
 -David Phillips - USAA

 -Original Message-
 From: Adriano dos Santos Fernandes [mailto:asfernan...@gmail.com] On 
 Behalf Of Adriano dos Santos Fernandes
 Sent: Friday, October 26, 2012 11:36 AM
 To: wicket-users
 Subject: EXTERNAL: Migration of generateCallbackScript to Wicket 6

 Hi!

 I'm migrating from Wicket 1.5 to 6, and I have a couple of 
 generateCallbackScript usage that I have no idea what to do.

 An example:

 class ToolbarBehaviour extends AbstractDefaultAjaxBehavior
 {
 private static final long serialVersionUID = 1L;

 @Override
 protected void respond(AjaxRequestTarget target)
 {
 int itemNumber =
 getRequest().getRequestParameters().getParameterValue(item).toInt();
 ToolItem item = Toolbar.this.registeredItems.get(itemNumber);
 item.onClick(target);
 }

 public CharSequence getAjaxUrl(String params)
 {
 return generateCallbackScript(wicketAjaxGet(' +
 getCallbackUrl() +
  + params + ');
 }
 };


 This is an integration with ExtJS toolbar, and getAjaxUrl() isused to 
 build an ajax call in another place.

 I do also have similar JQueryBehavior's using generateCallbackScript 
 and adding parameters to them.

 How to code this with Wicket 6?


 Adriano


 -
 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: EXTERNAL: Migration of generateCallbackScript to Wicket 6

2012-10-26 Thread Sebastien
Ops, I wrote a mistake: #getCallbackParameters does not exists; it my
own method!
However, the way to specify/handle callback parameters is still to provide
an array of CallbackParameter (wicket-6.x, then) to
AbstractDefaultAjaxBehavior#getCallbackFunction()

You will find the static methods (context, explicit, resolved  context)
and their corresponding javadoc in
org.apache.wicket.ajax.attributes.CallbackParameter

Sorry for the confusion,
Sebastien.


On Fri, Oct 26, 2012 at 8:18 PM, Phillips, David david.phill...@usaa.comwrote:

 I don't see that API in AbstractAjaxBehavior or
 AbstractDefaultAjaxBehavior (I'm looking at 6.2). Where is that available?

 Thanks,
 -David Phillips - USAA

 -Original Message-
 From: Sebastien [mailto:seb...@gmail.com]
 Sent: Friday, October 26, 2012 1:03 PM
 To: users@wicket.apache.org
 Subject: Re: EXTERNAL: Migration of generateCallbackScript to Wicket 6

 Hi,

 If you want to add in additional parameters you can override
 'getCallbackUrl()' and return your additional params.
 Although it's still valid in wicket 6, the best is now to override
 getCallbackParameters()

 protected CallbackParameter[] getCallbackParameters() { return new
 CallbackParameter[] { CallbackParameter.converted(...),
 CallbackParameter.explicit(...), CallbackParameter.context(...),
 CallbackParameter.resolved(...)
 };
 }

 See javadoc for difference between converted, explicit, etc

 Best regards,
 Sebastien

 On Fri, Oct 26, 2012 at 7:52 PM, Phillips, David david.phill...@usaa.com
 wrote:

  'generateCallbackScript()' was removed, but 'getCallbackScript()'
  still remains. You can call that to retrieve the necessary scripts, or
  'getCallbackFunction()' if you want to generate a full function.
 
  If you want to add in additional parameters you can override
  'getCallbackUrl()' and return your additional params.
 
  Thanks,
  -David Phillips - USAA
 
  -Original Message-
  From: Adriano dos Santos Fernandes [mailto:asfernan...@gmail.com] On
  Behalf Of Adriano dos Santos Fernandes
  Sent: Friday, October 26, 2012 11:36 AM
  To: wicket-users
  Subject: EXTERNAL: Migration of generateCallbackScript to Wicket 6
 
  Hi!
 
  I'm migrating from Wicket 1.5 to 6, and I have a couple of
  generateCallbackScript usage that I have no idea what to do.
 
  An example:
 
  class ToolbarBehaviour extends AbstractDefaultAjaxBehavior
  {
  private static final long serialVersionUID = 1L;
 
  @Override
  protected void respond(AjaxRequestTarget target)
  {
  int itemNumber =
  getRequest().getRequestParameters().getParameterValue(item).toInt();
  ToolItem item = Toolbar.this.registeredItems.get(itemNumber);
  item.onClick(target);
  }
 
  public CharSequence getAjaxUrl(String params)
  {
  return generateCallbackScript(wicketAjaxGet(' +
  getCallbackUrl() +
   + params + ');
  }
  };
 
 
  This is an integration with ExtJS toolbar, and getAjaxUrl() isused to
  build an ajax call in another place.
 
  I do also have similar JQueryBehavior's using generateCallbackScript
  and adding parameters to them.
 
  How to code this with Wicket 6?
 
 
  Adriano
 
 
  -
  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: EXTERNAL: Migration of generateCallbackScript to Wicket 6

2012-10-26 Thread Phillips, David
Ah ok, thanks for the clarification. The parameters in 'getCallbackFunction()' 
would definitely be a cleaner approach.

Thanks,
-David Phillips - USAA

-Original Message-
From: Sebastien [mailto:seb...@gmail.com] 
Sent: Friday, October 26, 2012 4:50 PM
To: users@wicket.apache.org
Subject: Re: EXTERNAL: Migration of generateCallbackScript to Wicket 6

Ops, I wrote a mistake: #getCallbackParameters does not exists; it my own 
method!
However, the way to specify/handle callback parameters is still to provide an 
array of CallbackParameter (wicket-6.x, then) to
AbstractDefaultAjaxBehavior#getCallbackFunction()

You will find the static methods (context, explicit, resolved  context) and 
their corresponding javadoc in 
org.apache.wicket.ajax.attributes.CallbackParameter

Sorry for the confusion,
Sebastien.


On Fri, Oct 26, 2012 at 8:18 PM, Phillips, David david.phill...@usaa.comwrote:

 I don't see that API in AbstractAjaxBehavior or 
 AbstractDefaultAjaxBehavior (I'm looking at 6.2). Where is that available?

 Thanks,
 -David Phillips - USAA

 -Original Message-
 From: Sebastien [mailto:seb...@gmail.com]
 Sent: Friday, October 26, 2012 1:03 PM
 To: users@wicket.apache.org
 Subject: Re: EXTERNAL: Migration of generateCallbackScript to Wicket 6

 Hi,

 If you want to add in additional parameters you can override
 'getCallbackUrl()' and return your additional params.
 Although it's still valid in wicket 6, the best is now to override
 getCallbackParameters()

 protected CallbackParameter[] getCallbackParameters() { return new 
 CallbackParameter[] { CallbackParameter.converted(...), 
 CallbackParameter.explicit(...), CallbackParameter.context(...),
 CallbackParameter.resolved(...)
 };
 }

 See javadoc for difference between converted, explicit, etc

 Best regards,
 Sebastien

 On Fri, Oct 26, 2012 at 7:52 PM, Phillips, David 
 david.phill...@usaa.com
 wrote:

  'generateCallbackScript()' was removed, but 'getCallbackScript()'
  still remains. You can call that to retrieve the necessary scripts, 
  or 'getCallbackFunction()' if you want to generate a full function.
 
  If you want to add in additional parameters you can override 
  'getCallbackUrl()' and return your additional params.
 
  Thanks,
  -David Phillips - USAA
 
  -Original Message-
  From: Adriano dos Santos Fernandes [mailto:asfernan...@gmail.com] On 
  Behalf Of Adriano dos Santos Fernandes
  Sent: Friday, October 26, 2012 11:36 AM
  To: wicket-users
  Subject: EXTERNAL: Migration of generateCallbackScript to Wicket 6
 
  Hi!
 
  I'm migrating from Wicket 1.5 to 6, and I have a couple of 
  generateCallbackScript usage that I have no idea what to do.
 
  An example:
 
  class ToolbarBehaviour extends AbstractDefaultAjaxBehavior
  {
  private static final long serialVersionUID = 1L;
 
  @Override
  protected void respond(AjaxRequestTarget target)
  {
  int itemNumber =
  getRequest().getRequestParameters().getParameterValue(item).toInt();
  ToolItem item = Toolbar.this.registeredItems.get(itemNumber);
  item.onClick(target);
  }
 
  public CharSequence getAjaxUrl(String params)
  {
  return generateCallbackScript(wicketAjaxGet(' +
  getCallbackUrl() +
   + params + ');
  }
  };
 
 
  This is an integration with ExtJS toolbar, and getAjaxUrl() isused 
  to build an ajax call in another place.
 
  I do also have similar JQueryBehavior's using generateCallbackScript 
  and adding parameters to them.
 
  How to code this with Wicket 6?
 
 
  Adriano
 
 
  
  - 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



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



Re: WiQuery SortableBehavior/DroppableBehavior questions

2012-10-26 Thread Benedikt Schlegel
Hi Decebal, thank you for your reply.

I had a look at your project and I can see that you collect the sort order
with a custom js function onStopWidgetMove(), but I'm not able to actually
track down where this information is received or the stopEvent is handled.
Could you please point me out how you do that?

Thanks, Benedikt