Re: OnlyTargetActivePage param

2010-03-06 Thread FakeBoy

Hi,
I understand the usege of this two methods. But what I really don't
understand is that one of them create callback adress which can be process
also on non-active page, but second not.

In my app I had to switch off multi window support. So now I have only one
page map for 
all my pages (also opened in other tabs or window.)
Problem is that my page is composed from several component especially
AjaxLink and 
AjaxButton. So when I open some other page in new tab and then return to
first page
some components do nothing (AjaxButton -> resolve EmptyRequestTarget) and
other works fine (AjaxLink). I tried to find what's the prob and found that
reason is differece between set onlyTargetActivePage param (see my first
question in this thread). 

Dave.



Pedro H. O. dos Santos wrote:
> 
> One method will return an url that address the behavior, the another one
> will to return an script that send an ajax request to that behaviour.
> the usage in javascript looks like:
> document.location = generatedUrlReturnedByBehaviour;
> eval( generatedScriptGeneratedByBehaviour);
> 
> On Thu, Mar 4, 2010 at 6:12 PM, David Skuben 
> wrote:
> 
>> Hi everybody,
>>
>> I'm now looking in classes AbstractAjaxBehavior and
>> AbstractDefaultAjaxBehavior.
>> There are two similar methods: getCallbackUrl() and getCallbackScript()
>> and
>> I don't understand why
>> first set onlyTargetActivePage to  "true" and second to "false". Is it
>> right
>> ?
>>
>> If someone know about that, please let me know.
>> Thanks a lot.
>> Dave
>>
>> AbstractAjaxBehavior:
>> public CharSequence getCallbackUrl()
>>{
>>return getCallbackUrl(true);
>>}
>>
>> AbstractDefaultAjaxBehavior:
>> protected CharSequence getCallbackScript()
>>{
>>return getCallbackScript(false);
>>}
>>
> 
> 
> 
> -- 
> Pedro Henrique Oliveira dos Santos
> 
> 

-- 
View this message in context: 
http://old.nabble.com/OnlyTargetActivePage-param-tp27786617p27806850.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: tomcat session replication

2010-03-06 Thread Igor Vaynberg
not with java serialization afaik

-igor

On Sat, Mar 6, 2010 at 6:52 AM, Douglas Ferguson
 wrote:
> I can't deal with removing fields or changing method 
> signatures/implementations?
>
> D/
>
> On Mar 6, 2010, at 12:58 AM, Igor Vaynberg wrote:
>
>> as long as all you do is add fields you are ok...
>>
>> -igor
>>
>> On Fri, Mar 5, 2010 at 8:16 PM, Douglas Ferguson
>>  wrote:
>>> So as long as the serial I'd is the same the classlader won't care the
>>> fields don't match?
>>>
>>> Douglas Ferguson
>>> 512-293-7279
>>> Sent from my iPhone
>>>
>>> On Mar 5, 2010, at 3:37 PM, "Igor Vaynberg" 
>>> wrote:
>>>
 in the wicket code we override serial ids to 1, you should do the same
 in your code.

 -igor

 On Fri, Mar 5, 2010 at 12:15 PM, Douglas Ferguson
  wrote:
> I'm  considering a 0 downtime deployment but am concerned with the
> amount of state in the wicket session.
>
> This is the scenario that concerns me.
>
> 1) There are 2 tomcats running
> 2) A change is made to a serializable object and the serial version
> id is updated
> 3) 1 tomcat instance is taken down for updating
> 4) tomcat instance comes back up with new object and now tries to
> update state from other tomcat and the wicket session has a
> reference to the old version of the serializable.
>
> On Mar 5, 2010, at 12:18 PM, Igor Vaynberg wrote:
>
>> yes
>>
>> -igor
>>
>> On Fri, Mar 5, 2010 at 10:02 AM, Douglas Ferguson
>>  wrote:
>>> Has anybody had success with wicket using tomcat's session
>>> replication?
>>>
>>> D/
>>>
>>> ---
>>> --
>>> 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

>>>
>>> -
>>> 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: Serving CSS directories

2010-03-06 Thread Igor Vaynberg
you can use a simple servlet to stream the contents of a directory
where the uploads are put.

-igor

On Sat, Mar 6, 2010 at 12:18 AM, M. Hammer  wrote:
> Hi all,
>
> I want to give my users a way to upload an archive containing CSS and
> images, and use it to skin their own views. In the CSS, the images need to
> be referenced relative to the CSS file (e.g., if the archive does not
> contain subdirectories, all the images should be referenced by url(filename)
> only). What would be the best way to achieve this with Wicket? I think
> something like the IndexedParamUrlCodingStrategy would be nice (first
> parameter referencing the uploaded archive, second the file), but I think
> this does not work with resources?
>
> Thank you for any help, and for your great framework!
>
> Moritz
>
>
> -
> 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



Customize generating javascript in wicket

2010-03-06 Thread marioosh.net
How to force wicket to generate javascript at the end of html, not inline ?
I'm using SortableListView and addContainment method, but containtment
option doesn't work.

I think not work because of that "important note" - from scriptaculous docs: "
containment 
Enables dragging and dropping between Sortables. Takes an array of
elements or element-ids (of the containers). Important note: To ensure
that two way dragging between containers is possible, place all
Sortable.create calls after the container elements."

-- 
Greetings,
marioosh

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



Re: tomcat session replication

2010-03-06 Thread Douglas Ferguson
I can't deal with removing fields or changing method signatures/implementations?

D/

On Mar 6, 2010, at 12:58 AM, Igor Vaynberg wrote:

> as long as all you do is add fields you are ok...
> 
> -igor
> 
> On Fri, Mar 5, 2010 at 8:16 PM, Douglas Ferguson
>  wrote:
>> So as long as the serial I'd is the same the classlader won't care the
>> fields don't match?
>> 
>> Douglas Ferguson
>> 512-293-7279
>> Sent from my iPhone
>> 
>> On Mar 5, 2010, at 3:37 PM, "Igor Vaynberg" 
>> wrote:
>> 
>>> in the wicket code we override serial ids to 1, you should do the same
>>> in your code.
>>> 
>>> -igor
>>> 
>>> On Fri, Mar 5, 2010 at 12:15 PM, Douglas Ferguson
>>>  wrote:
 I'm  considering a 0 downtime deployment but am concerned with the
 amount of state in the wicket session.
 
 This is the scenario that concerns me.
 
 1) There are 2 tomcats running
 2) A change is made to a serializable object and the serial version
 id is updated
 3) 1 tomcat instance is taken down for updating
 4) tomcat instance comes back up with new object and now tries to
 update state from other tomcat and the wicket session has a
 reference to the old version of the serializable.
 
 On Mar 5, 2010, at 12:18 PM, Igor Vaynberg wrote:
 
> yes
> 
> -igor
> 
> On Fri, Mar 5, 2010 at 10:02 AM, Douglas Ferguson
>  wrote:
>> Has anybody had success with wicket using tomcat's session
>> replication?
>> 
>> D/
>> 
>> ---
>> --
>> 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
>>> 
>> 
>> -
>> 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: Clear feedback panel

2010-03-06 Thread Riyad Kalla
I thought the feedback messages were stored in the request by default? At
least I remember a thread from a week and a half ago about a person doing a
redirect and loosing his messages so he had to manually switch to saving
them in the Session...

On Fri, Mar 5, 2010 at 9:12 PM, Martin Makundi <
martin.maku...@koodaripalvelut.com> wrote:

> Maybe you are not really replacing the feedback using ajax. Look at
> wicket-debug popup.  Do you hae
> feedbackPanel.setOutputMarkupId(true);?
>
> **
> Martin
>
> 2010/3/5 Anna Simbirtsev :
> > It does not work for some reason.
> >
> > Session.get().cleanupFeedbackMessages();
> > target.addComponent(feedback);
> >
> > The message is still visible.
> >
> > On Fri, Mar 5, 2010 at 4:29 PM, Martin Makundi <
> > martin.maku...@koodaripalvelut.com> wrote:
> >
> >> session.cleanupfeedbackmessages.
> >>
> >> 2010/3/5 Anna Simbirtsev :
> >> > Hi,
> >> >
> >> > How can I clear FeedbackPanel messages?
> >> > I want to remove them from the page using target.addComponent(f);
> where f
> >> is
> >> > FeedbackPanel.
> >> > I just don't know how to set messages to null.
> >> >
> >> > Thanks,
> >> > Anna
> >> >
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
> >
> > --
> > Anna Simbirtsev
> > (416) 729-7331
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Page Expired

2010-03-06 Thread DickLarsson

Hi

Add "implements Serializable" to all your pages/components.
That solved the problem for me.

Best regards
Dick Larsson/Stockholm/Sweden/www.amantech.se



Alexander Monakhov-3 wrote:
> 
> Hi, guys.
> 
> I've got problem with 'Page Expired' message. I'm developing application
> that is worked on GAE.
> It has one page with help content. There is two help pages. Help page
> contains two separated divs. One div for table of content, second - for
> content.
> When user clicks on link, page is reloaded with appropriated content. So,
> when I load this page first time all works fine. But when I click on any
> link,
> I get 'Page Expired' message.
> I set log level to debug. Here is some messages:
> 
> 13:46:14,140 DEBUG [org.apache.wicket.Session] - Getting page [path =
> 3:tabpanel:panel:toc-panel:help.panel.navigation:1:help.panel.link,
> versionNumber = 1
> 13:46:14,141 INFO [org.apache.wicket.Page] - No version manager available
> to
> retrieve requested versionNumber 1
> 13:46:14,141 INFO [org.apache.wicket.AccessStackPageMap] - Unable to get
> version 1 of page [Page class =
> com.dominity.web2care.wicket.pages.BasePage,
> id = 3, version = 0]
> 13:46:14,142 DEBUG [org.apache.wicket.RequestCycle] - setting request
> target
> to
> [bookmarkablepagerequesttar...@974813593pageclass=org.apache.wicket.markup.html.pages.pageexpirederrorpage]
> 
> So, could you explain me what's wrong with this and what is it about: No
> version manager available?
> 
> If you'd like I show you source code and markup.
> 
> BTW, please, bear in mind, that the same page works fine of GAE SDK
> without
> any page expirations, but on server side I get always Page Expired
> message.
> 
> Best regards, Alexander.
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Page-Expired-tp27756201p27804267.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



Announce: wicket page test 1.2 is now available

2010-03-06 Thread Kent Tong

Dear all,

Wicket page test allows you to unit test Wicket pages easily including
its AJAX functionality.

Major enhancements in 1.2 is that now you can wait for the completion
of Ajax easily, without writing any Javascript. For example, in a test
case, do something like:

WicketSelenium ws = new WicketSelenium(selenium);
selenium.click("link=Calculate next"); //this is an ajax link
ws.waitUntilAjaxDone();
assert selenium.getText("output").equals("Current: 1");

For more info, please see http://wicketpagetest.sourceforge.net/


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



Re: tomcat session replication

2010-03-06 Thread Martin Grotzke
During deserialization, memcached-session-manager's xml/javolution based
serialization strategy just ignores fields that are no longer existing
in new classes. Of course one needs to be careful with renaming fields,
but I'd also like to have some mechanism to provide specific upgrade
handlers.

Cheers,
Martin


On Fri, 2010-03-05 at 20:16 -0800, Douglas Ferguson wrote:
> So as long as the serial I'd is the same the classlader won't care the  
> fields don't match?
> 
> Douglas Ferguson
> 512-293-7279
> Sent from my iPhone
> 
> On Mar 5, 2010, at 3:37 PM, "Igor Vaynberg"   
> wrote:
> 
> > in the wicket code we override serial ids to 1, you should do the same
> > in your code.
> >
> > -igor
> >
> > On Fri, Mar 5, 2010 at 12:15 PM, Douglas Ferguson
> >  wrote:
> >> I'm  considering a 0 downtime deployment but am concerned with the  
> >> amount of state in the wicket session.
> >>
> >> This is the scenario that concerns me.
> >>
> >> 1) There are 2 tomcats running
> >> 2) A change is made to a serializable object and the serial version  
> >> id is updated
> >> 3) 1 tomcat instance is taken down for updating
> >> 4) tomcat instance comes back up with new object and now tries to  
> >> update state from other tomcat and the wicket session has a  
> >> reference to the old version of the serializable.
> >>
> >> On Mar 5, 2010, at 12:18 PM, Igor Vaynberg wrote:
> >>
> >>> yes
> >>>
> >>> -igor
> >>>
> >>> On Fri, Mar 5, 2010 at 10:02 AM, Douglas Ferguson
> >>>  wrote:
>  Has anybody had success with wicket using tomcat's session  
>  replication?
> 
>  D/
> 
>  --- 
>  --
>  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
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 

-- 
Martin Grotzke
http://www.javakaffee.de/blog/


signature.asc
Description: This is a digitally signed message part


Serving CSS directories

2010-03-06 Thread M. Hammer

Hi all,

I want to give my users a way to upload an archive containing CSS and  
images, and use it to skin their own views. In the CSS, the images  
need to be referenced relative to the CSS file (e.g., if the archive  
does not contain subdirectories, all the images should be referenced  
by url(filename) only). What would be the best way to achieve this  
with Wicket? I think something like the IndexedParamUrlCodingStrategy  
would be nice (first parameter referencing the uploaded archive,  
second the file), but I think this does not work with resources?


Thank you for any help, and for your great framework!

Moritz


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