Re: Catch start and finish of upload process on MultiFileUploadField

2022-10-18 Thread Sandor Feher

Okay, the process is  clear now. Thank you.
The question is which method should I override to inject my code and 
show my panel when indicator shows up.




2022.10.18. 10:08 keltezéssel, Martin Grigorov írta:

On Tue, Oct 18, 2022 at 10:50 AM Sandor Feher  wrote:


Hi,

On Mon, Oct 17, 2022 at 1:23 PM Sandor Feher  wrote:


Now I use IndicatingAjaxButton for that but catching it within onSubmit
is late.


What do you mean with "is late" ?

As I realized when the first line of onSubmit function is executed the
file(s)  already get
uploaded.


When exactly do you need the notifications ?

When uploading process is started.


IndicatingAjaxButton starts showing the indicator before the form
submittion (i.e. when the process starts), then the files are uploaded, and
then when all the data is sent to the server the Form#onSubmit or onError
is called, and finally when the Ajax response is returned
IndicatingAjaxButton hides the indicator





--
Üdvözlettel/Kind Regards, Fehér Sándor


...Fehér Sándor...---....Sandor Feher
   fejlesztési vezetõ   --- development manager
   Blue System Kft. ---  Blue System Ltd.

..
http://www.bluesystem.hu  :http://www.adatmegorzo.hu  :
http://www.bluehosting.hu

..

Kérem gondoljon a környezetre mielõtt kinyomtatná ezt az e-mailt vagy
bármely csatolmányát.
Please consider the environment before printing this e-mail and any
associated attachments.



--
Üdvözlettel/Kind Regards, Fehér Sándor


...Fehér Sándor...---....Sandor Feher
 fejlesztési vezetõ   --- development manager
 Blue System Kft. ---  Blue System Ltd.
..
http://www.bluesystem.hu : http://www.adatmegorzo.hu : http://www.bluehosting.hu
..

Kérem gondoljon a környezetre mielõtt kinyomtatná ezt az e-mailt vagy bármely 
csatolmányát.
Please consider the environment before printing this e-mail and any associated 
attachments.


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



Re: Catch start and finish of upload process on MultiFileUploadField

2022-10-18 Thread Sandor Feher

Hi,

On Mon, Oct 17, 2022 at 1:23 PM Sandor Feher  wrote:


Now I use IndicatingAjaxButton for that but catching it within onSubmit
is late.




What do you mean with "is late" ?


As I realized when the first line of onSubmit function is executed the file(s)  
already get
uploaded.


When exactly do you need the notifications ?


When uploading process is started.


--
Üdvözlettel/Kind Regards, Fehér Sándor


...Fehér Sándor...---....Sandor Feher
 fejlesztési vezetõ   --- development manager
 Blue System Kft. ---  Blue System Ltd.
..
http://www.bluesystem.hu  :http://www.adatmegorzo.hu  :http://www.bluehosting.hu
..

Kérem gondoljon a környezetre mielõtt kinyomtatná ezt az e-mailt vagy bármely 
csatolmányát.
Please consider the environment before printing this e-mail and any associated 
attachments.


Catch start and finish of upload process on MultiFileUploadField

2022-10-17 Thread Sandor Feher

Hi,

I have a form which contains a MultiFileUploadField beside other input 
fields. (In this case uploading file(s) is optional. )


I would like to catch somehow the start and the end of upload process to 
let users know we do something with the files.


Now I use IndicatingAjaxButton for that but catching it within onSubmit 
is late.


This might be trivial but I did not find solution for it.

I made a quickstart project. 
https://github.com/sfeher/multiplefileuploadprogress


Wicket 7.18.0

Thank you !


--
Üdvözlettel/Kind Regards, Fehér Sándor


...Fehér Sándor...---Sandor Feher
 fejlesztési vezetõ   --- development manager
 Blue System Kft. ---  Blue System Ltd.
..
http://www.bluesystem.hu : http://www.adatmegorzo.hu : http://www.bluehosting.hu
..

Kérem gondoljon a környezetre mielõtt kinyomtatná ezt az e-mailt vagy bármely 
csatolmányát.
Please consider the environment before printing this e-mail and any associated 
attachments.


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



Re: AjaxSelfUpdatingBehaviour detaches my DataTable

2018-11-19 Thread Sandor Feher
Hi Sven,

Sorry, I did not notice your answer so far.
Okay. Let's try to  see things from different angle :)

Yes I use spring. I tried to reduce the number of unnecessary queries. To
achieve this I try to catch if my table filtered or a new item added or a
dropdownchoice changed and so on.

It works more or less but there is no method to catch an ajax table refresh
for example (Catching it in detach() method is bad practice you made me
sure)

Here is a simple DataProvider I use.  The question is that which point
should I reload data using customBo?

At size() or Iterator ?  What is the best practice for this ?







--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: AjaxSelfUpdatingBehaviour detaches my DataTable

2018-11-14 Thread Sandor Feher
Hi,

Sorry for the confusing.
Let me explain it more.
Let's suppose a simple CRUD page with a single DataTable and it's
dataprovider.
I need to refresh my datatable after a new item added.

So far I did it like this:

mw = new ModalWindow("modal");
mw.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() {
private static final long serialVersionUID = 1L;

@Override
public void onClose(AjaxRequestTarget target) {
dataTable.detachModels();
target.add(wm_bottom);
}
});

In my dataprovider I reloaded data when datatable (and dataprovider) got
detached.

@Override
public void detach() {
  myDAO.refreshData();
}

and every other cases when datatable filtered or cleared and so one.
And at this point AjaxSelfupdatingBehaviour comes in the picture. I can't
rely on ondetach method anymore because it's fired in every second not just
when it needed.

I hope I need a different approach to refresh my data but I did not figure
it out so far.

Regards,  Sandor 

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: AjaxSelfUpdatingBehaviour detaches my DataTable

2018-11-12 Thread Sandor Feher
Hi,

I feel a little bit dump but I can't fix it. 

At the moment it looks like if I want my DataTable get reloaded then I must
call explicitly a public method in my DataProvider. 

So far I simply called detachModel() on my DataTable and in detach method I
reloaded list using my DAO.
Because of AwareAjaxSelfUpdatingBehaviour (which is in my HeaderPanel which
is included by BasePage and every page classes extend the BasePage) all
pages get detached in every second.

TIA, Sandor

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: AjaxSelfUpdatingBehaviour detaches my DataTable

2018-10-30 Thread Sandor Feher
Hi Sven,

Ok, thanks.

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



AjaxSelfUpdatingBehaviour detaches my DataTable

2018-10-29 Thread Sandor Feher
Hi,


I succesfuly implemented my session expiration solution described in my
recent post:
http://apache-wicket.1842946.n4.nabble.com/Handling-session-timeout-properly-td4675541.html
and I use the same behavior for refreshing my NotificationPanel too.

My only problem/observation that AjaxSelfUpdatingBehaviour detaches my
DataTable/DataProvider too although it has nothing to do with them. (It
detaches at every 10 second when my Notification panel get refreshed).

I'm just wondering if it is the expected behaviour or I missed something.

I created a quickstart for demonstrating the situation.
Sorry for the mess, I did not have too much time to prettify but I hope you
will get the root point.

https://github.com/sfeher/selfupdatingbehavoiurquickstart

TIA, Sandor

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Validate before convert

2017-10-20 Thread Sandor Feher
Cool solution. Works like charm :), thanks!

s

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Validate before convert

2017-10-19 Thread Sandor Feher
Hi,

I have a form used for changing users' data e.g, mail address, password and
so one. I have a custom converter to convert clear text password to md5 hash
on the fly.
I set up some validators for password (length, complexity..) but the problem
is that the validator fires only after the input value get converted.

If I check the input within isModelChanged() then it works fine but I try to
avoid such solutions if possible.



  PasswordTextField pwd1 = new PasswordTextField("password") {

@Override
public  IConverter getConverter(Class type) {
return (IConverter) new Md5Converter() {

@Override
public Boolean isModelChanged() {
return u.getPassword() == null ||
!u.getPassword().equals(getInput());
}

};
}

};



TIA, Sandor

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Invalidate session on browser close

2017-02-23 Thread Sandor Feher
Well. Problem I seized might be a dead-end.  I could reproduce the issues
(User closes all the browser windows and then start the browser again. Then
he can reach the app without be forced to log in.) only on my own box using
jetty. At our testing environment (using tomcat 7) nor at our client we were
unable to reproduce this problem.
So my final conclusion that is works out of the box.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Invalidate-session-on-browser-close-tp4677157p4677173.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



Invalidate session on browser close

2017-02-21 Thread Sandor Feher
Hi,

I need for a solution to invalidate session on browser close. I found this
behaviour 
https://github.com/thombergs/wicket-pageexitwarning-example/blob/master/src/main/java/org/wickedsource/pageexit/PageExitLogoutBehavior.java

If I add it to my BasePage (all the other pages extend that) then my session
always get invalidated.
How can I do it properly ?

Wicket 6.26.0

TIA, Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Invalidate-session-on-browser-close-tp4677157.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: Refreshing my Notification panel's model

2016-09-23 Thread Sandor Feher
Hi Martin,

#updateAjaxAttributes() is neat solution works like a charm.
Thank you!!

Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Refreshing-my-Notification-panel-s-model-tp4675548p467.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



Refreshing my Notification panel's model

2016-09-22 Thread Sandor Feher
Hi,

Tightly coupled with  my previous topic

  
I'm looking for  a proper solution for refreshing my panel's model and show
if it must be showed.

In a nutshell I have a hibernate entity which handled a spring bean which
injected into my wicket app.
There is a notification panel which shows some messages to the users. At the
moment I refresh this panel using AjaxSelfUpdatingBehaviour. This method
besides costly but ruins my session timeout value too (my idle session never
expires).

I need a solution to check new messages using my spring bean and notify my
panel to refresh and show the messages.

TIA, Sandor




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Refreshing-my-Notification-panel-s-model-tp4675548.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: Handling session timeout properly

2016-09-22 Thread Sandor Feher
Hi Martin,

I checked up your code. I'm afraid this will not solve my problem because
does not detect "normal" user activity. Ie. when user click on some page
then the session timeout must be reset.
I'm pretty sure that I must change my approach how my notification panel
handled.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Handling-session-timeout-properly-tp4675541p4675547.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: Handling session timeout properly

2016-09-22 Thread Sandor Feher
Thanks, looks very useful!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Handling-session-timeout-properly-tp4675541p4675544.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



Handling session timeout properly

2016-09-22 Thread Sandor Feher
Hi,

My application have some AjaxSelfUpdatingTimerBehavior in its header panel
so my session never expires due to ajax requests. Somehow I would like to
get rid of it.
How is it possible to fence ajax request from the real request ? (As I
realized there is no way.)
I need an advice how to handle this screnario.

Wicket 6.24.0

TIA, Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Handling-session-timeout-properly-tp4675541.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: Wicket+Spring 4 integration

2015-09-26 Thread Sandor Feher
Hi, 

Finally I came over my problems. Now my 6.20.0 works fine together with
Spring 4.1.5 and Spring Security 4.0.2. 
My login page is mounted under /login. So the key was to define login-page
and more important the login-process-url.

Hope this might help to others who struggling with upgrade to Spring
Security 4.

 







--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-4-integration-tp4672031p4672048.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



Wicket+Spring 4 integration

2015-09-24 Thread Sandor Feher
Hi,

I'm just wondering when do you plan to support spring 4 in wicket-spring
module ?
I try to implement an Oauth2 server on top of my Wicket app and oauth2 (at
least 2.0.6 and above) requires spring 4. Right now I'm not able to upgrade
due to lack of wicket spring 4 support.

TIA., Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-4-integration-tp4672031.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: Wicket+Spring 4 integration

2015-09-24 Thread Sandor Feher
Sounds good. I have up to 15 pages , wicket 6, hibernate 4 and spring 3.
Not so simple but not a nightmare.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-4-integration-tp4672031p4672035.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: Wicket+Spring 4 integration

2015-09-24 Thread Sandor Feher
I tried to do but I experienced some problems. They might be related to
Spring but I'm not sure.
I use spring security. Default login page has changed in 4 so I set my
wicket app's login page.
Then login page appeared but there was no action made when I clicked submit
button.
I dig Springs migration guide but did not found any clue related to my
issue.
I reverted back to 3.2.5 and everything worked like expected.
So this is the whole story.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-4-integration-tp4672031p4672037.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: Wicket+Spring 4 integration

2015-09-24 Thread Sandor Feher
So this means if I want to use Spring 4 then I must upgrade to Wicket 7.
(Currently I use 6.20.0)

Can I do it safely ? Is 7.0 stable enough ?

TIA,Sandor 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-4-integration-tp4672031p4672033.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



Tomcat 7 SSL and getDesiredSchemeFor problem

2015-09-17 Thread Sandor Feher
Hi,

I don't know is it the appropriate channel I should ask but I hope somebody
can give me a pointer.
The sympthom is that super.getDesiredSchemeFor(pageClass) always returns
HTTP regardless https or http is in the url.
If I force Scheme.HTTPS then everything works fine.


TIA., Sandor

-
servlet.xml looks like this:










My Application's relevant part is this:

setRootRequestMapper(new HttpsMapper(getRootRequestMapper(), new
HttpsConfig()) {

@Override
protected Scheme getDesiredSchemeFor(Class pageClass) {
if (getConfigurationType() ==
RuntimeConfigurationType.DEVELOPMENT) {
LOG.info("Dev mode, always use HTTP");
return Scheme.HTTP;
} else {

Scheme sm=super.getDesiredSchemeFor(pageClass);
sm=Scheme.HTTPS;
LOG.info("not in development mode "+sm.name());
return sm;
}
}

});


 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Tomcat-7-SSL-and-getDesiredSchemeFor-problem-tp4671980.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: Tomcat 7 SSL and getDesiredSchemeFor problem

2015-09-17 Thread Sandor Feher
Hi,

No I did not. I would like to get both method (http and https) accessible.
There is no proxy used.

s

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Tomcat-7-SSL-and-getDesiredSchemeFor-problem-tp4671980p4671982.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



wicket-jquery-ui calendar locale question

2015-08-07 Thread Sandor Feher
Hi,


Now I'm checking if calendar component suits to our needs
(http://www.7thweb.net/wicket-jquery-ui/calendar/ExtendedCalendarPage?).

Is there any options which influence the locale behaviour of Calendar
component ?
For example in header section the year and month name order and so one.

TIA, Sandor


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-jquery-ui-calendar-locale-question-tp4671747.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: wicket-jquery-ui calendar locale question

2015-08-07 Thread Sandor Feher
Hi Sebastien,

Thanks for the quick response.
Now the picture is getting clear :).

So I need to use JavaScriptPackageResource to load corresponding lang-all.js
in my panel  do I ?

TIA, Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-jquery-ui-calendar-locale-question-tp4671747p4671749.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



Event driven DataTable refresh

2015-05-02 Thread Sandor Feher
Hi,

A have a WebMarkupContainer and a DataTable inside in it. 
I would like to refresh the datatable based on my spring bean's event. To
achieve this I added an AjaxSelfUpdatingBehaviour to container. My problem
is that I'm not able to control the refresh because
at onPostProcessTarget the refresh already taken.
So I'm looking for the proper way to do that.

TIA, Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Event-driven-DataTable-refresh-tp4670574.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: Event driven DataTable refresh

2015-05-02 Thread Sandor Feher
Thanks for the suggestions. The event the container or table need to be
refreshed on comes from a spring bean. The scenario is that if a user
uploads a file via web service then a the uploads panel need to be
refreshed. So I check the spring bean's state to see if an upload event
occured. If so the I need to refresh the table.
I was thinking about to put a hidden element into the container (eg. a
Label) add an ajaxselfupdatebehaviour and inside onPostProcessTarget refresh
the container conditionally.

TIA, Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Event-driven-DataTable-refresh-tp4670574p4670576.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: Simple message solution Wicket-Spring combined application

2015-04-23 Thread Sandor Feher
Hi Sebastien, 

It would worth a try but session scoped spring bean will fulfill all my
needs right know.
Thank you anyway!

Regards., Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Simple-message-solution-Wicket-Spring-combined-application-tp4670461p4670482.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: Simple message solution Wicket-Spring combined application

2015-04-23 Thread Sandor Feher
Hi Martin,

Thanks! That's it I was looking for. I use spring beans I inject to wicket
context so it should be trivial choice to me but I did not keep it in my
mind.

Regards., Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Simple-message-solution-Wicket-Spring-combined-application-tp4670461p4670481.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



Simple message solution Wicket-Spring combined application

2015-04-22 Thread Sandor Feher
Hi,

I'm looking for a simple and feasible message sending solution for my
application.
The main goal is that components (both wicket and spring) should be send
messages if a specific event occurs to users.
The message will be displayed at top of the page with help
AjaxSelfUpdatingBehaviour.
Spring messages are system wide. (Eg. all users should be notified) while
wicket ones can be session wide.
Wicket's event mechanism can be fine but my Spring based web service does
not know anything about wicket sessions (and should not of course).
I can do it via database table but I will cause overhead because of two
seconds refresh time I set in AjaxSelfUpdatingBehaviour.
So I'm looking for a more lightweight approach.

Thanks!

Regards., Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Simple-message-solution-Wicket-Spring-combined-application-tp4670461.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



Testing Wicket app with JMeter

2014-07-18 Thread Sandor Feher
Hi,

I must perform some load test for our application and just found JMeter
which seems suit our needs.
My problem is that the first step is logging in to the app and can not get
JMeter to manage it.
I ran a recording script process and everything looked fine but wicket
changes a hidden field name (which points to the current form's name) in my
login form so the another session gets another name of it.
I suspect this is why the login process does not work.
There is nothing magical in the login form. Username, pass and lang fields.
So I'm wondering if anybody used successfuly JMeter for this kind of
testing!


TIA., Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Testing-Wicket-app-with-JMeter-tp480.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: Page rendering from quartz job

2014-05-21 Thread Sandor Feher
That's nice and this is exactly what I do.
But I start my job from  init method of my Application class and there is no
RequestCycle there at initialization time. I suppose that because there is
no request has been sent to Application yet. (Nobody uses the application
because it just started).
I think this is why the mentioned examples do not work for me.
The question is where to start my quartz job to get RequestCycle ?

thnx., Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Page-rendering-from-quartz-job-tp4665860p4665969.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: Page rendering from quartz job

2014-05-20 Thread Sandor Feher
Huh guys, I just see the my topic became hot :).
So far so good. Now I get wicket application instance but RequestCycle is
null of course.
How can I get over that ?
Thnx!





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Page-rendering-from-quartz-job-tp4665860p4665962.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: Page rendering from quartz job

2014-05-20 Thread Sandor Feher
Sorry Martin!
My code mentioned based on your comment:

https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/core/util/string/ComponentRenderer.java#L46for

 pageHtml = ComponentRenderer.renderPage(pageProvider); 
throws 
org.apache.wicket.WicketRuntimeException: There is no application attached
to current thread
because  Application application = Application.get(); returns null

If I use Application application = Application.get(wicket);
then I get application instance but RequestCycle.get() also returns null.

Did I miss something or I go on completely wrong way ?

Thnx, Sandor






--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Page-rendering-from-quartz-job-tp4665860p4665964.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: Page rendering from quartz job

2014-05-19 Thread Sandor Feher
Yes. I would do it if possible within Wicket. If not then I will do it with a
html template file with simple search and replace constans way.
I just don't want to reinvent the wheel :)




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Page-rendering-from-quartz-job-tp4665860p4665932.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: Page rendering from quartz job

2014-05-19 Thread Sandor Feher
Ok. Let's say I get the reference. How can I render the page then ? 
Where should I put it ?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Page-rendering-from-quartz-job-tp4665860p4665933.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: Email template with css

2014-05-16 Thread Sandor Feher
Ok, thnx!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Email-template-with-css-tp4665788p4665793.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



Page rendering from quartz job

2014-05-16 Thread Sandor Feher
Hi,

I fired up some quartz jobs for sending notification emails at given time.
The job controller class is launched from my Application wget it get
initialized.
Almost everything works except of rendering mail's html body.
I would like to do it with wicket's pagerenderer but it throws the following
error:

org.apache.wicket.WicketRuntimeException: There is no application attached
to current thread DefaultQuartzScheduler_Worker-5

I know it has not happen by chance but my class knows nothing about page
rendering.
The question is how to achieve some elegant way ? 
I can choose different way but if possible I do it with wicket's page
renderer.
So please advice!

Regards., Sandor





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Page-rendering-from-quartz-job-tp4665860.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



FilterToolbar with composite PK problem

2014-05-13 Thread Sandor Feher
Hi,

I have an entity which has composite primary key with two fields. I need to
use one of them to filter.
In this case I need to fill this field everytime (though I want to filter
another field or fields).
If I don't fill this field then I get 'Filter field is required' message.
So the question is how to solve this problem ? Should I create some helper
class with limited number of fields ?

Thnx, Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/FilterToolbar-with-composite-PK-problem-tp4665751.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: FilterToolbar with composite PK problem

2014-05-12 Thread Sandor Feher
Hi,

Here is my entity's PK.




In my DataTable I added one field of PK to filter on.

columns.add(new TextFilteredPropertyColumnHrpBbstorzs,
Number,String(new ResourceModel(beosztottakform.torzsszam),
HrpBbstorzsPK.torzsszam, HrpBbstorzsPK.torzsszam));

If this field is part of filterform then I have to fill it when I need to
filter something. If I don'n fill this field (but others) then when I click
on Filter button I get this field is required.

In my case my DataTable's model and FilterForm model are the same. I created
a helper class for filtering and that works fine but I don't want to
duplicate my entities just for filtering purpose.
So I don't think my problem related the bug you've mentioned but I will have
a try with 6.16 after it will be released.

Thnx., 
  Sandor



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/FilterToolbar-with-composite-PK-problem-tp4665751p4665780.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



Email template with css

2014-05-12 Thread Sandor Feher
Hi,

I use WebPages for rendering my emails content. The above code works fine
but I can't get my css styles work in this way.

public String renderTemplate(WebPage webPage) {
BufferedWebResponse bufferedWebResponse = new
BufferedWebResponse(null);
webPage.getRequestCycle().setResponse(bufferedWebResponse);
webPage.render();

return bufferedWebResponse.getText().toString();
}

Whether I include them with wicket:link or add them at renderHead none of
them work.
I suspect this is why because my email client has nothing to do with
wicket's resources so this could not be work in this way.
If I add styles to every template then it works fine but I'm looking for
some more elegant way to accomplish this.

TIA, Sandor





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Email-template-with-css-tp4665788.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



Sorting datatable column with null values

2014-04-22 Thread Sandor Feher
Hi,

My question is how to sort/filter columns which have null values too ?
Should I check if null value in my comparator or is there other more elegant
way to do this ?

Thnx, Sandor



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Sorting-datatable-column-with-null-values-tp4665533.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: DDC and DataTable refresh

2014-04-19 Thread Sandor Feher
Yes, I knew the problem but did not find the solution. Made my dataprovider
abstract and the suggested abstract method solved the problem.

Thanks!

s

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DDC-and-DataTable-refresh-tp4665465p4665476.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



DDC and DataTable refresh

2014-04-18 Thread Sandor Feher
Hi,

I have a DDC and a DataTable. I would like to filter datatable with entity
selected in ddc.
I can't do it via FilterToolbar because DDC's model and DataTable's are
different. The code below works but DataTable never get refreshed.

Any ideas are welcome. Thnx!

Sandor




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DDC-and-DataTable-refresh-tp4665465.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



ImageUploadPlugin of TinyMCE icon and resource problem

2014-03-24 Thread Sandor Feher
Hi Guys,

I experienced the same problem in 6.0 and above that has been solved in
6.0-SNAPSHOT.
My second problem is how to reach the uploaded image from another page than
it has been uploaded. 
(I upload a pic into my content editor, save it and would like to display my
article at another page. But because of editor's page name and the url
ImageUploadPlugin generates it can't be displayed other than the editor
itself).

A filed an  issue https://github.com/wicketstuff/core/issues/295   too.

TIA., Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ImageUploadPlugin-of-TinyMCE-icon-and-resource-problem-tp4665097.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



AjaxFormSubmitBehavior and FilterForm problem

2014-02-13 Thread Sandor Feher
Hi,

I have a datatable inside a filterform. Everything works fine but I need to
filter table on every single typed characters in my filterform. To achieve
this I added an AjaxFormSubmitBehavior to my filterform.
There is one small problem with it. If I type one char it works fine but if
I type one and another then the first char always get selected and I can't
type other chars.
How can I get it work ?





Regards., Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxFormSubmitBehavior-and-FilterForm-problem-tp4664422.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: AjaxFormSubmitBehavior and FilterForm problem

2014-02-13 Thread Sandor Feher
Hi Martin,

Thanks for the prompt answer. First I try to not re-render filterform's
field.
How could I do that ? My panel looks like this:


I changed target.add from container to table to refresh table only but that
did not help.



Regards., Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxFormSubmitBehavior-and-FilterForm-problem-tp4664422p4664427.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: AjaxFormSubmitBehavior and FilterForm problem

2014-02-13 Thread Sandor Feher
Yes, I use TextFilteredPropertyColumn and FilterToolbar.
So it might better to use js to solve this.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxFormSubmitBehavior-and-FilterForm-problem-tp4664422p4664429.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: AjaxFormSubmitBehavior and FilterForm problem

2014-02-13 Thread Sandor Feher
Hi,

Thanks for the tip. I have almost done it.
Just one annoying problem. I can't set filter fields' markup up. Not the td
where the input field resides but the input tag itself.
I have five filter fields on my filtertoolbar. To use javascript trick I
have to set id for every filter fields.(Now wicket set these ids for
filter6, filter7 and so one.)

Thnx.  S

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxFormSubmitBehavior-and-FilterForm-problem-tp4664422p4664443.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: Refreshing DataTable with AjaxButton [SOLVED]

2013-11-20 Thread Sandor Feher
Hi,

Okay guys, shame on me. The problem has nothing to do with AjaxButton nor
submit. DdcPDepsDataProvider had wrong size implementation and thus freshed
or not randomly.


s



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Refreshing-DataTable-with-AjaxButton-tp4662525p4662544.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



Refreshing DataTable with AjaxButton

2013-11-19 Thread Sandor Feher
Hi,

Perharps this could be a common scenario and I dig the archive a lot but
can't solve it on my own :(.

My basic concept is the following. I have two entities DdcPObjects and
DdcPDeps.
List objects in DdcPDeps then with a search field list all items from
DdcPObjects not listed in DdcPDeps.
The selected items can be added to DdcPDeps with a submit link. So it looks
simple.

http://apache-wicket.1842946.n4.nabble.com/file/n4662525/ddc.png 


The tricky part is how to refresh first datatable if the forms (it's parent)
were submitted ?
Now it works partialy. Sometimes show the recent state sometimes the last
two rows get replaced with the new items. It might be some caching problem
but I was not able to find it out :(.


DdcPDepsEditForm

http://pastebin.com/ZjCZ0eKP

DependeciesPanel

http://pastebin.com/fyfum0hp


DdcPObjectsDataProvider

http://pastebin.com/CQPATH2z

DdcPDepsDataProvider

http://pastebin.com/zicKKRd2


TIA, Sandor




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Refreshing-DataTable-with-AjaxButton-tp4662525.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: tree component problems in 6.x

2012-12-31 Thread Sandor Feher
Hi Sven,

I though so you're my man  .getTable() works fine but I have two other
problems left.
First is adding windowstheme has no affect for me.
Second one if I open a node with child items then it doubles the displayed
items. If I keep clicking then it triples the content and so one. It might
be they related to each other. (See screenshots.)
It's not so easy to create a quickstart from this situation so if you have
any idea I would appreciate that.
(The bottom line is that the code worked fine in 1.5.9).

thnx., Sandor

http://apache-wicket.1842946.n4.nabble.com/file/n4655107/1.png 
http://apache-wicket.1842946.n4.nabble.com/file/n4655107/2.png 
http://apache-wicket.1842946.n4.nabble.com/file/n4655107/3.png 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/tree-component-problems-in-6-x-tp4655101p4655107.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: tree component problems in 6.x

2012-12-31 Thread Sandor Feher
Hi,

Thanks for the hint. It was the table tag. WindowsTheme problem still
persists but I will be working on it.
So happy new year!

thnx. ,Sandor



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/tree-component-problems-in-6-x-tp4655101p4655110.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



tree component problems in 6.x

2012-12-30 Thread Sandor Feher
Hi,

I'm just upgraded my project from 1.5.9 to 6.4.0 without major problems. The
only thing I can't get rid so far is tree component.

My 1.5.9 code is this.

tree.addTopToolbar(new HeadersToolbar(tree));
tree.addBottomToolbar(new NoRecordsToolbar(tree));
tree.add(new Behavior() {

@Override
public void renderHead( Component component, IHeaderResponse
response) {
response.renderCSSReference(new WindowsTheme());
}

Now it looks to me that there is no addTopToolbar/addBottomToolbar method
belongs to tree component.
I'm also struggling with WindowsTheme behavior. Please let me know the
replacements things above.


thnx. Sandor



});




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/tree-component-problems-in-6-x-tp4655101.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: TinyMCE ImageUploadPlugin problem

2012-12-11 Thread Sandor Feher
If I would have some time I would upgrade wicket to 6.x series and test it
with 6.0.
Until I appreciate any comments :).

thnx, Sandor



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TinyMCE-ImageUploadPlugin-problem-tp4654616p4654713.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



TinyMCE ImageUploadPlugin problem

2012-12-08 Thread Sandor Feher
Hi,

I have a form with a textarea TinyMceBehavior attached. I would like to
provide users to upload and include images in their articles. I did the
following method:

ImageUploadPanel imageUploadPanel = new ImageUploadPanel(uploadPanel);
TinyMCeAdvancedSettings settings = new TinyMCeAdvancedSettings();
ImageUploadPlugin plugin = new
ImageUploadPlugin(imageUploadPanel.getImageUploadBehavior());
settings.add(plugin.getImageUploadButton(),
TinyMCESettings.Toolbar.first,TinyMCESettings.Position.after);
add(imageUploadPanel);
article.add(new TinyMceBehavior(settings));

The result is that upload button's icon is missing but the upload function
works. I can upload files but have two problems.
First is I'm not able to control where to put uploaded files (Not even know
where are they now. I suppose somewhere tmp dir). The second one is that
after upload img inserted in the article  the following  way:

If anyone could point to what I'm wrong I really would appreciate that!

thnx, Sandor





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TinyMCE-ImageUploadPlugin-problem-tp4654616.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: wicket:link + component images

2012-11-29 Thread Sandor Feher
The problem has nothing to do with html tags nor the wicket handles
resources. It's related to TinyMCE. 
The editor set this for emoticons
src=../../plugins/emotions/img/smiley-.gif
This won't work because the gifs are inside wicket.contrib.tinymce.jar and
they not supposed to be located elsewhere. (Quick hack could be to copy all
the images the path above.)
My solution is to replace src=../../plugins/emotions/img/smiley-.gif
with 
src=wicket.contrib.tinymce.tiny_mce/plugins/emotions/img/smiley-.gif
before add my Label to the page.
I have a feeling that I spent much more time to solve this problem than it
deserved but my app shines a little bit more :).


regards., Sandor



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-link-component-images-tp4654258p4654332.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: wicket:link + component images

2012-11-28 Thread Sandor Feher
Okay. I digged out more deeply.
The bottom line is if the img inside a p or a div tag then the images
are broken. If there is no surrounding tag or a just a simple snap then
everything works fine.
Somehow wicket:link ignores those kind of tags.

This works fine.

wicket:link 
   pwicket:link
wicket.contrib.tinymce.InPlaceEditBehavior/wicket.contrib.tinymce.InPlaceEditBehavior/wicket.contrib.tinymce.InPlaceEditBehavior/wicket.contrib.tinymce.InPlaceEditBehavior/plugins/emotions/img/smiley-cool.gif
/wicket:link/p  
   /wicket:link
/div

But this does not.

wicket:link 
   pwicket:link
wicket.contrib.tinymce.InPlaceEditBehavior/wicket.contrib.tinymce.InPlaceEditBehavior/wicket.contrib.tinymce.InPlaceEditBehavior/wicket.contrib.tinymce.InPlaceEditBehavior/plugins/emotions/img/smiley-cool.gif
/wicket:link/p  
   /wicket:link
/div

thnx., Sandor



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-link-component-images-tp4654258p4654294.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



wicket:link + component images

2012-11-27 Thread Sandor Feher
Hi,

I use tinymce as editor, storing the content in a blob field and intro in a
varchar2 field. At my showcontent page I dig this out and display like this:

add(new Label(cikk,new Model(c.getIntro())).setEscapeModelStrings(false));

add(new Label(cikk,new Model(new
String(c.getFullArticle(.setEscapeModelStrings(false));

...

My showpage.html snippet:
   

So the problem is if I insert some images belong to tinymce component e.g.
emoticons they get broken.
If I put them into intro then it works fine but if i do it the same  into
the content (which is blob) then they get broken.


thnx., Sandor



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-link-component-images-tp4654258.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: wicket:link + component images

2012-11-27 Thread Sandor Feher
Hi,

(B)LOB is database independent more or less. I use currently postgresql as
db engine but this app should be run on top of oracle db as well. So this is
why I decided to use blob.
But I think it should not be affected to wicket models. I convert byte array
to string and I pass that to the modell then. Both cases the source of model
is string. So it should work in this way too.

thx, Sandor



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-link-component-images-tp4654258p4654262.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: wicket-tree with two Hibernate entities

2012-10-20 Thread Sandor Feher
Thanks. All work fine.

s



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-tree-with-two-Hibernate-entities-tp4653122p4653163.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



wicket-tree with two Hibernate entities

2012-10-19 Thread Sandor Feher
Hi,

I dig myself into wicket-tree. 

I store my files in an entity by categories. Categories listed in another
entity. I would like the files get listed by category in a TableTree.
Nothing tricky just two levels. Roots are the categories, children are files
belong to categories.
As I followed the examples realized that the listed items belongs to the
same class. Should I create a helper class based on a view  ?  
I would like to find the best approach if possible.


thnx., Sandor



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-tree-with-two-Hibernate-entities-tp4653122.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: wicket-tree with two Hibernate entities

2012-10-19 Thread Sandor Feher
Hi Sven,

Thank you for the prompt answer. Please make me sure if I do it well.

FileHelper.class

import java.util.Collections;
import java.util.List;


public class FileTreeHelper implements Serializable {



private HrpBbfparam parent; // this is the dictionary class with fields
Id and Name

public HrpBbfparam getParent() {
return parent;
}

public void setParent(HrpBbfparam parent) {
this.parent = parent;
}

private ListHrpFiles children; // files belong to parent

public ListHrpFiles getChildren() {
return children;
}

public void setChildren(ListHrpFiles children) {
this.children = children;
}


}

thnx., Sandor



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-tree-with-two-Hibernate-entities-tp4653122p4653130.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: Wicket+Spring+JUnit testing

2012-09-17 Thread Sandor Feher
Hi,

An unitializes session variable caused my problem. First I thought it was
injecting problem.
Thank you for advices now I'm green :).



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-JUnit-testing-tp4652021p4652030.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



Wicket+Spring+JUnit testing

2012-09-16 Thread Sandor Feher
Hi,

Could you please advice a stack for this task ?
I went thru lots of  (mostly obsolete) post with not much success. I have
some spring beans which are not injected as I expected.
Thank you in advance!


--
package hu.xxx.xxx.main;

import org.springframework.context.ApplicationContext;
import
org.springframework.test.context.transaction.TransactionConfiguration;
import org.apache.wicket.spring.injection.annot.SpringComponentInjector;
import org.junit.Before;
import org.junit.runner.RunWith;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.ContextConfiguration;
import org.apache.wicket.util.tester.WicketTester;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

/**
 *
 * @author user
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {applicationContext.xml,
applicationContext-Security.xml})
@TransactionConfiguration(transactionManager = transactionManager,
defaultRollback = false)
public class LoginPageTest  {

@Autowired
private ApplicationContext ctx;
private WicketTester tester = null;

@Before
public void setUp() throws Exception {

tester = new WicketTester(new MyApplication() {

@Override
protected void init() {
SpringComponentInjector injector = new
SpringComponentInjector(this, ctx);
getComponentInstantiationListeners().add(injector);
injector.inject(this);
}
});

}

@Test
public void renderPage() {
tester.startPage(HomePage.class);
}
}




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-JUnit-testing-tp4652021.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



select2 localization questions

2012-09-04 Thread Sandor Feher
Hi,

I successfuly created a Select2Choice item in my form. I fill it up from a
model and everything works fine but the listed choices' display in wrong
codepage. I use utf8 everywhere and have no problems with cp.
The second one is how to localize select2 messages from select2.js ?
E.g. formatNoMatches,  formatSearching and so one.

thnx., Sandor



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/select2-localization-questions-tp4651732.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: select2 localization questions

2012-09-04 Thread Sandor Feher

Igor Vaynberg-2 wrote
 
 On Tue, Sep 4, 2012 at 7:27 AM, Sandor Feher lt;sfeher@gt; wrote:
 Hi,

 I successfuly created a Select2Choice item in my form. I fill it up from
 a
 model and everything works fine but the listed choices' display in wrong
 codepage. I use utf8 everywhere and have no problems with cp.
 
 i believe this was fixed recently in master.
 
I use 1.0 from maven repo. Is it possible that 1.0 does not contain that ?


Igor Vaynberg-2 wrote
 
 The second one is how to localize select2 messages from select2.js ?
 E.g. formatNoMatches,  formatSearching and so one.
 
 select2 is localized by you providing those functions with the correct
 strings. in wicket you can do the same by specifying them in the
 config object.
 
 -igor
 
 
Stupid I was. Figured out meanwhile.. Sorry.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/select2-localization-questions-tp4651732p4651741.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: select2 localization questions

2012-09-04 Thread Sandor Feher
Okay. Just one more question.

I have a domain model (HrpBbheerk) which contains a Short column. I would
like to fill this via Select2Choice.
I read the select2-examples but not able to get rid it.

So the steps I took.

1. Fill my hepar5list list from my domain model (HrpBbhepar5). This contains
couple of columns but I only need for two. One for value and one for
description. If possible I don't want to create another wrapper class just
for this case.
2. Create a form, added a model (HrpBbheerk)
3. Added a new Select2Choice to the form with that Short column mentioned
above.

Snippets:

...
fillHepar5(); // step 1
HrpBbheertk heertk = fillHeertk();  
IModel model=new CompoundPropertyModel(heertk);
sform.setModel(model);  // step 2
Select2Choice dimelemert = new Select2Choice(dimelemert,new
PropertyModel(sform.getModel(),dimelemert),new Hepar5Provider());  // step
3

..

  private static ListHrpBbhepar5 queryMatches(String term, int page, int
pageSize) {

ListHrpBbhepar5 result = new ArrayListHrpBbhepar5();
term = term.toUpperCase();

final int offset = page * pageSize;

int matched = 0;

for (HrpBbhepar5 hepar5 : hepar5list) {
if (result.size() == pageSize) {
break;
}

if (hepar5.getDertekmegnev().toUpperCase().startsWith(term)) {
matched++;
if (matched  offset) {
result.add(hepar5);
}
}
}
return result;
}


public class Hepar5Provider extends TextChoiceProviderHrpBbhepar5 {

@Override
protected String getDisplayText(HrpBbhepar5 choice) {
return choice.getDertekmegnev();
}

@Override
protected Object getId(HrpBbhepar5 choice) {
   return choice;
}

@Override
public void query(String term, int page, ResponseHrpBbhepar5
response) {
response.addAll(queryMatches(term, page, 10));
response.setHasMore(response.size() == 10);
}

@Override
public CollectionHrpBbhepar5 toChoices(CollectionString ids) {
ArrayListHrpBbhepar5 hepar5idlist = new
ArrayListHrpBbhepar5();

Iterator it = hepar5list.iterator();
while (it.hasNext()) {
HrpBbhepar5 h = (HrpBbhepar5) it.next();
hepar5idlist.add(h);
}
return hepar5idlist;
}
}

.

It complains that java.lang.Short cannot be cast to
hu.xxx.model.HrpBbhepar5.
Please let me know what  should I do.

thnx., Sandor








--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/select2-localization-questions-tp4651732p4651753.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: Nested form submit problem

2012-08-29 Thread Sandor Feher

Paul Bors wrote
 
 Must you really have a nested form here?
 
I think yes. I tried to sketch what I need for better understanding. For
example there is a quiestionnarie has five questions. Every question has id
and max points can be given and so one. I store the result in a result table
and get the ids and max points from a param table. So I created a form for
buttons and as many nested forms as questions I have. Every questions has
it's own model because they will be stored in different records.
The main goal is to submit once and persist all of the nested models while
get value field validated at field level. The problem is that I can only
persist my models at nested form's level on onSubmit event while onSubmit
fires even I click on reset or delete or whatever on the parent form.
I hope it's more clear now and sorry for making noise. Please suggest what
could be the best approach to achieve this. 

TIA, Sandor


http://apache-wicket.1842946.n4.nabble.com/file/n4651589/modell_copy.png 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Nested-form-submit-problem-tp4651565p4651589.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: Nested form submit problem

2012-08-29 Thread Sandor Feher
Many thanks Paul, I will go ahead.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Nested-form-submit-problem-tp4651565p4651608.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: BreadCrumb and page parameters

2012-08-28 Thread Sandor Feher
Had a workaround to store calling parameters in session in a HashMap. This is
good enough for me right now.





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/BreadCrumb-and-page-parameters-tp4651412p4651564.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



Nested form submit problem

2012-08-28 Thread Sandor Feher
Hi,

I have the following use case. I have some questionnaires and a couple of
questions belong to every questionnaire.
I created a nested form component contains two forms. First does nothing
just has some buttons (save,delete,cancel,reset) and contains as many child
forms as the number of questions.
So it's fine and almost everything work. My problem is when I want to delete
the items and click delete button then the inner form's onSubmit event also
fires although I set the delete.setDefaultFormProcessing(false) behaviour on
delete button. Same is with reset and cancel button. Both of them fires
inner form's onSubmit event.


http://pastebin.com/zErvmG5J

tia, Sandor



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Nested-form-submit-problem-tp4651565.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: Nested form submit problem

2012-08-28 Thread Sandor Feher
Hi Paul,

The problem related to AjaxFormSubmitBehavior  behaviour. This fires eform's
onSubmit event.
My original goal was to create field level validation with Ajax nothing
more.
The code above looks for a description belongs to the entered value and
displays it.
If the entered value validation failed then warns the user immediately. 
BTW if I turn of afvb setDefaultFormProcessing to false then the field level
validation does not work.


---
  AjaxFormSubmitBehavior afvb=
new AjaxFormSubmitBehavior(eform, onchange) {
 
 
@Override
protected void onSubmit(AjaxRequestTarget art) {
HrpBbheertk ertk = (HrpBbheertk)
eform.getModelObject();
String k = ertek.getValue();
customBo.getDaoSession().beginTransaction();
HrpBbhepar5PK pk = new HrpBbhepar5PK();
pk.setCompany(ertk.getHrpBbheertkPK().getCompany());
   
pk.setAkodszam(ertk.getHrpBbheertkPK().getAlaptipus());
   
pk.setDkodszam(ertk.getHrpBbheertkPK().getDimenzio());
   
pk.setDekodszam(ertk.getHrpBbheertkPK().getDimenzioelem());
if (!k.isEmpty()) {
pk.setDertek(Short.valueOf(k));
HrpBbhepar5 hepar5 =
customBo.find(HrpBbhepar5.class, pk);
if (hepar5 != null) {
   
dimenev.setDefaultModelObject(hepar5.getDertekmegnev());
} else {
dimenev.setDefaultModelObject();
}

}
if
(customBo.getDaoSession().getTransaction().isActive()) {
   
customBo.getDaoSession().getTransaction().commit();
}

art.add(dimenev);
art.add(fb);
}

@Override
protected void onError(AjaxRequestTarget art) { 
art.add(fb);
}

};



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Nested-form-submit-problem-tp4651565p4651568.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: Nested form submit problem

2012-08-28 Thread Sandor Feher
Be sure :). This is the root of all evil :). Checked.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Nested-form-submit-problem-tp4651565p4651575.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: Nested form submit problem

2012-08-28 Thread Sandor Feher
This works until I submit the parent form because it fires nested form's
onSubmit event. Does not matter if I click on save or cancel or whatever
button. 
Anyway. Is it possible to catch the button name clicked in the nested form
onSubmit ? If so I could separate the code depending on the button clicked.

   



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Nested-form-submit-problem-tp4651565p4651576.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



BreadCrumb and page parameters

2012-08-21 Thread Sandor Feher
Hi,

I have the following scenario:

Page A

  It's the home page without any params.
  Calls page B.

Page B

   Calls Page C with a modelobject.

   Link teljlink = new Link(beosztottak) {

@Override
public void onClick() {
   
HRPortalWebSession.getSession().setCurrentPage(BeosztottjaimPage.class);
setResponsePage(new
BeosztottjaimPage(model.getObject()));
// storing the next page in session and calling it with
a modelobject.
}
};
add(teljlink);

Page C

Calls Page D with two params.

Link Blink = new Link(kerdoivkitoltes) {

@Override
public void onClick() {
   
HRPortalWebSession.getSession().setCurrentPage(KerdoivKitoltesPage.class);
setResponsePage(new
KerdoivKitoltesPage(model.getObject(),entity));
// storing the next page in session and calling it with
a modelobject and an entity param.
}
};
add(Blink);

Page D
 

My goal is when users click on the breadcrumb path _anywhere_ (eg. Page B)
the page should be called with the appropriate parameters. I store the
current page in my session. Is it possible somehow ?

Thank you in advance!

Regards, Sandor




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/BreadCrumb-and-page-parameters-tp4651412.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: Key = Value search panel with actf

2012-08-09 Thread Sandor Feher
Hi Igor,

Your component looks very impressive :). So just one question. How can I
reach your maven repo ?
Because thru central repo I can't reach 1.0-SNAPSHOT.

dependency
groupIdcom.vaynberg.wicket.select2/groupId
artifactIdwicket-select2/artifactId
version1.0-SNAPSHOT/version
/dependency

thnx, Sandor



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Key-Value-search-panel-with-actf-tp4651064p4651075.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: Key = Value search panel with actf

2012-08-09 Thread Sandor Feher
I'm looking for 1.0-SNAPSHOT and not 0.5 :). 

thnx., S



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Key-Value-search-panel-with-actf-tp4651064p4651077.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: Key = Value search panel with actf

2012-08-09 Thread Sandor Feher
Ok. 0.5 would be fine.

thanks, Sandor



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Key-Value-search-panel-with-actf-tp4651064p4651081.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



Key = Value search panel with actf

2012-08-08 Thread Sandor Feher
Hi,

I'm looking for a component similar to DatePicker which let user to choose a
value from a key = value list. It should contain an actf field let user to
filter the values. 
Something like this:

http://apache-wicket.1842946.n4.nabble.com/file/n4651064/lov.png 

thnx., Sandor



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Key-Value-search-panel-with-actf-tp4651064.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: Update two fields with AjaxFormComponentUpdatingBehavior

2012-08-06 Thread Sandor Feher
Hi,

Just for the archives the following do the trick.

helyseg.add(new AjaxFormComponentUpdatingBehavior(onchange) {

@Override
protected void onUpdate(AjaxRequestTarget art) {
try {
int irszam =
TelepulesIrszam.get(helyseg.getDefaultModelObjectAsString());   
 
bbsir_irszam_output.setDefaultModelObject(irszam);
bbsir_irszam.setDefaultModelObject(irszam); 
 
   * art.add(bbsir_irszam);*
art.add(bbsir_irszam_output);
} catch (NullPointerException e) {
error(Hibás helységnév!);
art.add(container);
}
}
});


Regards, Sandor



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Update-two-fields-with-AjaxFormComponentUpdatingBehavior-tp4650954p4651008.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



Update two fields with AjaxFormComponentUpdatingBehavior

2012-08-02 Thread Sandor Feher
Hi,

I have a small but annoying problem. I'm sure there is a solution laying
around but let me ask it anyway.
This is a common zip code - location problem I intend to solve with actf.
I would like to get zip code read only (user can choose only location name).
To get my model up to date I introduced a hidden field.


...snippet. 

final TextField bbsir_irszam_output = new
TextField(bbsirIrszam_out, new Model(((HrpBbstorzs)
model.getObject()).getBbsirIrszam())); 
final HiddenField bbsir_irszam = new HiddenField(bbsirIrszam); 
add(bbsir_irszam);
bbsir_irszam_output.setOutputMarkupId(true);
bbsir_irszam_output.setEnabled(false);
add(bbsir_irszam_output, new Label(sajatadatokform.irszam, new
ResourceModel(sajatadatokform.irszam)));

final AutoCompleteTextField helyseg = new
AutoCompleteTextField(helyseg, new Model()) {

@Override
protected Iterator getChoices(String string) {
TelepulesIrszam = customBo.loadTelepulesek(string);
telepules = new ArrayList(TelepulesIrszam.keySet());
return telepules.iterator();
}
};
helyseg.add(new AjaxFormComponentUpdatingBehavior(onchange) {

@Override
protected void onUpdate(AjaxRequestTarget art) {
try {
int irszam =
TelepulesIrszam.get(helyseg.getDefaultModelObjectAsString());
// find the zip code by location name selected  
  
bbsir_irszam_output.setModelObject(irszam); // the
output field
bbsir_irszam.setModelObject(irszam);   // the hidden
field
art.add(bbsir_irszam_output);
} catch (NullPointerException e) {
error(Hibás helységnév!);
art.add(container);
}
}
});

..


Thank you!

Regards., Sandor





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Update-two-fields-with-AjaxFormComponentUpdatingBehavior-tp4650954.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: load properties file from extrnal path

2012-08-02 Thread Sandor Feher
Hi Oliver,

In your Application init add 

IResourceSettings resourceSettings = getResourceSettings();
resourceSettings.addResourceFolder(c:\project); //this path
should be changed   


Regards., Sandor



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/load-properties-file-from-extrnal-path-tp4650944p4650955.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



Obtain last modified date from FileUploadField

2012-06-15 Thread Sandor Feher
Hi,

I need for the uploaded file's last modified date to store it in a table. So
the question is how to obtain this info from a FileUploadField field. As I
have seen there is no such method in FileUpload class.

thnx., Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Obtain-last-modified-date-from-FileUploadField-tp4650011.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: Nested form model refresh

2012-06-13 Thread Sandor Feher
Hi,

Works fine! Thank you so much for your help!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Nested-form-model-refresh-tp4649877p4649910.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



Progressbar problems

2012-06-13 Thread Sandor Feher
Hi,

I have two problems with my progressbar.

1. It does not show up if I use AjaxButton or AjaxSubmitLink. I dig the
archives, set setOutputMarkupPlaceholderTag(true) for progressbar but it did
not help.
   If I change it to input type=submit / then it shows up.

2. If I try to upload a file from a shared folder attached to network drive
then it shows up but does not show the progress nor the text below (uploaded
nn % of 999 Mbites )
  If I upload from my local drives then it works fine.

I really appreciate any help!

thnx, Sandor


http://pastebin.com/wPb6aBeZ




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Progressbar-problems-tp4649923.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: Progressbar problems

2012-06-13 Thread Sandor Feher
Hi,

Looks very nice. But how attach my uploadfield to 

// Get current progress from page field
@Override
protected Progression getProgression()
{
return new Progression(progress, Item  + 
item);
}

?

thnx, Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Progressbar-problems-tp4649923p4649932.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



Nested form model refresh

2012-06-12 Thread Sandor Feher
Hi,

I have the following form. It has a nested form which is for a simple file
uploading. After the upload finished I would like to get some information
from the uploaded file (eg. name, size and so one) and pass it's parent
form. Later if the parent form get submitted I will persist these data and
the file itself in HrpFiles entity.
My problem is that parent form's fields did not get refreshed.

http://pastebin.com/GaJZu8zT

TIA,

Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Nested-form-model-refresh-tp4649877.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: Nested form model refresh

2012-06-12 Thread Sandor Feher
Hi,


Tried but did not work for me :(


.

info(saved file:  + uploadedFile.getClientFileName());
HrpFiles e=new HrpFiles();
e.setTitle(uploadedFile.getClientFileName());
cmodel.setObject(e);
art.add(cont);



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Nested-form-model-refresh-tp4649877p4649884.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: Feedback next to each input field on form

2012-06-12 Thread Sandor Feher
Hi,

Have you seen this ?

http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Feedback-next-to-each-input-field-on-form-tp4649886p4649888.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: Full month calendar

2012-05-21 Thread Sandor Feher
A bonus question. How can I  localize fullcalendar ? (I mean day names and so
one..).

Regards., Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Full-month-calendar-tp4642735p4647866.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: Full month calendar

2012-05-18 Thread Sandor Feher
Hi,

The example Igor mentioned is nice but I'm still struggling with that. I
have copy-pasted the code from HomePage but it throws me

java.lang.ArrayStoreException:
net.ftlines.wicket.fullcalendar.callback.GetEventsCallback
 at
net.ftlines.wicket.fullcalendar.FullCalendar.setupCallbacks(FullCalendar.java:90)
 at
net.ftlines.wicket.fullcalendar.FullCalendar.onBeforeRender(FullCalendar.java:81)
 at org.apache.wicket.Component.internalBeforeRender(Component.java:993)
 at org.apache.wicket.Component.beforeRender(Component.java:1027)
 at
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1743)
 at org.apache.wicket.Component.onBeforeRender(Component.java:3838)
 at org.apache.wicket.Page.onBeforeRender(Page.java:831)
 at org.apache.wicket.Component.internalBeforeRender(Component.java:993)
 at org.apache.wicket.Component.beforeRender(Component.java:1027)
 at
org.apache.wicket.Component.internalPrepareForRender(Component.java:2211)
 at org.apache.wicket.Page.internalPrepareForRender(Page.java:280)
 at org.apache.wicket.Component.render(Component.java:2293)
 at org.apache.wicket.Page.renderPage(Page.java:1043)

I also included the required .js in my markup.


http://pastebin.com/KGZq9dkM http://pastebin.com/KGZq9dkM 

Regards., Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Full-month-calendar-tp4642735p4644452.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: Full month calendar

2012-05-18 Thread Sandor Feher
There is no doubt if it works. I just wanted to shorten my learning curve :).
So I will have another try.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Full-month-calendar-tp4642735p4644871.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: Full month calendar

2012-05-18 Thread Sandor Feher
Ok. I think I found a clue. I use wicket 1.5.6 but I tried
wicket-fullcalendar-core 1.2.1 from maven repo which is for wicket 1.4 as I
suspect.
I compiled 1.3.0-SNAPSHOT and added my project. Now it works fine :).
I really appreciate if 1.3.x will be available in maven repo. This would
make my life easier.
Thanks for everybody!

Regards., Sandor



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Full-month-calendar-tp4642735p4645136.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



Full month calendar

2012-05-17 Thread Sandor Feher
Hi,

I need for a full month calendar view to indicate when was the employee on
holiday. I found at wicketstuff the calendars package and tried to used with
not too much success.

wm.add(new FullWeekCalendarView(calendar,new Date(2012,05,01),new
Date(2012,05,31),ievent));
Throws me an org.apache.wicket.markup.MarkupNotFoundException.
The point is I don't want to create a new component from scracth :). So
please point to some working examples or please let me know if I'm on the
wrong way.

Thank you in advance., Sandor


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Full-month-calendar-tp4642735.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: Full month calendar

2012-05-17 Thread Sandor Feher
Thanks Igor! I will have a try..

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Full-month-calendar-tp4642735p4643499.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: FilterForm Date column formatting

2012-04-26 Thread Sandor Feher
Hi,

Yes, sorry for that.

---
Last cause: Component [cell] (path =
[5:datatablecontainer:filterForm:datatable:body:rows:1:cells:3:cell]) must
be applied to a tag of type [input], not:  '' (line 0, column 0)

Markup

The problem is in
jar:file:/X:/mavenrepo/org/apache/wicket/wicket-extensions/1.5.5/wicket-extensions-1.5.5.jar!/org/apache/wicket/extensions/markup/html/repeater/data/table/DataTable.html:

[cell]


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/FilterForm-Date-column-formatting-tp4586557p4589021.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: FilterForm Date column formatting

2012-04-26 Thread Sandor Feher
Ok, I will have try...

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/FilterForm-Date-column-formatting-tp4586557p4589073.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: FilterForm Date column formatting

2012-04-26 Thread Sandor Feher
Hi,

If I do it in this way, then all of my cells in that column will change to
input textfield. But I only want to change the cell which in the filter form
row.

Regards, Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/FilterForm-Date-column-formatting-tp4586557p4589323.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



  1   2   >