there are a few ways to do this
one is to add both and override isvisible() on them to conditionally hide
one or the other
another way would be for that link to replace one with the other
-igor
On 8/23/07, Konstantin Ignatyev [EMAIL PROTECTED] wrote:
I need to change presentation
igor.vaynberg wrote:
does it do that in all browsers?
also call view.setreuseitems(true);
I've checked it with ff2 and ie7. Also with Wicket1.3beta2 and beta3. I've
set view.setreuseitems(true);
The problem is that the wicket generate span tags for panels after body tag
and before the
Done: https://issues.apache.org/jira/browse/WICKET-878
Tom
Igor Vaynberg wrote:
yep
-igor
On 8/23/07, Thomas Singer [EMAIL PROTECTED] wrote:
Should I report a bug in JIRA?
--
Best regards,
Thomas Singer
_
SyntEvo GmbH
Brunnfeld 11
83404 Ainring
Germany
www.syntevo.com
Igor
I need to change presentation dynamically depending on
object status and I can do it with conditionally using
different panels like this:
if( getWSSession().getVisit().isSaved( v.getId() ) ){
add( new VehicleUncompareControl(
compareControl, new Model( v ), new Component[]{
ajaxTarget,
Argh sorry for the quick answer.. Instead of using a list to supply
options for the dropdown you'll need to use a model, and then add the
option by adding it to the modelobject.. This is how I've done it.
Afterwards you can either poke model.changed or model.setobject with the
list.
regards
Sure just add it to the model/bean:)
andrea pantaleoni wrote:
Hi,
I'm creating a DropDownChoice in this way:
DropDownChoice dropDownChoice = new
DropDownChoice(id,PropertyModel(beanName,propertyName),List,renderer)
Now I want to add a choice with key 0 and Value (empty string)
I was looking
Hi,
I'm creating a DropDownChoice in this way:
DropDownChoice dropDownChoice = new
DropDownChoice(id,PropertyModel(beanName,propertyName),List,renderer)
Now I want to add a choice with key 0 and Value (empty string)
I was looking for the API and I expected to find something like
* Igor Vaynberg:
yep, DownloadLinks will block because requests to the same page
are serialized.
Igor, that's a good point.
Thomas, did you try to follow the approach shown in the static
pages examples?
See http://wicketstuff.org/wicket13/staticpages/
--
Jean-Baptiste Quenot
aka
Sorry for the readme i've fixed it. I used the gmap2 project as
template, as I remember it.
I belive that the test failing are because some of the stuff are not
done yet, so it should continue to do so until its working.
regards Nino
Jean-Baptiste Quenot wrote:
* Nino Saturnino Martinez
* Ryan Sonnek:
http://www.jroller.com/wireframe/entry/wicket_and_rss_feeds
Just wanted to post an announcement that there's a new wicket stuff project
(wicketstuff-rome) to allow for creation of RSS (or Atom) feeds from within
Wicket. I've been using it for the past several weeks and it's
We can do that because all our components implement specific interfaces
which changes
the state of the component. For example
interface ILabelMethods
{
setBackground(Color color)
setForeground(Color color)
// and so on
}
and all those implementations do record the change
johan
On
I think it's looking okay, did you pick up the thing mentioned on the wiki?
You are not using ajax in Spring MVC? It would be wrong to just plain
compare non ajax to ajax..
Also you could write to the Jmeter list, to get a broader view of your
test plan.
Also you'll post results here ?
Thanks Johan,
Glad it wasn't a totally silly idea. Any top tips or problems you can share?
Nice that Igor's approach by its very nature avoids sending the same
component more than once. Trees are great ;)
Johan Compagner wrote:
this is how we also do it. Have a changes recorder per
Hi Nino,
at the moment I don't want to compare Ajax so in the applications I
wrote for testing it's not used.
Sure, I will post the results here... probably the next week...
Attached the JMeter scripts I wrote (it would be better only one
script but at the moment the urls used are different). I
There is not much point in comparing Wicket to Spring MVC. Spring MVC
is a very simple action based framework with very little functionality
(and probably minimal overhead). So what you would really be comparing
is Wicket to JSP (assuming you use JSP as your view layer). Now again,
Wicket is a
Hi,
in my testapp i'm trying to use an AjaxEditableLabel. When I put some data
in, it works fine but now comes my Problem.
My label is as Subclass of AjaxEditableLabel and so I tried to implement
the onEdit() function.
The thing is, that the displayed values might calculated by a formula in
Yes I see your point and you are absolutely right but please consider
that a lot of companies (included mine) have been using Spring MVC for
a long time and there are a lot of projects already in production
using that technology and working fine with the IT infrastructure now
available.
Of course
Hello Konstantin,
Your code snippet is from panel constructor, is not it? So far it
executed only first time, by creating page!
Your need explicitly use in the link handler replaceWith() method. See
Component's javadoc.
Cheers,
Oleg.
Friday, August 24, 2007, 8:46:01 AM, you wrote:
I need to
moreover the payment through a paypal account, that withdraws money from card
emitted by a
russian bank, failed too! :|
Friday, August 24, 2007, 1:36:25 PM, you wrote:
Well, i had the same bad luck as India is not in the choice.
They asked me to get a paypal account
-swaroop
On
Hi,
there's nothing wrong with yor approach, actually, it's more solid
than using (Compound)PropertyModel because you get full refactoring
support. The downside is of course code verbosity. Unless java get
property expression there's not much we can do about it though :-/
-Matej
On 8/24/07, Sam
I't really does not matter much but I'm with Eelco and Johan on this.
I prefer not to allow null values in the constructor. At least not if
there is a constructor with fewer parameters that can be used instead.
So I prefer to chain towards the simpler constructor if possible.
On 8/24/07, Martin
That's a really good question. If you look at the source for my solution,
it's a very lightweight wrapper around the ROME RSS library. I don't have
any code that's setting response headers. If you have a solution, I'd be
happy to incorporate it into the FeedPage.
On 8/24/07, thijs [EMAIL
Hi Benjamin,
where is the Panel einsatzPanel defined?
Maybe it helps defining it as a Class property?
Kind regards
Florian Sperber
Benjamin Ernst wrote:
Hi,
I am trying to replace a Panel, which is inside a Form, which is inside a
Page, which is inside a ModalWindow.
The first time it works
On Fri, 24 Aug 2007 12:24:46 +0200
Federico Fanton [EMAIL PROTECTED] wrote:
I was wondering, is there a way to cleanly enable/disable complex
components such as DateFields and Palettes? I see that
Component.setEnabled() is final so it cannot be overridden to handle
special cases..
Thanks Matej,
Is this
http://wicketstuff.org/wicket13doc/org/apache/wicket/model/PropertyModel.html
PropertyModel javadoc out of date where it says that Note that the
property resolver by default provides access to private members and methods.
If guaranteeing encapsulation of the target
Hi,
I am trying to replace a Panel, which is inside a Form, which is inside a
Page, which is inside a ModalWindow.
The first time it works fine, but when I want to replace it a second time,
the Panel has no parent.
Here is the code:
listItem.add(new AjaxButton(pflege, MitarbeiterForm.this) {
On 8/24/07, Oleg Taranenko [EMAIL PROTECTED] wrote:
moreover the payment through a paypal account, that withdraws money from card
emitted by a
russian bank, failed too! :|
They seem to accept visa, mastercard and AMEX, you don't have to use paypal.
Gabor Szokoli
It's not out of date. PropertyModel provides access to privdate
properties and it is completely intetional. The reason is actually to
provide better encapsulation, because if you e.g. bind your component
to a property of that component, you don't have to provide public
setters and getters for that
Well, the private acessing functionality was mostly build with situation like
private String myField;
new PropertyModel(this, myField);
i.e. without the setters and getters functionality. But I don't see
reason why should getters and setters be ignored, even if they are
private. Johan?
-Matej
* Ryan Sonnek:
I'm not familiar with IResourceStream and using a WebPage approach has
allowed for me to have great control over several aspects including:
* url mount points
* url parameter strategies
* possibly configuring the response Expires/Cache headers?
Do you have any examples of
class mypanel extends panel {
private List options;
mypanel () { add(new dropdownchoice(id,model, new PropertyModel(this,
options),...);}
now that it is using a property model to retrieve its choices just
add/remove items from the options list
-igor
On 8/24/07, andrea pantaleoni [EMAIL
its happening because you are creating invalid html
you cannot have a span between a tr and td, so you just need to adjust how
you are outputting the markup. change testpage.html to use the following and
it will work:
body
table style=border-collapse: collapse; empty-cells: show;
who cares, he says he has a database in there so the tests should be pretty
even.
for all we know wicket might be five times slower then spring mvc! and it
may very well be because spring mvc is so simple in comparison. but who
cares? a five fold improvement of something that is only five percent
You should also make sure that you are using DiskPageStore as pagestore.
-Matej
On 8/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
who cares, he says he has a database in there so the tests should be pretty
even.
for all we know wicket might be five times slower then spring mvc! and it
may
I wonder if there is any documentation as to how the rendering process works
How do I go from Component graph - html associated with the page? And
what is the model's role there. I have been reading and re-reading the
getting started manual, unfortunately it is an extremely incomplete
document,
the ui layer is generally not portable. if you start building your own
abstraction to make it portable you will end up with a pretty big mess
because you will be working against whatever framework you are using and
eventually that abstraction will turn into a framework itself.
-igor
On 8/24/07,
Now available from badongo to avoid cheesy IE problems
http://www.badongo.com/file/4142529
Nino Saturnino Martinez Vazquez Wael wrote:
Argh had made an error in the previous quickstart that made the
dropdown to be broken..
This version however displays the problem as it are.
On 8/24/07, Alex Shneyderman [EMAIL PROTECTED] wrote:
I wonder if there is any documentation as to how the rendering process
works
How do I go from Component graph - html associated with the page?
the basic answer is that wicket traverses the component graph and calls
various render methods
On 8/24/07, Swaroop Belur [EMAIL PROTECTED] wrote:
Well, i had the same bad luck as India is not in the choice.
They asked me to get a paypal account
Great. Largest software country in the world by now? So does it work
with paypal then? For all countries?
Eelco
On 8/24/07, Johan Compagner [EMAIL PROTECTED] wrote:
We can do that because all our components implement specific interfaces
which changes
the state of the component. For example
interface ILabelMethods
{
setBackground(Color color)
setForeground(Color color)
// and so on
}
Igor,
We are not really trying to make it portable or our own abstraction. The aim
would be a subset of the non-ajax Wicket API. In my comfortable ignorance it
is a nice way to keep track of dirty components, hide details of
ajax/non-ajax and let our tech lead keep firm control over which bits
I noticed this in the examples:
http://www.wicket-library.com/wicket-examples/repeater/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.repeater.AjaxDataTablePage
Changing the sort order does not seem to take you to the first page... I
stepped through the code, and it looks like it should
On 8/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
dataview doesnt have its own markup, it delegates it to its direct children.
so you want to put that oncomponenttag into the item the dataview creates.
override dataview.newitem() and override oncomponenttag on the returned
item.
It would
or we can forward the call to the repeatermore intuitive for newbies
less intuitive for the rest :)
-igor
On 8/24/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
On 8/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
dataview doesnt have its own markup, it delegates it to its direct
children.
On 8/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
or we can forward the call to the repeatermore intuitive for newbies
less intuitive for the rest :)
The items would forward the calls? Hmmm. Sounds a bit dangerous/ confusing.
Eelco
Hi,
I use a DataView to create a list (ulli). The DataView is used to
render the li-tags. Now I try to add a custom id value to the li tag
if some circumstances are fulfilled:
@Override
protected void onComponentTag( @NotNull ComponentTag tag ) {
super.onComponentTag( tag );
oh, and btw
http://wicketstuff.org/wicket13 is where the live examples are.
wicket-library isnt maintained and hasnt been for a while, not sure why its
still up and running.
-igor
On 8/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
thanks, fixed in trunk
-igor
On 8/24/07, Patrick Angeles
Thanks,
I will try that. And please make those methods final...
Regardy,
Johannes Schneider
Igor Vaynberg wrote:
dataview doesnt have its own markup, it delegates it to its direct children.
so you want to put that oncomponenttag into the item the dataview creates.
override
Hi * *,
I can not find subj neither in wicket nor in extensions codabases.
Must I write it or there is a workaround (AjaxLink?)
Cheers,
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
you didnt look very hard than
http://wicketstuff.org/wicket13/ajax/choice.1
-igor
On 8/24/07, Oleg Taranenko [EMAIL PROTECTED] wrote:
Hi * *,
I can not find subj neither in wicket nor in extensions codabases.
Must I write it or there is a workaround (AjaxLink?)
Cheers,
Oleg
i think it has been fixed since then. at least snapshots at
wicketstuff.org/wicket13 appear to be working fine.
-igor
On 8/24/07, Patrick Angeles [EMAIL PROTECTED] wrote:
1.3-beta2
igor.vaynberg wrote:
i believe this was fixed a long time ago, what version are you seeing
this
with?
I'm not that intrepid so I think I'll just wait until beta3 to get those
fixes.
The extensions AjaxFallbackDefaultDataTable and related classes are
extremely nice, btw. It's allowed me to quickly set up list paging and
sorting in a way that would have taken me days using any other web
framework.
52 matches
Mail list logo