Re: TinyMCE and textarea : validation problem

2011-12-28 Thread Michal Letynski
How your submit button looks like ? You need to copy value from tiny to 
textarea.


tinyMCE.triggerSave(true,true);

Look at the TinyMceAjaxButton and TinyMceAjaxSubmitModifier.

Regards,
Michal

W dniu 2011-12-28 20:20, ricmancio pisze:

I have a panel where I have a form,feedback and  textarea field done so:

//*add feedback panel*

final FeedbackPanel feedback = new FeedbackPanel(feedback);
feedback.setOutputMarkupId(true);
add(feedback);

//*add form*

Form form = new Form(form,
new CompoundPropertyModel(segnif));

//*add component*

FormComponent   fc;

fc = new TextArea(text,new PropertyModel(form,text));
fc.setRequired(true);

*the field is required*

*if I add TinyMce so:*

I imports wicket.contrib.tinymce.TinyMceBehavior and modify the code:


fc = new TextArea(text,new PropertyModel(form,text));
fc.add(new TinyMceBehavior());
fc.setRequired(true);

then I write on textarea field but on the feedback is written that field is
required,
as if I had not written anything

Validation does not work, when introduce TinyMce, Why?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TinyMCE-and-textarea-validation-problem-tp4240317p4240317.html
Sent from the Users forum mailing list archive at Nabble.com.

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




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



Re: Bug in wicket tiny mce 1.4.18

2011-12-10 Thread Michal Letynski

Just get an access to wicket-stuff and fix it by yourself.

W dniu 2011-12-10 20:07, Philipp pisze:

Dear Folks,

I think I found a bug in the Wicket Tiny MCE implementation version 
1.4.18.


In class TinyMCESettings.java there's the following method:

public static void lazyLoadTinyMCEResource(IHeaderResponse 
response) {


String url = 
RequestCycle.get().urlFor(TinyMCESettings.javaScriptReference()).toString();
String base = url.substring(0, 
url.lastIndexOf(File.separatorChar));
response.renderJavascript(window.tinyMCEPreInit = {base : ' 
+ base + ', suffix : '', query : ''};, tinyMceHackPreload);

response.renderJavascriptReference(TinyMCESettings.javaScriptReference());
response.renderJavascript(window.tinymce.dom.Event.domLoaded 
= true;, tinyMceHackPostload);

}


The first line returns a URL.  In the second line an attempt is made 
to extract a substring using the index of File.separatorChar. However, 
File.separatorChar on a Windows systems is \\. This is a character 
never found in a URL (there are usually only / characters). Thus, 
always -1 is returned and the substring operation fails with an index 
ouf of bounds:


java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1937) ~[na:1.6.0_27]
at 
wicket.contrib.tinymce.settings.TinyMCESettings.lazyLoadTinyMCEResource(TinyMCESettings.java:971) 
~[tinymce-1.4.18.jar:1.4.18 null -mike]
at 
wicket.contrib.tinymce.TinyMceBehavior.renderHead(TinyMceBehavior.java:60) 
~[tinymce-1.4.18.jar:1.4.18 null -mike]
at org.apache.wicket.Component.renderHead(Component.java:2806) 
~[wicket-1.4.18.jar:1.4.18]


Shall I file a bug report on this?

Philipp



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




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



Re: Wicket - TinyMCE

2011-08-01 Thread Michal Letynski

Hi.
W dniu 2011-08-02 04:29, ramazan pekin pisze:

Hi to everyone,

I am looking for rich text editor and I found TinyMCE. But I couldnt
find any document/example page how can I integrate wicket and TinyMCE
explained detailed. Do you know is there any documentation or example
about this subject?

There are some examples for it:

https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/tinymce-parent/tinymce-examples


Thanks, br.
Ramazan

-
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: wicketstuff tinymce development

2011-08-01 Thread Michal Letynski

W dniu 2011-07-29 18:30, jbrookover pisze:

Michal Letynski wrote:

Ok i solved the problem. I used wrong version (1.4.17.3 - its buggy). I
get exceptions:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  at java.lang.String.substring(String.java:1937)
  at
wicket.contrib.tinymce.settings.TinyMCESettings.lazyLoadTinyMCEResource(TinyMCESettings.java:971)
  at
wicket.contrib.tinymce.TinyMceBehavior.renderHead(TinyMceBehavior.java:60)

And looking and java docs ( TODO: This has not been extensively
tested.) it still under development.


For TinyMCE to work properly with AJAX, it must be loaded on the page prior
to the Ajax call that generates the editor.  This is a flaw with TinyMCE
itself, not the wicket component.

Up until version 1.4.17.2, you needed to render the TinyMCE javascript
resource with the Page (or some other non-Ajax generated component) and then
individual components can use TinyMCEBehavior on an Ajax rendered text area.
This is described in the JavaDoc for lazyLoadTinyMCEResource().

lazyLoadTinyMCEResource() was my attempt to get around this requirement and
load the javascript via Ajax.  I suspect the problem is not with the
technique but with the URL manipulation.  Feel free to contribute a bug fix
and/or ignore the lazyLoadTinyMCEResource() function.  However, it should be
considered beta and is completely optional.  You can still use the old
method.

Hope that helps!  I still recommend using 1.4.17.3 as it has an up-to-date
version of TinyMCE and several other improvements.
I used tinymce editor in previous company for two years and it worked 
with/without ajax just from scrath, without any magic.
Recommended version 1.4.17.3 just not worked for me, so i used previous 
one.

Thanks for support.


Jake

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicketstuff-tinymce-development-tp3698059p3704257.html
Sent from the Users forum mailing list archive at Nabble.com.

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




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



Re: Wicket - TinyMCE/FckEditor

2011-08-01 Thread Michal Letynski

W dniu 2011-08-02 09:34, Josh Kamau pisze:

Hi Michal,

If you want a really nice and simple Rich Text Editor, take a look at
visural-wicket project.

Here is the link to the demos - http://wicket.visural.net/examples/app/

NicEdit is dead. Its not supported for long time.


regards.
Josh.

On Tue, Aug 2, 2011 at 8:27 AM, Chris Colman
chr...@stepaheadsoftware.comwrote:


Are there any examples of Wicket integrated with FckEditor (the one
before CkEditor)?


-Original Message-
From: Michal Letynski [mailto:m...@consol.ae]
Sent: Tuesday, 2 August 2011 3:25 PM
To: users@wicket.apache.org
Subject: Re: Wicket - TinyMCE

Hi.
W dniu 2011-08-02 04:29, ramazan pekin pisze:

Hi to everyone,

I am looking for rich text editor and I found TinyMCE. But I couldnt
find any document/example page how can I integrate wicket and TinyMCE
explained detailed. Do you know is there any documentation or example
about this subject?

There are some examples for it:

https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/tinymce-
parent/tinymce-examples


Thanks, br.
Ramazan

-
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: wicketstuff tinymce development

2011-07-28 Thread Michal Letynski


W dniu 2011-07-28 12:08, Pointbreak pisze:

According to:
http://tinymce.moxiecode.com/tryit/multiple_configs.php

   Mode should be switched to textareas our current implementation
provide exact only.

Why would you want to use textareas matching when using TinyMce in
Wicket? Attach a TinyMceBehavior to each Wicket component that needs a
TinyMce editor. That's it. Using textarea mode makes no sense in a
Wicket integration as it doesn't integrate anything.


Ok i solved the problem. I used wrong version (1.4.17.3 - its buggy). I 
get exceptions:


java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1937)
at 
wicket.contrib.tinymce.settings.TinyMCESettings.lazyLoadTinyMCEResource(TinyMCESettings.java:971)
at 
wicket.contrib.tinymce.TinyMceBehavior.renderHead(TinyMceBehavior.java:60)


And looking and java docs ( TODO: This has not been extensively 
tested.) it still under development.



-
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



wicketstuff tinymce development

2011-07-27 Thread Michal Letynski

Hi.
Is here anyone who is currently doing something with tinymce wicketstuff 
project ? I saw that in current version we are not able to add more then 
one instance of tiny in one page. I want to change it. I saw that 
wicket-stuff was moved to git, accounts from svn was copied or should i 
ask for new one ?


Regards,
Michal



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



Re: wicketstuff tinymce development

2011-07-27 Thread Michal Letynski

W dniu 2011-07-27 17:27, jbrookover pisze:

Michal Letynski wrote:

Is here anyone who is currently doing something with tinymce wicketstuff
project ? I saw that in current version we are not able to add more then
one instance of tiny in one page.


I've recently made some commits to the tinymce wicketstuff package on
GitHub, if you want to call that currently doing something.  :)

You are certainly able to add more than one instance on a page.  We use this
package heavily throughout our applications and it works well, including
Ajax, spellcheck, and multiple configuration settings.


You can do this with current implementation ? Or you did some changes ?
According to:
http://tinymce.moxiecode.com/tryit/multiple_configs.php

 Mode should be switched to textareas our current implementation 
provide exact only.



Jake

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicketstuff-tinymce-development-tp3698059p3698489.html
Sent from the Users forum mailing list archive at Nabble.com.

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




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



Re: How run Wicket Application

2011-02-16 Thread Michal Letynski

Just open the tomcat manager and deploy this war file.

W dniu 2011-02-16 13:03, Mr Jehan pisze:

please any other solution
On Wed, Feb 16, 2011 at 1:39 PM, Martin Makundi
martin.maku...@koodaripalvelut.com  wrote:


Might be easier just to put it into eclipse and run Start.java, maybe.

**
Martin

2011/2/16 Mr Jehanjeeha...@gmail.com:
Dear all

I downloaded HelloWorld wicket application,
I run following commind

  C:\Users\admin\wicket-hello-world  *mvn install *

following is log of mvn

My tomcat installed at d:/tomcat/

which directory I copy from* C:\Users\admin\wicket-hello-world* to *
d:/tomcat/webapp* folder.



log--

[INFO] Scanning for projects...
[INFO]

[INFO] Building wicketHelloWorld
[INFO]task-segment: [install]
[INFO]

[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\src\test\resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] No tests to run.
[INFO] [war:war {execution: default-war}]
[INFO] Packaging webapp
[INFO] Assembling webapp[HelloWorld] in


[C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\target\HelloWorld-1.0]

[INFO] Dependency[Dependency {groupId=org.apache.wicket,

artifactId=wicket,

version=1.4-rc2, type=jar}] has changed (was Dependency
{groupId=org.apache.wicket, artifactId=wicket, version=1.4-rc2,

type=jar}).

[INFO] Dependency[Dependency {groupId=org.slf4j,

artifactId=slf4j-log4j12,

version=1.4.2, type=jar}] has changed (was Dependency {groupId=org.slf4j,
artifactId=slf4j-log4j12, version=1.4.2, type=jar}).
[INFO] Dependency[Dependency {groupId=log4j, artifactId=log4j,
version=1.2.14, type=jar}] has changed (was Dependency {groupId=log4j,
artifactId=log4j, version=1.2.14, type=jar}).
[INFO] Processing war project
[INFO] Copying webapp


resources[C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\src\main\webapp]

[INFO] Webapp assembled in[208 msecs]
[INFO] Building war:


C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\target\HelloWorld-1.0.war

[INFO] [install:install {execution: default-install}]
[INFO] Installing


C:\Users\admin\Desktop\wicket-hello-world-maven\mkyong\target\HelloWorld-1.0.war

to


C:\Users\admin\.m2\repository\com\mkyong\HelloWorld\1.0\HelloWorld-1.0.war

[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 5 seconds
[INFO] Finished at: Wed Feb 16 13:22:04 PKT 2011
[INFO] Final Memory: 10M/24M
[INFO]



-
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