I know that there were talks of a Wicket Cart on the forum that never
materialized. I looked at Apache OFBiz, BroadLeaf, Konakart etc... I ran
their examples. I was curious if anyone knew of a pure backend JEE solution
for e-commerce, so that integrating the business logic might be well
Well there are a couple ways of doing this I recently dealt with this
same problem. You can in fact use some Javascript on the onClick of your
item (or onHover) to add to the affect, but either way you will want to have
your default menu item selected from the get go when they are on that
I was making some Wicket Tutorial Videos on youtube.com/programjava
Just curious if there are very common questions with Wicket that appear on
the boards a lot, maybe I should make some quick video tutorials for them to
make people's lives a little easier. You can check what I already have,
You might want to use a Wizard for the record. Just curious does first page
add anything to the page, perhaps a new url and redirect is not necessary if
no Wicket Components were added, try adding some Wicket Label about a
redirect or something (just trying to narrow this down).
Just curious,
Okay,
So don't use a link on the html page for FirstPage. Try redirecting when
there is an html page with some filler, try adding a wicket label if plain
html doesn't work. Although it's not the best solution it will narrow down
the problem!
The Wizard is useful in the sense, you can go
You can also use an AttributeModifier, which will give you the old value (as
I recall).
overriding the method onComponentTag(ComponentTag tag), will let you easily
put a new variable for your class etc... but you will need to use tag.get(),
and tag.put(tag.get()+...). Looks somewhat messy when
Worse case scenario, though I understand not wanting to do it, is using a
javascript/html redirect and by passing Wicket, not the nicest scenario, I
wish I knew more about redirects, sorry.
--
View this message in context:
You can add an empty label to replace the content if not adding the
component. You can have a repeating list if you have lots of dynamic
content, this way whatever you add to the list is added or you can just add
an empty component.
It does seem odd to me that in your html you know whether to
As Nimmy said you should be able to supply your own model to the RadioChoice
which will override the CompoundPropertyModel Assuming NUMBERS is a
list...
RadioChoiceString rc = new RadioChoiceString(numberRadioChoice, new
Model(),NUMBERS);
Look at
Interesting the Ajax call decorator mentioned above sounds like a good
choice, I don't know the transactional steps for each solution, but to have
the javascript written entirely in the page without requiring some sort of
connection to the wicket server, does sound like it will be more immediate
I don't quite understand the problem... some code might help. But why can't
you do something like the following:
tabs.add(new AbstractTab(item.getModel()) {
public Panel getPanel(String panelId) {
return new AlbumPanel(panelId, );// can be item.getModelObject() or
something
}
the method .detach() or some variation should be called on every Loadable
Detachable Model (LDM) if your model is being used as a default model to any
component in the page hierarchy. To make this LDM your page model, I think
there is a trick in the sense you should call super(model), and not
not sure what activate does, I would hope though that it would add the object
to a panel on the page, and then you call target.addComponent(panel); As
this target (the AjaxRequestTarget) deals with actually updating the front
end of the page.
Also Data Repeaters are somewhat dubious in that they
To be honest, I decided to stick this code into my own web page (it has a
form), but I put it outside of it without a form, and it works fine
Shows up just dandy. I did of course change your retrieveButton code to add
an );. So I presume it is something else in your code stopping your code
Not sure how to e-mail someone directly as e-mails are hidden But it's
okay, I will probably look to implement an existing open source system with
Wicket, I am just curious if anyone would want to work on building a
specific open source idea for wicket either from scratch or properly
building
I have not used it, but doesn't it stand to reason that it is simpler to
decide whether a user can access a certain piece of code in Wicket. That
being, because I would presume you can apply the spring security to panels
or pages etc... based in wicket, and not spring filters etc Or perhaps I
Well if you have the Panel
Panel pnl = new Panel(breadcumbholder);
pnl.setOutputMarkupId(true);
and if this panel is made global, then you can add it inside other classes
if necessary target.addComponent(pnl);
This way you only update the panel and not the entire page
shetc wrote:
Well I think that all of the markup ids being output are based off of the
name in wicket:id=name. If memory serves correct so the easiest (ie:
less obtrusive) solution is to simply change your tags. Of course tedious if
you already had completed your project, so perhaps overriding the code that
choice).
Perhaps, you can change the non-wicket ids? would that help? I am not sure
why there would be collisions, could you explain more? Perhaps there is a
more elegant solution, without using wicket
Matthew
Uwe Schäfer-2 wrote:
On 02/04/2011 05:02 AM, msj121 wrote:
Well I think
I see, well I am happy I could help, and it sounds like you have quite an
interesting project.
Good Luck,
Matthew
Uwe Schäfer-2 wrote:
On 02/04/2011 09:07 PM, msj121 wrote:
You could have an automatic listener that takes the getMarkupId(...)
and
preppend, or append to the id, or do
If you have multiple html text input elements you can insert the javascript
below in your document etc The only thing new in wicket is that you
simply need to add a callback to your java method, which you can learn about
here (I made a video for this type of issue):
Not exactly sure what the issue is. You can simply put the components into
panels (or other objects). Meaning make a Download Component, then an Upload
Component separate classes so they can be re-used in the future if you only
want to allow a download form... then put them in one form and decide
You can see how this works for you:
String path = WebApplication.get().getServletContext().getRealPath();
Folder uploadFolder = new Folder(path+/uploads);
public String getURLFolder(){
return
getServletContext().getContextPath()+uploadFolder.getPath().replace(path,
);
}
I remember
Interestingly if the tree component has its own style unique to the component
I think it will or could override a css style applied for the page even
matching classes.
Perhaps you can also try on the component:
@Override
public void onComponentTag(ComponentTag tag){
super.onComponentTag();
not the way I would want to do it, but if your getting fed up it
is feasible, at least as a way to check if the css would work etc
msj121
mlabs wrote:
well i'm beginning to get the impression that this particular tree isn't
intended for re-use .. and grepping around here I see that others
I mean XP is letters... That is pretty amazing, there isn't even a number,
and even roman numerals, is there a 'P' in roman numerals?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Vote-New-Wicket-Version-Numbering-tp3420887p3421249.html
Sent from the Users forum
I am not sure if this is a bug or intentional.
But seemingly
getComponentInstantiationListeners().add((IComponentInstantiationListener)
new JavaEEComponentInjector(this)); No longer works in Wicket 1.5 (any
version I tried), but perfectly works in Wicket 1.4.5.
In Wicket 1.5 it states: cannot
Haza! I had switched back to 1.4 momentarily after almost giving up hope.
Didn't realize there was a package on github, my mistake. And great wiki
available on using it in maven, was a quick solution.
Thank you so much!
Matthew
--
View this message in context:
shetc wrote:
This is slightly off-topic but I have found one JavaScript issue with the
latest BlackBerry called the Torch.
The Torch has a bug in which a POST is not handled correctly but a GET is
okay. This is specifically for
form submits handled via JavaScript, which is typical for
I both agree and disagree with the aforementioned comments.
I don't think anyone would disagree that writing javascript from wicket or
using a decorator to write javascript is wrong. In fact quite often I may
not know the id of an object until run-time and I may want the javascript to
run on a
solve issue 77, I am hoping with the new versions of wicket/wiquery it
will have been somehow solved though I may have solved it by working around
the problem which is probably better code.
Hielke Hoeve-2 wrote:
-Original Message-
From: msj121 [mailto:msj...@gmail.com]
Sent: donderdag
I have noticed calling getCallbackUrl() on an AbstractDefaultAjaxBehavior
results in a url sometimes in:
./wicket/page?0-1.IBehaviorListener
and other parts of the same page have:
./wicket/page?1-2.IBehaviorListener
I think that the bad urls cause the page to reload when the attempt to call:
SOLVED:
After some debugging I noticed the following:
In the constructor the url generated is:
./wicket/page?54-0.IBehaviorListener.0
In onBeforeRender and onAfterRender the url is
./wicket/page?54-1.IBehaviorListener.0
I was pretty much getting the url as a string and passing it to WiQuery
I am not sure if it is still true, but if you have the label added, just the
visibility is false from the beginning, then in older versions of wicket it
would not actually put the component, even the placeholder. I dealt with
this before, but I think in newer versions presumably this was
I noticed there was a github setup here:
https://github.com/pflanzenmoerder/wicket-hibernate-archetype
And I added the repository and imported the project into my eclipse helios.
I can't seem to get the project to run, not sure how to finish setting up
the project.
Can anyone help?
--
View this
jWeekend no longer seems to have a wicket/hibernate/spring archetype.
SOLVED:
I had a lot of trouble using eclipse, but simply I did the following from
the command line:
mvn archertype:generate
and then went through the steps of choosing groupid etc
after all my attempts the archetype was
36 matches
Mail list logo