Hi All,
I'm using wicket for a project at work, and for the most part, I'm really
enjoying it. Thanks to everyone involved.
I'm having some problems with choices, though.
I'm using a BoundCompoundPropertyModel in a Form. I have a DropDownChoice
that is driven by a List of USState objects.
The code is generated by OAW.
I hate use form in each row, imo, wicket can get the model value when the link was clicked.
Also , i tried table_ProductList.setOptimizeItemRemoval(true), but nothing changed.
what i need isgetvalue of textfield(not in a form) whena link was clicked.
help andthanks
yes i think having a switch globally is not a good use case.
I think you just have to choose it at model level. The only problem is that i have changed
AbstractPropertyModel. And that one is the base class for X numbmer of classes (like compound)
So the only real solution (besides always have at
Regarding the newly added 'around functionality' of WebRequestCycle and WebPage.
I certainly welcome this addition in the background of Spring integration and
AOP, but I see some problems with this implementation.
First of all we now have a new dependency to HTML markup in
Does Wicket also check for direct public property of the same name ?
not yet, but that is easy to build.
Same remark concerning maps vs beans.If find it great if we don't know if the property is contained in the
Map or is a property of the Model.
i am alos still in favor the current impl by
On 10/28/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Regarding the newly added 'around functionality' of WebRequestCycle and
WebPage.
I certainly welcome this addition in the background of Spring integration and
AOP, but I see some problems with this implementation.
First of all we now
I think you should have your own implementation of the choice renderer for
this, and should override the getDisplayValue method.
something like
public String getDisplayValue(Object object)
{
USState state = (USState )object
return state.getCode();
}
and add tthe drop down as
new
this looks like the most commor error people are making with this.
I will try to see if i can check this earlier and really throw a better error.
The problem looks like that youre Selected object is not the same as youre List obect
It has to be of the same type!
what is returned from
that should be handled by the list items model
Override the ListView.getListItemModel() and give youre own
implemantation (detachable model for youre db object just store the pk)
and when that model get's attached it will try to lookup the object for
that pk. If that is deleted then the calling
yes then you need some kind of _javascript_ on the client side!
Because how can wicket get anything if the browser doesn't submit it
But if you want a link then you have to make sure that that link is
appended with the value of the text field when the link is clicked.
The name of that
On 10/28/05, Johan Compagner [EMAIL PROTECTED] wrote:
Does Wicket also check for direct public property of the same name ?
not yet, but that is easy to build.
That would be great.
Same remark concerning maps vs beans.
If find it great if we don't know if the property is contained in
don't know if that is weird (that the key is not there)
it can be completely valid.
What happens if i do this:
map.xxx = yyy
First i try to get xxx key?
Not there then i try to get xxx as a property
still not there the back to the map?
i still think that i can first check for the _expression_
Well, yes,
in fact, I think we can guess that it would be dangereous an error
prone for the developer to have a key of the map with the same name as
the property.
So, indeed, it is not a problem if you first check for the property,
then the map value.
+1 for that,
--
Laurent
On 10/28/05,
Did you open a bug or RFE already? If not, please do so, otherwise
there is always a risk that it'll be forgotten.
Juergen
On 10/27/05, Martijn Dashorst [EMAIL PROTECTED] wrote:
+1, if it doesn't break stuff.
Martijn
On 10/27/05, Juergen Donnerstag [EMAIL PROTECTED] wrote:
Would you
Hello all, hello Igor,
thanks for your helpful reply.
I adjusted the code so that only the return of
TextField.getModelObjectAsString is set in the approriate POJO, which
is then written to the database, and the ComboBox gets updated. The
backend routines are all called as expected.
Hi,
Class wicket.markup.html.navigation.paging.PagingNavigationLink is
final, but
wicket.markup.html.navigation.paging.PagingNavigationIncrementLink is
not. Could these both be non-final?
Thanks.
--
Janne Hietamäki
Cemron Ltd
http://www.cemron.com/
so you are saying that this little piece of code:
TextField tf = new TextField(qid + Cat, new PropertyModel(pojoObj, text));
boolean test = pojoObject.getText().equals(tf.getModelObject());
then test is false?
On 10/28/05, Chantal Ackermann [EMAIL PROTECTED] wrote:
Hello all, hello Igor,thanks
Why? What is your use case?
Juergen
On 10/28/05, Janne Hietamäki [EMAIL PROTECTED] wrote:
Hi,
Class wicket.markup.html.navigation.paging.PagingNavigationLink is
final, but
wicket.markup.html.navigation.paging.PagingNavigationIncrementLink is
not. Could these both be non-final?
Thanks.
On 10/27/05, Johan Compagner [EMAIL PROTECTED] wrote:
That NPE is already handled.
When you do a get a and somewhere in the line a null is encountered then
null is returned
Great!!!
I still am thinking of a way to create the null object then this can be
automatic if the object
i have
Juergen Donnerstag wrote:
Why? What is your use case?
Juergen
I need to have an OnClickScript on my paging links to do some ajaxian stuff.
--
Janne Hietamäki
Cemron Ltd
http://www.cemron.com/
---
This SF.Net email is sponsored by the
I like the idea of being able to plug in OGNL if you really need it.
Now that I think about it, I've got a couple ChoiceRenderers that call
functions using OGNL. Although, it probably would be very easy to
rewrite these by just implementing the interface myself, and much more
efficient.
On Fri, 28 Oct 2005 01:39:54 -0700, Johan Compagner [EMAIL PROTECTED]
wrote:
this looks like the most commor error people are making with this.
I will try to see if i can check this earlier and really throw a better
error.
The problem looks like that youre Selected object is not the same as
On Fri, 28 Oct 2005 01:22:39 -0700, Dipu [EMAIL PROTECTED] wrote:
I think you should have your own implementation of the choice renderer
for this, and should override the getDisplayValue method.
something like
public String getDisplayValue(Object object)
{
USState state = (USState
Perhaps I don't understand the intended usage here.
It seems like the type of thing I want to do must be fairly
common. Say I want to list US States by full name, but
persist the abbreviation (code) in my model. A map of
Strings in the front end (display, value) to a String in the
Is there a way to display a header only when there is an error in a feedback panel?
For example, I want to do this:
Please correct the following errors:
Feedback messages here as UL
Thanks,
Andrew
create a subclass of feedbackpanel and add the message to
the html template
so the
html template for your subclass will look something like
this:
class
myfeedback extends feedbackpanel {
public myfeedback
{
super.feedbackpanel();
add(new
WebMarkupContainer("message") {
In my first post, I had a couple of issues, and I don't want to lose sightof the other, because it is actually a bigger problem.That is in the
case that I do just use a simple list of strings, like this:new DropDownChoice(id, LIST_OF_STRINGS);
if you do this then the model of the dropdown is
Cool, thanks Igor.On 10/28/05, Igor Vaynberg [EMAIL PROTECTED] wrote:
create a subclass of feedbackpanel and add the message to
the html template
so the
html template for your subclass will look something like
this:
class
myfeedback extends feedbackpanel {
public myfeedback
{
Would be very nice to give it some though
But i was not talking about url generation
Just handling the component listeners (After the parsing of the url)
So pure the java side (so really the method where the talk is for now:
I was talking pure for this method:
private void invokeInterface(final
but that looks to me like a AttributeModifier On 10/28/05, Janne Hietamäki [EMAIL PROTECTED]
wrote:Juergen Donnerstag wrote: Why? What is your use case? Juergen
I need to have an OnClickScript on my paging links to do some ajaxian stuff.--Janne HietamäkiCemron
I'm fine with any changes on the short term if that makes it better
for people to use. For the longer term (1.2.), we should re-think more
about generalizing it. It's probably not difficult either, just a lot
of thinking before implementing.
Eelco
On 10/28/05, Johan Compagner [EMAIL PROTECTED]
I this case, are there any good reasons /not/ to remove final? As far
as I can see, it doesn't really leak many implementation details if we
make some methods final.
Funny thing that the authors tag has Jonathan and me... I can't recall
writing this, and I don't think Jonathan did :) Will the
On Fri, 28 Oct 2005 10:03:53 -0700, Johan Compagner [EMAIL PROTECTED]
wrote:
snip
The id was not null!
Only when the selection is null and null is allowed Choose One is added.
This was the problem. I had changed the default from null to an empty
String in the model. That is why it
Most things i see use it as this:
Person
{
getCountry()
setCounter();
}
Country
{
getId()
setId();
getName()
setName();
}
new DropDownChoice(country, new Model(person), COUNTRY_LIST, new ChoiceRender(id, name))
johan
On 10/28/05, David Ruberg [EMAIL PROTECTED] wrote:
On Fri, 28 Oct 2005
i only moved it to that package.
(in the paging change)
On 10/28/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
I this case, are there any good reasons /not/ to remove final? As faras I can see, it doesn't really leak many implementation details if wemake some methods final.Funny thing that the
This should (hopefully) be rather simple:
for one particular page, I use frames. So, I have a link to the page with
the frames. Then, the top and bottom frames have their own pagemap
(example at http://www.wicket-wiki.org.uk/wiki/index.php/Using_frames)
But, when I leave the framed page, I
i think currently the only way is to set the Page where the bookmarkablepagelink is to set the pagename to null
on the page the bookmarkablepage name is on but that method shouldn't
be called and suddenly all urls would be without a pagemap.
jumping from one pagemap to another with a link is not
Johan Compagner wrote:
jumping from one pagemap to another with a link is not really possible i
think at the moment.
I think for this we need a new kind of link..
Thanks Johan--
My recommendation would be to have another constructor for
BookmarkablePageLink (and some other types of links)
尊敬的经理:
是否有某批次的货物,因为如何入帐及承担过高的税负而烦忧?或许我司能为您排忧。
我司作为一家综合性企业,可以开具商品销售发票(普通发票);也可通过海关开具海关专用缴款书(包括):
1、海关代征增值税专用缴款书,可按17%全额抵税;
2、海关进口关税专用缴款书,进货价格及关税全部可入成本;
3、进口货物报关单,证明货物为进口货物。
另:我司的合作企业可以开具公路运输发票,可以证明货物的运输方式,此发票可以抵扣7%税款。
若有需要,请与我司联系:吴海清 Tel: 0755-81164787 ,013728998454。
I was able to create the error again with a different markup file. Hopefully this helps:
wicket.WicketRuntimeException: Markup of type 'html' for component 'example.EditPricing' not found or invalid Enable debug messages for wicket.util.resource.Resource to get a list of all filenames tried:
I'm trying to create a form with multiple submit buttons follow the
example on
http://www.wicket-wiki.org.uk/wiki/index.php/Multiple_submit_buttons_in_form
The buttons' onSubmit isn't getting called. [However, the Form's onSubit
IS getting called.]
My HTML looks like
form id=backForm
What version of wicket are you using? I just tested against head and it
worked fine. My test markup looked like this:
wicket:extend
br/span wicket:id=feedback[feedback panel]/spanbr/
form wicket:id=form
span wicket:id=editPanel[edit panel]/span
input type=image value=save wicket:id=save
42 matches
Mail list logo