Hi everybody,
I wonder if there is an elegant way to feed a ListMultipleChoice component
with a comma separated string (using a PropertyModel)
e.g. with the following property to be accessed by PropertyModel:
public String getMySelectedOptions() {
return optionA,optionC;
}
...something like
, pixologe [EMAIL PROTECTED] wrote:
Hi everybody,
I wonder if there is an elegant way to feed a ListMultipleChoice
component
with a comma separated string (using a PropertyModel)
e.g. with the following property to be accessed by PropertyModel:
public String getMySelectedOptions() {
return
Hi there,
is there a way to retrieve the previous page from the PageMap? Or at least
its class?
I can see that it is in there (private), but as I see it the API does not
seem to let me access it... or did I miss something?
In our current case we would need to display a specific info only if
For once, I can answer my own question.
I just realized that I can cast the PageMap to SecondLevelCachePageMap,
which lets me access lastPage.
Don't know if this is the best solution, but it should work as long as I do
not provide another PageMap myself.
If there is a more elegant solution,
Ah - I see, SLCPM is private :(
Thanks for the link, this solution works fine :)
Jeremy Thomerson-5 wrote:
Here's a post from Jon Locke about this:
http://web.mac.com/jonathan.locke/iWeb/JonathanLocke/Blog/C68818AE-E983-4D7A-B6BF-E95CD886BFF2.html
On Fri, Dec 5, 2008 at 1:40 PM, pixologe
Hi all,
How can/should modification of (textual) user input be implemented, so that
it runs before validation?
(e.g. prepend a URL with http://; if the user did not do so)
My thoughts were:
IConverter - but other threads on the list point out that it is only to be
used for type conversion, not
Thanks for your ideas...
But huh... is there really no wicket way to achieve this?
After all I would not think that it is uncommon to fix simple things in user
input before validation, e.g. trim strings, discard empty items in comma
separated lists etc.
Your solutions would work both I
' and 'to' doesn't mean you
can't use it for one direction only
Am 12.12.2008 um 13:01 schrieb pixologe:
seems to be igor's point of view, at least:
http://www.nabble.com/append-a-converter-or-coversion-function-td15921777.html#a15964449
Peter Ertl wrote:
I really wonder why converters
Hi everybody,
I might just be out of it or missing a clue - I'd just like to have a
DropDownChoice without preselection and without 'Please choose one' option.
Is this possible? How can I achieve this?
Thanks in advance + regards
--
View this message in context:
I tried overriding getDefaultChoice already, returning an empty string, this
did not work, unfortunately.
The 'Please choose one' option is not rendered, however the first 'normal'
option gets selected instead.
Also, inside AbstractSingleSelectChoice, there remains an empty string in
the options
I have found a solution for this after all, not quite elegant, but works like
charm :)
new ListMultipleChoice(select,new Model(new ArrayListT(0)), new
PropertyModel(this, choices), renderer) {
@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
just had a deeper look at AbstractSingleChoice.
looks as if it did exactly this when the ###.null string resource is empty.
I will check that out tomorrow.
Thank you guys :)
jcompagner-2 wrote:
override the getDefaultChoice() and generate a optionoption (yes
empty)
and the if selected
Hi Johan, hi Martin,
Just for the sake of completeness:
Having
select.null=
select.nullValid=
as string resources, an empty option is displayed as first item if nullValid
is true.
If it is false, there is still the 'Please choose one' option.
Anyway, I'll stick to the ListMultipleChoice
Serialization is not that bad.
Just take care not to serialize all your domain model objects (use
LoadableDetachableModel/DataView/DataProvider)
Perhaps you might want to have a look at DiskPageStore, too.
subbu_tce wrote:
Do we have any Clustering Solutions other than Terracotta that can
Just a thought which I did not think about when implementing this (thus I had
to change this stuff all over afterwards), perhaps it helps someone avoiding
the same mistake:
The latest rendered page is not neccessarily the page that lead the user to
the current page.
I.e. retrieving the last page
Hi everybody,
This is probably quite easy, but I do not seem to be able to find an elegant
solution for this, so if anyone could give me a hint, I would highly
appreciate it...
I'd like to have a comma-separated link list with variable number of items
generated by wicket.
The link list is not a
of a bunch of labels inside a listview
-igor
On Tue, Jul 8, 2008 at 9:46 AM, pixologe [EMAIL PROTECTED] wrote:
Hi everybody,
This is probably quite easy, but I do not seem to be able to find an
elegant
solution for this, so if anyone could give me a hint, I would highly
appreciate it...
I'd
I agree with hbf.
Of course, modal window is a JS component, but a fallback would really make
sense (why shouldn't there be one when there's one for AjaxLink?).
Is there any component like this around by now or planned in near future?
Basically it should be possible to have a placeholder
Hi everybody,
This may be an idiot question, but no matter how many articles and examples
I read about this, I seem not to be able to grasp how to use DropDownChoice
with PropertyModel.
I would very very highly appreciate if someone could point out to me why the
code below is not working as I
Thanks a lot, Michael, that was very helpful :) I have spent quite some time
puzzling...
unfortunately, this raises another question right away:
there are methods:
setResponsePage(java.lang.Class cls)
setResponsePage(java.lang.Class cls, PageParameters parameters)
setResponsePage(Page page)
Thanks Martijn,
of course, you are right.
I came to put it in there after consulting the example at
http://www.wicket-library.com/wicket-examples/forminput/
where this call is inserted to ensure the responding page is still
bookmarkable, also I planned to hand over the PageParameters object in
, pixologe [EMAIL PROTECTED]
wrote:
there are methods:
setResponsePage(java.lang.Class cls)
setResponsePage(java.lang.Class cls, PageParameters parameters)
setResponsePage(Page page)
but not:
setResponsePage(Page page, PageParameters parameters)
correct.
is there really no way
no not at all. it's great.
Alex Objelean wrote:
I've recently found this post on dzone:
http://java.dzone.com/news/this-time-last-year This time last year ...
What is your oppinion about this?
--
View this message in context:
In case anybody is interested in what I ended up with:
I defined an inner class within the Page which declares the page state
properties (and defines their default values) for the enclosing page. An
instance of the state Object is stored in the session using memento pattern
(no longer within the
Hi everybody,
is there any ModalWindow implementation with fallback (in case there is no
js available) around?
There does not seem to be something like this in Wicket, but perhaps someone
has developed an extension or another dialog component?
Having dialogs completely depend on Javascript is
However, you probably know, it would of course not be possible for the user
to copy this portable URL from the address bar, since the address bar cannot
be updated without a page request. So you would have to offer a link
providing that bookmarkable URL.
--
View this message in context:
Hi everybody,
May sound stupid: is the contructor really the best place for adding
children to a component or is there a better one, e.g. onBeforeRender?
All examples I see keep doing this in the constructor or in an init method
which is called by the constructor, however, I realized that there
you might also consider using put instead of add, which replaces an
existing parameter of the same key (if any)
--
View this message in context:
http://www.nabble.com/PageParameter-question-tp16026015p18895652.html
Sent from the Wicket - User mailing list archive at Nabble.com.
Hi everybody,
AFAIK it is not possible to have a variable nice URL for a page without
using PageParameters, right?
If I am right: shouldn't it be possible?
Perhaps I'm missing the point or not knowing the internals good enough
(probably both ;-), but what I imagine is to map parts of the URL
no. having a nice/bookmarkble url means having all the state in the
url.
hmmm i'm not sure... sometimes i'd like to have a pretty url, even if it
does not hold the exact state of the page... in my example: the re-sorted
list of friends would be still bookmarkable, however the sorting would be
Martijn Dashorst wrote:
mount your page with hybridurlcodingstrategy
thanks for pointing this out... i've seen this one before, but somehow
completely misunderstood how it is supposed to work :-/
still, it is not exactly what i had in mind, since it attaches a version
number to every url
Hi everybody,
with a german Locale the following two labels have different output
new Label(label1, new Model(123456789.0)) 123.456.789
new Label(label2, new Model(123456789)) 123456789
I am not quite sure why Double and Integer are handled differently when it
comes to grouping -
igor.vaynberg wrote:
you can install your converter globally by overriding
application.newconverterlocator
thanks for pointing me in the right direction, igor :)
lazy as i am, i chose a one-line solution which is obviously not the most
elegant one - however it does the job for now:
Hi everybody,
Perhaps I am just temporarily dumb, but I do not seem to be able to find an
elegant solution for the following use case.
I constantly create Links with just a single Label or a single Image in it.
It would be convenient for me to create a LabeledLink or ImageLink, taking a
content
shetc wrote:
Is it possible to give a newbie some pointers on how this extension would
work?
Just create a class MyPanel.java
class MyPanel extends Panel {
// constructors, custom methods etc...
}
and a markup file MyPanel.html:
html
body
wicket:extend
!-- MyPanel specific markup goes
Thanks for your opinion on this...
I think this is a similar approach to what I had in mind with the panel.
What I do not like about those Panel solutions is that the link has to be
wrapped and thus in itself is not a subclass of Link anymore.
I think a really elegant solution should inherit from
be happy to share the above mentioned code with anybody
interested,
just mail me
AbstractLink
pixologe wrote:
Hi everybody,
Perhaps I am just temporarily dumb, but I do not seem to be able to find
an elegant solution for the following use case.
I constantly create Links with just
then, otherweise I will understand why it
is implemented as it currently is. ;-)
Timo Rantalaiho wrote:
On Wed, 27 Aug 2008, pixologe wrote:
Short question: if my interpretation of the source code is correct, it is
not possible to use StringResourceModel's MessageFormat features just
with a
single
Hi everybody,
I have read in some older messages of this list that wicket by default takes
care of re-deploying changed classes and HTML files, does that still apply?
It does not work for me, not even with a fresh quickstart project. Neither
HTML files nor Java classes are reloaded when they
the changes in class files.
pixologe a écrit :
Hi everybody,
I have read in some older messages of this list that wicket by default
takes
care of re-deploying changed classes and HTML files, does that still
apply?
It does not work for me, not even with a fresh quickstart project.
Neither
should at least work for resource files (like html-templates or
property-files).
Witold
Am Wed, 10 Sep 2008 03:57:22 -0700 (PDT)
schrieb pixologe [EMAIL PROTECTED]:
Hi everybody,
I have read in some older messages of this list that wicket by
default takes care of re-deploying changed
environment and eclipse supports in the
debug mode a fairly good hotreplace of changed java-code (not always but
often enough :-)).
Kind regards
Florian Sperber
pixologe schrieb:
Thanks for your reply.
The app is running in development mode and I did not change anything in
the
quickstart
.
Did you call configure() in your init method? Then make sure, that you
set the resource poll frequency after it. In deployment mode configure
sets it to null.
Am Wed, 10 Sep 2008 05:05:00 -0700 (PDT)
schrieb pixologe [EMAIL PROTECTED]:
Thanks - I saw this one before, it is set to 1 second
Hi Martijn,
So this means that the wicket quickstart project does NOT do it out of the
box? Which obviously goes for non-maven-projects too then? That's good to
know, I obviously have been terribly misinformed then...
Even though it will obviously take me some more time to figure out how this
situation, the time is better spent with restarting jetty
100times a day ;-)
Uwe Schäfer wrote:
pixologe schrieb:
Thanks - I saw this one before, it is set to 1 second by default... but
has
no effect for me ...
did anyone mention javarebel? http://zeroturnaround.com
this one aims to solve
Martijn Dashorst wrote:
The maven jetty plugin is not meant for development, but for quick
demos.
Well, at least to me, this was not obvious. Good to know.
However, also after starting the quickstart project within the IDE, there is
not hot deployment of classes or HTML files. Same
.
Setting up your Wicket project is described in detail in Wicket in
Action's bonus chapter, available from the Manning website
(http://manning.com/dashorst)
Martijn
On Wed, Sep 10, 2008 at 3:05 PM, pixologe [EMAIL PROTECTED]
wrote:
Hi Martijn,
So this means that the wicket quickstart project
PM, pixologe [EMAIL PROTECTED]
wrote:
Martijn Dashorst wrote:
The maven jetty plugin is not meant for development, but for quick
demos.
Well, at least to me, this was not obvious. Good to know.
However, also after starting the quickstart project within the IDE,
there is
not hot
Hi there,
have a look at IHeaderContributor.
There's an easy example in the API docs.
http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/markup/html/IHeaderContributor.html
Cheers
tleveque wrote:
Hi
I am kind of new to the wicket framework...
But here is
/New
/Configure
set env variable MAVEN_OPTS to get debugging port
-Xdebug -Xnoagent
-Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n
Hope that helps!
Cheers, Roman
pixologe wrote:
Hi Roman,
even though my current main project is not under maven control, i'd
Martijn Dashorst wrote:
Wicket can't magically detect changes that are not on the classpath.
Well, you never what what Frameworks might be able to do below the hood.
And with all the magical things wicket can do, I wouldn't have been too
surprised to find a config param pointing to my
Cool... just let me know where to find it, when you're done :)
I'll try to add some momentum then...
jwcarman wrote:
I'll post my AbstractVelocityPanel code and see if that helps build
any momentum.
On Mon, Sep 15, 2008 at 2:52 AM, pixologe [EMAIL PROTECTED] wrote:
Hehe right
Dear Wicket devs,
I propose that by default a disabled link should rather (or also) be marked
using a behavior, instead of adding markup before and after.
A word in advance: I know that I can implement my own version of Link which
adds behavior in case of being disabled, and I know how to do it
of having the page hierarchy modified and the link
displayed in italics...
Nino.Martinez wrote:
Why not just use an attribute modifier?
pixologe wrote:
Dear Wicket devs,
I propose that by default a disabled link should rather (or also) be
marked
using a behavior, instead of adding
not be able to interact with it. for example,
security strategy can disable links the user does not have access to.
just adding class=disabled leaves the link clickable.
-igor
On Fri, Sep 19, 2008 at 4:21 AM, pixologe [EMAIL PROTECTED] wrote:
Dear Wicket devs,
I propose that by default
would you mind giving a hint?
igor.vaynberg wrote:
On Fri, Sep 19, 2008 at 9:24 AM, pixologe [EMAIL PROTECTED] wrote:
Of course, you are right. Sorry, what I wrote was not completely clear.
It can make sense to change the markup in order to disable a link.
It definitely makes sense
:
application.getmarkupsettings()
-igor
On Fri, Sep 19, 2008 at 11:15 AM, pixologe [EMAIL PROTECTED]
wrote:
would you mind giving a hint?
igor.vaynberg wrote:
On Fri, Sep 19, 2008 at 9:24 AM, pixologe [EMAIL PROTECTED]
wrote:
Of course, you are right. Sorry, what I wrote
-has-child-element-selector in CSS.
igor.vaynberg wrote:
setdefaultbeforedisabledlink( ) will do what you want
-igor
On Fri, Sep 19, 2008 at 11:27 AM, pixologe [EMAIL PROTECTED]
wrote:
setDefault*DisabledLink?
I know them and I am using them, as I already wrote.
Just considered
Hi there,
insert using AJAX?
Couldn't you just alter the underlying List as you like it, and have the
whole RepatingView redrawn by adding it to the AjaxRequestTarget...?
Or are you thinking of something more special?
Cheers
Edgar Merino wrote:
Hello,
is there any way to control
Hi Harry,
Well, it should be possible to create a Behavior taking care of stuff
this...
e.g. like
textField.add(new ClientSideRequiredValidationBehavior(myErrorLabel));
ClientSideRequiredValidationBehavior should override onComponentTag then to
add onchange/onblur javascript code to your
You could simply extend DropDownChoice, overriding
wantOnSelectionChangedNotifications to return true.
Override onSelectionChanged also, and in there you can call
setResponsePage(...) to redirect to your other pages.
Works fine for me.
Hope this helps...
Ritesh Trivedi wrote:
Well if I
Hi,
I had exactly the same use case and solved it as follows - works like charm
(unfortunately I cannot share the code):
extend StatelessTab (each instance to be constructed with its pageparameter
value
extend StatelessTabbedPanel,
constructor with the pageparameter key
override newLink to
Well, when I think of it the word exactly is not right - of course, there's
no page versioning and no colons here, since bookmarkablepagelinks are
used... this thing works the stateless way when switching tabs. But this way
you can have nice urls like [...]/yourPage/yourTabname/
pixologe wrote
or a StatelessTab in the distribution.
Regards,
Robert
pixologe wrote:
Well, when I think of it the word exactly is not right - of course,
there's no page versioning and no colons here, since
bookmarkablepagelinks are used... this thing works the stateless way when
switching tabs
64 matches
Mail list logo