Re: Relative link in JavaScript

2010-09-11 Thread Martin Grigorov
see ContextImage class

On Sat, Sep 11, 2010 at 12:59 AM, Itun itun@yandex.ru wrote:


 I have JavaScript text in which there are links to pictures.
 They can not be changed.
 There are folder with pictures: /WEB-INF/.../images
 I don`t want to change their position
 How can I contact links with pictures?
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Relative-link-in-JavaScript-tp2535193p2535193.html
 Sent from the Wicket - User 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: Close modal window on session timeout

2010-09-11 Thread Ernesto Reinaldo Barreiro
Do you mean put this script on your home page? So that modal window is
closed and parent is redirected to home? Nice trick;-)

Ernesto

On Sat, Sep 11, 2010 at 6:09 AM, Alexander Morozov
alexander.v.moro...@gmail.com wrote:

 Have you try to close modal window with JS ?

      script type=text/javascript!--
        if (top != self) {
          var wicket = top.Wicket;
          if (wicket  wicket.Window) {
            var modal = wicket.Window.get();
            if (modal) {
              modal.close();
            }
          }
          top.location.href = location.href;
        }
      //--/script

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Close-modal-window-on-session-timeout-tp2534936p2535376.html
 Sent from the Wicket - User 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: Wicket 1.4.11 seems to have Ajax support broken under Firefox 3.6.x

2010-09-11 Thread vladimir.kovalyuk

You're not alone.
I upgraded to wicket 1.4.11  and noticed  that the ajax handling was broked.
Rolled back to 1.4.10 and ajax handling was broken. Ctrl+R in FF helped.
Probably something is wrong in wicket-ajax.js?

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4-11-seems-to-have-Ajax-support-broken-under-Firefox-3-6-x-tp2534120p2535557.html
Sent from the Wicket - User 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: Close modal window on session timeout

2010-09-11 Thread Alexander Morozov

Yep, just put it to home (base) page.

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Close-modal-window-on-session-timeout-tp2534936p2535578.html
Sent from the Wicket - User 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 is the best slideshow?

2010-09-11 Thread Paolo
I found this:

http://lazydev.ildella.net/wicket-slides-080-released-with-smoothgallery

Is it the best solution to show a sequence of image?

I don't like to use flash. And this use javascript, so it may be OK.

thank you.

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



Re: Relative link in JavaScript

2010-09-11 Thread Itun

It does not help.
ContextImage attaches to the component.
I need simple declaration that, for example, link images/new.gif in this
page relate with source in /WEB-INF/.../images/new.gif.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Relative-link-in-JavaScript-tp2535193p2535648.html
Sent from the Wicket - User 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: Could not find root ajax-response element

2010-09-11 Thread Adrian Wiesmann

On 9/9/10 6:43 PM, Igor Vaynberg wrote:

very strange indeed. do you have any behaviors that write directly to
the response? even that, i dont think, would cause this. create a
quickstart and attach it to a jira issue.


I guess I found the error. I have a UI engine which takes an XML 
formatted document and renders a Wicket based page from it (we call it 
Gozer, you know what it means if you know what XUL means :) ). All 
events are handled by a Controller which checks what state the page is 
in (edit, readonly) and which manages the content. Now we have a special 
component we can use, this is a listdetail. Basically it is a component 
which can toggle between a list and a detail view. The list is just a 
normal Wicket list, the detail is a repeater which dynamically renders 
the correct amount of captions and fields.


We had some strange problem where the detail component was not rendered 
correctly after some events. We solved this with calling


 DetailPanel.renderComponent()

whenever something changed.

Now that worked quite nicely. Until we started to introduce Ajax based 
commands. Now the call to renderComponent is called before the 
AjaxRequestTarget.addComponent(). Which means, that there is some text 
in the response before Wicket starts with the XML formatted ajax response.


Which brings me to the question. How should we handle the 
renderComponent? How can we make sure, that components do rerender, but 
not doing so ourselves but have the Wicket framework ask for the rendering.


Thanks,
Adrian

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



Re: Relative link in JavaScript

2010-09-11 Thread Igor Vaynberg
you cannot stream anything out of web-inf, so you will have to change
them, unless you map a servlet that will do the sreaming for you.

-igor

On Sat, Sep 11, 2010 at 5:49 AM, Itun itun@yandex.ru wrote:

 It does not help.
 ContextImage attaches to the component.
 I need simple declaration that, for example, link images/new.gif in this
 page relate with source in /WEB-INF/.../images/new.gif.
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Relative-link-in-JavaScript-tp2535193p2535648.html
 Sent from the Wicket - User 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: Relative link in JavaScript

2010-09-11 Thread Itun

You do not understand.
http://apache-wicket.1842946.n4.nabble.com/file/n2535721/Untitled.png 
This is a structure of my project (part).
In News.java (WebPage) I connect javascript files (from folder
/WEB-INF/js/DocumentEditor/). Javascript is well connected. Everything
works. Until this moment all is well.
Problem: in this Javascript there are using of pictures (from folder
/WEB-INF/img/DocumentEditor/images and file
/WEB-INF/img/DocumentEditor/icons.png). They do not appear.

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Relative-link-in-JavaScript-tp2535193p2535721.html
Sent from the Wicket - User 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: Relative link in JavaScript

2010-09-11 Thread Igor Vaynberg
and so you have a servlet that streams files out of WEB-INF? because
servlet containers will not do that for you.

-igor

On Sat, Sep 11, 2010 at 7:51 AM, Itun itun@yandex.ru wrote:

 You do not understand.
 http://apache-wicket.1842946.n4.nabble.com/file/n2535721/Untitled.png
 This is a structure of my project (part).
 In News.java (WebPage) I connect javascript files (from folder
 /WEB-INF/js/DocumentEditor/). Javascript is well connected. Everything
 works. Until this moment all is well.
 Problem: in this Javascript there are using of pictures (from folder
 /WEB-INF/img/DocumentEditor/images and file
 /WEB-INF/img/DocumentEditor/icons.png). They do not appear.

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Relative-link-in-JavaScript-tp2535193p2535721.html
 Sent from the Wicket - User 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: Relative link in JavaScript

2010-09-11 Thread Itun

No, I have not. I was hoping that Wicket has, because it is engaged in the
distribution of resources.
If Wicket has those funds gone, could you suggest how to do it. I would be
grateful to you if you will send an example to email itun@yandex.ru.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Relative-link-in-JavaScript-tp2535193p2535765.html
Sent from the Wicket - User 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: What is the best slideshow?

2010-09-11 Thread Daniel Frisk
I really like Exposure that a friend of mine has made. There is no Wicket 
wrapper for it (yet) but you can easily integrate it yourself.

http://exposureforjquery.wordpress.com/

// Daniel


On 11 sep 2010, at 13:27, Paolo wrote:

 I found this:
 
 http://lazydev.ildella.net/wicket-slides-080-released-with-smoothgallery
 
 Is it the best solution to show a sequence of image?
 
 I don't like to use flash. And this use javascript, so it may be OK.
 
 thank you.
 
 -
 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: Relative link in JavaScript

2010-09-11 Thread Igor Vaynberg
serving anything out of WEB-INF is a security risk because it contains
configuration files. i suggest you rearrange your site so your
resources are not in WEB-INF, or if they are they are in your java
package structure - then wicket can serve them for you.

-igor

On Sat, Sep 11, 2010 at 8:52 AM, Itun itun@yandex.ru wrote:

 No, I have not. I was hoping that Wicket has, because it is engaged in the
 distribution of resources.
 If Wicket has those funds gone, could you suggest how to do it. I would be
 grateful to you if you will send an example to email itun@yandex.ru.
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Relative-link-in-JavaScript-tp2535193p2535765.html
 Sent from the Wicket - User 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: Relative link in JavaScript

2010-09-11 Thread Itun

So You propose to move the folder (img, css, html, js) into /WEB-INF/class
folder. Wicket help me to stream image from here? Can you tell me some means
how to do this in Wicket? Because on the Internet there is nothing.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Relative-link-in-JavaScript-tp2535193p2535779.html
Sent from the Wicket - User 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: Relative link in JavaScript

2010-09-11 Thread Martin Grigorov
Put the resources next to the .class files, then in your .html use
wicket:linkimg src=name.gif//wicket:link
Wicket magically will load the image for you.

On Sat, Sep 11, 2010 at 6:20 PM, Itun itun@yandex.ru wrote:


 So You propose to move the folder (img, css, html, js) into
 /WEB-INF/class
 folder. Wicket help me to stream image from here? Can you tell me some
 means
 how to do this in Wicket? Because on the Internet there is nothing.
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Relative-link-in-JavaScript-tp2535193p2535779.html
 Sent from the Wicket - User 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: Relative link in JavaScript

2010-09-11 Thread Itun

Read from the beginning. I have link to images from JavaScript.

So You propose to move folders (img, css, html, js) into /WEB-INF/classes
folder. Wicket help me to stream image from here? Can you tell me some means
how to do this in Wicket? Because on the Internet there is nothing. 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Relative-link-in-JavaScript-tp2535193p2535801.html
Sent from the Wicket - User 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: Relative link in JavaScript

2010-09-11 Thread Martin Grigorov
What's the reason not to put the images/ next to WEB-INF/ ? Like a normal
application

On Sat, Sep 11, 2010 at 6:45 PM, Itun itun@yandex.ru wrote:


 Read from the beginning. I have link to images from JavaScript.

 So You propose to move folders (img, css, html, js) into /WEB-INF/classes
 folder. Wicket help me to stream image from here? Can you tell me some
 means
 how to do this in Wicket? Because on the Internet there is nothing.
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Relative-link-in-JavaScript-tp2535193p2535801.html
 Sent from the Wicket - User 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: Relative link in JavaScript

2010-09-11 Thread James Carman
 On Sat, Sep 11, 2010 at 6:45 PM, Itun itun@yandex.ru wrote:


 Read from the beginning. I have link to images from JavaScript.

 So You propose to move folders (img, css, html, js) into /WEB-INF/classes
 folder. Wicket help me to stream image from here? Can you tell me some
 means
 how to do this in Wicket? Because on the Internet there is nothing.
 --

Try the JavaDocs (that is part of the internet I believe).  Look at
the Image class and how it loads images (resources/resource
references).  You might be interested in PackageResource, perhaps?

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



Re: Header requiring to be contributed through page load and not ajax...

2010-09-11 Thread Alexander Morozov

Hi!

Check this jQ plugin http://docs.jquery.com/Plugins/livequery

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Header-requiring-to-be-contributed-through-page-load-and-not-ajax-tp2533526p2535816.html
Sent from the Wicket - User 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: StringResourceModel - On the Fly

2010-09-11 Thread msantos

Hi there.

Is really this that i was looking for. Passing the Panel instance to the
component variable, it finds the respective property file and returns the
value.

Thanks a lot man 5* to your help

See ya
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/StringResourceModel-On-the-Fly-tp2528345p2535954.html
Sent from the Wicket - User 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: Relative link in JavaScript

2010-09-11 Thread Itun

Thank you all. Solved the problem.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Relative-link-in-JavaScript-tp2535193p2535961.html
Sent from the Wicket - User 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