Re: wicket-stuff progressbar problem in Wicket 6.3

2012-12-05 Thread Martin Grigorov
Hi,

I think this issue is fixed with WICKET-4886.
Please try with 6.4.0-SNAPSHOT.
If it still breaks then please create a quickstart and attach it to a new
ticket in Jira.
Thanks!


On Tue, Dec 4, 2012 at 3:54 PM, hsteisjo hakan.stei...@foxt.com wrote:

 Hi all,

 I've really banged my head with this problem for some time now, and
 hopefully someone can point me in the right direction.

 I have a base popup class which is extended from ModalWindow. Most actions
 requires some sort of visual response to the user that actions are taking
 place so this popup class holds switchable panels where one is the content
 panel and one a progressbar panel.

 The idea was to send in whatever content is needed for an action and then
 start the progressbar. This has worked very well based upon the wicketstuff
 progressbar and their taskservice running on Wicket 1.4.20.

 It was time to upgrade Wicket and I did so to 6.3 via 1.5.9. Unfortunately
 I
 never tested this exact functionality when the port to 1.5.9 was completed
 so I can't say whether it worked or not in 1.5.9. With Wicket 6.3 it
 doesn't
 work. The popup is displayed fine and the task gets going as expected, but
 then when the AjaxSelfUpdatingTimerBehavior of the progressbar finishes
 things break apart with a WicketRuntimeException saying there's no page
 found for the component (the panel holding the progressbar in the base
 popup
 class).

 We end up in the getPage() function of the Component class via several
 function calls in AbstractAjaxTimerBehavior, AbstractDefaultAjaxBehavior
 and
 AbstractAjaxBehavior. It all starts off with the
 AbstractAjaxTimerBehavior's
 respond() and getJsTimeoutCall() functions, and eventually the
 AbstractAjaxBehavior's getCallbackUrl() function is called which takes us
 to
 the getPage() function, and once there the panel, holding the progressbar
 in
 the popup class, is not attached to a page and I can't figure out why.

 I realize a lot has happened in Wicket since 1.4.20, especially in Wicket 6
 and the new jQuery back-end and I was hoping someone could give me some
 pointers where I should start looking when it comes to these types of
 problems with ajax updates.

 Thanks.

 -Håkan



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/wicket-stuff-progressbar-problem-in-Wicket-6-3-tp4654469.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 http://jweekend.com/


stateless AjaxLazyLoadPanel wicket 1.4.21

2012-12-05 Thread Karsten Gaul

Hi,

I'm trying to use the functionality of an AjaxLazyLoadPanel in a 
stateless page but this doesn't seem to work as the injected content is 
not a container and the following exception is thrown:


java.lang.IllegalArgumentException: Component is not a container and so does 
not contain the path componentid:containedcomponentid:

[Component id = content]

 at org.apache.wicket.Component.get(Component.java:4500)
 at org.apache.wicket.MarkupContainer.get(MarkupContainer.java:354)


I wrote a StatelessAbstractDefaultAjaxBehavior overriding geCallbackUrl which I 
use in my StatelessAjaxLazyLoadPanel.

This doesn't seem to be the way. Anyone have any hints?

Thanks,
Karsten


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



DownloadLink

2012-12-05 Thread Altuğ Bilgin Altıntaş
Hi;

Is it possible to trigger form submit before DownloadLink execution.

We need to get some values from the form in order to process pdf.

Any suggestions ?

Thanks.


Re: DownloadLink

2012-12-05 Thread Altuğ Bilgin Altıntaş
Our Wicket version is 1.4.x




On Wed, Dec 5, 2012 at 11:42 AM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

 Hi,

 See


 https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html

 On Wed, Dec 5, 2012 at 10:38 AM, Altuğ Bilgin Altıntaş alt...@gmail.com
 wrote:

  Hi;
 
  Is it possible to trigger form submit before DownloadLink execution.
 
  We need to get some values from the form in order to process pdf.
 
  Any suggestions ?
 
  Thanks.
 



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



Re: DownloadLink

2012-12-05 Thread Martin Grigorov
s/handler/target/


On Wed, Dec 5, 2012 at 10:44 AM, Altuğ Bilgin Altıntaş alt...@gmail.comwrote:

 Our Wicket version is 1.4.x




 On Wed, Dec 5, 2012 at 11:42 AM, Ernesto Reinaldo Barreiro 
 reier...@gmail.com wrote:

  Hi,
 
  See
 
 
 
 https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html
 
  On Wed, Dec 5, 2012 at 10:38 AM, Altuğ Bilgin Altıntaş alt...@gmail.com
  wrote:
 
   Hi;
  
   Is it possible to trigger form submit before DownloadLink execution.
  
   We need to get some values from the form in order to process pdf.
  
   Any suggestions ?
  
   Thanks.
  
 
 
 
  --
  Regards - Ernesto Reinaldo Barreiro
  Antilia Soft
  http://antiliasoft.com/ http://antiliasoft.com/antilia
 




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


Re: DownloadLink

2012-12-05 Thread Altuğ Bilgin Altıntaş
Thanks




On Wed, Dec 5, 2012 at 11:46 AM, Martin Grigorov mgrigo...@apache.orgwrote:

 s/handler/target/


 On Wed, Dec 5, 2012 at 10:44 AM, Altuğ Bilgin Altıntaş alt...@gmail.com
 wrote:

  Our Wicket version is 1.4.x
 
 
 
 
  On Wed, Dec 5, 2012 at 11:42 AM, Ernesto Reinaldo Barreiro 
  reier...@gmail.com wrote:
 
   Hi,
  
   See
  
  
  
 
 https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html
  
   On Wed, Dec 5, 2012 at 10:38 AM, Altuğ Bilgin Altıntaş 
 alt...@gmail.com
   wrote:
  
Hi;
   
Is it possible to trigger form submit before DownloadLink execution.
   
We need to get some values from the form in order to process pdf.
   
Any suggestions ?
   
Thanks.
   
  
  
  
   --
   Regards - Ernesto Reinaldo Barreiro
   Antilia Soft
   http://antiliasoft.com/ http://antiliasoft.com/antilia
  
 



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



Re: wicket-stuff progressbar problem in Wicket 6.3

2012-12-05 Thread hsteisjo
Thanks Martin, it looks like my problem I'll give it a try. Do you know if a
Wicket release is planned in the near future?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-stuff-progressbar-problem-in-Wicket-6-3-tp4654469p4654505.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-stuff progressbar problem in Wicket 6.3

2012-12-05 Thread Martin Grigorov
6.4.0 will be build at Dec 14


On Wed, Dec 5, 2012 at 11:23 AM, hsteisjo hakan.stei...@foxt.com wrote:

 Thanks Martin, it looks like my problem I'll give it a try. Do you know if
 a
 Wicket release is planned in the near future?



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/wicket-stuff-progressbar-problem-in-Wicket-6-3-tp4654469p4654505.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 http://jweekend.com/


Re: Upload file and display its contents using AJAX

2012-12-05 Thread Martin Grigorov
Wicket uses an iframe internally for Ajax file uploads.


On Wed, Dec 5, 2012 at 11:55 AM, pureza pur...@gmail.com wrote:

 I was able to get rid of the submit button, but I don't understand why it
 works (maybe some wicket magic?).

 I have a Form object and in the onSubmit() method I read the uploaded file
 and store it in a model. I also added an AjaxFormSubmitBehavior to the form
 that updates the textarea with the contents of the file via ajax.

 The markup is simply:


 This works fine (i.e. when I choose a file to upload the textarea is
 updated
 with the file's contents), but I don't understand why. The form submission
 does not refresh the whole page, but I was told that the only way I could
 do
 this was using an iframe, which I'm not doing. Please note that I am also
 not using any kind of upload library such as jquery-file-upload.

 Do you have any idea as to why this works the way it does? I'm clueless...

 Thanks!





 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Upload-file-and-display-its-contents-using-AJAX-tp4654473p4654508.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 http://jweekend.com/


Re: Upload file and display its contents using AJAX

2012-12-05 Thread pureza
Thanks Martin, I had just found
https://issues.apache.org/jira/browse/WICKET-2420 before reading your reply!

I guess that clears things.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Upload-file-and-display-its-contents-using-AJAX-tp4654473p4654510.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



Wicket 1.5.8 + Weblogic 9

2012-12-05 Thread sitseva
Hello, 

I recently migrated an application from wicket 1.4.13 to 1.5.8. Everything
was fine in development and test environment (Tomcat 6/7 , Weblogic 11g )
but when i deployed my app to acceptance-testing environment (Weblogic 9), i
have some issues with consecutive ajax calls (ex. navigating through Page
with many AjaxTabs). Weblogic seems to be trying to load resources (ex.
wicket-event.js) but i get 404 because for some reason the '/wicket' word is
added in the context-path twice after the ajax response for the specific
resource.  ex. the first time the page is rendered i see on the FireBug Net
: 

[server]/[context-path]/wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js.
 

after the tab is pressed the resource is requested again but through the
path:

[server]/[context-path]/wicket//wicket/*wicket*/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js


Any ideas? Can i work around this somehow?





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512.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 1.5.8 + Weblogic 9

2012-12-05 Thread Martin Grigorov
What is the url/mount of the of the page where this error happens ?


On Wed, Dec 5, 2012 at 2:22 PM, sitseva dimitris.asves...@gmail.com wrote:

 Hello,

 I recently migrated an application from wicket 1.4.13 to 1.5.8. Everything
 was fine in development and test environment (Tomcat 6/7 , Weblogic 11g )
 but when i deployed my app to acceptance-testing environment (Weblogic 9),
 i
 have some issues with consecutive ajax calls (ex. navigating through Page
 with many AjaxTabs). Weblogic seems to be trying to load resources (ex.
 wicket-event.js) but i get 404 because for some reason the '/wicket' word
 is
 added in the context-path twice after the ajax response for the specific
 resource.  ex. the first time the page is rendered i see on the FireBug Net
 :


 [server]/[context-path]/wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js.

 after the tab is pressed the resource is requested again but through the
 path:


 [server]/[context-path]/wicket//wicket/*wicket*/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js


 Any ideas? Can i work around this somehow?





 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512.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 http://jweekend.com/


Re: Wicket 1.5.8 + Weblogic 9

2012-12-05 Thread sitseva
I am not sure if this is what you mean but when i first load the page the
url requested is just:

[server]/[context-path]/wicket/page?12.

I use an subclass of a simple Link to get there with
setResponsePage(pageInstance);


On Wed, Dec 5, 2012 at 2:28 PM, Martin Grigorov-4 [via Apache Wicket] 
ml-node+s1842946n4654513...@n4.nabble.com wrote:

 What is the url/mount of the of the page where this error happens ?


 On Wed, Dec 5, 2012 at 2:22 PM, sitseva [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4654513i=0
 wrote:

  Hello,
 
  I recently migrated an application from wicket 1.4.13 to 1.5.8.
 Everything
  was fine in development and test environment (Tomcat 6/7 , Weblogic 11g
 )
  but when i deployed my app to acceptance-testing environment (Weblogic
 9),
  i
  have some issues with consecutive ajax calls (ex. navigating through
 Page
  with many AjaxTabs). Weblogic seems to be trying to load resources (ex.
  wicket-event.js) but i get 404 because for some reason the '/wicket'
 word
  is
  added in the context-path twice after the ajax response for the specific
  resource.  ex. the first time the page is rendered i see on the FireBug
 Net
  :
 
 
 
 [server]/[context-path]/wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js.

 
  after the tab is pressed the resource is requested again but through the
  path:
 
 
 
 [server]/[context-path]/wicket//wicket/*wicket*/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js

 
 
  Any ideas? Can i work around this somehow?
 
 
 
 
 
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512.html
  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=4654513i=1
  For additional commands, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=4654513i=2
 
 


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


 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512p4654513.html
  To unsubscribe from Wicket 1.5.8 + Weblogic 9, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4654512code=ZGltaXRyaXMuYXN2ZXN0aXNAZ21haWwuY29tfDQ2NTQ1MTJ8NTMwNTY1NTk0
 .
 NAMLhttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512p4654514.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 1.5.8 + Weblogic 9

2012-12-05 Thread Martin Grigorov
I'm not sure what is the reason for the problem but I think it will
disappear if you explicitly mount this page at some path.

I.e.: MyApp:
mountPage(path, ThePage.class)

In MyOtherPage.java:
setResponsePage(thePageInstance)


On Wed, Dec 5, 2012 at 2:39 PM, sitseva dimitris.asves...@gmail.com wrote:

 I am not sure if this is what you mean but when i first load the page the
 url requested is just:

 [server]/[context-path]/wicket/page?12.

 I use an subclass of a simple Link to get there with
 setResponsePage(pageInstance);


 On Wed, Dec 5, 2012 at 2:28 PM, Martin Grigorov-4 [via Apache Wicket] 
 ml-node+s1842946n4654513...@n4.nabble.com wrote:

  What is the url/mount of the of the page where this error happens ?
 
 
  On Wed, Dec 5, 2012 at 2:22 PM, sitseva [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4654513i=0
  wrote:
 
   Hello,
  
   I recently migrated an application from wicket 1.4.13 to 1.5.8.
  Everything
   was fine in development and test environment (Tomcat 6/7 , Weblogic 11g
  )
   but when i deployed my app to acceptance-testing environment (Weblogic
  9),
   i
   have some issues with consecutive ajax calls (ex. navigating through
  Page
   with many AjaxTabs). Weblogic seems to be trying to load resources (ex.
   wicket-event.js) but i get 404 because for some reason the '/wicket'
  word
   is
   added in the context-path twice after the ajax response for the
 specific
   resource.  ex. the first time the page is rendered i see on the FireBug
  Net
   :
  
  
  
 
 [server]/[context-path]/wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js.
 
  
   after the tab is pressed the resource is requested again but through
 the
   path:
  
  
  
 
 [server]/[context-path]/wicket//wicket/*wicket*/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js
 
  
  
   Any ideas? Can i work around this somehow?
  
  
  
  
  
   --
   View this message in context:
  
 
 http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512.html
   Sent from the Users forum mailing list archive at Nabble.com.
  
   -
   To unsubscribe, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4654513i=1
   For additional commands, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4654513i=2
  
  
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.com http://jweekend.com/
 
 
  --
   If you reply to this email, your message will be added to the discussion
  below:
 
 
 http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512p4654513.html
   To unsubscribe from Wicket 1.5.8 + Weblogic 9, click here
 http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4654512code=ZGltaXRyaXMuYXN2ZXN0aXNAZ21haWwuY29tfDQ2NTQ1MTJ8NTMwNTY1NTk0
 
  .
  NAML
 http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
 
 




 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512p4654514.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 http://jweekend.com/


Re: Wicket 1.5.8 + Weblogic 9

2012-12-05 Thread sitseva
many thanx, I ll try this and see


On Wed, Dec 5, 2012 at 2:43 PM, Martin Grigorov-4 [via Apache Wicket] 
ml-node+s1842946n4654515...@n4.nabble.com wrote:

 I'm not sure what is the reason for the problem but I think it will
 disappear if you explicitly mount this page at some path.

 I.e.: MyApp:
 mountPage(path, ThePage.class)

 In MyOtherPage.java:
 setResponsePage(thePageInstance)


 On Wed, Dec 5, 2012 at 2:39 PM, sitseva [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4654515i=0
 wrote:

  I am not sure if this is what you mean but when i first load the page
 the
  url requested is just:
 
  [server]/[context-path]/wicket/page?12.
 
  I use an subclass of a simple Link to get there with
  setResponsePage(pageInstance);
 
 
  On Wed, Dec 5, 2012 at 2:28 PM, Martin Grigorov-4 [via Apache Wicket] 
  [hidden email] http://user/SendEmail.jtp?type=nodenode=4654515i=1
 wrote:
 
   What is the url/mount of the of the page where this error happens ?
  
  
   On Wed, Dec 5, 2012 at 2:22 PM, sitseva [hidden email]
  http://user/SendEmail.jtp?type=nodenode=4654513i=0
   wrote:
  
Hello,
   
I recently migrated an application from wicket 1.4.13 to 1.5.8.
   Everything
was fine in development and test environment (Tomcat 6/7 , Weblogic
 11g
   )
but when i deployed my app to acceptance-testing environment
 (Weblogic
   9),
i
have some issues with consecutive ajax calls (ex. navigating through
   Page
with many AjaxTabs). Weblogic seems to be trying to load resources
 (ex.
wicket-event.js) but i get 404 because for some reason the '/wicket'
   word
is
added in the context-path twice after the ajax response for the
  specific
resource.  ex. the first time the page is rendered i see on the
 FireBug
   Net
:
   
   
   
  
 
 [server]/[context-path]/wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js.

  
   
after the tab is pressed the resource is requested again but through
  the
path:
   
   
   
  
 
 [server]/[context-path]/wicket//wicket/*wicket*/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js

  
   
   
Any ideas? Can i work around this somehow?
   
   
   
   
   
--
View this message in context:
   
  
 
 http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512.html
Sent from the Users forum mailing list archive at Nabble.com.
   
   
 -
To unsubscribe, e-mail: [hidden email]
  http://user/SendEmail.jtp?type=nodenode=4654513i=1
For additional commands, e-mail: [hidden email]
  http://user/SendEmail.jtp?type=nodenode=4654513i=2
   
   
  
  
   --
   Martin Grigorov
   jWeekend
   Training, Consulting, Development
   http://jWeekend.com http://jweekend.com/
  
  
   --
If you reply to this email, your message will be added to the
 discussion
   below:
  
  
 
 http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512p4654513.html
To unsubscribe from Wicket 1.5.8 + Weblogic 9, click here
 
 
   .
   NAML
 
 http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml

  
  
 
 
 
 
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512p4654514.html

  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=4654515i=2
  For additional commands, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=4654515i=3
 
 


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


 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512p4654515.html
  To unsubscribe from Wicket 1.5.8 + Weblogic 9, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4654512code=ZGltaXRyaXMuYXN2ZXN0aXNAZ21haWwuY29tfDQ2NTQ1MTJ8NTMwNTY1NTk0
 .
 

Re: Syncing files with designers

2012-12-05 Thread Edgar Merino
Hello Jan, that seems like a good approach. However, I think I'm missing 
something: since every WebPage in wicket has straight access to 
resources located in the web root (that is, every path reference in the 
page's markup is relative to the web root), I would like to avoid using 
folders to organize html files so the designers can put all the 
resources they need in their root folder. The mechanism you describe, 
seems to use folders, how are you managing this for the designers?



Edgar Merino


On 04/12/12 04:15, Jan Riehn wrote:

Hello Edgar,

Yes, this is how it works.

For the best separation of the responsibilities, you may store the 
resources outside of the web application (Think about a complete 
physical separation).
We've made a good experience to break-off with wicket's given package 
structure - wicket's resource localization does not fit with a 
separation of the responsibilities: the web designer has no knowledge 
about the internal package structure and it's not resistant against 
refactoring. Therefore, we use a more technical mechanism based on 
style, variation locale and the filename.


1. prefix/style/variation/locale/filename.extension
2. prefix/style/variation/filename.extension
3. prefix/style/filename.extension
4. prefix/filename.extension
5. filename.extension


Best regards,

Jan

On 12/04/2012 09:04 AM, Edgar Merino wrote:

Hello, I would like our designers to work with a simple folder structure
on our application pages markup, and we would like to avoid including
java source code files with the files we share with them. What is the
best way to do this? I though about implementing a custom
ResourceStreamLocator, so I can for instance name our html files using
the fqcn e.g. my.company.HomePage.html and placing these files in the
default package (under src/main/html for example).

Is this the way to go?

Thanks in advance,
Edgar Merino

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







Possible to use static IBehavior/ReadOnlyModels?

2012-12-05 Thread Davli
Well as the title says... 
Would this be possible assuming that they have have no real relation to a
value in a session?
For example:

An AttributeAppender that always appends the same value.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Possible-to-use-static-IBehavior-ReadOnlyModels-tp4654507.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 1.5.8 + Weblogic 9

2012-12-05 Thread sitseva
Nope, tried it. Works for the Page url but Weblogic 9 messes up content in
consecutive ajax calls.

I have a Page with many AjaxTabs that render panels . Each tab panel
includes a modal window also and has a form that submits with an
AjaxSubmitLink. On weblogic 9 only there seems to be a request for
wicket-event.js that fails with 404 after each ajax response.


On Wed, Dec 5, 2012 at 2:46 PM, Dimitris Asvestis 
dimitris.asves...@gmail.com wrote:

 many thanx, I ll try this and see



 On Wed, Dec 5, 2012 at 2:43 PM, Martin Grigorov-4 [via Apache Wicket] 
 ml-node+s1842946n4654515...@n4.nabble.com wrote:

 I'm not sure what is the reason for the problem but I think it will
 disappear if you explicitly mount this page at some path.

 I.e.: MyApp:
 mountPage(path, ThePage.class)

 In MyOtherPage.java:
 setResponsePage(thePageInstance)


 On Wed, Dec 5, 2012 at 2:39 PM, sitseva [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4654515i=0
 wrote:

  I am not sure if this is what you mean but when i first load the page
 the
  url requested is just:
 
  [server]/[context-path]/wicket/page?12.
 
  I use an subclass of a simple Link to get there with
  setResponsePage(pageInstance);
 
 
  On Wed, Dec 5, 2012 at 2:28 PM, Martin Grigorov-4 [via Apache Wicket] 
  [hidden email] http://user/SendEmail.jtp?type=nodenode=4654515i=1
 wrote:
 
   What is the url/mount of the of the page where this error happens ?
  
  
   On Wed, Dec 5, 2012 at 2:22 PM, sitseva [hidden email]
  http://user/SendEmail.jtp?type=nodenode=4654513i=0
   wrote:
  
Hello,
   
I recently migrated an application from wicket 1.4.13 to 1.5.8.
   Everything
was fine in development and test environment (Tomcat 6/7 , Weblogic
 11g
   )
but when i deployed my app to acceptance-testing environment
 (Weblogic
   9),
i
have some issues with consecutive ajax calls (ex. navigating
 through
   Page
with many AjaxTabs). Weblogic seems to be trying to load resources
 (ex.
wicket-event.js) but i get 404 because for some reason the
 '/wicket'
   word
is
added in the context-path twice after the ajax response for the
  specific
resource.  ex. the first time the page is rendered i see on the
 FireBug
   Net
:
   
   
   
  
 
 [server]/[context-path]/wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js.

  
   
after the tab is pressed the resource is requested again but
 through
  the
path:
   
   
   
  
 
 [server]/[context-path]/wicket//wicket/*wicket*/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js

  
   
   
Any ideas? Can i work around this somehow?
   
   
   
   
   
--
View this message in context:
   
  
 
 http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512.html
Sent from the Users forum mailing list archive at Nabble.com.
   
   
 -
To unsubscribe, e-mail: [hidden email]
  http://user/SendEmail.jtp?type=nodenode=4654513i=1
For additional commands, e-mail: [hidden email]
  http://user/SendEmail.jtp?type=nodenode=4654513i=2
   
   
  
  
   --
   Martin Grigorov
   jWeekend
   Training, Consulting, Development
   http://jWeekend.com http://jweekend.com/
  
  
   --
If you reply to this email, your message will be added to the
 discussion
   below:
  
  
 
 http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512p4654513.html
To unsubscribe from Wicket 1.5.8 + Weblogic 9, click here
 
 
   .
   NAML
 
 http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml

  
  
 
 
 
 
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512p4654514.html

  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=4654515i=2
  For additional commands, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=4654515i=3
 
 


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


 --
  If you reply to this email, your message will be added to the
 discussion below:

 http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512p4654515.html
  To unsubscribe from Wicket 1.5.8 + Weblogic 9, click 
 

Re: Possible to use static IBehavior/ReadOnlyModels?

2012-12-05 Thread Igor Vaynberg
yes, you can use singleton instances as long as they are threadsafe.

-igor

On Wed, Dec 5, 2012 at 2:40 AM, Davli lidz@gmail.com wrote:
 Well as the title says...
 Would this be possible assuming that they have have no real relation to a
 value in a session?
 For example:

 An AttributeAppender that always appends the same value.



 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Possible-to-use-static-IBehavior-ReadOnlyModels-tp4654507.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: Syncing files with designers

2012-12-05 Thread Jan Riehn

Hello Edgar,

 I think I'm missing something: since every WebPage in wicket has 
straight access to resources located in the web root  (that is, every 
path reference in the page's markup is relative to the web root)


Wicket is able to locate resources outside of the web application: This 
could be done by implementing an own IResourceFinder:


public final class FileSystemResourceFinder implements IResourceFinder {
private final Resource resource;

public FileSystemResourceFinder(Resource resource) {
this.resource = resource;
}

@Override
public IResourceStream find(Class? clazz, String pathname) {
try {
final File file = new File(resource.getFile(), pathname);
if (file.exists()) {
return new FileResourceStream(file);
}
} catch (final IOException e) {
// ignore, file couldn't be found
}
return null;
}
}

At least you've to add the resource finder to the resource finders list 
with getResourceSettings().setResourceFinders(resourceFinderList) in 
your applications init method. Alternatively, implement a custom 
ResourceStreamLocator. At first the Locator should use the 
FileSystemResourceFinder - if there's no match the locator should 
fallback to wicket's default resource finder. So far, your application 
is able to locate resources from the local file system.


 I would like to avoid using folders to organise html files so the 
designers can put all the resources they need in their root folder. The 
mechanism you describe, seems to use folders, how are you managing this 
for the designers?


We thought the same - but this not 
http://www.dict.cc/englisch-deutsch/manageable.htmlmanageable with 
more than 50 files in one folder. So we decide to use folders - as 
already mentioned. Perhaps I'll write a tutorial...



Best regards,

Jan


On 12/05/2012 02:49 PM, Edgar Merino wrote:
Hello Jan, that seems like a good approach. However, I think I'm 
missing something: since every WebPage in wicket has straight access 
to resources located in the web root (that is, every path reference in 
the page's markup is relative to the web root), I would like to avoid 
using folders to organize html files so the designers can put all the 
resources they need in their root folder. The mechanism you describe, 
seems to use folders, how are you managing this for the designers?



Edgar Merino


On 04/12/12 04:15, Jan Riehn wrote:

Hello Edgar,

Yes, this is how it works.

For the best separation of the responsibilities, you may store the 
resources outside of the web application (Think about a complete 
physical separation).
We've made a good experience to break-off with wicket's given package 
structure - wicket’s resource localization does not fit with a 
separation of the responsibilities: the web designer has no knowledge 
about the internal package  structure and it's not resistant against 
refactoring. Therefore, we use a more technical mechanism based on 
style, variation locale and the filename.


1. prefix/style/variation/locale/filename.extension
2. prefix/style/variation/filename.extension
3. prefix/style/filename.extension
4. prefix/filename.extension
5. filename.extension


Best regards,

Jan

On 12/04/2012 09:04 AM, Edgar Merino wrote:

Hello, I would like our designers to work with a simple folder structure
on our application pages markup, and we would like to avoid including
java source code files with the files we share with them. What is the
best way to do this? I though about implementing a custom
ResourceStreamLocator, so I can for instance name our html files using
the fqcn e.g. my.company.HomePage.html and placing these files in the
default package (under src/main/html for example).

Is this the way to go?

Thanks in advance,
Edgar Merino

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









Re: Possible to use static IBehavior/ReadOnlyModels?

2012-12-05 Thread Dan Retzlaff
Might be worth noting that as soon as it goes through a serialization
round-trip it's no longer a singleton. Not a concern for a trivial
AttributeAppender, but it's a Wicket+static+serialization gotcha we learned
the hard way. :)

On Wed, Dec 5, 2012 at 4:40 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 yes, you can use singleton instances as long as they are threadsafe.

 -igor

 On Wed, Dec 5, 2012 at 2:40 AM, Davli lidz@gmail.com wrote:
  Well as the title says...
  Would this be possible assuming that they have have no real relation to a
  value in a session?
  For example:
 
  An AttributeAppender that always appends the same value.
 
 
 
  --
  View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Possible-to-use-static-IBehavior-ReadOnlyModels-tp4654507.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: Possible to use static IBehavior/ReadOnlyModels?

2012-12-05 Thread Igor Vaynberg
true, but you can override writereplace() and readresolve() to keep it
a singleton. further, even though it is no longer a singleton within a
given page there will be only one instance of it even when
serialized/deserialized, so you still get some memory savings.

-igor

On Wed, Dec 5, 2012 at 9:37 AM, Dan Retzlaff dretzl...@gmail.com wrote:
 Might be worth noting that as soon as it goes through a serialization
 round-trip it's no longer a singleton. Not a concern for a trivial
 AttributeAppender, but it's a Wicket+static+serialization gotcha we learned
 the hard way. :)

 On Wed, Dec 5, 2012 at 4:40 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 yes, you can use singleton instances as long as they are threadsafe.

 -igor

 On Wed, Dec 5, 2012 at 2:40 AM, Davli lidz@gmail.com wrote:
  Well as the title says...
  Would this be possible assuming that they have have no real relation to a
  value in a session?
  For example:
 
  An AttributeAppender that always appends the same value.
 
 
 
  --
  View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Possible-to-use-static-IBehavior-ReadOnlyModels-tp4654507.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: Wicket 1.5.8 + Weblogic 9

2012-12-05 Thread sitseva
UPDATE,

your solution works fine with weblogic 9 , i just had to put a string
without dashes like you did. ex. path works, path/something does not
work. Thanx a lot


On Wed, Dec 5, 2012 at 5:04 PM, Dimitris Asvestis 
dimitris.asves...@gmail.com wrote:

 Nope, tried it. Works for the Page url but Weblogic 9 messes up content in
 consecutive ajax calls.

 I have a Page with many AjaxTabs that render panels . Each tab panel
 includes a modal window also and has a form that submits with an
 AjaxSubmitLink. On weblogic 9 only there seems to be a request for
 wicket-event.js that fails with 404 after each ajax response.


 On Wed, Dec 5, 2012 at 2:46 PM, Dimitris Asvestis 
 dimitris.asves...@gmail.com wrote:

 many thanx, I ll try this and see



 On Wed, Dec 5, 2012 at 2:43 PM, Martin Grigorov-4 [via Apache Wicket] 
 ml-node+s1842946n4654515...@n4.nabble.com wrote:

 I'm not sure what is the reason for the problem but I think it will
 disappear if you explicitly mount this page at some path.

 I.e.: MyApp:
 mountPage(path, ThePage.class)

 In MyOtherPage.java:
 setResponsePage(thePageInstance)


 On Wed, Dec 5, 2012 at 2:39 PM, sitseva [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4654515i=0
 wrote:

  I am not sure if this is what you mean but when i first load the page
 the
  url requested is just:
 
  [server]/[context-path]/wicket/page?12.
 
  I use an subclass of a simple Link to get there with
  setResponsePage(pageInstance);
 
 
  On Wed, Dec 5, 2012 at 2:28 PM, Martin Grigorov-4 [via Apache Wicket]
 
  [hidden email] http://user/SendEmail.jtp?type=nodenode=4654515i=1
 wrote:
 
   What is the url/mount of the of the page where this error happens ?
  
  
   On Wed, Dec 5, 2012 at 2:22 PM, sitseva [hidden email]
  http://user/SendEmail.jtp?type=nodenode=4654513i=0
   wrote:
  
Hello,
   
I recently migrated an application from wicket 1.4.13 to 1.5.8.
   Everything
was fine in development and test environment (Tomcat 6/7 ,
 Weblogic 11g
   )
but when i deployed my app to acceptance-testing environment
 (Weblogic
   9),
i
have some issues with consecutive ajax calls (ex. navigating
 through
   Page
with many AjaxTabs). Weblogic seems to be trying to load resources
 (ex.
wicket-event.js) but i get 404 because for some reason the
 '/wicket'
   word
is
added in the context-path twice after the ajax response for the
  specific
resource.  ex. the first time the page is rendered i see on the
 FireBug
   Net
:
   
   
   
  
 
 [server]/[context-path]/wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js.

  
   
after the tab is pressed the resource is requested again but
 through
  the
path:
   
   
   
  
 
 [server]/[context-path]/wicket//wicket/*wicket*/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js

  
   
   
Any ideas? Can i work around this somehow?
   
   
   
   
   
--
View this message in context:
   
  
 
 http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512.html
Sent from the Users forum mailing list archive at Nabble.com.
   
   
 -
To unsubscribe, e-mail: [hidden email]
  http://user/SendEmail.jtp?type=nodenode=4654513i=1
For additional commands, e-mail: [hidden email]
  http://user/SendEmail.jtp?type=nodenode=4654513i=2
   
   
  
  
   --
   Martin Grigorov
   jWeekend
   Training, Consulting, Development
   http://jWeekend.com http://jweekend.com/
  
  
   --
If you reply to this email, your message will be added to the
 discussion
   below:
  
  
 
 http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512p4654513.html
To unsubscribe from Wicket 1.5.8 + Weblogic 9, click here
 
 
   .
   NAML
 
 http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml

  
  
 
 
 
 
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512p4654514.html

  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=4654515i=2
  For additional commands, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=4654515i=3
 
 


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


 --
  If you reply to this email, your message will 

How to call a Wicket Ajax click event

2012-12-05 Thread Jered Myers

Wicket 6.3

How do I call a click event on an AjaxLink from via jQuery or 
JavaScript?  I have an AjaxLink that I have added to the page and after 
I run some JavaScript, I want to pragmatically click the link with 
JavaScript.  This broke when updating from Wicket 1.5 to 6.  It appears 
that the onclick attribute is no longer on my link and I am not sure how 
to call the events that Wicket has registered in the head.


--
Jered Myers


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



Re: How to call a Wicket Ajax click event

2012-12-05 Thread Jered Myers
The link here is actually an AjaxSubmitLink and not an AjaxLink.  I am 
trying to get back to the onSubmit on the server side.  I saw 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Ajax-Behaviors-td4654398.html, 
but $(mylink).triggerHandler('click') doesn't seem to be working. Do I 
treat the trigger on an AjaxSubmitLink different from a regular AjaxLink?


On 12/05/2012 03:28 PM, Jered Myers wrote:

Wicket 6.3

How do I call a click event on an AjaxLink from via jQuery or 
JavaScript?  I have an AjaxLink that I have added to the page and 
after I run some JavaScript, I want to pragmatically click the link 
with JavaScript.  This broke when updating from Wicket 1.5 to 6.  It 
appears that the onclick attribute is no longer on my link and I am 
not sure how to call the events that Wicket has registered in the head.






Select2Choice dropdown box is not appeared in correct position

2012-12-05 Thread Madasamy mcruncher
   we are using wicket-select2 2.0 in our application. A form
having a Select2Choice field when click this field the search
dropdown box is not appeared in correct position. But this is
work fine on my quick start. our application is depending on
bootstrap css and js.

My observation , select2choice field html code look like in

 * myQuickstart

  div id=s2id_foo2 class=select2-container style=width: 300px
  a class=select2-choice onclick=return false; href=# tabindex=-1
  div class=select2-drop *select2-with-searchbox* select2-drop-active
select2-offscreen style=display: block;
  /div
  input id=foo2 type=hidden name=foo value= style=width: 300px;
display: none; wicket:id=foo

 * our application,

  div id=s2id_typed class=select2-container style=width: 300px
  a class=select2-choice onclick=return false; href=# tabindex=-1
  div class=select2-drop select2-offscreen style=display: block;
  /div
  input id=typed class=select2-choice-text type=hidden name=type
value= wicket:id=type style=display: none;

The Css class  *select2-with-searchbox* is not added in our application
html code.

can you give suggestion to solve this problem?


Re: Returning XML or HTML

2012-12-05 Thread Sven Meier

You'll have to let Wicket know that you wrote the response by yourself.

With |RestartResponseException| you can switch to another response. In 
your case you could direct the request to a resource first (since your 
XML doesn't seem be component-based) and switch to a page in case of 
missing parameters.


Sven


On 12/06/2012 04:49 AM, McDonough, Jonathan wrote:

Hi all,
I am trying to create a WebPage that returns either XML or HTML depending upon 
if a parameter is supplied. If the parameter is supplied, return a custom XML 
document. Otherwise return an HTML page with an error message. The code I wrote 
produces these results, which is great. But it is also throwing an exception 
(below) to the console. Does anyone know how to go about fixing this?

I am using Java 6 and Wicket 6.2.0

Thanks
Jon

Here is the code for DocumentPage.java:
 public DocumentPage(final PageParameters parameters) {
 setStatelessHint(true);

 // Get the ID
 final org.apache.wicket.util.string.StringValue idStringValue 
= parameters.get(0);
 if (idStringValue == null || idStringValue.isEmpty()) {
 add(new Label(errorMsg, Please supply an ID));
 return;
 }


 // Get the CTS2 XML from the database
 final String id = idStringValue.toString();


 // Send the output
 add(new Label(errorMsg, ));
 String content = resultentry + id + /entry/result;

 RequestCycle.get().getOriginalResponse().write(content);
 }


DocumentPage.html:
html
 head
 titleError/title
 /head

 body
 span wicket:id=errorMsg /
 /body
/html


2012-12-05 22:36:32,976 ERROR  [RequestCycle] Error during processing error 
message
java.lang.IllegalStateException: Header was already written to response!
 at 
org.apache.wicket.protocol.http.HeaderBufferingWebResponse.checkHeader(HeaderBufferingWebResponse.java:64)
 at 
org.apache.wicket.protocol.http.HeaderBufferingWebResponse.sendError(HeaderBufferingWebResponse.java:105)
 at 
org.apache.wicket.request.http.handler.ErrorCodeRequestHandler.respond(ErrorCodeRequestHandler.java:77)
 at 
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:830)
 at 
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
 at 
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:302)
 at 
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
 at 
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
 at 
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
 at 
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
 at 
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
 at 
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
 at 
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
 at 
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
 at 
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
 at 
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
 at 
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:225)
 at 
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:281)
 at 
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
 at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:245)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
 at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
 at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
 at 

Re: Model is null after submit, using FormComponentPanel

2012-12-05 Thread Paul Borș
Take a look at https://cwiki.apache.org/WICKET/working-with-wicket-models.html

Okay so Account is the type of the model object and your FormComponentPanel 
seem to work off a CustomerAccountCodeModel:
 CustomerAccountCodeModel ccc = getModelObject();


If I'm understanding this right, what does your CustomerAccountCodeModel's 
getObject() and setObject() do?

I would switch to a CompundPropertyModel and I would leave the models null for 
the form fields. This way you won't need any your own implementation of 
onModelChange().

~ Thank you,
Paul Bors

On Dec 4, 2012, at 1:48 PM, Joachim Schrod jsch...@acm.org wrote:

 Raul wrote:
 Thank Col, But I have no validation, my component code is the code of the
 component is
 
 public class CustomerAccountCode extends
FormComponentPanelAccount {
 
private FormComponentString entity;
private FormComponentString office;
private FormComponentString dc;
private FormComponentString number;
 
 
public CustomerAccountCode(String id, ModelAccount model) {
super(id, model);

entity = new TextFieldString(entity, new ModelString());
office = new TextFieldString(office, new ModelString());
dc = new TextFieldString(dc, new ModelString());
number = new TextFieldString(number, new ModelString());
 
onModelChanged();
add(entity);
add(office);
add(dc);
add(number);
 //add(CustomerAccountCodeValidator.getInstance());
 
}
 
protected void onModelChanged() {
super.onModelChanged();
CustomerAccountCodeModel ccc = getModelObject();
if (ccc != null) {
entity.setModelObject(ccc.getEntity());
office.setModelObject(ccc.getOffice());
dc.setModelObject(ccc.getDc());
number.setModelObject(ccc.getAccount());
} else {
entity.setModelObject(null);
office.setModelObject(null);
dc.setModelObject(null);
number.setModelObject(null);
}
}
 
 Did you try to use PropertyModels of your account object, maybe a
 CompoundPropertyModel instead of setting the TextField's model
 objects in the constructor that way?
 
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