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: 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: 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: 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: 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.

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

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?

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:

wicket URL rewrite in Opera

2009-04-30 Thread Mathias Nilsson
Hi, My wicket site works in IE6, IE7, Safari, Firefox 2,3 but not in Opera. When first visiting the site everything works fine but when requesting an item opera gives me an error message. The message is in swedish but this is a free translation ( URL is redirected to .Click on the link to visit

Re: wicket URL rewrite in Opera

2009-04-30 Thread Mathias Nilsson
I have tried the QueryStringUrlCodingStrategy and it workes but I want to use an version of HybridUrlCodingStrategy -- View this message in context: http://www.nabble.com/wicket-URL-rewrite-in-Opera-tp23315100p23316582.html Sent from the Wicket - User mailing list archive at Nabble.com.

Chrome and Ajax

2009-04-30 Thread Mathias Nilsson
I know this topic has been discussed before but I don't see any answers. I use wicket 1.4-rc2 and have some problems with Chrome and Ajax. It sometimes work and sometimes not. The same code workes in Firefox 2,3 Mac Pc, IE6, IE7, Opera, safari but not in chrome. Anyone clues?

Re: Share Localization across many pages/componets

2009-05-01 Thread Mathias Nilsson
You could do this in your base class if you use markup inheritence public String getResource( String resource ){ return Application.get().getResourceSettings().getLocalizer().getString( resource, null, ); } -- View this message in context:

Re: Problem with Link,PopupSettings and dynamic window names

2009-05-02 Thread Mathias Nilsson
The class you want to edit must implement Serializable. -- View this message in context: http://www.nabble.com/Problem-with-Link%2CPopupSettings-and-dynamic-window-names-tp23344323p23347345.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: best way to add tooltips in wicket

2009-05-04 Thread Mathias Nilsson
yes I have the same exact problem. Tried all settings there is in ProtoTip. The only thing that worked was to have onclick to show the tip and close button but this is of course not the way we want it. If you come up with a solution please post it here. Do you experience the same bug with

Re: How to manipulate values in a data table?

2009-05-06 Thread Mathias Nilsson
If it only can hold one value then an enum would be ok. public interface Translatable{ public String getResourceKey(); } public enum Status implements Translatable{ NOT_SENT( 0, resource.notsent ), SENT( 1, resource.sent ); private int status; private String resourceKey;

Re: CheckboxMultipleChoice in Ajax style

2009-05-10 Thread Mathias Nilsson
This may confuse the web user quite a bit. It's preferred to send the request each time or cache it maybe. Form form = new Form( form ); List SITES = Arrays.asList(new String[] { The Server Side, Java Lobby, Java.Net }); final ListString values = new

Re: CheckboxMultipleChoice in Ajax style

2009-05-13 Thread Mathias Nilsson
When I try this code it works. Can you please post some code for us -- View this message in context: http://www.nabble.com/CheckboxMultipleChoice-in-Ajax-style-tp23458553p23520363.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: fragment markup resolution

2009-05-21 Thread Mathias Nilsson
Sounds like you should use panels instead of Fragments if they are used more then one time. -- View this message in context: http://www.nabble.com/fragment-markup-resolution-tp23645152p23654434.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Error filterStart -- how to know what caused tomcat start failure?

2009-05-30 Thread Mathias Nilsson
I guess this isn't wicket specific. goggle on your error and you may get information on how to solve this. -- View this message in context: http://www.nabble.com/Error-filterStarthow-to-know-what-caused-tomcat-start-failure--tp23794740p23794783.html Sent from the Wicket - User mailing list

Re: Error filterStart -- how to know what caused tomcat start failure?

2009-05-30 Thread Mathias Nilsson
Have you tried this with a jetty server? If you are using maven then this will help you. http://wicket.apache.org/quickstart.html http://wicket.apache.org/quickstart.html are you using windows, mac, linux? -- View this message in context:

UploadProgressBar in firefox and ie6

2009-06-23 Thread Mathias Nilsson
Hi! I'm trying to use the UploadProgressBar and it works in ie7 but not in firefox 2.0.0.2 or ie 6.0.2900.2180 In firefox the progressbar is not updated and in ie 6 I get the following exception java.lang.IllegalStateException: ServletRequest does not contain mulipart content. I have setup my

Html mail with WicketTester

2009-06-24 Thread Mathias Nilsson
Hi, I'm trying to generate a wicket page in a thread using spring ScheduledTimerTask Every 10th second a timertask checks new mail and sends them. My problem is that when using the WicketTester class the @SpringBean does not work. I have tried and googled it but haven't found any good answers. I

Re: Html mail with WicketTester

2009-06-24 Thread Mathias Nilsson
I must add I have managed to get it to work by loading the applicationContext but that initiates hibernate mapping etc and I do not want to do that every 10th second UploadApplication webApp = new UploadApplication(){ //note in this case the application

Re: UploadProgressBar in firefox and ie6

2009-06-25 Thread Mathias Nilsson
Since I can get this to work in all browsers I need some advice on how to handles this myself. I have created a Servlet ( apache commons upload ) that uploads the file in doPost and check the percentage in doGet How can I communicate with the servlet from wicket ajax. Any pointers would be

Re: UploadProgressBar in firefox and ie6

2009-06-25 Thread Mathias Nilsson
When looking at the sourcecode of UploadProgressBar and the js file the file is all in english. Has someone localized this update method or is there a better way to do this? -- View this message in context: http://www.nabble.com/UploadProgressBar-in-firefox-and-ie6-tp24166616p24211272.html

Re: ModalWindow? O Window?

2009-06-25 Thread Mathias Nilsson
The wickext integrates JQuery with wicket. I'll leave this to the JQuery/wicket integrators. To Use the modelwindow Create a modal window final ModalWindow uploadModalWindow = new ModalWindow( uploadWindow ); uploadModalWindow.setPageMapName(uploadFilesModalWindow-1);

Re: ModalWindow? O Window?

2009-06-25 Thread Mathias Nilsson
I'll forgot. To open the modal window you'll need an ajax link add( new AjaxLink( link ){ @Override public void onClick(AjaxRequestTarget target) { uploadWindow.show( target ); } }); -- View this message in context:

Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff

2009-06-25 Thread Mathias Nilsson
Must say a very nice, useful package. regarding creating buttons with images. yes, this is from the sourcecode of AmazonianButton InputStream iconstream = VistafarianButton.class.getClassLoader().getResourceAsStream(net/kornr/swit/button/right-arrow-symbol.png); BufferedImage icon =

How to get callback from progressbar.js

2009-06-26 Thread Mathias Nilsson
Hi, I'm looking at the sourcecode of UploadProgressBar and the progressbar.js. Can anyone give me som hint on how to make a callback to wicket?

Re: ie6 HybridUrlCodingStrategy using ajax and an anchor results in a 404

2009-06-30 Thread Mathias Nilsson
http://www.bringdownie6.com/ http://www.bringdownie6.com/ -- View this message in context: http://www.nabble.com/ie6---HybridUrlCodingStrategy-using-ajax-and-an-anchor-results-in-a-404-tp24268734p24277834.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: invoking an ajax refresh

2009-06-30 Thread Mathias Nilsson
maybe new AjaxSelfUpdatingTimerBehavior( Duration.seconds(2) ){ private static final long serialVersionUID = 1L; protected void onPostProcessTarget(AjaxRequestTarget target){ // Add new feed back message target.addComponent( ); } }; -- View this message in context:

Re: Problem with RadioGroup / Ajax

2009-07-02 Thread Mathias Nilsson
I've made a sample page. public class HomePage extends WebPage { private static final long serialVersionUID = 1L; public HomePage(final PageParameters parameters) { String[] choices = new String[]{ Wicket, Spring, DB4O }; final RadioGroupString group = new

Re: UploadProgressBar does not work in Safari browser?

2009-07-03 Thread Mathias Nilsson
Sorry for bringing up and old thread but I got the exact same problem. Anyone got this working on safari, chrome and opera? I know that the UploadProgressBar uses it's own ajax request. Is it something in the source code? IE6 PC - Works IE7 PC - Works Firefox ( 3.5 ) PC - Works Google Crome (

Source checkout and test

2009-07-03 Thread Mathias Nilsson
Hi, I'm very new to this source checkout and was wondering the following. I need to change some things in wicket-extensions ajax.upload. How can I check out the code and make a dependecy in my pom to the checkout version?

Re: UploadProgressBar does not work in Safari browser?

2009-07-03 Thread Mathias Nilsson
I don't get it.. I have made a call to the javascript function here from progressbar but the UploadWebRequest always returns |0|0|0|0 for Opera, chrome . This simple javascript should be sufficient. In safari the updateProgressBar() is not called at all. var request = null; function

Re: UploadProgressBar does not work in Safari browser?

2009-07-03 Thread Mathias Nilsson
Ok, a obvious bug in the code. We need to call createTransport( url ) again in the setTimeout method. Still, there is the chrome and safari bug. -- View this message in context: http://www.nabble.com/UploadProgressBar-does-not-work-in-Safari-browser--tp21571997p24330296.html Sent from the

WicketSessionFilter setup

2009-07-04 Thread Mathias Nilsson
Whats wrong with this setup ?xml version=1.0 encoding=ISO-8859-1? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4

Wicket and javascript

2009-07-04 Thread Mathias Nilsson
Hi, I know there has been some topics on this but I need some pointers on how to manage this. I have struggled with the uploadProgressBar for some time but it fails for all browser. I've decided to create my own upload with progressbar. It's a html form that post to an IFrame. On post I upload

Re: WicketSessionFilter setup

2009-07-04 Thread Mathias Nilsson
Yes, sorry. I want to access Wicket Session in my FileUploadServlet. -- View this message in context: http://www.nabble.com/WicketSessionFilter-setup-tp24336020p24337445.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: WicketSessionFilter setup

2009-07-04 Thread Mathias Nilsson
And right now I'll get an error if I call Session.get() in the servlet. -- View this message in context: http://www.nabble.com/WicketSessionFilter-setup-tp24336020p24337449.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: UploadProgressBar does not work in Safari browser?

2009-07-04 Thread Mathias Nilsson
After dealing with this for a long time I desided to make my own servlet and AJAX communication and that works. It seams to be a problem for Safari, Chrome to make a GET request to resources/classpath. I don't see anything other than that that messes up the UploadProgressBar to work in all

Re: Wicket and javascript

2009-07-04 Thread Mathias Nilsson
Let me be a bit more specific. A have a plain form, none wicket that posts to an Iframe. In the onsubmit of the form I call my ajax function. The action is set to my servlet to receive the multipart. In the start I setup my ajax and make GET requests to the same servlet for updating my progress

Re: Wicket and javascript

2009-07-04 Thread Mathias Nilsson
Thanks! I know what to do not just how it could be done You have it trigger a Wicket AJAX call to the server on a behavior How does this work? -- View this message in context: http://www.nabble.com/Wicket-and-javascript-tp24336438p24338948.html Sent from the Wicket - User mailing list

Re: Wicket and javascript

2009-07-05 Thread Mathias Nilsson
Sorry for not getting this totally. If I do something like this class Comp extends WebComponent implements ILinkListener{ public Comp(String id) { super(id); } public String getCallbackURL(){

Re: Wicket and javascript

2009-07-05 Thread Mathias Nilsson
Yes but I will have a WebMarkupContainer with a ListView in that needs to be updated via ajax. If my javascript hits the onLinkClicked I won't have any AjaxRequestTarget to update the container via ajax. -- View this message in context:

Re: WicketSessionFilter setup

2009-07-05 Thread Mathias Nilsson
Thanks, I figured it out. It was an example in the wicket-examples and the HelloWorldServlet -- View this message in context: http://www.nabble.com/WicketSessionFilter-setup-tp24336020p24343057.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Wicket and javascript

2009-07-05 Thread Mathias Nilsson
Thanks! That did the trick. -- View this message in context: http://www.nabble.com/Wicket-and-javascript-tp24336438p24343230.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:

Re: Wicket and javascript

2009-07-05 Thread Mathias Nilsson
Nope I get an javascript error when trying this. -- View this message in context: http://www.nabble.com/Wicket-and-javascript-tp24336438p24345368.html Sent from the Wicket - User mailing list archive at Nabble.com. - To

Re: Wicket and javascript

2009-07-05 Thread Mathias Nilsson
yes thanks alot. Beacuse I didn't have any other wicket ajax the lib was not included. I just added a super.renderHead(response); and it worked. Thanks -- View this message in context: http://www.nabble.com/Wicket-and-javascript-tp24336438p24345756.html Sent from the Wicket - User mailing

WebResource and how it works

2009-07-07 Thread Mathias Nilsson
Hi, I just need to be clear on some things. When reading the doc on Resource it states that Resources themselves do not currently have URLs. Instead, they are referred to by components that have URLs. Let's say I have created a mypanel that extends panel. I implement my own DynamicWebresource

DynamicWebResource and ajax request

2009-07-07 Thread Mathias Nilsson
Hi, I just need to be clear on some things. When reading the doc on Resource it states that Resources themselves do not currently have URLs. Instead, they are referred to by components that have URLs. Let's say I have created a mypanel that extends panel. I implement my own DynamicWebresource

Re: setting value in TextField with ajax fails after field had error

2009-07-08 Thread Mathias Nilsson
The onchange is only triggered when you type and then go onblur. Check onkeypress, onkeydown, onkeyup -- View this message in context: http://www.nabble.com/setting-value-in-TextField-with-ajax-fails-after-field-had-error-tp24385756p24390652.html Sent from the Wicket - User mailing list archive

Re: Going back to a previous URL?

2009-07-08 Thread Mathias Nilsson
It is stated on top of the nabble page. You must subscribe to the mailing list for this. Afterwards you just send an email to users@wicket.apache.org to post a new question. -- View this message in context: http://www.nabble.com/Going-back-to-a-previous-URL--tp19254601p24390934.html Sent from

Re: Rewrite page parameter to Login_page when session's expired

2009-07-08 Thread Mathias Nilsson
@Override protected IRequestCycleProcessor newRequestCycleProcessor() { return new WebRequestCycleProcessor() { @Override protected Page onRuntimeException(final Page page, final RuntimeException e) {

Re: Help: Open file in new window if specified. [SEC=UNCLASSIFIED]

2009-07-08 Thread Mathias Nilsson
maybe a behavior final AbstractDefaultAjaxBehavior behaviour = new AbstractDefaultAjaxBehavior(){ @Override protected void respond(AjaxRequestTarget target) { } @Override

Re: Rewrite page parameter to Login_page when session's expired

2009-07-08 Thread Mathias Nilsson
The application class -- View this message in context: http://www.nabble.com/Rewrite-page-parameter-to-Login_page-when-session%27s-expired-tp24403797p24404071.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Dynamically generated background image

2009-07-15 Thread Mathias Nilsson
maybe something like this String RESOURCE_NAME = MyClass.class.getName(); Application.get().getSharedResources().add(RESOURCE_NAME, new MyImageResource()); ResourceReference ref = new ResourceReference(RESOURCE_NAME); getPage().urlFor( ref ); -- View this message in context:

Re: Customizing signinpanel

2009-07-17 Thread Mathias Nilsson
Just extends the SignInPanel and provide your own markup and properties -- View this message in context: http://www.nabble.com/Customizing-signinpanel-tp24535148p24536526.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: AutoCompleteTextField with initial focus not working

2009-07-17 Thread Mathias Nilsson
document.forms[0].elements.mytxt.focus(); -- View this message in context: http://www.nabble.com/AutoCompleteTextField-with-initial-focus-not-working-tp24516661p24537398.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

Re: How to get DateField value

2009-07-20 Thread Mathias Nilsson
from wicket-extension or from another project? -- View this message in context: http://www.nabble.com/How-to-get-DateField-value-tp24567634p24575317.html Sent from the Wicket - User mailing list archive at Nabble.com. - To

Re: How to get DateField value

2009-07-20 Thread Mathias Nilsson
Ok this is wicket-datetime if I'm not misstaken. You must override the newDateTextField then import java.util.Date; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior; import

Re: How to get DateField value

2009-07-20 Thread Mathias Nilsson
Ok this is wicket-datetime if I'm not misstaken. You must override the newDateTextField then import java.util.Date; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior; import

Re: How to get DateField value

2009-07-20 Thread Mathias Nilsson
You can also override the datepicker if you would like -- View this message in context: http://www.nabble.com/How-to-get-DateField-value-tp24567634p24576032.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: How to get DateField value

2009-07-20 Thread Mathias Nilsson
Also, how does your markup look? You should use the DateField with a span or div. -- View this message in context: http://www.nabble.com/How-to-get-DateField-value-tp24567634p24576073.html Sent from the Wicket - User mailing list archive at Nabble.com.

[work-around] UploadProgressBar

2009-07-20 Thread Mathias Nilsson
The UploadProgressBar works great in some browsers but looses responsiveness in safari on mac. when debugging this on mac it looks like the ajax requests hangs when a multipart is used. You will not receive a readystate 4 and no status 200 To get this to work you will have to use an Iframe to

Re: Custom Resource Loading

2009-07-20 Thread Mathias Nilsson
Wicket is customized to find the markup and properties in the same package as the javafile. I guess you are not using the default package and therefore you can use java packages. http://www.mkyong.com/wicket/how-do-change-the-html-file-location-wicket/

Re: Custom Resource Loading

2009-07-20 Thread Mathias Nilsson
The resource folder is maven layout. maven.apache.org when building with the quickstart the maven uses this layout. You are not supposed to add you .properties and .html files here. This is for other properties and xml like spring, hibernate, peristance etc. -- 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: 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: 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: 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: 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: 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:

  1   2   >