Bug #1289391 has been filed for this issue.
Gili
Johan Compagner wrote:
ahh it seems that
public final boolean resolve(final MarkupContainer container,
final MarkupStream markupStream, final ComponentTag tag)
{
Component component =
no. Providing the markup and java code however might help looking into it.
juergen
On 9/12/05, Justin Lee [EMAIL PROTECTED] wrote:
Does anyone know what would cause me to get errors about multiple wicket
borders when, as far as I can tell, I'm only adding one?
--
Justin Lee
would you please open a bug for it. Thanks
Juergen
On 9/13/05, Todor Todorov [EMAIL PROTECTED] wrote:
Hi there,
I'm having hard time with borders and CSS today.
I have a border component which contributes a CSS link in the header section
of a page.
wicket:head
good question. I currently don't see any reason why we should change
it. But you never know. At least I'm not aware of any change which
will affect it.
Juergen
On 9/13/05, Phil Kulak [EMAIL PROTECTED] wrote:
I just noticed that I'm now able to build the component tree on a page
AFTER
I've tested it last night and did not find any bug. It seems to work
for me. What are the details?
Juergen
-- Forwarded message --
From: SourceForge.net [EMAIL PROTECTED]
Date: Sep 13, 2005 8:10 AM
Subject: [Wicket-develop] [ wicket-Bugs-1289391 ] setVisible(false) no
longer
Jim McBeath wrote:
In my simple test app I have a form with a button in it. The button
works properly in 1.1-b4, but when I compile and run using 1.1-rc1,
the button is functional but has no label in it.
The source html for the button:
input type=submit wicket:id=submitButton value=Submit/
I've tested it last night and did not find any bug. It seems to work
with pages, borders, panels and all other basic components. It has
something to do with headers (again). Are you trying to disable a
component with header component? Is it a header in-side component
which you try to disable?
You could easily do it without Wicket, but otoh, it is nice to have
all your stuff together. The JasperReports integration I'm working on
is based on resources, and lets you create links to reports (so you'll
get a download dialog or a PDF in the full browser) or embed them in
your page using
That's what Google is for, people like us with bad memory :).
The latter approach is similar to the one in cdapp. We definitively
need to give that package more visibility when we release the
wicket-stuff projects next week, even though not everyone agrees with
the way Hibernate is used.
Eelco
Yep, what error do you get?
Eelco
On 9/13/05, Juergen Donnerstag [EMAIL PROTECTED] wrote:
no. Providing the markup and java code however might help looking into it.
juergen
On 9/12/05, Justin Lee [EMAIL PROTECTED] wrote:
Does anyone know what would cause me to get errors about multiple
Usually, you want the disable attribute to not show up at when the tag
is /not/ disabled. You can do this by not putting the attribute in
your markup (input type=text wicket:id=foo value=bar /),
provide the second AttributeModifier argument 'true' (so attributes
will be added when they do not
It is great if API provides a convenient method like setDisabled(boolean)
for all form components
instead of creating 3 object likes new AttributeModifier(disable, true,
new Model(disable)))
Please open an RFE for it. That way we can track and not forget what you want.
Eelco
1) Depends on what objects you mean. Components? Models?
2) Unlike some other frameworks, form processing is not a central
thing in Wicket. With that I mean that the normal cycle doesn't do
anything special for forms; the form behaviour is fully encapsulated
in the Form class and handler
ah this is because buttons can have model (values) now.
And i only included the value when it is not null
But in youre case it seems that the model value returns an empty string instead of just null.
I will also test for
On 9/13/05, Jim McBeath [EMAIL PROTECTED] wrote:
In my simple test app I
what do you mean exactly?
Do you have a simple example?On 9/13/05, Wicket User [EMAIL PROTECTED] wrote:
Jim McBeath wrote:In my simple test app I have a form with a button in it.The button
works properly in 1.1-b4, but when I compile and run using 1.1-rc1,the button is functional but has no label
yes i think gili wants to disable a head component if i look at its first mail:
I've got a meta redirect tag. In older releases of Wicket
(meta tags are in the head)
it has something to do with the TransparentWebMarkupContainer class
that one is calling renderComponent() immediantly on a
the only thing is that checkAccess() == render phase.
So you are creating the page in the render phase. And i think when you don't use REDIRECT_TO_BUFFER this is a bad idea.
On 9/13/05, Phil Kulak [EMAIL PROTECTED] wrote:
I just noticed that I'm now able to build the component tree on a pageAFTER
Could some tell me or point me at an example of how to create a Link (in a
reuseable Panel) whose onClick will take the user back to the previous page,
without using the browser's history?
Ta,
-S.
Come visit us at:
Content Management Europe Exhibition. 29th November - 1st December 2005,
ah yes it is the same problem because of the value =
and if we see that empty value then we are concluding that that button was not pressed
This is also fixed with the thing i mention above.
For now just make sure that the model return null instead of when asking for the buttons valueOn
make a bug report for this.
The problem i see how did it know it was disabled?
Based on what the previous(==current) value of the model ? But that can change from all kinds of directions..
It is a pitty a browser doesn't just post the value (at least that is what happens?)
johan
On 9/13/05,
How do you go to the second page in the first place?
but a quick pseudo code:
FirstPage
LinkToSecondPage.onClick
setResponsePage(new SecondPage(FirstPage.this));
SecondPage(FirstPage firstPageInstance)
LinkBackToFirstPage.onClick
setResponsePage(firstPageInstance)
johan
On 9/13/05, Simon
Thanks Johan - thats more or less what I came to. I was just wondering whether
anything was provided to do this at the session level using the pagemap. How I
am using it is like this: Page A links to Page B. Page B contains a Panel,
part of which is a 'Back' link. onClick of link takes
then just give a Page instance to the panel for which it should generate a back link (so no sub type)
What you want is asking the last rendered page so you can link to that is dangerous .
You could use (I)Frames multiply windows or even the back button:
What happens if you have these Pages:
Interestingly, as I worked with recently updated versions of HEAD, this
still worked. When I upgraded to RC1, I had to change this back; so far
that is the only compilation issue I've had, and there have been no
other issues. Thanks, Igor, for a nice easy-to-use component.
I've customized
The only other outputs we plan on using are XLS and CSV.
We're going to have static reports, accessible using links, and a
report builder that allows the user to define the report
criteria. Either should work with what you have.On 9/13/05, Eelco Hillenius [EMAIL PROTECTED]
wrote:You could easily
Hello Wicket Users,
After examining the documentation and examples for some time, i am missing one
aspect in Wicket. That is a 'Central Controller'. Let me explain:
If a user sends a request -for instance a search request for something- the/my
application should be able to return different
I'll check in my latest changes tonight.
Eelco
On 9/13/05, Nick Heudecker [EMAIL PROTECTED] wrote:
The only other outputs we plan on using are XLS and CSV.
We're going to have static reports, accessible using links, and a report
builder that allows the user to define the report criteria.
I'm not sure I understand what you want to do.
Maybe to get this clear: what/ how would you do this if it was a Swing
application?
Eelco
On 13 Sep 2005 15:47:00 +0200, Voors Paul [EMAIL PROTECTED] wrote:
Hello Wicket Users,
After examining the documentation and examples for some time, i am
You can easily use setResponsePage or use Panels.
Eelco
On 13 Sep 2005 15:47:00 +0200, Voors Paul [EMAIL PROTECTED] wrote:
Hello Wicket Users,
After examining the documentation and examples for some time, i am missing
one aspect in Wicket. That is a 'Central Controller'. Let me explain:
On 13/09/05, Johan Compagner [EMAIL PROTECTED] wrote:
It is a pitty a browser doesn't just post the value (at least that is what
happens?)
If that was a question, I'd just mention that using
http://www.tipjar.com/cgi-bin/test; as the form action/destination
can sometimes be useful to check
Let me give an example:
A user can add search values in a textbox Much like google.
Depending on the results of the search with the user values. I wat to show
different pages (pagetype 1).
If there are no results, the user will get an 'advanced search' page with more
explicit search options.
Okay, I hope that in a week or so I can be answering some questions on
this list as well as asking them, but for now...
Wicket-examples has a clear example of how to handle file uploads, and
I've used it as a basis for part of my application. But my user also
need to download the files that
On 13 Sep 2005 16:20:00 +0200, Voors Paul [EMAIL PROTECTED] wrote:
Let me give an example:A user can addsearch values in a textboxMuch like google.Depending on the results of the search with the user values. I wat to show different pages (pagetype 1).If there are no results, the user will get an
Thanks for your reply,
it was very helpfull!
Paul
Ingram Chen (09/13/2005 16:58):
On 13 Sep 2005 16:20:00 +0200, Voors Paul [EMAIL PROTECTED] wrote:
Let me give an example:
A user can add search values in a textbox Much like google.
Depending on the results of the search with the user
Yep. Either that, or - if you don't want to use pages you can use
panels, and replace one for the other. Or if you think replacing is
too expensive (everything that is replaced is serialized and saved in
order to support the back button by default), place all panels you
want and switch the visible
This isn't the brightest question I've ever asked, I feel I'm missing
very obvious. But I don't see an answer in the examples/wiki so here
goes...
I'm wondering how to handle. So for instance if I have a Client object
which has one or more Address objects as members, how can I create a new
client
I wrote:
By the way, I don't have any control over MIME-types here. The user
might upload a text document, a PDF, a MS Word document, or may other
things. Is that going to be a problem?
I now realize that this is an exageration. Since I'm using
wicket.markup.html.form.upload.FileUpload, I
Patches are always welcome :)
-Igor
-Original Message-
From: [EMAIL PROTECTED] [mailto:wicket-user-
[EMAIL PROTECTED] On Behalf Of Scott Sauyet
Sent: Tuesday, September 13, 2005 6:29 AM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Using wicket-contrib-palette
Maybe a stupid way.
static class AddressConverter implements IConverter {
public Object convert(Object value, Class c) {
Address address = new Address() ;
//value is from TextField.getInput() ;
address.setStreeAddress((String) value) ;
return address;
}
public void setLocale(Locale
This is ultimately what I want. The Client object will have a collection
of addresses, invoices and other objects. The user can view these
objects and add new ones.
- I can create a form to create a new Client.
- I can create a form to add an address to an existing Client (at least
I think I
Thanks for the response! It works, so is therefore miles ahead of what
I've come up with so far:)
But if I understand it, as I add more fields to Address I would need a
separate converter (no problem) and a property in Client to use...so it
may not work in my specific case.
Thanks,
Troy
On
In the end, (Bound)CompoundPropertyModels are IModels. IModel just has
get/setObject, where you can implement anything you want, including
object creation etc.
CompoundPropertyModels are meant to make your life easier in the sense
that you need less code to acchieve model/property binding. The
Before you look any further, did you read/do:
http://wicket.sourceforge.net/wiki/index.php/Listviews_in_a_form ?
Eelco
On 9/13/05, Jim McBeath [EMAIL PROTECTED] wrote:
I am working on an app with a form containing a table where some of the
cells are editable. The model for the app is a bean
Ok, that's not about your problem, though you should know it. I'll put
together a test for your issue now.
Eelco
On 9/13/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
Before you look any further, did you read/do:
http://wicket.sourceforge.net/wiki/index.php/Listviews_in_a_form ?
Eelco
The trick here is that there is the ListItem's model shouldn't matter.
It's not a form component, and thus recieves no input.
When you add a textfield in your ListView's populateItem method, any
value that comes from the form should be passed directly to that
component. When this doesn't happen,
No, but I'll make one now.
Eelco
On 9/13/05, Jim McBeath [EMAIL PROTECTED] wrote:
Yes, and I am calling setOptimizeItemRemoval(true) on my ListView objects.
Is there an example somewhere of a form that uses and updates a ListView?
--
Jim
On Tue, Sep 13, 2005 at 07:49:18PM +0200,
Below is the java code I am using. I think the important points are:
1. The only models I am explicitly creating are the PropertyModel objects
associated with the two ListView components.
2. The CheckBox component gets its model from the ListItem, which in
turn comes from the ListView,
It's in HEAD of wicket-examples now. As it will take a couple of hours
before this shows up in annon cvs, I attached the patch (apply on the
root of the wicket-examples project).
Eelco
On 9/13/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
No, but I'll make one now.
Eelco
On 9/13/05, Jim
Check out FileResourceStream. Create one of those from your file, then
you can create a ResourceLink directly to it. Or, if you don't want to
create the resource for every user, you can wrap it in a resource
reference and link to that instead.
On 9/13/05, Scott Sauyet [EMAIL PROTECTED] wrote:
I
Sorry for not being more specific. A header contributor contains a
component which is made invisible. Can you reproduce that on your end?
Gili
Juergen Donnerstag wrote:
I've tested it last night and did not find any bug. It seems to work
with pages, borders, panels and all other basic
You must be a fan of annonymous classes! :)
The problem is that you re-use ListItem's model. As you noticed
yourself, that model doesn't update the underlying model object. I
think this is done because Johan, Chris and Juergen (to name of few)
deemed depending on the index dangerous.
Anyway, the
Phil Kulak wrote:
Check out FileResourceStream. Create one of those from your file, then
you can create a ResourceLink directly to it. Or, if you don't want to
create the resource for every user, you can wrap it in a resource
reference and link to that instead.
Thanks. This is probably just
The difference between your example and my program is that, in your
example, you are changing a property of an object contained in the List,
whereas I am attempting to change the actual object in the List. Thus when
the ListItemModel makes a shallow copy of that object for its own use,
and then
First it was dynamic forwards; now the question is about dynamic form markup. It's like this...
My users can define a Survey object that has text fields, drop-downs,
radio buttons, etc. When I present the Survey to another user, I
need to render those objects in the markup. However, since there
I think that is how ListItem started out many months ago. There have
been several been several shouting indecent words about that, and it
was 'fixed' to what it is now. I don't know, someone else (Johan?)
should defend that decission.
There's a break-out for you though. Simply override:
Use Panels. By using panels, you can defer any concrete markup until
you actually need it.
Eelco
On 9/13/05, Nick Heudecker [EMAIL PROTECTED] wrote:
First it was dynamic forwards; now the question is about dynamic form
markup. It's like this...
My users can define a Survey object that
Thanks! protected Address address = new Address() did the trick!
Troy
On Tue, 2005-13-09 at 19:42 +0200, Eelco Hillenius wrote:
In the end, (Bound)CompoundPropertyModels are IModels. IModel just has
get/setObject, where you can implement anything you want, including
object creation etc.
Just a reminder, Wicket has an IRC support channel #wicket at
irc.freenode.net
Can someone please mention this on the Wicket website?
Thanks,
Gili
--
http://www.desktopbeautifier.com/
---
SF.Net email is sponsored by:
Tame your
Thanks. Let me expand on it to see if I understand.
I'd create a Panel for each SurveyElement type, adding them to the Form
as needed. And I'm assuming I can add Panels as ListItems?
Suppose I have a Survey with two TextFields. In the
TextFieldPanel the wicket:id would be something clever like
I used ant,
Should that make a difference? The build run throug without failures..
I think I' ll try the new Cvs head..
On 9/12/05, Fred Astaire [EMAIL PROTECTED] wrote:
Hi!
Seems very strange:
My wicket jars are built from src: wicket-1.1-b4-src.tar.gz
I run it on Jre 1.4.2_04. I also tried
Exactly. You need to have the same id's for you listview elements (the
panels that is) of course, but in the panels, you can use any ids/
nesting you want. That's the fun in components and encapsulation.
Eelco
On 9/13/05, Nick Heudecker [EMAIL PROTECTED] wrote:
Thanks. Let me expand on it to
Thanks. I'll try to post this on the wiki.On 9/13/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
Exactly. You need to have the same id's for you listview elements (thepanels that is) of course, but in the panels, you can use any ids/
nesting you want. That's the fun in components and
This is a really good practice when you are using hibernate or ejb3. I
believe in some cases it is even required. If you want to do it lazily then
your getters should look something like this:
Public Address getAddress() {
If (address=null) address=new Address();
Return address;
}
On Tue, Sep 13, 2005 at 09:07:56PM +0200, Eelco Hillenius wrote:
I think that is how ListItem started out many months ago. There have
been several been several shouting indecent words about that, and it
was 'fixed' to what it is now. I don't know, someone else (Johan?)
should defend that
I fully agree with you.
Eelco
On 9/13/05, Jim McBeath [EMAIL PROTECTED] wrote:
On Tue, Sep 13, 2005 at 09:07:56PM +0200, Eelco Hillenius wrote:
I think that is how ListItem started out many months ago. There have
been several been several shouting indecent words about that, and it
was
I may have celebrated a bit soon. While the form renders and submits
without errors, browsing to a page with a ListView of Client objects
shows that no data has been entered. All simple Client properties are
empty, and the address field contains an object reference with all null
values.
you should set the cascade of your address relationship to include save,
that way hibernate will persist all the objects in that relationship when
you persist your client object. Otherwise you have to call save on every
instance of new address you add into the collection.
-Igor
-Original
Is there a good reason to have FileResourceStream final? I may be
missing a better way to use it, but I feel I'm jumping through some
serious hoops because I want to override one method of this class. What
I'd like to do is this:
add(new ResourceLink(downloadLink, new Resource() {
Thanks again, that was it. I'd tried setting the cascade property but
obviously got it wrong...I'm new to annotations as well as Wicket. For
anyone else looking to do this, the successful code is:
//In the Client Object
@ManyToOne(cascade = { CascadeType.ALL })
public
I made it non-final.
Eelco
On 9/13/05, Scott Sauyet [EMAIL PROTECTED] wrote:
Is there a good reason to have FileResourceStream final? I may be
missing a better way to use it, but I feel I'm jumping through some
serious hoops because I want to override one method of this class. What
I'd
haha, I should have just asked. I've been using my own non-final
FileResourceStream for months now. :D
On 9/13/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
I made it non-final.
Eelco
On 9/13/05, Scott Sauyet [EMAIL PROTECTED] wrote:
Is there a good reason to have FileResourceStream
A dutch saying:
'nee heb je, ja kun je krijgen'
(roughly translated as:)
you already have no for an answer, just ask, you might get a yes.
On 9/14/05, Phil Kulak [EMAIL PROTECTED] wrote:
haha, I should have just asked. I've been using my own non-final
FileResourceStream for months now. :D
Will do, but no guarantees that we will be there. The mailinglist
alone is a 40 hour job ;-)
Martijn
On 9/13/05, Gili [EMAIL PROTECTED] wrote:
Just a reminder, Wicket has an IRC support channel #wicket at
irc.freenode.net
Can someone please mention this on the Wicket
yes that is the whole idea. That you can display youre own values from a model.
(like i18n the buttons)On 9/13/05, Jim McBeath [EMAIL PROTECTED] wrote:
I changed my java code fromButton submitButton = new Button(submitButton) {...};toButton submitButton = new Button(submitButton,new Model(Submit))
where does the user do the search in?
That is a page with a form right?
The youre controller logic lies the the onSubmit of the search button or the onSubmit of the form itself.
Don't think in servlets. Think in components and actions.
On 13 Sep 2005 15:47:00 +0200, Voors Paul [EMAIL PROTECTED]
that seems like things that should be added to the head.
So i think something goes wrong with that.
With a single datepicker also fails? What does fail then? You can't input/submit the value?
Can you open a bug report for this?
On 9/13/05, Nick Heudecker [EMAIL PROTECTED] wrote:
Once we updated
= Scott Sauyet [EMAIL PROTECTED] wrote:
= Eelco Hillenius
Is there a good reason to have FileResourceStream final? [ ... ]
I made it non-final.
Ask and you shall receive. Thanks.
-- Scott
---
SF.Net email is sponsored by:
Tame
That's fine. I'm trying to divert quick questions to IRC to take the
load off the mailing list. Also I plan on putting up a discussion forum
soon and just like the IRC channel you don't have to join or use it but
I would appreciate a link to it.
Mailing lists are good for some things, IRC
That's not a certainty though. We tend to be carefull when opening up the API.
Eelco
On 9/14/05, Scott Sauyet [EMAIL PROTECTED] wrote:
= Scott Sauyet [EMAIL PROTECTED] wrote:
= Eelco Hillenius
Is there a good reason to have FileResourceStream final? [ ... ]
I made it non-final.
But that's why we archive the discussions, like at gmain:
http://dir.gmane.org/gmane.comp.java.wicket.user. This view
http://news.gmane.org/gmane.comp.java.wicket.user is the same as any
forum, right?
Eeloc
On 9/14/05, Gili [EMAIL PROTECTED] wrote:
That's fine. I'm trying to divert
80 matches
Mail list logo