This work cool
On 12/15/06, Matej Knopp [EMAIL PROTECTED] wrote:
I'd rather override isEnabled and onDisabled, e.g.
new TextField() {
boolean isEnabled() {
return isTextFieldReadOnly;
}
void onDisabled(final ComponentTag tag) {
The choice to use which from code? Like
public Class Logon extends WebPage {
public Logon() {
if(true.equals(getRequest().getParameter(isliteversion)))
// choose template 1
else
// choose template 2
}
}
Thanks Johan,
I was a little big unclear. By default the HTML pages returned from wicket has
no-cache, so the back button usually posts request to server. When the previous
page url is RedirectPageRequestTarget, the page instance is found in page map
and rendered again. Why is the
Hi Carfield,
Try something like:
public Logon() {
setVariant(Boolean.valueOf(getRequest().getParameter(isliteversion))
? lite : normal);
}
Regards,
Erik.
Carfield Yim schreef:
The choice to use which from code? Like
public Class Logon extends WebPage {
public Logon() {
Then it will refer to lite.html and normal.html??
On 12/15/06, Erik van Oosten [EMAIL PROTECTED] wrote:
Hi Carfield,
Try something like:
public Logon() {
setVariant(Boolean.valueOf(getRequest().getParameter(isliteversion))
? lite : normal);
}
Regards,
Erik.
Carfield Yim
No, its Logon_lite.html and Logon_normal.html.
You can also still use i18n and style versions. I forgot the exact order
but then you'll get files like Logon_en_lite_green.html for English,
variant lite and style green.
Regards,
Erik.
Carfield Yim schreef:
Then it will refer to lite.html
first of all no-cache will not result in a get request to the server again.
That will only happen if you add no-store to the configureResponse param
of the WebPage.
i thought that onRedirect() didn't even get called , dummy method (it
doesn't do anything). But it seems to be called i see.
We
Thanks Johan for your time and support,
I tried to override onBeforeRequest(), just to test - the first call to
onBeforeRender suceeds but any furter call will throw and should redirect to
some page, but the redirect doesn't work. Wicket doesn't do anything special on
AbortException. The
Hi Jan,
Try to throw an RestartResponseAtInterceptPageException.
Erik.
jan_bar schreef:
Thanks Johan for your time and support,
I tried to override onBeforeRequest(), just to test - the first call
to onBeforeRender suceeds but any furter call will throw and should
redirect to some
Thanks Erik and Johan, now I have what I searched for.
Jan
Erik van Oosten [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi Jan,
Try to throw an RestartResponseAtInterceptPageException.
Erik.
jan_bar schreef:
Thanks Johan for your time and support,
I tried to
Dear Igor, Eelco and others,
Where can We sent our bribe presents to? Any real address for some small
chistmas presents for you?
Stefan Lindner
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's
I posted a message to the wicket-stuff-devel mailing list regarding
compiling the plugin. I'm mentioning it here in case nobody is looking
there yet. :) Any help would be appreciated. Thanks.
On 12/14/06, Nick Heudecker [EMAIL PROTECTED] wrote:
Great. Thanks for adding it.
On 12/14/06,
imho the best wicket gift anyone can give is to try and help out more with
the mailing list. that way we have more time to code :)
-igor
On 12/15/06, Stefan Lindner [EMAIL PROTECTED] wrote:
Dear Igor, Eelco and others,
Where can We sent our bribe presents to? Any real address for some small
On 12/14/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
fwiw a common pattern i use is to do the conversion in an model decorator
something like
class StringToPhoneModel implements IModel {
private final IModel stringModel;
public StringToPhoneModel(IModel stringModel) {
Igor Vaynberg wrote:
disadvantages being that fail over is harder unless the disk is shared
between the cluster nodes. the disk can always be replaced by a database
as well. the whole idea is relatively new and we have yet to explore its
full potential.
Yes... that is kind of gutsy. I don't
You want the session to be as lightweight as possible in order for it to be
easily replicated in a fault tolerant system.
With service/dao layer code I like to let the ORM (EJB/Hibernate) cache
whatever I need for performance. By keeping a cache of these objects in the
application layer and a
Have you tried using LoadableDetachable models for that? Another way
could be to use Terracotta for the clustering where the objects are
just replicated to servers which need them. I haven't tried it yet but
this approach seems pretty scalable and fault-tolerant to me (given
that the
Dear Sir/Madam! We are a small and relatively new Software Development and
Outsourcing Company specializing in enterprise application development,
system integration, corporate networks and other software solutions for
business and finance. The company based in Ukraine
Hey wicket-users,
I've written up a short tutorial on a new Wicket component
(SortableContainer) that integrates scriptaculous into wicket for drag/drop
reordering of ListView items.
http://jroller.com/page/wireframe?entry=wicket_sortable_container
I'd be very interested to hear any feedback
Hi All,
I am working on a tag cloud component and looking for a solution how
to append simple property models to a label and display them:
So far my current code is:
CloudLabel cl = new CloudLabel(); // Simple Object with two Strings
cl.setName(Name);
cl.setWeight(10);
I am trying to implement an IRequestCodingStrategy that creates a virtual
directory in the url path for all generated links. An example url would be:
/contextName/folder-name1/mount/path/Home
/contextName/folder-name2/mount/path/Home
I would like both urls to go to Home.class which is mounted
I have just found a more efficent way :_)
Label label = new Label(label, Name);
label.add(new AttributeModifier(style, true, new
Model(font-size: 10px)));
So my question is obsolete.
Maciej
Hi All,
I am working on a tag cloud component and looking for a
Hi,
can somebody help me to get image from shared folder using
DefaultButtonImageResource?
i have shared resources at root /sharedResources/Images/a.gif ,
Application has -
getSharedResources().add(aShared, new DefaultButtonImageResource(?));
I would like to have html like
input
Hello,
I repeatedly get the following error: t has no properties (got the info
using Firebug with Firefox)
It bombs on line 586 of wicket-ajax.js:
if (t.readyState == 4)
Looks like t which is set to this.transport is null. There are many
situations where this happens in my application. One
try removing firebug from firefox, it has caused me to have this error in
the past
-igor
On 12/15/06, Andrew Berman [EMAIL PROTECTED] wrote:
Hello,
I repeatedly get the following error: t has no properties (got the info
using Firebug with Firefox)
It bombs on line 586 of wicket-ajax.js:
Cool, I'll give it a shot Igor.
Thanks,
Andrew
On 12/15/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
try removing firebug from firefox, it has caused me to have this error in
the past
-igor
On 12/15/06, Andrew Berman [EMAIL PROTECTED] wrote:
Hello,
I repeatedly get the following error:
Abbas, a relative moderate, was to address the Palestinians on Saturday on his
plans for ending the impasse and was expected to threaten early elections.
Hamas, responsible for dozens of deadly suicide bombings in Israel, is listed
as a terror group by the U. The scientists also warned the
1. Session support. Many other web frameworks do not use sessions
out of
How about this approach of store session data? Or part of session
data? http://weblogs.java.net/blog/gmurray71/archive/2005/05/storing_secure.html
Hello Nick,
Friday, December 15, 2006, 4:58:18 PM, you wrote:
I posted a message to the wicket-stuff-devel mailing list regarding compiling the plugin. I'm mentioning it here in case nobody is looking there yet.:) Any help would be appreciated. Thanks.
Still waiting for the
I would like to put all my image and CSS to classpath so that when I
update my web application, I just need to replace the jar.
I am now thinking having logic at onBeginRequest() to check the URL
and see if the request path have resource exist in classpath. If it
exist, open outputstream of
30 matches
Mail list logo