use .setEnabled(false)
cheers
gabriel
Jason Novotny wrote:
Hi,
I have a case where if some condition is met I don't want a link to be
clickable... but I want it to display the link text (so overriding
isVisible() is not an option). Any ideas on the most elegant approach?
Thanks, Jason
Hello,
I have a form that performs a search and shows a page with results. The
result page also has the same form to do a repeat search. I noticed that
the SearchPage is instantiated twice when I do a search from the form on
the result page. Is there a way to make sure that does not happen?
Run it in debug mode, put a breakpoint in your constructor and see what's
instantiating each. A lot of times it is your own code (a bad link, etc).
--
Jeremy Thomerson
http://www.wickettraining.com
On Tue, Mar 31, 2009 at 1:30 AM, Vinayak Borkar vbo...@yahoo.com wrote:
Hello,
I have a
Jeremy,
I did that. The first time it is
at
org.apache.wicket.request.target.component.BookmarkableListenerInterfaceRequestTarget.processEvents(BookmarkableListenerInterfaceRequestTarget.java:127)
and the second time it is
at
Your page is stateless, which is a holy grail for most to attend. Be happy :)
Since it is stateless, Wicket has to construct the page with each
request, until it is no longer stateless.
If you have a form, override its getstatelesshint method and return false.
Martijn
On Tue, Mar 31, 2009 at
Martijn,
Does setting the statelessHint to false indicate that the form is stateful?
In that case, would Wicket try to serialize the form?
Thanks,
Vinayak
Martijn Dashorst wrote:
Your page is stateless, which is a holy grail for most to attend. Be happy :)
Since it is stateless, Wicket has
Lucky I picked that one :)
But seriously it was really simple implementing the cache stuff (with
spring), it's only a few annotations..
2009/3/30 Scott Swank scott.sw...@gmail.com:
This author compared several caching libraries and recommends ehcache.
I am using Wicket-1.3.0 Version.
Following are the code Snippet
//Code Snippet for RadioChoice//
RadioGroup sexField = new RadioGroup(sex, new Model());
sexField.add(new Radio(male, new Model(Male)));
sexField.add(new Radio(female, new Model(Female)));
Martijn,
Ok. I set the getStatelessHint() to return false.
Now I get java.lang.IllegalStateException: No SessionHandler or
SessionManager
What is the reason that wicket needs to instantiate the page twice? I
can understand the second instantiation, but my guess is that the first
Hi,
When we develop new custom components or customize existing components in
Wicket, how do we change the rendering for the components for different
devices like the way we configure a render kit for components in JSF?
Thanks,
Subbu.
As suggested, you need .setEnabled(false) to disable your link.
This will add em tags around the link though, so if you don't want
this, or want a different tag, do this in your Application.class
/* a component that is disabled by Wicket will normally have em
surrounding it. This makes it
Serkan Camurcuoglu-3 wrote:
search for the words wicket markup inheritance on google..
Hi,
isn't there another way besides using inheritance? If e.g. I extend my page
two times: add a menu bar to it (pageMenu) and add a clock to it
(pageClock). Now I need a page which has both, clock and
Just use regular OO design. Maybe you could add them both in your parent
class, based on a boolean condition that is an abstract method. Then your
child classes only have to override includePageClock() method, for example.
--
Jeremy Thomerson
http://www.wickettraining.com
On Tue, Mar 31,
At the moment, the requirements are not certained. That's why it should be
possible to extend the page without modifying it. I'd like to use something
like composition.
--
View this message in context:
http://www.nabble.com/Extend-layout-of-a-page-tp22784265p22800066.html
Sent from the Wicket -
-- Forwarded message --
From: Ajayi Yinka iamstyaj...@googlemail.com
Date: Tue, Mar 31, 2009 at 9:01 AM
Subject: Re: NewBie question :Implementation of Collapsible Link
To: users@wicket.apache.org
Thanks so much.
I want a tree view (What I really want to implement is a
Hi
For a component (panel page etc) you can specify a variant, you can
search the list for further information
2009/3/31 Subramanian Murali subramanian.mur...@gmail.com:
Hi,.
When we develop new custom components or customize existing components in
Wicket, how do we change the rendering for
Thank you, Igor. Do you mean
http://www.wicket-library.com/wicket-examples/ajax/tree/simple.2 ? It doesn't
work without JavaScript. Is there another easy to use tree component?
Regards,
Christian
-
To unsubscribe, e-mail:
As long as it is markup. Having a telnet component is not in scope of
wicket (but was in 2005/2006/2007 very much for JSF).
Martijn
On Tue, Mar 31, 2009 at 11:35 AM, nino martinez wael
nino.martinez.w...@gmail.com wrote:
Hi
For a component (panel page etc) you can specify a variant, you can
Hehe.. Wasnt exactly thinking in those lines..
2009/3/31 Martijn Dashorst martijn.dasho...@gmail.com:
As long as it is markup. Having a telnet component is not in scope of
wicket (but was in 2005/2006/2007 very much for JSF).
Martijn
On Tue, Mar 31, 2009 at 11:35 AM, nino martinez wael
Hi,
does wicket always create a session when a new user enters a page? Or is it
possible to turn the session creation off?
tia
___
DSL zum Nulltarif + 20 Euro Extraprämie bei Online-Bestellung über die
DSL Freundschaftswerbung!
Hi,
Should a Form submit when a subform has error's?
I have a main-form where I add a panel that contains another form.
This sub-form contains a formvalidator that gives the error.
However the main-form is submitted, but the feedbackpanel does show the
error message set in the sub-form's
Yes, but the session is only permanent when you call bind(), or a
stateful page is requested and the state needs to be stored for links,
forms, ajax etc.
As long as you use bookmarkable pages (and links to them), and
stateless forms, and no ajax, your site will be stateless, and wicket
will not
That means if the user visites 3 bookmarkable pages, then three sessions will
be created?
Martijn Dashorst wrote:
Yes, but the session is only permanent when you call bind(), or a
stateful page is requested and the state needs to be stored for links,
forms, ajax etc.
As long as you use
you could do something like composition by doing inheritance and repeaters...
2009/3/31 ptrash ptr...@web.de:
At the moment, the requirements are not certained. That's why it should be
possible to extend the page without modifying it. I'd like to use something
like composition.
--
View this
I was confused by the example with the tree and nested panels and thought that
the code for the nested panels would be necessary for the tree. It would be
better to focus the examples on exactly one problem.
org.apache.wicket..extensions.markup.html.tree.Tree is what I was looking for.
On Tue, Mar 31, 2009 at 1:52 PM, ptrash ptr...@web.de wrote:
That means if the user visites 3 bookmarkable pages, then three sessions will
be created?
Yes, but TEMPORARY sessions that are not bound to a HTTP session.
These will be available to the garbage collector after each request.
This has
hi all,
i can't seem to find the way to get an url for a given RequestTarget.
i'm using wicket 1.4-rc1.
basically i have an SWFComponent : http://paste.pocoo.org/show/110435/
my problem is in line 35, when i call urlFor(target) to the renderHead
method. the target is of type
Is there any way to display User Defined values in AutoCompleteTextField (ajax
behavior) by using array of values.
Please refer me some examples and links to demonstrate such type of behaviour.
Thanks,
FaRHaN
Hi All, I would like to know how can I put a link into a page so when the
user clicks I fetch some data from database , export it to Excel so the user
directly downloads an xls file with the content.
Any help is appreciated,
Thanks in advance,
Wadi
Not related to Wicket, but this might be a start: http://api.openoffice.org/
Regards,
Linda
Wadi Jalil Maluf wrote:
Hi All, I would like to know how can I put a link into a page so when the
user clicks I fetch some data from database , export it to Excel so the user
directly downloads an xls
Hey,
Our new Wicket application is to be build with Spring and Hibernate, so I
included these:
dependency
groupIdorg.springframework/groupId
artifactIdspring/artifactId
version2.5.6/version
/dependency
dependency
Should be good.
http://code.google.com/p/wicket-flex-blazeds/source/browse/trunk/myproject-core/pom.xml
Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener
On Tue, Mar 31, 2009 at 10:45 AM, HHB hubaghd...@yahoo.ca wrote:
Hey,
Our new Wicket application is to be
Hi,
When I start my Apache Wicket bundle using Apache Service Mix (based on
Felix and Spring DM), I receive the following error :
Quote:
16:35:58,415 | DEBUG | localShell | jetty |
.service.internal.util.JCLLogger 85 | started
org.ops4j.pax.web.service.internal.model.ServletMo del-66
I could be wrong - but maybe the question is about how best to structure
this in Wicket ..
Should it be a bookmarkable link? Should it be an action link? If I do the
work in my Action style link, how does one directly return content from an
action link as opposed to setting page response, etc.
Hi,
I could be wrong - but maybe the question is about how best to structure
this in Wicket ..
it's just that easy (this is Scala, not Java):
add( new Link( ImageLink.ID_LINK ) {
def onClick = {
val resourceStream = new ByteArrayResourceStream(
xlsExporter.createExcel,
Hi Wadi,
The easy way is to have the conversion to xls occur within the link
action (extracting from db and storing to a temporary file in XLS format).
then you can use a DownloadLink with the model set to the File
(generatedXLSFileName).
If it is not tied to some other process you will
Hi,
are the pages in Page Maps ordered (e.g. chronological)?
tia
Pt! Schon vom neuen WEB.DE MultiMessenger gehört?
Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123
I could be wrong - but maybe the question is about how best to structure
this in Wicket ..
it's just that easy (this is Scala, not Java):
add( new Link( ImageLink.ID_LINK ) {
def onClick = {
val resourceStream = new ByteArrayResourceStream(
xlsExporter.createExcel,
hola wadi
to generate the excel file, have a look at the poi apache project:
http://poi.apache.org/spreadsheet/index.html
then you will need to create a resource for that file / byte array.
you might find some inspiration from this pastie:
http://paste.pocoo.org/show/110449/
finally, use
new
On Tue, Mar 31, 2009 at 10:45 AM, HHB hubaghd...@yahoo.ca wrote:
Hey,
Our new Wicket application is to be build with Spring and Hibernate, so I
included these:
dependency
groupIdorg.springframework/groupId
artifactIdspring/artifactId
Are you looking for a menu system?
On Tue, Mar 31, 2009 at 4:04 AM, Ajayi Yinka iamstyaj...@googlemail.com wrote:
-- Forwarded message --
From: Ajayi Yinka iamstyaj...@googlemail.com
Date: Tue, Mar 31, 2009 at 9:01 AM
Subject: Re: NewBie question :Implementation of Collapsible
These responses were great! I learned something from almost each variant of
the answer.
For what its worth, depending on how the app will be used - one might need
to be careful about writing files to the filesystem ... but again, thanks
for all the great examples listed here.
-Luther
On Tue,
not it shouldnt. there should already be unit tests that check for
this, can you please check those and provide a patch if possible.
-igor
On Tue, Mar 31, 2009 at 4:34 AM, Thijs vonk.th...@gmail.com wrote:
Hi,
Should a Form submit when a subform has error's?
I have a main-form where I add a
I think what I want to do is on this page
http://www.wicket-library.com/wicket-examples/ajax/tree/table/editable.1
Thanks for your indulgence.
On Tue, Mar 31, 2009 at 5:44 PM, James Carman
jcar...@carmanconsulting.comwrote:
Are you looking for a menu system?
On Tue, Mar 31, 2009 at 4:04 AM,
3 wicket session objects will be created. when a stateful page is
visited this wicket session object is stored in an http session.
-igor
On Tue, Mar 31, 2009 at 4:52 AM, ptrash ptr...@web.de wrote:
That means if the user visites 3 bookmarkable pages, then three sessions will
be created?
wicket-library is old ver of wicket. not sure why that site is up. see here
http://wicketstuff.org/wicket13/nested/?wicket:bookmarkablePage=:org.apache.wicket.examples.ajax.builtin.tree.SimpleTreePage
the tree has a setter that changes what kinds of links are generated,
you can call that with
Hi Ashish,
Do you use AJAX? Have you added the components to the
AjaxRequestTarget with target.addComponent() ?
If you do use AJAX, you have to override both onError and onSubmit on
the AjaxButton you use for submit. In both these methods you have to
add the relevant components to the
Another way I'm using is like this (it works best if your clients have excel
installed of course)
Markup: http://pastebin.com/m41ee5cbe
Java: http://pastebin.com/m488291d4
With the most important bits being:
@Override
protected void configureResponse() {
Have you seen this page [1], it also features an SWFObject.
http://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html
regards,
Maarten
On Tue, Mar 31, 2009 at 3:36 PM, francisco treacy
francisco.tre...@gmail.com wrote:
hi all,
i can't seem to find the way to get an url for a given
Check out my responses in this discussion...
http://www.nabble.com/Opening-DynamicWebResource-from-Button-AjaxButton--td15459841.html#a21462901
I had some trouble getting generated files to download right at first. They
either caused Wicket to become non-responsive or I couldn't provide a file
Hi ! I have a very quick question.
Is there a way to test a BookmarkablePageLink ? Something similar to the
assertPageLink method?
Thanks,
Alan
That was perfect.
Thanks,
-Luther
On Sun, Mar 29, 2009 at 1:58 AM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
anyMessage();
On Sun, Mar 29, 2009 at 1:56 PM, Luther Baker lutherba...@gmail.com
wrote:
I am using the built-in functionality of the FeedbackPanel and I'd like
to
Hi! I'm searching for best solution for creating security in wicket
application. Now for buissness logic I use EJB3.
Some simple scenario:
1. Client go to page Login and enter login/password
2. Than client go to private area and create comments(or page and etc.)
3. Client log out.
Are you a fan of Wicket but you can't use it because your company or client
is tied with PHP? Have you ever wished that Wicket was available in the PHP
land?
Picket to the rescue!
Picket is a project that aims to bring Wicket's awesome features and
philosophy to the PHP community. The project
54 matches
Mail list logo