Just to quickly weigh in on the verbosity argument:As someone who has coded Java (and Perl, C++, etc) in every environment from individual projects to multinational finance systems, I will say that verbosity of code runs a far, far, distant third (or twentieth) to:1. Readability/Understandability,
Hi!
I have bytes[] stored in the db LONGBLOB column.
How do I make a clickable link for downloading the contents?
**
Martin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
see DownloadLink for inspiration
-igor
On Fri, May 23, 2008 at 11:36 PM, Martin Makundi
[EMAIL PROTECTED] wrote:
Hi!
I have bytes[] stored in the db LONGBLOB column.
How do I make a clickable link for downloading the contents?
**
Martin
What does this comment in the javadoc mean: If you need to stream
multiple files concurrently without blocking then you should use
shared resources?
How can shared resources be used in the context of a dynamic file
(i.e., bytestream)?
**
Martin
2008/5/24 Igor Vaynberg [EMAIL PROTECTED]:
see
AFAIK jQuery does not pollute at all object prototype.
Regarding the wicket way of doing ajax, it shouldn't be changed from
scratch. Eventually, small improvements and changes can be made.
Alex Objelean.
Matej Knopp-2 wrote:
Hi,
I don't think current wicket output is that bad, just look
Hi,
No I think(hope) I got it. I've implemented an example based on my earlier
created SecureLink example.
There's a DataView. The items area Locations. For each item a delete link is
created. Users with global
action permission can see and click the delete link for every Location. A user
Jonathan Locke wrote:
Personally, I don't see this use of Void as something even remotely close
to a reason to scrap it. I would happily use that construct every day. But
that's just me.
I completely agree with this and have found that specifying Void actually
makes me a lot more
+1
On Sat, May 24, 2008 at 8:09 AM, Daniel Walmsley [EMAIL PROTECTED] wrote:
Just to quickly weigh in on the verbosity argument:
As someone who has coded Java (and Perl, C++, etc) in every environment
from individual projects to multinational finance systems, I will say that
verbosity of
+1 on that too, except that I'd prefer the name GenericLink.
one problem though, suppose we have GenericWebMarkupContainer,
GenericPanel, GenericForm (maybe) etc, things like
findParent(Form.class) will no longer work, as it will have to be
findParent(GenericForm.class).
-Matej
On Sat, May 24,
Or maybe I took it too far and GenericLink and GenericButton would suffice :)
-Matej
On Sat, May 24, 2008 at 11:33 AM, Matej Knopp [EMAIL PROTECTED] wrote:
+1 on that too, except that I'd prefer the name GenericLink.
one problem though, suppose we have GenericWebMarkupContainer,
Matej Knopp-2 wrote:
Or maybe I took it too far and GenericLink and GenericButton would suffice
:)
Yeah, having components generic by default but making non-generic subclasses
for components that are *normally* used that way avoids the an explosion of
subclasses.
For example, I have
Hello Igor,
If I am using a PropertyModel for my Label,
new VisibleLabel(firstName, new PropertyModel(new ProfileModel(userId),
firstName))
then visibleLabel.getModelObjectAsString() returns the right value for the
firstName
property. The Model is the wrapper for the firstName value.
But if I
Hi,
WebMarkupContainer container = new WebMarkupContainer(container, new
CompoundPropertyModel(new ProfileModel(userId)));
add(container);
container.add(new Label(firstName) {
protected boolean isVisible() {
return !Strings.isEmpty(getModelObjectAsString());
}
});
The label will have a
Hello,
use a IResourceStream that returns the DB bytes as stream.
Then you can set this stream as new RequestTarget after a click.
new Link(clickMe) {
void onClick() {
IResourceStream s = {
@Override
InputStream getInputStream() { ...from DB...}
void close() {
On Sat, May 24, 2008 at 11:42 AM, John Patterson [EMAIL PROTECTED] wrote:
The reason I put LinkGeneric rather than GenericLink was simply so that the
two options would appear next to each other in code completions. But of
course in English GenericLink is more correct.
Good point regarding
:-| I do not know why but it is functions now!
Thanks Igor and Sven for the help
svenmeier wrote:
Hi,
WebMarkupContainer container = new WebMarkupContainer(container, new
CompoundPropertyModel(new ProfileModel(userId)));
add(container);
container.add(new Label(firstName) {
As a java user I never missed generics.
Following opinion is just what i feel...
a) ClassCastExceptions never wasted my time more than a few minutes.
b)Also the advantage of code that spoke for itself could only be achieved
through a good developer (generics is not the cure to this, and many can
thats funny, my primary usecase is to use link WITH a model. so why
dont we keep Link generified and have a subclass VoidLink.
i am also not a big fan of using class hierarchy essentially as a
typedef, seems like a nasty hack to me (which i am willing to live
with). perhaps we can have
Hi!
I have been developing some wicket form pages and debugging them with Firefox.
Now I switched to internet explorer (IE) and noticed that Wicket
identifies the wrong submit button. My markup is as follows:
button class=textButton wicket:id=addAttachmentimg
src=images/icon.gif
HI;
I have a disconnexion problem of my application with the following error
msgs :
Internal serveur error or Impossible to display window (in french :
impossible d'afficher la page)
logs errors (apache):
[23/May/2008:15:24:51] [Information] SiteMinder Agent
SiteMinder agent is running.
The problem is with the way you fetch the messages, they are not loaded
again , just fetched from the same folder instance each time. I guess the
folder instance isnt updated between requests.
On Fri, May 23, 2008 at 8:58 PM, Davidoff [EMAIL PROTECTED] wrote:
it just exists...it's in the code
I am currently in a project where we do everything with jQuery in the
frontend, simulating Wicket's AJAX input and using its AJAX output.
However, I would not advice in doing this until you have a strong grasp
of Wicket's form and AJAX handling. Having a good jquery programmer
helps too.
I don't buy the autocompletion as argument. Not with eclipse. It might
be difference when you do it first time and don't know the classes,
but every other time you just write GLink and eclipse autocompletes it
just fine.
-Matej
On Sat, May 24, 2008 at 3:17 PM, Gwyn Evans [EMAIL PROTECTED] wrote:
Is there any benefit to using something like JavaScriptReference? It
seems as though doing so would create a tight binding between the UI
and the application, kind of negating what I think is one of the main
benefits of Wicket. That being, UI people can work on straight HTML,
while the app
24 matches
Mail list logo