[OT] HackAttackException in CryptedUrlWebRequestCodingStrategy, line 606

2010-08-01 Thread nicolas melendez
Just wanna say that  i like the name: HackAttackException   :)

it is in CryptedUrlWebRequestCodingStrategy, line 606

Bye



-- 
Nicolás Meléndez
Java Software Developer

1) Google App Engine works:

1.a) http://www.clasificad.com.ar  (Local free classifieds for  housing,
sale, services, local community, curses,jobs, and events - GAE/J + Wicket +
YUI)

1.b) http://www.chessk.com  (Massive multiplayer chess online  GAE/J +
Applets + Wicket)

2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez


FileUploadException wrapped in wiketRuntime exception, why? is that a good practice?

2010-07-31 Thread nicolas melendez
Hi there, i have a question about FileUploadException.

In line 80 of MultipartServletWebRequest, the constructor throws
FileUploadException which is checked, and then in line 500 of
ServletWebRequest, it was wrapped to a wickerRuntimeException,

@Override
public WebRequest newMultipartWebRequest(Bytes maxsize)
{
try
{
MultipartServletWebRequest multipart = new
MultipartServletWebRequest(
httpServletRequest, maxsize);
multipart.setRequestParameters(getRequestParameters());
return multipart;
}
catch (FileUploadException e)
{
throw new WicketRuntimeException(e);
}
}


is that a good practice?, why FileUploadException is a checked exception?
because it could be runtime exception because then it is wrapped anyway.
does anybody knows?

Thanks
NM


-- 
Nicolás Meléndez
Java Software Developer

1) Google App Engine works:

1.a) http://www.clasificad.com.ar  (Local free classifieds for  housing,
sale, services, local community, curses,jobs, and events - GAE/J + Wicket +
YUI)

1.b) http://www.chessk.com  (Massive multiplayer chess online  GAE/J +
Applets + Wicket)

2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez


Re: Welcome Martin Grigorov as a core team member

2010-07-19 Thread nicolas melendez
Hey! congratulations!

On Mon, Jul 19, 2010 at 10:12 PM, Eelco Hillenius  wrote:

> Welcome Martin, and thanks a bunch for keeping the project alive and
> kicking!
>
> Eelco
>
> On Mon, Jul 19, 2010 at 2:51 PM, nino martinez wael
>  wrote:
> > Grats Martin :)
> >
> > 2010/7/19 Jeremy Thomerson 
> >
> >> The Wicket team is happy to announce that Martin Grigorov was invited to
> >> join the Wicket team as a committer and PMC member, and he accepted!
> >>  Martin's relentless patience, high quality patches and sustained
> >> energy haven't gone unnoticed.  He has continually provided valuable
> >> insights and put a lot of effort into the project.  He helps out many on
> >> the
> >> mailing lists and IRC channel.
> >>
> >> In Martin's first two days with access, he's already made 16 commits and
> >> closed several JIRA issues.  We look forward to his continued
> >> contributions.
> >>
> >> Please join me in welcoming Martin to the team!
> >>
> >> --
> >> Jeremy Thomerson
> >> http://www.wickettraining.com
> >>
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Nicolás Meléndez
Java Software Developer

1) Google App Engine works:

1.a) http://www.clasificad.com.ar  (Local free classifieds for  housing,
sale, services, local community, curses,jobs, and events - GAE/J + Wicket +
YUI)

1.b) http://www.chessk.com  (Massive multiplayer chess online  GAE/J +
Applets + Wicket)

2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez


Re: one session for standAloneApp or one session for FacebookApp

2010-06-26 Thread nicolas melendez
sounds like Authetication rules

On Thu, Jun 24, 2010 at 3:37 PM, Fernando Wermus
wrote:

> Hi all,
>Users can login into my site in stand alone mode or with facebook
> connect. Thus, I would like to have two polimorphic session according to
> how
> the user decides to login.
>Could I switch the session in wicket when this happen?
>
> I was looking at Session.replaceSession()
>
>
> thanks in advance
>
>
> --
> Fernando Wermus.
>
> www.linkedin.com/in/fernandowermus
>



-- 
Nicolás Meléndez
Java Software Developer

1) Google App Engine works:

1.a) http://www.clasificad.com.ar  (Local free classifieds for  housing,
sale, services, local community, curses,jobs, and events - GAE/J + Wicket +
YUI)

1.b) http://www.chessk.com  (Massive multiplayer chess online  GAE/J +
Applets + Wicket)

2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez


Re: OT: html validator that parses add'l dtd's?

2010-06-11 Thread nicolas melendez
set up your app en deployment mode, or copy the development mode setup of
wicket and modify it  in order to not show "wicket:id" tag

On Fri, Jun 11, 2010 at 3:36 PM, Nikita Tovstoles <
nikita.tovsto...@gmail.com> wrote:

> Can anyone recommend a validator (browser plugin, online, or eclipse
> plugin)
> that won't complain about  tags when dtd is declared properly. W3C
> complains about those tags even if the following is declared:
>
>  http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> http://www.w3.org/1999/xhtml"; xmlns:wicket="
> http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd";
> xml:lang="en"
> lang="en">
>
> thanks,
>
> -nikita
>



-- 
Nicolás Meléndez
Java Software Developer

1) Google App Engine works:

1.a) http://www.clasificad.com.ar  (Local free classifieds for  housing,
sale, services, local community, curses,jobs, and events - GAE/J + Wicket +
YUI)

1.b) http://www.chessk.com  (Massive multiplayer chess online  GAE/J +
Applets + Wicket)

2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez


Re: Re: RE: Rich Text Editors and Wicket

2010-05-31 Thread nicolas melendez
Strange...
It is in google app engine, are you from china?

NM

2010/5/30 wicketyan 

> sorry.can't see http://www.clasificad.com.ar/clasificadoNuevo . Even I
> used proxy,there is no rich text editors,just a publica file page.
>
> 2010-05-30
>
>
>
> wicketyan
>
>
>
> 发件人: nicolas melendez
> 发送时间: 2010-05-30  02:56:14
> 收件人: users
> 抄送:
> 主题: Re: RE: Rich Text Editors and Wicket
>
> I also use use YUI editor with wicket, see:
> http://www.clasificad.com.ar/clasificadoNuevo
> <http://www.clasificad.com.ar/clasificadoNuevo>NM
> On Sat, May 29, 2010 at 7:10 AM, wicketyan  wrote:
> > thanks Hammer,I'm learning.
> >
> >
> > 2010-05-29
> >
> >
> >
> > wicketyan
> >
> >
> >
> > 发件人: M. Hammer
> > 发送时间: 2010-05-29  15:54:09
> > 收件人: users
> > 抄送:
> > 主题: RE: Rich Text Editors and Wicket
> >
> > Quoting Chris Colman :
> > > Is your YUI/Wicket component/integration code publicly available or
> > > could it be?
> > I've written a blog post on the integration:
> > http://www.hammersoft.de/blog/?p=31
> > Maybe a FckEditor integration can be done in a similar manner. Keep me
> > posted if you do this, I am not entirely happy with YUI either.
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> --
> Nicolás Meléndez
> Java Software Developer
> 1) Google App Engine works:
> 1.a) http://www.clasificad.com.ar  (Local free classifieds for  housing,
> sale, services, local community, curses,jobs, and events - GAE/J + Wicket +
> YUI)
> 1.b) http://www.chessk.com  (Massive multiplayer chess online  GAE/J +
> Applets + Wicket)
> 2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez
>



-- 
Nicolás Meléndez
Java Software Developer

1) Google App Engine works:

1.a) http://www.clasificad.com.ar  (Local free classifieds for  housing,
sale, services, local community, curses,jobs, and events - GAE/J + Wicket +
YUI)

1.b) http://www.chessk.com  (Massive multiplayer chess online  GAE/J +
Applets + Wicket)

2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez


Re: RE: Rich Text Editors and Wicket

2010-05-29 Thread nicolas melendez
I also use use YUI editor with wicket, see:
http://www.clasificad.com.ar/clasificadoNuevo

NM

On Sat, May 29, 2010 at 7:10 AM, wicketyan  wrote:

> thanks Hammer,I'm learning.
>
>
> 2010-05-29
>
>
>
> wicketyan
>
>
>
> 发件人: M. Hammer
> 发送时间: 2010-05-29  15:54:09
> 收件人: users
> 抄送:
> 主题: RE: Rich Text Editors and Wicket
>
> Quoting Chris Colman :
> > Is your YUI/Wicket component/integration code publicly available or
> > could it be?
> I've written a blog post on the integration:
> http://www.hammersoft.de/blog/?p=31
> Maybe a FckEditor integration can be done in a similar manner. Keep me
> posted if you do this, I am not entirely happy with YUI either.
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
Nicolás Meléndez
Java Software Developer

1) Google App Engine works:

1.a) http://www.clasificad.com.ar  (Local free classifieds for  housing,
sale, services, local community, curses,jobs, and events - GAE/J + Wicket +
YUI)

1.b) http://www.chessk.com  (Massive multiplayer chess online  GAE/J +
Applets + Wicket)

2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez


Re: Small doubt about wicket and Html

2010-05-18 Thread nicolas melendez
you should use HTML/CSS for desing and java for GUI logic, like make
something invisible or visible.


On Tue, May 18, 2010 at 4:36 PM, Victor_Trapiello wrote:

>
> Thank you very much guys
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Small-doubt-about-wicket-and-Html-tp2220418p2221787.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
>
>


-- 
NM (Nicolás Meléndez)
Java Software Developer

A) Google App Engine works:

1) http://www.clasificad.com.ar - Local free classifieds for  housing, sale,
services, local community, curses,jobs, and events - GAE/J + Wicket + YUI

2) http://www.chessk.com - Massive multiplayer chess online - GAE/J +
Applets + Wicket

B) Linkedin: http://ar.linkedin.com/in/nicolasmelendez


Re: firefox 3.5.9

2010-05-17 Thread nicolas melendez
when you enter to gmail, with firebug activated, a warning appear! haha

On Tue, May 18, 2010 at 12:35 AM, Martin Makundi <
martin.maku...@koodaripalvelut.com> wrote:

> Are you using firebug?
>
> 2010/5/18 Douglas Ferguson :
> > Where are experiencing some strange latency with ajax (even the indicator
> gif stops spining), so far we've only seen it on windows firefox 3.5.9
> >
> > Are there any know issues?
> >
> > D/
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
NM (Nicolás Meléndez)
Java Software Developer

A) Google App Engine works:

1) http://www.clasificad.com.ar - Local free classifieds for  housing, sale,
services, local community, curses,jobs, and events - GAE/J + Wicket + YUI

2) http://www.chessk.com - Massive multiplayer chess online - GAE/J +
Applets + Wicket

B) Linkedin: http://ar.linkedin.com/in/nicolasmelendez


how can i add my site developed in wicket + GAE to "Websites based on Wicket"?

2010-05-15 Thread nicolas melendez
How can i add my site developed in wicket + GAE to "Websites based on
Wicket" in the wiki?
NM


Re: Big Problem with TinyMCE

2010-05-03 Thread nicolas melendez
hey!
do this:

add to the page a hidden ajaxSubmitLink and se it an id, for example:
"submitToServer". In the onclick java method of the hidden ajaxSubmitLink
do your java magic server-side.
Then in your submit button of the html page,  add a small javascript that
save HTML and then clicks the hidden link, for example:

function() {
tinyMCE.triggerSave(true,true);
 document.getElementById('submitToServer').onclick();
};

Your problem is that wicket recive the information that is in a hidden
textfield, but you have to say to tinyMce, to save in the hidden textfield
the html the user have been writing (thats what tinyMCE.triggerSave do)
then, when the data is saved in the textfield, you submit your form to the
server, and in the wicket code, you use it like a normal textfield.

NM




On Mon, May 3, 2010 at 11:49 AM, Fernando Wermus
wrote:

> I run into the same problem. I cant see the text written in text area.
> Could
> show the code you have written?
>
> thanks in advance
>
> On Mon, May 3, 2010 at 4:04 AM, Robert Kimotho  wrote:
>
> > On your AjaxButton add TinyMceAjaxSubmitModifier.
> >
> > Kimotho.
> >
> > On Fri, Apr 30, 2010 at 12:53 AM, Brad Grier  > >wrote:
> >
> > > I'm trying to use a TinyMCE editor on a form (itself belonging to a
> panel
> > > added to a page via Ajax). The form is submitted via an AjaxButton.
> From
> > > other posts here and elsewhere I found I had to call
> > > "tinyMCE.triggerSave(true,true);" before the submit to get the data
> into
> > the
> > > textarea's model and then "tinyMCE.idCounter=0;" after the submit. I
> used
> > an
> > > IAjaxCallDecorator to add these functions to the submit button.
> > >
> > > The problem is that the form only submits with every other press of the
> > > button. When it fails, it looks like no script appended after the
> > > triggerSave runs. Can anyone help me out? I'm stuck.
> > >
> > > Thanks,
> > > Brad
> >
>
>
>
> --
> Fernando Wermus.
>
> www.linkedin.com/in/fernandowermus
>


Re: YUI 3 anyone?

2010-04-28 Thread nicolas melendez
+1 YUI.
I have been working with it, and it is a very good js framework, non
intrusive with the markup, also was easy (i mean REALLY easy) to integrate
to wicket.
i used YUI components, like rich text editor or modal windows. I don't know
the ajax how it is, because i use wicket ajax.
NM

On Wed, Apr 28, 2010 at 10:59 AM, Martijn Dashorst <
martijn.dasho...@gmail.com> wrote:

> iirc the new implementation of Wicket ajax is slated for post 1.5.
> Something with too many irons in the fire...
>
> Martijn
>
> On Wed, Apr 28, 2010 at 3:50 PM, Jeremy Thomerson
>  wrote:
> > I also agree that we should use jQuery.  jQuery seems more aligned with
> > Wicket than YUI.
> >
> > --
> > Jeremy Thomerson
> > http://www.wickettraining.com
> >
> >
> >
> > On Wed, Apr 28, 2010 at 8:34 AM, Fernando Wermus
> > wrote:
> >
> >> +1 Jquery I mean
> >>
> >> On Wed, Apr 28, 2010 at 10:34 AM, Fernando Wermus <
> >> fernando.wer...@gmail.com
> >> > wrote:
> >>
> >> > +1
> >> >
> >> >
> >> > On Tue, Apr 27, 2010 at 8:02 PM, Joe Fawzy 
> wrote:
> >> >
> >> >> Hi
> >> >> i hope the dev team to consider jQuery , it seams it is the standard
> now
> >> ,
> >> >> used by all the big companies , even microsoft
> >> >> and although YUI is great, Yahoo has its own problem these days and
> we
> >> >> cannot consider the commited to the lib, they dropped support for
> many
> >> of
> >> >> their products and abandond many projects in the last 2 years
> >> >>
> >> >> this is my opinion only, u may make a vote or poll or something , or
> >> just
> >> >> pick YUI
> >> >> thanks
> >> >> Joe
> >> >> On Tue, Apr 27, 2010 at 6:13 PM, Jeremy Thomerson <
> >> >> jer...@wickettraining.com
> >> >> > wrote:
> >> >>
> >> >> > Yes, it's experimental, and it is not 100% decided that YUI will be
> >> >> used.
> >> >> >
> >> >> > --
> >> >> > Jeremy Thomerson
> >> >> > http://www.wickettraining.com
> >> >> >
> >> >> >
> >> >> >
> >> >> > On Mon, Apr 26, 2010 at 6:03 AM, Ernesto Reinaldo Barreiro <
> >> >> > reier...@gmail.com> wrote:
> >> >> >
> >> >> > > Isn't this an experimental branch?
> >> >> > >
> >> >> > > Ernesto
> >> >> > >
> >> >> > > On Mon, Apr 26, 2010 at 12:34 PM, danisevsky <
> danisev...@gmail.com>
> >> >> > wrote:
> >> >> > > > I think wicket 1.5 will use YUI 3. You can look to svn:
> >> >> > > >
> >> >> > >
> >> >> >
> >> >>
> >>
> http://svn.apache.org/repos/asf/wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/_wicket/ajax/
> >> >> > > >
> >> >> > > >
> >> >> > > > 2010/4/26 Istvan Soos 
> >> >> > > >
> >> >> > > >> Hi,
> >> >> > > >>
> >> >> > > >> Is there a cool best-practice or even better an integration
> >> library
> >> >> to
> >> >> > > >> use YUI 3? I know the standard generic way, I'm interested
> >> >> > > >> specifically in YUI 3...
> >> >> > > >>
> >> >> > > >> Thanks,
> >> >> > > >>   Istvan
> >> >> > > >>
> >> >> > > >>
> >> >> -
> >> >> > > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> >> > > >> For additional commands, e-mail: users-h...@wicket.apache.org
> >> >> > > >>
> >> >> > > >>
> >> >> > > >
> >> >> > >
> >> >> > >
> >> -
> >> >> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> >> > > For additional commands, e-mail: users-h...@wicket.apache.org
> >> >> > >
> >> >> > >
> >> >> >
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> > Fernando Wermus.
> >> >
> >> > www.linkedin.com/in/fernandowermus
> >> >
> >>
> >>
> >>
> >> --
> >> Fernando Wermus.
> >>
> >> www.linkedin.com/in/fernandowermus
> >>
> >
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.4 increases type safety for web applications
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.7
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Building tinymce-examples from wicketstuff

2010-04-23 Thread nicolas melendez
I use YUI editor, and was really easy to integrate to wicket, you only set
and read a model of a textarea with wicket.
NM

On Fri, Apr 23, 2010 at 9:11 AM, Pointbreak

> wrote:

>
> tinymce-parent.tinymce.src.main.java.wicket.contrib.tinymce.settings.TinyMCESettings
> is not a class, wicket.contrib.tinymce.settings.TinyMCESettings is. This
> has nothing to do with inner static classes, but with the way you set
> your paths during compilation.
>
> On Fri, 23 Apr 2010 13:07 +0200, "Michał Letyński" 
> wrote:
> > Did somebody build tinymce-examples from wicketstuff ? I get strange
> > exception.
> >
> >
> C:/workspace1/wicketstuff-core/tinymce-parent/tinymce-examples/src/main/java/wic
> > ket/contrib/examples/tinymce/AjaxTinyMCEPage.java:[8,-1] cannot access
> > wicket.co
> > ntrib.tinymce.settings.TinyMCESettings
> > bad class file: C:\Documents and
> > Settings\mletynski\.m2\repository\org\wicketstu
> >
> ff\tinymce\1.4.7-SNAPSHOT\tinymce-1.4.7-SNAPSHOT.jar(wicket/contrib/tinymce/sett
> > ings/TinyMCESettings.class)
> > class file contains wrong class:
> > tinymce-parent.tinymce.src.main.java.wicket.con
> > trib.tinymce.settings.TinyMCESettings
> >
> > I was playign with pom's a lot but without success. I think its a
> > problem with inner static classes inside TinyMCESettings . I tried with
> > different project from wicket-stuff and couple of them have similar
> > problems with "containg wrong classes"
> >
> > Any hints ?
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: [OT] Wicket changed my life !

2010-02-20 Thread nicolas melendez
serious traffic means that the business is fine.


On Sat, Feb 20, 2010 at 8:10 PM, Riyad Kalla  wrote:

> That depends on how much traffic your app gets. GAE isn't cheap if you
> start
> getting serious traffic and depends on the services you tie into.
>
> On Sat, Feb 20, 2010 at 1:38 PM, nicolas melendez  >wrote:
>
> > programming web applications with wicket is as funny as play a game :).
> > And with GAE, you don't need to paid for expensive Hosting :) .
> > NM
> >
> > On Sat, Feb 20, 2010 at 2:18 AM, Ben Tilford 
> wrote:
> >
> > > Models are the hardest part to learn...
> > >
> > > Because they are really models.
> > >
> > > On Sat, Feb 20, 2010 at 12:05 AM, Eelco Hillenius <
> > > eelco.hillen...@gmail.com
> > > > wrote:
> > >
> > > > Thanks for the kind words people. Definitively a key part of Wicket's
> > > > success has been an enthusiastic community.
> > > >
> > > > > The learning curve was slightly steep once we started doing
> > interesting
> > > > UI
> > > > > interactions (and also that really annoying LazyLoad exception
> during
> > > > tests
> > > > > that I still can't figure out), but it's worth the effort.
> > > >
> > > > Detachable models are your friend.
> > > >
> > > > Eelco
> > > >
> > > > -
> > > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > > For additional commands, e-mail: users-h...@wicket.apache.org
> > > >
> > > >
> > >
> >
>


Re: [OT] Wicket changed my life !

2010-02-20 Thread nicolas melendez
programming web applications with wicket is as funny as play a game :).
And with GAE, you don't need to paid for expensive Hosting :) .
NM

On Sat, Feb 20, 2010 at 2:18 AM, Ben Tilford  wrote:

> Models are the hardest part to learn...
>
> Because they are really models.
>
> On Sat, Feb 20, 2010 at 12:05 AM, Eelco Hillenius <
> eelco.hillen...@gmail.com
> > wrote:
>
> > Thanks for the kind words people. Definitively a key part of Wicket's
> > success has been an enthusiastic community.
> >
> > > The learning curve was slightly steep once we started doing interesting
> > UI
> > > interactions (and also that really annoying LazyLoad exception during
> > tests
> > > that I still can't figure out), but it's worth the effort.
> >
> > Detachable models are your friend.
> >
> > Eelco
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>


Re: Create Wikcet Filter

2010-02-19 Thread nicolas melendez
Here an example :


http://www.w3.org/2001/XMLSchema-instance";
xmlns="http://java.sun.com/xml/ns/javaee";
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; version="2.5">

*WicketFilter*
org.apache.wicket.protocol.http.*WicketFilter*


applicationClassName
nm.mp3rapidshare.WicketApplication





*WicketFilter*
/*



NM


On Fri, Feb 19, 2010 at 3:19 AM, Martin Makundi <
martin.maku...@koodaripalvelut.com> wrote:

> Would you like to ask something or are you just fine?
>
> 2010/2/18 "Matías G. Tito" :
> > I'm loking for creatting a basic wicket filter for "/"
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Problems with FileUpload (on GAE) - how to avoid DiskFileItem?

2010-02-16 Thread nicolas melendez
There is one already done.
Someone post it in the official GAE mail list.
Try to look for it.
I will try too.
NM

On Tue, Feb 16, 2010 at 6:00 PM, Igor Vaynberg wrote:

> noep, haven't looked at that stuff in a while.
>
> -igor
>
> On Tuesday, February 16, 2010, Andreas Maza  wrote:
> > Thanks for that quick response, igor. I created now a very basic and (bad
> > ,-) implementation of FileItemFactory, does not write to disk and doesn't
> > spawn threads.
> >
> > With respect to using common-fileupload on GAE, I read about fileupload's
> > new Streaming API. However, I have currently no clue how to integrate it
> > with Wicket. Do you have any hints for that?
> >
> > thanks,
> > andr
> >
> >
> >
> >
> > On Tue, Feb 16, 2010 at 7:51 PM, Igor Vaynberg  >wrote:
> >
> >> MultipartServletWebRequest has a constructor that allows you to pass
> >> in your own fileitemfactory
> >>
> >> WebRequest has a newMultipartWebRequest that you can override to
> >> create a multipartservletwebrequest with your own fileitemfactory...
> >>
> >> -igor
> >>
> >> On Tue, Feb 16, 2010 at 10:21 AM, A. Maza  wrote:
> >> > Hello,
> >> >
> >> > I trying to implement a file upload for my wicket application, which
> >> should
> >> > be deployed on Google App Engine (GAE). Since GAE does not allow to
> spawn
> >> > new threads, I cannot make use of DiskFileItem due to its use of
> >> > FileCleaner.
> >> >
> >> > The problem is that a DiskFileItem gets instantiated in the
> >> > MultipartServletWebRequest, which results in an AccessControlException
> >> even
> >> > before the submit method is called (which would allow to parse the
> >> request
> >> > by hand)
> >> >
> >> > Thus, I would like to ask if anyone has a hint how to deal with that
> >> problem
> >> > and avoid the instantiation of DiskFileItem?
> >> >
> >> > Thanks a lot in advance,
> >> >
> >> > andr
> >> >
> >> > -
> >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> > For additional commands, e-mail: users-h...@wicket.apache.org
> >> >
> >> >
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: PropertyModels *without* strings

2009-11-26 Thread Nicolas Melendez
very cool, i like propertyModels more than Compounds :)
NM

On Thu, Nov 26, 2009 at 11:09 AM, James Carman  wrote:

> I figured there had to be support for that.  Very cool
>
> On Thu, Nov 26, 2009 at 8:14 AM, Johan Compagner 
> wrote:
> >
> http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/ltk/core/refactoring/participants/package-summary.html
> >
> > On Thu, Nov 26, 2009 at 13:52, James Carman <
> jcar...@carmanconsulting.com>wrote:
> >
> >> Refactoring could definitely be supported in IDEA.  With the Hibernate
> >> support, when you change a property name it will change your mapping
> >> hbm.xml (yes, we still use them) files for you automatically.  Same
> >> thing happens with the Spring support.  The configuration files are
> >> changed for you.  I don't know how eclipse works with this kind of
> >> stuff, but IDEA definitely has hooks for this kind of stuff.
> >>
> >> On Thu, Nov 26, 2009 at 2:28 AM, Martin Makundi
> >>  wrote:
> >> > If refactoring is not supported it is just easier to use string
> >> > constants, which do not break.
> >> >
> >> > **
> >> > Martin
> >> >
> >> > 2009/11/26 Gerolf Seitz :
> >> >> as far as i have read, the binding "methods" aren't automatically
> >> refactored
> >> >> (eg. renamed),
> >> >> but you get compiler errors in the code where you use the "old
> names".
> >> so it
> >> >> should be
> >> >> fairly easy to fix your own code (in contrast to some strings)
> >> >>
> >> >> On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian <
> >> >> christian.giamba...@excelsisnet.com> wrote:
> >> >>
> >> >>> Is refactoring available for bindgen?
> >> >>>
> >> >>> -Ursprüngliche Nachricht-
> >> >>> Von: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
> >> >>> Gesendet: Mittwoch, 25. November 2009 22:56
> >> >>> An: users@wicket.apache.org; d...@wicket.apache.org
> >> >>> Betreff: PropertyModels *without* strings
> >> >>>
> >> >>>
> >> >>>
> >>
> http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/
> >> >>>
> >> >>> -igor
> >> >>>
> >> >>>
> -
> >> >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> >>> For additional commands, e-mail: users-h...@wicket.apache.org
> >> >>>
> >> >>>
> >> >>>
> -
> >> >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> >>> For additional commands, e-mail: users-h...@wicket.apache.org
> >> >>>
> >> >>>
> >> >>
> >> >
> >> > -
> >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> > For additional commands, e-mail: users-h...@wicket.apache.org
> >> >
> >> >
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: css not managed by wicket

2009-11-23 Thread Nicolas Melendez
hi, consider use this annotations:
http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-merged-resources

here a blog which explains the features it has:
http://techblog.molindo.at/2009/10/wicket-annotation-based-mounting-of-resources.html#more-128

it will help i hope.
bye



On Mon, Nov 23, 2009 at 2:14 PM, Martin Makundi <
martin.maku...@koodaripalvelut.com> wrote:

> Just put /style.css
>
> Otherwise wicket is trying to guess the relative url. In most cases it
> guesses wrong so I have adopted the practice of using resource urls
> relative to the root of the domain.
>
> **
> Martin
>
> 2009/11/23 Ilya German :
> > Hello!
> >
> > I'm trying to make my web application to use a .css stylesheet. As far as
> I understood reading
> > http://cwiki.apache.org/WICKET/including-css-resources.html
> > and
> > Wicket in Action book
> > I should be able to make any html page to work in the following
> configuration:
> > say, Base.html includes:
> > 
> >   
> > 
> >
> > and to put the css file into "web app directory (root of your war file)".
> >
> > So the deployed project structure (say, in tomcat) would be like this:
> >
> > /myapp
> > --/META-INF
> > --/WEB-INF
> > /classes
> > /pages
> >
> -/Base.html
> >
> -/Base.java
> >
> -/Page1.html
> >
> -/Page1.java
> -> extends Base
> > --/style.css
> >
> > However, when I access my Page1 page in browser (which extends Base page
> both in java and html and seems to be working), I see, that the URL to css
> is rewritten to ../style.css, which tries to reach style.css directly in
>  and doesn't find it there.
> >
> > Could anyone explain me what am I doing wrong?
> >
> > Thanks in advance,
> > Ilya
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Exceptions and Ajax Events

2009-10-29 Thread Nicolas Melendez
Hi there,
i want to keep alive this thread.
Nobody knows how to access the component which generates the exception in
his event from the onRuntimeException method?

For example:

I have a *Link*, and in his* onclick()* method throw a RuntimeException.

So then in the onRuntimeException method, i want to access that especific *
Link*.

Thanks in advance.
NM








On Thu, Oct 8, 2009 at 2:43 PM, Nicolas Melendez
wrote:

> Any clues or suggestions on this issue.
> Thinks.
> NM
>
>
>
> On Thu, Oct 1, 2009 at 11:22 PM, Esteban Masoero  > wrote:
>
>> Hi:
>>
>> We found out we need something else. Is there a way we can access to the
>> component asociated to the listener that was processing the event? (of
>> course it only applies to ajax events), becase from onRuntimeException we
>> ony have the Page.
>>
>> Thanks,
>>
>> Esteban
>>
>> Jeremy Thomerson escribió:
>>
>>  something like this in your application should work:
>>>
>>> @Override
>>> public RequestCycle newRequestCycle(Request request, Response response) {
>>>return new WebRequestCycle(this, (WebRequest)request,
>>> (WebResponse)response) {
>>>@Override
>>>public Page onRuntimeException(Page page, RuntimeException e) {
>>>if (RequestCycle.get().getRequestTarget() instanceof
>>> AjaxRequestTarget) {
>>>// do something with ajax request targets
>>>}
>>>return super.onRuntimeException(page, e);
>>>}
>>>};
>>> }
>>>
>>>
>>> --
>>> Jeremy Thomerson
>>> http://www.wickettraining.com
>>>
>>>
>>>
>>> On Thu, Oct 1, 2009 at 1:59 PM, Nicolas Melendez
>>> wrote:
>>>
>>>
>>>
>>>> Hi there,Our team was discussing about if there is a place where all
>>>> exceptions, that come from an ajax behaviour, can be catched.
>>>> We want to do this because we strongly belive that exceptions should be
>>>> catched in one place, but now we have to catch  the exception in every
>>>> ajax method( onSubmit, onChance, etc) in the application.
>>>> Is there one place in wicket where we can do that?
>>>>
>>>> Thank in advance.
>>>> Our team.
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>


Re: Setup for stepping into wicket source in eclipse

2009-10-27 Thread Nicolas Melendez
is your build automatically checked?

On Mon, Oct 26, 2009 at 1:07 AM, Flavius  wrote:

>
> I am trying to debug an issue and am trying to step into wicket
> from my project.  However, the line numbers are not matching
> up with the source I have.  I've done this several times with other
> projects and this is indicative of having the wrong version of the
> source vs. the jar file.
>
> I am using eclipse version 3.5.0.v20090611a.  I'm also using
> jdk1.6.0_14.
>
> My project is setup as a java web project and I have a webapp/
> WEB-INF/lib dir with my jars.  These include wicket-1.4.3.jar,
> wicket-extensions-1.4.3.jar, and wicket-datetime-1.4.3.jar.  If I
> remove the wicket jar, the project can no longer identify any
> of the org.apache.wicket.* imports.  This tells me that it isn't
> getting a reference to derived classes.
>
> If I then either put the wicket jar back and set the source to the
> wicket-sources.jar or simply link to the
> apache-wicket-1.4.3\src\wicket\src\main\java, I still get the same
> result.
>
> As an example, when I CTRL-click on setDefaultModelObject(), it
> takes me to Component.class line 3022.  I can see it going to
> wicket-1.4.3.jar org.apache.wicket.Component in my Package
> Explorer.  However, when I actually run the code and step into
> that method (having attached the wicket-sources.jar), the method
> setDefaultModelObject is actually on line 3031.
>
> I've gone into the wicket src dir for wicket 1.4.3 and built the wicket
> jar and sources and pulled them from the target dir and still get the
> same results.
>
> Can anybody offer any insight into this?
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Wicket Eclipse plugin, is there another?

2009-10-21 Thread Nicolas Melendez
I'm not very fan of netbeans  :)

Thanks, for answer.

another sugggestion?



On Wed, Oct 21, 2009 at 6:57 PM, Fernando Wermus
wrote:

> I know, but I havent tested it, that netbeans comes with a plug in for
> wicket.
>
> On Wed, Oct 21, 2009 at 1:00 PM, Nicolas Melendez <
> nmelen...@getsense.com.ar
> > wrote:
>
> > Hi, is there another wicket plugin for eclipse?Wicket Bench project seems
> > to
> > have low activity.
> > Any sugestion?
> > Thanks.
> > NM
> >
>
>
>
> --
> Fernando Wermus.
>
> www.linkedin.com/in/fernandowermus
>


Wicket Eclipse plugin, is there another?

2009-10-21 Thread Nicolas Melendez
Hi, is there another wicket plugin for eclipse?Wicket Bench project seems to
have low activity.
Any sugestion?
Thanks.
NM


Re: ListView for only one element. Something wrong.

2009-10-20 Thread Nicolas Melendez
Hi,Thanks for your answer. (i reed it a time ago, but i never said thanks)
NM


On Fri, Oct 9, 2009 at 6:51 AM, Sven Meier  wrote:

> Hi Nicolas,
>
> use more models:
>
> --
> class MyPage:
> private IModel businessObjects;
>
> private MyPanel myPanel;
>
> myPanel = new MyPanel(businessObjects);
> this.add(myPanel);
> -
> class MyPanel(final IModel businessObjects):
>
> this.add(new SomeComponent(new AbstractReadOnlyModel() {
>  public Object getObject() {
>   return businessObjects.getObject().get(0);
>  }
> }));
> this.add(new ListView(new AbstractReadOnlyModel() {
>  public Object getObject() {
>   return businessObjects.getObject().subList(1,
> businessObjects.getObject().size());
>  }
> }) {
>  ...
> });
> --
>
> HTH
>
> Sven
>
> Nicolas Melendez schrieb:
>
>  Hi:
>> Sven, thanks for replying!
>>
>> I've added some code below.
>>
>> --
>> class MyPage:
>> private List businessObjectList;
>> private MyPanel myPanel;
>> 
>>
>> myPanel = new MyPanel(businessObjectList);
>> this.add(myPanel);
>> ...
>> 
>> -> target.addComponent(myPanel);
>> -
>> class MyPanel(businessObjectList):
>> this.add(SomeComponent(first element of businessObjectList));
>> this.add(new ListView(businessObjectList wihout first element){ ... });
>> --
>>
>> I'm aware that as the panel receives a modelObject and not a model, then
>> when it's refreshed it will show the  previous list. So, I was thinking
>> about myPanel receiving a PropertyModel(this, businessObjectList), but the
>> thing is: how can it retrieve the first business object (which needs to be
>> shown differently) in a "dynamic way" so when the panel is refreshed, it
>> will take it from the new list (I could use another repeater that will
>> loop
>> only once, but I was hoping there's a nicer way).
>>
>> Thanks again,
>>
>> NM
>>
>> On Thu, Oct 8, 2009 at 7:50 PM, Sven Meier  wrote:
>>
>>
>>
>>> Hi Nicolas,
>>>
>>> you can just use a WebMarkupContainer and recreate its children on each
>>> request in #onBeforeRender().
>>>
>>> But the question is: why do you need to refresh your components at all?
>>> It
>>> seems you don't use models correctly.
>>> Show us some code.
>>>
>>> Sven
>>>
>>>
>>> Nicolas Melendez wrote:
>>>
>>>
>>>
>>>> Hi, i want to use a ListView to use the onpopulate method so when the
>>>> panel
>>>> refresh i can see the new data.But the listView has always one element
>>>> and
>>>> i
>>>> think it was made for lots of elements.
>>>> Something is wrong in the way i am thinking.
>>>> Any suggestion?
>>>>
>>>> NM
>>>>
>>>>
>>>>
>>>>
>>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>>
>>>
>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: ListView for only one element. Something wrong.

2009-10-08 Thread Nicolas Melendez
Hi:
Sven, thanks for replying!

I've added some code below.

--
class MyPage:
private List businessObjectList;
private MyPanel myPanel;


myPanel = new MyPanel(businessObjectList);
this.add(myPanel);
...

-> target.addComponent(myPanel);
-
class MyPanel(businessObjectList):
this.add(SomeComponent(first element of businessObjectList));
this.add(new ListView(businessObjectList wihout first element){ ... });
--

I'm aware that as the panel receives a modelObject and not a model, then
when it's refreshed it will show the  previous list. So, I was thinking
about myPanel receiving a PropertyModel(this, businessObjectList), but the
thing is: how can it retrieve the first business object (which needs to be
shown differently) in a "dynamic way" so when the panel is refreshed, it
will take it from the new list (I could use another repeater that will loop
only once, but I was hoping there's a nicer way).

Thanks again,

NM

On Thu, Oct 8, 2009 at 7:50 PM, Sven Meier  wrote:

> Hi Nicolas,
>
> you can just use a WebMarkupContainer and recreate its children on each
> request in #onBeforeRender().
>
> But the question is: why do you need to refresh your components at all? It
> seems you don't use models correctly.
> Show us some code.
>
> Sven
>
>
> Nicolas Melendez wrote:
>
>> Hi, i want to use a ListView to use the onpopulate method so when the
>> panel
>> refresh i can see the new data.But the listView has always one element and
>> i
>> think it was made for lots of elements.
>> Something is wrong in the way i am thinking.
>> Any suggestion?
>>
>> NM
>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Exceptions and Ajax Events

2009-10-08 Thread Nicolas Melendez
Any clues or suggestions on this issue.Thinks.
NM



On Thu, Oct 1, 2009 at 11:22 PM, Esteban Masoero
wrote:

> Hi:
>
> We found out we need something else. Is there a way we can access to the
> component asociated to the listener that was processing the event? (of
> course it only applies to ajax events), becase from onRuntimeException we
> ony have the Page.
>
> Thanks,
>
> Esteban
>
> Jeremy Thomerson escribió:
>
>  something like this in your application should work:
>>
>> @Override
>> public RequestCycle newRequestCycle(Request request, Response response) {
>>return new WebRequestCycle(this, (WebRequest)request,
>> (WebResponse)response) {
>>@Override
>>public Page onRuntimeException(Page page, RuntimeException e) {
>>if (RequestCycle.get().getRequestTarget() instanceof
>> AjaxRequestTarget) {
>>// do something with ajax request targets
>>}
>>return super.onRuntimeException(page, e);
>>}
>>    };
>> }
>>
>>
>> --
>> Jeremy Thomerson
>> http://www.wickettraining.com
>>
>>
>>
>> On Thu, Oct 1, 2009 at 1:59 PM, Nicolas Melendez
>> wrote:
>>
>>
>>
>>> Hi there,Our team was discussing about if there is a place where all
>>> exceptions, that come from an ajax behaviour, can be catched.
>>> We want to do this because we strongly belive that exceptions should be
>>> catched in one place, but now we have to catch  the exception in every
>>> ajax method( onSubmit, onChance, etc) in the application.
>>> Is there one place in wicket where we can do that?
>>>
>>> Thank in advance.
>>> Our team.
>>>
>>>
>>>
>>
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


ListView for only one element. Something wrong.

2009-10-08 Thread Nicolas Melendez
Hi, i want to use a ListView to use the onpopulate method so when the panel
refresh i can see the new data.But the listView has always one element and i
think it was made for lots of elements.
Something is wrong in the way i am thinking.
Any suggestion?

NM


Re: London Wicket Event, Saturday November 21st

2009-10-07 Thread Nicolas Melendez
When a  Wicket Event in Buenos Aires, Argentina ?? We also have lots of pubs
:)

On Wed, Oct 7, 2009 at 5:21 PM, Ioannis Mavroukakis <
imavrouka...@gameaccount.com> wrote:

> If my mate can't lend me his handheld, I'll see about perhaps renting
> something for the day...
>
>
> Y.
>
> On 7 Oct 2009, at 16:15, Igor Vaynberg wrote:
>
>  until i see some video proof i will continue to operate under my
>> assumption - there are no presentations, this is just an excuse to get
>> out of the house and go to a pub :)
>>
>> -igor
>>
>> On Wed, Oct 7, 2009 at 3:42 AM, jWeekend 
>> wrote:
>>
>>>
>>> Igor,
>>>
>>> Are you bringing your video-recorder? We'll get you over here sooner or
>>> later, maybe for our 3rd year anniversary event in the Summer!
>>>
>>> Several people have tried to help us with this, but so far the results
>>> have
>>> not been good enough (really!). We've even knocked-up a special app to
>>> publish these wonderful presentations we've been lucky enough to enjoy so
>>> many of, so I expect we will give it another go for sure this time, but
>>> no
>>> promises yet.
>>>
>>> Regards - Cemal
>>> jWeekend
>>> OO & Java Technologies, Wicket Training and Development
>>>
>>>
>>> igor.vaynberg wrote:
>>>

 can we expect video this time? :)

 -igor

 On Tue, Oct 6, 2009 at 6:10 AM, jWeekend 
 wrote:

> Our next London Wicket Event will be held on Saturday, November 21st.
> This is going to be quite some event again, with Matej Knopp (SVK),
> Jeremy
> Thomerson (USA) and Alastair Maw (UK), all core developers, amongst our
> 5
> or
> 6 presenters.
> I am still working on securing a suitable location and fine tuning the
> schedule (probably at least 5 or 6 hours) and the exact format, but
> keep
> your diary clear if you'd like to come along and we will set up
> registration
> at the usual place [1] in the next few days (do not register until
> we've
> updated the data for the registration page) once the
> location/format/logistics are nailed down.
> Watch this space ...
>
> Regards - Cemal
> jWeekend
> OO & Java Technologies, Wicket Training and Development
> http://jWeekend.com
>
> [1] http://jweekend.com/dev/LWUGReg
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
>
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




>>> --
>>> View this message in context:
>>> http://www.nabble.com/London-Wicket-Event%2C-Saturday-November-21st-tp25768507p25783880.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
>>>
>>>
>>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>> __
>> This email has been scanned by the MessageLabs Email Security System.
>> For more information please visit http://www.messagelabs.com/email
>> __
>>
>
>
> -
>
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor

2009-10-01 Thread Nicolas Melendez
hi, in your example, there aren't behaviours, or where are they?

On Thu, Sep 24, 2009 at 5:54 AM, jWeekend wrote:

> Chris,
>
> The fact that you've chosen to use Wicket probably shows there's not so
> much danger of that!
>
> To better see what's going on, try the snippet below in the project you
> attached
>   // ... mark t2 final and
>   // append this to your BasePage constructor
>   con.add(t2.setOutputMarkupId(true));
>   add(new AjaxLink("toggleVisiblity"){
>  @Override
>  public void onClick(AjaxRequestTarget target) {
>  t2.setVisible(!t2.isVisible());
>  target.addComponent(t2);
>  }
>   });
>
> Fix your BasePage.html accordingly eg, add an anchor to the body with
> wicket:id="toggleVisiblity".
>
> When you fire up your app, click on that link once and you can use FireBug
> in Firefox to verify that the "onblur" code you wanted is indeed in place.
>
> Is that the effect you were after?
>
> Regards - Cemal
> jWeekend
> OO & Java Technologies, Wicket Training and Development
> http://jWeekend.com
>
> PS Nabble is not showing posts to our list (I think it's pointing back to
> SourceForge again!) so I am replying here in case you need a solution
> quickly and this happens to be the actual issue you are faced with!
>
>
>  maybe i'm to stupid to understand what you mean.
>> so please provide an example.
>> thx
>>
>> -Ursprüngliche Nachricht-
>> Von: Giambalvo, Christian [mailto:christian.giamba...@excelsisnet.com]
>> Gesendet: Do 24.09.2009 02:45
>> An: users@wicket.apache.org
>> Betreff: AW: FXValidationAjaxHandler - Javascript not added if component
>> is set visible(false) in page constructor
>> - Hide quoted text -
>>
>>
>> well, it makes no sense to add the javascript to another container.
>> how should i validate the textfields if the javascript points to a
>> different component?
>> or could you give me an example?
>>
>>
>> -Ursprüngliche Nachricht-
>> Von: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
>> Gesendet: Do 24.09.2009 02:32
>> An: users@wicket.apache.org
>> Betreff: Re: FXValidationAjaxHandler - Javascript not added if component
>> is set visible(false) in page constructor
>>
>> i meant add the javascript to a container that is visible.
>>
>> components that are not visible do not render their javascript, it
>> wouldnt make any sense for them to do otherwise.
>>
>> -igor
>>
>> On Wed, Sep 23, 2009 at 5:16 PM, Giambalvo, Christian
>>  wrote:
>>
>>> i'm sorry, but doesn't work.
>>>
>>> i attached a simple project.
>>> i added the needed components to a webmarkupcontainer.
>>> instead of panels this time i used requiredtextfields to keep it as
>>> simple
>>> as possible.
>>> one textfield is visible the other invisible.
>>>
>>> here is the generated markup:
>>>
>>> 
>>> http://www.w3.org/1999/xhtml";
>>> xmlns:wicket="
>>> http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd";>
>>>
>>>
>>>Wicket Demo
>>>
>>>>>
>>> src="resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js">
>>> >>
>>> src="resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js">
>>> >>
>>> src="resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js">
>>>
>>> >> id="wicket-ajax-debug-enable">]]>*/
>>>
>>> >>
>>> id="org.wicketstuff.dojo.AbstractDefaultDojoBehavior/debug">]]>*/
>>>
>>> >>
>>> src="resources/org.wicketstuff.dojo.AbstractDefaultDojoBehavior/dojo-0.4/dojo.js">
>>> >>
>>> src="resources/org.wicketstuff.dojo.AbstractRequireDojoBehavior/dojo-wicket/dojoWicket.js">
>>> >>
>>> id="org.wicketstuff.dojo.AbstractDefaultDojoBehavior/namespaces/wicketstuff">]]>*/
>>>
>>> >>
>>> id="org.wicketstuff.dojo.AbstractDefaultDojoBehavior/consoleDebug">]]>*/
>>>
>>> >>
>>> id="org.wicketstuff.dojo.AbstractRequireDojoBehavior">]]>*/
>>>
>>> >> id="txt11DojoParse">]]>*/
>>>
>>> 
>>>var txt11_first = false;
>>>function txt11_validate(type) {
>>>with(dojo.byId('txt11').style){backgroundColor =
>>> '#FFF';}   if (type=='valid'){
>>>dojo.lfx.html.highlight('txt11',
>>> dojo.gfx.color.hex2rgb('#98c27d'), 200).play(0)
>>>dojo.lfx.html.unhighlight('txt11',
>>> dojo.gfx.color.

Exceptions and Ajax Events

2009-10-01 Thread Nicolas Melendez
Hi there,Our team was discussing about if there is a place where all
exceptions, that come from an ajax behaviour, can be catched.
We want to do this because we strongly belive that exceptions should be
catched in one place, but now we have to catch  the exception in every
ajax method( onSubmit, onChance, etc) in the application.
Is there one place in wicket where we can do that?

Thank in advance.
Our team.


Re: User name validation - how to check database to find if a name has already been taken?

2009-10-01 Thread Nicolas Melendez
Thanks Igor.Always is good another point of view.
NM


On Wed, Sep 30, 2009 at 5:14 PM, Igor Vaynberg wrote:

> actually you got it completely wrong. especially as your project, and
> the number of devs who work on it, grows exceptions are a much more
> scalable way of handling errors.
>
> 1) the compiler tells you exactly what the exceptions are right off the bat
> 2) exception class name gives you a clue as to what the error is
> without reading javadoc
> 3) exception classes can contain error-related data that is easy to
> retrieve
> 4) you cannot forget to handle a checked exception
> 5) if someone adds a new error code you do not have to hunt down all
> the places that now need to be changed - once again you get a compile
> time error
> 6) a bunch of other stuff i dont feel like typing out
>
> -igor
>
> On Wed, Sep 30, 2009 at 7:55 AM, Nicolas Melendez
>  wrote:
> > why do you use an exception for user already exits?Don`t you think that
> > return true/false, could be better?
> > i said that, because if the application start growing, you will have lot
> of
> > exceptions class.
> > thanks,
> > NM
> >
> >
> > On Wed, Sep 30, 2009 at 4:43 PM, Paul Huang 
> wrote:
> >
> >>
> >>
> >>
> >> igor.vaynberg wrote:
> >> >
> >> > form {
> >> >   onsubmit() {
> >> >try {
> >> >   users.persist(getmodelobject());
> >> >} catch (usernamealreadyexistsexception e) {
> >> >   error("error.username.exists");
> >> >}
> >> >}
> >> > }
> >> >
> >> > -igor
> >> >
> >>
> >> Thanks, it works like a charm. I did not  know I could show an error
> >> message
> >> by calling "Component.error" and then use a filter to catch all error
> >> messages targeting a specific FormComponent.
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/User-name-validation---how-to-check-database-to-find-if-a-name-has--already-been-taken--tp25614625p25682499.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
> >>
> >>
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: User name validation - how to check database to find if a name has already been taken?

2009-09-30 Thread Nicolas Melendez
why do you use an exception for user already exits?Don`t you think that
return true/false, could be better?
i said that, because if the application start growing, you will have lot of
exceptions class.
thanks,
NM


On Wed, Sep 30, 2009 at 4:43 PM, Paul Huang  wrote:

>
>
>
> igor.vaynberg wrote:
> >
> > form {
> >   onsubmit() {
> >try {
> >   users.persist(getmodelobject());
> >} catch (usernamealreadyexistsexception e) {
> >   error("error.username.exists");
> >}
> >}
> > }
> >
> > -igor
> >
>
> Thanks, it works like a charm. I did not  know I could show an error
> message
> by calling "Component.error" and then use a filter to catch all error
> messages targeting a specific FormComponent.
>
>
> --
> View this message in context:
> http://www.nabble.com/User-name-validation---how-to-check-database-to-find-if-a-name-has--already-been-taken--tp25614625p25682499.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: Is it the best way to code a Link depending on a condition

2009-09-23 Thread Nicolas Melendez
ok, i understand, thanks,
NM

On Tue, Sep 22, 2009 at 9:45 PM, Jeremy Thomerson  wrote:

> It's the same reason you shouldn't use new Label("id"
> object.getSomeText());.  See this example:
>
> public MyPage () {
>  Person p = getPersonFromSomewhere();
>  Label l = new Label("numberOfPhoneNumbers", p.getPhoneNumbers().size());
>  l.setVisible(p.getPhoneNumbers().size() > 0);
>  new Link("addPhoneNumber") {
>onClick() {
>  p.addPhoneNumber("123-456-7890");
>}
>  }
> }
>
> When you add the phone number, it would not show up.  Not only would your
> label not be able to get the new value for the size of the phone numbers,
> but it would also not change it's visibility.  Why?  Because you statically
> set both of those in the constructor.  They can't change unless you go to a
> completely new instance of the page.  But clicking that link (or performing
> some ajax operation) won't create a new page - they'll use the one you're
> already on.
>
> Synopsis: You should use models and override isVisible because they always
> retrieve the latest information for every render.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Tue, Sep 22, 2009 at 8:18 AM, Nicolas Melendez <
> nmelen...@getsense.com.ar
> > wrote:
>
> > Jeremy:you say "2 - don't call setEnabled() - override isEnabled"
> >
> > why is better override isEnable then setEnable?
> >
> > thanks NM
> >
> > On Mon, Sep 21, 2009 at 9:44 AM, cmoulliard 
> wrote:
> >
> > >
> > > Joseph,
> > >
> > > Can you explain a little bit what you mean by provide it with attribute
> > > (IModel) ?
> > >
> > >private Label labelTitle;
> > >public static Label createLabelTitle(String title) {
> > > return new Label("title",new Model( title ));
> > >}
> > >
> > > --> becomes
> > >
> > >private Label labelTitle;
> > >public static Label createLabelTitle(String title) {
> > >return new Label(title,new PropertyModel( ModelClass,
> > title
> > > ));
> > >}
> > >
> > > Is it right what I create ?
> > >
> > >
> > > Joseph Pachod wrote:
> > > >
> > > > cmoulliard wrote:
> > > >> What I have done to avoid to repeat the creation of the labels is to
> > > >> define
> > > >> and use static method
> > > >>
> > > >>  private Label labelTitle;
> > > >>  public static Label getLabelTitle(String title) {
> > > >>  return new Label("title",new Model( title ));
> > > >>  }
> > > >>
> > > > I personally would name this method createLabelTitle(String title) or
> > > > getNewLabelTitle(String title), for explicitness.
> > > >
> > > > Furthermore, I would directly provide it with a "final IModel
> > > > title" attribute, not to dictate how the data has to be provided
> > > > (dynamic or not for example).
> > > >
> > > > In the end, this method is fine for just a label, but for anything
> more
> > > > complex a panel would be the way to go I would say. The main
> exception
> > > > here I see right now is the case of pages.
> > > >
> > > > For example, if we're speaking of a page title, then I would define
> it
> > > > in my base page and make an abstract String getTitle() method in the
> > > > base page so I'm sure everyone set it up later on. I would do the
> same
> > > > if it's a specific kind of structured page, for example an abstract
> > > > class ContentHoldingPage extend TheBasePage.
> > > >
> > > > ++
> > > >
> > > > -
> > > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > > For additional commands, e-mail: users-h...@wicket.apache.org
> > > >
> > > >
> > > >
> > >
> > >
> > > -
> > > Charles Moulliard
> > > SOA Architect
> > >
> > > My Blog :  http://cmoulliard.blogspot.com/
> > http://cmoulliard.blogspot.com/
> > > --
> > > View this message in context:
> > >
> >
> http://www.nabble.com/Is-it-the-best-way-to-code-a-Link-depending-on-a-condition-tp25488603p25530206.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: Is it the best way to code a Link depending on a condition

2009-09-22 Thread Nicolas Melendez
Jeremy:you say "2 - don't call setEnabled() - override isEnabled"

why is better override isEnable then setEnable?

thanks NM

On Mon, Sep 21, 2009 at 9:44 AM, cmoulliard  wrote:

>
> Joseph,
>
> Can you explain a little bit what you mean by provide it with attribute
> (IModel) ?
>
>private Label labelTitle;
>public static Label createLabelTitle(String title) {
> return new Label("title",new Model( title ));
>}
>
> --> becomes
>
>private Label labelTitle;
>public static Label createLabelTitle(String title) {
>return new Label(title,new PropertyModel( ModelClass, title
> ));
>}
>
> Is it right what I create ?
>
>
> Joseph Pachod wrote:
> >
> > cmoulliard wrote:
> >> What I have done to avoid to repeat the creation of the labels is to
> >> define
> >> and use static method
> >>
> >>  private Label labelTitle;
> >>  public static Label getLabelTitle(String title) {
> >>  return new Label("title",new Model( title ));
> >>  }
> >>
> > I personally would name this method createLabelTitle(String title) or
> > getNewLabelTitle(String title), for explicitness.
> >
> > Furthermore, I would directly provide it with a "final IModel
> > title" attribute, not to dictate how the data has to be provided
> > (dynamic or not for example).
> >
> > In the end, this method is fine for just a label, but for anything more
> > complex a panel would be the way to go I would say. The main exception
> > here I see right now is the case of pages.
> >
> > For example, if we're speaking of a page title, then I would define it
> > in my base page and make an abstract String getTitle() method in the
> > base page so I'm sure everyone set it up later on. I would do the same
> > if it's a specific kind of structured page, for example an abstract
> > class ContentHoldingPage extend TheBasePage.
> >
> > ++
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> >
>
>
> -
> Charles Moulliard
> SOA Architect
>
> My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
> --
> View this message in context:
> http://www.nabble.com/Is-it-the-best-way-to-code-a-Link-depending-on-a-condition-tp25488603p25530206.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: + key as alternative for tab key

2009-09-22 Thread Nicolas Melendez
In every field information goes to the server to validate and then go back?
Seems dificult to implement.please, tell us your experience when your are
done
NM


On Mon, Sep 21, 2009 at 3:28 PM, Pedro Santos  wrote:

> Good question, pretty much javascript work. I'm curios know your final
> solution.
>
> One fine solution is to create an subclass of
> AjaxFormComponentUpdatingBehavior to onchange event. On this behavior you
> can put your javascript rules. Take a look at OnChangeAjaxBehavior to see
> how it could be done.
>
> On Mon, Sep 21, 2009 at 10:03 AM, Boydens Joeri (OZ)  >wrote:
>
> > Hi,
> >
> >
> >
> > We are rewriting an old fat client application to a more elegant web
> > application based on Wicket.  In the requirements they state that the
> > users of the fat client application do all input with the right side of
> > their keyboard and want to keep it that way.
> >
> >
> >
> > One special requirement is that navigating between fields should be done
> > with the ' + ' symbol on the right hand keypad instead of the 'tab' key.
> > When navigating between fields there is also happing validation on the
> > server side, so an ajax call will be necessary.
> >
> >
> >
> > How would you do this in an elegant and generic way ?
> >
> >
> >
> > Joeri
> >
> >
> >
> >
> >
> >
> >
> >
>


Re: JavaBooks.org launches

2009-09-21 Thread Nicolas Melendez
Hope JavaBooks.org was made in wicket. if not, maybe it is spam :)NM

On Mon, Sep 21, 2009 at 11:06 AM, Objelean Alex wrote:

> "JavaBooks.org's goal is to centralize, categorize and offer
> meta-information in the form of ratings, comments and reviews for all
> Java related publications. By joining the JavaBooks community you'll
> be able to stay informed about the latest Java publications, search
> for the right book or magazine to help you learn, read user comments
> and reviews to make up your mind, buy and take advantage of the
> discounts offered and share your thoughts on the books you've read."
>
> There you'll be able to find also wicket related books. It would be
> nice if you would make a review of "Wicket in Action", "Pro Wicket" or
> any other book you have read.
>
> Thanks!
> Alex Objelean
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Wicket Stuff Core 1.4.1 Release[ing]

2009-08-31 Thread Nicolas Melendez
very slow build :)

On Mon, Aug 31, 2009 at 9:07 PM, Jeremy
Thomerson wrote:
> Wicket Stuff Core 1.4.1 is now released:
>
> [INFO] BUILD SUCCESSFUL
> [INFO]
> 
> [INFO] Total time: 204 minutes 20 seconds
> [INFO] Finished at: Mon Aug 31 14:04:09 CDT 2009
> [INFO] Final Memory: 218M/929M
> [INFO]
> 
>
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Mon, Aug 31, 2009 at 10:38 AM, Jeremy Thomerson <
> jer...@wickettraining.com> wrote:
>
>> That was only in the event that we really needed an interim release.  The
>> plan still is that we will release to match Wicket releases.
>>
>> PS - I have to try to start the deploy over again:
>>
>>     [INFO] Retrieving previous metadata from wicketstuff-org-maven
>>        [INFO] Uploading repository metadata for: 'artifact
>> org.wicketstuff:sitemap-xml'
>>         [INFO] Uploading project information for sitemap-xml 1.4.1
>>        Uploading: scpexe://
>> wicketstuff.org/home/wicket/tomcat/webapps/maven/repository/org/wicketstuff/sitemap-xml/1.4.1/sitemap-xml-1.4.1-sources.jar
>>     [INFO]
>> 
>>        [ERROR] BUILD ERROR
>>         [INFO]
>> 
>>        [INFO] Error deploying artifact: Error executing command for
>> transfer
>>
>>    Exit code 255 - Write failed: Connection timed out
>>
>>        [INFO]
>> 
>>         [INFO] For more information, run Maven with the -e switch
>>        [INFO]
>> 
>>         [INFO] Total time: 601 minutes 35 seconds
>>        [INFO] Finished at: Mon Aug 31 10:33:31 CDT 2009
>>         [INFO] Final Memory: 221M/902M
>>        [INFO]
>> 
>>         [INFO]
>> 
>> [ERROR] BUILD ERROR
>>
>>
>> --
>> Jeremy Thomerson
>> http://www.wickettraining.com
>>
>>
>>
>>
>> On Mon, Aug 31, 2009 at 3:36 AM, Maarten Bosteels
>> wrote:
>> > Hi Jeremy,
>> >
>> > Great to see another release of Wicket Stuff Core !!
>> >
>> > Some weeks ago you suggested :
>> > " I think that the best solution is that we have 1.4.1.X where X is our
>> > release number."
>> >
>> > Did you change your mind about this ?
>> >
>> > http://www.mail-archive.com/users@wicket.apache.org/msg40780.html
>> >
>> > Regards,
>> > Maarten
>> >
>> >
>> > On Mon, Aug 31, 2009 at 8:03 AM, Jeremy Thomerson <
>> jer...@wickettraining.com
>> >> wrote:
>> >
>> >> I successfully built Wicket Stuff Core 1.4.1 today.  It is in the
>> >> (very very slow) process of doing a release:perform (currently
>> >> uploading all of the necessary files to wicketstuff repo).  Hopefully
>> >> by the time you read this, your project will be available as 1.4.1.
>> >> Here are a couple that seem to have already made it up:
>> >>
>> >>
>> >>
>> http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-core/1.4.1/
>> >> http://wicketstuff.org/maven/repository/org/wicketstuff/gmap2/1.4.1/
>> >>
>> >>
>> http://wicketstuff.org/maven/repository/org/wicketstuff/calendarviews-parent/1.4.1/
>> >>
>> >> --
>> >> Jeremy Thomerson
>> >> http://www.wickettraining.com
>> >>
>> >> -
>> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> >> For additional commands, e-mail: users-h...@wicket.apache.org
>> >>
>> >>
>> >
>>
>>
>

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



Re: Need Wicket Book

2009-08-18 Thread Nicolas Melendez
Live Examples + Book + Blog + Source = wicket learning.

the book in only one variable there...

On Tue, Aug 18, 2009 at 10:35 PM, Marcel Bonnet wrote:
> 2009/8/18 Ernesto Reinaldo Barreiro :
>> Or try to  the questions yourself! Wicket is OpenSource and the source is
>> the best documentation you can ask for;-)
>
> You're right, that's why I started to acess the SVN and read the code.
> What I wanted was clarify that the book is good, but don't go to
> deeper (because when we start, like the guy that asked for help, we
> believe the book is a complete salvation!). So, the SVN is a second
> recommendation (http://svn.apache.org/repos/asf/wicket/trunk).
>
>>
>> Ernesto
>>
>> On Tue, Aug 18, 2009 at 8:56 PM, Michael Mosmann  wrote:
>>
>>> Am Dienstag, den 18.08.2009, 15:32 -0300 schrieb Marcel Bonnet:
>>> > Wicket in Action is really good, but it doesn't go too depper.
>>>
>>> If you have some questions, just ask.
>>>
>>> I would say: "visit my blog", but's only in german...
>>> (http://www.wicket-praxis.de/blog/) I also wrote a book about wicket
>>> (http://www.hanser.de/buch.asp?isbn=3-446-41909-8&area=Computer (but
>>> only in german language))
>>>
>>> .. so back to my first point: If you have some questions about wicket,
>>> which go deeper, then feel free to ask.
>>>
>>> michael mosmann
>>>
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Why FLAGS and bits operators are used in wicket Component Class?

2009-08-18 Thread Nicolas Melendez
Hi everybody, does anybody know why wicket uses FLAGS and bits
operator in Component Class.
for example:
in Component.java

line 650 :private int flags = FLAG_VISIBLE | FLAG_ESCAPE_MODEL_STRINGS
| FLAG_VERSIONED | FLAG_ENABLED |
FLAG_IS_RENDER_ALLOWED | FLAG_VISIBILITY_ALLOWED;


line 3456 : protected final boolean getFlag(final int flag)
{
return (flags & flag) != 0;
}

for those who don't know what & operator do: return 1, if the two
operators are 1, otherwise return 0

Are the because optimization?
i have no experience doing frameworks, can someone with experience tell me why?
Thank You!
NM

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



Re: Get Wicket Variable Inside Applet

2009-07-16 Thread Nicolas Melendez
remember, you can only do TCP/IP request to the server from the applet
came from, if you do to another IP, you will have problem
with the sandbox.
if you want to do the request to another IP, the applet should be
sing, and the user should accept a molest Dialog.

On Thu, Jul 16, 2009 at 8:03 PM, Joshua Martin wrote:
> Actually, it may not be necessary to pass the object...
>
> I'm creating an Applet that will enable remote desktop within my
> Wicket application (it's a new Systems Management application). The
> application uses JXTA for networking so that NAT and firewalls will be
> much less of a problem.
>
> Normally, you can't have two JXTA network managers, but I didn't
> realize that it won't matter since the Applet is separate from Wicket.
> I couldn't get JXTA to work - so I assumed it was because of two
> managers...
>
> Turns out, it was just an Applet security issue...
>
>
> On Thu, Jul 16, 2009 at 1:53 PM, Joshua Martin wrote:
>> Yeah, I know how to pass a String, but I need to somehow pass an object...
>>
>> add(new WebMarkupContainer("appletId").add(new
>>        SimpleAttributeModifier("value", "yourValue")));
>>
>>
>>
>> On Thu, Jul 16, 2009 at 1:50 PM, Nicolas
>> Melendez wrote:
>>> Remember the applet is in client-side, but wicket is server-side (
>>> except javascript(ajax inclusive) ).
>>> Comunication through HTTP is with Strings, so i think you can't access
>>> to a variable of wicket without parsing it.
>>> Applets can use a javascript function o connect thorugh http to the server.
>>> it can also have inicial values, but you can't change them futher.
>>> i hope i help, bye
>>> NM - Software Developer  - buenos aires - Argentina
>>>
>>> On Thu, Jul 16, 2009 at 7:39 PM, Joshua Martin wrote:
>>>> Rephrase that... How can I access a "non-String" variable in the
>>>> Wicket Application class from an Applet?
>>>>
>>>>
>>>>
>>>> On Thu, Jul 16, 2009 at 1:37 PM, Joshua Martin 
>>>> wrote:
>>>>> How can I access a variable in the Wicket Application class from
>>>>> inside my Java Applet on a Wicket page?
>>>>>
>>>>> --
>>>>> _
>>>>>
>>>>> Joshua S. Martin
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> _
>>>>
>>>> Joshua S. Martin
>>>>
>>>>
>>>> CONFIDENTIALITY NOTE: This e-mail message, including any
>>>> attachment(s), contains information that may be confidential,
>>>> protected by the attorney client or other legal privileges, and or
>>>> proprietary non public information. If you are not an intended
>>>> recipient of this message or an authorized assistant to an intended
>>>> recipient, please notify the sender by replying to this message and
>>>> then delete it from your system. Use, dissemination, distribution, or
>>>> reproduction of this message and or any of its attachments (if any) by
>>>> unintended recipients is not authorized and may be unlawful.
>>>>
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>>
>>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>>
>>
>> --
>> _
>>
>> Joshua S. Martin
>>
>>
>> CONFIDENTIALITY NOTE: This e-mail message, including any
>> attachment(s), contains information that may be confidential,
>> protected by the attorney client or other legal privileges, and or
>> proprietary non public information. If you are not an intended
>> recipient of this message or an authorized assistant to an intended
>> recipient, please notify the sender by replying to this message and
>> then delete it from your system. Use, dissemination, distribution, or
>> reproduction of this message and or any of its attachments (if any) by
>> unintended recipients is not authorized and may be unlawful.
>>
>
>
>
> --
> _

Re: Get Wicket Variable Inside Applet

2009-07-16 Thread Nicolas Melendez
Remember the applet is in client-side, but wicket is server-side (
except javascript(ajax inclusive) ).
Comunication through HTTP is with Strings, so i think you can't access
to a variable of wicket without parsing it.
Applets can use a javascript function o connect thorugh http to the server.
it can also have inicial values, but you can't change them futher.
i hope i help, bye
NM - Software Developer  - buenos aires - Argentina

On Thu, Jul 16, 2009 at 7:39 PM, Joshua Martin wrote:
> Rephrase that... How can I access a "non-String" variable in the
> Wicket Application class from an Applet?
>
>
>
> On Thu, Jul 16, 2009 at 1:37 PM, Joshua Martin wrote:
>> How can I access a variable in the Wicket Application class from
>> inside my Java Applet on a Wicket page?
>>
>> --
>> _
>>
>> Joshua S. Martin
>>
>
>
>
> --
> _
>
> Joshua S. Martin
>
>
> CONFIDENTIALITY NOTE: This e-mail message, including any
> attachment(s), contains information that may be confidential,
> protected by the attorney client or other legal privileges, and or
> proprietary non public information. If you are not an intended
> recipient of this message or an authorized assistant to an intended
> recipient, please notify the sender by replying to this message and
> then delete it from your system. Use, dissemination, distribution, or
> reproduction of this message and or any of its attachments (if any) by
> unintended recipients is not authorized and may be unlawful.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: debug mode

2009-07-15 Thread Nicolas Melendez
dont' use vista, desactivate antivirus and stop playing street fighter
IV while you are programming ;)

On Wed, Jul 15, 2009 at 9:14 AM, Emond
Papegaaij wrote:
> I've had similar problems when using method breakpoints on inner classes.
> Removing the breakpoint speeds up the entire application dramatically (the
> breakpoint also doesn't work). So try removing your breakpoints.
>
> Emond
>
> On Tuesday 14 July 2009 19:15:02 John Ipson wrote:
>> Has anyone ever run across extremely slow debug mode in wicket/eclipse
>> integration?
>>
>> Eclipse 3.4
>> Wicket 1.4
>>
>> When choosing "Run as...", the application is very fast.
>> When choosing "Debug as..."  the application is 20 times slower.
>>
>> I watch each jar get loaded into the application at a very slow rate.
>>
>> I've run the application in Jetty and JBoss, so I believe it is a wicket
>> thing.  I wonder if there is a setting in wicket.
>>
>> Thanks,
>> John
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: ModalWindow and IE8 question

2009-06-24 Thread Nicolas Melendez
And if the reset button doesn't work, please click the "Format C:" button :P

On Wed, Jun 24, 2009 at 9:37 AM, Per Lundholm wrote:

> A reset button! Should we laugh or cry? :-/
>
> /Per
>
> On Tue, Jun 23, 2009 at 10:26 PM, Flavius wrote:
> >
> >
> > I cleared all cache and it still wasn't prompting the modal window.
> > What I did do was go and "reset" IE8 by going to tools -> Internet
> Options
> > -> Advanced tab and pressing the "Reset" button.  Apparently this
> > makes it "just like a fresh install" and that fixed it!
> >
> > Don't ask me why clearing the cache didn't do it but that did, unless
> > clearing the cache and closing the browser really doesn't clear
> > the cache completely.  I did uncheck the "Preserve Favorites website
> data"
> > in the Delete Browsing History dialog.
> >
> > Anyway, thanks Matej!  I appreciate your help.
> >
> >
> >
> >
> > Matej Knopp-2 wrote:
> >>
> >> couldn't it be old javascript file in your browser cache?
> >>
> >> -Matej
> >>
> >> On Tue, Jun 23, 2009 at 8:25 PM, Per Lundholm
> >> wrote:
> >>> I don't know if it helps, but it works with IE8 on XP so there is
> >>> something nasty about Vista
> >>>
> >>> /Per
> >>>
> >>> On Tue, Jun 23, 2009 at 8:17 PM, Flavius
> wrote:
> 
>  I'm starting to get users running Vista with IE8 (8.0.6001.18783)
>  report that they can't open modal dialog boxes.
> 
>  I searched through nabble and jira.  I found issue 2207 which I
>  understood to correct this:
> 
>  https://issues.apache.org/jira/browse/WICKET-2207
> 
>  However, I'm testing with Wicket 1.3.6 (and extensions and datetime
>  1.3.6 as well) and the modal dialog is not opening.
> 
>  I also tested this with 1.4-rc4 and it's not working there either.
> 
>  I put the examples up here:
> 
>  http://68.15.93.72/wicket-examples-1.3.6/ajax/modal-window
>  http://68.15.93.72/wicket-examples-1.4-rc4/ajax/modal-window
> 
>  If I go here and try to open these with IE8 on Vista, they don't
>  open.  It works with other browsers I've tested with (ff, safari 3/4,
>  IE6/7).
> 
>  Can anybody give me any insight to this?
>  Thanks very much.
> 
> 
>  -
>  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>  For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> >>>
> >>> -
> >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >>> For additional commands, e-mail: users-h...@wicket.apache.org
> >>>
> >>>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >>
> >
> > --
> > View this message in context:
> http://www.nabble.com/ModalWindow-and-IE8-question-tp24171801p24173623.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
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Who went to the GWT vs Wicket presentation in Normandy and wants to share their findings?

2009-06-19 Thread Nicolas Melendez
Interesting. Thank you.
NM - Software Developer - Buenos Aires, Argentina.

On Thu, Jun 18, 2009 at 3:21 PM, Yann PETIT  wrote:

> Hi Martjin and all of you Wicket fans,
> I was there ! (as president of Normandy Java User Group)
> It was our first JUG meeting in a small French countryside city (Rouen in
> Normandie) we had around 35 attendees.
> (great success for us, preceding IT meetings organized in our area never
> drove more than 10 attendees )
>
>
> I'll try to summarize what was said by our two local but brillant speakers
> :
>
>   - Youen Chene as GWT fighter (http://www.youenchene.fr)
>   - Nicolas Giard as Wicket knight (http://www.noocodecommit.com)
>
>
>
> Here's a short list of the slides  :
>
>   - A brief history of the two frameworks.
>   - The differences in the scope covered by GWT and Wicket (technically
>   speaking Ajax, javascript, etc.)
>   - How it works ( GWT = coding Java compiled in JS generating HTML /
>   Wicket = coding Java + HTML)
>   - Differences of projects structures (packages... pictures of  the
>   exploded war treeview in eclipse)
>   - Server integration with other technologies like (Spring, EJB, Hibernate
>   etc. using wicket-stuff in one hand or projects like gwtrpc-spring or
> Gilead
>   in the other).
>   - Available widgets natively or by sub projects (Google vizualization,
>   gears, Ext GWT... vs Wicket stuff, Wiquery ...)
>   - CSS or How the design layer is handled comparison.
>   - Browsers compatibility (generated code plus handmade code).
>   - Localization support (different JS by language for GWT, use of
>   properties, xml or database ...)
>   - Accessibly (GWT following ARIA since 1.5 versus Best Practice applied
>   by the HTML developer for Wicket)
>   - Performances (GWT = heavy compilation and long first load, Wicket
>   depends mainly on the developer's code quality )
>   - Tools (GWT has many plugins for integration with Eclipse, some exist
>   for Wicket but aren't really useful since Wicket keeps things simple).
>   - Maven integration (difficult for GWT but possible, some latency on
>   dependencies. While very easy for Wicket and up to date archetypes).
>   - Advantages :
>  - GWT (backward compatibility, stability, code
>  optimization, keyboard interaction)
>   - Wicket (development mad simple again, very enthusiast and
>  attractive community)
>   - Drawbacks
>  - GWT (very long loading the first time, very difficult to reference
>  as it's JS based... very strange coming from a Search Engine company
> ^^ )
>  - Wicket (lacks of notoriety, documentation is sometimes poor,
>  performances strongly tighten to the code quality)
>   - Next release / Roadmap
>   -  Why use one or the other :
>  - GWT for rich applications but not for content websites (blog,
>  e-commerce...) due to inability to reference it on search engines.
>  - Wicket for content web sites first, but why not for rich
>  applications ?
>   - Who uses GWT or Wicket (Lombardi, MyERP, Compiere... vs Artifactory,
>   JTrac, JAlbum, Alfresco GUI, Hippo CMS...)
>   - How to fill the lacks :
>  - Use subproject for widgets like SmartGWT, mix GWT with other
>  framework (velocity, JSF) for referencement.
>  - Use JQuery instead of prototype, more native widgets using Wiquery
>  ?
>   - Wicket + GWT = <3 Love ? (or is it possible to mix both) It seems
>   possible but might be long and hard.
>   - Some links to go ahead
>
>
> Maybe we'll try to translate the presentation slides in English (depends on
> time we'll have for that).
> For french reading ones we will publish the slides on our JUG site : *
> http://www.normandyjug.org/*
>
>
> I think the most important thing that should be retained is that GWT and
> Wicket should be chosen depending on what we want.
> A rich application that doesn't need search engine referencement => GWT
> A content website with also some dynamic behaviors and referencement needs
> => Wicket
>
> .
> This presentation was done by a user of GWT and one of Wicket. They didn't
> know the other one technology by themselves, and even didn't know each
> others a few weeks ago. So congratulation to them because it was a real
> challenge to make this comparison in very few days.
> It' goal was to explain in few minutes what are GWT and Wicket, and to give
> attendees the desire to go ahead with one technology or the other.
>
> Any comments or feedbacks appreciated .
>
>
>
> Yann
>
>
>
>
>
>
> On Thu, Jun 18, 2009 at 12:08 PM, Martijn Dashorst <
> martijn.dasho...@gmail.com> wrote:
>
> > There's been quite some announcements going across twitter, but no
> > conclusion...
> >
> > Martijn
> >
> > -
> > 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 Nicolas Melendez
god used Eclipse 1.0 to develop universe.

NM
Software Developer - Buenos aires, Argentina.

On Fri, Jun 19, 2009 at 5:44 PM, Martijn Reuvers
wrote:

> You might want to try Netbeans for UML (there is a single plugin,
> install it and it works fine). I have not had any problems with it, it
> has quite some features (similar to the ones in JDeveloper).
>
> Use SQLDeveloper (of Oracle as well) if you need to replace Toad,
> however keep in mind it does not have all the dba features Toad
> provides, no free tool has these in fact.
>
> Well Apex is Apex, it cannot be replaced easily as its tied so closely
> to the oracle database and its pl/sql.
>
> As soon as you use Maven there is no need anymore for JDeveloper, at
> least not for running/building the project. If you really require
> specific features for instance for Apex you can still create a single
> workspace next to the normal maven one and use that separately.
>
> As for weblogic, just deploy a war manually through its console if you
> need to test it. However for faster testing I'd use Jetty with mvn
> jetty:run (you can always add a weblogic*.xml to the final war to
> override some libraries or so).
>
>
> On Fri, Jun 19, 2009 at 5:26 PM, Dane Laverty
> wrote:
> > I've really enjoyed getting to use Maven on my recent projects. I'm no
> > Maven expert, but I'm finding that I don't have to be -- it really
> > just does a great job. Getting Maven working with JDeveloper has not
> > been going well so far, so that's been one hangup.
> >
> > There are a few reasons for the department-wide IDE mandate. Our
> > manager has just discovered UML (I don't know anything about it, to be
> > honest), and JDeveloper provides UML functionality out of the box,
> > while any of the free Eclipse UML plugins I could find required a
> > mountain of dependencies and don't appear to work as smoothly as the
> > JDev one. Also, we're trying to replace TOAD as our database tool, and
> > JDev looks like it can do that. The third reason is that most of our
> > applications are Oracle ApEx, and JDev has stuff for that too.
> >
> > I'm trying to port my existing apps to JDeveloper, but without much
> > success. The main problems so far are:
> > - How do I import a Wicket project using the Maven standard directory
> > layout? (I am aware of the Maven JDev plugin for JDev 10, but it has
> > issues with JDev 11)
> > - How do I run a Wicket app in JDeveloper using the internal WebLogic
> server?
> > - Does JDeveloper have some sort of Maven-like functionality for
> > project lifecycle management?
> >
> > I imagine (hope) that most of these questions have easy answers, but
> > I'm just not finding a lot of relevant online
> > documentation/discussion. Most of the JDeveloper web app documentation
> > is focused on EJBs or basic Servlet/JSP-based apps.
> >
> >
> > On Fri, Jun 19, 2009 at 3:53 AM, James
> > Carman wrote:
> >> +1 on using Maven.  Most folks at our job site use eclipse, but I'm an
> >> IntelliJ junkie (they got me hooked many years ago and I can't break
> >> free).  For the most part, we don't have issues between environments,
> >> provided folks have their plugins set up correctly.
> >>
> >> On Fri, Jun 19, 2009 at 6:39 AM, Martijn Reuvers
> >>  wrote:
> >>>
> >>> When you use ADF, then stick to JDeveloper you'll get a lot of
> >>> integration for your application and can really build applications
> >>> fast.
> >>>
> >>> However if you use open-source frameworks like wicket, you're better
> >>> off using one of the other IDE's (Netbeans, Eclipse, IntelliJ). Just
> >>> use maven or so, then your management has nothing to say, as it does
> >>> not really matter what IDE you use. I always say: Use whatever gets
> >>> the job done. =)
> >>>
> >>> On Fri, Jun 19, 2009 at 1:00 AM, Dane Laverty
> wrote:
> >>> > Our management has chosen to make JDeveloper 11g the required IDE for
> >>> > the department. Searching the Wicket mailing list archives, I find
> >>> > that there is very little discussion about JDev. I'd be interested to
> >>> > know, are any of you currently using JDeveloper as your main Wicket
> >>> > IDE?
> >>> >
> >>> > -
> >>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >>> > For additional commands, e-mail: users-h...@wicket.apache.org
> >>> >
> >>> >
> >>>
> >>> -
> >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >>> For additional commands, e-mail: users-h...@wicket.apache.org
> >>>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wick

Re: Creating a page hierarchy

2009-06-17 Thread Nicolas Melendez
I think reflect site hierarchy to package hierarchy,  is good idea because
when the application is big, it is easy to find the panels.
i always use like this.

Application > Module > view

NM

On Wed, Jun 17, 2009 at 2:07 PM, Frank Tegtmeyer  wrote:

> Hi,
>
> is there one established way to generate a page hierarchy?
> Or some best practices?
>
> I like to have a website (also a dynamic one) organized in a
> hierarchical way like traditional static websites. This way
> users can go to their desired functionality quickly and may
> be able to even remember the associated URL.
>
> I assume I have to use bookmarkable pages somehow.
>
> Some questions remain for me:
>
> 1. Do I have to mount each single page or is there some
>   wildcard/regexp/inheritance mechanism like in Django?
> 2. How do I organize my source files? Does it make sense to
>   reflect the site hierarchy in a package hierarchy?
> 3. The site I develop has to use authorization. Is it
>   possible to get a user back to the bookmarked page that
>   he accessed after asking for authentication?
>   I think yes, but am not sure.
>
> Regards, Frank
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Wicket-like JavaScript Components

2009-06-16 Thread Nicolas Melendez
GWT is a good framework.You can code in java and then it is translated to
javascript.
NM

On Tue, Jun 16, 2009 at 4:05 PM, nino martinez wael <
nino.martinez.w...@gmail.com> wrote:

> You can also have a look at wicketstuff and see what integrations
> already exists :)
>
> 2009/6/15 Dane Laverty :
> > I'm working on a small project where I'm limited to using only
> JavaScript. I
> > love the Wicket programming model, especially reusable components. Is
> anyone
> > aware of a JavaScript framework or JavaScript techniques that would allow
> me
> > to approximate Wicket components?
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Radio group selection not being saved if page submit fails due to validation errors...

2009-06-12 Thread Nicolas Melendez
Here is the URL of the ListView:
http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/markup/html/list/ListView.html

- NM

On Thu, Jun 11, 2009 at 10:11 PM, Jen Van Orman  wrote:

> Igor,
>
> Thank you; this makes sense now, it was a matter of getting straightened
> out
> on the real problem (the list view) instead of focusing on the radio group
> as the problem.
>
> I appreciate your help very much!
>
> Jen
>
> P.S.  And it always helps to look at the most recent version of the javadoc
> ;)
>
> On Thu, Jun 11, 2009 at 2:06 PM, Igor Vaynberg  >wrote:
>
> > the problem is not the radiogroup, it is the listview. listview has a
> > section in its javadoc that talks about this - have a look there first
> > and feel free to come back here with any further questions.
> >
> > -igor
> >
> > On Thu, Jun 11, 2009 at 12:47 PM, Jen Van Orman
> > wrote:
> > > Thank you!  setReuseItems(true) was the ticket!
> > >
> > > Can you please explain the wicket concept behind this feature?  It
> seems
> > > that most other input types automatically retain information if the
> page
> > is
> > > rerendered; How is the radio button different?  Just trying to
> understand
> > > for future reference!
> > >
> > > Thanks,
> > >
> > > Jen
> > >
> > > On Thu, Jun 11, 2009 at 12:49 PM, Jen Van Orman 
> > wrote:
> > >
> > >> Radios are in a listview, and I will try setreuseitems(true).
> > >>
> > >> Thank you!
> > >>
> > >> Jen
> > >>
> > >>   On Thu, Jun 11, 2009 at 12:47 PM, Igor Vaynberg <
> > igor.vaynb...@gmail.com
> > >> > wrote:
> > >>
> > >>> are radios in a listview? did you call setreuseitems(true)?
> > >>>
> > >>> -igor
> > >>>
> > >>> On Thu, Jun 11, 2009 at 11:42 AM, Jen Van Orman
> > >>> wrote:
> > >>> > Hello everyone,
> > >>> >
> > >>> > I have a radio group and if the form validation fails on submit,
> the
> > >>> > selection is lost.  When the page re-renders, the bound value is
> > "null".
> > >>> >
> > >>> > How can I insure that the selected value is retained if form
> > validation
> > >>> > fails?
> > >>> >
> > >>> > Thanks much for your help,
> > >>> >
> > >>> > Jen Van Orman
> > >>> >
> > >>> > --
> > >>> > Quis custodiet ipsos custodes?
> > >>> >
> > >>>
> > >>> -
> > >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > >>> For additional commands, e-mail: users-h...@wicket.apache.org
> > >>>
> > >>>
> > >>
> > >>
> > >> --
> > >> Quis custodiet ipsos custodes?
> > >>
> > >>
> > >
> > >
> > > --
> > > Quis custodiet ipsos custodes?
> > >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
>
> --
> Quis custodiet ipsos custodes?
>


Re: refresh page

2009-06-11 Thread Nicolas Melendez
Hi, i would use the Session, but also use it as a Context. Context should be
coded.
So you use the context in your page, and the context use the Session to
store data.
I don't think using the database is good idea.

NM




2009/6/11 Dorothée Giernoth 

>
> I dunno if I understand correctly, but how about constantly saving a
> session-state user-specific in a database as soon as a component loses the
> focus? If the site is refreshed, the session-id would be still valid and the
> pre-refresh-session-state can be loaded?
> After the user logs out correctly you can set a flag to true, to mark the
> session as completed ... if for a reason the user is not logged out in a
> "yes, I would like to leave and please save my changes"-way, this flag would
> not be changed and saved for the user in the database. The user could reload
> the session after he re-logs in as his changes are saved.
> Dunno if that would be an acceptable approach or if that helps you at all.
>
> - dg
>
>
>
> -Ursprüngliche Nachricht-
> Von: Luther Baker [mailto:lutherba...@gmail.com]
> Gesendet: Donnerstag, 11. Juni 2009 15:22
> An: users@wicket.apache.org
> Betreff: Re: refresh page
>
> So it turns out I'm going to want to display these values as a list 
> ...
>  etc. My 'input' approach won't be adequate.
>
> Back to the Session idea ... (smells already).
>
> WIA has a security chapter that goes into storing a User in session - but
> does anyone have a good resource that dives a bit deeper into best
> practices
> with respect to Sessions? What about logical concepts/scopes like request,
> flash, conversational, etc - and how wicket facilitates them?
>
> Eg: I'd like to accumulate/remember page specific things while the user is
> visits a particular url. Ideally, the transient info is dropped when the
> user navigates away. I could create a POJO that represents the info and add
> getters and setters to the wicket session object I extended from the WIA
> security chapter ... but that smells bad. It seems heavy --- and I'm not
> sure it makes sense to use that pattern everywhere I have Ajax buttons
> putting rendering new values to the screen. Is there a more generalize
> Wicket mechanism for this type of thing?
>
> A localized, managed, short term, minimal, user specific, page specific
> type
> of state management?
>
> Or, given my issue, is there another way to think of this (out of box)?
> Again, I am user's adding a few values (tags, categories) to the screen
> with
> Ajax buttons and I need to make sure that information survives browser
> behaviors like page refreshes.
>
> Thanks,
>
> -Luther
>
>
>
>
> On Thu, Jun 11, 2009 at 7:07 AM, Luther Baker 
> wrote:
>
> > I think you're right - I would need to use the Session or the Database on
> > each Ajax invocation to add these values.
> >
> > But it also seems that if I store the new, dynamic, page specific values
> > into a TextField (as opposed to a div) - they survive a page refresh. I'm
> > not sure if that is robust or formally a standard across all browsers -
> so I
> > will do a bit more research but that seems to be the behavior I'm after.
> >
> > Thanks,
> >
> > -Luther
> >
> >
> >
> > 2009/6/11 Dorothée Giernoth 
> >
> > Hmm, is that possible ... you can't like store session-data in the
> browser,
> >> do you? You can only store session-details in the database on the fly
> with
> >> ajax while the user still fills out the form to allow the user to
> re-create
> >> the session on next login or something like this if he accidently hits
> >> reload (but even then I am not sure if that works ... maybe if you write
> the
> >> not yet submitted but in the form included information back into the
> fields
> >> when the site is rendered) ...
> >>
> >> Does that make sense ... or I am not understanding the question ;)
> >>
> >> - dg
> >>
> >>
> >> -Ursprüngliche Nachricht-
> >> Von: Luther Baker [mailto:lutherba...@gmail.com]
> >> Gesendet: Donnerstag, 11. Juni 2009 13:27
> >> An: users@wicket.apache.org
> >> Betreff: refresh page
> >>
> >> If I add a few values to a page  >> hits
> >> refresh on the page, the new values I've added go away.
> >>
> >> The user is completing a form - but hasn't formally submitted the form
> yet
> >> -
> >> so there is nothing stored in the database yet. The browser naturally
> >> re-renders the  >> content to any  >>
> >> What would be the wicket way to allow these "dynamic divs" to survive a
> >> page
> >> refresh? Maybe on the a 'wicket-example'?
> >>
> >> Thanks,
> >>
> >> -Luther
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>