right. except one crucial difference. this kind of resource does not
need to be
registered with the application (and you don't need an image reference
to it).
i don't think you can do what you suggested below. there are no parameters
to image resources currently (unless someone changed som
what code are you thinking of, johan? i don't think this is possible at
all.
Johan Compagner wrote:
but what you are describing is pretty much how a resource works now
With one exception you don't have this:
http:///app/customResources/photos/test/100
but this
http:///app/resources/photo
Yeah you're right.
Thak you for clearing that out!
Cu,
Dave
Martijn Dashorst wrote:
It wouldn't be a good idea. It will open up scripting in the markup. We
try to stay clear from that. First there is conditional markup, then
there's repeating markup, then... you have JSP's.
If you need alte
Thanks for the yucky explanation will use it next time to show off with my
friends. Wicket is teaching ;-).
You have explaind before that you don't realy like static. Makes you
refactor sooner or later - generally me too, but not always.
And yes it is a different conversation. I'll switch ove
It wouldn't be a good idea. It will open up scripting in the markup. We
try to stay clear from that. First there is conditional markup, then
there's repeating markup, then... you have JSP's.
If you need alternating markup, create a Panel component for your
specific case. It works very elegantl
Philip A. Chapman wrote:
Matej Knopp wrote:
Well, I kind of disagree here. What you are talking about is context
name. 'app' is just servlet name. There should _not_ be slash after app.
You can have as many contexts as you want. The problem is, that you have
deployed the application to "/" (ro
Matej Knopp wrote:
> Well, I kind of disagree here. What you are talking about is context
> name. 'app' is just servlet name. There should _not_ be slash after app.
>
> You can have as many contexts as you want. The problem is, that you have
> deployed the application to "/" (root) context.
>
> I
but what you are describing is pretty much how a resource works now
With one exception you don't have this:
http:///app/customResources/photos/test/100
but this
http:///app/resources/photos?image=test&width=100
johan
Jonathan Locke wrote:
right.
but how is this different from the simpler
Well, I kind of disagree here. What you are talking about is context
name. 'app' is just servlet name. There should _not_ be slash after app.
You can have as many contexts as you want. The problem is, that you have
deployed the application to "/" (root) context.
I for example have EvStudZad c
right.
but how is this different from the simpler WebRequestCycle.onCustomResource?
is it just that it's a little more modular? if that's the goal, maybe
we should have a generalized
custom resource architecture (i loathe the word 'service' here because
it's so unbelievably lacking
in mean
> btw.
> it's enough to do
> setResponsePage(HomePage.class);
> no need for this long notation.
Thanks. That's nicer. The other, I got from an example project.
> sorry, I don't understand this. How can this pagelink generate
> bookmarkable URL? It should be more something like
> app?path=XXX&int
yucky is slang i suppose. something that's yucky is unclean, messy and
usually undesirable.
is this a different conversation now? we were talking about how to
access custom resources. if that's the case, i think these static
methods are not at all how to achieve that.
i have no idea how
Not exactly.
I think you are taking a more resource based approach then what I tried to
describe. Basically lets say in your case you need to return some resources
from within your wicket app that don't fit well with the default
request/response processing. What you can do is create your own
imple
Philip A. Chapman wrote:
Everyone,
This email will probably be a little difficult to read because I have
tried to put sample code in here, but please hang in there and see if
you can help me.
I am linking in a CSS page using a relative path. On most pages it's
not working because of how paths
Everyone,
Help! I still haven't figured this one out yet! If there is any info
or code snippets that I can provide to help, please let me know.
Thanks,
Philip A. Chapman wrote:
> Everyone,
>
> This email will probably be a little difficult to read because I have
> tried to put sample code in
but isn't this adding a esourcereference to youre application?
Then that resourcereference will becalled under the url:
/wicket-examples/images/resources/home/image5
and you can do anything you want in the resource that reference is making.
johan
Igor Vaynberg wrote:
Or someone might write
I do not know what yucky is - English is not my first language.
I want to integrate with java webframwork out of Wicket (-servlet) and
HttpServletRequest is a common denominator. Static methods are often used
to hide impl details for accessing web-context parametes in an easy way.
Why not use
yes please make a bug report for this
Matej Knopp wrote:
Hmm.. Maybe the bookmarkable link should properly escape page
parameters... (at least replacing & for &)
-Matej
[EMAIL PROTECTED] wrote:
Well, let me try to be more clear with code.
PageParameters pParams = new PageParameters();
pP
yes, exactly.
Phil Kulak wrote:
Not if I want any control over how they're served up, when they're
served up, and who they're served up to. But forget about that, it's
not important. Making an image proxy is a much better example, for
thumbnails and whatnot.
On 8/5/05, Jonathan Locke <[EMAIL P
Not if I want any control over how they're served up, when they're
served up, and who they're served up to. But forget about that, it's
not important. Making an image proxy is a much better example, for
thumbnails and whatnot.
On 8/5/05, Jonathan Locke <[EMAIL PROTECTED]> wrote:
>
> well, if you
static methods are yucky.
exposing impl. details of wicket is yucky.
HttpServletRequest is yucky.
what does this accomplish that my more OO proposal doesn't?
Philip A. Chapman wrote:
+1
I think it would be nice to have a third static method:
static String getWicketBookmarkURL(HttpServle
This is not Jon's argument, I do not believe, but an argument that I
think is valid. Let us say that your images served up by your servlet
are generated charts, such as the relative wages of employees. You
wouldn't want just anyone to be able to access this data unless they had
authenticated suc
Or someone might write components/pages that generate xml and are xslt
transformed into a ui. Or voice xml components. And im sure there are a
thousand more reasons.
Tapestry takes an nice approach that allows easy integration of things like
this. You can basically write your own service providers
+1
I think it would be nice to have a third static method:
static String getWicketBookmarkURL(HttpServletRequest req, String
wicketServletMapping, Page page){}
Christian Essl wrote:
> +1 +1
>
> I want to implement a used-car site with a lot of static images.
>
> The most used pages are simple
Gili wrote:
>
> Jon, I think you need to give more information about your actual
> requirements. As I already mentioned, I have a simple servlet which
> serves up images by ID and the ID is passed in via a HTTP POST (although
> originally I had it going via a HTTP GET and you could do this too
Yeah, that would be nice. I'm +1 for it.
-Matej
Jonathan Locke wrote:
was just looking at the new database code i've been writing and it seems
like i could
provide a nice shortcut to add custom resource handling to that...
basically you could
override a method like one of these in your Data
+1 +1
I want to implement a used-car site with a lot of static images.
The most used pages are simple data-showing pages and are easy to handle
with a MVC framework. I think a MVC framework is more efficient in
handling them (no session etc needed). For sure I'd like to do the more
involved
was just looking at the new database code i've been writing and it seems
like i could
provide a nice shortcut to add custom resource handling to that...
basically you could
override a method like one of these in your DatabaseWebSession subclass:
public void onResource(String path)
{
// def
Jon, I think you need to give more information about your actual
requirements. As I already mentioned, I have a simple servlet which
serves up images by ID and the ID is passed in via a HTTP POST (although
originally I had it going via a HTTP GET and you could do this too).
I don't see why
Everyone,
This email will probably be a little difficult to read because I have
tried to put sample code in here, but please hang in there and see if
you can help me.
I am linking in a CSS page using a relative path. On most pages it's
not working because of how paths are being created. In a
Fo
i dunno. that seems wrong to me. if we keep it inside WebRequestCycle,
then people can
use wicket classes to form the response. and from there it's easy to
get their session for
authentication and/or authorization ((MySession)getSession).isSignedIn()
for example) to ensure the
resource is b
well, if you just want to serve up files you could put them in your web
app folder, right?
the big issue we've both run into is when you want to serve up resources
that can't be
stored in your web app folder.
Phil Kulak wrote:
Okay, I see what you mean. I had that exact same requirement rec
If we want to say that this is outside the scope of wicket, then there
needs to be a good way for a Servlet to get at the Wicket session.
Right now they way I'm doign it is a bit of a hack, not portable at
all, and will break as soon as you guys change how you build the
session key:
WicketSession
Okay, I see what you mean. I had that exact same requirement recently.
I believe it was discussed on here as well. Right now I'm using a
Spring controller to serve up files dynamically. I'm probably going to
have to make a photo proxy too (as you mention), and it would be very
nice if I could stay
in fact, i think the total change would be this:
protected boolean onCustomResource()
{
return false;
}
protected final boolean parseRequest()
{
// Try different methods of parsing and dispatching the request
if (onCustomResource() || callDispatchedComponentL
ugh.
this is a very small application and i have no interest in a general
web services api for this particular problem. i just want to post
and get some binary resource objects by id.
what about adding an onCustomResource() method to WebRequestCycle
which can be overridden for people that want
This is outside the scope of Wicket. As others mentioned, you can just
use Axis or construct your servlets to do this kind of thing. I did the
latter and it is very easy and again completely outside the scope of Wicket.
Gili
i want to be able to do non-html client/server stuff over http usi
I think integration with Apache Axis would be the way to go here.
On 8/5/05, Jonathan Locke <[EMAIL PROTECTED]> wrote:
>
> i want to be able to do non-html client/server stuff over http using
> wicket. this is
> especially useful in having a java applet talk to its originating server
> in the pr
i want to be able to do non-html client/server stuff over http using
wicket. this is
especially useful in having a java applet talk to its originating server
in the presence
of firewalls that block everything but port 80.
in particular i want to send simple representations of database object
That would definetely rock, but probably wouldn't benefit all types of
web-apps. Maybe something pluggable with a few default implementations would
be the best.
-Igor
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Jonathan Locke
> Sent: Friday
auto-breadcrumbs would be kindof neat though wouldn't it?
Phil Kulak wrote:
Ah, got it.
On 8/5/05, Jonathan Locke <[EMAIL PROTECTED]> wrote:
no. it should be some kind of abstraction that's relevant to the problem.
that abstraction has not been worked out.
Phil Kulak wrote:
Isn't
Eelco mentioned that this was possible, but I don't remember hearing
how to do it. Basicly, enabling the FeedbackPanel to just run down the
whole page disregarding any IFeedbackBoundaries. Thanks!
---
SF.Net email is Sponsored by the Better Soft
Ah, got it.
On 8/5/05, Jonathan Locke <[EMAIL PROTECTED]> wrote:
>
> no. it should be some kind of abstraction that's relevant to the problem.
> that abstraction has not been worked out.
>
> Phil Kulak wrote:
>
> >Isn't it a LinkedHashMap? That gives you all the functionality of a
> >stack, pl
Hmm.. Maybe the bookmarkable link should properly escape page
parameters... (at least replacing & for &)
-Matej
[EMAIL PROTECTED] wrote:
Well, let me try to be more clear with code.
PageParameters pParams = new PageParameters();
pParams.put("name", "a&b");
BookmarkablePageLink link = new Bo
no. it should be some kind of abstraction that's relevant to the problem.
that abstraction has not been worked out.
Phil Kulak wrote:
Isn't it a LinkedHashMap? That gives you all the functionality of a
stack, plus random access.
On 8/5/05, Jonathan Locke <[EMAIL PROTECTED]> wrote:
that w
Philip,
To be fair, I think the problem has more to do with my ignorance of
Wicket than a problem with the error message. I'm a new user, but am
getting better. The error message did give me an idea of what was going
on; the message in the mailing list just gave me a concrete way to fix it.
Tha
Isn't it a LinkedHashMap? That gives you all the functionality of a
stack, plus random access.
On 8/5/05, Jonathan Locke <[EMAIL PROTECTED]> wrote:
>
> that was the idea a long time ago. just never got to it.
>
> this is part of the reason why pagemap is a private implementation detail.
> we kn
that was the idea a long time ago. just never got to it.
this is part of the reason why pagemap is a private implementation detail.
we knew it wasn't finished. page stack vs. page map is part of the reason.
jon
Igor Vaynberg wrote:
If it was a true stack we could use it for breadcrumbs!
So do we have a final decission about that now?
Cu,
Dave
Johan Compagner wrote:
any idea for this?
Because now ListView is always attached to the row (the thing that
iterates)
So if you want set the table or ul non visible when there are no rows.
We have to encapsulate list inside a panel (my
Martijn,
I am using Wicket 1.1.-b2 release. Yes, I use the Wicket jar from rhe
distribution.
Dzenan
Dzenan,
The Tree component itself has images (see source pasted below). I don't
know why you get a NPE though. What kind of Wicket set up are you using?
Do you use the wicket jar from the
Well, let me try to be more clear with code.
PageParameters pParams = new PageParameters();
pParams.put("name", "a&b");
BookmarkablePageLink link = new BookmarkablePageLink ("aLink",
MyPage.class,pParams);
And in MyPage.java, I retrieve the "name" parameter and display it in a
text field.
Thus,
If it was a true stack we could use it for breadcrumbs!
-Igor
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Phil Kulak
> Sent: Thursday, August 04, 2005 11:08 PM
> To: wicket-user@lists.sourceforge.net
> Subject: [Wicket-user] Why is the pag
I'm new to Wicket, but in HTML the '&' character is used to begin
character codes. To actually display '&' use: &
So in your example "a&b" should give you the result you want.
Troy
On Fri, 2005-05-08 at 11:45 -0400, [EMAIL PROTECTED] wrote:
> Hi,
>
> I'm setting a parameter using the PagePara
Hi,
I'm setting a parameter using the PageParameter class with value containing
a '&' character but when I retrieve this value to display it in a form
field I get only the first part before the '&'. In otherwords, setting
"a&b", on retrieval I get only "a". How do I remedy this?
Francis
Dzenan,
The Tree component itself has images (see source pasted below). I don't
know why you get a NPE though. What kind of Wicket set up are you using?
Do you use the wicket jar from the distribution, or did you build one
yourself?
Martijn
public abstract class Tree extends AbstractTree i
Hi,
I have a tree without images and I still get the following error:
Exception in thread "main" java.lang.ExceptionInInitializerError
at
org.wicket.urls.app.view.category.CategoriesTreeState.main(CategoriesTreeState.java:129)
Caused by: java.lang.NullPointerException
at
wicket.markup.h
any idea for this?
Because now ListView is always attached to the row (the thing that
iterates)
So if you want set the table or ul non visible when there are no rows.
We have to encapsulate list inside a panel (my example is not quite
right ofcourse
because the listview doesn't belong to the Fe
I think the point is, for the user we want to make it as easy as
possible. The solution described by Johan, IMO is possible, but of
course not very nice. It would fix the Formfeedback problem, but we
should think about a more general solution, as this is a problem not
only for FeedbackPanels. It mi
Well, at a guess, it's either that you've not got the the hierarchial
structure of TreeNodes correct or somehow the CSS isn't matching...
(If you've got Firefox, try View/Page Style/No Style on the tree
example to compare.)
The two really relevent parts of the CSS are the
.treerow {
dis
hmm seems to me not that hard (but maybe i am not seeing everything.)
change this:
public FeedbackPanel(final String id)
{
super(id);
this.messageListView = new MessageListView("messages");
messageListView.setVersioned(false);
add(messageListView);
}
into this:
This isn't as trivial as might seem. Eelco said something about pull
models being the biggest problem.
There is already a bug report in place for this:
http://sourceforge.net/tracker/index.php?func=detail&aid=1219458&group_id=119783&atid=684975
Martijn
Johan Compagner wrote:
this needs
Thanks, i grabbed it from the CVS
Dipu
- Original Message -
From: "Martijn Dashorst" <[EMAIL PROTECTED]>
To:
Sent: Friday, August 05, 2005 10:46 AM
Subject: Re: [Wicket-user] Wicket Extension
Source
> When anonymous CVS access doesn't work, please
When anonymous CVS access doesn't work, please file a support request
with the sourceforge staff.
CVS access instructions can be found here:
http://wicket.sourceforge.net/cvs-usage.html
or here
http://sourceforge.net/cvs/?group_id=119783
Martijn
Dipu wrote:
Hi ,
Can i grab the source
Hi ,
Can i grab the source tree for wicket-extensions
from the cvs repository ?
When i try to do that as anonymous
user, authorization is failing.
Can anyone please give me the correct instruction
set for checking out the wicket-extensions source tree.
Thanks
Dipu
this needs to be fixed by introducing a component for the tag:
And that component should set itself visible on messages or not.
If you want to fix this please send in a patch :)
johan
David Liebeherr wrote:
Hi all!
When i have a feedbackPanel with no messages then there is still an
list
i must say that i pretty much like this implementation. There is no much
wrong with it.
I changes secure to x so that the url is even shorter. And i personally
don't mind what it is called.
johan
Juergen Donnerstag wrote:
WebRequestWithCryptelUrl ist highly experimental and thus no one will
Of course, it all becomes a lot easier when I realise that I'm not
restricted to a single block...
/Gwyn
On 04/08/05, Matej Knopp <[EMAIL PROTECTED]> wrote:
> It is possible, I've done it once :)
> But the entire script has to be a label body.
>
>