With Panel you know you always have the right markup so that is good.
The disadvantage is that you'd then have to write panels for everything
the ComponentFactory should be able to produce.
Maybe you could always return a container that overrides onComponentTag
and set the tag's name
Hmm, that's a hard one, because you have a requestTarget that does not
even look at the modal window (I think). A solution (albeit a bit hacky)
is to set some parameter in the session. Then, add an
AbstractAjaxTimerBehaviour to the modal window that checks for the
session parameter in onTimer
why not just spit out some javascript that opens the results window to
some bookmarkable url?
-igor
On Wed, Jun 18, 2008 at 11:06 PM, Matthijs Wensveen [EMAIL PROTECTED] wrote:
Hmm, that's a hard one, because you have a requestTarget that does not even
look at the modal window (I think). A
well i dont think that will work, the onSubmit is called on the new browser
Window, now if i make my form to be an ajaxForm doing a
model.close(ajaxtarget) wouldnt work, since the control is a seperate window
now...i hope i am making sense...
So basically here is what i will be doing if i make
that i did try out and it does work, where i do a
ajaxRequestTarget.appendJavaScript(window.open(externalURL)), but the part
i dont like is in this scenario is that the popup blockers dive in, since
the window.open is not a result of a click, and i dont want that to happen..
I want to work out a
That is certainly an option, but i dont like the idea of the timer, since
there could be scenarios where the user does the form submission (resulting
in a new window), and lets say i set the timer to 2 seconds, now in case the
user decides to close the new browser window rightaway, and comes back
Hi all
I found a encoding question in the StringResourceStream, but it works fine
when I use the DynamicWebResource
-StringResourceStream-
@Override
protected void init() {
super.init();
this.getMarkupSettings().setCompressWhitespace(true);
Yes, that were what I was talking about.
But why do you open a new browser window?
mfs wrote:
well i dont think that will work, the onSubmit is called on the new browser
Window, now if i make my form to be an ajaxForm doing a
model.close(ajaxtarget) wouldnt work, since the control is a
Hi,
Sorry, if this is a stupid Java question:
But how can I call SwarmWebApplication.init() without calling
MyApplication.init() ?
Thanks
Andrea
public class MyWicketTester extends WicketTester
{
public MyWicketTester(final ApplicationContextMock appctx)
{
super(new MyApplication() {
Well its just a requirement where the results are to be shown up in a new
browser window, where a wizard (part of external application) is
launched...with that let me add that if need be i can opt for using a
link/ajax-link too, but i think the problem would still persist...
I didnt think its
Hi,
I want to show my team mates the greatness of using wicket localization
feature.
We are working on Microsoft Windows XP.
I put a System.out.println(getLocale()); in one of my components.
I have changed in my computer from EN to FR (for example).
But the print is always en_US.
I know it's not a
In the above code you are showing 2 different codes for MyApplication,
both override the init method. one of them calls super.init the other
does not. your init should look like this:
protected void init() {
super.init();
addComponentInstantiationListener(new
Isn't there a way to call the appropriate javascript which does the
modal-close..
mfs wrote:
Guys,
I am posting this question yet again, hoping to get some feedback...
The problem is regarding modal windows, as to how close it, when a form
(within it) is submitted in a new window.
Isn't the browser sending out a locale different from the os locale?
Check your browser it should have some options for a preferred
language or locale.
Maurice
On Thu, Jun 19, 2008 at 9:02 AM, Eyal Golan [EMAIL PROTECTED] wrote:
Hi,
I want to show my team mates the greatness of using wicket
Hi,
We have pages in our web application (naturally).
We have a special XML structure that represents the Pages' hierarchies.
According to this we create Links. Each Link has setResponsePage(...) to a
page.
Regarding Bread crumbs.
I looked into the examples and the source code itself and couldn't
and also for some odd reason, spitting out a window.open through
ajaxtarget.appendjavascript() thought (in the ajaxform.onSubmit) works fine
in IE and Mozilla but doesn't on Safari, am not sure why that is, may be
safari doesnt allow popup onload (which i dont think is the case) or
something
was thinking the same thing and would be the icing on the cake. website
never shuts down... crawler adds components and the demos just appear on the
site automagically via OSGi.
mebbe we need cheeser's transparent OSGi first though?
brian.diekelman wrote:
Jonathan Locke wrote:
-
I checked in IE7 and FF as well.
Couldn't find anything.
What I DID find is that I reach to Session.getLocale().
So, Is there a way to configure our Session to return the Locale from the
system?
thanks
On Thu, Jun 19, 2008 at 10:34 AM, Maurice Marrink [EMAIL PROTECTED] wrote:
Isn't the
this sort of marketplace might give JSF's claim to have lots of prefab
components a real run for the money... i think with some effort, we could do
this in a few weeks...
Jonathan Locke wrote:
was thinking the same thing and would be the icing on the cake. website
never shuts down...
A friend of mine has a motto Appearence is everything. If this
component marketplace also get a reasonably sexy frontend it could be
a real winner. We have developed a kind of Theme marketplace for our
photo album software but since we are tech guys we suitably named it
Skin repository
I've met the same problem several days away and resovled it by override a
method of Localizer
see:
http://www.nabble.com/Why-Localizer-Retained-so-many-heapsize--to17142582.html#a17182935
that may help you a little.
2008/6/9 Stefan Fußenegger [EMAIL PROTECTED]:
I am just analysing a heap
To setup the locale in your brower:
In FF (v2) use:
(menu)Edit-(option)Preferences-(tab)Advanced-(Area)Languages-(button)Choose
In IE (v7) use: Internet Options-(button) Languages
On Thu, Jun 19, 2008 at 10:16 AM, Eyal Golan [EMAIL PROTECTED] wrote:
I checked in IE7 and FF as well.
Couldn't
Hi,
According to https://issues.apache.org/jira/browse/WICKET-1667 this issue
will be fixed in Wicket 1.3.4 and 1.4-M3 respectively. I already put the
patch into production and it works. Thanks to Igor!
Regards, Stefan
Heart wrote:
I've met the same problem several days away and resovled
The javascript to close the ModalWindow is returned by a private method
of ModalWindow:
/**
* @return javascript that closes current modal window
*/
private static String getCloseJavacript()
{
return var win;\n //
+ try {\n + win =
OK thanks, i found it :)
But now I have something else that is not working.
When I start my application after I set the language to fr_CH for example,
then the Locale is really fr_CH.
When I, on the fly, change the language to something else (de_CH), the
Locale in my application is not changed.
My initial problem was, that I have different application contexts in the
test environment
and in the Web application and therefore different calls of
addComponentInstantiationListener.
In my test environment I have a ApplicationContextMock, which I have to add
as second parameter:
Hi Marieke
Your war file does not deploy/startup, atleast on tomcat, could you do
the same using the quickstart archetype, it should take you 2 mins doing
that(and give me something that I can look at in eclipse without too
much hassle)? I know Im being lazy but, thats the benefit of being
Hello,
Okay, second try..
I made my war again and tested it myself in tomcat 6. It seems to work, so I
put it on the server again and hope it works for you too..
I also created a zip with my sources and libraries that you can use in
eclipse :
http://www.driespannenkoeken.be/src.zip
If that's
Hello!
I have a webapplication built on JavaEE, servlets and jsp. Jaas is used for
security.
The plan is to use Wicket but it will be done little by little.
Login is done by the originalapp and the wicket pages will be behind the
loginpage.
How do I let wicket now about the logged in users
Hmm, okay I went ahead and created a maven project with a pom. For
minimal setup. Using wicket 1.4-snapshot.
And it are working, which browser are you using, im using FF2 and safari3..
However this are using wicket 1.4-snapshot(from wicketstuff repo) can
you try to use that and see it the
I want to build a template page and extend it to all my other pages.
How can i do that.
Help Please.
--
View this message in context:
http://www.nabble.com/How-can-i-use-template-in-wickets-tp18006702p18006702.html
Sent from the Wicket - User mailing list archive at Nabble.com.
Are you sure? The version I'm using is 1.4m2, so I don't think so much has
changed.
Did you do the following steps and have the list filled the second time? :
1- click 'Open Head Modal Window'
2- click 'Open Inner Modal Window'
3- close the modalwindow with 'When closing this window a date will
Hallo,
I have an applet, which is run on users computer. In this applet I scan
some photo and describe it.
I would like to send this foto along with the data to a wicket application.
How should I do that?
I thought of setting the form action parameter in the external
non-wicket page to point
Ahh, I did steps 1,2,3,2,3,2,4
Problem appears as you write.
Somethings seem to get out of synch. And it does seem that there are
something that are inconsistant, 10 mins and i'll see if I can hack
something up that works. Or if it's a true bug.
Marieke Vandamme wrote:
Are you sure? The
Sushant,
Wicket makes providing a common look for pages very easy, providing you with
a neat technique called
http://wicket.apache.org/examplemarkupinheritance.html markup inheritance .
If you prefer composition, look into using
http://cwiki.apache.org/WICKET/panel.html Panel s and/or
Hmm seems to be something very wierd. I've debugged it(changed your
source a bit so that the main page now gives the arraylist as a model to
the headmodal), and it does not seem to maintain state somehow. So head
modal gets an empty list on click 1 and then at click 3 it's suddenly
there again
Got it working, I believe there are an issue. Somehow the model on the
modal window invoking page are not being updated. If I create a final
page and pass that into the PageCreator it seems to work. But im still a
little curious about why it seems that the main page's model aren't
updated,
I find a solution but I supose that it's not the best. I put between the
simple and the name the Id of the row (the number of rows of my
refreshingView is not fixed :( )
form.simple.1.name.Required =
--
View this message in context:
Hi everybody,
There is someone who can tell me how to change the model of selected items
for these similar objects?
Because it's possible to change the model of items with setChoices(IModel m)
or setChoices(List l) but there is not setSelectedChoices(IModel m)
Thank you for your
Hi,
What is the best (wicket) way to do the next:
I have one page which has to show few sentences (static text), but the
sentences are different according to the input data.
For example if input to the page constructor is:
Page(input1 = 0, input2 = 0, inpu3 = 0)
Page has to show these three
Well, it would have helped to run it twice and only send the results
of the second run (you wouldn't have seen those dowloading
messages). Anyway, it looks like wicket-extensions is on your
classpath (listed as a dependency with compile scope), so everything
should be okay. Do a jar tf on that
That's nice. Our company's surfing control blocks the site :-)
I'll try to download it at home.
I don't think the problems happen because it's the homepage.
In my original project, the page wasn't the homepage and the problem was the
same.
I debugged the project a couple of times and also
I find the solution, I create a new object with a new model for selected
items, and i do a form.replace(Component c)
--
View this message in context:
http://www.nabble.com/CheckBoxMultipleChoice%2C-Palette--%3E-%22onchange%22-tp18008412p18009282.html
Sent from the Wicket - User mailing list
Marieke Vandamme wrote:
That's nice. Our company's surfing control blocks the site :-)
I'll try to download it at home.
I don't think the problems happen because it's the homepage.
Could just be a problem in what I've done then...
In my original project, the page wasn't the homepage and
The short answer is RTFM.
See:
http://cwiki.apache.org/WICKET/reference-library.html
There are several ways, but the one I like most is Markup
inheritance. See:
http://cwiki.apache.org/WICKET/markup-inheritance.html
... but, I also use panels extensively.
- Brill Pappin
On 19-Jun-08, at
why wouldnt it be possible? just roll your own breadcrumbs component.
-igor
On Thu, Jun 19, 2008 at 12:34 AM, Eyal Golan [EMAIL PROTECTED] wrote:
Hi,
We have pages in our web application (naturally).
We have a special XML structure that represents the Pages' hierarchies.
According to this we
just give labels a model that can figure out which sentence to show.
if you want them stored in .properties files that is fine too.
-igor
On Thu, Jun 19, 2008 at 6:18 AM, Goran Novak [EMAIL PROTECTED] wrote:
Hi,
What is the best (wicket) way to do the next:
I have one page which has to
I have a question about packaging. I have two Wicket web applications
that display data for two different corporate areas, but the
look-and-feel are similar. Therefore, I coded in Wicket a tool project
consisting of a bunch of higher-level problem-specific components that
my two projects should
I'm trying to open a new modal dialog, which is called from the
modalWindow.setWindowClosedCallback() of the first dialog. The first dialog
is being closed but the new one is not being opened. Does anyone know how to
open a second modal dialog when you click a AjaxLink of the first dialog,
which
Look up war overlay in the maven-war-plugin that will give you some
useful information on what you want to do beyond your original
questions.
as for dep types.
A war can be depended upon just like a jar (or anything else for that
matter) you simply specify the type:
dependency
You can't AFAIK. A WAR file is not a JAR file, e.g. the contained
classfiles are under WEB-INF/classes, not the root.
You're shared component should be a JAR project instead of a WAR
project. Just remember to mount your test page in each app in which you
use it.
jk
On Thu, Jun 19, 2008 at
On Thu, Jun 19, 2008 at 11:09:57AM -0400, Brill Pappin wrote:
Look up war overlay in the maven-war-plugin that will give you some
useful information on what you want to do beyond your original
questions.
as for dep types.
A war can be depended upon just like a jar (or anything else for
Hi, i have an input and a link. The link is an ajax link, and then i want to
update a table on the same page according to the input.
final DataView table = new DataView(table, new
ListDataProvider(Collections.EMPTY_LIST)) {
public void populateItem(final Item item) {
You got to wrap it in a markupcontainer, and add that instead.. theres
something on the wiki about this...
http://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html
Manuel Corrales wrote:
Hi, i have an input and a link. The link is an ajax link, and then i want to
update a table
add the DataTable in a WebmarkupContainer and repaint the container
cheers
dipu
On Thu, Jun 19, 2008 at 4:27 PM, Manuel Corrales [EMAIL PROTECTED]
wrote:
Hi, i have an input and a link. The link is an ajax link, and then i want
to
update a table on the same page according to the input.
Fantastic !!
Thanks very much.
On Thu, Jun 19, 2008 at 12:33 PM, wicket user [EMAIL PROTECTED]
wrote:
add the DataTable in a WebmarkupContainer and repaint the container
cheers
dipu
On Thu, Jun 19, 2008 at 4:27 PM, Manuel Corrales [EMAIL PROTECTED]
wrote:
Hi, i have an input and a
chuckle
I've used a few convoluted ways of doing it including a combination of
the dependency plugin to get the war dep and the antrun plugin to
extract it, but the war overlay (which I only discovered a few months
ago) is a much nicer way of doing it :)
- Brill Pappin
On 19-Jun-08,
That satisfies Maven, thanks! I'm not looking to add any resources or
pages from the dependency, just the java classes and HTML files, so I
don't think I need the war overlay feature. But now I have another
problem.
For debugging in eclipse, how do I tell Eclipse about this dependency?
When I
if you need to do that, then John was right, package it as a JAR file.
In your case you presumably don't need all the webapp metadata that
usually goes along with a war.
However, it still might be worth using the overlay feature because it
means you can easily run the separate wars for
OK, so I need to package my dependency as a JAR file because I need to
add it to my classpath in Eclipse.
I am not sure how the war overlay tool will help me; it seems to be used
for getting resources out of a .war file, and we've concluded that I
need a JAR file, right? Is there an easy way to
Hi,
I'm using an extendet wicket tree with an own tree model. I want to insert
child into the tree and want to update the tree with Ajax, but nothing
worked for me. I tried invalidateAll() and updateTree(). What can i do to
insert the childs with Ajax?
Kai
/*
On Thu, Jun 19, 2008 at 11:22:03AM -0500, Frank Silbermann wrote:
OK, so I need to package my dependency as a JAR file because I need to
add it to my classpath in Eclipse.
I am not sure how the war overlay tool will help me; it seems to be used
for getting resources out of a .war file, and
overlay takes two war files and merges them.
so whatever classes and resources you have in one will be included in
the other.
The reason to use a war instead of a jar is if you want to be able to
run that common war in its own (for dev and debug)
- Brill Pappin
On 19-Jun-08, at 12:22
I tried that - the onUpdate() method is being called as soon as the
field is being populated with a date. The onError() method is being
called as well when invalid input is entered (e.g. 'foo').
This must be something simple - I mean grabbing a field's input is the
underlying mechanism allowing
Okay, I fixed it - by accident I realized that the field started
populating AFTER I first entered some erroneous data, and then a real
date. Changing the JS even from BLUR to CHANGE fixed the issue. It was
simply an event based timing problem. Works like a charm now.
Thanks for the help, Igor -
hi!
a few days ago i posted a NicEditTextAreaBehavior. thanks to some
exchange with another wicketer, we managed to get a working version.
in order to use it and post an updated version of the field contents
(hence correctly updating the underlying Model), nicEdit textarea
requires the user to
In my Wicket 1.2 application I used PageParameters like a simple
HashMap, calling:
pageParameters.put(keyString, valueString)
and
String s = (String) pageParameters.get(keyString)
After upgrading to Wicket 1.3 the GET is causing a ClassCastException:
[Ljava.lang.String; cannot be cast to
not sure about what the javadocs say, but that exception says your
casting a string array to a string.
What your doing is:
String[] x = {value1,value2};
String y = (String)x;
- Brill Pappin
On 19-Jun-08, at 3:29 PM, Frank Silbermann wrote:
In my Wicket 1.2 application I used
Hi,
When in an AjaxFallbackLink's onClick(), the object I retrieve from my
session is null, even if in my form constructor the object was properly
retrieved :
public CreatureForm(String id, HibernateObjectModel object ) {
super(id, object);
Creature sessionCreature = ((DemoUser)
Hello ,
I had exactly the same problem , and solved by searching to this post.
Thanks a lot.
BUT , today , I have another problem...
Today , the ChildPanel can accept a new parameter : boolean defaultVisible
if true , the content will be shown;
if false , the content will be invisible , only the
in 1.3 pageparameters properly support string[] arrays like httpservletrequest.
you should use pageparameters.getstring(keystring);
-igor
On Thu, Jun 19, 2008 at 12:29 PM, Frank Silbermann
[EMAIL PROTECTED] wrote:
In my Wicket 1.2 application I used PageParameters like a simple
HashMap,
Take a look at swarm, it has a jaas history. It should be dead simple
to port it back to jaas again.
http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security
Maurice
On Thu, Jun 19, 2008 at 12:10 PM, Jesper Åkesson
[EMAIL PROTECTED] wrote:
Hello!
I have a webapplication built on
The two applications are presented in Google Developers Day 2008 in Taipei
2008/6/17 smallufo [EMAIL PROTECTED]:
FYI...
http://destiny.xfiles.to/app/calendar/StarTrans
http://destiny.xfiles.to/app/LuckyMap
BR
When you say I always get redirected to the root of the webapp, do you
mean when first trying to access your app, you have to go via a redirect or
some such that takes you to http://www.mysite.com/; or similar?
The 'traditional' trick was to have an index.html that redirected to app/
as below -
What wicket version are you on? There was a bug about this but is has
long been fixed. https://issues.apache.org/jira/browse/WICKET-1095
Maurice
On Thu, Jun 19, 2008 at 9:40 PM, smallufo [EMAIL PROTECTED] wrote:
Hello ,
I had exactly the same problem , and solved by searching to this post.
Hi !
No, sorry, maybe i was not precise enough, when i have the /app/* mapping, i
can access my HomePage directly, but all links from the HomePage as well as
the style sheet link and some image links (all within wicket:link) don't work,
as the /app/ part is missing. The only images working are
Hi...
I am using 1.3.3
2008/6/20 Maurice Marrink [EMAIL PROTECTED]:
What wicket version are you on? There was a bug about this but is has
long been fixed. https://issues.apache.org/jira/browse/WICKET-1095
Maurice
On Thu, Jun 19, 2008 at 9:40 PM, smallufo [EMAIL PROTECTED] wrote:
Hello ,
Well , let me describe more detail
When the user enters the page , he can successfully show/hide the content
(ChildPanel) without problems.
The state is stored in wicket's session.
If the ChildPanel is open(expand/show) , and he reloads the page ,
everything works fine.
BUT...
If he close
I tried to pull up the boolean defaultVisible parameter to the ParentPanel
, but still the same error
public abstract class AbstractPullDownPanel extends Panel
{
private final WebMarkupContainer content;
public AbstractPullDownPanel(String id , String title , final boolean
smallufo wrote:
The two applications are presented in Google Developers Day 2008 in Taipei
2008/6/17 smallufo [EMAIL PROTECTED]:
FYI...
http://destiny.xfiles.to/app/calendar/StarTrans
http://destiny.xfiles.to/app/LuckyMap
BR
ok, I got to admit I didn't check the apps
Hello,
Is there a method in Session that is called when the Session is ended?
Ended = user logs out (invalidate) or time-out (or anything else that can do
that)
My goal is to keep some information in the session and persist it when the
session terminates.
Is it legal to create a Thread (as a
according to the servlet spec by the time you get session invalidation
notification you can no longer access session attributes in the
invalidated session so you cannot store information like this in
session itself. instead you need some sort of map:session-info, but
then you have to cluster that
Exactly what i needed...thanks a lot man..i should have looked into the
source code myself..my bad..
Matthijs Wensveen-2 wrote:
The javascript to close the ModalWindow is returned by a private method
of ModalWindow:
/**
* @return javascript that closes current modal window
2008/6/20 Martin Funk [EMAIL PROTECTED]:
smallufo wrote:
The two applications are presented in Google Developers Day 2008 in Taipei
2008/6/17 smallufo [EMAIL PROTECTED]:
FYI...
http://destiny.xfiles.to/app/calendar/StarTrans
http://destiny.xfiles.to/app/LuckyMap
BR
ok, I got
84 matches
Mail list logo