What I'd like to do is something like:
!-- p wicket:id=foosome data that should only be visible when
viewing the page's source code/p --
Does this make sense? How can I do that?
Thanks,
Lowell
-
This SF.net email is
something like
this is:
add(new label(foo, !-- bar --));
-igor
On 4/27/07, Lowell Kirsh [EMAIL PROTECTED] wrote:
What I'd like to do is something like:
!-- p wicket:id=foosome data that should only be visible when
viewing the page's source code/p --
Does this make sense? How can I
Would that be usable for what I want to do (in addition to what you proposed)?
On 4/27/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
what about it?
-igor
On 4/27/07, Lowell Kirsh [EMAIL PROTECTED] wrote:
What about the Comment class?
Class representing a comment in an HTML document
I have a table of numbers, and I want to flag each some of them by
putting a red star next to them. What's the easiest way to do this? I
imagine I'll have many red stars on the page. Would this be best done
with a subclass of Label which renders itself as normal and also
appends a 'span
the
number and the star, and conditionally adding one or the other.
but like i said it really depends directly on your usecase.
-igor
On 4/30/07, Lowell Kirsh [EMAIL PROTECTED] wrote:
I have a table of numbers, and I want to flag each some of them by
putting a red star next
adding the markup with or without the *. this will involve
having a fragment that contains just the number, and one that contains the
number and the star, and conditionally adding one or the other.
but like i said it really depends directly on your usecase.
-igor
On 4/30/07, Lowell Kirsh
I have just started mounting my pages (for nice urls) and it seems
that the PageParameters is always empty now. Before I had mounted the
pages, I could manually append foo=bar to my url and it would get
into the PageParams, but not that they are mounted, I have been trying
to append ?foo=bar but
I'm trying to make a page with several similar links to another page:
a href=anotherPage?method=method1method1/a
a href=anotherPage?method=method2method2/a
a href=anotherPage?method=method3method3/a
This would be really easy to put into my html code, but then it
becomes fragile to whether or not
I throw an AbortWithWebErrorCodeException with
status=HttpServletResponse.SC_BAD_REQUEST from my WebPage constructor
and my web browser receives a 200 status code and shows a blank page.
What am I doing wrong?
Thanks,
Lowell
I have figured this one out. Is seems that when my urls are mounted,
the parameters are passed in as /param/value/ rather than as
param=value. This is actually kind of nice :-)
On 5/8/07, Lowell Kirsh [EMAIL PROTECTED] wrote:
I have just started mounting my pages (for nice urls) and it seems
Just curious, when you say developers' skills play a role, do you
think that either component or action based frameworks are
considerably harder to program in than the other?
Lowell
On 5/8/07, Xavier Hanin [EMAIL PROTECTED] wrote:
So I think you have to evaluate which kind of framework you want
That looks pretty reasonable to me (though my code is not in front of
me right now). I like how you can pass a String to 'new
PageParameters()'. A little unexpected but nice (I should have read
the javadoc more thoroughly).
So I have another question: How to you set the link's title? That is,
how
do you have a quickstart that you can attach to a jira issue?
What do you mean by this? Is a quickstart some sort of self-contained
minimal jar?
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the
D'oh! Of course. And I assume you mean span instead of label.
On 5/9/07, Shams Mahmood [EMAIL PROTECTED] wrote:
Why not just add a label to the link.
span wicket:id=listViewId
a wicket:id=theLinkId
href=anotherPage?method=method1
label wicket:id=theLabelIdmethod1/label
/a
/07, Lowell Kirsh [EMAIL PROTECTED] wrote:
do you have a quickstart that you can attach to a jira issue?
What do you mean by this? Is a quickstart some sort of self-contained
minimal jar?
-
This SF.net email
I don't think they're wrong - I just think they are actually plusses ;-)
On 5/9/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
some wicket cons in that presentation are not true. too bad matt only spent
a weekend learning wicket before writing that presentation.
-igor
On 5/9/07, Francisco
Is IComponentAssignedModel only in 1.3?
On 5/9/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
you can also factor out the javascript confirmation into a behavior and
reuse it across any links classes like
Link link=new Link(foo) { onclick(){..}}.add(new
LinkConfirmation(sure?));
I'm using 1.2.6. Unless you think otherwise, I will not file a jira issue.
On 5/9/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
still, the query string params should be merged. please file a jira issue if
you are using 1.3
-igor
On 5/9/07, Lowell Kirsh [EMAIL PROTECTED] wrote:
I have
One of the requirements of the site that I'm building is that oneof
the pages be exposed programatically so that other programs can 'call'
it. They would know whether they'd succeeded or not by inspecting the
http status code returned. Since this is just a regular page of the
site, when the call
I think they will be using a java.net.HttpURLConnection. Does it matter?
On 5/9/07, Jeremy Thomerson [EMAIL PROTECTED] wrote:
What are they going to use to call it? wget? perl? etc
Jeremy Thomerson
On 5/9/07, Lowell Kirsh [EMAIL PROTECTED] wrote:
One of the requirements
a self-written servlet (or a servlet from any other
web-framework) in the same web-application.
Regards,
Erik.
Lowell Kirsh wrote:
I think they will be using a java.net.HttpURLConnection. Does it matter?
--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com
representing a successful retrieval, so anything in
the 200-299 range. I am positively very sure that non-2XX codes will
trigger an IOException.
Regards,
Erik.
Lowell Kirsh wrote:
Really? What about the getResponseCode() method?
http://java.sun.com/j2se/1.4.2/docs/api/java/net
is more verbose, but definitely not hideous.
On 5/10/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
See https://issues.apache.org/jira/browse/WICKET-552
On 5/10/07, Lowell Kirsh [EMAIL PROTECTED] wrote:
I easily reproduced this problem. I did not use svn access, but
instead went to the wicket main
in that
exception again, and you should be good.
Eelco
On 5/10/07, Lowell Kirsh [EMAIL PROTECTED] wrote:
The solution you posted there looks workable. Instead of throwing an
AbortException, I'd just call
RequestCycle.get().setRequestTarget(...). However, it seems that to
prevent the rest of my
I have a wicket form which is supposed to be POSTing its data. Looking
at the generated page, it is indeed method=post. But the page that
it redirects to thinks that it is a GET. I found this information by
doing:
WebRequest request = (WebRequest) RequestCycle.get().getRequest();
String method =
is a GET.
You can install LiveHTTPHeaders in FireFox. There is something similar for
IE.
Regards,
Erik.
Lowell Kirsh wrote:
I have a wicket form which is supposed to be POSTing its data. Looking
at the generated page, it is indeed method=post. But the page that
it redirects
I want some of my pages to be accessed programatically. Basically,
that page may be accessed as a 'web service'. So the same page may be
arrived at in 2 ways - the result of a form submission from another
page in the same app, or the result of a direct http connection. When
accessed as a web
(at least in the default settings of wicket)
because then we always do a redirect after post
johan
On 5/12/07, Lowell Kirsh [EMAIL PROTECTED] wrote:
why would you test for post in the resulting page?
The page has side effects, so if you are viewing it in your browser
and press
On 5/13/07, howzat [EMAIL PROTECTED] wrote:
... My only concern is the documentation, but the
forum seems very active...
You should get a copy of the Pro Wicket book. It is well worth the money.
I was planning to stay put with 1.2.6 until 2.0 is closer to production, but
perhaps I should go
[EMAIL PROTECTED] wrote:
that doesn't matter to much, i think you just changed classes a bit to much
and
therefore tomcat could load the session store from disk that tomcat does
save when you close down tomcat
johan
On 5/12/07, Lowell Kirsh [EMAIL PROTECTED] wrote:
I am getting
I'd like to repeat the same thing in several spots on the same page.
Does this mean that I have to create several labels? Or is there a way
I could have them all reference the same label?
Thanks,
Lowell
-
This SF.net email
.
what you can do is reuse the instance of model that drives the labels.
-igor
On 5/13/07, Lowell Kirsh [EMAIL PROTECTED] wrote:
I'd like to repeat the same thing in several spots on the same page.
Does this mean that I have to create several labels? Or is there a way
I could have them
url in it
i think think the browser ask me do you want to resubmit it (and i guess
that is a post again??)
johan
On 5/14/07, Lowell Kirsh [EMAIL PROTECTED] wrote:
Hi, I'm not sure I understand what you just said. I think I do have
the url of the post in my browser. That is, now that I have
Ok, I will move this discussion to a tomcat mailing list. Thanks.
On 5/14/07, Johan Compagner [EMAIL PROTECTED] wrote:
i did say that tomcat does load it. not wicket.
and why do you have to restart tomcat? you just should loose sessions
nothing more
johan
On 5/14/07, Lowell Kirsh [EMAIL
I making a web page which contains some markup that I'd like to remove
(sometimes). I imagine it would look like:
...
span wicket:id=removeMeHello bW/borld/span
...
Is it possible to remove this markup?
Thanks
Lowell
-
Cool. So no need to 'add' it?
On 5/30/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
new WebMarkupContainer(removeMe) {
protected void onBeforeRender() {
super.onBeforeRender();
setVisible(sometimesFalse());
}
}
That, or alternatively,
new
I'd like to create a tree on a page and have something like this in my template:
span wicket:id=myTreeTree Goes Here/span
and have the rendered result look something along the lines of:
ul
lifoobar
ul
libaz
ul
libaz2/li
libaz3/li
/ul
/li
to replaceComponentTagBody()
removes the span with the star. How should I be doing this instead?
Thanks
Lowell
On 5/30/07, Timo Rantalaiho [EMAIL PROTECTED] wrote:
On Wed, 30 May 2007, Lowell Kirsh wrote:
I making a web page which contains some markup that I'd like to remove
(sometimes). I imagine it would
object type (or just use a single method to deal with
both at once) so that I don't have duplicated code.
On 5/31/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
On 5/31/07, Lowell Kirsh [EMAIL PROTECTED] wrote:
My use case is actually turning out slightly more complex than I
posted. What I actually
At a glance, that looks like what I want. Thanks.
On 5/31/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
Take a look at the nested example and see if that helps you.
Eelco
On 5/31/07, Lowell Kirsh [EMAIL PROTECTED] wrote:
I'd like to create a tree on a page and have something like this in my
PROTECTED] wrote:
Then you should be able to use that label idea and embed it in your component.
Eelco
On 5/31/07, Lowell Kirsh [EMAIL PROTECTED] wrote:
Once again I left out a detail - the reason I have the span is that I
want to apply a CSS class to the star. Also, I like to have the star
should extend Panel.
Eelco
On 5/31/07, Lowell Kirsh [EMAIL PROTECTED] wrote:
But I get the following error:
...WicketMessage: Expected close tag for 'span wicket:id=foobar'
Possible attempt to embed component(s) 'span wicket:id=star' in
the body of this component which
And which Panel method do I need to call to set its text without
removing the star Component?
On 5/31/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
LabelWithStar should extend Panel.
Eelco
On 5/31/07, Lowell Kirsh [EMAIL PROTECTED] wrote:
But I get the following error:
...WicketMessage
replaceComponentTagBody() but that didn't work because that removed
the 'star' span.
So what I'd really like to do would be to create my custom component
and somehow tell it to replace the text of its body (ie. the 'TEXT')
but to do so without removing child components.
Make sense?
On 5/31/07, Lowell Kirsh [EMAIL
) {
public boolean isVisible() {
return sometimesFalse();
}
});
add(foobar);
but I find the template html to be less readable in this case and was
hoping to not have to do it this way.
Lowell
On 5/31/07, Lowell Kirsh [EMAIL PROTECTED] wrote:
Basically what I want to do is from this markup
Some CSS gurus claim that CSS could be used to append or
prepend content to elements, so maybe you would be easier
off by doing just that and toggling the css class
programmatically.
That would work. I tried googling how to do that, with no luck.
Anybody have any pointers or links?
lowell
Cool, that looks sensical to me. I like how I don't have to actually
have the stars in my html file. But one thing - the isEnabled() method
does not exist in the AbstractBehavior class. But I think the
following will work:
label.add(new AbstractBehavior() {
@Override
In my web app, when someone visits a page that doesn't exist (eg. by
manually mucking with the url), they might end up at an error page
with a stack trace, and also when that happens, wicket logs an ERROR
like: ERROR [RequestCycle] - Unable to load class with name:
com.foo.bar. I don't like that
48 matches
Mail list logo