Re: Wicket 6.19: Resurces on page cached problem

2019-02-25 Thread armandoxxx
Thank you ... 

--
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



Wicket 6.19: Resurces on page cached problem

2019-02-25 Thread armandoxxx
Hey ... 

I would like to know one thing. 

I'm using custom IStringResourceLoader for loading string resoucers from
custom cache. 

Use case: 
Page X is rendered
String resources are loaded.
... 
In another application custom cache is invalidated due to changes in
strings. 

...
User goes to page Y and then returns through LINK (not back button) to page
X. 
Resources are not reloaded and old strings are displayed on Page X 

Is there a way to invalidate the cahe of page X resources ? 

Kind regards 

Armando











--
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



selectize for version 6.x ?

2015-10-28 Thread armandoxxx
Hey is there a build for wicket 6.x version ... or I'll have to implement one
myself ? 

regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/selectize-for-version-6-x-tp4672405.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: selectize for version 6.x ?

2015-10-28 Thread armandoxxx
Thank you ... 

will consider your proposal ... 

regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/selectize-for-version-6-x-tp4672405p4672410.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: [SOLVED] how to write Form html in separate Form.html file

2014-12-16 Thread armandoxxx
thank you 

regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/SOLVED-how-to-write-Form-html-in-separate-Form-html-file-tp4668691p4668785.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: Reusable form fields ... the proper way disucssion

2014-12-16 Thread armandoxxx
thank you ... 
regards 

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Reusable-form-fields-the-proper-way-disucssion-tp4668783p4668800.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: [SOLVED] how to write Form html in separate Form.html file

2014-12-15 Thread armandoxxx
have any other ideas how to mark topic as solved ? Would appreciate
suggestion!

regards
Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/SOLVED-how-to-write-Form-html-in-separate-Form-html-file-tp4668691p4668782.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



Reusable form fields ... the proper way disucssion

2014-12-15 Thread armandoxxx
Hey guys

I would like to know to properly do this in wicket. 

I have form fields that I would like to use in several forms ... 

lets say I want a model object for a 
SearchFields {country, language}   properties in brackets
and then I extend it with 
UserSearchFields {userTags}
and
CustomerSearchFields {customerTags}
and put it into models ... 
1. Model.of()
2. new PropertyModel(new {onOfTheseExtendedObjects}(), {propertyName});
3. new CompoundPropertyModel(new {onOfTheseExtendedObjects}())

so I create Common component with fields for country and language, then I
create separate components for UserTagsComponent (with userTags field) and
CustomerTagsComponent (with customerTags field). 

I create different forms:
UserForm  which adds model of new UserSearchFields object and both Common
and UserTagsComponent components .
CustomerForm which adds model of new CustomerSearchFields object and both
Common and CustomerTagsComponent.

my questions are:
1. what component to use to wrap fields to reuse them and add them to form? 
I tried FormComponentPanel but my model (CompoundPropertyModel) object did
not include the FormComponentPanel name property; for exmaple:
searchFields, so I changed my panel with fields to ordinary Panel (then
using my CompoundPropertyModel worked as expected)
2. what model implementation to use so Form would understand the fields in
sub components... I tried PropertyModel ... but I had a problem when I
called setDefaultModelObject(new CustomerSearchFields()) on my form ...
values were not set. 

I read reference and wicket book .. I understand how model implementations
work .. I'm just not sure how to make it work properly If I use sub
components for common fields ... 

regards

Armando


 














--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Reusable-form-fields-the-proper-way-disucssion-tp4668783.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



how to write Form html in Form.html file

2014-12-09 Thread armandoxxx
Hey 

I have a form that I want to display on several pages .. SearchForm.

I've put form fields into SearchForm.html file ... 

and whereever I want to use this form .. i create a tag 



I tried to put form tag where I want my form to be displayed and put fields
into SearchForm.html file ... 

but form fields are not displayed ... 

SearchForm.html



the output of this form looks like this 



Where are the fields ???

Regards

Armando



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-write-Form-html-in-Form-html-file-tp4668691.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: [SOLVED] how to write Form html in separate Form.html file

2014-12-09 Thread armandoxxx
created upper SearchPanel and added form to it ... markup in SearchPanel.html
... 

regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/SOLVED-how-to-write-Form-html-in-separate-Form-html-file-tp4668691p4668692.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: [SOLVED] how to write Form html in separate Form.html file

2014-12-09 Thread armandoxxx
why is that ? 

Regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/SOLVED-how-to-write-Form-html-in-separate-Form-html-file-tp4668691p4668694.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: [SOLVED] how to write Form html in separate Form.html file

2014-12-09 Thread armandoxxx
oh .. didn't know that ... 

thank you 

regards


Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/SOLVED-how-to-write-Form-html-in-separate-Form-html-file-tp4668691p4668696.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



Production deployment ajax problem

2014-12-04 Thread armandoxxx
Hey guys .. 

I've got problem with AjaxFallbackLink in production deployment ... 


for example :



  SettingsComponent.this.hideAll();  hides all panels (sets visibility to
false)
SettingsComponent.this.infoComponent.setVisible(true);  sets desired panel
to visible 
ajaxRequestTarget.add(SettingsComponent.this.panelWrapper);  refreshes the
panel wrapper ... 


and the problem is .. that AJAX request is executed, data returned (html and
javascripts are returned from server - I can see it all in development
window) ... and nothing happens .. if I press F5 to refresh the page .. the
correct panel is displayed ... 
in development deployment everything works fine ... 

any ideas? and suggestions ... 

regards

Armando



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611.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: Production deployment ajax problem

2014-12-04 Thread armandoxxx
This ... 


 ... does not help ... and to tell you the truth I don't want these panels
to show in markup ... 

I just want my panelWrapper to have content replaced with the new panel
(which should be visible)

Regards

Armando


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611p4668617.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: Production deployment ajax problem

2014-12-04 Thread armandoxxx
this is all the code I have for this panels ... 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611p4668618.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: Production deployment ajax problem

2014-12-04 Thread armandoxxx
tried it .. does not help ... 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611p4668621.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: Production deployment ajax problem

2014-12-04 Thread armandoxxx
checking it out ...

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611p4668622.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: Production deployment ajax problem

2014-12-04 Thread armandoxxx
removed it ;)

btw ... 
HTML code


wicket:container gets ID  id7c on first load .. NOW I PRESS BUTTON to show
another panel 

in response I get 




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611p4668624.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: Production deployment ajax problem

2014-12-04 Thread armandoxxx
It works now 

replaced wicket:container with div and it works

regards

Armando
PS: FML 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611p4668629.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: Production deployment ajax problem

2014-12-04 Thread armandoxxx
trying ... thank you !

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Production-deployment-ajax-problem-tp4668611p4668627.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: Production deployment ajax problem

2014-12-04 Thread armandoxxx
it's been a while since I've read the 

https://cwiki.apache.org/confluence/display/WICKET/Wicket%27s+XHTML+tags#Wicket'sXHTMLtags-Elementwicket:container

thank you for your help 

Regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/SOLVED-Production-deployment-ajax-problem-tp4668611p4668630.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.Ajax.post array parameters

2014-10-22 Thread armandoxxx
Hey guys 

need a little help with sending array parameter value with Wicket.Ajax.post 
(wicket 6.x)... 



any help appreciated

regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-post-array-parameters-tp4668041.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: Why resource bundles and how to use them ?

2014-04-02 Thread armandoxxx
Hey.. 

thank you for your reply ... 
but I still don't get why create bundles if I still need to define my
resources and dependencies in resources ... and to use them in a page I
still have to use the resource instance instead of reference to bundle ...
whats the point of it ... 

Regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Why-resource-bundles-and-how-to-use-them-tp4665207p4665220.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



Why resource bundles and how to use them ?

2014-04-01 Thread armandoxxx
Hey guys .. 

The problem I'm having is how to use a bundle added to application bundles
... 

Me expectation was ... 
when in renderHead() method and call to response.render(MY BUNDLE) would do
the magic and bundled references get rendered to page ... no luck .. so help
appreciated ... cant find any full blown resource bundle example ... 

Regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Why-resource-bundles-and-how-to-use-them-tp4665207.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: Does wicket have parameter-based security?

2014-04-01 Thread armandoxxx
hey 

we use Apache SHIRO project for all security on wicket applications ... 
apache shiro has targets (part of permission) to resolve this kind of
issues. 

you can also write custom shiro filter to let wicket know if problems with
authorization accured .. or let shiro handle it in his own way ;)

Regards

Armando



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Does-wicket-have-parameter-based-security-tp4665174p4665208.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



How to resolve page from url part without (hardcoded) mapping in application class

2014-01-28 Thread armandoxxx
Hey guys 

I'm working on some dynamic page loading and would like to know how it's
supposed to be done in wicket (6.x) ... without mappings in my application
class. 

The example: 
some urls (for example /news, /article, /people) are bind by users (in admin
console) to a some page ... 
/news  LayoutPage1 
/article  LayoutPage2
/people  LayoutPage1
this mapping is written in database and not in application class, because
users can set whatever URL and select whatever page to be shown for that
URL.

I would like know where to put this resolving from URL TO PAGE and how to
render the page ... 

Any help would be appreciated


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-resolve-page-from-url-part-without-hardcoded-mapping-in-application-class-tp4663992.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: How to resolve page from url part without (hardcoded) mapping in application class

2014-01-28 Thread armandoxxx
Thank you ! 

Regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-resolve-page-from-url-part-without-hardcoded-mapping-in-application-class-tp4663992p4663995.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: How to resolve page from url part without (hardcoded) mapping in application class

2014-01-28 Thread armandoxxx
Hey ... 

sorry but I don't understand 

the problem is that chain property in custom mapper is set upon
initialization in application class and it sets page .. 
getRootRequestMapperAsCompound().add(new LocaleFirstMapper(new
MountedMapper(/localized, LocalizedPage.class)));

I'm trying to figure out how to do this in custom IRequestMapper
implementation since my Page Class will change on each request ... 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-resolve-page-from-url-part-without-hardcoded-mapping-in-application-class-tp4663992p4663997.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: How to resolve page from url part without (hardcoded) mapping in application class

2014-01-28 Thread armandoxxx
this will do .. thank you ! 

Regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-resolve-page-from-url-part-without-hardcoded-mapping-in-application-class-tp4663992p4664003.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: How to resolve page from url part without (hardcoded) mapping in application class

2014-01-28 Thread armandoxxx
thank you again ... works like a charm ;)

Regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-resolve-page-from-url-part-without-hardcoded-mapping-in-application-class-tp4663992p4664012.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 consumig ajax request of other plugin

2013-08-02 Thread armandoxxx
Hey ... 

Is there a way to let wicket know that some requests must be ignored ? 
(using wicket 6.9)

I use highcharts charts and export chart method creates post request to
server which should be handled by export servlet .. instead wicket processes
the request and ofc throws error ... 

Any help appreciated 

regards

Armando



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-consumig-ajax-request-of-other-plugin-tp4660649.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 consumig ajax request of other plugin

2013-08-02 Thread armandoxxx
and !? 

sorry cant understand what you're saying ... 

my wicket app filter is on /

and my urls I want to ignore are on /service .. 

is there a way to do it or ?? 

regards

Armando



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-consumig-ajax-request-of-other-plugin-tp4660649p4660651.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 consumig ajax request of other plugin

2013-08-02 Thread armandoxxx
Fixed it 





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-consumig-ajax-request-of-other-plugin-tp4660649p4660652.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: Annoying wicket API Docs ... includes exmaples api docs

2013-06-23 Thread armandoxxx
thank you 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Annoying-wicket-API-Docs-includes-exmaples-api-docs-tp4659611p4659704.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: Annoying wicket API Docs ... includes exmaples api docs

2013-06-19 Thread armandoxxx
Hey 

Thank you for your reply ... 

True the code is the best documentation when you need to know how it works
but when you only need to know what method does what and what class or
interface is used for what, then I use API docs.
And sometimes I read APIs just to refresh memory and it's kinda annoying
seeing all those example classes. 

That's why I asked about cleaner API docs.

Regards

Armando








--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Annoying-wicket-API-Docs-includes-exmaples-api-docs-tp4659611p4659617.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: Annoying wicket API Docs ... includes exmaples api docs

2013-06-19 Thread armandoxxx
Thats how I usualy do it ... I just thought there's clean online version ;)

Regards

Armando



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Annoying-wicket-API-Docs-includes-exmaples-api-docs-tp4659611p4659618.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



Annoying wicket API Docs ... includes exmaples api docs

2013-06-18 Thread armandoxxx
Hey there ... 

Does anybody have a link of only wicket framework API docs ? The one that
does not include examples docs? 

It's kind of annoying searching through API, you find a class which looks
like something you might use and you find out it's from examples and with
none descriptions whatsoever ...

Regards

Armando







--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Annoying-wicket-API-Docs-includes-exmaples-api-docs-tp4659611.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 Application Design Question

2013-03-21 Thread armandoxxx
From my experience use small component based .js and css files.

But just be careful and read the docs and references three times of how
wicket renders them to head !!! 
One tiny little advice about wicket:head tag .. just dost use it .. put
everything to renderHead() method in component class ;) 


Regards

Armando






--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Application-Design-Question-tp4657388p4657399.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: CSS bundles order does not seem stable when using an application

2013-03-18 Thread armandoxxx
read this about resources:  resources management
http://wicketinaction.com/2012/07/wicket-6-resource-management/  

us PriorityHeaderItem() 

Regards

Armando





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/CSS-bundles-order-does-not-seem-stable-when-using-an-application-tp4657299p4657319.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



AbstractAjaxBehavior back button problem

2013-03-16 Thread armandoxxx
Hey I have a tiny little problem with ajax behaviors and back button. 

I have a component (jQuery date picker that makes an ajax call to wicket
with selected date as parameter) which has an ajax behavior and renders it's
callbackUrl to head !

taken from components code:


If I select dates with this component and stay on the same page everything
works. 
If I go to next page and press back button Ajax request made by selecting a
date throws me:

org.apache.wicket.core.request.mapper.StalePageException
and I'm redirected on error page.

By debuging I figured out that when selecting a date (on page that I got to
by pressing back button) the whole page reloads and my behavior is not
called due to StalePageException...
Any tips to overcome this would be appreciated. 

Regards 

Armando





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AbstractAjaxBehavior-back-button-problem-tp4657293.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: AbstractAjaxBehavior back button problem [SOLVED]

2013-03-16 Thread armandoxxx
Ok .. here is the solution !


When rendering Ajax callbackUrls you have to be careful that everytime
component is rendered you call behavior.getCallbackUrl() and set the new
value to javascript output !

Since I render urls in head tag ... with renderHead() method this is my
working example 




Regards

Armando



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AbstractAjaxBehavior-back-button-problem-tp4657293p4657297.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: Does page know it was loaded with back button ?

2013-03-11 Thread armandoxxx
Hey .. 

my use case is actually very simple ... 

I have a page with charts .. and by pressing on chart point you get
redirected to another page with search results .. 
but there's a catch ... pages share search parameters .. which means by
selecting search parameters on one page, another page shows data for those
selected search parameters. 
So i thought I'd just cache my search params and ask if
(page.isCalledWithBackButton()) then load those search params ... 

but hey .. I think version will be fine ;) 

Regards

Armando









--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Does-page-know-it-was-loaded-with-back-button-tp4657158p4657162.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 6 AjaxCheckBox#onUpdate method not called

2012-10-12 Thread armandoxxx
Hey guys

Got a problem with my checkbox in wicket  6.1

This code worked in 1.5 


so my question is .. what am I doing wrong .. when I click on it, onUpdate
method is not called  ... 

any suggestions would be nice ... 

overriding method wantOnSelectionChangedNotifications() doesn't help either
... 

Regards

Armando



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-AjaxCheckBox-onUpdate-method-not-called-tp4652910.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 6 AjaxCheckBox#onUpdate method not called

2012-10-12 Thread armandoxxx
Found the issue .. has nothing to do with wicket not working ! Sorry !

Regards

Armando



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-AjaxCheckBox-onUpdate-method-not-called-tp4652910p4652914.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 6 AjaxCheckBox#onUpdate method not called

2012-10-12 Thread armandoxxx
If someone ever needs it 

I'm using  Sscrew Default Buttons http://www.screwdefaultbuttons.com/  
plugin for jQuery which hides default input (checkbox) field and shows
pictures over it. 

The problem was with click event never triggered on input field but only on
element over the checkbox field.

This code helped fixing the problem. First you have to change the checked
property of the input field 


AjaxCheckBox#onUpdate method is then called ;)

Regards

Armando



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-AjaxCheckBox-onUpdate-method-not-called-tp4652910p4652918.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 6.x write to jQuery on document ready ...

2012-10-08 Thread armandoxxx
Hey guys .. 

I'm upgrading our application to wicket 6.x and would like to know if there
is a way for my components to add JS to jQueries $(document).ready function
on initialize ... (was thinking if page has any feature like that) 

Kind regards

Armando 





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-x-write-to-jQuery-on-document-ready-tp4652754.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



Force fallback on links possible ?

2012-01-10 Thread armandoxxx
Hey 

Can I force AjaxFallbackLinks not to use ajax when i want it so ?

The cause for my question is IE8 .. it takes shit loads of time to replace
DOM nodes on ajax and application has a lof of panels to replace ..  

Kind regards 

Armando 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Force-fallback-on-links-possible-tp4281533p4281533.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: Force fallback on links possible ?

2012-01-10 Thread armandoxxx
thank you for your reply ... 

regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Force-fallback-on-links-possible-tp4281533p4281629.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: Force fallback on links possible ?

2012-01-10 Thread armandoxxx
Thank you for your reply ! 

Regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Force-fallback-on-links-possible-tp4281533p4281633.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: Force fallback on links possible ?

2012-01-10 Thread armandoxxx
I tried your suggestion and it's not working ... can you check please ? 

my link


 and rendered link output 

onClick attribute was not replaced decorated

what am I doing wrong ? 

the sample i looked on how to do it ... (taken from wiki)



regards

Armando 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Force-fallback-on-links-possible-tp4281533p4281686.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: Force fallback on links possible ?

2012-01-10 Thread armandoxxx
Repost without raw tags ... 

I tried your suggestion and it's not working ... can you check please ? 

my link



AjaxFallbackLinkDateOption
link= new AjaxFallbackLinkDateOption(link, new
ModelDateOption(dateOption)) {
@Override
public void onClick(final AjaxRequestTarget theTarget) {
/* some action */
}

@Override
protected IAjaxCallDecorator getAjaxCallDecorator() {
return new AjaxCallDecorator() {
public CharSequence decorateScript(CharSequence script) 
{
return return true;;
}
};
}

};



 and rendered link output 

tag a 
id=link580 

href=analytics?5-1.ILinkListener-htmlBody-filtersWrapper-filterCollectionPanel-dateFilter-contentWrapper-dateForm-dates-3-link
 
onclick=var
wcall=wicketAjaxGet('analytics?5-1.IBehaviorListener.0-htmlBody-filtersWrapper-filterCollectionPanel-dateFilter-contentWrapper-dateForm-dates-3-link',function()
{ }.bind(this),function() { }.bind(this), function() {return
Wicket.$('link580') != null;}.bind(this));return !wcall;
my text
close tag a

onClick attribute was not replaced decorated

what am I doing wrong ? 

the sample i looked on how to do it ... (taken from wiki)

new AjaxLink(link) {
  protected onClick(AjaxRequestTarget target) { ...}
  protected IAjaxCallDecorator getAjaxCallDecorator() {
return new AjaxCallDecorator() {
  public CharSequence decorateScript(CharSequence script) {
return alert('This is my javascript call');  + script;
  }
}
  }
}


regards

Armando 
PS: can you read this ? 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Force-fallback-on-links-possible-tp4281533p4281770.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: Force fallback on links possible ?

2012-01-10 Thread armandoxxx
fixed it ... 

had wrong method signature ... 
should have been:
public CharSequence decorateScript(final Component theComponent, final
CharSequence theScript) 


regards

Armando



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Force-fallback-on-links-possible-tp4281533p4281856.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 1.5 with Shiro for security ...

2011-12-15 Thread armandoxxx
Got a little question. 

I'm wrapping Apache Shiro as security framework for my application. 

And I use wicket-auth-roles for wrapping shiro login, logout, get roles and
stuff methods. 

I've got a question for isSignedIn() method which is final. I can't override
it to ask shiro if user is logged in or not. 

Any workaround for this? I really don't want to implement all
Authentication/Authorization logic on my own, since wicket already
implements this.

Kind regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-with-Shiro-for-security-tp4200743p4200743.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: Is there a way to be notified when a tab in a TabbedPanel is selected?

2011-11-03 Thread armandoxxx
Just a question ... 

what happens with other instances ? are they forgotten (null-ed) ? 

My problem is that I'm trying to put a PDFObject (displays PDF file in a div
in a browser ) panel and JWPlayer (flash video player) into tab panel. So I
have to know if older versions of these panels are destroyed (nulled) when
I switch the tab or whenever i reload my wrapping  panel (meaning panel
containing these panels). 

Kind regards

Armando



Martin Makundi wrote:
 
 Yes, simply every time your panel is instantiated, it means someone
 navigated to the particular tab. You can monitor this also in your
 panel class.
 
 **
 Martin
 
 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Is-there-a-way-to-be-notified-when-a-tab-in-a-TabbedPanel-is-selected-tp1877249p3986163.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: jqWicket or wiQuery

2011-10-12 Thread armandoxxx
Hey .. 

I've had a hope someone else allready did it .. so that's why I asked. 

Regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/jqWicket-or-wiQuery-tp3895432p3897026.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: W 1.5: templates added to head on ajax reload ...

2011-10-11 Thread armandoxxx
thank you guys for your replies ! 

Regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/W-1-5-templates-added-to-head-on-ajax-reload-tp3890648p3893138.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



W 1.5: templates added to head on ajax reload ...

2011-10-10 Thread armandoxxx
Hey guys. 

I've got a little question regarding templates. 

I'm creating a javascript chart and a chart needs a container to be drawn
in. To tell my javascript chart library what container to draw a chart in I
use a template. 

my template:


my markup file: 
div wicket:id=chart/div
wicket:container wicket:id=javascriptTemplate/wicket:container

now to the problem ... on ajax reload this template is added to head of the
page. 

and since JS code is executed before my container exists on a page, I get an
error that container is not found. 

any workaround for this ? 

Regards

Armando


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/W-1-5-templates-added-to-head-on-ajax-reload-tp3890648p3890648.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 1.5: AjaxRequestTarget.appendJavaScript() - multiple javascript evaluations

2011-09-14 Thread armandoxxx
Hi guys 

I have a question about how to avoid multiple evaluations of same
javascripts in AjaxRequestTarget.appendJavaScript().
I have a lots of components that append javascript to AjaxRequestTarget.
Some of these javascript strings are same and some are different. So what
I'm trying to figure out is how to avoid adding the same javascript to
AjaxRequestTarget.
Another thing I'm trying to figure out is how to add these strings in
appropriate order.

use case: 
- ajax button is clicked
- an event is created (AjaxRequestTarget is set as parameter) and send to
components
- Component A gets an event .. adds itself to AjaxRequestTarget and appends
some JS (resizeLayout());
- Component B gets an event .. adds itself to AjaxRequestTarget and appends
some JS (resizeLayout(), initScrollbar('ComponentB'));
- Component C gets an event .. adds itself to AjaxRequestTarget and appends
some JS (resizeLayout(), initScrollbar('ComponentC'));


Kind regards
Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-AjaxRequestTarget-appendJavaScript-multiple-javascript-evaluations-tp3812785p3812785.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 ResourceStreamLocator performance issue

2011-09-08 Thread armandoxxx
thank you for your reply
is it fixed in final release (since I saw a final release was made
yesterday) or just in trunk ?

regards

Armando


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-ResourceStreamLocator-performance-issue-tp3796815p3797981.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 ResourceStreamLocator performance issue

2011-09-08 Thread armandoxxx
https://issues.apache.org/jira/browse/WICKET-4034 Jira issue 
hope this helps.

I did not provide any patch because I think our workaround is not the way it
should be done. 

Regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-ResourceStreamLocator-performance-issue-tp3796815p3798141.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 ResourceStreamLocator performance issue

2011-09-08 Thread armandoxxx
It was not used in my setup at all. 
The problem occurred when we wrote our own ResourceLocator and we extended
ResourceStreamLocator. (as wrote in Jira quickstart)
I'm trying to use CachingResourceLocator now. 

Kind regards

Armando




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-ResourceStreamLocator-performance-issue-tp3796815p3798447.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 ResourceStreamLocator performance issue

2011-09-08 Thread armandoxxx
using CachingResourceStreamLocator did the trick. thank you for help

regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-ResourceStreamLocator-performance-issue-tp3796815p3798549.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 ResourceStreamLocator performance issue

2011-09-07 Thread armandoxxx
Hi 

We found serious performance issue costing aprox. 1 sec per request in
ResourceStreamLocator. 

these are the resources searched by locate() method


We wrote custom ResourceStreamLocator to temporarly resolve this issue.  


Attaching  http://www.dropchop.org/log/log.txt log file  to see the
behavior.

Any feedback appreciated 

Regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-ResourceStreamLocator-performance-issue-tp3796815p3796815.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 ResourceStreamLocator performance issue

2011-09-07 Thread armandoxxx
Sorry man .. forgot to mention version we're using is 1.5 RC7 

Regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-ResourceStreamLocator-performance-issue-tp3796815p3797143.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 ResourceStreamLocator performance issue

2011-09-07 Thread armandoxxx
Please give me time till weekend cause I'm really busy. I'll write it then ! 


Kind regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-ResourceStreamLocator-performance-issue-tp3796815p3797889.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 ResourceStreamLocator performance issue

2011-09-07 Thread armandoxxx
Another question. 

Is it normal that onAfterRender() methods gets called several times for each
component ?

Regards

Armando
 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-ResourceStreamLocator-performance-issue-tp3796815p3797892.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: Loading items in repeater the facebook/twiiter way

2011-09-01 Thread armandoxxx
thank you ! 

Regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Loading-items-in-repeater-the-facebook-twiiter-way-tp3780809p3782935.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



Loading items in repeater the facebook/twiiter way

2011-08-31 Thread armandoxxx
Hey guys 

I need an idea of how to load items in repeater the tiwwter/facebook way.
This means that when user scrools down to 80% of the panel, new items are
loaded to repeater and so on .. 

Did any of you guys tried this and how did you do it. 

Any ideas would be appreciated

Regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Loading-items-in-repeater-the-facebook-twiiter-way-tp3780809p3780809.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 1.5: Question (or feature request) afterOnInitialize()

2011-08-14 Thread armandoxxx
my fix was 



if someone needs it .. 

Regards

Armando 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-Question-or-feature-request-afterOnInitialize-tp3732520p3743198.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 1.5: Question (or feature request) afterOnInitialize()

2011-08-11 Thread armandoxxx
Igor: thank you for your reply and your solution. Could you please discuss
this case with other developers and let me know what they think? In my
opinion framework should make my job easier not force me to do workarounds
to get what I need. Just a thought. 

Martin: thank you :D 

Kind regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-Question-or-feature-request-afterOnInitialize-tp3732520p3735601.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 1.5: Question (or feature request) afterOnInitialize()

2011-08-11 Thread armandoxxx
@IGor: I figured it out .. no need for new features. 

@Bruno: if you cann onAfterInitialize() in onInitialize() you can't be sure
all components on the page we're 
 initialized()


Regards

Armando


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-Question-or-feature-request-afterOnInitialize-tp3732520p3738002.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 1.5: Question (or feature request) afterOnInitialize()

2011-08-10 Thread armandoxxx
Hey guys ... 

With wicket 1.5 we got events. So far so good but I got a case where i'm
missing after on initialize method call. 

I have lot's of panels on my page, and I create them in onInitialize() code.
But I need to send a 1 time event after all components are initialized. 
- problem #1: If I send an event from onInitialize():  not sure that all
components are initialized !
- problem #2: If is send an event from onConfigure() or onBeforeRender(),
the event get send everytime component is rendered ... 

So current solution is to create a flag in my panels that sendEventOnInit()
method was allready called .. 

but it would be better  to have a method onInitialized() |
afterInitialized() (pick your favorite name). 

If someone has better approach, please let me know about it ! 

Kind regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-Question-or-feature-request-afterOnInitialize-tp3732520p3732520.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 1.5: Question (or feature request) afterOnInitialize()

2011-08-10 Thread armandoxxx
@pedro I know. That's why I didn't put the event call in onInitialize()
method ;)

@martin: I if use on before render .. my event would be triggered everytime
my component renders .. so if I want 1 time event after the component is
initialized I have to use somekind of a flag for this event to be called
just once. So that's why I suggested afterInitialized() method ;)

thank you guys for responses 

Regards 

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-Question-or-feature-request-afterOnInitialize-tp3732520p3733649.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



NullPointerException and don't know why ...

2011-07-28 Thread armandoxxx
Hi guys got a problem with NPE 

I'm having using Kaptcha for drawing captcha ..  



public class CaptchaImage extends NonCachingImage {
 
private static final long serialVersionUID = 1667766853896645923L;

private transient DefaultKaptcha captchaProducer= new 
DefaultKaptcha();

// private DefaultKaptcha captchaProducer;
public CaptchaImage(String id) {
super(id);

captchaProducer.setConfig(new Config(new Properties()));

setImageResource(new DynamicImageResource() {

private static final long serialVersionUID = 
-3696927797622999885L;


public byte[] getImageData() {
ByteArrayOutputStream os = new 
ByteArrayOutputStream();

// write the data out
ImageIO.setUseCache(false);

try {
BufferedImage bi = 
getImageCaptchaService();
ImageIO.write(bi, jpg, os);
return os.toByteArray();
} catch (Exception e) {
throw new RuntimeException(e);
}
};


private BufferedImage getImageCaptchaService() {
Request request = 
RequestCycle.get().getRequest();
HttpServletRequest httpRequest = ((WebRequest)
request).getHttpServletRequest();
String capText = captchaProducer.createText();
// store the text in the session

httpRequest.getSession().setAttribute(Constants.KAPTCHA_SESSION_KEY,
capText);
// create the image with the text
BufferedImage bi = 
captchaProducer.createImage(capText);
return bi;
}
});
}
}



the problem is that I'm getting NPE on line: 

String capText = captchaProducer.createText();


and I can't figure out why ... 

can anybody help please ? 

Regards 

Armando


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/NullPointerException-and-don-t-know-why-tp3701404p3701404.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: NullPointerException and don't know why ...

2011-07-28 Thread armandoxxx
thank you ! 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/NullPointerException-and-don-t-know-why-tp3701404p3701481.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



ObjectAutoCompleteField set model/text

2011-07-08 Thread armandoxxx
Hi guys .. 


I have a form with some ObjectAutoCompleteField, so when I select value in 1
I would like to set some text into another ... how can I do that ? 

Regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ObjectAutoCompleteField-set-model-text-tp3653375p3653375.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



AjaxIndicator help needed

2011-07-07 Thread armandoxxx
Hey guys ... 

sorry for double post .. but I really really need help ..

http://apache-wicket.1842946.n4.nabble.com/ObjectAutoCompleteField-and-ajax-indicator-td3650331.html
link to original topic 

regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxIndicator-help-needed-tp3650948p3650948.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



Autocomplete - get model object

2011-07-06 Thread armandoxxx
Hey guys ... 

Is there any autocomplete component available that would actually store
Beans in models and not ID and or String ... 
I know id is to identify the object, and Text is for displaying it .. but
I've got a situation where backend service returns objects without IDs and I
can't ask the service .. can you please load this object by ID when i need
it ... so storing selected object (somewhere), (hopefully) in a model of
autocomplete component would be great .. but ...from what I searched  all
autocompletes out there return texts (as AutoCompleteTextField) or IDs  (as
ObjectAutoCompleteField) .. none can gice you an object :( ... 

any help would be greatly appreciated !

Regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Autocomplete-get-model-object-tp3649960p3649960.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: Autocomplete - get model object

2011-07-06 Thread armandoxxx
not working .. 

here's the situation .. I have an Object with address data(street, house
number, city, etc) .. so I use Autocomplete to search for streets meanin ..
user writes in street name and dropdown shows .. street name and city in
wich street is in (meaning same streets can exists in different cities) ..
so when choice is selected only street is written to the text box .. and
when I wanted to use a converter same street names occur on many choices so
equals method is not appropriate for checking .. cause user might have
selected the 3rd choice and converter would get me an object with the first
one it finds .. and ... NO I cant pust city beside street in text field,
cause city is in it's own field ;) .. that's why I'm trying to get the
object autocomplete field and not this text autocomplete field .. 

but hey .. thank you for your help ;) 

regards

Armando
PS: cant believe nobody ever needed anything like this :D


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Autocomplete-get-model-object-tp3649960p3650048.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: Autocomplete - get model object

2011-07-06 Thread armandoxxx
that's what I did ... 

used choice provider to store all data it has loaded .. and then I iterate
that data when I need it .. and find my object .. 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Autocomplete-get-model-object-tp3649960p3650147.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



Form Component models not updating .. why ?

2011-07-04 Thread armandoxxx
Hi guys need a little help with my form and form component models ...





public class GroupFormT extends UserGroup extends FormT {

private static final Logger LOG = 
LoggerFactory.getLogger(GroupForm.class);
private static final long   serialVersionUID = 5581378542894937666L;

private RequiredTextFieldString   groupNameField;
private FieldFeedbackPanel  groupNameErrorPanel;

private AjaxFallbackButton  submitButton;
private AjaxFallbackButton  resetButton;

public GroupForm(final String theId, IModelT theModel) {
super(theId, theModel);
}



@Override
protected void onInitialize() {
super.onInitialize();
this.setOutputMarkupId(true);

if (this.theNotifiable == null) {
throw new IllegalArgumentException(The notifiable 
panel cannot be
null);
}

this.groupNameField = new 
RequiredTextFieldString(name);
this.groupNameErrorPanel= new 
FieldFeedbackPanel(groupNameErrorPanel,
this.groupNameField);

this.submitButton   = new 
AjaxFallbackButton(submitButton, this) {

private static final long serialVersionUID = 
-4104483939487007113L;


@Override
protected void onSubmit(final AjaxRequestTarget 
theTarget, final Form?
theForm) {
UserDao userDao = 
((SystemPage)this.getPage()).getUserDao();
Useruser= 
((SystemPage)this.getPage()).getUser();
T   group   = 
(T)theForm.getDefaultModelObject();
try {
userDao.storeUserGroup(user, group);
} catch (Exception e) {
LOG.error(Cannot store user group!, 
e);
throw new RuntimeException(e);
}
((GroupFormT)theForm).cleanUp();
theTarget.addComponent(theForm);

}

protected void onError(final AjaxRequestTarget 
theTarget, final Form?
theForm) {
theTarget.addComponent(theForm);
};
};

this.resetButton = new AjaxFallbackButton(resetButton, this) {

private static final long serialVersionUID = 
3649778402022830666L;

@Override
protected void onSubmit(final AjaxRequestTarget 
theTarget, final Form?
theForm) {
GroupForm.this.cleanUp();
theTarget.addComponent(theForm);
}
};

this.resetButton.setDefaultFormProcessing(false);

this.add(this.groupNameField);
this.add(this.submitButton);
this.add(this.resetButton);
this.add(this.groupNameErrorPanel);
}


public GroupFormT cleanUp() {
UserGroup group = new UserGroup();
this.clearInput();
this.modelChanging();
this.setModelObject((T)group);
this.modelChanged();
this.updateFormComponentModels();

return this;
}
}



this is how i create this form on a panel

UserGroup group = new UserGroup();
 new GroupFormUserGroup(groupEditForm, new
CompoundPropertyModelUserGroup(group)));


I want to know why my form still shows values inside of text field even thou
cleanUp() method is called 
and why on reset button (which is not a RESET button in markup) form is
cleared ... I don't get it .. :( 

Please help 

Regards

Armando


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Form-Component-models-not-updating-why-tp3643631p3643631.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: Form Component models not updating .. why ?

2011-07-04 Thread armandoxxx
Dude .. thank you .. I owe you shit loads of beer ;) 

hehe 

Regards 

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Form-Component-model-not-updating-why-tp3643631p3643760.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



AjaxFormComponentUpdatingBehavior causes javascript error

2011-07-04 Thread armandoxxx
Hi guys 

got a little problem with AjaxFormComponentUpdatingBehavior.

I put a form in a panel and add text area to it. 

this.messageForm = new FormT(messageForm,
(IModelT)this.getDefaultModel());
this.messageForm.setOutputMarkupId(true);
this.message = new TextAreaString(messageArea, new
ModelString(Vpišite sporočilo ...)) {

private static final long serialVersionUID = 
7090971229354611969L;

@Override
protected void onComponentTag(final ComponentTag 
theTag) {
if (PhonePanel.this.photoWrapper.isVisible()) {
theTag.put(style, height:  + (375 
-30 -
DropchopApplication.DEFAULT_PHOTO_HEIGHT) + px;);
}
}

};
this.message.add(
new AjaxFormComponentUpdatingBehavior(onblur) {

private static final long serialVersionUID = 
-3755174800992307122L;

@Override
protected void onUpdate(final AjaxRequestTarget 
theTarget) {
Component comp = getComponent();

TextArea textarea = (TextArea)comp;

String message = (String) 
textarea.getConvertedInput();
LOG.info(Current message: + message);

theTarget.addComponent(PhonePanel.this.messageForm);
}

}
);
this.message.setOutputMarkupId(true);

this.messageForm.add(this.message);


this.sendMessageLink = new AjaxSubmitLink(sendMessageLink,
this.messageForm) {;

private static final long serialVersionUID = 
8597958558044823747L;

@Override
protected void onSubmit(AjaxRequestTarget target, 
Form? form) {
// TODO Auto-generated method stub

}
};



when ever onblur event occurs I get javascript errors

Uncaught TypeError: Cannot read property 'id' of null (wicket-ajax.js:479)
Wicket.Form.serializeElement (wicket-ajax.js:479)
(anonymous function) (messaging:174)
onblur (messaging:175)


Does anyone know whats going on ? 

Regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxFormComponentUpdatingBehavior-causes-javascript-error-tp3644889p3644889.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: AjaxFormComponentUpdatingBehavior causes javascript error

2011-07-04 Thread armandoxxx
got it ... was missing 

super.onComponentTag(theTag);


in text area

regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxFormComponentUpdatingBehavior-causes-javascript-error-tp3644889p3644928.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: Custom implementation of IStringResourceLoader not working

2011-01-31 Thread armandoxxx

will try .. 10x ! 

Regards

Armando
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Custom-implementation-of-IStringResourceLoader-not-working-tp3244747p3248311.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



[SOLVED] Custom implementation of IStringResourceLoader not working

2011-01-31 Thread armandoxxx

it works .. 

thank you ! 

Regards

Armando

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Custom-implementation-of-IStringResourceLoader-not-working-tp3244747p3248335.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



[SOLVED] Nesting Links

2011-01-31 Thread armandoxxx

Here we go ... 



//... from code ... 
AjaxFallbackLink link1  = new AjaxFallbackLinkT(article-link-1, new
ModelT((T)this.getDefaultModelObject())) {

private static final long serialVersionUID = 
8011531891135888415L;

@Override
public void onClick(final AjaxRequestTarget theTarget) {
LOG.info(LINK 1 clicked);
}

};

SimpleAttributeModifier sam = new 
SimpleAttributeModifier(onclick,
stopEvent(window.event);) {

public void onComponentTag(final Component 
theComponent, final
ComponentTag theTag) {
String onClick  = stopEvent(window.event); +
theTag.getAttribute(onclick);
theTag.put(onclick, onClick);
}
};
link1.add(sam);




//javascript function
function stopEvent(e) {
if (!e) e = window.event;
if (e.stopPropagation) {
e.stopPropagation();
} else {
e.cancelBubble = true;
}
}

(tried it on IE7 - IE8 and firefox (linux) and chrome (for linux)

regards

Armando
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Nesting-Links-tp1885368p3248475.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: Nesting Links

2011-01-28 Thread armandoxxx

Hey man 

I've used your method but it's not working .. got any other ideas ??? 

Regards

Armando 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Nesting-Links-tp1885368p3244193.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



Custom implementation of IStringResourceLoader not working

2011-01-28 Thread armandoxxx

Hi guys ... 

I need some help with custom IStringResourceLoader



public class DictionaryResourceLoader implements IStringResourceLoader {

private static final Logger
LOG 
= LoggerFactory.getLogger(DictionaryResourceLoader.class);

private ControllerFactory
controllerFactory   
= null;


/**
 * Constructor.
 * @param theControllerFactory  reference to application
 */
public DictionaryResourceLoader(final ControllerFactory
theControllerFactory) {
this.controllerFactory  = theControllerFactory;
}



/* (non-Javadoc)
 * @see
org.apache.wicket.resource.loader.IStringResourceLoader#loadStringResource(org.apache.wicket.Component,
java.lang.String)
 */
@Override
public String loadStringResource(final Component theComponent, final 
String
theKey) {
return theKey;
}


/* (non-Javadoc)
 * @see
org.apache.wicket.resource.loader.IStringResourceLoader#loadStringResource(java.lang.Class,
java.lang.String, java.util.Locale, java.lang.String)
 */
@Override
public String loadStringResource(final Class? theClazz, final String
theKey, final Locale theLocale, final String theStyle) {
DictionaryController dict   =
(DictionaryController)this.controllerFactory.getController(DictionaryController.class);

return dict.getTerm(theKey, theLocale.getLanguage()); //calls 
backend to
get translated string for the key

}


}




in application init I have 

getResourceSettings().addStringResourceLoader(0, new
DictionaryResourceLoader(this.controllerFactory)); 



and in markup: 

wicket:message key=test.string/wicket:message 




and when I debug .. my DictionaryResourceLoader is not beeing called ..
neither method ... 

what am I doing wrong ? 

Regards

Armando
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Custom-implementation-of-IStringResourceLoader-not-working-tp3244747p3244747.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 drag and drop behaviors

2010-11-10 Thread armandoxxx

And I don't .. and that was my main problem :( .. but I got links now ;) 

I tried to find wicket jquery project on wicket stuff and no luck with that
either .. so that's how it all happened :D 

why don't you guys that work on wicket + jquery projects get together and
make one project ? That would make it a lot easier for all of you since
you're making same thing. 

Regards

Armando
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-JQuery-drag-and-drop-behaviors-tp3033676p3035898.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 drag and drop behaviors

2010-11-09 Thread armandoxxx

Just to let everyone know, this is just a simple imeplementation, there are
no events triggered on draggable and therefore no methods called, so if
anyone needs it just implement it .. 
So all the NPE checks and that kinda  stuff is still needed ! 
All I needed for my case was to get the dropped component and I needed it to
be done with JQuery.

Regards

Armando



-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-JQuery-drag-and-drop-behaviors-tp3033676p3033703.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 drag and drop behaviors

2010-11-09 Thread armandoxxx


/**
 * Notification method that a drop happened on this component.
 * @param theComponent  reference to dropped component.
 */
protected void onDrop(final AjaxRequestTarget theTarget, final Component
theComponent) {
System.out.println(Dropped: + 
theComponent.getClass().getName());
}


you get the draggable component that was dropped. 

Regards

Armando


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-JQuery-drag-and-drop-behaviors-tp3033676p3033686.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 drag and drop behaviors

2010-11-09 Thread armandoxxx

Hey 

Just needed this so I wrote a simple implementation of Drag and Drop for
JQuery javascript lib. 

So if anyone needs it .. be my guest to comment (and/or diSS) on it  

Put on your page, app or anywhere else cause you need this !!!

wicket:head
wicket:linklink rel=stylesheet type=text/css
href=css/jquery/smoothness/jquery-ui-1.8.2.custom.css //wicket:link
wicket:linkscript type=text/javascript
src=js/jquery-1.4.3.min.js/script/wicket:link
wicket:linkscript type=text/javascript
src=js/jquery-ui-1.8.2.custom.min.js/script/wicket:link
/wicket:head


DraggableBehavior.java

/**
 * 
 */
package org.dropchop.jop.dnd.behaviors.draggable;

import java.util.HashMap;
import java.util.Map;

import org.apache.wicket.Component;
import org.apache.wicket.behavior.AbstractAjaxBehavior;
import org.apache.wicket.markup.html.CSSPackageResource;
import org.apache.wicket.markup.html.IHeaderResponse;
import org.apache.wicket.util.template.PackagedTextTemplate;
import org.apache.wicket.util.template.TextTemplate;
import org.dropchop.jop.dnd.behaviors.droppable.DroppableBehavior;


/**
 * @author armando armando[DoT]ota[At]dropchop[DoT]com
 * 
 */
public class DraggableBehavior extends AbstractAjaxBehavior {

private static final long serialVersionUID = -4879330165262306147L;

//JQuery options
private DragType dragType   = DragType.ORIGINAL;



/**
 * Drag type for jQuery helper.
 * CLONE - clones panel and after panel is droped cloned panel
dissapears.
 * ORIGINAL  - moves the original panel through the page.
 * @author armando armando@dropchop.com
 */
public enum DragType {
ORIGINAL(original), CLONE(clone);

private String type = null;

/**
 * Private constructor.
 * @param theType  jquery constant string
 */
private DragType(final String theType) {
this.type   = theType;
} 


/**
 * Gets JQuery drag type constant.
 * @return string.
 */
public String getType() {
return this.type;
}
}


/**
 * Sets drag type for draggable component
 * @param theType
 * @return  reference to itself for chaining.
 */
public DraggableBehavior setDragType(final DragType theType) {
this.dragType   = theType;
return this;
}


@Override
public void renderHead(final IHeaderResponse theResponse) {
super.renderHead(theResponse);

theResponse.renderOnDomReadyJavascript(this.getJavaScriptCode(this.getComponent()));
} 


@Override
protected void onBind() {
getComponent().setOutputMarkupId(true);
//uncomment this if you need styles for draggable component!

//getComponent().add(CSSPackageResource.getHeaderContribution(DroppableBehavior.class,
css/styles.css));
}


/**
 * Uses js file as a template and returns parsed output.
 * 
 * @param theComponentId  id of date time field component.
 * @return javascript code string.
 * 
 * Note: this might be a performance issue ... figure and test it 
out!!! 
 */
private String getJavaScriptCode(final Component theComponent) {
PackagedTextTemplate template = new 
PackagedTextTemplate(getClass(),
js/DraggableBehavior.js, text/javascript);
MapString, Object params = new HashMapString, Object();
params.put(componentId, theComponent.getMarkupId());
params.put(helper, this.dragType.getType());
params.put(wicketPath, theComponent.getPageRelativePath());
TextTemplate interpolated = template.interpolate(params);
return interpolated.asString();
}


/* (non-Javadoc)
 * @see org.apache.wicket.behavior.IBehaviorListener#onRequest()
 */
@Override
public void onRequest() {}


}




DraggableBehavior.js  servers as a template for javascript code


$(#${componentId}).draggable(
{
cursor  : 'pointer',
helper  : '${helper}'
}
);
$('#${componentId}').data('wicketPath', '${wicketPath}');



DroppableBehavior.java

package org.dropchop.jop.dnd.behaviors.droppable;

import java.util.HashMap;
import java.util.Map;

import org.apache.wicket.Component;
import org.apache.wicket.Request;
import org.apache.wicket.RequestCycle;
import 

Re: Wicket JQuery drag and drop behaviors

2010-11-09 Thread armandoxxx

Hey guys .. 

10x for sharing .. 
Was looking for it .. but didn't find anything so I implemented it on my
own;) 

Regards

Armando


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-JQuery-drag-and-drop-behaviors-tp3033676p3034347.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 drag and drop behaviors

2010-11-09 Thread armandoxxx

Hey ...

No I haven't. 

Regards

Armando
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-JQuery-drag-and-drop-behaviors-tp3033676p3035602.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 drag and drop behaviors

2010-11-09 Thread armandoxxx

Just a thought for all you posters that provided wicket + jquery project
links. These links should also be available on wicket pages .. I googled for
wicket + jquery implementations before I started to implement my own tiny
little DnD behaviors, but found only wicket + other JS libs pages, so
these links need to be put somewhere on more visible place ... or be more
promoted ... 

Regards

Armando
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-JQuery-drag-and-drop-behaviors-tp3033676p3035616.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 forms onSubmit() question ...

2010-11-05 Thread armandoxxx

Just a feature request: 

- beforeSubmit() method on Form would be usefull
- make it configurable order of onSubmit() method calls
(SUBMIT_NESTED_FIRST, SUBMIT_NESTED_LAST)


Regards

Armando

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Nested-forms-onSubmit-question-tp3026993p3028422.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 forms onSubmit() question ...

2010-11-04 Thread armandoxxx

Hey wicket ppl ...  

Is there any beforeSubmit() event like method available on Form. 

I need it cause I have nested forms and only one form is allowed to store
data in the database, so if I had a method beforeSubmit() all my nested
forms could send data to the root form and root form would submit it to the
database. I also though of it because I was looking at sources of Form class
and nested forms onSubmit() method gets called after main form onSubmit() is
executed, so In my case data is first stored into database and after that
nested forms provide data to the main form to be stored in database.

So either I implement procesing on my own (which I really wouldn't like to
do, cause it's allready there (validation, processing, etc...)) or is there
a beforeSubmit() kinda way available and I can't find it anywhere ... 

Any help appreciated.

Regards

Armando

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Nested-forms-onSubmit-question-tp3026993p3026993.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 forms onSubmit() question ...

2010-11-04 Thread armandoxxx

Hey

well ... that's also the way to do it .. thanks for idea ... 

regards

Armando
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Nested-forms-onSubmit-question-tp3026993p3027217.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: Remove ListView item in ModalWindow

2010-10-19 Thread armandoxxx

Hey mate .. 

sorry for late reply ... 

I decided to make a ModalWindow and use a page instead of a setContent() ... 
I think that might help .. 
I read on some forum that setContent() on modal window caused people some
problems and they advised to use page instead .. so, i'll just create a page
and put that into a modal window and tell you how it goes ... ;) 

regards

Armando
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Remove-ListView-item-in-ModalWindow-tp3000348p3001530.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   >