how to redirect to external url say www.google.com in case
runtimeexception
occurs
You need to drill down to the HttpServletResponse and call sendRedirect().
- Tor Iver
-
To unsubscribe, e-mail:
Well the model doesn't update. (Not that I'd expect it to.)
Here's some pieces of my code I deem relevant to the problem.
if (key == null || key.getIsbn() == null) {
book = new Book();
} else {
book = bookRetriever.getBook(key.getIsbn(), key.getCollectionId());
}
setDefaultModel(new
Hi,
I want to add a random number to my requested URL, so that each request to my
page go to server and not load from the cache. How can i add a random number to
each requested URL ?
Some examples acheiving this behaviour will be appreciated...
Thanks...
FaRHaN wrote:
Hi,
I want to add a random number to my requested URL, so that each request to my
page go to server and not load from the cache. How can i add a random number to
each requested URL ?
Some examples acheiving this behaviour will be appreciated...
Why don't you just adjust your
Are you sure? Other components, such as ModalWindow, comes with styling
included. You just add the component and it adds the appropriate CSS itself.
I can see in the markup produced for the DefaultDataTable that the table
rows have the classes odd and even, am I supposed to define these
classes
Take a look at NonCachingImage.
Witold
Am Thu, 13 Aug 2009 00:44:07 -0700 (PDT)
schrieb FaRHaN farhan.ba...@ymail.com:
Hi,
I want to add a random number to my requested URL, so that each
request to my page go to server and not load from the cache. How can
i add a random number to each
I have used all of the Cache Headers but they didn't work for me. Only
'Refresh' Meta tag works, but all other Tags (Cache-Control, Expires, etc.) not
working in IE or FF. I don't know why...
That's why i want to access page from Server rather than stored from the
browser.
???
How can i use this for every request ? As i want to generate a unique URL for
every page (not for images), any examples ???
From: Witold Czaplewski witold-mail...@cts-media.eu
To: users@wicket.apache.org
Sent: Thursday, August 13, 2009 2:58:18 PM
Subject: Re:
This class modifies the src attribute of the img tag:
...
protected void onComponentTag(ComponentTag tag)
{
super.onComponentTag(tag);
String url = tag.getAttributes().getString(src);
url = url + ((url.indexOf(?) = 0) ? : ?);
Yeah I think too that 1.4.1.X is the best.
I'd be happy to volunteer but am swamped with work. Thanks for the
good work so far..
regards Nino
2009/8/13 Jeremy Thomerson jer...@wickettraining.com:
The idea behind the matching release numbers was so that Wicket newbs
could more easily adopt the
Hi all!,
I have some questions about parameter passing in portal environment. I
saw that WebPage class can have access to the Application class
but not the portlet class. This makes a little tricky to handle requests
because:
We can set session paramaters. And can call functions inside
You request puzzles me. By default Wicket adds headers to every page
that will make any decent browser written since 1996 not cache the page.
What is your intention?
Regards,
Erik.
FaRHaN wrote:
How can i use this for every request ? As i want to generate a unique URL for
every page
Hi Russel
Thanks for the documentation! But im not sure what it describes. Does
your document describe howto make a wicket application as a facebook
application or just to use facebook as authentication provider?
By facebook application I mean the little apps that are passed around
in facebook?
Hi
I need to use a StringResourceModel to compile a string with multiple
parameter substitutions.
I have a lot of converters active which should take care of all these
values and which do work when using for example a PropertyModel elsewhere.
Unfortunately it seems the converters are
Hello all,
I have a dropdown which is generated from Java code.
Currently my code reads a property file, sets the values in an object
and places all the objects in an arraylist.
Each object has a toString method, so the value is correctly shown in
the dropdown.
Now I want to show a value
Hi Matt,
Converters are only used during form submission. So to answer your
question: this seems like a feature.
Regards,
Erik.
Matthias Keller wrote:
Hi
I need to use a StringResourceModel to compile a string with multiple
parameter substitutions.
I have a lot of converters active
Hello,
I am working on a library based on wicket framework and I couldnt find
some suitable solution when creating component hierarchies.
For example I have a base class AbstractLink for links (DownloadLink,
LabelLink, IconLink, SubmitLink, ...):
public abstract class AbstractLink extends Panel
The problem is the CompoundPropertyModel continues to point to the
original Book object. You would have to get rid of the
CompoundPropertyModel and give each FormComponent its own model that is
tolerant to changes to the book member. Something like this would work:
add(new TextField(title, new
But it will be the portlet class the responsible for handling
processing. So the only way to pass information from the onClick
function to the
portlet application for rendering (for example) is using the portlet
session.
But why would you want to go via the Application? The WicketPortlet is
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
To those who have written me volunteering to help: thank you. I will
try to do the release this weekend. Here's what you can do to help
before then.
1 - check out wicketstuff-core trunk
2 - change the wicket dependencies from snapshot to 1.4.0 (note: only
do this locally - don't commit that
It describes how to authenticate with Facebook using Facebook Connect. Once you
have an authenticated user, you can get information about that user and display
Facebook information in your application. Our app, pigspigot.com is a user
generated greeting card site, so we want get your friends
Awesome! Thanks for the help.
Regards,
Linda
John Krasnay wrote:
The problem is the CompoundPropertyModel continues to point to the
original Book object. You would have to get rid of the
CompoundPropertyModel and give each FormComponent its own model that is
tolerant to changes to the book
Thank you for your quick response.
It's working now! Thank you!
On Thu, Aug 13, 2009 at 3:04 PM, Mathias
Nilssonwicket.program...@gmail.com wrote:
You can have all the objects have an getResourceKey method.
Override the displayvalue of IChoiceRenderer and show the value.
Example
I believe this is a variable reference issue.
// instead of this
isbnField.add(new AjaxFormComponentUpdatingBehavior(onchange) {...@override
protected void onUpdate(final AjaxRequestTarget target) {try {book =
bookRetriever.getBook(isbnField.getInput());
// try this@overrideprotected
Apparently my statements didn't provide the correct context. s/Wicket
Stuff/Wicket Stuff Core/g
I'm not talking about dropping code into sf.net's svn repository. I'm
talking about cutting releases. This is and has been a problem for
Wicket Stuff projects. Like it or not, Wicket Stuff as a whole
There was once a nice explanation on how to create a module in wicket that
uses a JS library (like JQuery).
I checked out wicketstuf core to look into it.
I want to try to create my own module of wicket and JS library (and of
course to contribute it).
Does anyone remember any post / blog /
I have a page called Review Page with a form with a submit button
Return.When user clicks on return I want user to enter comments for
return ,for which I want to use a modalwindow when user enters comments and
submit the form in modal window , I want to close the modal window and
redirect the
Eyal,
There was a post just today to this url:
http://www.dzone.com/links/wicket_tutorial_yui_autocomplete_using_json_and_a.html
Russ
From: egola...@gmail.com
Date: Thu, 13 Aug 2009 17:22:48 +0300
Subject: JS libraries with Wicket
To: users@wicket.apache.org
There was once a nice
Yea use the JSLibraies that jeremy created its in the wicktstuff core
project.. You can see openlayers or the input events for reference...
Hmm artwork's probably better..
2009/8/13 Eyal Golan egola...@gmail.com:
There was once a nice explanation on how to create a module in wicket that
uses a
what happens if i dont have the
filter
filter-namewicket.Filter/filter-name
init-param
param-nameapplicationClassName/param-name
param-valueorg.glassfish.samples.WicketApplication/param-value
/init-param
/filter
piece in my
thanks guys.
i looked into the jquery stuff, but i will also look to your suggestions.
Eyal Golan
egola...@gmail.com
Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74
P Save a tree. Please don't print this e-mail unless it's really necessary
On Thu, Aug
Hi all,
I have two panels, panel A B where panel B extends panel A. When using
panel B but without giving it it's own markup file it defaults to using
A's markup.
Now I only want to define a different fragment for panel B but still
reuse all of A's markup, is this possible? The
Regarding step 2: only change the dependency to Wicket in the
wicketstuff-core pom.xml, not the versions of wicketstuff poms themselfs
(as I just did).
Regards,
Erik.
Jeremy Thomerson wrote:
To those who have written me volunteering to help: thank you. I will
try to do the release this
create an abstract panel that contains A's markup with the exception
of the fragment. where the fragment goes add a wicket:child tag.
then have A and B extend this panel and have their markup look like:
wicket:extend
custom fragment
/wicket:extend
-igor
On Thu, Aug 13, 2009 at 8:11 AM, Thies
Hello,
This is also a very interesting question that I wanna ask.
I've googled and found a single Nabble Mail site about it:
http://www.nabble.com/Get-all-sessions-users-for-a-web-application-td213
67229.html
We can only get some session data from the RequestLogger, but not the
session itself.
Hi Jeremy,
I am afraid I do not understand what to do. I set out to test the
yui-parent module:
I can confirm that /yui-parent/ builds fine (with +mvn install+). Yeah!
However, +mvn release:prepare -DdryRun=true+ executed in the yui-parent
sub-directory just downloads a yui snapshot instead
The release:prepare will also check if there are no SNAPSHOT
dependencies IIRC, or turn them into timestamped dependencies. If mvn
install works, then yui-parent is good to go I think.
Martijn
On Thu, Aug 13, 2009 at 5:33 PM, Erik van Oostene.vanoos...@grons.nl wrote:
Hi Jeremy,
I am afraid I
mvn clean package release:prepare -DdryRun=true
-igor
On Thu, Aug 13, 2009 at 8:33 AM, Erik van Oostene.vanoos...@grons.nl wrote:
Hi Jeremy,
I am afraid I do not understand what to do. I set out to test the yui-parent
module:
I can confirm that /yui-parent/ builds fine (with +mvn
Hi,
We're working on a wicket/spring/hibernate webapp (research
repository) and today i was working on an 'Add Publication Panel'. i
added some
validation today but whenever i click on the link that shows the panel
in the main content area it takes like 10/15 seconds to show it.
Tomcat
doesn't
I followed your instructions. When I ran the mvn release:prepare, I was
asked several dozen times about versions, to which I responded with whatever
Maven's default choice was. Then there was a lot more output, and finally it
failed with an OutOfMemoryError: PermGen space. I know that's not very
use a profiler.
-igor
On Thu, Aug 13, 2009 at 9:10 AM, Mostafa Mohamedes.most...@gmail.com wrote:
Hi,
We're working on a wicket/spring/hibernate webapp (research
repository) and today i was working on an 'Add Publication Panel'. i
added some
validation today but whenever i click on the
Hi,
Revision: 4896
After manually installing jazzyplugin from [1] into my local maven repo, I
had the following results:
mvn clean install = BUILD SUCCESSFUL
mvn clean package release:prepare -DdryRun=true
[ERROR] BUILD FAILURE
[INFO]
I have a ModelWindow with a Panel containing a Form as content. When I submit
the Form with an AjaxButton the first time everything is OK. Now when I click
the AjaxSubmit a second time, FireFox wants to close the ModalWindow Reloading
this page will cause the modal window to disappear.
I found
Igor,
release:prepare automatically also does clean and package.
There is actually one more thing I could have tried: execute the
release:prepare goals in de yui sub-sub modules.
Regards,
Erik.
Igor Vaynberg wrote:
mvn clean package release:prepare -DdryRun=true
-igor
On Thu, Aug 13,
Hi,
svn co
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/sandbox/maarten/wicketstuff-core-1.4.0.0/
mvn clean package release:prepare -DdryRun=true -DreleaseVersion=1.4.0.0
-DdevelopmentVersion=1.4.0.1-SNAPSHOT
= BUILD SUCCESSFUL
Let me know if I can test something else.
Maarten
Yes, that did it. Running the dryRun in
wicket-stuff/wicketstuff-core/yui-parent/yui succeeds. I repeated this
for yui-examples.
yui-parent, yui and yui-examples are ready to go!
Regards,
Erik.
Erik van Oosten wrote:
There is actually one more thing I could have tried: execute the
Hi,
Unfortunately tinymce does /not/ compile. It fails with a missing
dependency to jazzyplugin:jazzyplugin:jar:0.2.1.
Regards,
Erik.
Jeremy Thomerson wrote:
To those who have written me volunteering to help: thank you. I will
try to do the release this weekend. Here's what you can
Maarten, you just beated me to it.
Is the jazzyplugin still needed after your changes?
Regards,
Erik.
Erik van Oosten wrote:
Hi,
Unfortunately tinymce does /not/ compile. It fails with a missing
dependency to jazzyplugin:jazzyplugin:jar:0.2.1.
Regards,
Erik.
--
Erik van Oosten
After a little bit more investigation:
1. Now I use AjaxSubmitLink instead of AjaxButton.
-- same problem
2. I noticed that I have
@Override
protected void onError(final AjaxRequestTarget target, final Form?
form) {
On Thu, Aug 13, 2009 at 8:46 PM, Erik van Oosten e.vanoos...@grons.nlwrote:
Maarten, you just beated me to it.
Is the jazzyplugin still needed after your changes?
Hi Erik,
I did not try to remove the dependency, so it's still needed.
I just downloaded the jar and installed in my local maven
When I add each individual child oft he Form to the AjaxRequestTarget's
Components by
Iterator? extends Component it = form.iterator();
while (it.hasNext())
Component c = it.next();
if (c.getOutputMarkupId() c.isVisible())
I think it should be fine (but checking internally).
Does it not depend upon how WicketFilter class handles it ?
How does it behave if this fragment is not there if it's not specified in
web.xml per the current usage ?
-Arun
igor.vaynberg wrote:
what happens if i dont have the
filter
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
Could you maybe explain why you need it? Do you want to pass data inside
your portlet or to another portlet?
Rob
On 8/13/09 1:43 PM, Gonzalo Aguilar Delgado wrote:
Hi all!,
I have some questions about parameter passing in portal environment. I
saw that WebPage class can have access to the
Hi,
We're working on a wicket/spring/hibernate webapp (research
repository) and today i was working on an 'Add Publication Panel'. i
added some
validation today but whenever i click on the link that shows the panel
in the main content area it takes like 10/15 seconds to show it.
Tomcat
doesn't
I suggest you use a profiler. Profiler4j or jProfiler. and find out the reason!
**
Martin
2009/8/13 Mostafa Mohamed es.most...@gmail.com:
Hi,
We're working on a wicket/spring/hibernate webapp (research
repository) and today i was working on an 'Add Publication Panel'. i
added some
I'm going crazy over what should be a simple procedure. I want to add an
element to a ListView's model, but when I try, it throws an
IndexOutOfBoundsException.
I have a form [1] which contains a ListView and an AjaxSubmitLink which adds
items to the ListView. The only funny thing you might notice
thats the problem, it will error out because applicationClassName
param is required.
i just dont think this new fragment feature matches very well with how
wicket is used.
-igor
On Thu, Aug 13, 2009 at 12:08 PM, arunguptaarun.gu...@gmail.com wrote:
I think it should be fine (but checking
i think you should post it again. if you are going to post it twice it
is probably worth posting it thrice.
-igor
On Thu, Aug 13, 2009 at 1:05 PM, Mostafa Mohamedes.most...@gmail.com wrote:
Hi,
We're working on a wicket/spring/hibernate webapp (research
repository) and today i was working on
Hi all,
I have some problem with ListViews and AjaxFallbackButton:
The main idea is, that I have a Listview and a NewEntry button outside
the LV. If I press the new button I'm gonna have a new ddc and Textfield
and a Remove button in the LV. So far it works as intended, until I'm
trying to
In case anyone else ends up with a similar error, here's the solution I
ended up using. (Yes, I'm sure it's an awful hack, but right now it works
for me.)
First, I swapped the Set/List implementation I was using in Employer Info
[1], since I realized that the items affected in my previously
I'm sorry igor, i didn't mean to post it twice i thought this one wasn't
posted as it took 5 hours to appear on the forum so i sent another one. I'm
going to delete the other post. as to using a profiler, i'm not really
familiar with such a tool but i'll see what i can do.
igor.vaynberg wrote:
I think the responsibilities are split.
Wicket jar will provide the ServletFilter in web-fragment.xml and app will
provide the filter parameter etc in web.xml.
-Arun
igor.vaynberg wrote:
thats the problem, it will error out because applicationClassName
param is required.
i just dont
Hi Rob,
I want to do it because my application is composed of several portlets.
If you click on one customer, for ex. you will want
other portlets to show information relative to the customer you have
just clicked.
This is why you will need shared-parameters. That is inside portlet 2.0
spec.
Wicket jar will provide the ServletFilter in web-fragment.xml and app will
provide the filter parameter etc in web.xml.
Small step for a man, one giant leap for someone else:).
-
To unsubscribe, e-mail:
And what if I'm wanna use WicketServlet instead of WicketFilter? I see
that this web-fragment.xml could be very useful for other frameworks,
but maybe it's not the best solution for Wicket. (It's just my opinion)
Anyway, wicket needs ~20-25 line in web.xml, is it really that
neccessary to pull
El jue, 13-08-2009 a las 14:46 +0200, Wilhelmsen Tor Iver escribió:
But it will be the portlet class the responsible for handling
processing. So the only way to pass information from the onClick
function to the
portlet application for rendering (for example) is using the portlet
Hi all!
I managed to do it with wicket 1.4. This is how:
Define it in portlet.xml
portlet-app
...
public-render-parameter
identifiercrmportal:userId/identifier
qname
xmlns:x=http://www.level2crm.com/params;x:userId/qname
/public-render-parameter
/portlet-app
Every portlet that
Hi all,
I have a panel which has a AjaxLink. And, I have another panel, which is
empty it just has a text.
Both these panels are in a page. One on the left hand side and other on the
right hand side. The panel in the left hand side is the one that has the
AjaxLink.
OnClick of the AjaxLink, I
you also have to add the panel to the page, or in your case most
likely replace the old panel with the new one. after you do that then
add it to the ajax target.
adding things to the target does not add them to the page, only marks
them for update.
-igor
On Thu, Aug 13, 2009 at 6:49 PM,
Will Jaynes-4 wrote:
I have come up with a quickstart project that shows my problem with
creating
an EditableDropDownPropertyColumn for the inmethod datagrid. I'm sure I'm
not understanding something fundamental. The classes in the
edu.umich.med.irs.column package are my attempts.
If
Because of this:
listview.setReuseItems(true);
You should do a
removeAll()
in your onSubmit() method when you change the model (the list in this case).
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For
I figured out what the problem was and thought i'd share how it was solved in
case someone else has the same problem, we had this in the html page
wicket:head
wicket:link
link rel=stylesheet type=text/css href=link to css file /
/wicket:link
/wicket:head
which i guess would
It'd be easy to create this as an addon project. Wicketstuff?
--
Jeremy Thomerson
http://www.wickettraining.com
On Thu, Aug 13, 2009 at 10:23 AM, Jing Ge (Besitec IT
DEHAM)j...@besitec.com wrote:
Hello,
This is also a very interesting question that I wanna ask.
I've googled and found a
It's up to you but I think there is a more beautiful/easier way. Just
configure the public render params the same in the portlet.xml. Use this
to set params in e.g. an onClick:
ActionResponse actionResponse = (ActionResponse)
76 matches
Mail list logo