Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-18 Thread Thomas R. Corbin
On Monday 18 June 2007 2:19 am, Eelco Hillenius escreveu:
> > Eelco Hillenius schrieb:
> > > That won't solve your problem though. You'd get the same kind of call
> > > back as you would get by overriding onUnbind in a custom session
> > > store. It won't do anything for catching the event that a user closes
> > > a browser without properly logging out.
> >
> > those methods are called either when the session timeout occurs in the
> > app server (and the user closed the browser long before) or the session
> > gets invalidated manually. at least my experience...
>
> Yes, and the same happens for AbstractHttpSessionStore#onUnbind

How do you get from the sessionId to the session itself?

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Accessing HttpSession attributes

2007-06-12 Thread Thomas R. Corbin
On Monday 11 June 2007 3:58 pm, Eelco Hillenius escreveu:
> > I would like to access HttpSession attributes from a wicket WebSession
> > object. Is this possible?
> >
> > To be specific my WebSession subclass has a getUser() method. This
> > user is stored as the session variable "user".
>
> Note that (Web)Session is an abstraction. If your session store backs
> on HttpSession (like the default implementation does), you can provide
> your own session object, and let that call super.get/setAttribute.
>
> public class MySession extends WebSession {
>   ...
>
>   public User getUser() {
> return (User)getAttribute("my.user.key");
>   }
>   ...
> }

But doesn't the SessionStore.getAttribute turn that into

httpSession.getAttribute(getSessionAttributePrefix(webRequest) + name)

In HttpSessionStore getSessionAttributePrefix looks like:

 "wicket:" + servletPath + ":"

So if the old skool app puts "my.user.key" into it's session, wicket
will be looking up  "wicket:servletPath:my.user.key" and won't
find anything?

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Resource.getParameters and resource mounting

2007-06-11 Thread Thomas R. Corbin
On Saturday 09 June 2007 12:03 pm, Janos Cserep escreveu:
> I've started migrating my applications to 1.3.0 and I think I ran into a
> bug with Resource.getParameters().
>
> If a resource is mounted via Application.mountSharedResource then
> Resource.getParameters returns with an empty valuemap. If it is not
> mounted then the valuemap contains all the parameters passed in via the
> URL.
>
> Created an issue in JIRA:
> https://issues.apache.org/jira/browse/WICKET-631
>
> Regards,

That's weird.

I've got only two DynamicWebResources that are mountedSharedResources, 
and 
they both seem to work, though with one I have to use this syntax:

http://localhost:8084/nrg/app/jnlp?app=edv

and the other only works if I use:

http://localhost:8084/nrg/app/foo/type/primary

I'm not sure why the two of them use a different syntax.

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Confused about relative paths and my css.

2007-06-01 Thread Thomas R. Corbin
On Friday 01 June 2007 1:42 pm, Matej Knopp escreveu:
> Look at what url is your stylesheet. The images withing stylesheet are
> always located relatively to the stylesheet itself.

so there's no way to make them relative to the context path/root?

I'm going ahead and moving them to where wicket expects them now, but I 
just 
wonder what I'd do if I couldn't do that.

>
> -Matej
>
> On 6/1/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:
> > I have a line like this in my css.  the css is in the package
> > com.samsix.wicket.style.   But I expected, presumably falsely that the
> > gif file would be found at the root of my application, not relative to
> > that package's path.
> >
> >   background:url("images/tabs/left.gif") no-repeat left top;
> >
> > Yet it seems to be looking relative to the package path.   I can go ahead
> > and change the location of the gif file, but wondered what I would do if
> > I didn't or couldn't move the gif files.
> >
> > Currently it seems to be looking in
> >
> > localhost:8084/nrg/app/resources/com.samsix.wicket.NrgPage/style/images/t
> >ab/left.gif
> >
> > Thanks,
> > Tom
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Confused about relative paths and my css.

2007-06-01 Thread Thomas R. Corbin

I have a line like this in my css.  the css is in the package 
com.samsix.wicket.style.   But I expected, presumably falsely that the gif 
file would be found at the root of my application, not relative to that 
package's path. 

  background:url("images/tabs/left.gif") no-repeat left top;

Yet it seems to be looking relative to the package path.   I can go ahead and 
change the location of the gif file, but wondered what I would do if I didn't 
or couldn't move the gif files.

Currently it seems to be looking in 

localhost:8084/nrg/app/resources/com.samsix.wicket.NrgPage/style/images/tab/left.gif

Thanks,
Tom

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] I see a lot of questions and talk about DropDownChoice and IChoiceRenderer.

2007-05-19 Thread Thomas R. Corbin
On Friday 18 May 2007 4:27 pm, Johan Compagner escreveu:
> a converter and choice renderer is not really the same thing
> But i guess if you give a list of strings to the DDC that it displays
> then the converter can convert the selected object to that string and back
> again
> that should also work yes.

Cool.  Actually, what I do is load objects from the db using ibatis and 
give 
those to the DDC and the converter pulls the strings to display.  Works 
really well.

>
> the choicerender is if you don't want to do that upfront but just have
> a list of Objects/Pojos and the selected object is also that Object/Pojo
> then you the toString is done for you
>
> johan
>
> On 5/18/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:
> > I had started to use a ChoiceRenderer when I started with wicket, but
> > quickly
> > found that registering a converter was easier for me.
> >
> > Is that an unusual way of dealing with DDC?
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] I see a lot of questions and talk ab out DropDownChoice and IChoiceRenderer.

2007-05-18 Thread Thomas R. Corbin
On Friday 18 May 2007 10:51 am, Florian Hehlen escreveu:
> Hi,
>
> Do you have a snipet of code you could share on how you do this?

in my form I have this:

add( new DropDownChoice( "cause",
 _causeDao.getCauseCodes() ) );



In my application I have this:


//
//Register our custom converters.
//
getApplicationSettings().setConverterLocatorFactory( new 
IConverterLocatorFactory()
{
public IConverterLocator newConverterLocator()
{
return new OmsConverter();
}
} );


My OmsConverter looks a bit like this: (I actually register a bunch of 
converters)


/**
 *Registers all oms specific converters.
 */
public class OmsConverter
extends
ConverterLocator
{
@SpringBean( name = "causeDao" )
private CauseDao_causeDao;

public OmsConverter()
{
InjectorHolder.getInjector().inject( this );
Assert.notNull( _causeDao, "causeDao must not be null." );

CauseConverter  causeConverter  = new 
CauseConverter( _causeDao );

set( Cause.class,   causeConverter );
}

This way, if I use the same class in a bunch of places, I don't have to 
register the converter or choice renderer with each one.  It makes adding a 
DDC easy and I only have to do the mapping in the converter.

My converter extends AbstractConverter and is pretty easy to write.


>
> Florian
>
> Thomas R. Corbin wrote:
> > I had started to use a ChoiceRenderer when I started with wicket, but
> > quickly found that registering a converter was easier for me.
> >
> > Is that an unusual way of dealing with DDC?
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Gricket: The Love-Child of Grails and Wicket

2007-05-18 Thread Thomas R. Corbin
On Friday 18 May 2007 9:49 am, graemer escreveu:
> Yes that is a shame, someone needs to write a iBatis Grails plugin ;-)

:)   That would be lovely!I *should* volunteer if I ever start to 
use 
grails.

>
> We do plan to support JPA one day so maybe that will introduce more
> deployment options, unfortunately with any enterprisey stuff you can't
> always satisfy everyone

That's too true.  Still, I recognize that grails a great tool and love 
to 
keep track of it's progress.


>
> Cheers
> Graeme
>
> Thomas R. Corbin-2 wrote:
> > On Friday 18 May 2007 8:09 am, graemer escreveu:
> >> That's great, glad to hear Wicket has improved the landscape of Java web
> >> frameworks. What is great about Grails (and potentially Grails+Wicket)
> >> is that it spans all tiers, Wicket seems to be helping improve the web
> >> layer experience for Java web frameworks which is excellent. If only we
> >> didn't need persistence ;-)
> >
> > For me, one of the problems with grails is that my client has outlawed
> > hibernate so we are using ibatis instead.
> >
> > I'm currently using a mixture of wicket and groovy and will look at your
> > cool
> > grails-wicket stuff this weekend or next week.   I'm certainly a huge fan
> > of
> > both groovy and wicket.
> >
> >> Cheers
> >> Graeme
> >>
> >> ptrthomas wrote:
> >> > On 5/18/07, graemer <[EMAIL PROTECTED]> wrote:
> >> >> Haha, sorry but it seems some of the Wicket community are still
> >> >> living in Lala land with regards to believing everything deployed to
> >>
> >> production
> >>
> >> >> has to
> >> >> be written in Java. It is 2007, the realisation that Java is not the
> >> >> best language for web apps has hit home for years now. A good
> >> >> language for writing a lot of your business logic yes, but your
> >> >> business logic and web logic are two different things and if you're
> >> >> mixing them
> >>
> >> you're
> >>
> >> >> already making mistakes right there.
> >> >
> >> > Personally for me, Wicket has made using Java for web-applications
> >> > exciting
> >> > and fun again.  Maybe its a case of "teaching an old dog new tricks"
> >>
> >> but
> >>
> >> > I get a headache when I look at the sample at your link and see the
> >> > "closures"
> >> > for the onSubmit.  I guess I'm one of those retarded folks who avoids
> >> > learning new syntax :P
> >> >
> >> > About the wiki page [
> >> > http://wicketstuff.org/confluence/display/STUFFWIKI/WicketBuilder ] I
> >> > have to complain that I think that the try / catch block is there just
> >>
> >> to
> >>
> >> > make the pure java code look bad in comparison - which is bogus,
> >> > please remove it.
> >> >
> >> > BTW I'm also having great results with the ReloadingWicketFilter - so
> >>
> >> it
> >>
> >> > is
> >> > possible to change your view code - refresh and it works.  So I don't
> >> > really
> >> > miss a scripting language that much.  If I'm productive with Java why
> >> > should
> >> > I change?  Just my 2c.
> >> >
> >> > Regards,
> >> >
> >> > Peter.
> >>
> >> 
> >>-
> >>
> >> > This SF.net email is sponsored by DB2 Express
> >> > Download DB2 Express C - the FREE version of DB2 express and take
> >> > control of your XML. No limits. Just data. Click to get it now.
> >> > http://sourceforge.net/powerbar/db2/
> >> > ___
> >> > Wicket-user mailing list
> >> > Wicket-user@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Gricket: The Love-Child of Grails and Wicket

2007-05-18 Thread Thomas R. Corbin
On Friday 18 May 2007 8:09 am, graemer escreveu:
> That's great, glad to hear Wicket has improved the landscape of Java web
> frameworks. What is great about Grails (and potentially Grails+Wicket) is
> that it spans all tiers, Wicket seems to be helping improve the web layer
> experience for Java web frameworks which is excellent. If only we didn't
> need persistence ;-)

For me, one of the problems with grails is that my client has outlawed 
hibernate so we are using ibatis instead.

I'm currently using a mixture of wicket and groovy and will look at 
your cool 
grails-wicket stuff this weekend or next week.   I'm certainly a huge fan of 
both groovy and wicket.

>
> Cheers
> Graeme
>
> ptrthomas wrote:
> > On 5/18/07, graemer <[EMAIL PROTECTED]> wrote:
> >> Haha, sorry but it seems some of the Wicket community are still living
> >> in Lala land with regards to believing everything deployed to production
> >> has to
> >> be written in Java. It is 2007, the realisation that Java is not the
> >> best language for web apps has hit home for years now. A good language
> >> for writing a lot of your business logic yes, but your business logic
> >> and web logic are two different things and if you're mixing them you're
> >> already making mistakes right there.
> >
> > Personally for me, Wicket has made using Java for web-applications
> > exciting
> > and fun again.  Maybe its a case of "teaching an old dog new tricks" but
> > I get a headache when I look at the sample at your link and see the
> > "closures"
> > for the onSubmit.  I guess I'm one of those retarded folks who avoids
> > learning new syntax :P
> >
> > About the wiki page [
> > http://wicketstuff.org/confluence/display/STUFFWIKI/WicketBuilder ] I
> > have to complain that I think that the try / catch block is there just to
> > make the pure java code look bad in comparison - which is bogus, please
> > remove it.
> >
> > BTW I'm also having great results with the ReloadingWicketFilter - so it
> > is
> > possible to change your view code - refresh and it works.  So I don't
> > really
> > miss a scripting language that much.  If I'm productive with Java why
> > should
> > I change?  Just my 2c.
> >
> > Regards,
> >
> > Peter.
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] continueToOriginalDestination / RestartResponseAtInterceptPageException with page parameters

2007-05-18 Thread Thomas R. Corbin
On Friday 18 May 2007 8:04 am, Johan Compagner escreveu:
> hmm this could be bug i think, we dont support post params at all
> but get should be but maybe we store only part of the url (only the path)

i'm not sure that I quite understand the issue, but if my user goes to 
a url 
such as

 http://myserver.com/myapp/app/queryDialog/variation/oru_edv/billGroup/23

and they go through my login page, they still end up at the right page 
with 
all the page parameters.

Is that what you meant Wouter?

In that case, I'm still on the pre-apache-package reorg, but will 
upgrade 
this weekend.

>
> can you see what this code in PageMap:
>
> interceptContinuationURL = cycle.getRequest().getURL();
>
> does return? is getURL() onl returning the part withoug query params?
>
> johan
>
> On 5/18/07, Wouter de Vaal <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I'm using the login/authorization strategy taken from the wicket
> > examples, which is
> > throw new RestartResponseAtInterceptPageException(SignIn.class);
> >
> > in the application class and calling
> >
> > continueToOriginalDestination()
> >
> > in the login page.
> >
> > However when I'm using a bookmarkable page with PageParameters, the
> > parameters get lost in the process..
> >
> > Am I missing something, or is this behaviour just not supported?
> >
> > Regards,
> > Wouter
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] I see a lot of questions and talk about DropDownChoice and IChoiceRenderer.

2007-05-18 Thread Thomas R. Corbin

I had started to use a ChoiceRenderer when I started with wicket, but quickly 
found that registering a converter was easier for me.

Is that an unusual way of dealing with DDC?

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How can I pass in the user's login and password to avoid the login page?

2007-05-18 Thread Thomas R. Corbin
On Friday 18 May 2007 1:14 am, Igor Vaynberg escreveu:
> oh, i thought you needed to have that username/hash in every url generated
> by wicket. yes requestcycle.onbeginrequest is as good a place as any to
> sign the user in.

Cool, thanks.

I had never thought I'd enjoy web programming until I started using 
wicket.

>
> -igor
>
> On 5/17/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:
> > On Thursday 17 May 2007 2:08 pm, Igor Vaynberg escreveu:
> > > i would extend webrequestcodingstrategy, override encode() and append
> >
> > the
> >
> > > parameters you need to the url it normally returns.
> >
> > Sorry, but I didn't quite understand how to get the parameters I
> > need in the
> > encode method, nor how appending it would resolve the issue.   I think I
> > just
> > don't quite get the encode method/encoding strategy anyway.
> >
> > What I did instead was to provide my own RequestCycle class and
> > in onBeginRequest, look at the HttpServletRequest's uri and pull out the
> > info I
> > need and then call
> >
> > AuthenticatedWebSession.get().signIn( userName, hashedPassword )
> >
> > I am not sure it's entirely robust, but it does seem to work
> > pretty well.   I
> > think that in the encoding strategy code I could do pretty much the same
> > thing, but the onBeginRequest method seems like a good place for it. 
> > It's only that maybe in the encoding strategy code I might have a shot at
> > a RequestParameters object with the url info I need so I wouldn't need to
> > parse
> > the uri?
> >
> > Do you think I'm heading for trouble this way?
> > Thanks,
> > Tom
> >
> > > -igor
> > >
> > > On 5/17/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:
> > > > Our client unfortunately wants to have urls be able to contain the
> >
> > user's
> >
> > > > login and a hashed/encrypted password so that the user can avoid
> >
> > having
> >
> > > > to waste time on the login page.   We can't really convince them that
> >
> > it
> >
> > > > may not
> > > > be a good idea.   Essentially they want single-signon, but they're
> > > > not prepared to work with the it department on that at this time (and
> > > > I'm
> >
> > not
> >
> > > > sure how to do that in wicket yet, either).   So what they really,
> >
> > really
> >
> > > > want is that when our swing app brings up a web page in a browser, we
> >
> > add
> >
> > > > the
> > > > user's login and hashed password to the url.
> > > >
> > > > But I'm having trouble figuring out how or where to grab that info
> > > > and bypass
> > > > the login page redirect, and the login page can't seem to grab that
> >
> > info
> >
> > > > from
> > > > the request.Which makes sense since the page parameters are
> >
> > normally
> >
> > > > really for the original page and not the login page.
> > > >
> > > > I've been looking at:
> > > > AuthenticatedWebApplicationonUnauthorizedInstantiation,
> > > > but it's final so I can't override it, and I'm not really sure if
> > > > it's the right place anyway.   I've added my own
> > > > IUnauthorizedComponentInstantiationListener, but I'm not sure how to
> >
> > get
> >
> > > > the
> > > > request parameters in the listener.
> > > >
> > > > Does anyone have any hints?
> > > >
> > > > Thanks,
> > > > Tom
> >
> > -
> >
> > > > This SF.net email is sponsored by DB2 Express
> > > > Download DB2 Express C - the FREE version of DB2 express and take
> > > > control of your XML. No limits. Just data. Click to get it now.
> > > > http://sourceforge.net/powerbar/db2/
> > > > ___
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How can I pass in the user's login and password to avoid the login page?

2007-05-17 Thread Thomas R. Corbin
On Thursday 17 May 2007 2:08 pm, Igor Vaynberg escreveu:
> i would extend webrequestcodingstrategy, override encode() and append the
> parameters you need to the url it normally returns.

Sorry, but I didn't quite understand how to get the parameters I need 
in the 
encode method, nor how appending it would resolve the issue.   I think I just 
don't quite get the encode method/encoding strategy anyway.

What I did instead was to provide my own RequestCycle class and in 
onBeginRequest, look at the HttpServletRequest's uri and pull out the info I 
need and then call 

AuthenticatedWebSession.get().signIn( userName, hashedPassword )

I am not sure it's entirely robust, but it does seem to work pretty 
well.   I 
think that in the encoding strategy code I could do pretty much the same 
thing, but the onBeginRequest method seems like a good place for it.  It's 
only that maybe in the encoding strategy code I might have a shot at a 
RequestParameters object with the url info I need so I wouldn't need to parse 
the uri?

Do you think I'm heading for trouble this way?
Thanks,
Tom

>
> -igor
>
> On 5/17/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:
> > Our client unfortunately wants to have urls be able to contain the user's
> > login and a hashed/encrypted password so that the user can avoid having
> > to waste time on the login page.   We can't really convince them that it
> > may not
> > be a good idea.   Essentially they want single-signon, but they're not
> > prepared to work with the it department on that at this time (and I'm not
> > sure how to do that in wicket yet, either).   So what they really, really
> > want is that when our swing app brings up a web page in a browser, we add
> > the
> > user's login and hashed password to the url.
> >
> > But I'm having trouble figuring out how or where to grab that info and
> > bypass
> > the login page redirect, and the login page can't seem to grab that info
> > from
> > the request.Which makes sense since the page parameters are normally
> > really for the original page and not the login page.
> >
> > I've been looking at:
> > AuthenticatedWebApplicationonUnauthorizedInstantiation,
> > but it's final so I can't override it, and I'm not really sure if it's
> > the right place anyway.   I've added my own
> > IUnauthorizedComponentInstantiationListener, but I'm not sure how to get
> > the
> > request parameters in the listener.
> >
> > Does anyone have any hints?
> >
> > Thanks,
> > Tom
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Gricket: The Love-Child of Grails and Wicket

2007-05-17 Thread Thomas R. Corbin
On Thursday 17 May 2007 2:19 pm, howzat escreveu:
> Without going into too much detail about how Grails works (I expect there
> is plenty of info on the web about this), could you give us a bit more of
> an idea about why this "love-child" is a "cool" idea and how a Wicket user
> would benefit from working with Wicket+Grails on top of, for example,
> Hibernate & Spring?
> What is in Grails that would make Wicket "better" for web-app development?
> Is it just the integration of Groovy or is there something more for a
> Wicket user?

I think the groovy integration is a good start, though you certainly 
don't 
need grails for that.   In fact there's a wicket-contrib-groovy project 
already underway.

But grails seems like an interesting project and wicket is certainly 
lots of 
fun.   But it all depends on how well the integration works, and I'm not sure 
about that part of it.   It seems like GORM and some of grails other tools 
could be quite nice, though there's already the databinder stuff.   If you're 
an avid fan of groovy, then you also get the groovy configuration of spring 
rather than the xml configuration.   From the blog entry in the original 
email, it looks like they even do groovy configuration of the web.xml file.   
So a lot of it depends on how much you like grails and groovy and how well 
the integration is done.


>
> jklappenbach wrote:
> > http://graemerocher.blogspot.com/2007/05/grails-wicket-wonders-of-grails-
> >plug-in.html (SFW)
> >
> > Graeme pinged me as soon as I got online this morning to tell me about
> > his work on integrating Wicket and Groovy, a Rails implementation based
> > on the Java scripting language, Groovy.
> >
> > As you'll read, the integration took him *20 minutes*, and the result was
> > the following:
> >
> >1. Wicket classes can be utilized as-is from wicket jars inside a
> >Groovy environment, meaning that there's no concern of keeping a
> >Groovy-based mirror of Wicket synchronized.
> >2. Wicket classes can take advantage of GORM, with dynamic methods
> >(This is very, very, cool)
> >3. Developers can take advantage of closures, and all other nice
> >features of Groovy
> >
> > Graeme warned me that he hadn't tested much more than a "Hello World"
> > example.  But in getting even those two simple words out, a lot had to be
> > going on under the hood.  I'd be surprised if there were issues lurking
> > beyond.
> >
> > If you haven't heard of Grails, or would like to know more, I have a
> > short post here at:
> >
> > http://tapestryofthoughts.blogspot.com/2007/05/grails-rails-gone-groovy.h
> >tml
> >
> > For more in-depth, there's the Grails site at:
> >
> > http://grails.codehaus.org/
> >
> > -jjk
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Gricket: The Love-Child of Grails and Wicket

2007-05-17 Thread Thomas R. Corbin
On Thursday 17 May 2007 11:04 am, Julian Klappenbach escreveu:
> http://graemerocher.blogspot.com/2007/05/grails-wicket-wonders-of-grails-pl
>ug-in.html (SFW)
>
> Graeme pinged me as soon as I got online this morning to tell me about his
> work on integrating Wicket and Groovy, a Rails implementation based on the
> Java scripting language, Groovy.
>
> As you'll read, the integration took him *20 minutes*, and the result was
> the following:
>
>1. Wicket classes can be utilized as-is from wicket jars inside a
>Groovy environment, meaning that there's no concern of keeping a
>Groovy-based mirror of Wicket synchronized.
>2. Wicket classes can take advantage of GORM, with dynamic methods
>(This is very, very, cool)
>3. Developers can take advantage of closures, and all other nice
>features of Groovy
>
> Graeme warned me that he hadn't tested much more than a "Hello World"
> example.  But in getting even those two simple words out, a lot had to be
> going on under the hood.  I'd be surprised if there were issues lurking
> beyond.
>
> If you haven't heard of Grails, or would like to know more, I have a short
> post here at:
>
> http://tapestryofthoughts.blogspot.com/2007/05/grails-rails-gone-groovy.htm
>l
>
> For more in-depth, there's the Grails site at:
>
> http://grails.codehaus.org/

wicket-grails would be truly cool.   I'm using groovy in some code 
backing 
some of my pages and it's pretty cool.   Especially with having spring being 
able to reload those groovy beans.Only problem for us is that our client 
won't let us use hibernate. ;(

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] How can I pass in the user's login and password to avoid the login page?

2007-05-17 Thread Thomas R. Corbin

Our client unfortunately wants to have urls be able to contain the user's 
login and a hashed/encrypted password so that the user can avoid having to 
waste time on the login page.   We can't really convince them that it may not 
be a good idea.   Essentially they want single-signon, but they're not 
prepared to work with the it department on that at this time (and I'm not 
sure how to do that in wicket yet, either).   So what they really, really 
want is that when our swing app brings up a web page in a browser, we add the 
user's login and hashed password to the url.

But I'm having trouble figuring out how or where to grab that info and bypass 
the login page redirect, and the login page can't seem to grab that info from 
the request.Which makes sense since the page parameters are normally 
really for the original page and not the login page.

I've been looking at: AuthenticatedWebApplicationonUnauthorizedInstantiation, 
but it's final so I can't override it, and I'm not really sure if it's the 
right place anyway.   I've added my own 
IUnauthorizedComponentInstantiationListener, but I'm not sure how to get the 
request parameters in the listener.

Does anyone have any hints?

Thanks,
Tom

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] solved

2007-05-17 Thread Thomas R. Corbin
On Thursday 17 May 2007 5:00 am, Andrew Klochkov escreveu:
> Andrew Klochkov wrote:
> > What's the best way to add css class to a DataTable column?
> > The only way I see is to extend Panel and use it as a headers toolbar,
> > but I'd like to have all the functionality the HeadersToolbar already
> > has!
>
> I can add class attr to the cells.

How do you do that?

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Need to reload app in tomcat aftering adding a variant markup

2007-05-17 Thread Thomas R. Corbin
On Wednesday 16 May 2007 4:37 pm, Chris Colman escreveu:
> > > This is  true, but  I understand  Chris has  a general  need for
> > > markup  reloading  in  production  as  well  (though  I  haven't
> > > understood   yet  how   Chris  creates   the  markup   files  at
> > > runtime). Or did  I misunderstand  that? And though  disabled in
> > > deployment mode by default, he  could enable it for his specific
> > > application.
> >
> > Indeed, ModificationWatcher  acting on previously not  found files
> > should be done only in development mode by default, and Chris will
> > just have to enable it for his deployment.
>
> How do I do that? Will it slow things down?
>
> Maybe the option to add a method that allows explicit clearing of the
> cache would be very useful because then we it can be high performance
> most of the time and just rebuild the cache when we indicate there is a
> new markup file.

Would exposing that via a JMX bean be useful so that when you add new 
markup, 
you can tickle the JMX bean to clear the markup?

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Is it possible to use setMarkupStream to assign html to a web page?

2007-05-08 Thread Thomas R. Corbin
On Tuesday 08 May 2007 1:06 pm, Igor Vaynberg escreveu:
> ah, you are just using an old version.
>
> this is the _exact_ problem that chris encountered, and has been fixed a
> long time ago.

Cool, thanks.  I'll upgrade.

>
> -igor
>
> On 5/8/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:
> > On Thursday 03 May 2007 6:30 pm, Igor Vaynberg escreveu:
> > > hrm. i would consider that a bug i think. i dont see why it would get
> > > called before constructor. can you set a breakpoint in there and paste
> >
> > the
> >
> > > stacktrace please.
> >
> > I'm still using the pre-wicket name change stuff.  I can upgrade,
> > though it
> > might take an evening's work to do so.   I threw an exception in my
> > method where the markup gets generated, so that's what the GUNK! bit is.
> >
> >
> > Can't instantiate page using constructor public
> > com.samsix.reports.QueryDialogPage(wicket.PageParameters) and argument
> > queryName = "viewMeterRoute"
> > wicket.WicketRuntimeException: Can't instantiate page using constructor
> > public
> > com.samsix.reports.QueryDialogPage(wicket.PageParameters) and argument
> > queryName = "viewMeterRoute"
> > at
> > wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:174)
> > at
> > wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:95)
> > at
> > wicket.request.target.component.BookmarkablePageRequestTarget.newPage(
> > BookmarkablePageRequestTarget.java:260)
> > at
> > wicket.request.target.component.BookmarkablePageRequestTarget.getPage(
> > BookmarkablePageRequestTarget.java:275)
> > at
> >
> > wicket.request.target.component.BookmarkablePageRequestTarget.processEven
> >ts (BookmarkablePageRequestTarget.java:204)
> > at
> > wicket.request.AbstractRequestCycleProcessor.processEvents(
> > AbstractRequestCycleProcessor.java:89)
> > at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java
> >
> > :961)
> >
> > at wicket.RequestCycle.step(RequestCycle.java:1034)
> > at wicket.RequestCycle.steps(RequestCycle.java:1113)
> > at wicket.RequestCycle.request(RequestCycle.java:474)
> > at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:248)
> > at wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java
> >
> > :122)
> >
> > at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > ApplicationFilterChain.java:202)
> > at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > ApplicationFilterChain.java:173)
> > at
> > org.apache.catalina.core.StandardWrapperValve.invoke(
> > StandardWrapperValve.java:213)
> > at
> > org.apache.catalina.core.StandardContextValve.invoke(
> > StandardContextValve.java:178)
> > at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> >
> > :126)
> >
> > at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> >
> > :105)
> >
> > at
> > org.apache.catalina.core.StandardEngineValve.invoke(
> > StandardEngineValve.java:107)
> > at
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> >
> > :148)
> >
> > at
> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869
> >) at
> >
> > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proce
> >ssConnection (Http11BaseProtocol.java:664)
> > at
> > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> > PoolTcpEndpoint.java:527)
> > at
> > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> > LeaderFollowerWorkerThread.java:80)
> > at
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> > ThreadPool.java:684)
> > at java.lang.Thread.run(Thread.java:619)
> > Caused by: java.lang.reflect.InvocationTargetException
> > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > Method)
> > at
> > sun.reflect.NativeConstructorAccessorImpl.newInstance(
> > NativeConstructorAccessorImpl.java:39)
> > at
> > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
> > DelegatingConstructorAccessorImpl.java:27)
> > at
> > java.lang.reflec

Re: [Wicket-user] Is it possible to use setMarkupStream to assign html to a web page?

2007-05-08 Thread Thomas R. Corbin
aus.groovy.runtime.MetaClassHelper.doConstructorInvoke(MetaClassHelper.java:562)
at 
groovy.lang.MetaClassImpl.doConstructorInvoke(MetaClassImpl.java:1756)
at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:758)
at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:688)
at 
org.codehaus.groovy.runtime.Invoker.invokeConstructorOf(Invoker.java:163)
at 
org.codehaus.groovy.runtime.InvokerHelper.invokeConstructorOf(InvokerHelper.java:140)
at 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeNewN(ScriptBytecodeAdapter.java:243)
at 
com.samsix.reports.QueryDialogHandlerImpl.getMarkupResourceStream(script1178645684862.groovy:134)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:375)
        ... 40 more




>
> -igor
>
> On 5/3/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:
> > On Thursday 03 May 2007 5:05 pm, Igor Vaynberg escreveu:
> > > see IMarkupResourceStreamProvider, there is also an example in
> > > wicket-examples that shows custom markup loading.
> >
> > Thanks.  I think I'll have to go with the build time option
> > because the
> > getMarkupResourceStream( container, containerClass ) method gets called
> > before any code in my constructor has a chance to look at the
> > PageParameters
> > to find out where the xml file is to be able to build the html.
> >
> >     I don't see any way to delay the markup processing/loading until
> > after I can
> > examine the PageParameters.
> >
> > > -igor
> > >
> > > On 5/3/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:
> > > > I've got some groovy code which processes an xml file and generates
> >
> > some
> >
> > > > html.
> > > > Right now I do it at build time, but would really prefer to do it at
> >
> > run
> >
> > > > time.   I've got some code hooked up which does so, but all I get is
> >
> > an
> >
> > > > empty
> > > > page.
> > > >
> > > > I'm using wicket 1.3.0-snapshot (prior to the name change)
> > > >
> > > > when building the page, I run the following groovy code, where the
> >
> > buffer
> >
> > > > contains the html I generate.
> > > >
> > > > MarkupParser  parser  = new MarkupParser( new XmlPullParser()
> >
> > )
> >
> > > > Markupmarkup  = parser.parse( buffer )
> > > >
> > > > def markupStream= new MarkupStream( markup )
> > > >
> > > > page.setMarkupStream( markupStream )
> > > >
> > > >
> > > > I've tried overriding onRender in the page java code and calling
> > > > renderComponent with my markup stream, but I still don't get anything
> > > > showing.   It works with the same html generated at build time.
> > > >
> > > > Am I way off base and this just won't work, or do I have some details
> > > > mucked
> > > > up?
> > > >
> > > > Thanks,
> > > > Tom
> >
> > -
> >
> > > > This SF.net email is sponsored by DB2 Express
> > > > Download DB2 Express C - the FREE version of DB2 express and take
> > > > control of your XML. No limits. Just data. Click to get it now.
> > > > http://sourceforge.net/powerbar/db2/
> > > > ___
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
Can&

Re: [Wicket-user] Right now Application.getHomePage returns a Page class.

2007-05-07 Thread Thomas R. Corbin
On Monday 07 May 2007 8:35 am, Johan Compagner escreveu:
> hmm you are the second one in a very short time asking this:
>
> http://www.nabble.com/mounting-with-"empty"-path-tf3702181.html#a10352898

Yes, but I don't want an empty path.  Essentially I would like it to be 
a 
mounted url with some page parameters.   That conversation looked like 
parameters w/o a mounted url.

In any case, sorry to duplicate.

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Right now Application.getHomePage returns a Page class.

2007-05-07 Thread Thomas R. Corbin

Is there any way to have the home page be a (mounted) url?

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Is it possible to use setMarkupStream to assign html to a web page?

2007-05-03 Thread Thomas R. Corbin
On Thursday 03 May 2007 5:05 pm, Igor Vaynberg escreveu:
> see IMarkupResourceStreamProvider, there is also an example in
> wicket-examples that shows custom markup loading.

Thanks.  I think I'll have to go with the build time option because the 
getMarkupResourceStream( container, containerClass ) method gets called 
before any code in my constructor has a chance to look at the PageParameters 
to find out where the xml file is to be able to build the html.

I don't see any way to delay the markup processing/loading until after 
I can 
examine the PageParameters.

>
> -igor
>
> On 5/3/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:
> > I've got some groovy code which processes an xml file and generates some
> > html.
> > Right now I do it at build time, but would really prefer to do it at run
> > time.   I've got some code hooked up which does so, but all I get is an
> > empty
> > page.
> >
> > I'm using wicket 1.3.0-snapshot (prior to the name change)
> >
> > when building the page, I run the following groovy code, where the buffer
> > contains the html I generate.
> >
> > MarkupParser  parser  = new MarkupParser( new XmlPullParser() )
> > Markupmarkup  = parser.parse( buffer )
> >
> > def markupStream= new MarkupStream( markup )
> >
> > page.setMarkupStream( markupStream )
> >
> >
> > I've tried overriding onRender in the page java code and calling
> > renderComponent with my markup stream, but I still don't get anything
> > showing.   It works with the same html generated at build time.
> >
> > Am I way off base and this just won't work, or do I have some details
> > mucked
> > up?
> >
> > Thanks,
> > Tom
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Is it possible to use setMarkupStream to assign html to a web page?

2007-05-03 Thread Thomas R. Corbin

I've got some groovy code which processes an xml file and generates some html.  
Right now I do it at build time, but would really prefer to do it at run 
time.   I've got some code hooked up which does so, but all I get is an empty 
page.

I'm using wicket 1.3.0-snapshot (prior to the name change)

when building the page, I run the following groovy code, where the buffer 
contains the html I generate.

MarkupParser  parser  = new MarkupParser( new XmlPullParser() )
Markupmarkup  = parser.parse( buffer )

def markupStream= new MarkupStream( markup )

page.setMarkupStream( markupStream )


I've tried overriding onRender in the page java code and calling 
renderComponent with my markup stream, but I still don't get anything 
showing.   It works with the same html generated at build time.

Am I way off base and this just won't work, or do I have some details mucked 
up?

Thanks,
Tom

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] setting an attribute on the HttpSession.

2007-04-27 Thread Thomas R. Corbin
On Thursday 26 April 2007 1:02 pm, Eelco Hillenius escreveu:
> > I need to work with a servlet from another group and they need to see the
> > user as an attribute on the HttpSession.It seems as though
> > setAttribute on my wicket.Session doesn't actually set it on the
> > HttpSession.   Is that correct?
>
> Typicaly it does, but it depends on your configuration. Session
> delegates this to the ISessionStore your application uses. For Wicket
> 1.3, the default store is SecondLevelCacheSessionStore, which extends
> HttpSessionStore (which was the default for 1.2). Both these session
> stores pass and the attributes from/ to the underlying HttpSession.

So I found that it indeed stores my user as an attribute on the http 
session, 
but it stores it with the following prefix: "wicket:/app/login:", so the 
servlet that's looking up "user" doesn't find it.   So I guess that going 
directly to the HttpSession to store the user is the only thing I can do.

Thanks,
Tom

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] using wicket like sitemesh

2007-04-27 Thread Thomas R. Corbin
On Friday 27 April 2007 9:46 am, Johan Compagner escreveu:
> you could place one label on the position where the static html should go
> in And that label loads the static from somewhere depending on an external
> param.

But if this whole hierarchy of html pages refers to one another, I'd 
have to 
somehow intercept that and send it to my one HtmlWrapper page, right? with 
the page name or part of the hierarchy as the external param?

And that would take a filter or redirect rule or something to do that?

>
> johan
>
> On 4/27/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:
> > We've got a nice base wicket page with authorization and menus and
> > headers and
> > such that we'd like to use to wrap a whole host of static html pages.
> >
> > Should we do that by writing a servlet filter for that whole url path
> > with all
> > the html pages?
> >
> > Thanks,
> > Tom
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] using wicket like sitemesh

2007-04-27 Thread Thomas R. Corbin

We've got a nice base wicket page with authorization and menus and headers and 
such that we'd like to use to wrap a whole host of static html pages.

Should we do that by writing a servlet filter for that whole url path with all 
the html pages?

Thanks,
Tom

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] setting an attribute on the HttpSession.

2007-04-26 Thread Thomas R. Corbin
On Thursday 26 April 2007 1:02 pm, Eelco Hillenius escreveu:
> > I need to work with a servlet from another group and they need to see the
> > user as an attribute on the HttpSession.It seems as though
> > setAttribute on my wicket.Session doesn't actually set it on the
> > HttpSession.   Is that correct?
>
> Typicaly it does, but it depends on your configuration. Session
> delegates this to the ISessionStore your application uses. For Wicket
> 1.3, the default store is SecondLevelCacheSessionStore, which extends
> HttpSessionStore (which was the default for 1.2). Both these session
> stores pass and the attributes from/ to the underlying HttpSession.

Cool, thanks.   That must mean that I'm doing something wrong.
I'll chase it down.

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] setting an attribute on the HttpSession.

2007-04-26 Thread Thomas R. Corbin
I need to work with a servlet from another group and they need to see the user 
as an attribute on the HttpSession.It seems as though setAttribute on my 
wicket.Session doesn't actually set it on the HttpSession.   Is that correct?

I've found that the following works, but it just doesn't seem like it's the 
"wicket way".   Is there a better way?

((WebRequest)getRequest()).getHttpServletRequest().getSession().setAttribute( 
"user", 
NrgSession.get().getUser() );

This seems like a dumb question, but my google-fu must not be very good on 
this.

Thanks,
Tom

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Help: Creating a Apache-licensed Wysiwyg-Textarea for Wicket

2007-04-24 Thread Thomas R. Corbin
On Tuesday 24 April 2007 2:14 am, Johan Compagner escreveu:
> > And I  also admit that  I don't have  the same patience  as yours,
> > providing code snippets all the  time, answering to every question
> > with such accuracy :-)
> >
> > Congratulations, Igor!
>
> +1  Igor for president!

+1 Thanks to all of you.

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Two-panel selector component?

2007-04-16 Thread Thomas R. Corbin
On Monday, 16 April 2007 01:46 pm, Al Maw escreveu:
> JulianS wrote:
> >> I think this component exists in wicket-extensions.  I believe it's
> >> called Pallet.
> >
> > Excellent, thank you. The problem is the name: I would never associate
> > the name "Palette" with such a component.
>
> And what would you call it?

ShuttleList.

But that's because that's what someone else called a swing widget like 
that 
which we used.

>
> TwoPanelSelectorComponent is, IMHO, even less obvious. :)
>
> Besides, it apparently means one of these:
>   - http://designinginterfaces.com/Two-Panel_Selector
>
> You may find it useful to look at the wicket-examples project.
>
> It does have sample code for all this stuff, which should make it
> somewhat discoverable:
> http://www.wicket-library.com/wicket-examples/compref?wicket:bookmarkablePa
>ge=:wicket.examples.compref.PalettePage
>
> Best regards,
>
> Al Maw
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Creating Entire Forms in Java Code Only?

2007-04-13 Thread Thomas R. Corbin
On Thursday, 12 April 2007 02:40 am, Chris Colman escreveu:
> > Thanks, Igor, for taking the effort to answer my question. I so
>
> understand
>
> > that one of the core vision statements is separation of concerns. I am
> > evaluating Click but haven't ruled out Wicket - just that some aspects
>
> of
>
> > Click seem less cumbersome because separation of concerns is not a
> > priority
> > there - Click seems to suit what I need better than what Eelco had
> > suggested much earier: Echo.
>
> This is interesting because I'm traveling in the exact opposite
> direction:
>
> I've been using Echo for more than a year for the highly interactive
> parts of the site where users enter data - we will continue to do this
> in the foreseeable future. However, the presentation of that data in
> read only views (pages) is also extremely important and it is desirable
> to provide that presentation in a wide variety of formats and styles so
> we use Wicket for this and override the getVariation() method in our
> pages and panels to support this feature. So we have a kind of 'hybrid'
> web app: Echo+Wicket.
>
> I've ended up appreciating the ability to drive layout and style changes
> and variations via separate (HTML) markup a lot more since we started
> using Wicket. We no longer have to change a Java class then recompile,
> run, test to see how the change looks. We just edit the HTML markup in a
> WYSIWYG HTML editor getting it to look how we want (with liberal use of
> wicket:remove tags) and when done we just Save and then hit refresh in
> the browser - the changes are visible right away in our web app when
> wicket regenerates the page using the latest markup.

Also, it seems like a lot of swing developers wish they had something 
like 
wicket, where they can do the form layout/design in xml and then do the 
complicated bits in java.   I think that although that isn't exactly what F3 
is, that's why people are excited by it.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Multi page inheritance

2007-04-11 Thread Thomas R. Corbin
On Wednesday, 11 April 2007 02:31 am, Thomas Singer escreveu:
> Is there a DTD available for the namespace definitions in the html
> tag of the XHTML files, so IDEA does not highlight it in red?

I think someone posted one last week, if you search the mailing lists 
you can 
find it.

>
> Tom
>
>
> On Tue, 10 Apr 2007 23:00:48 +0200, Igor Vaynberg
>
> <[EMAIL PROTECTED]> wrote:
> > yes it states that, and to a very large degree (more then any other
> > framework) we follow it. but what drives this framework are the facts
> > that
> > we set realistic goals and come up with practical solutions. we are not
> > purists. the most practical solution for us is to have these special tags
> > for markup that is very wicket-specific. these tags act as
> > barriers/markers,
> > they are not components that you attach to a page.
> >
> > -igor
> >
> > On 4/10/07, Thomas Singer <[EMAIL PROTECTED]> wrote:
> >> The wicket website states at the end of the first paragraph "... written
> >> with plain Java and HTML". IIRC, the  tags do not belong to
> >> "plain HTML".
> >>
> >> BTW, is there a DTD available for the namespace definitions in the html
> >> tag of the XHTML files, so IDEA does not highlight it in red?
> >>
> >> --
> >> Tom
> >>
> >>
> >> On Tue, 10 Apr 2007 18:27:18 +0200, Igor Vaynberg
> >>
> >> <[EMAIL PROTECTED]> wrote:
> >> > we like our namespaced tags. they are xhtml compliant and get stripped
> >> > from
> >> > final output. so that will stay the default. if you want to hack away
> >>
> >> the
> >>
> >> > please feel free to do so, but i do not think you will get much in the
> >> > way
> >> > of support.
> >> >
> >> > -igor
> >>
> >> 
> >>- Take Surveys. Earn Cash. Influence the Future of IT
> >> Join SourceForge.net's Techsay panel and you'll get the chance to share
> >> your
> >> opinions on IT & business topics through brief surveys-and earn cash
> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
> >>V ___
> >> Wicket-user mailing list
> >> Wicket-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Question - Is ITypeConverter really used anywhere? (wicket-1.x)

2007-04-05 Thread Thomas R. Corbin
ConverterLocater refers to it in the javadoc, but as far as I can tell, it 
doesn't really use it.

Same for SimpleConverterAdapter.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Newbie can't get the DropDownChoice right

2007-04-02 Thread Thomas R. Corbin
On Friday, 30 March 2007 08:07 am, Andrew Moore escreveu:
> I've got a simple option class (as i've seen in examples)
>
>
> public class Option {
>   String key;
>   String value;
>
>   public String getKey() {
>   return key;
>   }
>
>   public void setKey(String key) {
>   this.key = key;
>   }
>
>   public String getValue() {
>   return value;
>   }
>
>   public void setValue(String value) {
>   this.value = value;
>   }
>
>   public Option(String key, String value) {
>   this.key = key;
>   this.value = value;
>   }
> }
>
>
> I then populate an ArrayList (called imageList) with several entries of the
> Option class.
>
> Then I add a dropdownchoice component to my form using:
> ChoiceRenderer choiceRenderer = new ChoiceRenderer("value", "key");
> form.add(dropDownChoice = new DropDownChoice("imageCollectionId",
> imageList, choiceRenderer));
>
> This works fine to display the key and value bits correctly in the html,
> but then how do I get out the key and value properties.
>
> The only way I've found so far is to have the imageCollectionId attribute
> in my POJO business object of type Option, whereas I only want it to be of
> type String - where it should just hold the 'key' value of the Option
> class.
>
> All I want is to get at the 'key' value, but display the 'value' on the
> screen.
>
> Hope that makes some sense, it's been puzzling me all day, and I thought it
> would be so simple.
> Cheers

What I've found useful is to use a converter.   I use 1.2.5 and an 
IConverter.   I don't fully understand a type converter, as it seems to only 
go one way.   So I have an Area object and an ITypeConverter would only take 
an Area and return a string, but I couldn't figure out how to have a string 
and get an Area.So I use an IConverter.   And I create my drop down 
choice this way:

 new DropDownChoice( ... )
{
public IConverter getConverter()
{
return new AreaConverter( _areaDao );
}
};

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Using SpringWebApplication with wicket-auth-roles

2007-03-23 Thread Thomas R. Corbin
On Friday, 23 March 2007 08:04 am, Julian Vassev escreveu:
> Hi
> I am using wicket-spring and retrieve the application bean from the spring
> context. So I subclass SpringWebApplication.
>
> No I would like to take advantage of wicket-auth-roles project but now I am
> supposed to subclass AuthenticatedWebApplication.
>
> How can I use both of them without doing copy-paste code 'reuse'?

I think that later versions of wicket make this very easy.  For earlier 
versions of wicket, I just used the AuthenticatedWebApplication with 
sprinklings of ideas from the spring integration project.   It's not as nice 
as having it all done for you, but it's really easy and I know that it'll go 
away when we upgrade.   And this is really a minor thing.  And wicket is just 
so darn cool I'm grateful that I can even do this much.

>
> May be it can be refactored in way that would allow wicket-auth-roles to be
> used like in wicket-spring-annot: without having to subclass from
> AnnotSpringWebApplication, just by adding a component instantiation
> listener etc.

It is in a later version.

>
> -
> Now that's room service! Choose from over 150,000 hotels
> in 45,000 destinations on Yahoo! Travel to find your fit.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] When you have tabs and forms, is it ok to have the tabs all inside one form,

2007-03-14 Thread Thomas R. Corbin
On Tuesday, 13 March 2007 03:31 pm, Jean-Baptiste Quenot escreveu:
> * Igor Vaynberg:
> > a better  option for these  situations imho is  to not to  use a
> > serverside  tabpanel,  but  a  clientside  one.  that  way  your
> > entire  form  is  written  out and  the  submit  button  submits
> > the  entire  thing.  a  js  lib  like  this  makes  it  trivial:
> > http://www.stilbuero.de/jquery/tabs/
>
> We have DojoTabContainer in Wicket Contrib Dojo that is
> client-side only.
>
> See an example at
> http://www.demay-fr.net:8080/Wicket-start/app?wicket:bookmarkablePage=:wick
>et.contrib.dojo.examples.TabContainerSample

Wow - way cool!

Thanks!

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] When you have tabs and forms, is it ok to have the tabs all inside one form,

2007-03-13 Thread Thomas R. Corbin
On Tuesday, 13 March 2007 07:54 am, Al Maw escreveu:
> Thomas R. Corbin wrote:
> > or do you need to have each tab have it's own form?
> >
> > And if each tab has it's own form, does the user need to save their data
> > before switching tabs?
> >
> > Would the submit button be on each form, on each tab, or outside the tabs
> > entirely?
>
> You can do this however you want.
>
> If you want a single form, I'd put the submit button outside the tabs to
> make it more obvious that you can skip between them before hitting
> submit. You'd then need to modify your tabs so that the link to each tab
> is a SubmitLinks, with setDefaultFormProcessing(false) to avoid
> validating the entire form as you click between the links.
>
> Alternatively, you can just put a form on each tab and have a submit
> button inside each form. The tabs/forms will be independent of each
> other in this case (although I guess you could link them together like a
> wizard if you wanted to, the point is that each tab has a form and an
> onSubmit method and is effectively standalone).
>
> This is more a question about UI design than anything else - Wicket
> doesn't force you to do things like this in any particular way. Is it
> obvious to your users how a multi-tabbed form works? People aren't used
> to that kind of way of doing things.
>
> If your form is too big to fit on a single screen, you might like to
> consider other ways of doing things. If you're creating stuff, having a
> wizard is probably better. If you're editing an existing entity, putting
> the save buttons inside the tabs is almost certainly more intuitive. You
> could also investigate something like Mootool's accordion
> (http://docs.mootools.net/files/Plugins/Accordion-js.html).
>
>
> Al

Thanks so much for your advice.   I'll be looking into it now.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] When you have tabs and forms, is it ok to have the tabs all inside one form,

2007-03-13 Thread Thomas R. Corbin
On Monday, 12 March 2007 04:37 pm, Jean-Baptiste Quenot escreveu:
> * Thomas R. Corbin:
> > or do you need to have each tab have it's own form?
> >
> > And if each  tab has it's own  form, does the user  need to save
> > their data before switching tabs?
> >
> > Would the submit button be on each form, on each tab, or outside
> > the tabs entirely?
>
> If all the  tab's contents are generated in the  page, you can put
> the form around all the tabs,  so that each tab can contribute its
> respective  input fields.   Otherwise,  if tab  contents are  only
> rendered after  an Ajax  callback, you'd be  safer putting  a form
> inside every tab.

How do you get all the tabs generated in one page?

The problem I'm having is that only the current tab's stuff is there, 
so I'm 
not sure how to do all the validation.

I guess I would need a form validator that validates all the fields of 
the 
object that the form allows the user to edit.

I have required fields on several different tabs, but if the elements 
of 
another tab are not visible, I'm not sure how to validate against that.

Thanks!

>
> That depends on your code actually.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Design questions: Use of controllers and wicket models

2007-03-09 Thread Thomas R. Corbin
On Friday, 09 March 2007 11:57 am, Igor Vaynberg escreveu:
> yes, but then you are married to the output it genereates.
>
> [] label
> [] label
>
> whats below you can use just for the checkbox, so you are free to generate
> your own label/panel/whatever. eg selecting rows in a table.

Ooooh - thanks!

>
> -igor
>
> On 3/9/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:
> > On Thursday, 08 March 2007 07:58 pm, Igor Vaynberg escreveu:
> > > see above. take a simple example where you have a list of checkboxes
> > > and you want all selected objects to end up in a collection. how do you
> > > do
> >
> > it?
> >
> > > sounds like a complex mapping? the most elegant way is to write a
> > > custom model.
> >
> > Can you use a CheckBoxMultipleChoice for this?
> >
> > > class mypage extends page {
> > > private Set selected=new HashSet();
> > >
> > > private class PersonCheckboxModel implements IModel {
> > > private final IModel person;
> > > public final PersonCheckBoxModel(IModel person) {
> > > this.person=person; }
> > >
> > > public Boolean getObject() {
> > > return selected.contains(person.getObject());
> > > }
> > >
> > > public void setObject(Boolean b) {
> > > if (Boolean.TRUE.equals(b)) {
> > > selected.put(person.getObject());
> > > } else {
> > > selected.remove(person.getObject());
> > > }
> > > }
> > >
> > > public void detach() { person.detach(); }
> > > }
> > >
> > > }
> > >
> > > now all you have to do is
> > >
> > > LoadableDetachableModel person=new LoadalbeDetachableModel(id);
> > > new CheckBox(this, "cb", new PersonCheckBoxModel(person));
> > >
> > > and everything magically works, hope it gives you some ideas.
> >
> > -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> > your
> > opinions on IT & business topics through brief surveys-and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] What's the best way of doing menus in Wicket?

2007-03-09 Thread Thomas R. Corbin
On Friday, 09 March 2007 04:18 am, Ryan Holmes escreveu:
> MyGosuMenu is worth a look. It's a stagnant project, but it's simple,
> fast and still has good cross-browser support (although I probably
> wouldn't use it for a public site). Here's an example of the standard
> drop down menu: http://code.gosu.pl/dl/mygosuMenu/demo/1.1/example1.html
>
> You can download it here: http://sourceforge.net/project/
> showfiles.php?group_id=69763 (under the "mygosumenu v1.x" section)
> The distribution comes with examples and documentation.
>
> Wicket integrates seamlessly with this or any other layout-based JS
> menu. Just use Link (or PageLink etc.) components instead of static
> anchor tags.

It looks pretty cool.   We've been working with the YUI menu stuff and 
it 
looks real easy, though I think I could do a better job with it.

>
> -Ryan
>
> On Mar 7, 2007, at 4:24 PM, Thomas R. Corbin wrote:
> > We need a menu bar across the top of our pages, with pull down menus.
> >
> > We used to use this stuff:
> > http://struts-menu.sf.net
> >
> > but I'm not sure how to integrate it, since it seems to rely on jsp
> > tags.
> >
> > Thanks.
> >
> > --
> > ---
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> > share your
> > opinions on IT & business topics through brief surveys-and earn cash
> > http://www.techsay.com/default.php?
> > page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Design questions: Use of controllers and wicket models

2007-03-09 Thread Thomas R. Corbin
On Thursday, 08 March 2007 07:58 pm, Igor Vaynberg escreveu:
> see above. take a simple example where you have a list of checkboxes and
> you want all selected objects to end up in a collection. how do you do it?
> sounds like a complex mapping? the most elegant way is to write a custom
> model.

Can you use a CheckBoxMultipleChoice for this?

>
> class mypage extends page {
>   private Set selected=new HashSet();
>
>   private class PersonCheckboxModel implements IModel {
>         private final IModel person;
>         public final PersonCheckBoxModel(IModel person) {
> this.person=person; }
>
>        public Boolean getObject() {
>           return selected.contains(person.getObject());
>         }
>
>         public void setObject(Boolean b) {
>             if (Boolean.TRUE.equals(b)) {
>                selected.put(person.getObject());
>              } else {
>                 selected.remove(person.getObject());
>               }
>            }
>
>             public void detach() { person.detach(); }
>            }
>
>     }
>
> now all you have to do is
>
> LoadableDetachableModel person=new LoadalbeDetachableModel(id);
> new CheckBox(this, "cb", new PersonCheckBoxModel(person));
>
> and everything magically works, hope it gives you some ideas.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] When you have tabs and forms, is it ok to have the tabs all inside one form,

2007-03-08 Thread Thomas R. Corbin
or do you need to have each tab have it's own form?

And if each tab has it's own form, does the user need to save their data 
before switching tabs?

Would the submit button be on each form, on each tab, or outside the tabs 
entirely?

Thanks.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] What's the best way to change the style for a particular column

2007-03-08 Thread Thomas R. Corbin
On Thursday, 08 March 2007 01:24 am, Eelco Hillenius escreveu:
> Did you look at the examples project? Plenty of examples on repeaters.

Yes, but I don't see one that changes the column style that uses 
PropertyColumn.   That doesn't mean there isn't one, I just haven't seen one.   
I think it would be easier if I used a different repeater.   I'll look at 
doing that, probably.

>
> Eelco
>
> On 3/7/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:
> > in a DefaultDataTable?
> >
> > I think some other repeaters may make it easier, but I can't see how to
> > do it with a PropertyColumn.
> >
> > Thanks.
> >
> > -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> > your opinions on IT & business topics through brief surveys-and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] What's the best way of doing menus in Wicket?

2007-03-08 Thread Thomas R. Corbin
On Thursday, 08 March 2007 01:23 am, Eelco Hillenius escreveu:
> The big question there is whether you know all items beforehand or
> not. If yes, integrating with any javascript library is easy. If not,
> you need a tree, and probably can best look at that component or
> navmenu
> (https://svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicke
>t-contrib-navmenu) which is deprecated (won't be supported) but nevertheless
> may give you an idea.
>
> The second big question is: what are you going to do with these items:
> component replacements or do links point to bookmarkable pages?
>
> I'd really love to see someone contribute a nice component for this
> based on bookmarkable pages and a tree. navmenu was a step in that
> direction, but the API is't great.

For what we're doing, we'll know all the items beforehand and we'll be 
pointing to bookmarkable pages.

I'm mostly a swing developer and new to wicket and javascript so I'll 
see 
what I can do.   I'll look at navmenu to see a starting point.

>
> Eelco
>
> On 3/7/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:
> > We need a menu bar across the top of our pages, with pull down menus.
> >
> > We used to use this stuff:
> > http://struts-menu.sf.net
> >
> > but I'm not sure how to integrate it, since it seems to rely on jsp tags.
> >
> > Thanks.
> >
> > -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> > your opinions on IT & business topics through brief surveys-and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] What's the best way to change the style for a particular column

2007-03-07 Thread Thomas R. Corbin

in a DefaultDataTable?

I think some other repeaters may make it easier, but I can't see how to do it 
with a PropertyColumn.

Thanks.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] What's the best way of doing menus in Wicket?

2007-03-07 Thread Thomas R. Corbin

We need a menu bar across the top of our pages, with pull down menus.

We used to use this stuff:
http://struts-menu.sf.net

but I'm not sure how to integrate it, since it seems to rely on jsp tags.

Thanks.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] IMPORTANT: your opinion on the constructor change in 2.0

2007-03-07 Thread Thomas R. Corbin
On Wednesday, 07 March 2007 04:50 am, karthik Guru escreveu:
> We use Wicket 1.2.5 for development now and i think we will go into
> production with 1.3. In additions to the ones that have already been
> mentioned, I liked the Wicket 2.0 Converter design. The last time I looked
> at it was while I writing the last chapter of the book and i had a smile
> while writing about the improved and better looking Converter (it had a
> typo in the way the converter classes were named then though :)). Is it
> already in 1.3?

I agree about the nicer converter.

>
> Availability of the markup attributes at the time of construction was also
> good.
> But on the whole, I think 1.x is fine.
>
> -- karthik --

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question: Sometimes our web pages come back incomplete.

2007-03-06 Thread Thomas R. Corbin
On Tuesday, 06 March 2007 11:24 am, Martijn Dashorst escreveu:
> Switch the rendering from RENDER_TO_BUFFER to DIRECT_RENDER (or
> something similar)

Thanks!

I'll investigate that just until we get rid of it, since I like the way 
wicket works better, anyway.

>
> Martijn
>
> On 3/6/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > im not sure if a solution has been found. afaik its some weird bug in
> > sitemesh. search the mailing list for "sitemesh" to see other threads
> >
> >
> > -igor
> >
> > On 3/6/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:
> > > On Tuesday, 06 March 2007 10:57 am, Igor Vaynberg escreveu:
> > > > ive only heard of this happening when wicket pages were rendered
> > > > inside sitemesh, is that what you are doing?
> > >
> > > Jeez.   Yes!   That's exactly what we're doing.
> > >
> > > We have been thinking of getting rid of sitemesh once we're
> >
> > totatlly off of
> >
> > > webwork and onto wicket.   Then we can just use wicket composition.
> > >
> > > I guess we need to accelerate that!
> > >
> > > Or is there some temporary solution?
> > >
> > > Thanks!  Wow.
> > >
> > > > -igor
> > > >
> > > > On 3/6/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:
> > > > > It seems as though some of the data just doesn't come back until we
> > > > > do
> >
> > a
> >
> > > > > refresh.
> > > > >
> > > > > We're using wicket 1.2.5.
> > > > >
> > > > > We've got a form and then after the form we have a DefaultDataTable
> >
> > with
> >
> > > > > some
> > > > > rows.
> > > > >
> > > > > Sometimes it seems like it stops drawing the page after part of the
> >
> > form,
> >
> > > > > maybe after the second datepicker.
> > > > >
> > > > > Does this sound familiar?
> > > > >
> > > > > Do you have any suggestions?
> > > > >
> > > > > I am no wicket or web wizard, so any hints would be appreciated.
> > > > > Thanks.
> >
> > -
> >
> > > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > > Join SourceForge.net's Techsay panel and you'll get the chance to
> >
> > share
> >
> > > > > your
> > > > > opinions on IT & business topics through brief surveys-and earn
> > > > > cash
> >
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> > > > > ___
> > > > > Wicket-user mailing list
> > > > > Wicket-user@lists.sourceforge.net
> >
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> > -
> >
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to share
> >
> > your
> >
> > > opinions on IT & business topics through brief surveys-and earn cash
> >
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> > -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> > your opinions on IT & business topics through brief surveys-and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question: Sometimes our web pages come back incomplete.

2007-03-06 Thread Thomas R. Corbin
On Tuesday, 06 March 2007 10:57 am, Igor Vaynberg escreveu:
> ive only heard of this happening when wicket pages were rendered inside
> sitemesh, is that what you are doing?

Jeez.   Yes!   That's exactly what we're doing.

We have been thinking of getting rid of sitemesh once we're totatlly 
off of 
webwork and onto wicket.   Then we can just use wicket composition.

I guess we need to accelerate that!

Or is there some temporary solution?

Thanks!  Wow.

>
> -igor
>
> On 3/6/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:
> > It seems as though some of the data just doesn't come back until we do a
> > refresh.
> >
> > We're using wicket 1.2.5.
> >
> > We've got a form and then after the form we have a DefaultDataTable with
> > some
> > rows.
> >
> > Sometimes it seems like it stops drawing the page after part of the form,
> > maybe after the second datepicker.
> >
> > Does this sound familiar?
> >
> > Do you have any suggestions?
> >
> > I am no wicket or web wizard, so any hints would be appreciated.
> > Thanks.
> >
> > -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> > your
> > opinions on IT & business topics through brief surveys-and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Question: Sometimes our web pages come back incomplete.

2007-03-06 Thread Thomas R. Corbin
It seems as though some of the data just doesn't come back until we do a 
refresh.

We're using wicket 1.2.5.

We've got a form and then after the form we have a DefaultDataTable with some 
rows.

Sometimes it seems like it stops drawing the page after part of the form, 
maybe after the second datepicker.

Does this sound familiar? 

Do you have any suggestions?

I am no wicket or web wizard, so any hints would be appreciated.
Thanks.
Title: Manage Interruptions












From Date:





To Date:




















Selected Incident: [selected contact]




[table]
 

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How do I make CheckBoxMultipleChoice show horizontal instead of vertical?

2007-03-06 Thread Thomas R. Corbin
On Monday, 05 March 2007 05:20 pm, Igor Vaynberg escreveu:
> well if you want it to be horizontal then you can do something like this:
>
> setprefix("");
> setsuffix("");

Thanks.  I did a "setSuffix( "" )", which seems to work fine.

>
> -igor
>
> On 3/5/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:
> > On Monday, 05 March 2007 04:22 pm, Igor Vaynberg escreveu:
> > > override getprefix/getsuffix to return whatever html you want
> >
> > Ok, sorry - but I'm not sure what html I want there.
> >
> > I'm more of a swing programmer than a web programmer.
> >
> > > -igor
> > >
> > > On 3/5/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:
> > > > I know that must be a dumb question, but I just can't quite get it.
> >
> > -
> >
> > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > Join SourceForge.net's Techsay panel and you'll get the chance to
> >
> > share
> >
> > > > your
> > > > opinions on IT & business topics through brief surveys-and earn cash
> >
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> > > > ___
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> > -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> > your
> > opinions on IT & business topics through brief surveys-and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How do I make CheckBoxMultipleChoice show horizontal instead of vertical?

2007-03-05 Thread Thomas R. Corbin
On Monday, 05 March 2007 04:22 pm, Igor Vaynberg escreveu:
> override getprefix/getsuffix to return whatever html you want

Ok, sorry - but I'm not sure what html I want there.

I'm more of a swing programmer than a web programmer.

>
> -igor
>
> On 3/5/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:
> > I know that must be a dumb question, but I just can't quite get it.
> >
> > -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> > your
> > opinions on IT & business topics through brief surveys-and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] How do I make CheckBoxMultipleChoice show horizontal instead of vertical?

2007-03-05 Thread Thomas R. Corbin

I know that must be a dumb question, but I just can't quite get it.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] has anyone got a book on wicket?

2007-01-11 Thread Thomas R. Corbin
On Thursday, 11 January 2007 01:04 am, Eelco Hillenius escreveu:
> It's not free, but at $20 for the electronic version, this
> http://www.apress.com/book/bookDisplay.html?bID=10189 is a bargain :)

Especially because it's such a good book.

>
> Eelco
>
> On 1/10/07, snkr subedi <[EMAIL PROTECTED]> wrote:
> > Hi,
> > If anyone has got a free book on wicket please help me
> > I think i need to go through some more tutorials
> >
> > Please guide me
> > thanks in advance
> > sNkr
> >
> > -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> > your opinions on IT & business topics through brief surveys - and earn
> > cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Mixing wicket, webwork, spring and acegi.

2006-12-09 Thread Thomas R. Corbin

We've got a site that was started in webwork and we're using acegi/spring for 
authentication.  

We'd like to move to wicket, but we're not sure how well (or how) to mix 
authentication.I just want to be sure that once the user has logged in 
(using whatever means), that they won't have to reauthenticate if they move 
from a webwork page to a wicket page or vice versa.

I'd prefer to use a wicket login page because we need to customize the login 
dialog and I'd feel much more comfortable doing that in wicket than in 
webwork/acegi.

Any advice?

Thanks, 
Tom

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] JBOSS Reload Classes

2006-10-06 Thread Thomas R. Corbin
On Friday, 06 October 2006 12:51 pm, craigdd escreveu:
> Yes, my next step is to check the jboss forums, I sort of figured a lot of
> people that where using wicket might also be using jboss and had figured
> out this issue because it greatly affects the efficiency of development.
>
> I'm getting the impression that most people are using jetty with wicket
> which makes me wonder how main stream this framework is.

I user jetty for development, but tomcat for deployment.  

Dunno about anyone else.

Make me wonder how jboss could be mainstream w/o supporting this 
feature! :)

>
> igor.vaynberg wrote:
> > why not ask on the jboss forums? what you want to ask is that if jboss
> > can be launched to take advantage of jvm's hotswap.
> >
> > -Igor
> >
> > On 10/6/06, craigdd <[EMAIL PROTECTED]> wrote:
> >> So in other words the out come to my question is that NO, jboss can not
> >> be
> >> configured to reloaded changed classes without restarting the container.
> >>
> >> Erik van Oosten wrote:
> >> > Martijn Dashorst wrote:
> >> >> Doesn't JBoss IDE start the jboss container in debug mode?
> >> >
> >> > Indeed, it does start jboss in debug mode.
> >> >
> >> > craigdd wrote:
> >> >> I don't think debug mode in jboss allows the reloading of classes, i
> >> >> believe
> >> >> it it just for remote debugging.
> >> >
> >> > Indeed again, JBoss is directly started from Eclipse (as all programs
> >> > you start from Eclipse). Strictly there is no class reloading, but you
> >> > _can_ change classes on the fly. Just remember that when you restart
> >> > JBoss, you must recompile and redeploy your changed classes.
> >> >
> >> > Regards,
> >> >  Erik.
> >> >
> >> >
> >> > --
> >> > Erik van Oosten
> >> > http://day-to-day-stuff.blogspot.com/
> >>
> >> 
> >>-
> >>
> >> > Take Surveys. Earn Cash. Influence the Future of IT
> >> > Join SourceForge.net's Techsay panel and you'll get the chance to
> >> > share your
> >> > opinions on IT & business topics through brief surveys -- and earn
> >> > cash
> >>
> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
> >>V
> >>
> >> > ___
> >> > Wicket-user mailing list
> >> > Wicket-user@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/JBOSS-Reload-Classes-tf2393072.html#a6683715
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> 
> >>- Take Surveys. Earn Cash. Influence the Future of IT
> >> Join SourceForge.net's Techsay panel and you'll get the chance to share
> >> your
> >> opinions on IT & business topics through brief surveys -- and earn cash
> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
> >>V ___
> >> Wicket-user mailing list
> >> Wicket-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> > -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> > your
> > opinions on IT & business topics through brief surveys -- and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] In his blog Kohsuke Kawaguchi doesn't understand wicket

2006-08-10 Thread Thomas R. Corbin
http://weblogs.java.net/blog/kohsuke/archive/2006/08/hudson_140_and.html

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListView#accept() proposal

2006-07-22 Thread Thomas R. Corbin
On Monday, 17 July 2006 08:21 pm, Aaron Hiniker escreveu:
> Yes, a List implement that filters on the fly would avoid the copy, but

I am not sure if you are talking the Collections api list, but if you 
are 
then the Glazedlists stuff provides an implementation of the Collections api 
list which filters on the fly.  It's really wonderful stuff.   They do 
filters, transformations. sorting, unique - all on the fly so that if the 
underlying list changes, the derived lists all automatically update too.   
Very, very good stuff.

> probably incur greater performance hits than a single List copy (due to
> the "Linked List" nature of the filtering).  The current ListView
> implementation only works on lists.. rightfully so because you can
> extract the active window via get() calls and provide pagination.  On
> that note, I agree that for ListView, the accept() is not a good
> candidate.. but I also feel that there is a void in not having a
> component that *doesn't* paginate.. like a CollectionView.. that visits
> each element in the list with easy filtering capabilities (in fact 90%
> of the time I am using ListView I am not using pagination).   If I get
> ambitious enough to write it, I'll submit it for consideration into
> wicket-extensions
>
> Aaron
>
> On Mon, 2006-07-17 at 17:40 -0700, Igor Vaynberg wrote:
> > im sorry but why will there be a listcopy?that is certainly a way to
> > go but its not the only way. from the model return a List interfcace
> > that filters on the fly.
> >
> > -Igor
> >
> >
> >
> > On 7/17/06, Aaron Hiniker <[EMAIL PROTECTED]> wrote:
> >
> > Yeah, there's no problem implementing this in the model, other
> > than the fact that there will be a list copy.
> >
> >
> > Aaron
> >
> > On Mon, 2006-07-17 at 17:02 -0700, Igor Vaynberg wrote:
> > > the filtering should be performed in the model - it is the
> > > perfect place for it.
> > >
> > > -Igor
> > >
> > >
> > > On 7/17/06, Juergen Donnerstag
> > > <[EMAIL PROTECTED]> wrote:
> > >
> > > Just out of my head. Paging which is based on
> > > windows size and list
> > > size would need to take these into consideration.
> > > Not sure this change
> > > is trivial.
> > >
> > > Juergen
> > >
> > > On 7/18/06, Aaron Hiniker <[EMAIL PROTECTED]> wrote:
> > > >  I frequently have the need to filter the elements
> > >
> > > in a ListView.. of
> > >
> > > >  course I can filter elements before passing them
> > >
> > > to ListView by creating
> > >
> > > >  a new List, but it seems a lot cleaner to have an
> > >
> > > accept() method, just
> > >
> > > >  like in IFeedbackMessageFilter or whatever.
> > > >
> > > >  ie:
> > > >
> > > >
> > > >  add( new ListView( "list", myList ) ) {
> > > >  public void onPopulateItem( ListItem item )
> > >
> > > { ... }
> > >
> > > >  public boolean accept( ListItem item ) {
> > > >  return
> > >
> > > ((MyEntity)item.getModel()).isActive();
> > >
> > > >  }
> > > >  }
> > > >
> > > >
> > > >
> > > >  Would this be trivial to add to the ListView
> > >
> > > component?
> > >
> > > >  ie:
> > > >
> > > >
> > > >  Aaron
> > >
> > >
> > > ---
> > >--
> > >
> > > > Take Surveys. Earn Cash. Influence the Future of
> > >
> > > IT
> > >
> > > > Join SourceForge.net's Techsay panel and you'll
> > >
> > > get the chance to share your
> > >
> > > > opinions on IT & business topics through brief
> > >
> > > surveys -- and earn cash
> > >
> > >
> > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&;
> > >CID=DEVDEV
> > >
> > > > ___
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > >
> > >
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> > >
> > >
> > >
> > > 

Re: [Wicket-user] Testing Wicket 1.2 on Glassfish b48

2006-07-06 Thread Thomas R. Corbin
On Thursday, 06 July 2006 09:16 am, Vincent Jenks escreveu:
> My problem w/ that is; the application is done and I can't go back
> through and re-work it to get something working that already works on
> another container.  This application runs well on JBoss's EJB3
> implemenation w/o that kind of tweaking.   However, going forward,
> JBoss probably isn't an option for us.
>
> I suppose I can post @ the Glassfish forums to see what they think.
> Meanwhile, how can I get debug logging disabled in order to eliminate
> that possibility?

I don't know if this will help, but you might try something like this:

Logger logger = Logger.getLogger( "org.springframework" );
logger.setLevel( Level.ERROR );

but replace "org.springframework" with your class's FQN.

Do this in your Application.

Then you might be able to see that with this manually set to error you 
do or 
don't get this issue.   Then you can at least be assured of that.

Or... you can print out the logging level.

Once you know for sure what level it is getting set to, you can then 
investigate further.   If it's not getting set to the level you want to, you 
might have to set some breakpoints in the log4j code.

>
> On 7/6/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > This discussion is completely about getting the debug logging disabled.
> > But even if that is done. Then you still could have a problem because for
> > example in 2.0
> > we store the pages to disk. this will fail then. It is much better for
> > you to look why it is not serializeable
> > or of you can wrap something around it like a serializeable proxy (just
> > like our spring intergration)
> >
> > johan
> >
> > On 7/6/06, V. Jenks < [EMAIL PROTECTED]> wrote:
> > > Again, I did this at home on my Gentoo box in a separate project...and
> > > got the same result.
> > >
> > > My log4j.properties:
> > >
> > > logger.wicket.protocol.http=INFO
> > >
> > > The exception stack:
> > >
> > > wicket.WicketRuntimeException: Internal error cloning object. Make sure
> > > all dependent objects implement Serializable. Class:
> > > com.zambizzi.finances.ui.UserSession
> > > at
> >
> > wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:
> >62)
> >
> > > at wicket.Session.setAttribute(Session.java:914)
> > > at wicket.Session.update (Session.java:938)
> > > at
> >
> > wicket.protocol.http.WebSession.update(WebSession.java:116)
> >
> > > at wicket.RequestCycle.detach(RequestCycle.java:818)
> > > at wicket.RequestCycle.steps(RequestCycle.java:1052)
> > > at wicket.RequestCycle.request(RequestCycle.java:453)
> > > at
> >
> > wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:215)
> >
> > > at
> >
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
> >
> > > at
> >
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> >
> > > at
> >
> > org.apache.catalina.core.ApplicationFilterChain.servletService(Applicatio
> >nFilterChain.java:397)
> >
> > > at
> > > org.apache.catalina.core.StandardWrapperValve.invoke
> >
> > (StandardWrapperValve.java:278)
> >
> > > at
> >
> > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:
> >566)
> >
> > > at
> >
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:53
> >6)
> >
> > > at
> >
> > org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCont
> >extValve.java:240)
> >
> > > at
> >
> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve
> >.java:179)
> >
> > > at
> >
> > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:
> >566)
> >
> > > at
> >
> > com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
> >
> > > at
> > > org.apache.catalina.core.StandardHostValve.invoke
> >
> > (StandardHostValve.java:182)
> >
> > > at
> >
> > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:
> >566)
> >
> > > at
> >
> > com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline
> >.java:120)
> >
> > > at
> >
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
> >
> > > at
> >
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j
> >ava:137)
> >
> > > at
> > > org.apache.catalina.core.StandardPipeline.doInvoke
> >
> > (StandardPipeline.java:566)
> >
> > > at
> >
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:53
> >6)
> >
> > > at
> >
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
> >
> > > at
> >
> > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
> >
> > > at
> >
> > com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(Proc
> >essorTask.java:667)