Re: Wicket Stuff TinyMCE Update?
Thank you both! I just committed the new files to the 1.4 branch. I'll look into updating the project for 1.5 as soon as I am able. Josh On Fri, Oct 29, 2010 at 1:51 PM, Igor Vaynberg wrote: > you are in > > -igor > > On Fri, Oct 29, 2010 at 10:26 AM, Josh Glassman wrote: >> Ok, will talk to him. My sf username is joshums. >> >> On Fri, Oct 29, 2010 at 1:14 PM, Igor Vaynberg >> wrote: >>> whats your sf.net username? i can give you access to svn. >>> >>> as far as builds, Michael O'Cleirigh takes care of those on regular >>> basis. you might want to talk to him if you want more details. >>> >>> -igor >>> >>> On Fri, Oct 29, 2010 at 10:05 AM, Josh Glassman wrote: >>>> I would be willing to do so, at least temporarily. How do I get >>>> commit permissions, and how do I get a build created and installed to >>>> the maven repo? >>>> >>>> On Fri, Oct 29, 2010 at 11:44 AM, Igor Vaynberg >>>> wrote: >>>>> dont think anyone is maintaining the project. you are welcome to take it >>>>> over. >>>>> >>>>> -igor >>>>> >>>>> On Fri, Oct 29, 2010 at 8:40 AM, Josh Glassman wrote: >>>>>> Hi All, >>>>>> >>>>>> Who if anyone is in charge of the Wicket Stuff TinyMCE project? >>>>>> >>>>>> I have been having some issues with it and noticed that the TinyMCE >>>>>> files have not been updated since the initial 3.3 release. I tried >>>>>> simply replacing the tiny_mce folder inside a copy of the >>>>>> tinymce-1.4.12.jar with the latest from the website and my issues are >>>>>> completely gone now. Is there any chance we could get an updated >>>>>> release with the newer files? >>>>>> >>>>>> Now another question is coming to mind, is there any sort of standard >>>>>> defined for how often an included dependency like this should be >>>>>> updated? On one hand it would be nice to always have the most >>>>>> up-to-date files available through maven, but on the other hand that >>>>>> could be very time and resource consuming depending on how often the >>>>>> dependency is updated. Thoughts? Suggestions? >>>>>> >>>>>> - >>>>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>>>>> For additional commands, e-mail: users-h...@wicket.apache.org >>>>>> >>>>>> >>>>> >>>>> - >>>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>>>> For additional commands, e-mail: users-h...@wicket.apache.org >>>>> >>>>> >>>> >>>> - >>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>>> For additional commands, e-mail: users-h...@wicket.apache.org >>>> >>>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Stuff TinyMCE Update?
Ok, will talk to him. My sf username is joshums. On Fri, Oct 29, 2010 at 1:14 PM, Igor Vaynberg wrote: > whats your sf.net username? i can give you access to svn. > > as far as builds, Michael O'Cleirigh takes care of those on regular > basis. you might want to talk to him if you want more details. > > -igor > > On Fri, Oct 29, 2010 at 10:05 AM, Josh Glassman wrote: >> I would be willing to do so, at least temporarily. How do I get >> commit permissions, and how do I get a build created and installed to >> the maven repo? >> >> On Fri, Oct 29, 2010 at 11:44 AM, Igor Vaynberg >> wrote: >>> dont think anyone is maintaining the project. you are welcome to take it >>> over. >>> >>> -igor >>> >>> On Fri, Oct 29, 2010 at 8:40 AM, Josh Glassman wrote: >>>> Hi All, >>>> >>>> Who if anyone is in charge of the Wicket Stuff TinyMCE project? >>>> >>>> I have been having some issues with it and noticed that the TinyMCE >>>> files have not been updated since the initial 3.3 release. I tried >>>> simply replacing the tiny_mce folder inside a copy of the >>>> tinymce-1.4.12.jar with the latest from the website and my issues are >>>> completely gone now. Is there any chance we could get an updated >>>> release with the newer files? >>>> >>>> Now another question is coming to mind, is there any sort of standard >>>> defined for how often an included dependency like this should be >>>> updated? On one hand it would be nice to always have the most >>>> up-to-date files available through maven, but on the other hand that >>>> could be very time and resource consuming depending on how often the >>>> dependency is updated. Thoughts? Suggestions? >>>> >>>> - >>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>>> For additional commands, e-mail: users-h...@wicket.apache.org >>>> >>>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Stuff TinyMCE Update?
I would be willing to do so, at least temporarily. How do I get commit permissions, and how do I get a build created and installed to the maven repo? On Fri, Oct 29, 2010 at 11:44 AM, Igor Vaynberg wrote: > dont think anyone is maintaining the project. you are welcome to take it over. > > -igor > > On Fri, Oct 29, 2010 at 8:40 AM, Josh Glassman wrote: >> Hi All, >> >> Who if anyone is in charge of the Wicket Stuff TinyMCE project? >> >> I have been having some issues with it and noticed that the TinyMCE >> files have not been updated since the initial 3.3 release. I tried >> simply replacing the tiny_mce folder inside a copy of the >> tinymce-1.4.12.jar with the latest from the website and my issues are >> completely gone now. Is there any chance we could get an updated >> release with the newer files? >> >> Now another question is coming to mind, is there any sort of standard >> defined for how often an included dependency like this should be >> updated? On one hand it would be nice to always have the most >> up-to-date files available through maven, but on the other hand that >> could be very time and resource consuming depending on how often the >> dependency is updated. Thoughts? Suggestions? >> >> - >> 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
Wicket Stuff TinyMCE Update?
Hi All, Who if anyone is in charge of the Wicket Stuff TinyMCE project? I have been having some issues with it and noticed that the TinyMCE files have not been updated since the initial 3.3 release. I tried simply replacing the tiny_mce folder inside a copy of the tinymce-1.4.12.jar with the latest from the website and my issues are completely gone now. Is there any chance we could get an updated release with the newer files? Now another question is coming to mind, is there any sort of standard defined for how often an included dependency like this should be updated? On one hand it would be nice to always have the most up-to-date files available through maven, but on the other hand that could be very time and resource consuming depending on how often the dependency is updated. Thoughts? Suggestions? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: TextField
There is also a constructor that will take a Class type as a parameter. On Thu, Jul 22, 2010 at 3:11 PM, T Ames wrote: > I think you have to use the setType(Integer.class) method on the TextField > object. > > setType > > public final FormComponent > > > > > *setType*(java.lang.Class type) > > Sets the type that will be used when updating the model for this component. > If no type is specified String type is assumed. > > *Parameters:*type - *Returns:*this for chaining > > On Thu, Jul 22, 2010 at 1:50 PM, Douglas Ferguson < > doug...@douglasferguson.us> wrote: > > > Has anybody succesfully used TextField? > > > > I get an runtime exception trying to cast String to Integer. > > > > If supply (Integer.class) to the constructor then it is trying to case > Long > > to Integer. > > > > D/ > > >
Re: new feature in trunk and branch: Component#onInitialize()
Nice, I have one or two places where onInitialize would make more sense than onBeforeRender. Thanks for the update! One question, does it matter where in the override we call super#onInitialize (beginning or end)?
Re: Combo Box (help!)
[Ljava.lang.String;@HEX looks like you are stuffing an Array of Strings into a String. So, it calls String[].toString() and stuffs that into your String, like so... System.out.println(new String[] {"string", "array"});. I'm not real familiar with the choice renderer, so I'm not sure how this would happen when your string gets loaded back in to your model. Maybe someone else has an idea?
Re: Math captcha with Wicket?
Take a look at http://wicket.apache.org/docs/1.4/org/apache/wicket/extensions/markup/html/captcha/CaptchaImageResource.html You might need to override some of it, or make your own customized version to get the text and look you want. Looks like a good starting point at least. On Thu, May 6, 2010 at 10:08 AM, Thomas Götz wrote: > nino martinez wael schrieb: > > http://java.sun.com/docs/books/tutorial/2d/overview/rendering.html >> > > Well, tanks ;-) > I was hoping to find some ready-to-be-used library/components that already > does that ... > > -Tom > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: wicket tinymce blank string
http://stackoverflow.com/questions/240546/removing-html-from-a-java-string . . . and then . . . yourStringWithoutHTML.trim().isEmpty()
Re: formsubmitbehaviour and textarea with tinymce behaviour
http://wicketbyexample.com/wicket-tinymce-some-advanced-tips/
Re: String Resource Loading from DB
Ah, right... we got around that by not using the class (partly so we could use the same resource strings across different classes). The only other thing I can suggest is to use more unique keys for anonymous classes, though that is clearly not ideal. Maybe someone else knows a better solution. On Thu, Apr 22, 2010 at 3:27 AM, Zilvinas Vilutis wrote: > the combination of class, key, locale, style must be unique, so if I > have the same keys ( while locale and style is not changing ) - the > classname must be unique. So I cannot use this in anonymous classes, > as it does not resolve, e.g. page class name > > > Žilvinas Vilutis > > Mobile: (+370) 652 38353 > E-mail: cika...@gmail.com > > > > On Wed, Apr 21, 2010 at 1:46 PM, Josh Glassman wrote: > > Not sure what you mean about implementing a unique class... any class > which > > inherits from Component can call getString(String key), which will call > your > > custom IStringResourceLoader. Additionally, you can set the locale on > any > > MarkupContainer or the Session, and Components will use their parent's > > locale falling back to the Session's. > > > > You can also use the wicket:message tag directly in your markup, which > uses > > whatever locale it's associated class uses. > > > > What we do is set the locale on the Session, and use that and a resource > key > > to pull the string from the database. We use DB caching, and turn off > the > > built-in resource string caching that wicket does (see below, goes in > > WebApplication.init()). > > > > getResourceSettings().setLocalizer(new Localizer() { > > @Override > > protected void putIntoCache(String cacheKey, String string) { > > // Do nothing... no caching desired, since our DB layer caches > > } > > }); > > > > > > > > On Tue, Apr 20, 2010 at 1:53 PM, Zilvinas Vilutis > wrote: > > > >> Yes, > >> > >> That seems to work. Although each component which needs to be > >> localized needs to implement a unique class, 'cause in many cases the > >> Component class is "WebMarkupContainer" ( if we use components in list > >> & etc ). > >> > >> Does anyone have practice on using any performance experience on that? > >> > >> Do you use DB caching or method caching? > >> > >> > >> Žilvinas Vilutis > >> > >> Mobile: (+370) 652 38353 > >> E-mail: cika...@gmail.com > >> > >> > >> > >> On Tue, Apr 20, 2010 at 7:40 AM, Josh Glassman > wrote: > >> > Yup, you have the right idea. > >> > > >> > Something like... > >> >public class DatabaseStringResourceLoader implements > >> > IStringResourceLoader {...} > >> > > >> > And then in your WebApplication.init()... > >> >getResourceSettings().addStringResourceLoader(new > >> > DatabaseStringResourceLoader()); > >> > > >> > Cheers, > >> > Josh > >> > > >> > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: String Resource Loading from DB
Not sure what you mean about implementing a unique class... any class which inherits from Component can call getString(String key), which will call your custom IStringResourceLoader. Additionally, you can set the locale on any MarkupContainer or the Session, and Components will use their parent's locale falling back to the Session's. You can also use the wicket:message tag directly in your markup, which uses whatever locale it's associated class uses. What we do is set the locale on the Session, and use that and a resource key to pull the string from the database. We use DB caching, and turn off the built-in resource string caching that wicket does (see below, goes in WebApplication.init()). getResourceSettings().setLocalizer(new Localizer() { @Override protected void putIntoCache(String cacheKey, String string) { // Do nothing... no caching desired, since our DB layer caches } }); On Tue, Apr 20, 2010 at 1:53 PM, Zilvinas Vilutis wrote: > Yes, > > That seems to work. Although each component which needs to be > localized needs to implement a unique class, 'cause in many cases the > Component class is "WebMarkupContainer" ( if we use components in list > & etc ). > > Does anyone have practice on using any performance experience on that? > > Do you use DB caching or method caching? > > > Žilvinas Vilutis > > Mobile: (+370) 652 38353 > E-mail: cika...@gmail.com > > > > On Tue, Apr 20, 2010 at 7:40 AM, Josh Glassman wrote: > > Yup, you have the right idea. > > > > Something like... > >public class DatabaseStringResourceLoader implements > > IStringResourceLoader {...} > > > > And then in your WebApplication.init()... > >getResourceSettings().addStringResourceLoader(new > > DatabaseStringResourceLoader()); > > > > Cheers, > > Josh > > >
Re: String Resource Loading from DB
Yup, you have the right idea. Something like... public class DatabaseStringResourceLoader implements IStringResourceLoader {...} And then in your WebApplication.init()... getResourceSettings().addStringResourceLoader(new DatabaseStringResourceLoader()); Cheers, Josh
Re: RequiredTextField
Thanks Igor! On Wed, Dec 30, 2009 at 4:02 PM, Igor Vaynberg wrote: > alternatively you can let your testmodel implement > IObjectClassAwareModel and return the type of object that the model > contains so that wicket can do the conversion automatically. this is > why you dont need to do this explicitly when using propertymodels > directly. > > -igor > > On Wed, Dec 30, 2009 at 1:01 PM, Igor Vaynberg > wrote: >> you have to tell wicket that it should convert the string into an >> integer by either calling settype(integer.class) on the textfield or >> using the constructor that takes the class type arg >> >> -igor >> >> On Wed, Dec 30, 2009 at 12:52 PM, Josh Glassman wrote: >>> Hi all, >>> >>> I am having a problem with Ajax updates from a >>> RequiredTextField. I get a ClassCastException when the model >>> object is updated, because the convertedInput value is a String. I am >>> using a custom model, and I suspect I am missing something here >>> because it works if a PropertyModel is used. Unfortunately that is >>> not sufficient for my needs. I have attached a quickstart which >>> replicates the problem using a custom model around the Calendar class. >>> If anyone has an idea of what I need to do, please let me know. >>> >>> Thanks in advance, >>> Josh >>> >>> >>> - >>> 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: Exceptions in MyApplication.init()
There is a wiki page with information on creating custom error pages. http://cwiki.apache.org/WICKET/error-pages-and-feedback-messages.html Hopefully that is what you are looking for! Josh On Fri, Oct 23, 2009 at 12:34 PM, Tomás Rossi wrote: > Hey people, > > I've noted that if an exception occurs during the execution of init method > of MyApplication (which extends WebApplication), a SERVICE UNAVAILABLE > (error 503) page shows. We'd like to have our own error page for this case > and figured out a workaround which includes catching and saving the > exception in the init method, setting some state and then handling it > later... > But, what is the Wicket way of doing this? > > Thanks in advance, > -- > Tom; > > > > - > 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