On Thu, Apr 24, 2008 at 8:10 PM, qk [EMAIL PROTECTED] wrote:
1. after the page was rendered using WicketTester.startPage(), the real
content (the one that returned by getLazyLoadComponent()) was not loaded by
default. I always got an empty panel. Is there a way that I can have the
real
You have to set outMarkupId when creating the component. It's too late
to do it in the ajax callback.
Frank
On Thu, Apr 24, 2008 at 9:32 PM, Ryan O'Hara [EMAIL PROTECTED] wrote:
I'm fairly new to Wicket and was wondering if there is a way to use AJAX to
change the style of a
You dont have to package it just for me... I just wanted to take a
look at the code and was curious if and how this can be done without
iframe :-)
2008/4/25, Michael Mehrle [EMAIL PROTECTED]:
It creates a new frame via JS, yes. I want to send this to you, but it has
to be packaged properly and
What do you mean? You have more then 1 type of accessdenied page?
And why would you redirect your self to those pages? They are used by
the framework. You can use them yourself ofcourst. Just get the class
from the settings and set that as a response page.
On 4/25/08, mfs [EMAIL PROTECTED] wrote:
You cannot show a modal window directly from a page/component constructor.
It needs a valid AjaxRequestTarget, giving it a new ART is not going to work.
In the construcor you should simply add the modalwindow to your
page/component and then use a real ajax request to show it. You can
add an
No i have a static html page against each of the above (AccessDenied.html,
SessionExpiry.html and Error.html) but these pages are not defined in wicket
and are part of another external application i am integrating my wicket
application with, and want to use the same pages for the error scenarios.
I try to use BookmarkablePageLink :
I 've done this :
mountBookmarkablePage(projet, ProjetPage.class);
BookmarkablePageLink link = new BookmarkablePageLink(lien_projet,
ProjetPage.class);
link.setParameter(projet, inf.getNom());
the result is :
./projet/projet/MySQL
I want just
Hello:
A dumb question. I tried to build wicket from its source (say 1.3.3) (thinking
about working on wicket) and realized that several dependent artifacts such as
slf4j ,portlet were not on repo1.maven.org. Does wicket team (or
anyone building from source) have to install those locally or is
See Application#mount() and the various URL coding strategies that are
available.
I think you are looking for IndexedStrategy
Martijn
On 4/25/08, Fabien D. [EMAIL PROTECTED] wrote:
I try to use BookmarkablePageLink :
I 've done this :
mountBookmarkablePage(projet,
Is there a nice way to make a component that behaves like Panel but replaces
the surrogate element AND supports Ajax partial updates?
So if my parent HTML is:
lt;span wicket:id=here to be replacedlt;/span
and my child panel is:
lt;wicket:panelulliMust only have a single root
Ok, before I lay ma hands on it: Is there another LIVING project, that deals
with drag and drop for wicket? Are there other users of wicketstuff dojo out
there, who want to migrate to wicket 1.4? Does it still make sense to
investigate in wicketstuff/doho? Are there commercial solutions fprt
Nino.Martinez wrote:
At our wug CPH yesterday we talked about something similar (ajax), I
think theres no direct way currently. However you can setup a filter
which does that.
http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html
This filter doesn't work with Wicket because
thank you! image component can be used, no?
Date: Thu, 24 Apr 2008 13:45:39 -0700
From: [EMAIL PROTECTED]
To: users@wicket.apache.org
Subject: Re: image resource
new WebMarkupContainer(wicketId) {
private static final long serialVersionUID = 1L;
@Override
setRenderBodyOnly is indeed the way but as you have already found out,
you loose the id required for ajax.
Where would we put the id? there is no element.
If you have another parent element that you can use, you could update
that, or perhaps you can update the ul element.
Maurice
On Fri, Apr 25,
override onComponentTag and set tagname to ul in your panel.
ul
wicket:panel
li wicket:id=items./li
/wicket:panel
/ul
MyPanel extends Panel {
@Override void onComponentTag(Tag tag) {
super.onComponentTag(tag);
tag.setName(ul);
}
}
On 4/25/08, Sam Hough
I will search in this way, thank you
Martijn Dashorst wrote:
See Application#mount() and the various URL coding strategies that are
available.
I think you are looking for IndexedStrategy
Martijn
On 4/25/08, Fabien D. [EMAIL PROTECTED] wrote:
I try to use BookmarkablePageLink
I think in order to support updates, you need an output id on the lt;ul
element. I assume that is what you want to replace ... Have you tried
adding a wicket:id to the lt;ul and then calling setOutputMarkupId() on
that element?
-Doug
Sam Hough wrote:
Is there a nice way to make a
Yep. That is the bit I'm stuck on. I think the id should be the id in the
parent document but I don't know how to get that onto the HTML coming out of
the child component. Although I think that is the way to go it means the
root element in the Panel should/must not declare a wicket:id...
Hello there,
I have a question which came up when trying to test my wicket pages.
Currently a working implementation is the following in my test class:
Creating an ApplicationContextMock, populating it with the beans, creating
the WebApplication, injecting the context and initializing the
Thanks Martijn,
Is there a way to eat the first element in the Panel so I don't have to
hardcode the element name?
Martijn Dashorst wrote:
override onComponentTag and set tagname to ul in your panel.
ul
wicket:panel
li wicket:id=items./li
/wicket:panel
/ul
MyPanel extends Panel
yes it is called setRenderBodyOnly(true).
you could also tell your monkey (sic) to use wicket:container for
those panel elements and you then have to add a WebMarkupContainer to
your ul element and setOutputMarkupId(true) on it.
Martijn
On 4/25/08, Sam Hough [EMAIL PROTECTED] wrote:
Thanks
Can't you just put setters on your page/components that take the
dependencies? Then, during testing, you can just inject mock objects.
On Fri, Apr 25, 2008 at 9:21 AM, Sarkast [EMAIL PROTECTED] wrote:
Hello there,
I have a question which came up when trying to test my wicket pages.
Hi,
I'm trying to have a user signed on directly with an id rather than the
username/pwd when a new user is created. This gives me some trouble seeing as
the boolean signedIn is private.
I considered writing my own WebSession to handle this, but the problem here is
that there is no
Hi All,
I have a Required TextField and SubmitLink inside a ListView (which is
dynamic). When I click the submit link for a row...it validates all the
text fields in List View rather than the textfield against that link (and
shows that field is required .) Is there a way to get around this ?
Hi,
You can do it in this way: in your application class you can define a method:
protected IComponentInstantiationListener newComponentInjectionListener() {
return new SpringComponentInjector(this);
}
and then change init method to:
protected void init() {
super.init();
mount(/pages,
the wicketstuff-scriptaculous project has drag/drop support. I haven't
updated it to reflect 1.4 changes yet.
are 1.4 snapshots available for wicket yet on the bamboo snapshot
repository?
On Fri, Apr 25, 2008 at 5:38 AM, Stefan Lindner [EMAIL PROTECTED] wrote:
Ok, before I lay ma hands on it:
Wicket-auth-roles is actually more of an example then an api to follow.
So feel free to customize.
Maurice
On Fri, Apr 25, 2008 at 3:39 PM, Alexander Landsnes Keül
[EMAIL PROTECTED] wrote:
Hi,
I'm trying to have a user signed on directly with an id rather than the
username/pwd when a new
submit works on forms not fields. This is basic HTML.
So you need to make each row a form instead of all rows in the form.
Martijn
On 4/25/08, nanotech [EMAIL PROTECTED] wrote:
Hi All,
I have a Required TextField and SubmitLink inside a ListView (which is
dynamic). When I click the
You can use setDefaultFormProcessing(false) on the submitlink.
That way you can manually trigger the validation of a single component.
Maurice
On Fri, Apr 25, 2008 at 3:45 PM, nanotech [EMAIL PROTECTED] wrote:
Hi All,
I have a Required TextField and SubmitLink inside a ListView (which is
I have another question :
About the BookmarkablePageLink, and the display url, it is possible to do
not display the JSESSIONID???
thank you in advance
Fabien D. wrote:
I will search in this way, thank you
Martijn Dashorst wrote:
See Application#mount() and the various URL coding
Please search the mailing list before asking a question,
JSessionId is added to the url by the application container and is
thus pretty much outside the scope of what wicket can do.
However if memory serves me there are a few things you can do, just
search the list.
Maurice
On Fri, Apr 25, 2008
Yes, enable cookies in your browser.
Martijn
On 4/25/08, Fabien D. [EMAIL PROTECTED] wrote:
I have another question :
About the BookmarkablePageLink, and the display url, it is possible to do
not display the JSESSIONID???
thank you in advance
Fabien D. wrote:
I will search
snapshots should be available, And i think a 1.4-m1 should be
available any time soon too.
Maurice
On Fri, Apr 25, 2008 at 3:49 PM, Ryan Sonnek [EMAIL PROTECTED] wrote:
the wicketstuff-scriptaculous project has drag/drop support. I haven't
updated it to reflect 1.4 changes yet.
are 1.4
On Fri, Apr 25, 2008 at 10:02 AM, Martijn Dashorst
[EMAIL PROTECTED] wrote:
Yes, enable cookies in your browser.
The JSESSIONID will still appear at least one time even if cookies are
enabled, correct? Once a link/submit happens and the server sees that
cookie come in, it knows not to append
The server typically redirects to set the jsessionid iirc from the
previous discussion.
Martijn
On 4/25/08, James Carman [EMAIL PROTECTED] wrote:
On Fri, Apr 25, 2008 at 10:02 AM, Martijn Dashorst
[EMAIL PROTECTED] wrote:
Yes, enable cookies in your browser.
The JSESSIONID will still
Well, I know I've seen JSESSIONIDs appended to my wicket URLs and I do
have cookies enabled. So, apparently Jetty isn't doing that in my
case?
On Fri, Apr 25, 2008 at 10:12 AM, Martijn Dashorst
[EMAIL PROTECTED] wrote:
The server typically redirects to set the jsessionid iirc from the
Hi everyone,
There are many usecases when it could be necessary to write some
javascript by hands directly in the html file. So I need to reference
the library I use in a head section of my html file. But having a
reusable component written in java which is depending on the same
javascript
If you just need the javascript library, I also use header contribution.
You can also take a look at wicket input events or datepicker etc...
If you have your js files locally(in your project) you can use the
packagedRessource so it gets gziped..
take a look at the wicket blog tutorial:
http://cwiki.apache.org/WICKET/blog-tutorial.html
Or even better the wicket-persistence-template:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-persistence-template
Sarkast wrote:
Hello there,
I have a question which
But it could be much more with just some simple changes, like allowing
enums in annotations and the signin thing Alexander mentions. But on the
otherhand with the upcomming changes to swarm(im thinking of
annotations), the choice probably would be simple:)
Maurice Marrink wrote:
Hmm I've seen the same a couple of times after restarting the server.
However it seems to disapear after the server is warmed...
It can also be a problem if you run apache http server in front and you
do not forward cookies etc... I wrote an example on this earlier in
some thread around
I mean sometimes the library like prototype or whatever is
necessary just to make some decorations in a markup. A good example is
100% height correction. So there is no reason to start a web server
just to see a page markup with a working script. And what about
duplicating entries of the same
On Fri, Apr 25, 2008 at 11:06 AM, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
Hmm I've seen the same a couple of times after restarting the server.
However it seems to disapear after the server is warmed...
Yes, once it knows that cookies are working, it doesn't append them
Vitaly Tsaplin wrote:
I mean sometimes the library like prototype or whatever is
necessary just to make some decorations in a markup.
A good example is
100% height correction. So there is no reason to start a web server
just to see a page markup with a working script.
What do you mean?
Isn't it often better to explicitly declare the list of javascript
libraries the component uses and let the user add this libraries to
the web content folder manually on his/her preferred location?
On Fri, Apr 25, 2008 at 4:51 PM, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
Hi,
Check whether all the items in the list has the same value in the
generated html source.
For example,
select
option value=0One/option
option value=0Two/option
/select
If it is so, try to give a proper ChoiceRenderer like new
ChoiceRenderer(displayName, internalld);
The values need to be
Yep. I meant the javascript sometimes can be considered as a css
html extension if those're lacking :)
I am not sure that wicket can scan for duplicates since I can refer
to src/scriptaculous.js and you to
scripts/scriptaculous/src/scriptaculous.js...
On Fri, Apr 25, 2008 at 5:12 PM, Nino
Sarkast wrote:
protected void init() {
super.init();
mount(/pages, PackageName.forPackage(Login.class.getPackage()));
// commented out for testing
addComponentInstantiationListener(new SpringComponentInjector(this));
}
You could do something like
Thanks, much more elegant then what I came up with. (novice programmer -.-)
--
View this message in context:
http://www.nabble.com/WicketTester-in-spring%2C-question-about-springinjection-tp16895558p16896956.html
Sent from the Wicket - User mailing list archive at Nabble.com.
Thank you Ryan,
nice to hear that some WicketStuff projects are still alive. On question about
Scriptaculous drag/drop: Is it possible to have a drop element (some div or
span) containing drag elements? And is it possible to move another element
onto the drag element and the target is the
Stefan, i'm not 100% sure what your usecase is. the
wicketstuff-scriptaculous library supports pretty much everything that
scriptaculous supports.
we do support adding sortable elements to the drop target. scriptaculous
only allows for one drop element per page though...
On Fri, Apr 25, 2008
Vitaly Tsaplin wrote:
Isn't it often better to explicitly declare the list of javascript
libraries the component uses and let the user add this libraries to
the web content folder manually on his/her preferred location?
I like that you package your component to run off the fly, and then
Hi,
I am trying to get a model object when an autocomplete selection is made;
but model object comes back as a string rather than the model that was
selected. Is there a way to get the selected Model (Actor) in the example
below ?
final AutoCompleteTextField actorAutoComplete = new
Just add it to the bottom of your highest level page and have all other
pages extend that page. Then have its visibility be determined by
iterating over all the components on the page and if one matches your
component return true.
On Fri, Apr 25, 2008 at 12:06 PM, Clay Lehman [EMAIL PROTECTED]
Can you elaborate on why you need to do this? Maybe it can be twisted a
bit to fit in?
Clay Lehman wrote:
I am making a component that has to have a DIV appended to the page to
work properly, but the problem is, this DIV has to be appended exactly
once, even if multiple objects of the
Take a look at
http://www.nabble.com/1.3%2C-resource-locator-and-properties-to16707905.html#a16708440
control+f to help wanted for autocomplete
On Fri, Apr 25, 2008 at 12:29 PM, Ricky [EMAIL PROTECTED] wrote:
Hi,
I am trying to get a model object when an autocomplete selection is made;
but
Im working with the javascript tooltip shows here:
http://codylindley.com/Javascript/219/finding-a-javascript-tool-tip-scri
pt
It requires that you add a DIV to the bottom of the page, and call some
javascript (after any links/tooltips have been added) and if I add the
DIV more than once, all
Does anyone have example code for generating an excel spreadsheet. I am
using Wicket 1.3 and I have used wicket.contrib.jasperreports to
successfully generate pdf files in IE but FireFox returns nothing.
Changing JRPdfResource to JRCsvResource returns a comma separated list but
the type it is
Stefan Lindner wrote:
Thank you Ryan,
nice to hear that some WicketStuff projects are still alive. On question about
Scriptaculous drag/drop: Is it possible to have a drop element (some div or
span) containing drag elements? And is it possible to move another element onto the
drag element
Just use prototip from minies, very flexible. Only cons are missing ajax
support, and a little trouble with modal windows.
http://www.nickstakenburg.com/projects/prototip/
http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-minis-prototip
Theres also something in the scriptaculus
you can use requestcycle's metadata facility to store a flag of
whether or not the div has been rendered...
-igor
On Fri, Apr 25, 2008 at 9:06 AM, Clay Lehman [EMAIL PROTECTED] wrote:
I am making a component that has to have a DIV appended to the page to
work properly, but the problem is,
Yes, just the old version from trunk, mofified for wicket 1.4. If the former
project developers agree I can commit it to wicketstuff. I have to search for
my commit account login data
Stefan
-Ursprüngliche Nachricht-
Von: Nino Saturnino Martinez Vazquez Wael [mailto:[EMAIL
That's Awesome!!
Thanks Igor, that was exactly what I needed :)
Clay Lehman
Phone: (919) 882-2856
[EMAIL PROTECTED]
-Original Message-
From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
Sent: Friday, April 25, 2008 1:37 PM
To: users@wicket.apache.org
Subject: Re: append HTML to a page ONE
Hi,
I took a look at the solution below, unfortunately the above solution
doesn't work because if the model in getTextValue( ) method is set (for the
containing panel or any component for that matter) the *last* choice is
selected and set as a model instead of the right one. It works only when
Hello.
I an trying to use the ListMultipleChoice and want to use my list of custom
Authority object as options. The form is shown correctly with the right
options and values and everything.
The problem arises when I submit the form. For some reason the selected
values are not converted correctly
That doesn't sound correct - are you sure your Maven installation
hasn't been pointed somewhere else, as we don't manually install them
locally they are on repo1 - What particular artifacts are showing as
unavailable?
See http://repo1.maven.org/maven2/org/slf4j/
Hi Martin/All
In my page the HTML that is created is dynamic (has embedded widgets or
gadgets) and we dont have control over the tags in the wicket page.
or tags doesnt have a end tag in its html representation , so it is
legitimate.
So what i would like to know is if there is someway to
Hi everyone,
I'm setting up an app with wicket 1.3.3
I have my Application class defined this way, to use Spring injection with
annotations
public class WicketApplication extends SpringWebApplication {
/**
* Constructor
*/
public WicketApplication() {
}
@Override
Why are you using the Spring injector to inject your dependencies?
Can you not manually inject your dependencies? Adding stuff manually
to a Spring context and then having the Spring injector inject it
doesn't really test what's going to be going on in production
anyway. If it were me, I'd
Guys,
I am using RedirectPage class to redirect to an external url, and strangely
it just gets stuck in an endless loop..any idea as to what the problem could
be ?
i.e.
new RedirectPage(Host.getHttpsUrl() + /login)
Thanks in advance..
--
View this message in context:
Has anyone done this and might have suggestions?
What I want to be able to do is have multiple applications all running
within one context. They will basically be different versions of the same
site, with some differences in style, and occasionally HTML. Other things,
like sections of the site,
James Carman wrote:
Why are you using the Spring injector to inject your dependencies?
Can you not manually inject your dependencies? Adding stuff manually
to a Spring context and then having the Spring injector inject it
doesn't really test what's going to be going on in production
anyway.
I think you also need to put your beans in there aswell:
ApplicationContext appcxt = new ClassPathXmlApplicationContext(
applicationContext.xml);
generalDao = (GeneralDao) appcxt.getBean(GeneralDao);
// 2. setup mock injection environment
Well there are some different things you could do. One could be just
mapping them(the applications) with diffrent filters. The same goes with
your spring context.
And you could control which stylesheets should be used by different
header contributors, and injected spring context. That should
74 matches
Mail list logo