Re: Wicket / Hibernate / Databinder (dead?)

2011-05-28 Thread Daniel Toffetti

jbrookover wrote:
 
 We've been using Wicket 1.4 + Hibernate 3.3 + Databinder 1.3.0 for quite
 some time now.  I wanted to update to a more recent version of Hibernate,
 but Databinder was incompatible and seems pretty dead.
 
 My question is what do people use for their bridge between Wicket and
 Hibernate?  Do you all write your own LoadableDetachableModels to load
 from the database?  Is there an alternative to Databinder that I don't
 know about?  A wicketstuff wiki page mentioned 'HibernateModel' but I
 haven't seen any actual code.
 
 I love Databinder's HibernateObjectModel, SortableHibernateProvider, etc. 
 If there's nothing else, I'll keep on updating them, but I wanted to make
 sure there wasn't some more active alternative.
 

Hi,

AFAIK Nathan was not maintaining it anymore but Rodolfo Hansen was
working on it a while ago to get it up to new versions of Hibernate and
Wicket, please check here: https://github.com/kryptt, last updates are from
April 5.

Cheers,

Daniel


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Hibernate-Databinder-dead-tp3557635p3557902.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Problem with two users logging in two tabs of same browser window

2010-11-05 Thread Daniel Toffetti

This is not a valid use case, so I must log out the first user, but how
can I affect its own browser tab so that it displays a logged out message
?  Is this possible ?

Thanks for your help,

Daniel


Martijn Dashorst wrote:
 
 Your browser doesn't identify a new tab as a new session. Therefore
 the servlet container doesn't know that it is a new user. If it is a
 valid usecase, you should build multi user session sharing in your
 app. If it is a bug, you should properly log out the first user when
 the new user is identified in the second tab.
 
 Martijn
 

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-with-two-users-logging-in-two-tabs-of-same-browser-window-tp3027407p3029083.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



Problem with two users logging in two tabs of same browser window

2010-11-04 Thread Daniel Toffetti

Hi all,

I have a problem when two users log in the application from two tabs of
the same browser window, it looks as if both where working in the same
session, and the data entered by the second user appears as if entered by
the first user. It's an internal app and this problem happens rarely but
it's annoying when it happens.
The app holds the user id as a session variable. I've found this two
threads:

http://apache-wicket.1842946.n4.nabble.com/Wicket-Multi-Instance-Support-td1879743.html#a1879745
http://apache-wicket.1842946.n4.nabble.com/Creating-a-new-session-if-new-browser-tab-is-opened-td1868974.html#a1868975

but those didn't help me to figure out what's happening. Perhaps the
problem is an actually obvious one and I just can't guess it because of my
plain ignorance, so please don't hesitate to point out anything obvious.
I'm using Wicket 1.3.7 in production but I'm ready to migrate to 1.4.13
and would like to fix this before I deploy the upgrade, do I need to show
any app init code ??

Thanks for your help,

Daniel

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-with-two-users-logging-in-two-tabs-of-same-browser-window-tp3027407p3027407.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Problem with two users logging in two tabs of same browser window

2010-11-04 Thread Daniel Toffetti

;)  If you mean the kind of entity proxies used by some persistence
mechanisms, I'm using none of those. I have no static variables in my
application or session, but... can this be the issue ?

MyApplication.java:
public static MyApplication get() {
return (MyApplication) Application.get();
}

MySession.java:
public static MySession get() {
return (MySession) Session.get();
}

Cheers,

Daniel


Martin Makundi wrote:
 
 Hi!
 Yeah, migrate ;)
 
 Apart from that.. session leak can occur for quite some reasons. It
 might be proxy bug or maybe you have static variables in places where
 they should not be.
 Martin
 

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-with-two-users-logging-in-two-tabs-of-same-browser-window-tp3027407p3027490.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 Web Beans

2010-10-26 Thread Daniel Toffetti

Hi Josh,

The last downloadable release (v 1.1) supports Wicket 1.3, and current
trunk (1.2) supports Wicket 1.4. Some days ago Dan created a branch in which
I'll try to migrate to Wicket 1.5 in the near future.
From time to time, a new issue pops in the issue tracker, so I can say
some people is using it. The project is only receiving migration updates and
maintenance fixes. In case you don't know, the SourceForge site is not used
anymore, please go to the Google Code site:

  http://code.google.com/p/wicket-web-beans/

Cheers,

Daniel


Josh Kamau wrote:
 
 Hi Guys,
 
 Is wicket web beans project still being developed? There is somewhere in
 the
 docs where its indicated that it supports wicket 1.3RC1?
 Is someone using it?
 

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Web-Beans-tp3013497p3014807.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: Re Wicket Web Beans

2010-08-16 Thread Daniel Toffetti

Where does your fields come from ?  In WWB, you have to provide beans,
and configure them with annotations or beanprops files to control the way
the beans are displayed.
You can provide beans and they will be correctly displayed in a default
way, with proper editing inputs according to the datatype of each field. But
both the beans and the (optional) configurations need to be coded, you will
not be able to provide WWB with a stream of isolated fields.
Regarding validations, some are provided by WWB itself (required),
anything else will be rather hard to add with standard WWB, but you can
provide customized input field implementations (see customfields example).
Of course those custom fields will not be used by default, you will have to
configure the properties to use them.

See live examples here:

http://jweekend.com/wicketwebbeans-examples-1.1/WebBeans/

And the source code for the examples here:

http://code.google.com/p/wicket-web-beans/source/browse/#svn/trunk/wicketwebbeans-examples/src/main/java/com/googlecode/wicketwebbeans/examples

Hth,

Daniel

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Re-Wicket-Web-Beans-tp2326481p2327195.html
Sent from the Wicket - User 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: Re Wicket Web Beans

2010-08-16 Thread Daniel Toffetti

Hi Niv,

I'm not sure if I just get your domain model right, the closest I think
you can get is something like this:

http://jweekend.com/wicketwebbeans-examples-1.1/WebBeans/?wicket:interface=:0:2:::

Where you can have a list (a table) of fields, each with a name, a
datatype and a value. But all values in each column will be represented with
one single type of input field.
Perhaps you can attempt to create a custom field for the value
property, that renders a different input for each datatype, but I'm not sure
if this can be done at all.
One problem is, how to re-render the input if the datatype changes ? 
Don't think WWB allows that easily.

Cheers,

Daniel

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Re-Wicket-Web-Beans-tp2326481p2327733.html
Sent from the Wicket - User 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: A web site developed with Wicket

2010-03-17 Thread Daniel Toffetti
voltron kocamane at yahoo.com writes:
 Hello,
 
 http://www.nofailtime.com/appmonitor is a web application
 developed with wicket framework.
 
 .
 
 I would be happy if you try the site and give feedback. You
 can login the site with account;
 username = demo
 password = demo
 
 Thanks,

It looks great, I like specially the menu. Some panels (Login, Subscription
Update) seem to be somewhat to the right of the screen, it would be better if
they were centered.
And I get a 1 centimeter wide vertical padding both to the left and to the
right, don't know if this is intentional, it doesn't look good but perhaps it's
just me.
Could not crash it yet, tested with Firefox 3.6 / Windows XP on a 17 CRT
(non-wide format).

Cheers,

Daniel



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



Re: Component level FeedbackPanel's (and a form-level one)

2009-11-12 Thread Daniel Toffetti
Tomás Rossi trossi at mecon.gov.ar writes:
 
 Hi people,
 
 ¿What is the Wicket's way of adding component level feedback panels? I 
 mean, having one feedback panel for each form component (on a side or 
 below the field), and somehow a global feedback panel with a filter so 
 that it doesn't show the already showed messages.

 Thanks,
 Tom;
 
 PS: I've already done it using a Label for each component instead of a 
 FeedbackPanel and it worked, but now trying another (more proper) approach.

Hope you can get some useful ideas here:

http://code.google.com/p/londonwicket/downloads/detail?name=LondonWicket-FormsWithFlair.pdf

It doesn't include a global feedback, but you can enhance it to meet your 
needs.

Regards,

Daniel



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



Re: + key as alternative for tab key

2009-09-23 Thread Daniel Toffetti
Boydens Joeri (OZ joeri.boydens at oz.be writes:
 How would you do this in an elegant and generic way ?
 
 Joeri  
 

Also, take a look at wicketstuff-input-events

Daniel



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



Re: Dynamic fields in form

2009-07-18 Thread Daniel Toffetti
Agus Purnomo furunomail at gmail.com writes:
 
 ... etc etc etc ...
 
 Is this good enough? Well, at least this works and simple enough to me...
 Anyone has better solutions?
 

I don't know if it's a better solution, perhaps just an alternative, have
you taken a look at Wicket Web Beans ?

  http://code.google.com/p/wicket-web-beans/


Regards,

Daniel




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



Re: JDeveloper - Can I get a show of hands?

2009-06-19 Thread Daniel Toffetti
Juan Carlos Garcia M. jcgarciam at gmail.com writes:
 
 I always thought God used only in LISP :)
 
 Nicolas Melendez wrote:
  
  god used Eclipse 1.0 to develop universe.
 
  NM
  Software Developer - Buenos aires, Argentina.
  

No. Sadly, He didn't:

http://xkcd.com/224/

Daniel



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



Re: WWB for W 1.4 (was Re: when will be wicket 1.4 final release)

2009-06-06 Thread Daniel Toffetti
danisevsky danisevsky at gmail.com writes:
 
 Hi Daniel, when I tried build web beans project I get the following error
 
 [ERROR] BUILD FAILURE
 [INFO]
 
 [INFO] Compilation failure
 
 C:\projects\webbeans\wicketwebbeans-databinder\src\main\java\com\
googlecode\wick
 etwebbeans\databinder\DataSearchFilter.java:[91,23] cannot find symbol
 symbol  : method getModelObject()
 location: class net.databinder.components.hib.SearchPanel
 
 C:\projects\webbeans\wicketwebbeans-databinder\src\main\java\com\
googlecode\wick
 etwebbeans\databinder\DataSearchFilter.java:[101,59] cannot find symbol
 symbol  : method getModelObject()
 location: class net.databinder.components.hib.SearchPanel
 

Hi,

Databinder support is not migrated to 1.4 yet, and if I'm correct
Databinder itself is not migrated to 1.4, try building the WWB jar
and not the parent project, I'll take a look at Databinder status.

hth,

Daniel



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



WWB for W 1.4 (was Re: when will be wicket 1.4 final release)

2009-06-05 Thread Daniel Toffetti
danisevsky danisevsky at gmail.com writes:
 
 Hi,
 I would like ask you when I can expect wicket 1.4 final release? I am asking
 because I am waiting for wicket web beans which will be release after filnal
 wicket 1.4 release.
 Thanks for answer.
 

Hi,

Wicket Web Beans has been updated to Wicket 1.4, there is not a
final release yet, you can check the code in trunk:

  http://code.google.com/p/wicket-web-beans/source/checkout


Regards,

Daniel




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



Re: Anemic domain model and are @SpringBean's compatible with the solution in

2009-05-29 Thread Daniel Toffetti
James Carman jcarman at carmanconsulting.com writes:
 
 On Fri, May 29, 2009 at 4:04 AM, Kent Larsson kent.larsson at gmail.com
 wrote:
  I try not to design my domain models in such a way
 
  Could you elaborate on this a bit, please?
 
 I kind of cheat a bit.  When there needs to be something done that
 involves multiple domain entities, I usually push that logic into a
 service class rather than into the entities themselves.  For
 operations solely involving an entity and its aggregated entities, I
 usually put that into the entity class itself.
 

Out of curiosity, does the practice of building medium to
complex queries and mixed batches of updates and deletes within
stores procedures, for optimum DB performance, has been completely
deprecated ???

Cheers,

Daniel




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



Re: when will be wicket 1.4 final release

2009-05-27 Thread Daniel Toffetti
danisevsky danisevsky at gmail.com writes:
 
 Hi,
 I would like ask you when I can expect wicket 1.4 final release? I am asking
 because I am waiting for wicket web beans which will be release after filnal
 wicket 1.4 release.
 Thanks for answer.
 

Hi,

With some luck, there will be an alpha of WWB for Wicket 1.4 committed to
trunk in a week or so.

hth,

Daniel




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



Re: [announce] WicketStuff Artwork new release

2009-05-26 Thread Daniel Toffetti
nino martinez wael nino.martinez.wael at gmail.com writes:
 
 Hi Guys
 
 Just wanted to tell that theres a new release of wicketstuff artwork
 out.  This time including niftycornerscube.
 
 Artwork, will pimp the graphics of your web site by adding some small
 javascript behaviors to your components that for example can make
 round corners..
 
 See here for more info  screenshots:
 
 http://ninomartinez.wordpress.com/2009/05/26/wicketstuff-artwork-new-release/'
 
 regards Nino
 

Your link has an extra character, here it goes:

http://ninomartinez.wordpress.com/2009/05/26/wicketstuff-artwork-new-release/

Nice stuff, thanks for sharing !!!

Daniel




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



Exception message somewhat unhelpful

2009-05-26 Thread Daniel Toffetti
Hi all,

I'm getting The model must provide a non-null object exception, from
PackagedResourceReference, line 177.
I guess the message would be a lot more useful if  for componentId  + id,
was added to the message. I've noticed this happens in a lot of other similar
exception messages as well.
Is this a reasonable request, should I add a JIRA issue for this ?

Cheers,

Daniel



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



Re: Wicket Web Beans 1.1 and Wicket 1.4

2009-05-20 Thread Daniel Toffetti

danisevsky danisevsky danisevsky at gmail.com writes:

 
 Hi
 
 I wanted to try Wicket Web Beans 1.1 upload example but I get the following
 exception
 
 .
 
 Is Wicket Web Beans 1.1 incompatible with Wicket 1.4 rc4 or is reason of
 exception something else?
 
 Thanks for reply
 

Hi,

WWB 1.1 is compatible with Wicket 1.3.x, it's expected that
a new version of WWB compatible with Wicket 1.4 will be released
shortly after Wicket 1.4 goes final.

hth,

Daniel



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



Re: Logging for performance analysis

2009-04-27 Thread Daniel Toffetti
Douglas Ferguson douglas at douglasferguson.us writes:
 
 We are experiencing some hard to trace performance issues (CPU pegged by
JAVA). so we want to implement some
 logging in order to Audit the code.
 
 Any suggestions on wicket state that we can easily print out? I.E. size of
page map? Etc?
 
 D/

Hi,

I'm having similar problems, my setup is: Java 1.6.10, Wicket 1.3.5 and
Tomcat 6 on Windows XP. Tomcat seems to need 50% CPU from time to time, and
often for a very long time.
Will try Jeremy's suggestion, mind to share your findings ?

Cheers,

Daniel



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



Re: AbstractAjaxTimerBehavior start

2009-04-17 Thread Daniel Toffetti
Vladimir Zavada zavadav at gmail.com writes:
 
 Thanks for reply.
 I am just newbie to wicket.
 I tried this solution but it did not work. Probably its because 
 AbstractAjaxTimerBehavior is not a component and I am not able to set 
 setOutputMarkupId to true.
 
 Vlado
 
 Tom Wollert  wrote / napísal(a):
  Hi there,
 
  Couldn't you just add the AbstractAjaxTimerBehavior to the page/component
  after you receive the ajax call from the onSubmit event and then update the
  component using the ajax request target? (untested, but I don't see a reason
  why it wouldn't work. could imagine that this solution might not be as
  elegant as hoped)
 
  - Tom
 

You don't have to set setOutputMarkupId to true in
AbstractAjaxTimerBehavior, you just need to add it to the component that you
want activated on timer, for example your page.

hth,

Daniel



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



Found this in logs: Unable to redirect to: ?wicket:interface=:2:1:::,

2009-04-05 Thread Daniel Toffetti
Hi all,

I've found this exception in the catalina logs:


05/04/2009 14:51:17 org.apache.wicket.protocol.http.WebResponse redirect
GRAVE: Unable to redirect to: ?wicket:interface=:2:1:::, HTTP Response has
already been committed.
05/04/2009 14:51:17 org.apache.wicket.protocol.http.WicketFilter doGet
GRAVE: closing the buffer error
java.lang.IllegalStateException
at
org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java
:435)
at 
org.apache.wicket.protocol.http.WebResponse.redirect(WebResponse.java:232)
at
org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse
.java:66)
at 
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:371)
at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationF
ilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCha
in.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.jav
a:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.jav
a:175)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http1
1Protocol.java:583)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)


I don't know what caused it, how bad can it be and how to prevent it, any
help is appreciated.

Thanks,

Daniel



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