Re: Infinite scroll

2014-07-02 Thread haiko

Thanks for the pointer. I am going to look into it.

Haiko
Martin Grigorov  schreef:


Hi,

Find a JavaScript solution that provides the functionality you need and
integrate it with Wicket.
https://github.com/l0rdn1kk0n/wicket-bootstrap provides integration for
http://infinite-scroll.com -
https://github.com/l0rdn1kk0n/wicket-bootstrap/blob/master/bootstrap-core/src/main/java/de/agilecoders/wicket/core/markup/html/bootstrap/navigation/InfiniteScrollingBehavior.java#L24

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Wed, Jul 2, 2014 at 10:32 AM, Haiko  wrote:


Hi,

I have to create an infinite scrolling list with support for touch events.
Has anyone experience or suggestions how to do that in wicket?

Haiko






-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Infinite scroll

2014-07-02 Thread Haiko
Hi,

I have to create an infinite scrolling list with support for touch events. Has 
anyone experience or suggestions how to do that in wicket?

Haiko

autocomplete + ajaxformcomponentupdate - mouseselection not working after error

2014-04-04 Thread haiko


Hi wicketusers,

I have an autocomplete textfield with an  
AjaxFormComponentUpdatingBehavior attached for the 'change' event.
After an error on the input the update is handled in the onError  
method --> ( some pseudocode )


autocompletefield.add(new AjaxFormComponentUpdatingBehavior("change") {

.

protected void onError(AjaxRequestTarget target,  
RuntimeException re) {
   autocompletefield.add(new  
AttributeModifier(CLASS_ATTRIBUTE, AUTOCOMPLETE_INVALID_CLASS));

   target.add(autocompletefield);
}

Here is the autocompletefield replaced by an updated version with a  
new class attribute.


The problem is that a mouseselection of a listitem in the dropdown is  
not selected. A mouseselection just closes the autocomplete window.  
Selection with the keyboard works just fine.


Any suggestions how to tackle this problem?

Thanks in advance,

Haiko van der Schaaf



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Best practice for updating JPA object without persisting changes

2014-03-05 Thread haiko

Hi Chris,

I would go for option 4. This is how I implement such cases. It has an  
explicit distinction between states 'previewMode' and 'commited Mode'.  
Looks like more coding, but actually is clear about distinction  
between preview and saved. And that would help the programmer that  
picks this code up a half year from now.


My 2 cents.

Best,

Haiko

Chris Snyder  schreef:


I'm dealing with an issue that I'm sure has been solved by many people on
this list, but I'm struggling to ascertain the best way to solve it.

I'm working on implementing in-place-edit functionality for some of our
site content. The content is stored in a database and mapped via JPA. The
edit form has the JPA entity as the backing model object.

One of the features I'm implementing is the ability to preview what's been
entered in the form without the updates being committed to the database
(until the user explicitly clicks on the "Save" button). I can think of a
few ways to accomplish this:

1. Rollback the transaction when not saving - This would require me to
manage the transaction manually (right now, they're being managed
automatically by Guice's PersistFilter).

2. Detach the object from the persistence context, merge it to save - This
seems like the most elegant solution, but I can see how there could be
issues (not intractable) with lazy loading.

3. Prevent the form from updating the model until save - This would break
my preview panel, and seems to be contrary to how forms normally behave.

4. Copy the data into a non-managed DTO, copying it back to the JPA object
on save - Would require a lot of clone/copy code.

This seems like such a common problem to solve - I think my relative
unfamiliarity with JPA is the main stumbling block here. How have others
implemented it? Is there a best-practice pattern that my Googling didn't
discover?

Thanks in advance for the help. I hope that it isn't too off-topic since it
is mainly JPA-related.

Best,
Chris






-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Translate wicket app to new domain

2014-02-24 Thread haiko

Hi Tron,

If you mean a new domain on a object level, you could try to create an  
abstract level of your domain which fits animals and the other domains  
and have wicket components and models use that.


Regards,

Haiko

Tron Walseth  schreef:


Hi all

We have made a wicket app for a very specific domain (animal tracking)

Now we have multiple customer requests for completely different  
domains, but the functionality is mainly the same.


Is there an easy way of translating our web pages to new solution domains?

Tron






-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: reinitialize Page on session timeout with query param

2014-01-03 Thread haiko

Martin,

Thanks for your answer, that clarifies a lot.

I think your suggestion would be an improvement to deal with  
situations as I described.
Maybe a special wicket prefix for parameters would help to  
differentiate between parameters.
Maybe an option for a bookmarkable page can be created where you  
choose a strategy for session timeout/ page expiration? Maybe at  
mounting time?


I tried also to recreate the page with a RedirectPage(url) with url  
--> makeUrl(PageA.class, PageParams ), but still the request params  
are dropped. I would expect that Wicket then respect the query  
parameters.


Anyway, hope that Wicket 7 handles this better.


Martin Grigorov  schreef:


Hi,

The parameters are removed because most of the time they are not what you
would expect to be.
Initially you load the page with ?param=xxx.
Then later (after the expiration time) you click on a link in this page,
and this link may or may not have param=xxx in its url. But most probably
it has something like: ?2-3.ILinkListener.2-foo-bar (and probably
¶m2=yyy). Wicket needs to drop the "2-3.ILinkListener.2-foo-bar"
parameter because it points to a component/behavior that may not be in the
component tree in the page's initial state, e.g. this component may be
added only when some condition is fulfilled.
Instead of failing immediately with PageExpiredException, as a best effort
Wicket just creates a new instance of the page ignoring the request's
parameters.

These tickets are related to this behavior:
https://issues.apache.org/jira/browse/WICKET-5068
https://issues.apache.org/jira/browse/WICKET-5001

An improvement (?) that I will investigate for Wicket 7 is to drop only the
special parameter (2-3.ILinkListener.2-foo-bar) and leave all other params.
Additionally we can add a new flag/boolean explaining that the page has
been recreated. Something like org.apache.wicket.Page#wasCreatedBookmarkable


Martin Grigorov
Wicket Training and Consulting


On Fri, Jan 3, 2014 at 12:12 PM,  wrote:



Dear wicket users,

I have a page with PageParameters which I am trying to recreate after a
session timeout. I want to recreate the page after a session timeout with
the input of the query param of the url. The first session timeout I can
get the query param from the url and it succeeds in rendering, but the
response omits the query param in the url so the next session timeout
rendering fails.

I mount the page ( Wicket 6 ) in the application in this manner -->
mount(pageA, PageA.class)

constructor PageA --> PageA(PageParameters params)

url --> /pagea?param=
url after session timeout--> /pagea

Is there a way to recreate a page with query parameters after session
timeout? Why is the query param omitted in the response after an session
timeout?

Thanks in advance,

Haiko van der Schaaf




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org








-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



reinitialize Page on session timeout with query param

2014-01-03 Thread haiko


Dear wicket users,

I have a page with PageParameters which I am trying to recreate after  
a session timeout. I want to recreate the page after a session timeout  
with the input of the query param of the url. The first session  
timeout I can get the query param from the url and it succeeds in  
rendering, but the response omits the query param in the url so the  
next session timeout rendering fails.


I mount the page ( Wicket 6 ) in the application in this manner -->  
mount(pageA, PageA.class)


constructor PageA --> PageA(PageParameters params)

url --> /pagea?param=
url after session timeout--> /pagea

Is there a way to recreate a page with query parameters after session  
timeout? Why is the query param omitted in the response after an  
session timeout?


Thanks in advance,

Haiko van der Schaaf




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: break out inlineframe with form submission

2013-10-25 Thread haiko

Hi Martin,

Martin Grigorov  schreef:



How can I have an Ajax submit with the same behavior as 'target="_blank"'?



The question is: does it need to be Ajax submit at all ? With non-Ajax
submit the '_blank' will be used and the current page with the iframe won't
be reloaded.

If you want to be Ajax submit then do something like:
target.appendJavaScript("window.open('', "+newUrl+")")




For rendering on errors I need ajax behavior in the InlineFrame, so I  
will try the javascript option. Thanks for your feedback.


Haiko




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: break out inlineframe with form submission

2013-10-25 Thread haiko

Hi Martin,

For clarification, the problem is that the result is rendered in the  
inlineFrame ( IFrame ).

How can I have an Ajax submit with the same behavior as 'target="_blank"'?


Martin Grigorov  schreef:


Hi,


On Fri, Oct 25, 2013 at 11:40 AM,  wrote:


Dear Wicketeers,

I am puzzling how to break out of an inlineFrame ( IFrame ) on an form
submission. I have an a Form in a InlineFrame. The result of submitted this
form should be opening a new tab/ page.

The code:

Form form = new Form("form")



AjaxSubmitLink submitButton = new AjaxSubmitLink("submitButton", form) {

@Override
protected void onSubmit(AjaxRequestTarget target, Form form) {


getRequestCycle().**scheduleRequestHandlerAfterCur**rent(new
RedirectRequestHandler(newUrl)**);
}
  }

HTML:





The problem is that you use AjaxSubmit and thus 'target="_blank"' is not
used at all.




 



Has anyone dealt with such an issue or has any pointers how to approach
this issue?

Regards,

Haiko









--**--**-
To unsubscribe, e-mail:  
users-unsubscribe@wicket.**apache.org

For additional commands, e-mail: users-h...@wicket.apache.org








-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



break out inlineframe with form submission

2013-10-25 Thread haiko

Dear Wicketeers,

I am puzzling how to break out of an inlineFrame ( IFrame ) on an form  
submission. I have an a Form in a InlineFrame. The result of submitted  
this form should be opening a new tab/ page.


The code:

Form form = new Form("form")



AjaxSubmitLink submitButton = new AjaxSubmitLink("submitButton", form) {

@Override
protected void onSubmit(AjaxRequestTarget target, Form form) {


	getRequestCycle().scheduleRequestHandlerAfterCurrent(new  
RedirectRequestHandler(newUrl));

}
  }

HTML:



 



Has anyone dealt with such an issue or has any pointers how to  
approach this issue?


Regards,

Haiko









-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: ajaxlink in ListItem not working

2013-09-06 Thread haiko

Mateusz,

In my case it turned out that it was a CSS issue. The link had no body  
to click on. The click was on the listitem. When i add the attribute  
"style='display:block'"


style="display:block">

to the link then the link could finally receive the click. Maybe this  
applies also in your case.

Good luck!

Regards,
Haiko
Mateusz Mieszkowski  schreef:


Hi,

I have similar problem. What's more, my code worked fine before  
migration to 6.10.0 (worked on 5.10.0).

Now, when I click the link, nothing happens.

I haven't got time to investigate this in more detail but just  
letting you know that this may not be something obvious.


Cheers,
Mateusz

-Original Message-
From: ha...@dds.nl [mailto:ha...@dds.nl]
Sent: Monday, August 26, 2013 2:05 PM
To: users@wicket.apache.org
Subject: Re: ajaxlink in ListItem not working

Sven,

No, I forgot to change the names in the code. The names in the  
markup and java code are the same.


Sven Meier  schreef:




Wicket users,

I got an AjaxLink in a ListItem, but there is no response when
clicking. This is the markup code


 
   #ff
 


Java code

 ListView colorView = new ListView("kleuren",
getKleuren()) {

@Override
protected void populateItem(ListItem item) {
String color = (String) item.getModelObject();
   AjaxLink selectColor = new AjaxLink("selectLink",
Model.of(Color)) {
   @Override
   public void onClick(AjaxRequestTarget target) {
   logger.debug("click color");
   }
   };

   Label kleurLabel = new Label("kleur", kleur);
   selectKleur.add(kleurLabel);
   item.add(selectKleur);

   }
   };

   add(colorView);

I can see javascript generated for the links in the items, but
somehow this is not triggered.

javascript code:

...
(function(){Wicket.Ajax.ajax({"u":"./customizer?1-1.IBehaviorListener
.0-customizerForm-stijlPanel-colorSelectiePanel-colorSelectie-submitColor","e":"click","c":"submitColor25"});})();. Anybody has an idea or experience with ajaxlinks in listitems? How to debug  
this?




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: ajaxlink in ListItem not working

2013-08-26 Thread haiko

Sven,

No, I forgot to change the names in the code. The names in the markup  
and java code are the same.


Sven Meier  schreef:




Wicket users,

I got an AjaxLink in a ListItem, but there is no response when  
clicking. This is the markup code



 
   wicket:id="color">#ff

 


Java code

 ListView colorView = new ListView("kleuren",  
getKleuren()) {


@Override
protected void populateItem(ListItem item) {
String color = (String) item.getModelObject();
   AjaxLink selectColor = new AjaxLink("selectLink",  
Model.of(Color)) {

   @Override
   public void onClick(AjaxRequestTarget target) {
   logger.debug("click color");
   }
   };

   Label kleurLabel = new Label("kleur", kleur);
   selectKleur.add(kleurLabel);
   item.add(selectKleur);

   }
   };

   add(colorView);

I can see javascript generated for the links in the items, but  
somehow this is not triggered.


javascript code:

...
(function(){Wicket.Ajax.ajax({"u":"./customizer?1-1.IBehaviorListener.0-customizerForm-stijlPanel-colorSelectiePanel-colorSelectie-submitColor","e":"click","c":"submitColor25"});})();. Anybody has an idea or experience with ajaxlinks in listitems? How to debug  
this?




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



ajaxlink in ListItem not working

2013-08-26 Thread haiko


Wicket users,

I got an AjaxLink in a ListItem, but there is no response when  
clicking. This is the markup code



  
wicket:id="color">#ff

  


Java code

  ListView colorView = new ListView("kleuren", getKleuren()) {

 @Override
 protected void populateItem(ListItem item) {
 String color = (String) item.getModelObject();
AjaxLink selectColor = new AjaxLink("selectLink",  
Model.of(Color)) {

@Override
public void onClick(AjaxRequestTarget target) {
logger.debug("click color");
}
};

Label kleurLabel = new Label("kleur", kleur);
selectKleur.add(kleurLabel);
item.add(selectKleur);

}
};

add(colorView);

I can see javascript generated for the links in the items, but somehow  
this is not triggered.


javascript code:

...
(function(){Wicket.Ajax.ajax({"u":"./customizer?1-1.IBehaviorListener.0-customizerForm-stijlPanel-colorSelectiePanel-colorSelectie-submitColor","e":"click","c":"submitColor25"});})();.

Anybody has an idea or experience with ajaxlinks in listitems? How to  
debug this?




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Internal frame in Wicket Page to external website

2013-08-23 Thread haiko

Gabriel,

I am sorry, it must be InlineFrame -->  
http://wicket.apache.org/apidocs/1.4/org/apache/wicket/markup/html/link/InlineFrame.html


It used to be InternalFrame in Wicket 1.3.

Haiko
Gabriel Landon  schreef:


Haiko,

I'm not aware of an InternalFrame class in wicket.
In which package did you find it?

Reagrds,

Gabriel.



--
View this message in context:  
http://apache-wicket.1842946.n4.nabble.com/Internal-frame-in-Wicket-Page-to-external-website-tp4661032p4661041.html

Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Internal frame in Wicket Page to external website

2013-08-22 Thread Haiko
you can use InternalFrame class in wicket.

MartinoSuperman schreef:

>Hi,
>
>I am building a website in Wicket.
>
>I would like to make an iframe that points to an external website.
>
>Does someone know what code I have to use for that in Java?
>
>Thank you in advance!
>
>Martino
>
>
>
>--
>View this message in context: 
>http://apache-wicket.1842946.n4.nabble.com/Internal-frame-in-Wicket-Page-to-external-website-tp4661032.html
>Sent from the Users forum mailing list archive at Nabble.com.
>
>-
>To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>For additional commands, e-mail: users-h...@wicket.apache.org
>


RE:problem header contribution with ajax

2013-08-21 Thread haiko


Martin,



...
add(mystyle = new Label("myStyle", content))
...
target.add(mystyle)



The label should be then placed in the body section, right?
Is this possible?

I think it is not desirable to plaec a style tag in the body as it is  
not valid HTML.



Haiko


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: problem header contribution with ajax

2013-08-21 Thread haiko

Martin,



...
add(mystyle = new Label("myStyle", content))
...
target.add(mystyle)



The label should be then placed in the body section, right?
Is this possible?

Haiko


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: problem header contribution with ajax

2013-08-20 Thread haiko


Martin Grigorov  schreef:

Hi Martin,

Thanks for your quick answer.



You cannot replace header contributions with the same HTML id attribute.
Wicket checks whether the contribution is already in the page and ignores
it.


Ok, that explains a lot.



You can use normal Label component to be able to replace it in Ajax
responses.


I am not fully understanding this, could you give more detail about  
the suggested solution?


thanks,

Haiko


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



problem header contribution with ajax

2013-08-20 Thread haiko


Dear wicket-users,

I notice that a header contribution by a panel is not rendered in the  
following case. An inline CSS in the head section is first rendered by  
switching tabs




when i rerender the panel with a slighty different header  
contribution, then panel is rerendered but the header contribution is  
not picked up.


id="style.widget.titel" >

Has anyone ideas how to debug this? Is it not possible to replace a  
header contribution with the same ID?


thanks in advance,

Haiko




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: ajax update page in iframe

2013-07-10 Thread haiko


Thanks for your reply Paul.

The usecase is that the outer page has options to configure the inner  
page. On selecting an option in the outer page the inner page should  
be refreshed so the user can see how it looks. I think the usecase  
justifies using an iframe on a conceptual level, although I agree you  
should rarely use an iframe.


I am afraid Wicket probably has the rule that only one Page at the  
time can be served to an user.
A long story short, i replaced the iframe with a Panel that represents  
the inner page and all AJAX behavior works. I am really glad with  
wicket events, because they are particulary usefull in this usecase.


Regards,

Haiko van der Schaaf


Paul Bors  schreef:

Well, have you tried updating the iframe  by itself? Use a timer  
event and see if that works fist.


Then try to write the JavaScript which would refresh the iframe from  
within the parent HTML doc.


Now remember, as far as I know those two pages are equivalent of  
having one user session with the two pages open in different tabs.


If you want to refresh the inner one use the Ajax target and add to  
it the inner component. If you want to refresh the inner one from  
the outer one, use panels since is simpler :)


I haven't used iframes since the late 90's when CSS liked in big and  
HTML tables can be styled really nice.


Take a look at the wicket quick start to get an idea of a nice  
layout with scroll bars of a "inner page".


~ Thank you,
   Paul C Bors

On Jul 8, 2013, at 18:17, ha...@dds.nl wrote:



Hi,

I have an unusual construction. I have a main Wicket Page with an  
InlineFrame ( iframe ) referring to another Wicket Page. Now I want  
to update by ajax the Page in the InlineFrame on userinput in the  
main Page.


I seem to get a ajax call to the new page with updated data, but  
the content of the inline frame in the main page is not refreshed.


Can this be done in Wicket? How should I approach this? Or should I  
use a Panel?


Regards,

Haiko van der Schaaf


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



ajax update page in iframe

2013-07-08 Thread haiko


Hi,

I have an unusual construction. I have a main Wicket Page with an  
InlineFrame ( iframe ) referring to another Wicket Page. Now I want to  
update by ajax the Page in the InlineFrame on userinput in the main  
Page.


I seem to get a ajax call to the new page with updated data, but the  
content of the inline frame in the main page is not refreshed.


Can this be done in Wicket? How should I approach this? Or should I  
use a Panel?


Regards,

Haiko van der Schaaf


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: A/B testing with wicket

2012-04-19 Thread Haiko
Is this not a javascript thing were div containers are shuffled? I can imagine 
you can do it with wicket, but code would be pretty complex. My advice is use 
javascript. That way it is easier to seperate a/b logic from other logic

Decebal Suiu schreef:

>Hello
>
>Any advice how can I implement the A/B testing
>(http://en.wikipedia.org/wiki/A/B_testing) in wicket. Anybody already
>implemented this concept in an ecommerce or page landing site?
>
>Thanks,
>Decebal
>
>--
>View this message in context: 
>http://apache-wicket.1842946.n4.nabble.com/A-B-testing-with-wicket-tp4571946p4571946.html
>Sent from the Users forum mailing list archive at Nabble.com.
>
>-
>To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>For additional commands, e-mail: users-h...@wicket.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wiquery experiences

2011-04-06 Thread haiko

Hi,

We are thinking of using wiquery for a project. We are interested in  
the experiences of people using it. Does wiquery work in the major  
browsers (IE7, IE8, IE9, FF3 and Chrome)? Are there any complications  
when different versions of jquery are used on other places in the  
HTML? What is the version of Wicket you used it?


Please share your experiences.

Thanks in advance,

Haiko van der Schaaf


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: File upload progress bar

2011-02-06 Thread Schaaf van der, Haiko H (NSC)
Ik kom het aankomende week ophalen.

Haiko van der Schaaf 

NS Reizigers
CC-Internet, Business Systemen 

Laan van Puntenburg 100
Postbus 2025
3500 HA Utrecht 

T 06 - 18515494
www.ns.nl 

 

-Oorspronkelijk bericht-
Van: Valentin Avksentyev [mailto:v...@360works.com] 
Verzonden: vrijdag 4 februari 2011 14:18
Aan: users@wicket.apache.org
Onderwerp: Re: File upload progress bar

So has anyone out there has been able to get the upload progress bar
working?  If so, please advise.

I definitely don't mind putting together a quickstart, are there
directions for that anywhere?

-Valentin

On Feb 3, 2011, at 10:18 AM, Valentin Avksentyev wrote:

> No I'm testing on my own machine, with a 300Mb file, in fact Chrome
gives me upload feedback, but nothing from the upload progress bar.
> 
> Here is the code I'm using:
> 
> I'm overriding newWebRequest in my Application class:
> @Override
>   protected WebRequest newWebRequest(HttpServletRequest
servletRequest)
>   {
>   return new UploadWebRequest(servletRequest);
>   }
> 
> Here is the code in my upload panel class:
>   Form uploadform = new Form("fileUploadForm")
{
>   @Override
>   protected void onSubmit() {
>   final FileUpload upload =
fileUploadField.getFileUpload();
>   if (upload != null) {
>   try {
>   File newFile = new
File(uploadFolder, upload.getClientFileName() );
>   // Save to new file
>   newFile.createNewFile();
>   upload.writeTo(newFile);
>
_processSelection(server, newFile, destFolder);
>   } catch (Exception e) {
>   throw new
RuntimeException("Unable to write file");
>   }
>   } else {
>   throw new RuntimeException(
"file selected for upload is empty" );
>   }
>   }
>   };
>   uploadform.setMultiPart(true);
>   uploadform.setMaxSize(Bytes.gigabytes(1));
> 
>   uploadform.add(fileUploadField = new
FileUploadField("fileInput"));
>   uploadform.add(new UploadProgressBar("progress",
uploadform));
>   uploadform.add( new UploadValidator(fileUploadField,
prefix) );
>   add( uploadform );
> 
> 
> On Feb 3, 2011, at 12:37 AM, Timo Schmidt wrote:
> 
>> On Wed 02.02.2011 23:49, Valentin Avksentyev wrote:
>>> On Feb 2, 2011, at 2:22 PM, Valentin Avksentyev wrote:
>>>> 
>>>> The files get uploaded just fine in my app, but no progress is 
>>>> tracked.
>>>> 
>>>> It's definitely hard to verify if the progress bar works in the 
>>>> example sites, with a limit of 100k, I haven't tried throttling my 
>>>> upload speed, I guess I should try that next.
>>> 
>>> Any suggestions?
>> 
>> Is your application runnning behind a proxy? If so, maybe the entire 
>> client request will be buffered by the proxy before being passed on 
>> to the backend proxied servers. As a result, upload progress meters 
>> will not function correctly if they work by measuring the data 
>> received by the backend servers.
>> 
>> -Timo
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Links

2010-02-24 Thread haiko van der schaaf
"Is there an easy way to point two wicket:id link tags to the same link"

>From a HTML and thus wicket component perspective the links are not the
same. Only the behaviour is the same.




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



XSS and wicket. Wicket helps !

2010-02-22 Thread haiko van der Schaaf
Just FYI,

Wicket is mentioned as a framework to mitigate the number #1 Dangerous
Programming Error of 2010, XSS. See the detailed
description<http://cwe.mitre.org/data/definitions/79.html>of the
threat. This is from the survey of MITRE The List of 2010 Most
Dangerous Programming Errors on TSS.

Gr. Haiko
-- 
http://www.cybersnippet.nl/


class/interface/enum containing string values for html tag attributes

2010-02-04 Thread haiko van der schaaf
Greetings, 

I am wondering if there is in wicket or another framework a
class/interface/enum containing string values for html tag attributes ? 

It would be great to use it for instance with SimpleAttributeModifier.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: brix and blogs

2009-12-22 Thread haiko
Fernando, 

I have written a blog entry on the basic elements of brix. See it here
http://www.cybersnippet.nl/blog/entry/brixcms. In the entry is also a
link to a live brix demo app. Let me know what you think about it.

Greetings, 

Haiko 

On Tue, 2009-12-22 at 18:17 -0200, Fernando Wermus wrote:
> Hi all,
>  I would like to know if there is someone writing about brix in some
> blog. As the info in brix page is poor, I am looking for another way to
> undersand better the cms.
> 
> Thanks in advance.
> 



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org