Re: Disabling dynamic ajax header contribution

2008-04-30 Thread legol

Thanks for reply,
It turned out that it wasn't main reason why my application works so slow,
but it's good to know why it is not possible.

Thx,
pzdr 
legol


igor.vaynberg wrote:
> 
> no, currently it is not possible. the reason we do not do it is that
> you can use component replacement to add a new component into the
> hierarchy which will need to add its own contributions which are not
> yet on the client.
> 
> -igor
> 
> 
> On Wed, Apr 30, 2008 at 7:08 AM, legol <[EMAIL PROTECTED]> wrote:
>>
>>  Hi all!
>>  I have problem with multiple ajax header contribution. Is it possible to
>>  turn it off and add static reference to ajax js in head? I have pages
>> where
>>  I always use ajax so it could be added on start. On my page i have so
>> much
>>  ajax components that ajax response grows very large because of these
>>  contributions (even half of generated response are these contibutions).
>>  Beacause of that my application works very slow. If there is any
>> possibility
>>  to turn it off pls help.
>>
>>  thx
>>  pzdr
>>  legol
>>  --
>>  View this message in context:
>> http://www.nabble.com/Disabling-dynamic-ajax-header-contribution-tp16983332p16983332.html
>>  Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>>  -
>>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Disabling-dynamic-ajax-header-contribution-tp16983332p16989770.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Disabling dynamic ajax header contribution

2008-04-30 Thread legol

Hi all!
I have problem with multiple ajax header contribution. Is it possible to
turn it off and add static reference to ajax js in head? I have pages where
I always use ajax so it could be added on start. On my page i have so much
ajax components that ajax response grows very large because of these
contributions (even half of generated response are these contibutions).
Beacause of that my application works very slow. If there is any possibility
to turn it off pls help.

thx
pzdr
legol
-- 
View this message in context: 
http://www.nabble.com/Disabling-dynamic-ajax-header-contribution-tp16983332p16983332.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with multiwindow app

2008-02-29 Thread legol

Hi, thx I used constructor with Pagemap and now it works well.
You also suggested upgrading to 1.3.1 could you tell me profits from 
upgrading to 1.3.1 in this case? What is the solution of this problem
in 1.3.1?

Thx again, pzdr
legol


Johan Compagner wrote:
> 
> See PageMap and the Page constructor with the pagemap param. Just make
> sure if open in a new tab/window that that page resides in another
> one. But we also should have  a setting in our app settings that auto
> detects multi tabs/window. But maybe if you click really fast
> something can go out of sync much better would be to upgrade to 1.3.1
> 
> On 2/25/08, legol <[EMAIL PROTECTED]> wrote:
>>
>> Hi thx for reply,
>> I use wicket 1.2.6 and i don't use pagemap.
>> Could you give me some example how to do this?
>>
>> Pzdr,
>> legol
>>
>>
>> Johan Compagner wrote:
>> >
>> > What wicket version is this?
>> > If it is 1.2 do you use pagemaps (new onces for every tab you open?)
>> >
>> > On 2/22/08, legol <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Hi all!!!
>> >>
>> >> I have application with 2 pages. First page lists users names and each
>> >> element of list is link to second page that shows user details. I want
>> to
>> >> have this second page shown in other tab or window. Everything works
>> fine
>> >> when I click one user link, detail page is loaded and i can operate on
>> >> it.
>> >> But when i click on i.e. 5 links in very short time and 5 tabs are
>> opened
>> >> i
>> >> get 'page expired' on each of them. Thanks to logs I discovered that
>> when
>> >> i
>> >> open page in other tab or window it renders twice. Maybe this is the
>> >> problem. Do you have any idea how to solve it?
>> >>
>> >> pzdr,
>> >> Legol
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Problem-with-multiwindow-app-tp15632896p15632896.html
>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Problem-with-multiwindow-app-tp15632896p15674566.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-multiwindow-app-tp15632896p15762340.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with multiwindow app

2008-02-25 Thread legol

Hi thx for reply,
I use wicket 1.2.6 and i don't use pagemap. 
Could you give me some example how to do this?

Pzdr, 
legol


Johan Compagner wrote:
> 
> What wicket version is this?
> If it is 1.2 do you use pagemaps (new onces for every tab you open?)
> 
> On 2/22/08, legol <[EMAIL PROTECTED]> wrote:
>>
>> Hi all!!!
>>
>> I have application with 2 pages. First page lists users names and each
>> element of list is link to second page that shows user details. I want to
>> have this second page shown in other tab or window. Everything works fine
>> when I click one user link, detail page is loaded and i can operate on
>> it.
>> But when i click on i.e. 5 links in very short time and 5 tabs are opened
>> i
>> get 'page expired' on each of them. Thanks to logs I discovered that when
>> i
>> open page in other tab or window it renders twice. Maybe this is the
>> problem. Do you have any idea how to solve it?
>>
>> pzdr,
>> Legol
>> --
>> View this message in context:
>> http://www.nabble.com/Problem-with-multiwindow-app-tp15632896p15632896.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-multiwindow-app-tp15632896p15674566.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with multiwindow app

2008-02-22 Thread legol

Hi all!!!

I have application with 2 pages. First page lists users names and each
element of list is link to second page that shows user details. I want to
have this second page shown in other tab or window. Everything works fine
when I click one user link, detail page is loaded and i can operate on it.
But when i click on i.e. 5 links in very short time and 5 tabs are opened i
get 'page expired' on each of them. Thanks to logs I discovered that when i
open page in other tab or window it renders twice. Maybe this is the
problem. Do you have any idea how to solve it? 

pzdr,
Legol
-- 
View this message in context: 
http://www.nabble.com/Problem-with-multiwindow-app-tp15632896p15632896.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WicketSessionFilter problem

2008-02-01 Thread legol

OK It was my mistake with web.xml filter mapping. I think it is pretty
confusing in WicketFilterSession javadoc example that non wicket servlet is
called sessiontest and application servlet has the same name. I've just
copied that and replaceAll with my servlet names what produced mistakes. Be
careful with copy&paste ;)

Pzdr. 
Legol



legol wrote:
> 
> Hi all!
> I have problem with wicket Session in non wicket servlet. I read posts
> about WicketFilterSession and I set all needed mappings in web.xml, but it
> still doesn't work. I call servlet from applet and while doing filter
> debug says that: 'could not set Wicket session: key
> wicket:/servlet:session not found in http session for /projectname,
> localhost. I don't have any idea what's wrong. Plz. help
> 
> Pzdr. Legol
> 

-- 
View this message in context: 
http://www.nabble.com/WicketSessionFilter-problem-tp15225207p15227146.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



WicketSessionFilter problem

2008-02-01 Thread legol

Hi all!
I have problem with wicket Session in non wicket servlet. I read posts about
WicketFilterSession and I set all needed mappings in web.xml, but it still
doesn't work. I call servlet from applet and while doing filter debug says
that: 'could not set Wicket session: key wicket:/servlet:session not found
in http session for /projectname, localhost. I don't have any idea what's
wrong. Plz. help

Pzdr. Legol
-- 
View this message in context: 
http://www.nabble.com/WicketSessionFilter-problem-tp15225207p15225207.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Show indicator after modal window close

2007-10-23 Thread legol

Hi All!!!

I have made my own indicating div that covers full site when special actions
are made. Now what i need is to invoke this while WindowClosedCallback is
running. I have page in modal window and after closing it, it needs a long
time to perform all actions. Problem is when this actions are running when i
click on something else application brakes. I tried to make
IndicatingWindowClosedCallback by implementing IAjaxIndicatorAware but it
doesn't work. Do you have any idea to solve this problem?? Did anybody have
similar problem??
-- 
View this message in context: 
http://www.nabble.com/Show-indicator-after-modal-window-close-tf4677300.html#a13363804
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Append markup to BODY container

2007-09-25 Thread legol

Thx for help, It works now great.


Rüdiger_Schulz wrote:
> 
> Jürgen and Igor once showed me how to do this:
> 
> http://www.nabble.com/BodyContributor--tf2578291.html#a7187578
> http://www.nabble.com/Replacing-HtmlBodyContainer-tf3665340.html#a10241426
> 
> You need your own implementation of BodyContainer, and replace during
> attachment. Something like this should work:
> 
> public clas MyPage extends WebPage {
> 
> public void onAttach() {
> Component body=get(BodyOnLoadHandler.BODY_ID);
> if (body!=null) {
> if (!(body instanceof MyHtmlBodyContainer)) {
>  remove(BodyOnLoadHandler.BODY_ID );
>  body=null;
>  }
> }
> if (body==null) {
> add(new ...);
> }
> }
> 
> 
> /**
>  *
>  */
> public static class MyHtmlBodyContainer extends
> *HtmlBodyContainer*
> {
> private static final long serialVersionUID = 1L;
> 
> /**
>  * Construct
>  *
>  * @see Component#Component(MarkupContainer,String)
>  */
> public MyHtmlBodyContainer(MarkupContainer parent, final
> String id)
> {
> super(parent, id);
> }
> 
> @Override
> protected void onComponentTagBody(MarkupStream
> markupStream,
> 
> ComponentTag openTag)
> {
> getResponse().write("Something after the body open
> tag");
> super.onComponentTagBody(markupStream, openTag);
> getResponse().write("Something before the body
> close
> tag");
> }
> }
> }
> 
> 2007/9/24, legol <[EMAIL PROTECTED]>:
>>
>>
>> Thx for reply,
>> I'm using wicket 1.2.6, i have to add markup simply from String variable
>> in
>> class that extends from webpage
>>
>>
>>
>> Rüdiger_Schulz wrote:
>> >
>> > 2007/9/24, legol <[EMAIL PROTECTED]>:
>> >>
>> >>
>> >> Hi all!!!
>> >>
>> >> What I want to do is append some markup to my webpage after body tag.
>> I
>> >> can't override onRender method in HTMLBodyContainer because it is
>> created
>> >> by
>> >> method getBodyContainer() in WebPage.
>> >
>> >
>> >
>> > I had to do the same thing, and was able to solve it.
>> >
>> > To help you, I need to know what version of wicket you are using, and
>> what
>> > markup you want to add, where it should come from.
>> >
>> > --
>> > greetings from Berlin,
>> >
>> > Rüdiger Schulz
>> >
>> > www.2rue.de
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Append-markup-to-BODY-container-tf4509327.html#a12863489
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> greetings from Berlin,
> 
> Rüdiger Schulz
> 
> www.2rue.de
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Append-markup-to-BODY-container-tf4509327.html#a12874626
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Append markup to BODY container

2007-09-24 Thread legol

Thx for reply,
I'm using wicket 1.2.6, i have to add markup simply from String variable in
class that extends from webpage



Rüdiger_Schulz wrote:
> 
> 2007/9/24, legol <[EMAIL PROTECTED]>:
>>
>>
>> Hi all!!!
>>
>> What I want to do is append some markup to my webpage after body tag. I
>> can't override onRender method in HTMLBodyContainer because it is created
>> by
>> method getBodyContainer() in WebPage.
> 
> 
> 
> I had to do the same thing, and was able to solve it.
> 
> To help you, I need to know what version of wicket you are using, and what
> markup you want to add, where it should come from.
> 
> -- 
> greetings from Berlin,
> 
> Rüdiger Schulz
> 
> www.2rue.de
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Append-markup-to-BODY-container-tf4509327.html#a12863489
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Append markup to BODY container

2007-09-24 Thread legol

Hi all!!!

What I want to do is append some markup to my webpage after body tag. I
can't override onRender method in HTMLBodyContainer because it is created by
method getBodyContainer() in WebPage.

Pls help
-- 
View this message in context: 
http://www.nabble.com/Append-markup-to-BODY-container-tf4509327.html#a12860355
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with uploading files

2007-08-10 Thread legol

Iam doing something like this:

FileUpload upload = uploadField.getFileUpload();  
if(upload!=null) {
   try {
fileInputStream = upload.getInputStream();
}
catch(IOException e) {
logger.error(e.getMessage());
}

I want inputStream because i want to write file to database, but i get
following errors:

ERROR there was an error detaching the request from the session
[EMAIL PROTECTED]
wicket.WicketRuntimeException: Internal error cloning object. Make sure all
dependent objects implement Serializable. Class:
com.attachment.RMSTAttachmentWebPage
at
wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:63)
at wicket.Session.setAttribute(Session.java:952)
more 
Caused by: java.io.NotSerializableException: java.io.ByteArrayInputStream
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
more

I tried also using upload.writeToTempFile() but i gets the same error with
exception: java.io.NotSerializableException: java.io.FileInputStream

When i use upload.getBytes() everything is OK till file is too large;

Pls help, what am doing wrong?

-- 
View this message in context: 
http://www.nabble.com/Problem-with-uploading-files-tf4247384.html#a12087471
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Uploading files without page reload

2007-08-09 Thread legol

Hi all,

I have problem with uploading files. My uploading file form is placed in
modal window and after submitting comunicate appears that modal window will
be closed. What I want is situation when after submitting modal window is
still visible. The best solution would be not reloading page but i read
somewhere that it is impossible  to upload file via ajax. I tried to do
something with PageParameters but to show modal window AjaxRequstTarget. 

Pls help.
-- 
View this message in context: 
http://www.nabble.com/Uploading-files-without-page-reload-tf4241610.html#a12069395
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]