Have a look at AjaxEventBehavior. You can either combine this with an Image
component or add an AttributeModifier and manually tweak the img's src
attribute.
Alastair
2008/9/19 Tim Squires [EMAIL PROTECTED]
Hi All,
Before I go and write my own component to change the src of an img
Hmmm. As you say, there's no easy one-size-fits-all.
There is an obvious improvement you could make, though. All JS/CSS
contributions initially rendered on the home page could be batched up. This
will typically provide the biggest improvement anyway. You could then keep a
reference to this batch,
For something like this, you probably want to avoid having markup files at all.
Seeing as you want something that is both a Link and a Label, a good
starting point might be to look at the source code for both.
You should be able to extend the Link class, and override
onComponentTagBody() in much
Sounds to me like you're somewhat confused. ;-)
Load the image from the classpath into a bufferedimage as you would
outside of Wicket (Foo.class.getResourceAsStream() or whatever it is).
Draw text, etc. on it as you see fit.
Display it with Wicket if you want to via a BufferedDynamicImageResource.
Note that you can style option tags in Firefox, but it probably
won't work in Internet Explorer, so it may not be worth even bothering
with this...
Alastair
2008/8/9 Martin Makundi [EMAIL PROTECTED]:
Using Select/SelectOption/SelectOptions I loose all the other
encapsulated benfits of
2008/8/7 nlif [EMAIL PROTECTED]:
While it is very good to know that it's relatively easy to develop Wicket
components, bear in mind that management (at least mine) is more easily
convinced when presented with a wide selection of 3rd party component
libraries, since that provides an alternative
Thanks for the kind words. I really liked Carl's Terracotta stuff -
very cool. Wille's presentation on his WicketRAD framework was also
great. It's really cool to see people getting inspired by and building
on people's code from previous meet-ups! I can't begin to tell you how
rewarding that is.
This may be a client tag interpretation problem? Try using gt;gt;
instead of . I don't think inside HTML attributes is valid HTML.
Use firebug and/or the wicket ajax debug window (link bottom right on
your page) to see what's going on.
Alastair
2008/8/5 Daniel Freitas [EMAIL PROTECTED]:
Do
Have you done any web development before using Wicket?
If so, you should be able to solve this problem by asking yourself the
following questions:
What happens if you click a link on a web page?
Do you think the browser sends the data in a text field on the page to
the server if you click a
2008/7/18 Brad Fritz [EMAIL PROTECTED]:
I am trying to rewrite an HTML form action attribute (for a
non-Wicket form) inside a Wicket Panel and could use some help.
While converting a large webapp to Wicket, I created a Panel to wrap a
search form. The form processing is not handled by
2008/7/11 David Nedrow [EMAIL PROTECTED]:
Here's what I've have...
IResourceStream resStream = new
PackageResourceStream(WicketApplication.class, protocols.csv);
InputStream inStream = resStream.getInputStream();
InputStreamReader isr = new InputStreamReader(inStream);
ListString[]
Hi folks,
Bit of shameless self-promotion here, but it's right on-topic so I hope no
one minds...
Just a quick heads-up that Cemal and I are running a rather comprehensive
Apache Wicket course in a couple of weeks' time, on July 12th and 13th.
The course is mature, well proven, and nicely
It doesn't sound like you're trying to inherit anything, not in the
object-oriented sense of the term. Instead you just want to use different
markup for a page dependent on some criteria.
Wicket already does this for localised versions of a page.
HomePage.html
HomePage_de.html
HomePage_fr.html
This sort of stuff is definitely possible - people certainly have it working
elsewhere.
If you use setReuseItems(true) you need to call removeAll() if you change
the backing model object.
Timo is probably right that a RepeatingView may be easier to use in this
kind of situation.
Alastair
Note that you can also override the style in your Component class (e.g. your
WebPage subclass). The default implementation for getStyle() calls
getVariation(), etc. Best to look at the source to see exactly how it works.
Regards,
Alastair
2008/6/11 Gwyn Evans [EMAIL PROTECTED]:
and make them behave just so.
- *Al Maw http://herebebeasties.com* walking you through an entire
crazy-cool AJAX-heavy app, using some of the components previously created
for past London Wicket talks.
As usual there will be:
- Lots of pizza.
- A visit to the pub afterwards.
- People to help you
I think you miss John's point, which is that when you use a
CompoundPropertyModel for a component, all its children typically do not
reference models explicitly.
Thus you typically use an explicit model on 30% of your components if you
have a form-heavy web-app; the other components use the
You can find the default messages (and keys, obviously) in the
org.apache.wicket.Application.properties file.
Regards,
Al
On Fri, Apr 25, 2008 at 1:20 AM, Michael Mehrle [EMAIL PROTECTED]
wrote:
Man, of course - I was so focused on NumberValidator that I completely
forgot about the
ajaxTable.setCurrentPage(ajaxTable.getUserRow(user.getUsername(), new
Date(((HomePage)getParent()).getClientCalendar().getTimeInMillis())) /
ROWS_PER_PAGE);
Eeek. Not to be rude, but I really can't read that at all.
Some well-named intermediate variables and a comment might not go amiss.
Your
Yeah. It's a bit nasty, but there's not really any other way to have both
the flexibility and the convenience, unless you have some brilliant other
idea?
It's like jk says, normally you would use the setter, unless you need
on-demand evaluation per page-view.
Regards,
Alastair
On Thu, Apr 3,
You can use as many anonymous inner classes as you like. I have them coming
out of my ears, personally.
It's very odd for tomcat to die with no output. There will be output
somewhere. Check logs/catalina.out and also logs/localhost*. If the JVM
dies, it will hotspot or even segfault and log that,
Or search this list for a thread called refreshing page.
On Wed, Apr 2, 2008 at 4:44 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:
new model(listdata) is the same as a static reference. like i said,
read the models page because without understanding them you wont get
far.
basically you would
// Simply:
IModel listModel = new AbstractReadOnlyModel() {
public Object getObject() {
return new ArrayList(mySet);
}
};
// Or if you want to wrap a property model (not that this is as nice):
IModel listModel = new PropertyModel(bean, mySetHere) {
public Object getObject() {
If you are having CSS issues in firefox, use firebug to debug it. It will
tell you which rules are being overridden and by what. You might be
including the CSS in the wrong order on the page, for example.
Regards,
Al
On Tue, Apr 1, 2008 at 6:06 PM, Matthew Young [EMAIL PROTECTED] wrote:
and
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Al Maw
Sent: Monday, March 31, 2008 7:54 PM
To: users@wicket.apache.org
Subject: Re: continueToOriginalDestination resolves to wrong URL
I've just spent two hours trying to reproduce this and failing to (see
the
bug). If anyone can give me
The following two blog entries are very useful in understanding and
debugging this issue:
http://blogs.sun.com/fkieviet/entry/classloader_leaks_the_dreaded_java
http://blogs.sun.com/fkieviet/entry/how_to_fix_the_dreaded
We think we've fixed the instances in Wicket where this is a problem, but
This isn't as easy to tweak as it could be, I'm afraid. :-(
You're better off using target on the href than doing this with JavaScript,
I'd have thought.
That said, most people think that choosing to open a new window or not is
pretty evil - the user has the option to do this if they want to, it
I think he makes a valid point, personally. People do want to do this sort
of thing quite frequently. It wouldn't kill us to implement an
OutputStreamLink that looked like this:
add(new StreamingLink(link) {
public String getFileName() {
return download.xls;
}
public String
You have to use the constructor that takes an IChoiceRenderer, same as any
other AbstractChoice component like a DropDownChoice. You should be able to
figure the rest out from the JavaDocs and examples for that.
Regards,
Al
On Tue, Apr 1, 2008 at 9:29 PM, Shelli D. Orton [EMAIL PROTECTED]
Really need some code to see exactly what you're doing wrong here.
Wicket uses models to bind your view components to your actual data.
Assuming you're using a ListView, you'll need something like:
IModel model = new AbstractReadOnlyModel() {
public Object getObject() {
// Database
the component they've clicked on from the
hierarchy, causing the second click to fail?
Regards,
Al
On Tue, Apr 1, 2008 at 9:44 PM, Jeremy Levy [EMAIL PROTECTED] wrote:
On this site we aren't using any Ajax components. :(
J
On Tue, Apr 1, 2008 at 4:39 PM, Al Maw [EMAIL PROTECTED] wrote:
What
Actually, this should Just Work (tm). Are you running on Tomcat?
Regards,
Alastair
On Mon, Mar 31, 2008 at 4:34 AM, [EMAIL PROTECTED] wrote:
You got it
-igor
On 3/30/08, Zheng, Xiahong [EMAIL PROTECTED] wrote:
Thanks Igor. But my resource in this case is style sheet not image. Does
That bug was closed for rc 1, so you shouldn't be having this issue unless
you're on a beta version.
Please could you provide some more details?
Which Wicket version?
Which servlet container?
Regards,
Alastair
On Mon, Mar 31, 2008 at 3:32 AM, Zheng, Xiahong [EMAIL PROTECTED]
wrote:
Just
Further to this, we'd really like to hear some user stories about what
you're up to with Wicket.
If you'd like to do a two-minute demo pimping your site and telling us what
you've found good/bad about developing with Wicket, that would be great. If
you can't or don't want to do a demo, but have a
Errr, or you could use the Image component, with a standard package
resource?
Regards,
Alastair
On Mon, Mar 31, 2008 at 8:26 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:
On Mon, Mar 31, 2008 at 11:44 AM, Matthew Young [EMAIL PROTECTED] wrote:
the relative stylesheet
loading problem that I was facing at the same time.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Al Maw
Sent: Monday, March 31, 2008 10:15 AM
To: users@wicket.apache.org
Subject: Re: continueToOriginalDestination resolves
environment set up so we can work out what the heck the problem could be.
Are people running this behind a mod_proxy or something? Or are you seeing
this issue when pointed at localhost:8080?
Regards,
Alastair
On Mon, Mar 31, 2008 at 10:23 PM, Al Maw [EMAIL PROTECTED] wrote:
Yep, this is probably
Hi folks,
Building on the success of the previous Apache Wicket User Group meet last
month, Google UK has generously decided to host the next one.
This time, the fun and games will happen on *April 2nd*, starting at *6:30pm
*.
To sign up and for more details (links to a map, etc.) please go to:
The children field is private to Component, so I figure we could make
children transient, double the array size each time each time we add
components if it's not big enough (like ArrayList does), and then in
detach() we could copy the children over to a non-transient variable
and null out the
The easiest thing to do is to keep src/main/webapp as-is and put your
stuff in a parallel directory structure in src/main/resources.
E.g. more src/main/java/com/yourcompany/foo.css to
src/main/resource/com/yourcompany/foo.css
On 10/02/2008, Andy Czerwonka [EMAIL PROTECTED] wrote:
I used the
Wicket special-cases URLs that start with /resources/*. You therefore
can't use that as a directory for your images.
Regards,
Al
On 04/01/2008, Fernando Wermus [EMAIL PROTECTED] wrote:
Michael,
I have changed the images to another directory and it is working
right now. I don't know
had interest from as far away as
San Diego, so I think it's an important step just to get the first one
started.
Cheers,
Orion
Al Maw-2 wrote:
Sorry, I've been pretty busy lately - I've not been checking the
wicket-users list every day. If you want to get hold of me in a hurry
it, but I'll need to know by 2pm.
Kind regards,
Al
Orion Letizi wrote:
It looks like this Thursday, Dec. 6 is the leading contender, especially if
Al Maw can give a presentation (haven't heard back from him yet, though).
Otherwise, Eelco Hillenius has agreed to be there via teleconference, so
Edvin Syse wrote:
Johan Compagner skrev:
BodyOnLoadContainer is dropped because you shouldn't try to generate
body
onload=xxx
What you should do is have a header contributor and add call
IHeaderResponse.renderOnLoadJavascript(String javascript);
OK. Maybe one of you guys could remove the
Oliver Lieven wrote:
is there a way to determine the complete, absolute URL to a mounted page
(including protocol, host, port, application, filter and destination page)?
I need this to be able to send a link to a Registration-Confirmation page to
a user via email.
Ah, yes, I've been meaning
Gerolf Seitz wrote:
i found the problem:
what i mentioned before with onBeforeRender didn't make it into rc1. sorry
for messing that up.
but now there are two checks for enabled/disabled.
i actually prefer the one with dis-/enabling the label in onBeforeRender,
because this way the onClick
Al Maw wrote:
godin wrote:
Hi,
as a stupid newbie,
i encounters a problem with refreshing list view with ajax
i edit an object which relate to a list view in a modal dialog , and
i can't manage to refresh the listview after the submit
all the object in the list are detachable , (i override
Icy wrote:
*** What is the best practise to not instanciate page aggregating panels
all the time? ***
This isn't really a Wicket question.
Your page is slow because doing database/remote operations is slow. It
has nothing to do with creating Panels, but everything to do with the
database
lodhur wrote:
That what I need is a javascript function which contains
the correct call of my window
(similar to the onlick-content of the wicket generated link).
You /really/ need to learn how to work things out for yourself. Allow me
to lead you through such a process.
So, you want
Artur W. wrote:
Is is possible to create different markup files (for the same page) depends
on user screen resolution?
This is quite easy, actually.
Create an abstract ResolutionDependentPage extends WebPage which your
pages will extend.
Add this method:
@Override
public String
thomas jaeckle wrote:
igor.vaynberg wrote:
make that bean a prototype?
Hm, I don't see the benefit of this. The problem remains:
I can't initialize the pages before the WebApplication is initialized (in
this case I would become a There is no application attached to current
thread main
Al Maw wrote:
return super.getVariation() + _ + size;
Should be:
String s = super.getVariation();
return s == null ? size : s + _ + size;
Otherwise the default locale HomePage_big.html won't work and will look
for HomePage_null_big.html. ;-)
Regards,
Al
Orion Letizi wrote:
There was some talk yesterday on IRC about having a Wicket meetup in San
Francisco. I offered the Terracotta offices, pizza, and beer as a good
place to have it.
I'm in California for three weeks starting next week, would be happy to
come and do a presentation if you
Gregooo wrote:
Is there anyway to change the default feedback error messages?
For example, now, I have the following error message:
Field 'user.userName' is required.
And I would like to change it by: Please enter your Name.
http://cwiki.apache.org/WICKET/form-validation-messages.html
See
karnowski wrote:
Greetings,
In the constructor of my webpages I'm wanting to do a validity check and if
it fails redirect to a different page. So I'm doing something like this:
public class OriginalPage extends WebPage {
public OriginalPage() {
...
if(!validityCheck()) {
jweekend wrote:
When instantiating a RepeatingView, is there a case where
RepeatingView(String id, IModel model) would be used instead of
RepeatingView(String id) ?
It seems that RepeatingView's (and RefreshingView's) model is unused.
Use case:
RepeatingView view = new RepeatingView(
foo,
Frank Bille wrote:
The easy solution is to disable javascript cleanup:
INIT:
getResourceSettings().setStripJavascriptCommentsAndWhitespace(false);
I have been too lazy to actually try to fix the problem, I'm afraid.
:-(
Is there a JIRA issue for this?
Regards,
Al
Uwe Schäfer wrote:
Is it currently impossible to use constructor injection ?
To quickly answer my own question: no, but little tricky! :)
Well, you need to replace instances of new FooComponent() with something
that gets injected, like a ProviderFoo if you're using Guice, or some
kind of
Uwe Schäfer wrote:
Subclass WebRequestCycle, and construct it with an EntityManager.
thanks! That may well be an alternative to the common
ServletFilter-pattern.
Well, err, yes. ;-)
One question: isn´t it a little better to have the ThreadLocal Holder
for the EntityManager separate from
Marco Aurélio Silva wrote:
So, I can create a panel to each type of answer (input, dropDown, radio...)
but how to add dynamic number of panels?
Look at the Repeater examples at http://wicketstuff.org/wicket13 .
Regards,
Al
Uwe Schäfer wrote:
i plan to use JPA together with Wicket. Are there any battle-proven
best-practices out there of how to handle EnityManagers and Transactions?
What do other people use (no, not the spring crowd ;) ?
One EntityManager per Request seems to be the obvious idea and a guice
serban.balamaci wrote:
I am just saying that it may be ok in some cases to keep state on
some objects and not have detachable models.
I agree.
Anything that uses a List of database entities, I tend to put in a
detachable model.
If I'm merely using a single POJO that was originally pulled
Johan Compagner wrote:
so we dont support this currently?
myserver1.xxx.com:80 - localhost:8080/myapp1
myserver2.xxx.com:80 - localhost:8080/myapp2
We support that just fine. That, in fact, is most of the reason why
we're using relative URLs in 1.3.
Murat: I have this working perfectly
BatiB80 wrote:
Hmmm... - sorry, but one more question on this. I added an attributemodifier
to my component. When accessing the page the attribute is correctly
renderred. But I want to rerender the component after the validation
failed. But the validation method isn't called again.
example:
pmularien wrote:
Was there a conscious design decision to not use the
org.apache.wicket.injection.web.InjectorHolder class (and, by association,
have the wicket-guice stuff inherit from ConfigurableInjector)? It would be
pretty convenient if the GuiceComponentInjector worked similarly to the
pmularien wrote:
Al Maw wrote:
Yes, there was, and this issue hasn't been resolved for 1.3 yet.
I did it like this because some people will want to use both Guice and
Spring in their apps at the same time, especially if they're
mid-migration.
We should come up with a decent way to make
Pills wrote:
How can I put several buttons on a form?
If you look at the code you've written, you've nearly answered your own
question. ;-)
Don't use the Form's onSubmit().
Just use the Buttons' onSubmit()s instead.
If you want to allow a Button#onSubmit() without the Form validating,
Johan Compagner wrote:
I dont think that will work quite that way out of the box.
because our normal statefull redirect page will go to
/?wicket:interface=:0:
And also form post will go to that kind of url (and then redirect)
Actually, we rely on the servlet container to convert relative
skatz wrote:
Is it possible for a javascript function to fail in such a way that
the rest of the script would not be called?
It can throw an exception.
Regards,
Al
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Gwyn Evans wrote:
I've got some text that shows up fine in Firefox but only when
selected in IE (IE7) and I've no idea what the real issue is, so I'm
hoping someone can take a glance.
That bug tends to be triggered by floats, but there are various things
that can cause it. You can almost
Sam Hough wrote:
Anything similar for spitting something out _after_ the tag that the
component is mapped to? e.g. Sending out some text/html after a checkbox?
Presumably onComponentTagBody doesn't get called because it is not a
Container and the input tag is send after anything I do in
Martijn Dashorst wrote:
As for 1.2 or 1.3.. .I suggest 1.3. It is running on a couple of
production systems already [...]
LOL.
Hands Martijn the Understatement of the Century Award.
;-)
Regards,
Al
-
To unsubscribe,
William Hoover wrote:
final AttributeModifier levelModifier = new
AttributeModifier(class,
new Model() {
@Override
public Object getObject() {
Brill Pappin wrote:
For some reason onSubmit is never called on a simple form.
Has anyone seen this problem before?
Throw us a bone here...
Some code please?
Regards,
Al
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
William Hoover wrote:
Is it better to use AbstractBehavior and override onComponentTag?
I assume that the AttributeModifier is only for cases when the attribute
already exists in the markup, correct?
Well, given the javadoc I told you to read for the second parameter
there, no. ;-)
It
Chris Colman wrote:
heh, wellyou can be against this, but i think if we take a vote
right now most core-devs with binding votes will vote this down
I still can't see the reason for the negativity of some of the
core-devs: this is an existing feature.
No offense to anyone involved,
Gwyn Evans wrote:
Hi,
I've got a form, which I'm processing with Ajax, but I need to go
onto a different page once it submits correctly. The problem I'm
seeing is that if I do a
setResponsePage(Sent.class);
then the URL that's being generated is:
Tom Desmet wrote:
http://myserver:8080/mywicketwebapp/NL/*
http://myserver:8080/mywicketwebapp/EN/*
http://myserver:8080/mywicketwebapp/FR/*
...
What I would like to achieve is that when someone enters the web application
by the url /mywicketwebapp/NL, that all wicket requests stay under this
maentele wrote:
My question/problem is: how do I get the currentPage (the currently active
link)?
Just call Component#getPage()
Regards,
Al
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Will Jackson wrote:
What is the proper way to declare a default wicket:child / and
ensure that the page containing the wicket:child / is not directly
accessible on its own?
I know I can just call the extending page (i.e. Page1 extends
BasePage, calling Page1.html), but how do I ensure that
Martijn Dashorst wrote:
It doesn't work until after adding the component to the page.
This is true.
So you need something like this (I've modified your variable names to
make it more obvious what is what):
pageLink.add(new AttributeModifier(class, true,
new AbstractReadOnlyModel()
Johan Compagner wrote:
Make BasePage an abstract class.
some things in live are soo simple :)
(are we testing for abstract pages or will there just be an exception?)
Probably the latter, but if your users are guessing URLs then they
deserve to lose.
Regards,
Al
Marco Aurélio Silva wrote:
I'm using a PageableListView component and I want to make each row of the
list clickable. I don't want to add a column with a label like details, I
just want to click in any place of the row to go to details. Is there a way
to do this?
If you don't mind requiring
Marco Aurélio Silva wrote:
Is there a way to do it without javascript?
Well, obviously if you want to handle clicking on things without
Javascript then whatever it is needs to be a standard Link.
You can abandon tables and do something like this:
div wicket:id=listView
a wicket:id=link
Sam Hough wrote:
Lots of the time I just want a link with text as the body of the ... ...
The Link class takes an IModel so presumably uses that for something but I
can't see it in the source or get it to appear...
Sorry I'm being thick and I did search honest!
You'd typically use the model
landry soules wrote:
Sorry Al, but you lost your money ;-)
I put back slf4j-api-1.4.2.jar , and still the same problem... Using the
jars suggested by Cristi doesn't help either. But since it seems i'm the
only one to still have the problem, must be a problem with my classpath. I
will recheck
landry soules wrote:
Actually, i didn't go on with maven, since my project is already quite
advanced now, i don't want to reconfigure it to use maven. I just tried to
create a sample project to figure out what is the correct combination of
slf4j/log4j to use (bad idea, since it appears to be
auron wrote:
Sorry to be the wicket newbie, but I was wondering if you guys could help me
to understand how Links work.
I understand that when you do Link(SomePage.class), it calls the zero param
constructor of SomePage, and when you do Link(new SomePage(someParams)) you
can call other
Sebastiaan van Erk wrote:
I was wondering if it is possible to configure wicket to make
wicket:message output the key in braces when the key is not found (at
least in development mode), because that would make it a lot easier to
spot missing labels...
That is, what I'd like to do is:
Brill Pappin wrote:
Moving to the list as suggested by Gwyn.
From Jira issue:
https://issues.apache.org/jira/browse/WICKET-1108
Maybe I wasn't clear on what my problem with it was.
1) doing any extensive amount of work in a constructor is an anti-pattern
AFAIK.
Blindly declaring
Johan Compagner wrote:
Yes we could do that. Just remove that default value.
But what i would like to have IF you have a body specified then we don't
throw anything
This way we keep old behavior and we have the new one
FWIW, I entirely agree with this. If we just change it for tags that
have
Francisco Diaz Trepat - gmail wrote:
Hi I just downloaded the maven 2.0.7 and ran the *mvn archetype:create
-DarchetypeGroupId=org.apache.wicket*
then ran the *mvn netbeans:netbeans* inside the project to get a Netbeans
project. And got an error.
That's because there is no such
Otan wrote:
The problem with the extra dot-dot in the image src that arises when the
filter is map to /* seems to be fixed when I do this:
mountBookmarkablePage(/home, HomePage.class);
Now, the URL I see in the browser when I access the homepage is this:
http://server/context-path/home
instead
Jeremy Levy wrote:
I found this while working on 1.2.6 and checked it out in 1.3 and it's the
same. It appears as though Include does not pay attention to the contextpath
if it is explicitly set.
Line 162 (In 1.2.6) or line 233 (in 1.3b4) of Include is the following line
which as I understands
This should work just fine.
What's the URL in your browser's address bar?
Wicket will automatically prepend things to make paths relative to the
context root.
Regards,
Al
Johan Compagner wrote:
filter should be mapped on /* thats why we have the filter.
I don't know why the ../ is
Nili Adoram wrote:
Suppose I want to forward the HTTP request to some external url (NOT a
wicket page, e.g. a JSP page).
I want to end the request cycle at this point ( not include this URL inside my
page).
How can I simulate request.getRequestDispatcher(url).forward() within a
wicket page?
mchack wrote:
Could someone provide a pointer/link as to the best mechanism to map DB
constraint violations from Hibernate (or ORM layer) back to the user
interface layer. I'm sure this has been solved but wasn't successful in
searching for an answer.
I'm not sure if this is the best way to do
You can override onComponentTag for the component itself, if that's an
option. Call super.onComponentTag(...) then tag.put(class, foo) or
whatever it is.
Regards,
Al
Sam Hough wrote:
In my ignorance it seems tough to make that work the second time if the list
has changed. It is also less
Per Newgro wrote:
I don't know exactly from the top of my head, but I think you'd do
this with Javascript.
Ahh ok. I found an example here:
http://www.boutell.com/newfaq/creating/windowcenter.html
Where do i have store the java scripts i want to use oftenly? I expected that
Page.class would
Johan Compagner wrote:
thats just a debug log:
*
catch* (Exception e)
{
*log*.debug(Cannot find getter + clz + . + expression, e);
}
maybe i should just delete that log statement to kill the confusion.
Just log it without the stack trace.
Regards,
Al
1 - 100 of 133 matches
Mail list logo