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
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.
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
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.
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.
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
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
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?
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:
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
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.
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?
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:
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.
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
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;
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
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.
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.
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
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:
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
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
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
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
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
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);
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:
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 =
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?
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.
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:
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
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 (
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?
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
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
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
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
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.
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.
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
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
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
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(){
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:
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.
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:
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
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
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
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
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
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
@Override
protected IRequestCycleProcessor newRequestCycleProcessor() {
return new WebRequestCycleProcessor() {
@Override
protected Page onRuntimeException(final Page page, final
RuntimeException e) {
maybe a behavior
final AbstractDefaultAjaxBehavior behaviour = new
AbstractDefaultAjaxBehavior(){
@Override
protected void respond(AjaxRequestTarget target) {
}
@Override
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.
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:
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.
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.
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.
This may not be the best solution but it should work
DateTextField dateField = new DateTextField(date, new ModelDate(new
Date())){
@Override
protected void onBeforeRender() {
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:
What about
@Override
public void onComponentTag( ComponentTag tag){
tag.remove( wicket:id );
super.onComponentTag(tag);
}
--
View this message in context:
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
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
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
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
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
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.
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.
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
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/
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:
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.
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
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.
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
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
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
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{
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:
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:
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
}
});
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.
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
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
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?
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
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.
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
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
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.
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
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.
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
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 =
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,
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.
+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 - 100 of 159 matches
Mail list logo