Make wicket aware of loaded javascript

2014-09-27 Thread Mathias Nilsson
Hi, I have a javascript function already loaded when the first page loads. When adding a new Panel thru ajax I add target.appendJavascript afterwards but I get Exception evaluating javascript: ReferenceError: deselectAll is not defined. I know that the script is there. I must be missing

Re: Issue while running wicket from tomcat

2014-04-20 Thread Mathias Nilsson
Download the sample application from wicket.apache.org and go from there. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Issue-while-running-wicket-from-tomcat-tp4665469p4665484.html Sent from the Users forum mailing list archive at Nabble.com.

WicketTester in Thread

2014-04-19 Thread Mathias Nilsson
Hi, I', using Wicket to send html mail and I know that this has been asked many times but I can't reuse my wicket tester. I have a cron job @org.nnsoft.guice.guartz.Scheduled( cronExpression = 0/5 * * * * ? ) that executes and checks for mail. @Inject MyApplication application WicketTester

Re: WicketTester in Thread

2014-04-19 Thread Mathias Nilsson
Thank you! 1) ComponentRenderer does not work. Have already tried that and with same result as my above error. 2) I get the same result when trying this. 3) I Will try this. // Mathias -- View this message in context:

Re: No javascript wicket 6.14.0

2014-03-26 Thread Mathias Nilsson
Sorry this was not a Wicket thing. I used ProxyPass in httpd and when the url /?1 appeared it could not be handled. When using localhost:9090 thrue Jetty ajax works. // Mathias -- View this message in context:

No javascript wicket 6.14.0

2014-03-25 Thread Mathias Nilsson
Hi, I have a very odd error and can't see any error messages. When Adding a Link or AjaxLink I get redirected to the previous page. If adding a label everything is ok. When looking at the source wicket isn't including any javascript. -- View this message in context:

Re: No javascript wicket 6.14.0

2014-03-25 Thread Mathias Nilsson
Ok, read that Jquery only is included when needed. I can't even add a simple Link? add(new LinkVoid(link){ @Override public void onClick() { setResponsePage(TestPage.class); } }); The code above redirects me to Apache root. If I comment out the add link everything works! --

Re: UTF-8 not working

2011-10-15 Thread Mathias Nilsson
This is my web.xml. Still does not work ?xml version=1.0 encoding=UTF-8? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;

Re: UTF-8 not working

2011-10-15 Thread Mathias Nilsson
Oh, And I've also tried putting org.springframework.web.filter.CharacterEncodingFilter as the first filter -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/UTF-8-not-working-tp3906237p3907047.html Sent from the Users forum mailing list archive at Nabble.com.

Re: UTF-8 not working

2011-10-14 Thread Mathias Nilsson
Sorry. Forgot to say wicket version 1.4.18 getMarkupSettings().setDefaultMarkupEncoding(UTF-8); getRequestCycleSettings().setResponseRequestEncoding(UTF-8); set in init -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/UTF-8-not-working-tp3906237p3906254.html Sent

Lazyloading node in LinkTree

2011-05-27 Thread Mathias Nilsson
Hi, I'm using the LinkTree for navigation and will in some cases have lots of data so therefor I want to Lazy load the children of a parent. So far I have extended the DefaultMutableTreeNode and overridden isLeaf to fake if a node have children. Now I want to show a spinner in the tree add the

Re: Lazyloading node in LinkTree

2011-05-27 Thread Mathias Nilsson
Any other idé better than this tree = new LinkTree(tree, treeModel){ private static final long serialVersionUID = 1L; @Override protected void onNodeLinkClicked ( Object node, BaseTree tree, AjaxRequestTarget target) {

Re: IStringResourceLoader database implementation

2011-05-19 Thread Mathias Nilsson
Thanks, My concern is also name component collition. The org.apache.wicket.resource.loader.ComponentStringResourceLoader iterates over the component stack to check for the values but that could leed to 10 times per text string and it would be a heavy load even if I implemented some sort of cache.

Re: HeaderContributors, Ajax and IE8

2011-05-18 Thread Mathias Nilsson
I had problem in IE8 with a previous version of wicket. Used 1.4.12 and it worked fine in IE8 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/HeaderContributors-Ajax-and-IE8-tp3529468p3533422.html Sent from the Users forum mailing list archive at Nabble.com.

RE: Serve Json in request and response

2011-05-05 Thread Mathias Nilsson
Thanks but this is not the problem. The problem is the Json server. I want to use Json as both query language and response language This doens't seem to be right for the query. How would you handle this. http://myspace.com/json?q={really.ong.nested.query} What is the proper way of sending

Re: Monitoring progress of business layer service in presentation layer

2011-05-03 Thread Mathias Nilsson
// Service public class Service implements IService{ public ListAnyObject getObjects(){ // return list from dao or whatever } } // wicket class public MyPage extends WebPage{ @SpringBean( name = service ) private IService service; public MyPage(){ // in some

Re: Serve Json in request and response

2011-05-03 Thread Mathias Nilsson
Ok, And if I should use a servlet. Where do I go from there? I can use dopost and doget but how to handle Json request? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Serve-Json-in-request-and-response-tp3491991p3492203.html Sent from the Users forum mailing list

Dealing with JSON request

2011-01-19 Thread Mathias Nilsson
I've read about how to make a json response with ajax but how do you deal with request. Let´s say I would interchange data between server and client. // Request { login:{ credential : uniquekey, username : user, password : password } } // response { user : { name :

Re: Confirmation Dialog Not Displayed For Button

2010-10-04 Thread Mathias Nilsson
I ran this in IE7, Firefox and Google Chrome and it worked fine. make sure you don't have a javascript error in the page and maybe add delete.add(new SimpleAttributeModifier( onclick, if (!confirm('Delete?') ){ return false; })); -- View this message in context:

Re: Wicket 1.4.12 Ajax problems

2010-10-03 Thread Mathias Nilsson
I also tried 1.4.12 and got the same problem in chrome. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4-12-Ajax-problems-tp2930684p2953070.html Sent from the Users forum mailing list archive at Nabble.com.

Re: alphabetical paging navigator

2010-10-01 Thread Mathias Nilsson
This can be implemented in a better way. See source code for navigation in wicket. But here is a simple example // Create a panel import java.util.LinkedList; import java.util.List; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.markup.html.AjaxLink; import

Slow wicket page on specific server

2010-10-01 Thread Mathias Nilsson
Hi, I don't know if any of you have experienced this but any feedback is welcome. On my local server the checkout page renders in less than a second. On the deployment server it also renders in less than a second. We are now upograding to a new server but the same page takes 10 seconds to

Re: Slow wicket page on specific server

2010-10-01 Thread Mathias Nilsson
Here is some traces. - waiting on 0x0001e5b18860 (a java.lang.Object) at org.quartz.simpl.SimpleThreadPool.getNextRunnable(SimpleThreadPool.ja va:428) - locked 0x0001e5b18860 (a java.lang.Object) at

Re: modalWindow setContent

2010-09-26 Thread Mathias Nilsson
http://wicketstuff.org/wicket14/ajax/ http://wicketstuff.org/wicket14/ajax/ Click on ModalWindow for example -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/modalWindow-setContent-tp2714385p2714490.html Sent from the Users forum mailing list archive at Nabble.com.

Re: modalWindow setContent

2010-09-26 Thread Mathias Nilsson
I'm not entire sure what you want to achive. This example is to open a new window that extends WebPage. You don't need to call setContent. public class HomePage extends WebPage { private static final long serialVersionUID = 1L; private String content; // This is a variable to

Re: Clear cached key Localizer

2010-09-26 Thread Mathias Nilsson
Added this to remove all keys regardless of the component /** * Remove every key from cache regardless of the component * @param key the resource key */ public void clearCachedKeys(final String key){ if( cache == null ) return;

IndexedParamUrlCodingStrategy for multiple customers

2010-09-25 Thread Mathias Nilsson
Hi, I'm having trouble on setting up the following scenario. I'm developing a mediabase application that multiple users from different customers can consume. They will get to loginpage by http://mydomain.com/mediabase/customer1. The wicket application is http://mydomain.com/mediabase. I was

Re: IndexedParamUrlCodingStrategy for multiple customers

2010-09-25 Thread Mathias Nilsson
Another problem I'm facing with this is that I have to mount every customer in my application. The last mount will be the one wicket will use when setting responsePage etc. -- View this message in context:

Re: IndexedParamUrlCodingStrategy for multiple customers

2010-09-25 Thread Mathias Nilsson
Ok I found http://blog.jteam.nl/2010/02/24/wicket-root-mounts/ http://blog.jteam.nl/2010/02/24/wicket-root-mounts/ that pretty much fixes my problem. -- View this message in context:

Clear cached key Localizer

2010-09-25 Thread Mathias Nilsson
Hi, I have copied the code from Localizer to support clearCachedKey. I want this so that a user can change a text in the database and update the key. I don't want to clear the entire cache because this will add roundtrips to the database. The getLocalizer() in component is final. Is there a

Re: Clear cached key Localizer

2010-09-25 Thread Mathias Nilsson
Just added these lines public void clearCachedKey(final String key, final Component component, final IModel? model){ clearCachedKey(key, component, model, null); } public void clearCachedKey(final String key, final Component component){

Re: Clear cached key Localizer

2010-09-25 Thread Mathias Nilsson
Sorry, This public void clearCachedKey(final String key, final Component component){ String cacheKey = getCacheKey(key, component); if( cacheKey != null ){ if( cache.containsKey( cacheKey )){ log.debug(

Re: ChoiceRender and many property expressions

2010-09-21 Thread Mathias Nilsson
Let's say your POJO is a store class new IChoiceRendererStore(){ private static final long serialVersionUID = 1L; // Implement dispay here public Object getDisplayValue(Store object) { return object.getName() + + object.getId(); }

Help on multiple users implementation

2010-05-06 Thread Mathias Nilsson
Hi, I'm designing a Mediabase for a lot of customers. The old one is php and java server but we are planning to update this and use Wicket, Spring, Hibernate. I'm having some design questions. Our web administrator must be able to add Customers at runtime. The customer should have variations and

Re: mountBookmarkablePage() and ajaxlink problem.

2010-04-19 Thread Mathias Nilsson
Does Product implements Serializable? -- View this message in context: http://n4.nabble.com/mountBookmarkablePage-and-ajaxlink-problem-tp2014767p2016617.html Sent from the Wicket - User mailing list archive at Nabble.com. - To

Re: How to pass object as parameter to popup window

2010-04-11 Thread Mathias Nilsson
Session or pageParameters -- View this message in context: http://old.nabble.com/How-to-pass-object-as-parameter-to-popup-window-tp28207456p28212525.html Sent from the Wicket - User mailing list archive at Nabble.com. - To

java.lang.IndexOutOfBoundsException ListItemModel getObject

2010-04-09 Thread Mathias Nilsson
Hi, I need help to get around this error I'm getting. I have a list of products in my cart that I have added. In another session the administrator has deleted the products. When I hit a refresh link ( AjaxSubmitLink ) I get an IndexOutOfBoundsException. This is done before getting to the

Re: java.lang.IndexOutOfBoundsException ListItemModel getObject

2010-04-09 Thread Mathias Nilsson
This is the stack trace ERROR - RequestCycle - Index: 0, Size: 0 java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at

Re: DatePicker icon dont disappear when parent textfield is set to visible false

2010-04-09 Thread Mathias Nilsson
setOutputMarkupPlaceholderTag( true ) might work -- View this message in context: http://old.nabble.com/DatePicker-icon-dont-disappear-when-parent-textfield-is-set-to--visible-false-tp28188761p28198329.html Sent from the Wicket - User mailing list archive at Nabble.com.

Mounting link

2010-04-08 Thread Mathias Nilsson
Hi, I have this link public class PdfLink extends LinkVoid { private static final long serialVersionUID = 1L; private FileResource resource; public PdfLink(String id, FileResource resource ) { super(id); this.resource = resource; if( resource == null ){ setVisible( false ); } }

Ajax page mounting and panels

2010-04-08 Thread Mathias Nilsson
Hi, My Webapplication is made up of one page that uses ajax to replace panels. Now I would like to have som mounting and set some panels by the mountingpath. Can anyone give me some pointers? RootPage( RequestParameters params ){ // Parse the params and set some panels } mount( /order ) // This

wicket datetime and opera

2010-04-08 Thread Mathias Nilsson
The org.apache.wicket.datetime.markup.html.form.DateTextField.forDatePattern( id , -MM-dd ); is not working on Opera 9.64 Tested in IE7, Firefox, Google chrome and ot works but not in opera This is tested with org.apache.wicket.extensions.yui.calendar.DatePicker Have tested different 1.4.x

Re: Ajax page mounting and panels

2010-04-08 Thread Mathias Nilsson
I will look in to it. You are right. I don't like it either. But I couldn't get it to work better when wanting the menu, header and footer stay fixed without using frames. -- View this message in context: http://old.nabble.com/Ajax-page-mounting-and-panels-tp28178937p28184077.html Sent from

Re: Click link

2010-04-04 Thread Mathias Nilsson
I solved it. I needed to set return false; in the javascript to get it to work in all browsers. -- View this message in context: http://old.nabble.com/Click-link-tp28127635p28132265.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Click link

2010-04-04 Thread Mathias Nilsson
What is your suggestion? -- View this message in context: http://old.nabble.com/Click-link-tp28127635p28133755.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:

Click link

2010-04-03 Thread Mathias Nilsson
Hi, I have a a listview in a form that contains cart items. Every list view item has quantity textfield and ajaxsubmitlink. Now I want to add a behavior that enables enter keypress for the textfield. public abstract class KeyEnterBehavior extends AjaxFormComponentUpdatingBehavior{ private

Re: Click link

2010-04-03 Thread Mathias Nilsson
yes, I have done that but the it causes the page to post. I want the scroll to remain and no postback. -- View this message in context: http://old.nabble.com/Click-link-tp28127635p28127729.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Click link

2010-04-03 Thread Mathias Nilsson
This happens in google Chrome and not opera and firefox. In IE7 It works but I get a noisy sound? -- View this message in context: http://old.nabble.com/Click-link-tp28127635p28127746.html Sent from the Wicket - User mailing list archive at Nabble.com.

SwfObject integration with wicket

2010-02-02 Thread Mathias Nilsson
Hi, I was wondering if anyone has built swfobject ( javascript ) integration to wicket? What I want to do is to be able to add a flash swf file and if the flash isn't detected by the browser have an ajax callback and be able to hide the component, other resources or add other data to the output.

Re: AjaxSubmitLink not calling the onsubmit event handler

2010-01-03 Thread Mathias Nilsson
form.add ( new AjaxSubmitLink(){ protected void onSubmit(AjaxRequestTarget target, Form form){ // Add feedback and do ajax stuff. } protected void onError(AjaxRequestTarget target, Form form){ // Add FeedbackPanel here target.add( feedback ); }}); -- View this message in context:

Flash and Wicket crossdomain.xml

2009-11-20 Thread Mathias Nilsson
Hi, I have built a flash movie that get's data from a webservice. When trying to access it in my webapp it complains. I read that I need to add a crossdomain.xml so that www.mysite.com/crossdomain.xml can be accessed. How can I make this file viewable this way using wicket?

Another page expired question on modal window

2009-10-02 Thread Mathias Nilsson
Wicket 1.4.1 Hi, I have tried to search the forum but with no luck. I open a modal window that displays an applet. If I don't open any more tabs in IE7 or Firefox I can close the modal window with no problems. However, if I open more than one tab I'll get an Page expired exception and a confirm

Re: Another page expired question on modal window

2009-10-02 Thread Mathias Nilsson
Sorry my bad. I thought I had checked Serialization on every object but I missed two of them. // Mathias -- View this message in context: http://www.nabble.com/Another-page-expired-question-on-modal-window-tp25724641p25724693.html Sent from the Wicket - User mailing list archive at

Re: AbstractAjaxTimerBehavior on Modal Window causes PageExpiredException

2009-08-27 Thread Mathias Nilsson
Does all your models and obejcts implement Serializable? -- View this message in context: http://www.nabble.com/AbstractAjaxTimerBehavior-on-Modal-Window-causes-PageExpiredException-tp25159539p25178263.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Modal window closed button call back does not work?

2009-08-24 Thread Mathias Nilsson
Please post the code so that we can help! -- View this message in context: http://www.nabble.com/Modal-window-closed-button-call-back-does-not-work--tp25113797p25115332.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: using hibernate pojo as model instead of dto

2009-08-21 Thread Mathias Nilsson
I don't know about the good design but why should you make a detached copy of an perfectly good entity? It's just more work. However, if you need to use dto for webservices or there are some cases when you need to get fields from different entities then maybe you should consider dto. -- View

Re: using hibernate pojo as model instead of dto

2009-08-20 Thread Mathias Nilsson
You can use entities as models. Just use LoadableDetachableModels to avoid LazyLoadingExceptions -- View this message in context: http://www.nabble.com/using-hibernate-pojo-as-model-instead-of-dto-tp25071549p25072411.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: MarkupnotFoundException in eclipse 3.4.2

2009-08-17 Thread Mathias Nilsson
After plugin in the pom file resources resource filteringfalse/filtering directorysrc/main/resources/directory /resource resource filteringfalse/filtering directorysrc/main/java/directory includes include**/include /includes excludes

Re: Beginner question about wicket:extend

2009-08-14 Thread Mathias Nilsson
Have you extended the Header page in the index page? class HeaderPage extends Webpage{ } class IndexPage extends HeaderPage{ } -- View this message in context: http://www.nabble.com/Beginner-question-about-wicket%3Aextend-tp24968417p24968623.html Sent from the Wicket - User mailing list

Re: multilangual dropdown

2009-08-13 Thread Mathias Nilsson
You can have all the objects have an getResourceKey method. Override the displayvalue of IChoiceRenderer and show the value. Example myproperties_sv.properties value1=ett test myProperties_en.properties value1=A test The Object class MyObject{ private String getResourceKey; .. getters and

Re: redirect parent page on submit modal window

2009-08-13 Thread Mathias Nilsson
Couldn't you just call modalwindow.close( target ) in the submit and in the close call back call setResponsePage( page.class )? -- View this message in context: http://www.nabble.com/redirect-parent-page-on-submit-modal-window-tp24955953p24957565.html Sent from the Wicket - User mailing list

Re: launching a modal page from a Panel

2009-08-02 Thread Mathias Nilsson
Define your modal window as a class variable. class MyWebPage extends WebPage{ private ModalWindow myWindow; } in the constructor myWindow = new ModalWindow( myWindow ); myWindow.setPageMapName(myWindow-1); myWindow.setCookieName(myWindow-1); myWindow.setPageCreator(new

Re: launching a modal page from a Panel

2009-08-02 Thread Mathias Nilsson
Of course. If it is a panel then you'll do the same thing. class MyPanel extends Panel{ class variable } -- View this message in context: http://www.nabble.com/launching-a-modal-page-from-a-Panel-tp24760576p24776281.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Fancy URL

2009-07-29 Thread Mathias Nilsson
take a look at HybridUrlCodingStrategy -- View this message in context: http://www.nabble.com/Fancy-URL-tp24715302p24720044.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:

RE: TextTemplateHeaderContributor Questions

2009-07-29 Thread Mathias Nilsson
have you looked at the java doc? There should be a forjavascript method that takes both a class and a TextTemplate as parameter -- View this message in context: http://www.nabble.com/TextTemplateHeaderContributor-Questions-tp24713664p24720298.html Sent from the Wicket - User mailing list

Re: TextTemplateHeaderContributor Questions

2009-07-29 Thread Mathias Nilsson
Which version of Wicket are you using? google for TextTemplateHeaderContributor wicket 1.4 ( or the version you are using ) and you will see the methods you can use. -- View this message in context: http://www.nabble.com/TextTemplateHeaderContributor-Questions-tp24713664p24723507.html Sent

Re: AjaxEditableLabel doesn't work in IE7

2009-07-29 Thread Mathias Nilsson
What about the wicket examples. Does this work for you? http://www.wicket-library.com/wicket-examples/ajax/editable-label http://www.wicket-library.com/wicket-examples/ajax/editable-label I've tried it in IE7 and it works fine. -- View this message in context:

Re: Problem with PagingNavigator and NavigatorLabel

2009-07-28 Thread Mathias Nilsson
Can you provide us with some code on which model you use and how? -- View this message in context: http://www.nabble.com/Problem-with-PagingNavigator-and-NavigatorLabel-tp24694245p24697018.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Mathias Nilsson
+1 I would buy the book. -- View this message in context: http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p24703709.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:

Re: DropDownChoice with ID and Value

2009-07-28 Thread Mathias Nilsson
Yes, you are right. Didn't read the question close enough. -- View this message in context: http://www.nabble.com/DropDownChoice-with-ID-and-Value-tp24686742p24703752.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: DropDownChoice with ID and Value

2009-07-27 Thread Mathias Nilsson
class Choice{ private int id; private Stringvalue; // getters and setters } ListChoice choices = new LinkedListChoice(); Choice c = new Choice(); c.setId( 1 ); c.setValue( abc ); choices.add( c ); // add the other values // The choice with id 1 will be selected. DropDownChoice drop =

Re: DropDownChoice with ID and Value

2009-07-27 Thread Mathias Nilsson
Wasn't this more awkward? -- View this message in context: http://www.nabble.com/DropDownChoice-with-ID-and-Value-tp24686742p24690478.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe,

Re: Localizing thru database lookup

2009-07-24 Thread Mathias Nilsson
Thanks, I think extending or writing my Localizer would be the path to go. * Rolling my own cache that gets the key from the primary key in the database. * If an administrator updates a value then I can delete the primary key from the cache. And force a roundtrip to the database. -- View

Re: Wicket Bench website is down

2009-07-23 Thread Mathias Nilsson
maybe you can get it from the update manager if you are using Eclipse. http://eclipse-plugins.2y.net/eclipse/plugin_details.jsp?id=1378 http://eclipse-plugins.2y.net/eclipse/plugin_details.jsp?id=1378 -- View this message in context:

Re: How to customize/override .CSS of 3rd party component

2009-07-23 Thread Mathias Nilsson
That's odd. I works for alot of components I use. I don't exactly know which component you are trying to implement but what about. add( new YUIMenu( id ){ @Override protected void onBeforeRender() { super.onBeforeRender(); // Add css reference here or something else } });

Re: How to customize/override .CSS of 3rd party component

2009-07-23 Thread Mathias Nilsson
Ok, You might want to google for YUI skins and take a look at YuiHeaderContributor -- View this message in context: http://www.nabble.com/How-to-customize-override-.CSS-of-3rd-party-component-tp24622417p24623391.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Need Help in Dynamic CSS generation

2009-07-23 Thread Mathias Nilsson
The $ is used to replace the variable (interpolated value). It's the same technique used in properties files to replace some text. This sample works fine. if you look at the css it has been generated according to the load() method. It must be you IDE that complains about this. maybe you can shut

Re: Need Help in Dynamic CSS generation

2009-07-23 Thread Mathias Nilsson
I use Eclipse and all I have to do was copying and pasting the code from the url you supplied. I'm no Netbeans user so maybe someone else could answer this. -- View this message in context: http://www.nabble.com/Need-Help-in-Dynamic-CSS-generation-tp24623639p24624432.html Sent from the Wicket

Localizing thru database lookup

2009-07-23 Thread Mathias Nilsson
I have used .properties and .xml files in all of my Wicket projects and it has worked great. However, quite often someone in the translation team wants to changes some text, image or something else that is localized in the properties files. Has anyone moved propeties to database with success?

Re: Localizing thru database lookup

2009-07-23 Thread Mathias Nilsson
Ok thanks, have you implemented some sort of cache for this, because we don't want to get every value from database all the time. -- View this message in context: http://www.nabble.com/Localizing-thru-database-lookup-tp24627686p24631887.html Sent from the Wicket - User mailing list archive at

Re: Localizing thru database lookup

2009-07-23 Thread Mathias Nilsson
It looks like Wicket caches the string when it has been loaded ones. Is this correct? -- View this message in context: http://www.nabble.com/Localizing-thru-database-lookup-tp24627686p24633121.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Localizing thru database lookup

2009-07-23 Thread Mathias Nilsson
Ok thanks, that would clear the whole cache. is there already a method to clear just one localized message. here is the thing, I want the administrator to be able to update a key, value. I don't want to clear the whole cache just the one key connected to the cache. -- View this message in

Re: Localizing thru database lookup

2009-07-23 Thread Mathias Nilsson
maybe there should be methods to clear a part of the cache. Like getLocalizer().clearKey( key ); and getLocalizer.clearKeys( ListString keys ); -- View this message in context: http://www.nabble.com/Localizing-thru-database-lookup-tp24627686p24633675.html Sent from the Wicket - User mailing

Re: Localizing thru database lookup

2009-07-23 Thread Mathias Nilsson
Couldn't the String getCacheKey(final String key, final Component component) be used? -- View this message in context: http://www.nabble.com/Localizing-thru-database-lookup-tp24627686p24635015.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Localizing thru database lookup

2009-07-23 Thread Mathias Nilsson
Ok maybe there is a lot of work for this issue. It isn't a problem when using wicket ComponentStringResourceLoader is just a problem if we need to access the database all the time for a string and clear the entier cache if the database is updated. when looking at the source for

Re: Localizing thru database lookup

2009-07-23 Thread Mathias Nilsson
Yes I get you point. What about assigning clearing strategies that can be added and implemented. let's say it's sufficient for me to just clear the cache if the component is not a subclass of another component. I can implement my own strategy for clearing the cache or key/keys.

Re: What are the jar files needed

2009-07-22 Thread Mathias Nilsson
The best choice is to use maven afaik. It handles all the jar dependencies for you. http://maven.apache.org http://maven.apache.org . When you have installed it you can visit http://wicket.apache.org http://wicket.apache.org and the quickstart to install wicket. If you don't want to use

Re: What are the jar files needed

2009-07-22 Thread Mathias Nilsson
Here is one. http://www.jeremythomerson.com/blog/2008/11/17/wicket-quickstart-tutorial/ http://www.jeremythomerson.com/blog/2008/11/17/wicket-quickstart-tutorial/ -- View this message in context: http://www.nabble.com/What-are-the-jar-files-needed-tp24602837p24604032.html Sent from the Wicket

Re: Can not find library for SortableListView

2009-07-22 Thread Mathias Nilsson
Maybe some can help with this. I have tried all sort of libraries for 1.4 but with no luck. Anyway, for a simple HighLight function this works. Don't think this is the latest. dependency groupIdorg.wicketstuff/groupId artifactIdwicketstuff-scriptaculous/artifactId

Re: Save CSS/StyleSheet in Database ?

2009-07-22 Thread Mathias Nilsson
You would probably have to use cookies to save which style the users would have. There is no way knowing this without login or cookie. There are probably a better way of doing this but if you save style and classes in a database like this *{ font-family: verdana; } // a row in the database a{

Re: How to keep selection of TabbedPanel

2009-07-22 Thread Mathias Nilsson
You have the setSelectedTab(int index) the you could save. If you are not certain if the tabbes are added in the same order use a factory or something to get the tabs by identifier. -- View this message in context:

Re: setVisbile on form makes me reset fields

2009-07-21 Thread Mathias Nilsson
Can you post some code so we can see whats going on? -- View this message in context: http://www.nabble.com/setVisbile-on-form-makes-me-reset-fields-tp2458p24583413.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: setVisbile on form makes me reset fields

2009-07-21 Thread Mathias Nilsson
When pressing the link it will tell wicket to refresh the page and the form will no be submitted. have you tried submitLink instead of link? -- View this message in context: http://www.nabble.com/setVisbile-on-form-makes-me-reset-fields-tp2458p24583629.html Sent from the Wicket - User

Re: using ajaxbutton for for submit

2009-07-21 Thread Mathias Nilsson
One disadvantage would be if the client don't support javascript -- View this message in context: http://www.nabble.com/using-ajaxbutton-for-for-submit-tp24591716p24594589.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: How to get DateField value

2009-07-20 Thread Mathias Nilsson
You can get the model Date d = dateField.getModelObject(); Format it by using the SimpleDateFormat -- View this message in context: http://www.nabble.com/How-to-get-DateField-value-tp24567634p24568750.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: how to strip wicket tags for particular component

2009-07-20 Thread Mathias Nilsson
This may not be the best solution but it should work DateTextField dateField = new DateTextField(date, new ModelDate(new Date())){ @Override protected void onBeforeRender() {

Re: How to get DateField value

2009-07-20 Thread Mathias Nilsson
The above code works for me. You know that the onchange method is only triggered when you click the textfield for focus and the click the webpage to lose focus have you put the field in a form? -- View this message in context:

Re: how to strip wicket tags for particular component

2009-07-20 Thread Mathias Nilsson
What about @Override public void onComponentTag( ComponentTag tag){ tag.remove( wicket:id ); super.onComponentTag(tag); } -- View this message in context:

Re: Error Message Not Getting Removed

2009-07-20 Thread Mathias Nilsson
I don't see that you have added the feedback in the onSubmit method You should do @Override onsubmit( ){ target.addComponent( feedback ); } -- View this message in context: http://www.nabble.com/Error-Message-Not-Getting-Removed-tp24574168p24574336.html Sent from the Wicket - User

Re: How to get DateField value

2009-07-20 Thread Mathias Nilsson
import java.util.Date; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior; import org.apache.wicket.extensions.markup.html.form.DateTextField; import org.apache.wicket.markup.html.WebPage; import

  1   2   >