kups often are done by
component IDs, not index.
*/
This seems to indicate that this could increase memory usage, but could the
effect be this noticeable?
Thanks,
Mathias
--
DISCLAIMER
http://www.tvh.com/glob/en/email-disclaimer
"This message is delivered to all add
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
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.
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
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:
http://apache-wicket.1842946.n4.nabble.com/WicketTester-in-Thread
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:
http://apache-wicket.1842946.n4.nabble.com/No-javascript-wicket-6-14-0
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:
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!
--
Hi,
we became aware of a problem caused by requests with invalid URIs on
our wicket-application. The URI contains strings like *://*:*, so
wicket tries to determine and parse a port number, that is not
present. This leads to NumberFormatExceptions with URIs like, e.g.
http://host/h@@p://h@@p://
We work with Version 6.7.0
Mathias
2013/7/24 Sven Meier s...@meiers.net:
Hi,
which Wicket version? Url parsing has been improved on lately:
@Test
public void weirdUrl()
{
Url url = Url.parse(http://wicket.apache.org/h@@p://h@@p://;);
assertEquals
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;
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.
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
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
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) {
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.
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.
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
// 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
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
: mathias
}
}
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Dealing-with-JSON-request-tp3225432p3225432.html
Sent from the Users forum mailing list archive at Nabble.com.
-
To unsubscribe, e-mail
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:
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.
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
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
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
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.
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
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;
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
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:
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:
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
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){
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(
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();
}
Hi,
i have a problem with the wicket signinpanel/form and non-ascii (Swedish)
characters. Whenever a user enters a username with, for example 'å', i get
an exception:
java.lang.IllegalArgumentException: Control character in cookie value,
consider BASE64 encoding your value
at
Hey,
thanks for the feedback mate.
Well, i'm afraid that the remember me is required, so it has to be solved in
some other way. Not sure where i would inject base64 encoding/decoding
though.
--
View this message in context:
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
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
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
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
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
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.
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 );
}
}
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 releases.
/ Mathias
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
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.
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:
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
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.
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.
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.
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,
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?
suggestions?
// Mathias
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
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.
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.
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
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.
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
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
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
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
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
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.
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:
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
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
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:
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:
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.
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,
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
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
anyone lead me to the right path of implementing this. What classes
should I look at? Has someone used something like this and is the
.properties, .xml preferred over the database?
It would be nice to not have to redeploy the whole application if just a
text should be altered.
// Mathias
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.
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:
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.
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.
1 - 100 of 424 matches
Mail list logo