New lines are trimmed in textarea after ajaxrefresh

2010-12-14 Thread Michał Letyński

Hi.
I have TextArea component with shouldTrimInput() set to false. It has 
AjaxFormComponentUpdatingBehavior(onblur) attached for validating 
purpose. On every update it refresh itself. And after update newline 
from the begining of textarea is trimmed.
I debug wickets up to getReponse().write and everythink looks fine. 
Maybe there is a bug in java script. Is it known problem ?


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



Re: Preventing user input script-injection attacks

2010-11-25 Thread Michał Letyński

You can also try to use:

http://nekohtml.sourceforge.net/

W dniu 2010-11-25 18:39, Ian Marshall pisze:

Thanks for that, Patrick.

I'll take a look at these tomorrow to see what they have got.




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



Re: Free wicket from component hierarchy hell

2010-11-05 Thread Michał Letyński

Hi.
I think its not a solution for problem which Martin described. If you cooperate 
with some outer company which provide you styled markup or they are modifing an 
existing one they can broke your hierarchy and you must change your code. It 
would be nice to not do this, for e.g adding everythink to page. I know that in 
this case (Jeremy wrote that) you must provide uniqueness of components in 
whole page but it also can be resolved somehow :)


I think if you find component hierarchies to be hell, you probably aren't
using Wicket right. Break things down into small reusable chunks using
Panels and you will find everything gets much, much easier.


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



BrowserInfoPage issues.

2010-11-02 Thread Michał Letyński

Hi.
I found two problems while using wicket BrowserInfoPage.

1) Browser page can be shown for couple of seconds when page to which it 
redirects is heavy.  Browser page has english hardcoded label


If you see this, it means that both javascript and meta-refresh are not 
support by  your browser configuration. Please click this link to 
continue to the original destination.


This text is misleading in case when pages are loading quite long. It 
should be fixed:

a) message should be localized
b) provide two messages, one when user cannot redirect(original one), 
second when page is redirecting


2) Browser page is shown when we are getting client info 
(Session#getClientInfo()) for the first time. When on page we have 
AjaxLazyLoadPanel which loads much data its possible that before it 
finish to load original panel, browser page will be shown.
So when browser page is shown and ajax lazy panel will finish loading we 
get beatiful xml inside our browser with no redirect.


I know how to workaround them: 1) providing own browserpage 2) geting 
client info on page constructor. But its not the case, can i create 
jirra issues for both problems ?


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



Re: open Modal Window without AjaxRequestTarget

2010-07-02 Thread Michał Letyński

Hi.
You must make content visible manually since its done in 
show(ajaxtarget) method.
So override makeVisible() method from modal window or just set 
getContent().setVisible(true) in onBeforeRender.


W dniu 2010-07-01 20:59, Pierre Goupil pisze:

Good evening,

I tried it but nothing shows. My Firebug gives this error:

   

either src or element must be set
 

I did use setContent()! Can anyone help, please?

Regards,

Pierre



On Thu, Jul 1, 2010 at 9:41 AM, Pierre Goupilgoupilpie...@gmail.comwrote:

   

I'll give that a try, men. Thank you!

Regards,

Pierre




On Thu, Jul 1, 2010 at 8:21 AM, Stefan Lindnerlind...@visionet.dewrote:

 

See ModalWindow.getWindowOpenJavascript() and use it like this

ModalWindow myModalWindow = new ModalWIndow..
someComponent.add(new SimpleAttributeModifier(onclick,
myModalWindow.getWindowOpenJavascript()));

I didn't try I but I think it should work like this.

Stefan

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


   


--
Les deux règles universelles du bide :

1) on n'explique pas un bide

2) dans le futur, un bide sera toujours un bide.

 


   


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



java.util.ConcurrentModificationException from DefaultObjectStreamFactory

2010-06-29 Thread Michał Letyński

Hi.
I got such error today Long time ago i had similar problem but with 
ClassCastException while deserialization. It was because i kept 
references from one page inside another. Nowdays i dont have such 
navigation, im using:

RequestCycle.get().setResponsePage(xxxPage.class)

Any ideas ? Hints ? Unfortunetly i dont know how to reproduce it. I got 
it only one time ;/


20-Apr-2010 16:52:15 ERROR [ory$DefaultObjectStreamFactory] error 
writing object [Page class = com.xxx.client.webapp.pages.xxxPage, id = 
25, version = 1, ajax = 0]: null

java.util.ConcurrentModificationException
   at java.util.ArrayList.writeObject(Unknown Source)
   at sun.reflect.GeneratedMethodAccessor236.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
   at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
   at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
   at java.io.ObjectOutputStream.writeObject0(Unknown Source)
   at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
   at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
   at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
   at java.io.ObjectOutputStream.writeObject0(Unknown Source)
   at java.io.ObjectOutputStream.writeObject(Unknown Source)
   at java.util.ArrayList.writeObject(Unknown Source)
   at sun.reflect.GeneratedMethodAccessor236.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
   at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
   at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
   at java.io.ObjectOutputStream.writeObject0(Unknown Source)
   at java.io.ObjectOutputStream.writeObject0(Unknown Source)
   at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
   at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source)
   at 
org.apache.wicket.protocol.http.pagestore.AbstractPageStore$PageSerializer.serializePage(AbstractPageStore.java:321)

   at org.apache.wicket.Page.writePageObject(Page.java:1385)
   at org.apache.wicket.Component.writeObject(Component.java:4434)
   at sun.reflect.GeneratedMethodAccessor204.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
   at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
   at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
   at java.io.ObjectOutputStream.writeObject0(Unknown Source)
   at java.io.ObjectOutputStream.writeObject(Unknown Source)
   at 
org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:121)

   at java.io.ObjectOutputStream.writeObject(Unknown Source)
   at 
org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1120)
   at 
org.apache.wicket.protocol.http.pagestore.AbstractPageStore$PageSerializer.getPageReplacementObject(AbstractPageStore.java:285)

   at org.apache.wicket.Page.writeReplace(Page.java:1363)
   at sun.reflect.GeneratedMethodAccessor455.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at java.io.ObjectStreamClass.invokeWriteReplace(Unknown Source)
   at java.io.ObjectOutputStream.writeObject0(Unknown Source)
   at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
   at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
   at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
   at java.io.ObjectOutputStream.writeObject0(Unknown Source)
   at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
   at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
   at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
   at java.io.ObjectOutputStream.writeObject0(Unknown Source)
   at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
   at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
   at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
   at java.io.ObjectOutputStream.writeObject0(Unknown Source)
   at java.io.ObjectOutputStream.writeArray(Unknown Source)
   at java.io.ObjectOutputStream.writeObject0(Unknown Source)
   at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
   at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source)
   at 

Re: Image Upload Using TinyMCE Within Wicket Framework

2010-06-02 Thread Michał Letyński

Hi.
I just checkout tinymce-parent with version 1.4.9 and everythink works 
both in FF3.5 and ie8


W dniu 2010-06-01 20:17, danisevsky pisze:
Hello, I checkout wicket-stuff core, install and run tinymce-examples, 
every examples works fine except image upload. Firebug do not show any 
javascript error. Could you please tell me what is wrong. What I get 
is on the attachment picture.




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


Re: [announce] Release Wicket 1.4.9

2010-05-24 Thread Michał Letyński

Hi.
W dniu 2010-05-24 03:59, Jeremy Thomerson pisze:

** Improvement
 * [WICKET-2790] - wicketTester.executeAjaxEvent method does not check if
form is multiPart
   
Is this improvment a part of 1.4.9 ? Since on jira page this improvment 
is postponed to 1.4.10.


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



Re: Help me speed up my Wicket

2010-05-20 Thread Michał Letyński

Hi.

W dniu 2010-05-20 10:28, Matthias Keller pisze:
And it would not speed up page loading at all since in the end, the 
same data would have to be transferred but splitted into multiple 
requests which adds the request overhead to the total loading time 
compared to the prepared complete page.



It depends.
If the most important thing is too show some particalur component to 
customer (for e.g news) and rest of page can be load lazy it will speed 
it up. Since the most important component will be shown fast rest of 
page will be rendered as empty panels.

On 2010-05-20 10:25, Martin Makundi wrote:

Would this not flicker a lot?


It flicker, but not a lot :) AjaxLazyLoadPanel 


**
Martin

2010/5/20 nino martinez waelnino.martinez.w...@gmail.com:

ok the idea are this:

First render the page with out the grid.
Then add the empty grid
Then add row 1 to grid
Adding row 1 triggers a new request adding row 2 and so on until all
rows are loaded..

All done with ajax.

It's just an idea, but I think it should help. However it causes more
load on the server I think.

2010/5/20 Martin Makundimartin.maku...@koodaripalvelut.com:


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



Re: Image Upload Using TinyMCE Within Wicket Framework

2010-05-20 Thread Michał Letyński

Hi Muro.

W dniu 2010-05-19 15:12, Muro Copenhagen pisze:

Hi Michal,

Thanks for the reply

Yes that was my idea.

It would be better with a static reference to a localdrive folder, so the
folder works as a image repository.

I am working on a wepapp where users has to login...the problem i am
experiencing is that the the
image reference is temporary, based on user login etc.

So if user logs in, uploads the image, the next time the user logs in the
reference to the image would be wrong.
   
What are you doing with those uploaded images and text which come from 
tiny ? Do you display them after submit as normal text in the page ?
I have also a login application. Text/images which came from tiny are 
shown as news to any logged user. But this whole text must be parsed 
and src of image must be rerendered.
I get this text and build panel with dynamic labels and images (dynamic 
markup).

Some like this:
public abstract class AbstractImagePanel extends Panel implements 
IMarkupResourceStreamProvider, IMarkupCacheKeyProvider {
public IResourceStream getMarkupResourceStream(MarkupContainer 
pContainer,

Class? pContainerClass) {
String markup = 
String.format(wicket:panel%s/wicket:panel, createMarkup());
StringBufferResourceStream stringBuf = new 
StringBufferResourceStream();

stringBuf.append(markup);
return stringBuf;
}

private String createMarkup() {
StringBuffer sb = new StringBuffer();
Matcher matcher = getMatcher();
int index = 0;
while(matcher.find()) {
matcher.appendReplacement(sb, String.format(IMG_TAG, 
(index++)+matcher.group(1)+getMarkupId()));

}
matcher.appendTail(sb);
return sb.toString();
}

@Override
protected void onBeforeRender() {
super.onBeforeRender();
// Images must be added on each request, before phase render
removeAll();
addImages();
}
}

in addImmages() i het the same matcher parsing with adding Image components
return new Image(pIndex+pFileName+getMarkupId(), 
new Resource() {

@Override
public IResourceStream getResourceStream() {
return   ResourceStream which points to our 
image

}
});

Of course you can also put it to sharedResources. But it depends on how 
many images you are going to upload :)
In sharedResources we should have images which are provided with our 
application.



Also a different user would not be able to see the same image...

Therefore i was thinking on a solution like this one integrated with youre
code...:
http://dotev.blogspot.com/2009/11/serving-images-and-other-resources-with.html

And images could be referenced as in the link...:
resources/global/images?id=image105

Would it be possible ?

Best Regards
Muro

2010/5/19 Michał Letyńskimletyn...@consol.pl

   

Hi.
Whay do you want to change exactly Muro ? Temporary path is set to
javax.servlet.context.tempdir. Image must be temporary uploaded somewhere
to show it in editor later.
This src inimg  tag points into ImageUploadPanel which implements
IResourceListener. So the ImageUploadPanel is called when a resource is
requested. (resource is created from image which is uploaded to temp
directory).
Do you want to have a static path like ../../resources/images/locked.gif  ?

W dniu 2010-05-18 17:52, Muro Copenhagen pisze:

  Hi...
 

I am facing a new problem with the TinyMCE upload image, i hope someone
can
assist me on.

I can see that the ImageUpload tinymce example uses a temporary path to
store the images...

If i want to store them on a static folder, like the folder: c:\images

How would i achive that ?

If can to overwrite you getTemporaryDirPath() folder and set it to
c:\images, the upload works fine.

But the reference to the image, is store with the wicket session
reference.
Here is the an example on how it is stored:

img

src=?wicket:interface=:25:editCaseForm:uploadPanel::IResourceListener::amp;filename=testerman.JPGamp;contenttype=image/jpeg
alt= /

How would i manage to store it a manner so it is not session dependent...?

Any help will be appreciated...

Best Regards
Muso

On Fri, May 14, 2010 at 3:03 PM, Muro Copenhagencopenha...@gmail.com
   

wrote:
 



   

Hi Michal

Great thanks for the help..

Best Regards
Muro

2010/5/14 Michał Letyńskimletyn...@consol.pl

Hi.


 

Yes you are right the last released version is 1.4.1. So you must build
it
localy.

W dniu 2010-05-14 11:19, Muro Copenhagen pisze:

  Hi Michal


   

I appreciate you're effort spelling things out.

I am still not sure on how to get it to work.

When i add this dependency to my project it won't work:
 dependency
 groupIdorg.wicketstuff/groupId
 artifactIdtinymce/artifactId
 version1.4.7-SNAPSHOT/version
 /dependency

Re: Image Upload Using TinyMCE Within Wicket Framework

2010-05-20 Thread Michał Letyński

Hi.
W dniu 2010-05-20 13:29, Muro Copenhagen pisze:

Hi Michal

The idea is that users can upload a question, with images related to that
question.

So after upload, the image will be seen as regular text.

We are expecting many pictures to be uploaded...So i probably want to use
shared resources.

But still then i have to parse and rerender the src of the image?
   
 src attribute in img points to component which is responsible for 
showing this image only in tiny. Showing this image in text later it's a 
different topic :)
If you want to show image via Label component so yes it must be changed. 
But if you want to show an image via Image component from Resource(my 
apparoach) or from ResourceReference (shared resource approach)
src attribute does not matter for you since it will be generated 
automaticaly by Image component.


But if you will create Image component like in that link which you gave me:
   new Image(image, new ResourceReference(images),
new ValueMap(id= + imageId))
You are not interested with src attribute at all.


I will try to work on a solution with shared resources :)

Thanks for the help

Best Regards
Muro

2010/5/20 Michał Letyńskimletyn...@consol.pl

   

Hi Muro.

W dniu 2010-05-19 15:12, Muro Copenhagen pisze:

  Hi Michal,
 

Thanks for the reply

Yes that was my idea.

It would be better with a static reference to a localdrive folder, so the
folder works as a image repository.

I am working on a wepapp where users has to login...the problem i am
experiencing is that the the
image reference is temporary, based on user login etc.

So if user logs in, uploads the image, the next time the user logs in the
reference to the image would be wrong.


   

What are you doing with those uploaded images and text which come from tiny
? Do you display them after submit as normal text in the page ?
I have also a login application. Text/images which came from tiny are shown
as news to any logged user. But this whole text must be parsed and src of
image must be rerendered.
I get this text and build panel with dynamic labels and images (dynamic
markup).
Some like this:
public abstract class AbstractImagePanel extends Panel implements
IMarkupResourceStreamProvider, IMarkupCacheKeyProvider {
public IResourceStream getMarkupResourceStream(MarkupContainer
pContainer,
Class?  pContainerClass) {
String markup = String.format(wicket:panel%s/wicket:panel,
createMarkup());
StringBufferResourceStream stringBuf = new
StringBufferResourceStream();
stringBuf.append(markup);
return stringBuf;
}

private String createMarkup() {
StringBuffer sb = new StringBuffer();
Matcher matcher = getMatcher();
int index = 0;
while(matcher.find()) {
matcher.appendReplacement(sb, String.format(IMG_TAG,
(index++)+matcher.group(1)+getMarkupId()));
}
matcher.appendTail(sb);
return sb.toString();
}

@Override
protected void onBeforeRender() {
super.onBeforeRender();
// Images must be added on each request, before phase render
removeAll();
addImages();
}
}

in addImmages() i het the same matcher parsing with adding Image components
return new Image(pIndex+pFileName+getMarkupId(), new
Resource() {
@Override
public IResourceStream getResourceStream() {
return   ResourceStream which points to our
image
}
});

Of course you can also put it to sharedResources. But it depends on how
many images you are going to upload :)
In sharedResources we should have images which are provided with our
application.


  Also a different user would not be able to see the same image...
 

Therefore i was thinking on a solution like this one integrated with youre
code...:

http://dotev.blogspot.com/2009/11/serving-images-and-other-resources-with.html

And images could be referenced as in the link...:
resources/global/images?id=image105

Would it be possible ?

Best Regards
Muro

2010/5/19 Michał Letyńskimletyn...@consol.pl



   

Hi.
Whay do you want to change exactly Muro ? Temporary path is set to
javax.servlet.context.tempdir. Image must be temporary uploaded
somewhere
to show it in editor later.
This src inimg   tag points into ImageUploadPanel which implements
IResourceListener. So the ImageUploadPanel is called when a resource is
requested. (resource is created from image which is uploaded to temp
directory).
Do you want to have a static path like ../../resources/images/locked.gif
  ?

W dniu 2010-05-18 17:52, Muro Copenhagen pisze:

  Hi...


 

I am facing a new problem with the TinyMCE upload image, i hope someone
can
assist me on.

I can see that the ImageUpload tinymce example uses a temporary path to
store the images...

If i want to store them on a static folder, like the folder: c:\images

Re: Image Upload Using TinyMCE Within Wicket Framework

2010-05-19 Thread Michał Letyński

Hi.
Whay do you want to change exactly Muro ? Temporary path is set to 
javax.servlet.context.tempdir. Image must be temporary uploaded 
somewhere to show it in editor later.
This src in img tag points into ImageUploadPanel which implements 
IResourceListener. So the ImageUploadPanel is called when a resource is 
requested. (resource is created from image which is uploaded to temp 
directory).

Do you want to have a static path like ../../resources/images/locked.gif  ?

W dniu 2010-05-18 17:52, Muro Copenhagen pisze:

Hi...

I am facing a new problem with the TinyMCE upload image, i hope someone can
assist me on.

I can see that the ImageUpload tinymce example uses a temporary path to
store the images...

If i want to store them on a static folder, like the folder: c:\images

How would i achive that ?

If can to overwrite you getTemporaryDirPath() folder and set it to
c:\images, the upload works fine.

But the reference to the image, is store with the wicket session reference.
Here is the an example on how it is stored:

img
src=?wicket:interface=:25:editCaseForm:uploadPanel::IResourceListener::amp;filename=testerman.JPGamp;contenttype=image/jpeg
alt= /

How would i manage to store it a manner so it is not session dependent...?

Any help will be appreciated...

Best Regards
Muso

On Fri, May 14, 2010 at 3:03 PM, Muro Copenhagencopenha...@gmail.comwrote:

   

Hi Michal

Great thanks for the help..

Best Regards
Muro

2010/5/14 Michał Letyńskimletyn...@consol.pl

Hi.
 

Yes you are right the last released version is 1.4.1. So you must build it
localy.

W dniu 2010-05-14 11:19, Muro Copenhagen pisze:

  Hi Michal
   

I appreciate you're effort spelling things out.

I am still not sure on how to get it to work.

When i add this dependency to my project it won't work:
 dependency
 groupIdorg.wicketstuff/groupId
 artifactIdtinymce/artifactId
 version1.4.7-SNAPSHOT/version
 /dependency
And that makes sense since i can't find that version in the repo:
http://wicketstuff.org/maven/repository

So how would i get my project to use the tinymce version 1.4.7-SNAPSHOT ?

Maybe it's a silly question... but i am not sure how to make it work...

Best Regards
Muro

2010/5/13 Michał Letyńskimletyn...@consol.pl



 

Hi.
Its commited to trunk and in pom we have 1.4.7-SNAPSHOT so it should be
available ...


W dniu 2010-05-12 15:23, Muro Copenhagen pisze:

  Hi again...


   

I guess a new release of wicket-stuff tinymce has to be made in order
to
use
it...

The current release 1.4-rc7 misses the changes you have commited...

Who can make a new release of wicket-stuff tinymce so we can use the
commited code ?

Best Regards
Muro

2010/5/12 Michał Letyńskimletyn...@consol.pl





 

Hi.
Its one of tiny examples:



https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/tinymce-parent/tinymce-examples

W dniu 2010-05-12 12:40, Muro Copenhagen pisze:





   

Hi Michael,

That is a great example. But you mentioned that you have commited the
sample
to wicket-stuff.

I can't find it anywhere so can you please send a link or
something...

Best regards
Muro

On Tue, May 4, 2010 at 2:49 PM, Robert Kimothokimot...@gmail.com
  wrote:







 

You are right I have a wicket path in src and it looks like this




'resources/wicket.contrib.tinymce.InPlaceEditBehavior/tiny_mce/plugins/emotions/img/smiley-cool.gif'
this is what you get submitted to the server, but the image does not
get
displayed.
Can you guide me to using the IResourceListener or getting the
emoticon
displayed at the client side.

Regards,
Kimotho.

2010/5/4 Michał Letyńskimletyn...@consol.pl







   

Hi.
If you have images in tiny with external src it should work but if
you






 

have






   

in src a wicket path you must change it (to component which will
get
the
image look at IResourceListener)  before displainng image in label,
multilinelabel, etc.


W dniu 2010-05-03 09:10, Robert Kimotho pisze:

  When I submit a form with an emoticon from the fullfeatured
tinymce,
the






 

image doesn't get displayed in the destination
only the text.
any suggestions, I've been stuck here for a while now.

2010/5/1 新希望软件 -- 俞宏伟nhsoft@gmail.com









   

image upload example run failuer, the application
throwsNoClassDefFoundError
.

WicketMessage: Can't instantiate page using constructor public
wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage()

Root cause:

java.lang.NoClassDefFoundError:
wicket/contrib/tinymce/image/ImageUploadPanel
 at








 



   


 

wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage.init(ImageUploadTinyMCEPage.java:42)






   

 at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native




 

Re: Image Upload Using TinyMCE Within Wicket Framework

2010-05-14 Thread Michał Letyński

Hi.
Yes you are right the last released version is 1.4.1. So you must build 
it localy.


W dniu 2010-05-14 11:19, Muro Copenhagen pisze:

Hi Michal

I appreciate you're effort spelling things out.

I am still not sure on how to get it to work.

When i add this dependency to my project it won't work:
 dependency
 groupIdorg.wicketstuff/groupId
 artifactIdtinymce/artifactId
 version1.4.7-SNAPSHOT/version
 /dependency
And that makes sense since i can't find that version in the repo:
http://wicketstuff.org/maven/repository

So how would i get my project to use the tinymce version 1.4.7-SNAPSHOT ?

Maybe it's a silly question... but i am not sure how to make it work...

Best Regards
Muro

2010/5/13 Michał Letyńskimletyn...@consol.pl

   

Hi.
Its commited to trunk and in pom we have 1.4.7-SNAPSHOT so it should be
available ...


W dniu 2010-05-12 15:23, Muro Copenhagen pisze:

  Hi again...
 

I guess a new release of wicket-stuff tinymce has to be made in order to
use
it...

The current release 1.4-rc7 misses the changes you have commited...

Who can make a new release of wicket-stuff tinymce so we can use the
commited code ?

Best Regards
Muro

2010/5/12 Michał Letyńskimletyn...@consol.pl



   

Hi.
Its one of tiny examples:


https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/tinymce-parent/tinymce-examples

W dniu 2010-05-12 12:40, Muro Copenhagen pisze:



 

Hi Michael,

That is a great example. But you mentioned that you have commited the
sample
to wicket-stuff.

I can't find it anywhere so can you please send a link or something...

Best regards
Muro

On Tue, May 4, 2010 at 2:49 PM, Robert Kimothokimot...@gmail.com
  wrote:





   

You are right I have a wicket path in src and it looks like this



'resources/wicket.contrib.tinymce.InPlaceEditBehavior/tiny_mce/plugins/emotions/img/smiley-cool.gif'
this is what you get submitted to the server, but the image does not
get
displayed.
Can you guide me to using the IResourceListener or getting the emoticon
displayed at the client side.

Regards,
Kimotho.

2010/5/4 Michał Letyńskimletyn...@consol.pl





 

Hi.
If you have images in tiny with external src it should work but if you




   

have




 

in src a wicket path you must change it (to component which will get
the
image look at IResourceListener)  before displainng image in label,
multilinelabel, etc.


W dniu 2010-05-03 09:10, Robert Kimotho pisze:

  When I submit a form with an emoticon from the fullfeatured tinymce,
the




   

image doesn't get displayed in the destination
only the text.
any suggestions, I've been stuck here for a while now.

2010/5/1 新希望软件 -- 俞宏伟nhsoft@gmail.com







 

image upload example run failuer, the application
throwsNoClassDefFoundError
.

WicketMessage: Can't instantiate page using constructor public
wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage()

Root cause:

java.lang.NoClassDefFoundError:
wicket/contrib/tinymce/image/ImageUploadPanel
 at






   


 
   

wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage.init(ImageUploadTinyMCEPage.java:42)




 

 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native


   

Method)
 

 at
java.lang.reflect.Constructor.newInstance(Constructor.java:513)
 at






   


 
   

org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:192)




 

 at


   
 




   


 
   

org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57)




 

 at


   
 




   


 
   

org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:298)




 

 at


   
 




   


 
   

org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:320)




 

 at


   
 




   


 
   

org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234)




 

 at


   
 




   


 
   

org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)




 

 at


   
 




   


 
   


Re: Image Upload Using TinyMCE Within Wicket Framework

2010-05-13 Thread Michał Letyński

Hi.
Its commited to trunk and in pom we have 1.4.7-SNAPSHOT so it should be 
available ...



W dniu 2010-05-12 15:23, Muro Copenhagen pisze:

Hi again...

I guess a new release of wicket-stuff tinymce has to be made in order to use
it...

The current release 1.4-rc7 misses the changes you have commited...

Who can make a new release of wicket-stuff tinymce so we can use the
commited code ?

Best Regards
Muro

2010/5/12 Michał Letyńskimletyn...@consol.pl

   

Hi.
Its one of tiny examples:

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/tinymce-parent/tinymce-examples

W dniu 2010-05-12 12:40, Muro Copenhagen pisze:

 

Hi Michael,

That is a great example. But you mentioned that you have commited the
sample
to wicket-stuff.

I can't find it anywhere so can you please send a link or something...

Best regards
Muro

On Tue, May 4, 2010 at 2:49 PM, Robert Kimothokimot...@gmail.com
  wrote:



   

You are right I have a wicket path in src and it looks like this


'resources/wicket.contrib.tinymce.InPlaceEditBehavior/tiny_mce/plugins/emotions/img/smiley-cool.gif'
this is what you get submitted to the server, but the image does not get
displayed.
Can you guide me to using the IResourceListener or getting the emoticon
displayed at the client side.

Regards,
Kimotho.

2010/5/4 Michał Letyńskimletyn...@consol.pl



 

Hi.
If you have images in tiny with external src it should work but if you


   

have


 

in src a wicket path you must change it (to component which will get the
image look at IResourceListener)  before displainng image in label,
multilinelabel, etc.


W dniu 2010-05-03 09:10, Robert Kimotho pisze:

  When I submit a form with an emoticon from the fullfeatured tinymce,
the


   

image doesn't get displayed in the destination
only the text.
any suggestions, I've been stuck here for a while now.

2010/5/1 新希望软件 -- 俞宏伟nhsoft@gmail.com





 

image upload example run failuer, the application
throwsNoClassDefFoundError
.

WicketMessage: Can't instantiate page using constructor public
wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage()

Root cause:

java.lang.NoClassDefFoundError:
wicket/contrib/tinymce/image/ImageUploadPanel
 at




   
 

wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage.init(ImageUploadTinyMCEPage.java:42)


 

 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
   

Method)

 at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
 at




   
 

org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:192)


 

 at
   




   
 

org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57)


 

 at
   




   
 

org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:298)


 

 at
   




   
 

org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:320)


 

 at
   




   
 

org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234)


 

 at
   




   
 

org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)


 

 at
   




   
 

org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)


 

 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
   

 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)

 at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
 at



   
 

org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)


 

 at
   




   
 

org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312)


 

 at
   




   
 

org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)


 

 at
   



   
 

org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)


 

 at
   




   
 

org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)


 

 at
   



   
 

org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)


 

 at
   



   
 

org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)


 

 at
   

Re: Image Upload Using TinyMCE Within Wicket Framework

2010-05-12 Thread Michał Letyński

Hi.
Its one of tiny examples:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/tinymce-parent/tinymce-examples

W dniu 2010-05-12 12:40, Muro Copenhagen pisze:

Hi Michael,

That is a great example. But you mentioned that you have commited the sample
to wicket-stuff.

I can't find it anywhere so can you please send a link or something...

Best regards
Muro

On Tue, May 4, 2010 at 2:49 PM, Robert Kimothokimot...@gmail.com  wrote:

   

You are right I have a wicket path in src and it looks like this

'resources/wicket.contrib.tinymce.InPlaceEditBehavior/tiny_mce/plugins/emotions/img/smiley-cool.gif'
this is what you get submitted to the server, but the image does not get
displayed.
Can you guide me to using the IResourceListener or getting the emoticon
displayed at the client side.

Regards,
Kimotho.

2010/5/4 Michał Letyńskimletyn...@consol.pl

 

Hi.
If you have images in tiny with external src it should work but if you
   

have
 

in src a wicket path you must change it (to component which will get the
image look at IResourceListener)  before displainng image in label,
multilinelabel, etc.


W dniu 2010-05-03 09:10, Robert Kimotho pisze:

  When I submit a form with an emoticon from the fullfeatured tinymce, the
   

image doesn't get displayed in the destination
only the text.
any suggestions, I've been stuck here for a while now.

2010/5/1 新希望软件 -- 俞宏伟nhsoft@gmail.com



 

image upload example run failuer, the application
throwsNoClassDefFoundError
.

WicketMessage: Can't instantiate page using constructor public
wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage()

Root cause:

java.lang.NoClassDefFoundError:
wicket/contrib/tinymce/image/ImageUploadPanel
 at


   

wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage.init(ImageUploadTinyMCEPage.java:42)
 

 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

 at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
 at


   

org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:192)
 

 at


   

org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57)
 

 at


   

org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:298)
 

 at


   

org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:320)
 

 at


   

org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234)
 

 at


   

org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
 

 at


   

org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)
 

 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)

 at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
 at

   

org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)
 

 at


   

org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312)
 

 at


   

org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 

 at

   

org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
 

 at


   

org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
 

 at

   

org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
 

 at

   

org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
 

 at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)

 at


   

org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
 

 at


   

org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
 

 at

   

org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
 

 at org.mortbay.jetty.Server.handle(Server.java:326)
 at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
 at


   

org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
 

 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
 at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
 at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)

 at


   

org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
 

 at


   


Re: Image Upload Using TinyMCE Within Wicket Framework

2010-05-04 Thread Michał Letyński
(NativeConstructorAccessorImpl.java:39)

  at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
  at 
org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:192)
  at 
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57)

  at 
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:298)
  at 
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:320)

  at 
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234)
  at 
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)

  at 
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)
  at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
  at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)

  at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
  at 
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)




2010/4/26 Michał Letyńskimletyn...@consol.pl

   

I commited it to wicket-stuff tinymce project with proper example.

W dniu 2010-04-21 10:23, Johan Haleby pisze:

  That would be really helpful. I'm struggling to get your example to work.
 


   

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


 


   



--
Michał Letyński
ConSol* Consulting  Solutions Software Poland Sp. z o.o.
ul. Piastowska 44c, 30-070 Krakow
mail: mi...@consol.pl
tel: +48 609 266 753


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



Re: Image Upload Using TinyMCE Within Wicket Framework

2010-05-04 Thread Michał Letyński

Hi.
If you have images in tiny with external src it should work but if you 
have in src a wicket path you must change it (to component which will 
get the image look at IResourceListener)  before displainng image in 
label, multilinelabel, etc.



W dniu 2010-05-03 09:10, Robert Kimotho pisze:

When I submit a form with an emoticon from the fullfeatured tinymce, the
image doesn't get displayed in the destination
only the text.
any suggestions, I've been stuck here for a while now.

2010/5/1 新希望软件 -- 俞宏伟nhsoft@gmail.com

   

image upload example run failuer, the application
throwsNoClassDefFoundError
.

WicketMessage: Can't instantiate page using constructor public
wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage()

Root cause:

java.lang.NoClassDefFoundError:
wicket/contrib/tinymce/image/ImageUploadPanel
 at
wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage.init(ImageUploadTinyMCEPage.java:42)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

 at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
 at
org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:192)
 at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57)

 at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:298)
 at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:320)

 at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234)
 at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)

 at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)

 at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
 at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)
 at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312)

 at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
 at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)

 at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
 at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
 at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)

 at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
 at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
 at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)

 at org.mortbay.jetty.Server.handle(Server.java:326)
 at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
 at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)

 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
 at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
 at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)

 at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
 at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

Complete stack:

org.apache.wicket.WicketRuntimeException: Can't instantiate page using
constructor public
wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage()

 at
org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:212)
 at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57)
 at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:298)

 at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:320)
 at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234)

 at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
 at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)

 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
 at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
 at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)

java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
 

Re: Image Upload Using TinyMCE Within Wicket Framework

2010-04-26 Thread Michał Letyński

I commited it to wicket-stuff tinymce project with proper example.

W dniu 2010-04-21 10:23, Johan Haleby pisze:

That would be really helpful. I'm struggling to get your example to work.
   


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



Re: Image Upload Using TinyMCE Within Wicket Framework

2010-04-06 Thread Michał Letyński

Thanks.
I was thinking to commit it to tinymce wicketsuff-project as separate 
plugin. In that project there are already some plugins present.


Andreas Petersson pisze:

Looks very helpful on first sight.
maybe it would make sense to release the used code in the form of a 
wicketstuff project, for better accessability for developers.



I wrote an article for following topic:
Image upload using TinyMce within Wicket Framework
Article is based on functionality which i wrote to my project. I 
wrote it

since during investigation i saw high demand for such fuctionality.
I hope it will be helpful :) Any comments are welcome :)

http://java.dzone.com/articles/image-upload-using-tinymce



-
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



Image Upload Using TinyMCE Within Wicket Framework

2010-04-02 Thread Michał Letyński

I wrote an article for following topic:
Image upload using TinyMce within Wicket Framework
Article is based on functionality which i wrote to my project. I wrote it
since during investigation i saw high demand for such fuctionality.
I hope it will be helpful :) Any comments are welcome :)

http://java.dzone.com/articles/image-upload-using-tinymce




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



Bug with button type=button on IE

2010-03-29 Thread Michał Letyński

Code:
   Form? form = new FormVoid(form1);
   form.add(new Button(submitButton2) {
   @Override
   public void onSubmit() {
   //logic2
   }
   });
   form.add(new Button(submitButton1) {
   @Override
   public void onSubmit() {
  //logic1
   }
   });
Markup:
   form wicket:id=form1
   button type=button wicket:id=submitButton2Submit2/button
   button type=submit wicket:id=submitButton1Submit1/button
   /form

On ie, after clicking on Submit 1 onSubmit() from submit button2 will 
be invoked. Its because IE send's the name of the button type=button 
and Form#findSubmittingButton() takes this button.

Is it a known problem ? Can i create a jira issues for that ?

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



Re: Bug with button type=button on IE

2010-03-29 Thread Michał Letyński

Of course it can be solved.
http://www.kopz.org/public/documents/css/multiple_buttons_ie_workaround.html

Jason Lea pisze:
That is the problem with IE sending all button elements instead of the 
one that was clicked.  Firefox and others send only the clicked button.
So there is nothing that can be done on the server side, there is no 
way to figure out which button was actually clicked.


On 29/03/10 10:20 PM, Michał Letyński wrote:

Code:
 Form?  form = new FormVoid(form1);
 form.add(new Button(submitButton2) {
 @Override
 public void onSubmit() {
 //logic2
 }
 });
 form.add(new Button(submitButton1) {
 @Override
 public void onSubmit() {
//logic1
 }
 });
Markup:
 form wicket:id=form1
 button type=button 
wicket:id=submitButton2Submit2/button
 button type=submit 
wicket:id=submitButton1Submit1/button

 /form

On ie, after clicking on Submit 1 onSubmit() from submit button2 will
be invoked. Its because IE send's the name of the button type=button
and Form#findSubmittingButton() takes this button.
Is it a known problem ? Can i create a jira issues for that ?

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


   





--
Michał Letyński
ConSol* Consulting  Solutions Software Poland Sp. z o.o.
ul. Piastowska 44c, 30-070 Krakow
mail: mi...@consol.pl
tel: +48 609 266 753 



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



WicketTester and submiting form via ajax

2010-03-18 Thread Michał Letyński

Hi.
Again topic with submiting form via ajax with FileUpload inside. Im 
submiting form via AjaxButton.

For testing my panel im using:
wicketTester.executeAjaxEvent(butooon, onclick) - i want to test some 
logic in onSubmit()
and i get ServletRequest does not contain multipart content. One 
possible solution is to explicitly call Form.setMultipart(true), Wicket 
tries its best to auto-detect multipart forms but there are certain 
situation where it cannot.


executeAjaxEvent method does not check if form is multiPart. To 
workaround this problem before executeAjaxEvent we can execute:
   MockHttpServletRequest servletRequest = 
wicketTester.getServletRequest();

   servletRequest.setUseMultiPartContentType(true);
But its annoying to set this flag again and again. Could you extend 
executeAjaxEvent to check if form is multiPart ? Similar checking is 
already done in FormTester.onSubmit().

Can i create jirra issue ?


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



Re: Nested Forms and Multipart Fileupload Issue

2010-03-12 Thread Michał Letyński
Did you add a jira issue James ? If not i can do it. Its a showstopper 
for me.


Ilja Pavkovic pisze:

Hi,

  

Hmmm...I thought the Wicket Team already implemented something similar to
this into the framework some time ago.
  

Perhaps you should provide a quickstart and perhaps put it in a jira ticket?

Best Regards,
Ilja Pavkovic

  



--
Michał Letyński
ConSol* Consulting  Solutions Software Poland Sp. z o.o.
ul. Piastowska 44c, 30-070 Krakow
mail: mi...@consol.pl
tel: +48 609 266 753 



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



Re: Nested Forms and Multipart Fileupload Issue

2010-03-12 Thread Michał Letyński
Jirra issue with quickstart added: 
https://issues.apache.org/jira/browse/WICKET-2779


Michał Letyński pisze:
Did you add a jira issue James ? If not i can do it. Its a showstopper 
for me.


Ilja Pavkovic pisze:

Hi,

 
Hmmm...I thought the Wicket Team already implemented something 
similar to

this into the framework some time ago.
  
Perhaps you should provide a quickstart and perhaps put it in a jira 
ticket?


Best Regards,
Ilja Pavkovic

  





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



Re: Nested Forms and Multipart Fileupload Issue

2010-03-10 Thread Michał Letyński
Is there a wicket version where it works ? I tried  with 1.4.6 and 1.4.7 
but i get the same error which James got.
My use case : I'm trying to submit a form via ajax to upload a file  
inside modal window.

After debug:
FileUploadBase.isMultipartContent get false because

if (contentType.toLowerCase().startsWith(MULTIPART))   - contentType = 
application/x-www-form-urlencoded


James Carman pisze:

You're trying to submit a form via ajax to upload a file?

On Tue, Mar 9, 2010 at 4:26 PM, Corbin, James jcor...@iqnavigator.com wrote:
  

This issue seems to pop up in our environment from time to time and trying to 
figure out how to fix it once and for all.

We have a page with a form that pops up modal window with a form specified as 
well.

When we try to submit, we get the following exception:

java.lang.IllegalStateException: ServletRequest does not contain multipart 
content. One possible solution is to explicitly call Form.setMultipart(true), 
Wicket tries its best to auto-detect multipart forms but there are certain 
situation where it cannot.
at 
org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.init(MultipartServletWebRequest.java:113)
at 
org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.init(MultipartServletWebRequest.java:83)
at 
org.apache.wicket.protocol.http.servlet.ServletWebRequest.newMultipartWebRequest(ServletWebRequest.java:500)
at org.apache.wicket.markup.html.form.Form.handleMultiPart(Form.java:1668)
at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:862)
at 
org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:135)
at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
...

Setting Form.setMultipart(true) on either form has no affect.

We are running Wicket Version 1.4.7.

Is there a fix for this issue?

Is this JIRA Issue related??? https://issues.apache.org/jira/browse/WICKET-2749






-
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



Why getString() is replacing placeHolders in value ?

2010-02-26 Thread Michał Letyński

Hi.
Lets consider following situation.
I have a  property:
   info.msg=User has added ${text}
And the object named Content with such string field text.
String textFromProperty = getString(info.msg, new 
ModelContent(content)));

When the text with my Content object have value for e.g test i will get:
User has added test.
But text field can have any string (with some forbidden characters?) 
value for e.g - this is a ${simple}text  - expression ${simple} is 
just a text for me not a placeholder.
So first i get: User has added this is a ${simple}text  , but  later 
my value is again processed:


   // If a property value has been found, or a default value was given,
   // than replace the placeholder and we are done
   if (value != null)
   {
   return substitutePropertyExpressions(component, value, model);
   }

What was the purpose for doing it ? If it is a feature why its not in 
the loop ? Because ${simple} may have also some placeholders 


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



Re: Wicket.Ajax.Call.failure: after update wicket from 1.4.1 to 1.4.3

2009-12-07 Thread Michał Letyński

Thanks, it was handled in:
https://issues.apache.org/jira/browse/WICKET-2553

Igor Vaynberg pisze:

first try with latest wicket-1.4.x branch build. if its still there
then open a jira issue.

-igor

2009/12/4 Michał Letyński mletyn...@consol.pl:
  

The problem came in wicket 1.4.2 and its connected with NullPointer
exception which came from wicket-ajax.js - line 1133

Here is the code:

  if (submitButton!=null) {
  try {
  var btn = document.createElement(input type='hidden'
name='+submitButton+' id='+iframe.id+-btn'
value='1'/);
  } catch (ex) {
  var btn = document.createElement(input);
  btn.type=hidden;
  btn.name=submitButton;
  btn.id=iframe.id+-btn;
  btn.value=1;
  }
  }
  form.appendChild(btn);  -- buggy line

This line should be inside the if (submitButton!=null)  statement because in
my case submitButton is null. Why its null ? In
AjaxFormSubmitBehavior#getEventHandler() the submitButton is set only when
getComponent() instanceof IFormSubmittingComponent .
DropDownChoice is not an instace of IFormSubmittingComponent. Fast
workaround ? Just change IFormSubmittingComponent to FormComponent both of
them have key method #getInputName() (with the same logic, this also should
be changed i think :) )

Should i add a jira issue for that problem ?


Michał Letyński pisze:


Hi i have simple select with AjaxFormSubmitBehavior attached to it. After
changing selection i get:
Error:
Wicket.Ajax.Call.failure: Error while parsing response: Could not find
root ajax-response element

Is it a known problem ?

-
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

  



--
Michał Letyński
ConSol* Consulting  Solutions Software Poland Sp. z o.o.
ul. Piastowska 44c, 30-070 Krakow
mail: mi...@consol.pl
tel: +48 609 266 753 



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



Wicket.Ajax.Call.failure: after update wicket from 1.4.1 to 1.4.3

2009-12-04 Thread Michał Letyński
Hi i have simple select with AjaxFormSubmitBehavior attached to it. 
After changing selection i get:

Error:
Wicket.Ajax.Call.failure: Error while parsing response: Could not find root 
ajax-response element

Is it a known problem ?

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



Re: Wicket.Ajax.Call.failure: after update wicket from 1.4.1 to 1.4.3

2009-12-04 Thread Michał Letyński
The problem came in wicket 1.4.2 and its connected with NullPointer 
exception which came from wicket-ajax.js - line 1133


Here is the code:

   if (submitButton!=null) {
   try {
   var btn = document.createElement(input type='hidden' 
name='+submitButton+' id='+iframe.id+-btn' 
value='1'/);

   } catch (ex) {
   var btn = document.createElement(input);
   btn.type=hidden;
   btn.name=submitButton;
   btn.id=iframe.id+-btn;
   btn.value=1;
   }
   }
   form.appendChild(btn);  -- buggy line

This line should be inside the if (submitButton!=null)  statement 
because in my case submitButton is null. Why its null ? In 
AjaxFormSubmitBehavior#getEventHandler() the submitButton is set only 
when getComponent() instanceof IFormSubmittingComponent .
DropDownChoice is not an instace of IFormSubmittingComponent. Fast 
workaround ? Just change IFormSubmittingComponent to FormComponent both 
of them have key method #getInputName() (with the same logic, this also 
should be changed i think :) )


Should i add a jira issue for that problem ?


Michał Letyński pisze:
Hi i have simple select with AjaxFormSubmitBehavior attached to it. 
After changing selection i get:

Error:
Wicket.Ajax.Call.failure: Error while parsing response: Could not find 
root ajax-response element


Is it a known problem ?

-
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



Update of wicketstuff-tinymce's set of javascript

2009-07-27 Thread Michał Letyński

Hi.
According to: http://wicketstuff.org/jira/browse/WCTINYMCE-6
Are somebody planning to do an update of javascripts ?

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



Re: Anybody know what is this situation?

2009-07-17 Thread Michał Letyński
I got the same error. It's also totally random. But i have a bit 
different situation.
In my page i have panel, inside this panel i got panel which is 
anonymous class and inside of this panel is InlineFrame with Page.

Any clues how to solve this ?


Jeremy Thomerson pisze:

Generally unexplained class issues like this are because the same
class gets loaded a second time from a different class loader.  I once
had it throwing a ClassCastException that ClassA != ClassA.  Hard to
track down, though.

--
Jeremy Thomerson
http://www.wickettraining.com




On Fri, Jul 3, 2009 at 4:27 PM, bgoorenb...@iswd.nl wrote:
  

I got the same error today, seems totally random.

The only possible explanation I have is that maybe the subclass (LoginPage$1
in your case) stores a PageHolder class instead of the actual page
(LoginPage) when serialized, and when LoginPage$1 is deserialized, the
PageHolder retrieves/points to a different Page.

I was just as baffled as you since in my case the two classes were totally
different, like in your case (com.application.MainPage vs
wicket.quickstart.LoginPage).
In my case it's two pages from the same application, but they are
functionally separate and never interact.

In my case I made the inner class that caused the problem a static inner
class. Since I have been unable to reproduce the problem I cannot confirm if
this resolves the problem.

Can you share what kind of class LoginPage$1 is? (it's the first anonymous
inner class in LoginPage) Is it a class which extends IModel?

Also, you someone from the Wicket team confirm if my explanation above is
possible at all (PageHolder retrieving a different class when
deserializing)?

Bas


MartinM wrote:


Anybody know what is this situation? Wicket 1.4-rc4

From production:

2009-05-18 16:32:44,316 19598423 [btpool0-112] ERROR RequestCycle  -
cannot assign instance of com.application.MainPage to field
wicket.quickstart.LoginPage$1.this$0 of type
wicket.quickstart.LoginPage in instance of
wicket.quickstart.LoginPage$1
java.lang.ClassCastException: cannot assign instance of
com.application.MainPage to field wicket.quickstart.LoginPage$1.this$0
of type wicket.quickstart.LoginPage in instance of
wicket.quickstart.LoginPage$1
   at
java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2032)
   at
java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1212)

.. etc ...

  

--
View this message in context: 
http://www.nabble.com/Anybody-know-what-is-this-situation--tp23597800p24329006.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
  


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