Re: Websockets: Server to browser connection lost?

2017-03-09 Thread Gonzalo Aguilar Delgado
the javascript is still initializing. So it's lost. If I delay it a little bit, few seconds everything goes smoothly. Of course I have to change this to let client tell when it's really ready to start the communication. Thank you for help! El 08/03/17 a las 18:30, Gonzalo Aguilar Delgado escribió

Websockets: Server to browser connection lost?

2017-03-08 Thread Gonzalo Aguilar Delgado
Hello, As I told still doing testing with the web sockets. It seems that a reconnection doesn't fully work. I don't know why. If the connection is the first the browser does. It works nice. The server sends a message to the client (browser) and the browser responds with a request for data.

Re: Websockets for graph data streaming

2017-03-08 Thread Gonzalo Aguilar Delgado
it! Best regards, El 07/03/17 a las 21:45, Martin Grigorov escribió: > Hi, > > On Tue, Mar 7, 2017 at 10:07 AM, Gonzalo Aguilar Delgado < > gagui...@level2crm.com> wrote: > >> Hi Martin, >> >> I must say I was working with websockets yesterday. And it's deli

PubSub from Javascript with Wicket.Event is possible?

2017-03-07 Thread Gonzalo Aguilar Delgado
Hello, Is it possible to send events that are managed inside Javascript without reaching the server? Instead of using a dedicated PubSub library I pretend to use the functionality inside Wicket to perform pubsub on javascript. My problem is that only examples I can find is like this, where a

Re: Websockets for graph data streaming

2017-03-07 Thread Gonzalo Aguilar Delgado
p://wicketinaction.com/2012/07/wicket-6-native-websockets/ uses Google > Charts library without any Wicket component integration. > > >> >> Preview of the current work is this link: >> >> https://pbs.twimg.com/media/C6M_hG6WYAEeysz.jpg >> >> >> -- Gonzalo Aguilar Delgado *Level2 CRM* Gonzalo Aguilar Delgado Consultor CRM - Ingeniero en Informática M. +34 607 81 42 76 T. +34 918 40 95 78 E. gagui...@level2crm.com <mailto:gagui...@level2crm.com>

Websockets for graph data streaming

2017-03-05 Thread Gonzalo Aguilar Delgado
Hello, I'm using the fantastic Decebals dashboard, adding a widget json registry and some other improvements. The idea is to provide data streaming functionality like the one provided by graphana, kibana and friends. So the server will contain the datasources. And the dashboard will apply to one

Repeaters and feedaback panel (not reporting error after submit)

2014-11-04 Thread Gonzalo Aguilar Delgado
Hi all! We are using a RefreshingView to show some panels inside a form. This way we can add elements to a list of objects that will be processed after submit. The problem is that ajax on the items of the RefreshingView does not refresh after the submit button is hit on the form. We

JQueryResourceReference is not rendered on JBOSS 7 AS 7.1.1

2014-10-31 Thread Gonzalo Aguilar Delgado
Hi, We built an application that depends on JQuery because we show graphs with morris and raphael. And we discovered that @Override public void renderHead(IHeaderResponse response) { super.renderHead(response); response.render(JavaScriptHeaderItem

Re: JQueryResourceReference is not rendered on JBOSS 7 AS 7.1.1

2014-10-31 Thread Gonzalo Aguilar Delgado
/14 a las 12:34, Martin Grigorov escribió: Hi, It works well here with JBoss 8 (WildFly 8.1). On Fri, Oct 31, 2014 at 1:22 PM, Gonzalo Aguilar Delgado gagui...@aguilardelgado.com wrote: Hi, We built an application that depends on JQuery because we show graphs with morris and raphael. And we

Re: XSS in wicket. Wicket fault or my fault?

2014-01-30 Thread Gonzalo Aguilar Delgado
guide at: http://wicket.apache.org/guide/guide/modelsforms.html#modelsforms_1 Also, older Wicket in Action: http://www.javaranch.com/journal/2008/10/using-wicket-labels-and-links.html On Wed, Jan 29, 2014 at 12:26 PM, Gonzalo Aguilar Delgado gagui...@aguilardelgado.com wrote: Hi there, I'm

Re: XSS in wicket. Wicket fault or my fault?

2014-01-30 Thread Gonzalo Aguilar Delgado
Payment Solutions main page. And it worked! El 30/01/14 10:03, Martin Grigorov escribió: Hi, On Wed, Jan 29, 2014 at 6:26 PM, Gonzalo Aguilar Delgado gagui...@aguilardelgado.com wrote: Hi there, I'm building an application for a client and my security advisor told me about a XSS attack

Re: XSS in wicket. Wicket fault or my fault?

2014-01-30 Thread Gonzalo Aguilar Delgado
is a model? of the wicket free guide at: http://wicket.apache.org/guide/guide/modelsforms.html#modelsforms_1 Also, older Wicket in Action: http://www.javaranch.com/journal/2008/10/using-wicket-labels-and-links.html On Wed, Jan 29, 2014 at 12:26 PM, Gonzalo Aguilar Delgado gagui...@aguilardelgado.com

Re: XSS in wicket. Wicket fault or my fault?

2014-01-30 Thread Gonzalo Aguilar Delgado
/wicket/apidocs/6.x/org/apache/wicket/model/StringResourceModel.html Met vriendelijke groet, Kind regards, Bas Gooren schreef Gonzalo Aguilar Delgado op 30-1-2014 11:17: Hi Martin, This is how I've done it. label = new Label(message, getString(main.message, new ModelWebUser

XSS in wicket. Wicket fault or my fault?

2014-01-29 Thread Gonzalo Aguilar Delgado
Hi there, I'm building an application for a client and my security advisor told me about a XSS attack that can be performed on the site. When user logs-in I welcome they by Saying Hello user. div class=thumbnail p wicket:id=message Hello

Re: Authorization header in http

2013-04-29 Thread Gonzalo Aguilar Delgado
session tracking. Once authenticated you bind a session. This way the servlet container will use either JSESSIONID cookie or jsessionid request path parameter. On Mon, Apr 29, 2013 at 3:23 AM, Gonzalo Aguilar Delgado gagui...@aguilardelgado.com wrote: Hello, I'm using

Authorization header in http

2013-04-28 Thread Gonzalo Aguilar Delgado
Hello, I'm using AuthenticatedWebApplication class to manage my login and roles. While it works well I want wicket to set the Authorization http header each time it does a request. I don't really know if this makes sense. The application is currently working in this context

Re: Possible bug in ListView [Cannot change attributes in ListView div]

2013-02-24 Thread Gonzalo Aguilar Delgado
AM, Gonzalo Aguilar Delgado wrote: Hello, I think I found something that may not be working right. I have an html that looks like: div wicket:id=regionOne div wicket:id=regionWidget/div /div regionOne will be a listview

Possible bug in ListView [Cannot change attributes in ListView div]

2013-02-23 Thread Gonzalo Aguilar Delgado
Hello, I think I found something that may not be working right. I have an html that looks like: div wicket:id=regionOne div wicket:id=regionWidget/div /div regionOne will be a listview and regionWidget will be one panel populated on populateItem. This is

Re: Submit form before handle onclick

2013-02-18 Thread Gonzalo Aguilar Delgado
Hi Martin, Ok. I will take a look to this but I think it's not the right solution. Suppose this: - PAGE Example| --- A - This is a form. | B - This is a form.|

Re: Submit form before handle onclick

2013-02-18 Thread Gonzalo Aguilar Delgado
of the form components of A will be available thru request.getPostRequestParameters().get(someFromA) On Mon, Feb 18, 2013 at 10:56 AM, Gonzalo Aguilar Delgado gagui...@aguilardelgado.com wrote: Hi Martin, Ok. I will take a look to this but I think it's not the right solution

Re: Submit form before handle onclick

2013-02-17 Thread Gonzalo Aguilar Delgado
it on the onclick handler, but how? Thank you in advance. El vie, 15-02-2013 a las 11:07 +0100, Sven Meier escribió:S venO n 02/15/2013 11:01 AM, Gonzalo Aguilar Delgado wrote: Hello, We have just a situation were the information of the form needs to be updated before handling an ajax click

Submit form before handle onclick

2013-02-15 Thread Gonzalo Aguilar Delgado
Hello, We have just a situation were the information of the form needs to be updated before handling an ajax click event. The page has a form, with a bean and some TextFields that update the properties in the bean. It has also an ajax component that also updates the bean. The problem is

Re: Handling of Ajax response fails [Fragments]

2012-11-22 Thread Gonzalo Aguilar Delgado
mar, 20-11-2012 a las 10:31 +0100, Gonzalo Aguilar Delgado escribió: Hello, I'm doing a scaffolding application for wicket + dojo. I'm using fragments to change between EDIT, UPDATE, DELETE screens. On each switch I have to reinitializate components on the changed zone of the web via

Handling of Ajax response fails [Fragments]

2012-11-20 Thread Gonzalo Aguilar Delgado
Hello, I'm doing a scaffolding application for wicket + dojo. I'm using fragments to change between EDIT, UPDATE, DELETE screens. On each switch I have to reinitializate components on the changed zone of the web via javascript. I've implemented this in a clean and efficient way ( I think ),

Re: JSON response in wicket = 6.0.0

2012-11-12 Thread Gonzalo Aguilar Delgado
Hello, Thank you a lot both!!! It's great to work with this framework and the delightful people that support it! Tnx! El lun, 22-10-2012 a las 12:07 +0200, Ernesto Reinaldo Barreiro escribió: Hi Martin, Thanks for the clarification. AJAX requests are handled int two steps

Re: JSON response in wicket = 6.0.0

2012-10-21 Thread Gonzalo Aguilar Delgado
the URL you need to use on client side to retrieve that JSON. On Sat, Oct 20, 2012 at 5:57 PM, Gonzalo Aguilar Delgado gagui...@aguilardelgado.com wrote: Hello again, Sorry. I was thinking about extending AbstractAjaxBehavior directly. It seems to have cleaner code but I loss

JSON response in wicket = 6.0.0

2012-10-20 Thread Gonzalo Aguilar Delgado
Hello, I was looking to some code and googling around but cannot find a suitable solution for my problem. I have an AbstractDefaultAjaxBehavior that I'm implemented the function respond(AjaxRequestTarget target) like this --- @Override protected void respond(AjaxRequestTarget

Re: JSON response in wicket = 6.0.0

2012-10-20 Thread Gonzalo Aguilar Delgado
().scheduleRequestHandlerAfterCurrent(textRequestHandler); On Sat, Oct 20, 2012 at 4:00 PM, Gonzalo Aguilar Delgado gagui...@aguilardelgado.com wrote: Hello, I was looking to some code and googling around but cannot find a suitable solution for my problem. I have an AbstractDefaultAjaxBehavior that I'm

Re: JSON response in wicket = 6.0.0

2012-10-20 Thread Gonzalo Aguilar Delgado
(textRequestHandler); On Sat, Oct 20, 2012 at 4:00 PM, Gonzalo Aguilar Delgado gagui...@aguilardelgado.com wrote: Hello, I was looking to some code and googling around but cannot find a suitable solution for my problem. I have an AbstractDefaultAjaxBehavior that I'm

Re: Validation with component not required

2012-10-16 Thread Gonzalo Aguilar Delgado
Hello Sven, I wanted to know when someone fills the field. It's really not necessary. I suppose this is the problem. Will check again. Thank you! El mié, 10-10-2012 a las 14:44 +0300, Martin Grigorov escribió: Hi, On Wed, Oct 10, 2012 at 1:59 PM, Gonzalo Aguilar Delgado gagui

Re: Twitter Bootstrap in Wicket

2012-10-16 Thread Gonzalo Aguilar Delgado
Hello Chris, I can answer yes! But it's not working well for IE9. It gave me big headaches. For the rest of the navigators it ran well... Here is a demo. You cannot login, sorry. http://www1.seglan.com/remesas-movistar/remesas/login?0 I used several projects: Bootstrap:

Re: Validation with component not required

2012-10-10 Thread Gonzalo Aguilar Delgado
. The following test shows it: https://git-wip-us.apache.org/repos/asf?p=wicket.git;a=commitdiff;h=d3f3b43e Why to you think the actual behavior is different? Sven On 10/06/2012 02:15 PM, Gonzalo Aguilar Delgado wrote: Hello, I've found a little issue with validators. When you

Re: Validation with component not required

2012-10-10 Thread Gonzalo Aguilar Delgado
Aguilar Delgado wrote: Hello, I've found a little issue with validators. When you set an StringValidator.ExactLengthValidator(9) into a TextField it requires you to enter exactly 9 chars. This seems to be okay. But what happens when the field is not required. setRequired(false

Validation with component not required

2012-10-06 Thread Gonzalo Aguilar Delgado
Hello, I've found a little issue with validators. When you set an StringValidator.ExactLengthValidator(9) into a TextField it requires you to enter exactly 9 chars. This seems to be okay. But what happens when the field is not required. setRequired(false). What's the correct behavior?! It

Announce: Wicket and Dojo integration for Wicket 6.0.0

2012-09-14 Thread Gonzalo Aguilar Delgado
Hello, I'm doing some work integrating Wicket and Dojo. I've just taken the well done wiquery library and tried to go that way. But I'm diverging to optimize the library for Dojo great toolkit. Maybe you want take a look. There's not much done, but the core. Hope it's the place to announce.

Do I need a custom ResourceAggregator

2012-09-08 Thread Gonzalo Aguilar Delgado
Hello, I'm reimplementing my dojo interface again with version 6.0.0 of wicket. I need to replicate same functionality that gives ResourceAggregator + OnDomReadyHeaderItem. I mean, I need that every script that goes into the require when don is aggregated. require([dojo/dom, dojo/domReady!],

Re: Do I need a custom ResourceAggregator

2012-09-08 Thread Gonzalo Aguilar Delgado
)); } } ... } Is this correct way to do it? Best regards, El sáb, 08-09-2012 a las 21:35 +0200, Gonzalo Aguilar Delgado escribió: Hello, I'm reimplementing my dojo interface again with version 6.0.0 of wicket. I need to replicate same functionality that gives

Re: onSelectionChanged is not calling converters

2012-07-15 Thread Gonzalo Aguilar Delgado
escribió: Hi, DropDownChoice doesn't use converters, that's intended. What default model is your choice getting/setting values from/to? Do you use a CompoundPropertyModel? Sven On 05/14/2012 05:59 PM, Gonzalo Aguilar Delgado wrote: Hello, I've just found working with 1.5.6

onSelectionChanged is not calling converters

2012-05-14 Thread Gonzalo Aguilar Delgado
Hello, I've just found working with 1.5.6 that DropDownChoice control that it may be not calling Converters. Because the model is still a string while calling to onSelectionChanged(Provincia provincia) and it fails: Caused by: java.lang.ClassCastException: java.lang.String cannot be cast

Re: setReuseItems(true) + transactions = ERROR

2011-06-04 Thread Gonzalo Aguilar Delgado
Hi, are you sure your model is a LDM? Yes. Sure. Encapsulated by an CompoundPropertyModel. --- new CompoundPropertyModel(scaffoldableModel) --- /* * Need this because wicket serializes everything and need to reload it when * it's needed. This way wicket

Re: setReuseItems(true) + transactions = ERROR

2011-06-04 Thread Gonzalo Aguilar Delgado
is instantiated... Will search more... El sáb, 04-06-2011 a las 11:28 +0200, Gonzalo Aguilar Delgado escribió: Hi, are you sure your model is a LDM? Yes. Sure. Encapsulated by an CompoundPropertyModel. --- new CompoundPropertyModel(scaffoldableModel) --- /* * Need

Re: setReuseItems(true) + transactions = ERROR (Solved!)

2011-06-04 Thread Gonzalo Aguilar Delgado
the Wicketopia example as a template if you want. On Sat, Jun 4, 2011 at 6:01 AM, Gonzalo Aguilar Delgado gagui...@aguilardelgado.com wrote: I removed transactional pointcuts to see if this removes the issue. But the problem got worse. It seems that something is really wrong configured

Re: setReuseItems(true) + transactions = ERROR (Solved!)

2011-06-04 Thread Gonzalo Aguilar Delgado
(); } } }; Hope it helps someone. El sáb, 04-06-2011 a las 14:31 +0200, Gonzalo Aguilar Delgado escribió: Oh man... It's almost solved but a lot of things happened in the middle: 1.- I was using wicket examples configurations that makes no use

Re: setReuseItems(true) + transactions = ERROR

2011-06-03 Thread Gonzalo Aguilar Delgado
On 06/03/2011 04:56 AM, Gonzalo Aguilar Delgado wrote: Hello, I used to refresh all the components in the listview for each http transaction. But now I tried to use the: setReuseItems(true); When using a ListView. Documentation says that is a must (but I made it to work without

Re: setReuseItems(true) + transactions = ERROR

2011-06-03 Thread Gonzalo Aguilar Delgado
:26 +0200, Gonzalo Aguilar Delgado escribió: Hi Sven, Thank you for the update. I will check why they are not detached... They should. Tnx again. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: setReuseItems(true) + transactions = ERROR

2011-06-03 Thread Gonzalo Aguilar Delgado
Hi James, I added it already: - filter filter-nameopenSessionInViewFilter/filter-name filter-classorg.springframework.orm.hibernate3.support.OpenSessionInViewFilter/filter-class init-param

Re: While dojo project is still alpha status I want to say something about scaffolding in wicket

2011-06-02 Thread Gonzalo Aguilar Delgado
Hi James, Yes, please, send me a .war. My e-mail has no limit in storage. gagui...@aguilardelgado.com El mié, 01-06-2011 a las 16:34 -0400, James Carman escribió: On Wed, Jun 1, 2011 at 2:59 PM, Gonzalo Aguilar Delgado gagui...@aguilardelgado.com wrote: Does it took long to program

Re: While dojo project is still alpha status I want to say something about scaffolding in wicket

2011-06-02 Thread Gonzalo Aguilar Delgado
for the whole database. Also still in alpha... I will setup some screenshots so you can see it in action. Have to port to dojo also. :D Too many things as I said. Tnx again. El mié, 01-06-2011 a las 16:43 -0400, James Carman escribió: On Wed, Jun 1, 2011 at 3:41 PM, Gonzalo Aguilar Delgado

setReuseItems(true) + transactions = ERROR

2011-06-02 Thread Gonzalo Aguilar Delgado
Hello, I used to refresh all the components in the listview for each http transaction. But now I tried to use the: setReuseItems(true); When using a ListView. Documentation says that is a must (but I made it to work without it). The problem is that now the objects are serialized and

Re: While dojo project is still alpha status I want to say something about scaffolding in wicket

2011-06-01 Thread Gonzalo Aguilar Delgado
, Gonzalo Aguilar Delgado gagui...@aguilardelgado.com wrote: Hi James, I was looking for a lng time for scaffolding and found nothing. I need to take a review to wicketopia to see what it offers. Thank you a lot for the update. No subestimes el poder de la gente estúpida en

Re: While dojo project is still alpha status I want to say something about scaffolding in wicket

2011-06-01 Thread Gonzalo Aguilar Delgado
gente estúpida en grupos grandes El mar, 31-05-2011 a las 15:43 -0400, James Carman escribió: Download the example application and run it and you can see it in action On May 31, 2011 11:36 AM, Gonzalo Aguilar Delgado gagui...@aguilardelgado.com wrote: Hi James, I was looking for a lng

Re: wicket-dojo project (Should I change project name?)

2011-05-31 Thread Gonzalo Aguilar Delgado
:25 +0200, Martin Grigorov escribió: Hi, On Sun, Mar 13, 2011 at 9:04 PM, Gonzalo Aguilar Delgado gagui...@aguilardelgado.com wrote: Hi Martin, Yes I knew about this but I thought it was obsolete. I tried to use some time ago but it didn't worked. Also was a little bit difficult

While dojo project is still alpha status I want to say something about scaffolding in wicket

2011-05-31 Thread Gonzalo Aguilar Delgado
Hi again, too many things are going on. But I don't want to lose the oportunity to let people join or upgrade what we are building. I've just created another project that uses wicket-dojo so I can test features in a real project. I have to upload the code to gitorious.org

Re: While dojo project is still alpha status I want to say something about scaffolding in wicket

2011-05-31 Thread Gonzalo Aguilar Delgado
escribió: Wicketopia has a scaffold component already. Perhaps we can use some of your ideas to enhance it? On Tue, May 31, 2011 at 9:41 AM, Gonzalo Aguilar Delgado gagui...@aguilardelgado.com wrote: Hi again, too many things are going on. But I don't want to lose the oportunity to let

Re: body tag contributions with wicket 1.5 (Dojo needs it)

2011-03-13 Thread Gonzalo Aguilar Delgado
if you need help with this... gagui...@aguilardelgado.com -- Gonzalo Aguilar Delgado Consultor CRM - Ingeniero en Informática M. +34 607 81 42 76 No subestimes el poder de la gente estúpida en grupos grandes El vie, 04-03-2011 a las 10:44 +0200, Martin Grigorov escribió: Run

wicket-dojo project (Should I change project name?)

2011-03-13 Thread Gonzalo Aguilar Delgado
Hi all, I started a new project to give support for dojo to the current wicket base 1.5. I don't know if it will reach much far but wanted to revamp the dojo support in wicket. I have not much time but will try to add widgets and more support when I need it in my projects. This is why I asked

Re: wicket-dojo project (Should I change project name?)

2011-03-13 Thread Gonzalo Aguilar Delgado
know or not. This project has been done with Dojo 0.4 and Wicket 1.(2|3) and then partially upgrated to Dojo 1.1 and Wicket 1.(4|5). And yes - this mailing list is the right place for such announcements and discussions! On Sun, Mar 13, 2011 at 4:01 PM, Gonzalo Aguilar Delgado gagui

Re: New Wicket tutorial series

2011-03-13 Thread Gonzalo Aguilar Delgado
Nice work Tomasz!!! El sáb, 12-03-2011 a las 22:04 +0100, Tomasz Dziurko escribió: Hello. As I am using Wicket for over two years, some time ago I decided to start sharing my knowledge and write tutorial where I am showing process of creating Wicket application from scratch. Actually

Re: body tag contributions with wicket 1.5 (Dojo needs it)

2011-03-04 Thread Gonzalo Aguilar Delgado
Yes I did it. It runs as I told but does not change body Martin Grigorov mgrigo...@apache.org wrote: Did you register this custom markup filter ? See org.apache.wicket.markup.MarkupParserFactory javadoc to see how to do it. On Fri, Mar 4, 2011 at 8:08 AM, Gonzalo Aguilar Delgado gagui

Re: body tag contributions with wicket 1.5 (Dojo needs it)

2011-03-03 Thread Gonzalo Aguilar Delgado
Aguilar Delgado wrote: Hello, I'm building a wiJQuery equivalent for Dojo. And it seems to work nice with new wicket 1.5. HeaderContributions are really nice... Great work! But I ran into problems when trying to setup the themes. I have to put something like this in the body: body

Re: body tag contributions with wicket 1.5 (Dojo needs it)

2011-03-03 Thread Gonzalo Aguilar Delgado
or whatever the Dojo theme depends on. See org.apache.wicket.markup.parser.filter.RelativePathPrefixHandler for example. On Thu, Mar 3, 2011 at 12:15 PM, Gonzalo Aguilar Delgado gagui...@aguilardelgado.com wrote: Hello Matt, It does not work as I cannot override add method from webmarkupcontainer

Re: [1.5.0-rc2] possible bug with danish characters

2011-03-03 Thread Gonzalo Aguilar Delgado
Hi Will try it. Is there a complete example with the html in place there? Tnx - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: [1.5.0-rc2] possible bug with danish characters

2011-03-03 Thread Gonzalo Aguilar Delgado
Have you tried 1.5? -- Gonzalo Aguilar Delgado Consultor CRM - Ingeniero en Informática M. +34 607 81 42 76 No subestimes el poder de la gente estúpida en grupos grandes El jue, 03-03-2011 a las 20:09 +0200, Martin Grigorov escribió: trunk from today runs at http

Re: body tag contributions with wicket 1.5 (Dojo needs it)

2011-03-03 Thread Gonzalo Aguilar Delgado
); } } else if (tag.isClose()) { } } return tag; } } -- Gonzalo Aguilar Delgado Consultor CRM - Ingeniero

body tag contributions with wicket 1.5 (Dojo needs it)

2011-03-02 Thread Gonzalo Aguilar Delgado
Hello, I'm building a wiJQuery equivalent for Dojo. And it seems to work nice with new wicket 1.5. HeaderContributions are really nice... Great work! But I ran into problems when trying to setup the themes. I have to put something like this in the body: body class=claro /body But I rode a

Re: StringResourceModel - On the Fly

2010-09-06 Thread Gonzalo Aguilar Delgado
Hi MSantos, I have similar problem. I want to localize a string inside a class, but I think your approach is not the good solution. I will look around but If someone has any alternatives please say... Tnx. El lun, 06-09-2010 a las 06:00 -0700, msantos escribió: Hello there. I am using

Re: StringResourceModel - On the Fly

2010-09-06 Thread Gonzalo Aguilar Delgado
(); { } Should be translated to something similar to field ${fieldName} of ${fieldDescription} is equal to ${fieldDataValue} And have a way to access this as if we were in a component. But how to do it inside a class that is not a component? El lun, 06-09-2010 a las 18:41 +0200, Gonzalo Aguilar

Serialization Problem

2010-06-22 Thread Gonzalo Aguilar Delgado
Hi there, I'm currently running out of ideas on this problem. When detaching the request wicket it's giving me a nasty Serialization exception problem. It happens that the error is: --- - Error serializing object class

Re: Where to put HTML files?

2009-11-03 Thread Gonzalo Aguilar Delgado
Thank you a lot to all for your commentaries... Everything exposed here seems to help me in one way or another. I will run a test for best approach and after decide the best way for me. Thank you again! El jue, 29-10-2009 a las 14:27 +0100, Martijn Dashorst escribió: On Thu, Oct 29, 2009

Dynamic Rendering and Common Paramenters

2009-11-03 Thread Gonzalo Aguilar Delgado
Hello Again! I have a form that I build dynamically based on a render parameter value. I'm using http://cwiki.apache.org/WICKET/forms-with-dynamic-elements.html I use the constructor: /** * Constructor */ public ViewModePage() { ...

Re: Dynamic Rendering and Common Paramenters

2009-11-03 Thread Gonzalo Aguilar Delgado
out the best way to your component. You can simple keep this model on an instance variable for example. On Tue, Nov 3, 2009 at 7:22 AM, Gonzalo Aguilar Delgado gagui...@aguilardelgado.com wrote: Hello Again! I have a form that I build dynamically based on a render parameter value

Re: Dynamic Rendering and Common Paramenters

2009-11-03 Thread Gonzalo Aguilar Delgado
I should build the form inside a component instead the page. And I should keep a reference to the dynamic model inside this component. Not what I try to mean. So what's the way? your report: But as I have to build the form I do not have a dynamic model on page. You can have your

Re: Dynamic Rendering and Common Paramenters

2009-11-03 Thread Gonzalo Aguilar Delgado
(QuestionComponentFactory.getComponent(question, response)); be sure of to work on the same response instance that is on your form model. On Tue, Nov 3, 2009 at 1:38 PM, Gonzalo Aguilar Delgado gagui...@aguilardelgado.com wrote: I should build the form inside a component

Where to put HTML files?

2009-10-29 Thread Gonzalo Aguilar Delgado
Hi, I'm just wondering were to put html pages. Currently I using the same path as .java files. I created two compilation units, one for java and one for resources. After compiling both units are joined and put into the same folder. But this is tricky to handle as sources are compiled into jar

Re: OpenSessionInViewFilter not working in portlets?

2009-09-14 Thread Gonzalo Aguilar Delgado
Hi Ate, Right! That was! Now it's working... I will have to deal with transactions now but I think it's working properly now. Thank you a lot. El lun, 14-09-2009 a las 10:02 +0200, Ate Douma escribió: dispatcherREQUEST/dispatcher dispatcherINCLUDE/dispatcher

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-09-12 Thread Gonzalo Aguilar Delgado
escribió: Happy to help, please see further answers below. 2009/8/17 Gonzalo Aguilar Delgado g...@aguilardelgado.com: I have several suggestions. The order of the web filters are important. You could also try with with the wicket spring managed apps, im not sure how that applies

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-09-12 Thread Gonzalo Aguilar Delgado
escribió: Happy to help, please see further answers below. 2009/8/17 Gonzalo Aguilar Delgado g...@aguilardelgado.com: I have several suggestions. The order of the web filters are important. You could also try with with the wicket spring managed apps, im not sure how that applies

OpenSessionInViewFilter not working in portlets?

2009-09-12 Thread Gonzalo Aguilar Delgado
Hi, I'm trying to make the OpenSessionInViewFilter to work with my portlets but it seems that does not initialize nor work. Can you check if something is wrong, please? Thank you -- web.xml

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-17 Thread Gonzalo Aguilar Delgado
(Component.java:1095) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1751) ... 109 more May this have something to do with selected configuration? Thank you again. El vie, 14-08-2009 a las 10:53 +0200, Gonzalo Aguilar Delgado escribió

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-17 Thread Gonzalo Aguilar Delgado
Ok. Maybe I don't understand... Let me show the situation. I have Spring + portlet + hibernate config with transactions working with the current configuration: I have my DAO objects under package com.level2crm.hibernate.enterprise.dao.contact And model under com.level2crm.model I configured one

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-17 Thread Gonzalo Aguilar Delgado
/*), get's hit? What's your wicket filter url, the same or? No, It's different. Can I set it to just /*? Should I do it that way? Thank you very much for your answers... 2009/8/17 Gonzalo Aguilar Delgado g...@aguilardelgado.com: Ok. Maybe I don't understand... Let me show

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-14 Thread Gonzalo Aguilar Delgado
) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1751) ... 109 more May this have something to do with selected configuration? Thank you again. El vie, 14-08-2009 a las 10:53 +0200, Gonzalo Aguilar Delgado escribió: Hi again, For a shake of completeness y will provide two

Wicket and Transactions

2009-08-14 Thread Gonzalo Aguilar Delgado
Hi, I've found that introducing a pointcut over my portlet and application makes Wicket to scream... It seesm that pointcut is effective but interfere with wicket normal init. I tried to setup the pointcut over the pages instead, where the hibernate daos are used but it has no effect. What

Portlet and ... 2.0 (How to pass parameters?)

2009-08-13 Thread Gonzalo Aguilar Delgado
Hi all!, I have some questions about parameter passing in portal environment. I saw that WebPage class can have access to the Application class but not the portlet class. This makes a little tricky to handle requests because: We can set session paramaters. And can call functions inside

Re: Portlet and ... 2.0 (How to pass parameters?)

2009-08-13 Thread Gonzalo Aguilar Delgado
. The other way to do it is with events. But this is not mature enough. El jue, 13-08-2009 a las 22:01 +0200, Rob Sonke escribió: Could you maybe explain why you need it? Do you want to pass data inside your portlet or to another portlet? Rob On 8/13/09 1:43 PM, Gonzalo Aguilar Delgado

Re: SV: Portlet and ... 2.0 (How to pass parameters?)

2009-08-13 Thread Gonzalo Aguilar Delgado
El jue, 13-08-2009 a las 14:46 +0200, Wilhelmsen Tor Iver escribió: But it will be the portlet class the responsible for handling processing. So the only way to pass information from the onClick function to the portlet application for rendering (for example) is using the portlet

Re: Portlet and ... 2.0 (How to pass parameters?)

2009-08-13 Thread Gonzalo Aguilar Delgado
(); return setDetails.toArray(); } return null; } }; It seems to work right. But means are subject of discussion... Tnx El jue, 13-08-2009 a las 13:43 +0200, Gonzalo Aguilar