Might be that I'm mistaken but I thought Application.getContextPath()
were meant for proxied environments. I don't think it is equal to the
servlets context path. I would assume you'll find information in the
mail archive on that. And obviously the javadoc is not clear on that.
Juergen
On
Title: DropDownChoice howto change default text
Hi
How do I change the default text (Choose One, see picture below) of a dropdownchoice, do I need to implement a custom render?
Ive looked at the methods for dropdownchoice class but no one seems to do just that.
-regards Nino
Hi Nino,
I think you need a ChoiceRenderer for your DropDownChoice. See javadoc there.
Regards,
Dirk
2006/3/8, Nino Wael [EMAIL PROTECTED]:
Hi
How do I change the default text (
"Choose One
", see picture below)
of a dropdownchoice, do I need to implement a custom render?
I'
ve looked at
first of all if you want to prepend youre urls with a full paththen just do:ApplicationSettings.setContextPath(FullUrl);in the init of youre application.Then all urls will be absolute.
getContextPath() is by default the contextpath of youre webapplication.If you don't set it expliciet in youre
override getDefaultValue()or use a properties file and define the null value:form.choiceid.null=My Other textAnd that is then a page.properties file that has a form as a child where the choice is in.
johanOn 3/8/06, Nino Wael [EMAIL PROTECTED] wrote:
Hi
How do I change the default text
what do you mean by am now injecting the root context into myWicket app by explicitly setting the root context.you call ApplicationSettings.setContextPath() ?that should work fine and that path is used for everything. (or we miss something)
that contextpath shouldn't already be in youre html
first of all if you want to prepend youre urls with a
full path then just do:
ApplicationSettings.setContextPath(FullUrl);
in the init of youre application.
Then all urls will be absolute.
getContextPath() is by default the contextpath of youre webapplication.
If you don't set it
Thanks I used the
override approach. I now have a control where I can define the null text on the
constructor.
The method to override is
called getDefaultChoice and not getDefaltValue by the way.
-Nino
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
ok i tested it with our FormInput example, i did this:getApplicationSettings().setContextPath(http://localhost:8080/wicket);then i get these urls:
link href=/http://localhost:8080/wicket/style.css type
=text/css rel=stylesheet/thats ofcourse wrong, i will test if you start with http: and if that
So perhaps I should give you some more context to understand my usecase:
We're using a CMS behind Wicket to serve the HTML templates for all our pages
(the panels are designed by web designers and included in the war file as
usually).
This way our CMS users are able to customize the basic
Sorry for the AW: prefix in the subject - my web mailreader insists on German
standards ;).
Sven
So perhaps I should give you some more context to understand my usecase:
We're using a CMS behind Wicket to serve the HTML templates for all our pages
(the panels are designed by web designers and
what you could do is that the cms editor doesn't really design the page at that time. But only configures it. So in a property fileit says what component should be rendered or not.just and idea..johan
On 3/8/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
So perhaps I should give you some more
Don't know exactly why that fails in youre case but you shouldn't bind the wicket servlet to /*please change it to /app/* or somethingand then in the root you place a index.html that does a meta refresh to /app
johanOn 3/6/06, Vivek Srivastav [EMAIL PROTECTED] wrote:
HiI am trying to write first
This is exactly a case where wicket:component should be able to help
out. It is kind of a non-advertised feature as not everyone on this
team agrees on their value; there's certainly the danger of using
Wicket the wrong way if you depend on it too much, but in this case it
might be very helpfull.
another idea might be: since wicket:ids are well known you can parse the markup and only add the components that are present in the markup instead of adding all of them all the time. you can do this when the user is done editing his page, so its done only once, and you keep a list of components
I agree with the bloat argument.
Eelco
On 3/8/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
another idea might be: since wicket:ids are well known you can parse the
markup and only add the components that are present in the markup instead of
adding all of them all the time. you can do this when
A simple resolver (IComponentResolver) on the base page might actually
do the trick. No especially the same as parsing the markup, but adding
them to the hierarchy on demand (at the point in time wicket resolves
the component).
Juergen
On 3/8/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
I agree
Eelco Hillenius wrote:
Though felix is interesting too because we have several people using
it and not everyone uses Eclipse (including the committers).
Can we have both? :)
+1
Let me know what we can do to help out over on the Felix side. We are
also working on AsynchWeb as an HTTP
What is the easiest way of creating a link that pops up a static file
(e.g. a .png drawing) in a new window? The Linkomatic example shows how
an arbitrary BookmarkablePageLink can be made to pop-up, but this
approach would require me to construct an HTML file with a Wicket ID to
hold the image,
Interesting! Wicket still builds on the servlet API, though getting
totally away from it shouldn't be too difficult. Please let us know if
you find things that should be abstracted more in order to let Wicket
work with asyncweb.
Thanks,
Eelco
Let me know what we can do to help out over on the
A resource link can be used to output resources.And i guess if you give a ResourceLink a PopupSettings class that a new window will be createdBut that can also be done in the html itself ofcourse.johan
On 3/8/06, Frank Silbermann [EMAIL PROTECTED] wrote:
What is the easiest way of creating a link
Eelco Hillenius wrote:
Interesting! Wicket still builds on the servlet API, though getting
totally away from it shouldn't be too difficult. Please let us know if
you find things that should be abstracted more in order to let Wicket
work with asyncweb.
Sure will Eelco thanks for the support.
To be honest I don't need it at the moment, but I think it's reasonable
to return null on conversion.
Converter (line 167) does it:
public Object convert(Object value, Class c)
{
// Null is always converted to null
if (value == null)
{
return null;
yeah but that is not a problembecause that return null will never be hit because the value is not null It only happens when the value is not null and the converted value is suddenly null which is maybe possible but a bit strange.
johanOn 3/8/06, Sven Meier [EMAIL PROTECTED] wrote:
To be honest I
According to the article posted on Java Lobby by R.J. Lorimer (which are
fantastic...keep it up R.J.)
Some developers may be concerned about the verbosity of this URL (shows a
lot about the underlying application) - Wicket 1.1 has an alias system that
helps you obfuscate this - and Wicket 1.2
http://www.servoy.com uses JSP as far as I can tell. If you hit their
product page, it uses a JSP extension.
Gili
Tim Johnson wrote:
According to the article posted on Java Lobby by R.J. Lorimer (which are
fantastic...keep it up R.J.)
Some developers may be concerned about the verbosity
Their product, servoy (which doesn't run their website AFAIK), uses
Wicket for rendering their application as a web client instead of the
usual webstart/swing gui.
But both Jan Blok and Johan can give better and more details than I ever can.
Martijn
On 3/8/06, Gili [EMAIL PROTECTED] wrote:
Dear Wicket,
I've just started to look at Wicket so I apologize if this is a complete
newbie question. I've searched the docs but haven't found an answer to
my question, so I was hoping you could help.
Briefly, I have a List of POJOs which I want to display. Do I really
have to do this?
(In
The homepage of servoy doesn't use wicket. That was already in place.But if you click through like the free download button on the left side, you enterthe wicket part of the side (which is already much bigger because also our
support system for our customers is build in wicket)johanOn 3/8/06,
Did we answer Tim's original question though? How does he do that? :)
Johan Compagner wrote:
The homepage of servoy doesn't use wicket. That was
already in place.
But if you click through like the free download button on the left
side, you enter
the wicket part of the side (which is already
use page mounting feature. see wicket-examples/niceurls for details.-IgorOn 3/8/06, Riyad Kalla
[EMAIL PROTECTED] wrote:
Did we answer Tim's original question though? How does he do that? :)
Johan Compagner wrote:
The homepage of servoy doesn't use wicket. That was
already in place.
But
we don't support scripting in html. That is not the way we want to work.What you can use is maybe a IComponentResolver where you add youre labels on the java code dynamicaly when you encouter component in the html that isn't specified in java.
johanOn 3/8/06, [EMAIL PROTECTED] [EMAIL PROTECTED]
See the NiceUrl example in our examplesthat is and example how to use mountable bookmarkable urls.johanOn 3/8/06, Riyad Kalla
[EMAIL PROTECTED] wrote:
Did we answer Tim's original question though? How does he do that? :)
Johan Compagner wrote:
The homepage of servoy doesn't use wicket.
i dont think this violates anything. one defines data model, the other defines presentation. true these have to be in sync. just like xml schema and xslt have to be in sync, etc.-Igor
On 3/8/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Dear Wicket,I've just started to look at Wicket so I
34 matches
Mail list logo