Re: Possible issue in Localizer - Wicket Version 6.13.0

2014-02-19 Thread René Hartwig

  
  
Hi,
  
  unfortunately I have not been able to reproduce it again. I am not
  using custom IStringResourceLoaders and the Exception occured
  within an Acunetix security scan. When operating the page
  manually, this Exception never occurs.
  
  Will inform you if there's something new.
  
  Regards,
  
  René Hartwig
  
  
  

 Mit
  freundlichen Grüßen / Best regards,
René
  Hartwig
  Senior Developer
 Befine
  Solutions AG - The Cryptshare Company
  Bebelstraße 17
79108 Freiburg
Germany
 Tel: +49 (0) 761
38913 0
Fax: +49 (0) 761 38913 115
  
  E-Mail: rene.hart...@befine-solutions.com
  Internet:
  http://www.cryptshare.com
 =
 Your attachments are
too large or too confidential for e-mail?
Get to know Cryptshare!
 http://www.cryptshare.com
 =
 

Amtsgericht
  Freiburg HRB 6144
  Vorstand Mark Forrest, Dominik Lehr
  Aufsichtsratsvorsitzender Thilo Braun
 
   
  
  Am 18.02.2014 17:19, schrieb Martin Grigorov:


  Hi,


any application can add custom IStringResourceLoaders with
  IResourceSettings#getStringResourceLoaders().add(mine)


Now the question is: is there a bug in Wicket or in your
  app ?
Please investigate :-)


I think there were no changes in Wicket related to this
  functionality for a fairly long time.


  
  

  

  Martin Grigorov
  Wicket Training and Consulting




On Tue, Feb 18, 2014 at 6:11 PM, René
  Hartwig rene.hart...@befine-solutions.com
  wrote:
  
 Hi,
  
  just stumbled across this problem after I updated to the
  latest Wicket Release:
  
  
  Is anything known about this? I did not make any further
  investigations, so if you need more details just tell me.
  
  
  Thanks and regards,
  René Hartwig
  
  
  -- 
 Mit
  freundlichen Grüßen / Best regards,
René

  Hartwig
  Senior Developer
 Befine
  Solutions AG - The Cryptshare Company
  Bebelstraße
17
79108 Freiburg
Germany
 Tel: +49 (0)
  761 38913 0
Fax: +49 (0)
  761 38913 115
  
  E-Mail: rene.hart...@befine-solutions.com
  Internet:
  http://www.cryptshare.com
 =
 Your attachments
are too large or too confidential for e-mail?
Get to know Cryptshare!
 http://www.cryptshare.com
 =
 

Amtsgericht

  Freiburg HRB 6144
  Vorstand Mark Forrest, Dominik Lehr
  Aufsichtsratsvorsitzender Thilo Braun
 
   
  

  


  


  



Re: Hybrid palette with DropDownChoice and ListView

2014-02-19 Thread ChambreNoire
Great, I'm still getting NonUniqueObjectExceptions when I save. Back to the
drawing board. *sigh*

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Hybrid-palette-with-DropDownChoice-and-ListView-tp4664445p4664562.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: 3rd party JS+Wicket 6.6.0=MyWidget ?

2014-02-19 Thread Andrea Del Bene
Hi,

for a gentle introduction to JavaScript integration you can also refer
to the official guide:

http://wicket.apache.org/guide/guide/single.html#jsintegration
 I just delving in these libraries


 On Wed, Feb 19, 2014 at 11:51 AM, Farrukh SATTOROV fireda...@gmail.comwrote:

 Thank you, Martin


 On Wed, Feb 19, 2014 at 11:42 AM, Martin Grigorov 
 mgrigo...@apache.orgwrote:

 Hi,

 Usually the steps to integrate any JS widget with Wicket are:
 1) create a custom Component or Behavior that will contribute the .js (and
 any .css, images, ... if needed) in #renderHead()
 2) if the JS widget needs configuration (e.g. some JSON object passed to
 the widget's constructor) then use again #renderHead() to write it to the
 response
 3) if the JS widget provides functionality to send data back to the server
 then use either Ajax Behavior, IResourceListener or mounted resource

 I recommend you to check the source of some integrations:
 - https://github.com/sebfz1/wicket-jquery-ui
 - https://github.com/l0rdn1kk0n/wicket-bootstrap

 Martin Grigorov
 Wicket Training and Consulting


 On Wed, Feb 19, 2014 at 8:45 AM, Farrukh SATTOROV fireda...@gmail.com
 wrote:
 Hi all, is there any recipes how integrate 3rd party javascript
 component
 to wicket component. For example i have Timeline js class and i need to
 bind it to WebComponent as container, what steps i need to do.

 --
 Regards, Farrukh



 --
 Regards, Farrukh





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



Re: 3rd party JS+Wicket 6.6.0=MyWidget ?

2014-02-19 Thread Farrukh SATTOROV
step by step debugging help me understand )


On Wed, Feb 19, 2014 at 4:52 PM, Andrea Del Bene an.delb...@gmail.comwrote:

 Hi,

 for a gentle introduction to JavaScript integration you can also refer
 to the official guide:

 http://wicket.apache.org/guide/guide/single.html#jsintegration
  I just delving in these libraries
 
 
  On Wed, Feb 19, 2014 at 11:51 AM, Farrukh SATTOROV fireda...@gmail.com
 wrote:
 
  Thank you, Martin
 
 
  On Wed, Feb 19, 2014 at 11:42 AM, Martin Grigorov mgrigo...@apache.org
 wrote:
 
  Hi,
 
  Usually the steps to integrate any JS widget with Wicket are:
  1) create a custom Component or Behavior that will contribute the .js
 (and
  any .css, images, ... if needed) in #renderHead()
  2) if the JS widget needs configuration (e.g. some JSON object passed
 to
  the widget's constructor) then use again #renderHead() to write it to
 the
  response
  3) if the JS widget provides functionality to send data back to the
 server
  then use either Ajax Behavior, IResourceListener or mounted resource
 
  I recommend you to check the source of some integrations:
  - https://github.com/sebfz1/wicket-jquery-ui
  - https://github.com/l0rdn1kk0n/wicket-bootstrap
 
  Martin Grigorov
  Wicket Training and Consulting
 
 
  On Wed, Feb 19, 2014 at 8:45 AM, Farrukh SATTOROV fireda...@gmail.com
  wrote:
  Hi all, is there any recipes how integrate 3rd party javascript
  component
  to wicket component. For example i have Timeline js class and i need
 to
  bind it to WebComponent as container, what steps i need to do.
 
  --
  Regards, Farrukh
 
 
 
  --
  Regards, Farrukh
 
 
 


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




-- 
Regards, Farrukh


Re: Possible issue in Localizer - Wicket Version 6.13.0

2014-02-19 Thread Martin Grigorov
Just checked Wicket's source and the only place where Wicket
adds IStringResourceLoaders is in ResourceSettings' constructor.
None of them is null

Martin Grigorov
Wicket Training and Consulting


On Wed, Feb 19, 2014 at 10:44 AM, René Hartwig 
rene.hart...@befine-solutions.com wrote:

  Hi,

 unfortunately I have not been able to reproduce it again. I am not using
 custom IStringResourceLoaders and the Exception occured within an Acunetix
 security scan. When operating the page manually, this Exception never
 occurs.

 Will inform you if there's something new.

 Regards,

 René Hartwig



  Mit freundlichen Grüßen / Best regards,

 René Hartwig
 Senior Developer

 *Befine Solutions AG - The Cryptshare Company*
 Bebelstraße 17
 79108 Freiburg
 Germany

 Tel: +49 (0) 761 38913 0
 Fax: +49 (0) 761 38913 115

 E-Mail: *rene.hart...@befine-solutions.com
 rene.hart...@befine-solutions.com*
 Internet: http://www.cryptshare.com

 =

 Your attachments are too large or too confidential for e-mail?
 Get to know Cryptshare!

 http://www.cryptshare.com

 =

  http://www.linkedin.com/company/befine-solutions/products

 Amtsgericht Freiburg HRB 6144
 Vorstand Mark Forrest, Dominik Lehr
 Aufsichtsratsvorsitzender Thilo Braun



  Am 18.02.2014 17:19, schrieb Martin Grigorov:

 Hi,

  any application can add custom IStringResourceLoaders with
 IResourceSettings#getStringResourceLoaders().add(mine)

  Now the question is: is there a bug in Wicket or in your app ?
 Please investigate :-)

  I think there were no changes in Wicket related to this functionality
 for a fairly long time.


   Martin Grigorov
 Wicket Training and Consulting


 On Tue, Feb 18, 2014 at 6:11 PM, René Hartwig 
 rene.hart...@befine-solutions.com wrote:

  Hi,

 just stumbled across this problem after I updated to the latest Wicket
 Release:


 Is anything known about this? I did not make any further investigations,
 so if you need more details just tell me.


 Thanks and regards,
 René Hartwig


 --

 Mit freundlichen Grüßen / Best regards,

 René Hartwig
 Senior Developer

 *Befine Solutions AG - The Cryptshare Company*
 Bebelstraße 17
 79108 Freiburg
 Germany

 Tel: +49 (0) 761 38913 %2B49%20%280%29%20761%2038913 0
 Fax: +49 (0) 761 38913 115 %2B49%20%280%29%20761%2038913%20115

 E-Mail: *rene.hart...@befine-solutions.com
 rene.hart...@befine-solutions.com*
 Internet: http://www.cryptshare.com

 =

 Your attachments are too large or too confidential for e-mail?
 Get to know Cryptshare!

 http://www.cryptshare.com

 =

  http://www.linkedin.com/company/befine-solutions/products

 Amtsgericht Freiburg HRB 6144
 Vorstand Mark Forrest, Dominik Lehr
 Aufsichtsratsvorsitzender Thilo Braun









testing component with assertComponentOnAjaxResponse with IAjaxRegionMarkupIdProvider behavior

2014-02-19 Thread Simon B
Hi, 

I'm trying to test for a component in an ajax response.  

The component has had a behavior added to it, this behavior implements
IAjaxRegionMarkupIdProvider.

When I call  the WicketTester#assertComponentOnAjaxResponse(Component)
method, it doesn't find the component with the id of component.  The ajax
response tag (e.g. component id=.../)has the id of the
IAjaxRegionMarkupIdProvider not the component.

For example the Component has an id of agentOptions and the
IAjaxRegionMarkupIdProvider then uses that to create the Markup Id of
agentOptions_fd

e.g. 
// in the ajax response the id is that of the IAjaxRegionMarkupIdProvider 


not of the actual component who's existence I wish to test for / assert 



Is there some specific way I'm supposed to test for the existence of
Components with IAjaxRegionMarkupIdProvider behaviors that have been added
to them, or is this simply something that I should live with.  I imagine
this is a very marginal corner case.

Any suggestions very welcome

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/testing-component-with-assertComponentOnAjaxResponse-with-IAjaxRegionMarkupIdProvider-behavior-tp4664569.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: Issue on multi-threaded page when opening another tab in browser

2014-02-19 Thread eaglei22
Hi Martin,

I originally had the List as an instance variable for the Page but when I
would open a new browser tab, the original page would crash and a
nullpointerException would be given because the page reference lost
reference to the object. 

So now I create in the page constructor in instance of BatchLines and pass
it along through method parameters. 

The thread is started from a method called in the constructor. Here is the
def of this method:

/
 * Method: beginProcessing
 * 
 * Invokes workerThreads 
 * 
 * returns: void
 /
private void beginProcessing(List batchLines)
{
  fullReportDwnLoadBtn.setVisible(false);
  
  try
  {
  csvFileCreater = new CSVFileCreater(LOADER_CSV_FILE_NAME);
  if(turnOnLoader)
  {
BatchLoaderProcessingThread threadJob = new
BatchLoaderProcessingThread(stringList, batchLines);
loggerThread = new Thread(threadJob);
loggerThread.start();
  }
  else
  {
BatchDeleteProcessingThread deleterThreadJob = new
BatchDeleteProcessingThread(stringList, batchLines);
loggerThread = new Thread(deleterThreadJob);
loggerThread.start(); 
  }
  } catch (IOException e)
  {
// TODO Auto-generated catch block
log.error(Inside beginProcessing() throws error:  + 
e.toString());
BatchProcessPage.this.error(An error has occurred 
starting creation of
CSV file);
  }
}

Here is the definition of the thread class:

class BatchLoaderProcessingThread implements Runnable
{
List stringList;
List batchLines;
public BatchLoaderProcessingThread(List stringList, List batchLines) 
{
this.batchLines = batchLines;
this.stringList = stringList;
}

@Override
public void run()
{
processLine(stringList, batchLines);
loaderFinished();
}   
}   


processLine is a method that is part of the Page class. 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Issue-on-multi-threaded-page-when-opening-another-tab-in-browser-tp4664552p4664570.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



Central exception handling using a custom RequestCycleListener

2014-02-19 Thread Tom Götz
Hi there,

we’d like to implement a centralized exception handling strategy for 
backend/service calls from with within Wicket components. Therefor I thought it 
could be a good idea to do this in a custom 
org.apache.wicket.request.cycle.AbstractRequestCycleListener#onException 
implementation. Depending on the caught exception we’d potentially like to do 
some cleanup logic (i.e. call methods on the currently requested page).

I’m not sure what is the best strategy to get the page instance in onException, 
and what about ajax requests? And hints or pointers?


Cheers,
   -Tom





signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Central exception handling using a custom RequestCycleListener

2014-02-19 Thread Martin Grigorov
Hi,

You may use another IRequestCycleListener to track the last processed page
- org.apache.wicket.request.cycle.PageRequestHandlerTracker

Martin Grigorov
Wicket Training and Consulting


On Wed, Feb 19, 2014 at 5:53 PM, Tom Götz t...@decoded.de wrote:

 Hi there,

 we’d like to implement a centralized exception handling strategy for
 backend/service calls from with within Wicket components. Therefor I
 thought it could be a good idea to do this in a custom
 org.apache.wicket.request.cycle.AbstractRequestCycleListener#onException
 implementation. Depending on the caught exception we’d potentially like to
 do some cleanup logic (i.e. call methods on the currently requested page).

 I’m not sure what is the best strategy to get the page instance in
 onException, and what about ajax requests? And hints or pointers?


 Cheers,
-Tom






Re: Central exception handling using a custom RequestCycleListener

2014-02-19 Thread Tom Götz
Nice, I’ll have a look at that thingy ;-)

Thanks,
   -Tom


On 19.02.2014, at 16:56, Martin Grigorov mgrigo...@apache.org wrote:

 Hi,
 
 You may use another IRequestCycleListener to track the last processed page
 - org.apache.wicket.request.cycle.PageRequestHandlerTracker
 
 Martin Grigorov
 Wicket Training and Consulting
 
 
 On Wed, Feb 19, 2014 at 5:53 PM, Tom Götz t...@decoded.de wrote:
 
 Hi there,
 
 we’d like to implement a centralized exception handling strategy for
 backend/service calls from with within Wicket components. Therefor I
 thought it could be a good idea to do this in a custom
 org.apache.wicket.request.cycle.AbstractRequestCycleListener#onException
 implementation. Depending on the caught exception we’d potentially like to
 do some cleanup logic (i.e. call methods on the currently requested page).
 
 I’m not sure what is the best strategy to get the page instance in
 onException, and what about ajax requests? And hints or pointers?
 
 
 Cheers,
   -Tom
 
 
 
 



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Issue on multi-threaded page when opening another tab in browser

2014-02-19 Thread eaglei22
I fixed this issue by making my runnable class serializable and putting a
reference to the Thread inside there and also the list. This seemed to fix
this issue. 

Thanks for your time Martin. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Issue-on-multi-threaded-page-when-opening-another-tab-in-browser-tp4664552p4664575.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: Issue on multi-threaded page when opening another tab in browser

2014-02-19 Thread eaglei22
Nvm, it's still doing it. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Issue-on-multi-threaded-page-when-opening-another-tab-in-browser-tp4664552p4664576.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



What wicket version more stable than other (from 6.x.x line)

2014-02-19 Thread Farrukh SATTOROV
-- 
Regards, Farrukh