Re: [Wicket-user] UML diagram?

2006-04-24 Thread Eelco Hillenius
That'd be much appreciated. The WIKI is a good place for that.

Thanks,

Eelco

On 4/24/06, Stefan Kanev <[EMAIL PROTECTED]> wrote:
> Hi
>
> Don't you think that an UML diagram for the basic objects in wicket would be
> useful for newbies to the frameworks (shows the complete) picture and for
> all users, where it can serve as a quick reference. Since such a diagram is
> not present, I'm willing to put up one. What do you think should be included
> in it?
>
> Stefan
>


---
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&kid0709&bid&3057&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Changing Tree model

2006-04-24 Thread Eelco Hillenius
That's the beauty of that Swing tree model. It should work as the
selection is held in the TreeState object. So if you set
OptimizeItemRemoval to false, it triggers redrawing the child
components everytime, but using the current tree state. So, just
setting that flag - btw the new method name for this will be
setReuseItems, which is consistent with the ListView method, though I
just comitted that) - should suffice.

Eelco

On 4/24/06, Steve Knight <[EMAIL PROTECTED]> wrote:
> The data for the tree comes from a database.  And the user may also move a
> node to a different part of the tree.  I would like to rebuild the entire
> tree from the database on each page view, but I'd like it to maintain the
> expanded and selected states.  How should I go about doing this?
>
> Steve
>
>
> On 4/24/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> >
>  setOptimizeItemRemoval to false should do the trick. Or maybe just
> manually removeChildren when you suspect something changed (e.g. by
> registring a listener).
>
> Eelco
>
>
> On 4/24/06, Steve Knight < [EMAIL PROTECTED]> wrote:
> > I am currently using the tree component to display hierarchical data, and
> > now I'd like to have an Edit page that allows users to edit the data that
> is
> > displayed in the tree.  So, after the user saves the changes the tree view
> > is displayed again, and the changes should be reflected in the tree.
> > Currently, it does not do this.  How should I go about implementing it?
> Or
> > am I missing something obvious?
> >
> > Thanks.
> >
> > Steve
> >
>
>
> ---
> 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?cmdlnk&kid0709&bid&3057&dat1642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>


---
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&kid0709&bid&3057&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Dynamically generated buttons are showing up as broken links

2006-04-24 Thread kurt heston

When I'm stepping through the code, the problem goes away.  Still looking...

Johan Compagner wrote:
do debug when you just ask for the link in the browser what you 
excactly are sending to the browser.

isn't it by accident 0 bytes?

johan


On 4/19/06, * kurt heston* <[EMAIL PROTECTED] 
> wrote:


Is anyone using button shapes as hyperlinks like I am?  I was
coloring a
bit outside the lines when I wrote the code you see below.  Tell me if
you are doing it differently.  Maybe doing it another way will rid
me of
my broken link problem.

kurt heston wrote:
> That particular text message came up in Firefox when I was
running it
> on the server.  Running the app from another machine produces a
> similar message (with a different URL).
>
> Martijn Dashorst wrote:
>>
>> The image
>>
>> "http://localhost/feeple/?path
>>
>>
>>
=78:toppanel:contractList:contractListImg&interface=IResourceListener"

>> cannot be displayed, because it contains errors.
>>
>>
>> Are you running the browser on the same box or on another
machine? If
>> your browser is on another box, then the reference to localhost is
>> quite strange.
>>
>> Martijn
>>
>>
>> On 4/19/06, *kurt heston* <[EMAIL PROTECTED]

>> mailto:[EMAIL PROTECTED]>>>
wrote:
>>
>> The code was working fine on my development machine.  However,
>> when I
>> moved it to production (a much faster box), the buttons I'm
>> generating
>> all showed up as broken links.  Just shooting from the hip, I'm
>> guessing
>> something isn't flushing its buffer.
>>
>> Here's the HTML:
>>
>> 
>>
>> Here's the Java:
>>
>> add(new Image("listImg", BasePage.getButton("Get List")))
>>
>> public static Resource getButton(String label) {
>> DefaultButtonImageResource r = new
>> DefaultButtonImageResource(label);
>> Color c = new Color(60, 179, 113);
>> r.setColor(c);
>>
>> return r;
>> }
>>
>>
>> Here's the problem (what Firefox says):
>>
>> The image
>>
>>

"http://localhost/feeple/?path=78:toppanel:contractList:contractListImg&interface=IResourceListener


>>
>>
>>

>"
>>
>> cannot be displayed, because it contains errors.
>>
>> Any ideas?
>>
>>
>> ---
>> This SF.Net email is sponsored by xPML, a groundbreaking
scripting
>> language
>> that extends applications into web and mobile media. Attend the
>> live webcast
>> and join the prime developer group breaking into this new
coding
>> territory!
>>
>>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

>>
>>
>
>>
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net

>> >
>> https://lists.sourceforge.net/lists/listinfo/wicket-user

>>
>>
>>
>>
>> --
>> Wicket 1.2 is coming! Write Ajax applications without touching
>> JavaScript!
>> -- http://wicketframework.org 
>
>
> ---
> 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] Changing Tree model

2006-04-24 Thread Steve Knight
The data for the tree comes from a database.  And the user may also move a node to a different part of the tree.  I would like to rebuild the entire tree from the database on each page view, but I'd like it to maintain the expanded and selected states.  How should I go about doing this?  
SteveOn 4/24/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
setOptimizeItemRemoval to false should do the trick. Or maybe justmanually removeChildren when you suspect something changed (e.g. byregistring a listener).EelcoOn 4/24/06, Steve Knight <
[EMAIL PROTECTED]> wrote:> I am currently using the tree component to display hierarchical data, and> now I'd like to have an Edit page that allows users to edit the data that is> displayed in the tree.  So, after the user saves the changes the tree view
> is displayed again, and the changes should be reflected in the tree.> Currently, it does not do this.  How should I go about implementing it?  Or> am I missing something obvious?>> Thanks.
>> Steve>---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 Geronimohttp://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] UML diagram?

2006-04-24 Thread Stefan Kanev
HiDon't you think that an UML diagram for the basic objects in wicket would be useful for newbies to the frameworks (shows the complete) picture and for all users, where it can serve as a quick reference. Since such a diagram is not present, I'm willing to put up one. What do you think should be included in it?
Stefan


Re: [Wicket-user] Question about localizing strings with .properties files

2006-04-24 Thread Juergen Donnerstag
I think it is a RFE.

Juergen

On 4/24/06, Marco Geier <[EMAIL PROTECTED]> wrote:
> johan,
>
> the fallback mechanism works fine *on the bundle-level*, i.e. Wicket
> will try all these SomeApplication_locale_style.properties combinations
> down to SomeApplication.properties.
>
> But once it found a bundle it will not longer look for another bundle,
> even if the key is not contained, but could be found in a more generic
> bundle.
>
> What i (and presumably Ari) wanted tried to achieve, is to have some
> style-specific bundle wich only contains some keys with style-specific
> values and thus not having to maintain a bunch of property files if we
> add another key, eventhough it's value would be the same across all styles.
>
> But since this behaviour is *not* how java usually deals with
> .properties, i'm not sure if this is a bug.
>
> Anyway this would be a nice feature, but maybe should be explicitly
> activated somehow
>
> So should i put this into sf as a bug or as a feature request?
>
> Marco
>
> Johan Compagner wrote:
> > we should try to fall back to those better then (i thought this already
> > happend)
> > can you make a bug report for this with a small (unit) test case ?
> >
> > johan
> >
> >
> > On 4/24/06, Marco Geier <[EMAIL PROTECTED]> wrote:
> >
> >>by default you need all values in all files!
> >>
> >>I had the same problem and adding the following code to application's
> >>init did the trick:
> >>
> >>getResourceSettings().addStringResourceLoader(new
> >>ApplicationStringResourceLoader(this) {
> >>
> >>  @Override
> >>  public String loadStringResource(Class clazz, String key, Locale
> >>locale, String style) {
> >>return super.loadStringResource(clazz, key, locale, null);
> >>  }
> >>
> >>});
> >>
> >>getResourceSettings().addStringResourceLoader(new
> >>ApplicationStringResourceLoader(this) {
> >>
> >>  @Override
> >>  public String loadStringResource(Class clazz, String key, Locale
> >>locale, String style) {
> >>return super.loadStringResource(clazz, key, null, locale);
> >>  }
> >>
> >>});
> >>
> >>getResourceSettings().addStringResourceLoader(new
> >>ApplicationStringResourceLoader(this) {
> >>
> >>  @Override
> >>  public String loadStringResource(Class clazz, String key, Locale
> >>locale, String style) {
> >>return super.loadStringResource(clazz, key, null, null);
> >>  }
> >>
> >>});
> >>
> >>
> >>Please wicket-dev's tell us if there is a cleaner way...
> >>
> >>Marco
> >>
> >>
> >>Ari Suutari wrote:
> >>
> >>>Hi,
> >>>
> >>>If I have following property files for my application:
> >>>
> >>>1) Application_myskin_fi.properties
> >>>message1=A
> >>>2) Application_myskin.properties
> >>>message2=
> >>>3) Application.properties
> >>>message3=CCC
> >>>
> >>>If I have three messages above, must
> >>>I put values for these keys for each property file, or will wicket
> >>>search files 2 and 3 even file 1 exists, ie. if i call
> >>>Component.getString("message1")
> >>>it is retrieved from file 1 but if I call Component.getString
> >>
> >>("message3")
> >>
> >>>is is correctly read from file 3.
> >>>
> >>>I cannot get this to work and I'm not sure where the problem is.
> >>>
> >>>   Ari S.
> >>>
> >>>
> >>>
> >>>---
> >>>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
> >>>
> >>>
> >>
> >>--
> >>___
> >>
> >>Dipl.-Ing. Marco Geier
> >>EyeTea GmbH
> >>Germany
> >>phone   +49 (0)721 662464-0
> >>fax +49 (0)721 662464-1
> >>mobile  +49 (0)177 6579590
> >>[EMAIL PROTECTED]
> >>
> >>
> >>---
> >>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
> >>
> >
> >
>
> --
> ___
>
> Dipl.-Ing. Marco Geier
> EyeTea GmbH
> Germany
> phone   +49 (0)721 662464-0
> fax +49 (0)721 662464-1
> mobile  +49 (0)177 6579590
> [EMAIL PROTECTED]
>
>
> ---
> Using Tomcat but need to do more? Need to support web servic

Re: [Wicket-user] image ref within CSS

2006-04-24 Thread Justin Lee
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

/me tosses some popcorn in igor's gaping maw.

Igor Vaynberg wrote:
> im still recovering from shock!
> 
> On 4/24/06, *Eelco Hillenius* <[EMAIL PROTECTED]
> > wrote:
> 
> Pfffew. Glad I didn't say something stupid this time ;)
> 
> Eelco
> 
> On 4/24/06, karthik Guru < [EMAIL PROTECTED]
> > wrote:
> >
> > yes worked..great!..my initializer that registers the gifs as a shared
> > resource didn't run .I fixed that.
> > thanks.
> >
> >
> > On 4/24/06, Eelco Hillenius <[EMAIL PROTECTED]
> > wrote:
> > >
> >  On 4/24/06, karthik Guru < [EMAIL PROTECTED]
> > wrote:
> > > I have a CSS that refers to an image -
> > >
> > > span hello{
> > >   float:left;
> > >   background:#DAE0D2 url(" test.gif") repeat-x bottom;
> > > }
> > >
> > > If I were to package the panel as a component, the gif needs to be
> > packaged
> > > as well. Then the CSS reference to image -  url("test.gif")
> > > cannot be hardcoded.
> >
> > Did you try registering test.gif as a shared resource? Or e.g. all
> > gif's in that package using a regexp. There are more components that
> > work like that: DataPicker, YUI slider/ Calendar, or tinymce, which
> >  seem to work fine.
> >
> > Eelco
> >
> >
> > ---
> > 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?cmdlnk&kid0709&bid&3057&dat1642 
> 
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> 
> >   https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
> > --
> >  -- karthik --
> 
> 
> ---
> 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?cmdlnk&kid0709&bid&3057&dat1642 
> 
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> 
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

- --
Justin Lee
http://www.antwerkz.com
AIM : evan chooly
Skype : evanchooly
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (Cygwin)

iD8DBQFETQQ7JnQfEGuJ90MRAx+VAJ4y8lT6QUZNWGoXE8VKvxF5jbIG3QCgppJB
3dEXpBh52n3gS/rowU+NDLo=
=82zs
-END PGP SIGNATURE-


---
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] image ref within CSS

2006-04-24 Thread Igor Vaynberg
im still recovering from shock!On 4/24/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
Pfffew. Glad I didn't say something stupid this time ;)EelcoOn 4/24/06, karthik Guru <
[EMAIL PROTECTED]> wrote:>> yes worked..great!..my initializer that registers the gifs as a shared> resource didn't run .I fixed that.> thanks.
>>> On 4/24/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:> >>  On 4/24/06, karthik Guru <
[EMAIL PROTECTED]> wrote:> > I have a CSS that refers to an image -> >> > span hello{> >   float:left;> >   background:#DAE0D2 url(" test.gif") repeat-x bottom;
> > }> >> > If I were to package the panel as a component, the gif needs to be> packaged> > as well. Then the CSS reference to image -  url("test.gif")> > cannot be hardcoded.
>> Did you try registering test.gif as a shared resource? Or e.g. all> gif's in that package using a regexp. There are more components that> work like that: DataPicker, YUI slider/ Calendar, or tinymce, which
>  seem to work fine.>> Eelco>>> ---> 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?cmdlnk&kid0709&bid&3057&dat1642
> ___> Wicket-user mailing list> Wicket-user@lists.sourceforge.net>  
https://lists.sourceforge.net/lists/listinfo/wicket-user -->  -- karthik -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 easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] components javadoc

2006-04-24 Thread Igor Vaynberg
a patch to javadoc would be most welcome :)-IgorOn 4/24/06, karthik Guru <[EMAIL PROTECTED]
> wrote:A small recommendation/request wrt built-in components javadoc. I think the components that ship with wicket/wicket-extensions need to have the associated template HTML text copied over as a part of javadoc. If the 'onComponentTag' adds more styles, even that needs to be specified in the javadoc. Otherwise its difficult to know the styles that are being specified by the component on the HTML elements (unless ofcourse you look up source).
 -- karthik -- 




Re: [Wicket-user] Question about localizing strings with .properties files

2006-04-24 Thread Marco Geier
johan,

the fallback mechanism works fine *on the bundle-level*, i.e. Wicket
will try all these SomeApplication_locale_style.properties combinations
down to SomeApplication.properties.

But once it found a bundle it will not longer look for another bundle,
even if the key is not contained, but could be found in a more generic
bundle.

What i (and presumably Ari) wanted tried to achieve, is to have some
style-specific bundle wich only contains some keys with style-specific
values and thus not having to maintain a bunch of property files if we
add another key, eventhough it's value would be the same across all styles.

But since this behaviour is *not* how java usually deals with
.properties, i'm not sure if this is a bug.

Anyway this would be a nice feature, but maybe should be explicitly
activated somehow

So should i put this into sf as a bug or as a feature request?

Marco

Johan Compagner wrote:
> we should try to fall back to those better then (i thought this already
> happend)
> can you make a bug report for this with a small (unit) test case ?
> 
> johan
> 
> 
> On 4/24/06, Marco Geier <[EMAIL PROTECTED]> wrote:
> 
>>by default you need all values in all files!
>>
>>I had the same problem and adding the following code to application's
>>init did the trick:
>>
>>getResourceSettings().addStringResourceLoader(new
>>ApplicationStringResourceLoader(this) {
>>
>>  @Override
>>  public String loadStringResource(Class clazz, String key, Locale
>>locale, String style) {
>>return super.loadStringResource(clazz, key, locale, null);
>>  }
>>
>>});
>>
>>getResourceSettings().addStringResourceLoader(new
>>ApplicationStringResourceLoader(this) {
>>
>>  @Override
>>  public String loadStringResource(Class clazz, String key, Locale
>>locale, String style) {
>>return super.loadStringResource(clazz, key, null, locale);
>>  }
>>
>>});
>>
>>getResourceSettings().addStringResourceLoader(new
>>ApplicationStringResourceLoader(this) {
>>
>>  @Override
>>  public String loadStringResource(Class clazz, String key, Locale
>>locale, String style) {
>>return super.loadStringResource(clazz, key, null, null);
>>  }
>>
>>});
>>
>>
>>Please wicket-dev's tell us if there is a cleaner way...
>>
>>Marco
>>
>>
>>Ari Suutari wrote:
>>
>>>Hi,
>>>
>>>If I have following property files for my application:
>>>
>>>1) Application_myskin_fi.properties
>>>message1=A
>>>2) Application_myskin.properties
>>>message2=
>>>3) Application.properties
>>>message3=CCC
>>>
>>>If I have three messages above, must
>>>I put values for these keys for each property file, or will wicket
>>>search files 2 and 3 even file 1 exists, ie. if i call
>>>Component.getString("message1")
>>>it is retrieved from file 1 but if I call Component.getString
>>
>>("message3")
>>
>>>is is correctly read from file 3.
>>>
>>>I cannot get this to work and I'm not sure where the problem is.
>>>
>>>   Ari S.
>>>
>>>
>>>
>>>---
>>>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
>>>
>>>
>>
>>--
>>___
>>
>>Dipl.-Ing. Marco Geier
>>EyeTea GmbH
>>Germany
>>phone   +49 (0)721 662464-0
>>fax +49 (0)721 662464-1
>>mobile  +49 (0)177 6579590
>>[EMAIL PROTECTED]
>>
>>
>>---
>>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
>>
> 
> 

-- 
___

Dipl.-Ing. Marco Geier
EyeTea GmbH
Germany
phone   +49 (0)721 662464-0
fax +49 (0)721 662464-1
mobile  +49 (0)177 6579590
[EMAIL PROTECTED]


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

Re: [Wicket-user] Changing Tree model

2006-04-24 Thread Eelco Hillenius
setOptimizeItemRemoval to false should do the trick. Or maybe just
manually removeChildren when you suspect something changed (e.g. by
registring a listener).

Eelco


On 4/24/06, Steve Knight <[EMAIL PROTECTED]> wrote:
> I am currently using the tree component to display hierarchical data, and
> now I'd like to have an Edit page that allows users to edit the data that is
> displayed in the tree.  So, after the user saves the changes the tree view
> is displayed again, and the changes should be reflected in the tree.
> Currently, it does not do this.  How should I go about implementing it?  Or
> am I missing something obvious?
>
> Thanks.
>
> Steve
>


---
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&kid0709&bid&3057&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Changing Tree model

2006-04-24 Thread Steve Knight
I am currently using the tree component to display hierarchical data, and now I'd like to have an Edit page that allows users to edit the data that is displayed in the tree.  So, after the user saves the changes the tree view is displayed again, and the changes should be reflected in the tree.  Currently, it does not do this.  How should I go about implementing it?  Or am I missing something obvious?
Thanks.Steve


Re: [Wicket-user] Question about localizing strings with .properties files

2006-04-24 Thread Johan Compagner
we should try to fall back to those better then (i thought this already happend)can you make a bug report for this with a small (unit) test case ?johanOn 4/24/06, 
Marco Geier <[EMAIL PROTECTED]> wrote:
by default you need all values in all files!I had the same problem and adding the following code to application'sinit did the trick:getResourceSettings().addStringResourceLoader(newApplicationStringResourceLoader(this) {
  @Override  public String loadStringResource(Class clazz, String key, Localelocale, String style) {return super.loadStringResource(clazz, key, locale, null);  }});
getResourceSettings().addStringResourceLoader(newApplicationStringResourceLoader(this) {  @Override  public String loadStringResource(Class clazz, String key, Localelocale, String style) {return 
super.loadStringResource(clazz, key, null, locale);  }});getResourceSettings().addStringResourceLoader(newApplicationStringResourceLoader(this) {  @Override  public String loadStringResource(Class clazz, String key, Locale
locale, String style) {return super.loadStringResource(clazz, key, null, null);  }});Please wicket-dev's tell us if there is a cleaner way...MarcoAri Suutari wrote:
> Hi,>> If I have following property files for my application:>> 1) Application_myskin_fi.properties> message1=A> 2) Application_myskin.properties> message2=
> 3) Application.properties> message3=CCC>> If I have three messages above, must> I put values for these keys for each property file, or will wicket> search files 2 and 3 even file 1 exists, ie. if i call
> Component.getString("message1")> it is retrieved from file 1 but if I call Component.getString("message3")> is is correctly read from file 3.>> I cannot get this to work and I'm not sure where the problem is.
>>Ari S. ---> 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>>--___Dipl.-Ing. Marco GeierEyeTea GmbHGermanyphone   +49 (0)721 662464-0fax +49 (0)721 662464-1
mobile  +49 (0)177 6579590[EMAIL PROTECTED]---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 easierDownload 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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about localizing strings with .properties files

2006-04-24 Thread Marco Geier
by default you need all values in all files!

I had the same problem and adding the following code to application's
init did the trick:

getResourceSettings().addStringResourceLoader(new
ApplicationStringResourceLoader(this) {

  @Override
  public String loadStringResource(Class clazz, String key, Locale
locale, String style) {
return super.loadStringResource(clazz, key, locale, null);
  }

});

getResourceSettings().addStringResourceLoader(new
ApplicationStringResourceLoader(this) {

  @Override
  public String loadStringResource(Class clazz, String key, Locale
locale, String style) {
return super.loadStringResource(clazz, key, null, locale);
  }

});

getResourceSettings().addStringResourceLoader(new
ApplicationStringResourceLoader(this) {

  @Override
  public String loadStringResource(Class clazz, String key, Locale
locale, String style) {
return super.loadStringResource(clazz, key, null, null);
  }

});


Please wicket-dev's tell us if there is a cleaner way...

Marco


Ari Suutari wrote:
> Hi,
> 
> If I have following property files for my application:
> 
> 1) Application_myskin_fi.properties
> message1=A
> 2) Application_myskin.properties
> message2=
> 3) Application.properties
> message3=CCC
> 
> If I have three messages above, must
> I put values for these keys for each property file, or will wicket
> search files 2 and 3 even file 1 exists, ie. if i call
> Component.getString("message1")
> it is retrieved from file 1 but if I call Component.getString("message3")
> is is correctly read from file 3.
> 
> I cannot get this to work and I'm not sure where the problem is.
> 
>Ari S.
> 
> 
> 
> ---
> 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
> 
> 

-- 
___

Dipl.-Ing. Marco Geier
EyeTea GmbH
Germany
phone   +49 (0)721 662464-0
fax +49 (0)721 662464-1
mobile  +49 (0)177 6579590
[EMAIL PROTECTED]


---
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] Re: Licensing issues for including Wicket JARs

2006-04-24 Thread Eelco Hillenius
So it would be much quicker for you Geertjan to just update to 1.2 :)
No worries, we'll help you through it. It's only a couple of classes,
no?

Eelco


On 4/24/06, Petr Pisl <[EMAIL PROTECTED]> wrote:
> It depends, how we can distribute the module. In the case that it will
> be distributed with NetBeans (as you wrote), we need permission from
> pack to be part of NetBeans and then fill a leagal issue for lawyers.
> This issue should be entered with Mike  Boyer, who covers all legal
> issues. Usually it takes 2 - 3 month to be the legal issue solved.
>
> Petr
>
> >
> >
> > If we were to include the Wicket JARs (wicket-1.1.jar,
> > commons-logging-1.0.4, log4j-1.2.11.jar, ognl-2.6.7.jar) in a NetBeans
> > module (possibly to de distributed/packaged with NetBeans at some
> > future date) would we have licensing issues to deal with in relation
> > to Wicket? (I suspect that the latter 3 are not needed, but I'm not
> > sure.) What procedures would we need to go through?
> >
> > Geertjan
> >
>
>
>
> ---
> 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
>


---
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&kid0709&bid&3057&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Question about localizing strings with .properties files

2006-04-24 Thread Ari Suutari

Hi,

If I have following property files for my application:

1) Application_myskin_fi.properties
message1=A
2) Application_myskin.properties
message2=
3) Application.properties
message3=CCC

If I have three messages above, must
I put values for these keys for each property file, or will wicket
search files 2 and 3 even file 1 exists, ie. if i call 
Component.getString("message1")
it is retrieved from file 1 but if I call Component.getString("message3")
is is correctly read from file 3.

I cannot get this to work and I'm not sure where the problem is.

   Ari S.



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


[Wicket-user] Re: Licensing issues for including Wicket JARs

2006-04-24 Thread Petr Pisl
It depends, how we can distribute the module. In the case that it will 
be distributed with NetBeans (as you wrote), we need permission from 
pack to be part of NetBeans and then fill a leagal issue for lawyers. 
This issue should be entered with Mike  Boyer, who covers all legal 
issues. Usually it takes 2 - 3 month to be the legal issue solved.


Petr




If we were to include the Wicket JARs (wicket-1.1.jar, 
commons-logging-1.0.4, log4j-1.2.11.jar, ognl-2.6.7.jar) in a NetBeans 
module (possibly to de distributed/packaged with NetBeans at some 
future date) would we have licensing issues to deal with in relation 
to Wicket? (I suspect that the latter 3 are not needed, but I'm not 
sure.) What procedures would we need to go through?


Geertjan





---
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] image ref within CSS

2006-04-24 Thread Eelco Hillenius
Pfffew. Glad I didn't say something stupid this time ;)

Eelco

On 4/24/06, karthik Guru <[EMAIL PROTECTED]> wrote:
>
> yes worked..great!..my initializer that registers the gifs as a shared
> resource didn't run .I fixed that.
> thanks.
>
>
> On 4/24/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> >
>  On 4/24/06, karthik Guru <[EMAIL PROTECTED]> wrote:
> > I have a CSS that refers to an image -
> >
> > span hello{
> >   float:left;
> >   background:#DAE0D2 url(" test.gif") repeat-x bottom;
> > }
> >
> > If I were to package the panel as a component, the gif needs to be
> packaged
> > as well. Then the CSS reference to image -  url("test.gif")
> > cannot be hardcoded.
>
> Did you try registering test.gif as a shared resource? Or e.g. all
> gif's in that package using a regexp. There are more components that
> work like that: DataPicker, YUI slider/ Calendar, or tinymce, which
>  seem to work fine.
>
> Eelco
>
>
> ---
> 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?cmdlnk&kid0709&bid&3057&dat1642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
> --
>  -- karthik --


---
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&kid0709&bid&3057&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to identify the *redirect* request, i.e. 2nd request with REDIRECT_TO_BUFFER

2006-04-24 Thread Johan Compagner
a requestcycle is not made for redirect to buffer responses.On 4/24/06, Marco Geier <[EMAIL PROTECTED]
> wrote:Hi Johan,Johan Compagner wrote:> still why can't you do it on request?
> the first time a hibernate connection/transaction is get?> And then close that in the servlet filter?Agreed, that would be the cleanest way to do, but it may not always befeasible and would need a lot of code and rework for my project.
I was just looking for something simpler.Right now my code depends on my existing"WrapInUserTranactionServletFilter" and i wanted to optimize serverloadby just *not* applying this filter to the
"getFromBufferAfterRedirect" request.> Also you could do this in youre own RequestCycle and do the open/close in> the attach en detach.yep, i was misleaded because the URLs (for the event as well as the
redirectToBuffer) look quite similar.In factIEventProcessorStrategy.processEvents is just called when it is a realevent-request (i.e. the first one).So i subclass DefaultEventProcessorStrategy and start my transaction
there (only if requestTarget is instanceofListenerInterfaceRequestTarget or BookmarkablePageRequestTarget orPageRequestTarget, therefore also avoiding transactions forresource-requests).Committing the transaction is done in a subclass of
DefaultResponseStrategy.Just wondering what you meant by " do the open/close in the attach en detach."?Rgds,Marco> johan>>> On 4/24/06, Marco Geier <
[EMAIL PROTECTED]> wrote:>>>i'm using ejb3/hibernate, and the important part is not really the>>transaction but the entitymanager-context (i.e. the hibernate session)
>>wich is somehow bound to the transaction.The problem here is the handling of lazy loaded collections.If i don't eager-load (either by declaring them as eager or by
>>explicitly referencing while a have a transaction, e.g. from within a>>sessionbean) the collections that may be referenced from a model during>>rendering, hibernate will throw a "LazyInitializationException" in case
>>there is no active Transaction/Hibernate-session.Marco>>Igor Vaynberg wrote:>why not only open a transaction when a connection is asked for?
>>what persistence layer are you using?>>-Igor>On 4/23/06, Marco Geier <
[EMAIL PROTECTED]> wrote:>>I'd like to wrap all the event-handling and renderig stuff with atransaction.So one approach would be to define a (Servlet)Filter or modify some
requestcycle settings. But when i use REDIRECT_TO_BUFFER i just want towrap the first request (i.e. the processing and rendering part), but notthe second request that just returns the buffer and therefore abviously
doesn't need a transaction.>>>From just looking at the requested URL i can't really distinguish these>>>request, i.e
.:first (clicked) request:http://127.0.0.1/app?wicket:interface=:4:2::redirect request:   
http://127.0.0.1/app?wicket:interface=:4:4::Is there any hook or something within requestcycle to use for such abehaviour?(if not, imho, this would be a really usefull addition to the wicket
API, especially for people using wicket together with hibernate)Rgds,MarcoDipl.-Ing. Marco Geier
EyeTea GmbHGermanyphone   +49 (0)721 662464-0fax +49 (0)721 662464-1mobile  +49 (0)177 6579590
[EMAIL PROTECTED]---Using Tomcat but need to do more? Need to support web services,
security?>>Get stuff done quickly with pre-integrated technology to make your jobeasierDownload IBM WebSphere Application Server 
v.1.0.1 based on ApacheGeronimo>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user-->>___
Dipl.-Ing. Marco Geier>>EyeTea GmbH>>Germany>>phone   +49 (0)721 662464-0>>fax +49 (0)721 662464-1>>mobile  +49 (0)177 6579590>>
[EMAIL PROTECTED]>>--->>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--___Dipl.-Ing. Marco GeierEyeTea GmbHGermanyphone   +49 (0)721 662464-0fax +49 (0)721 662464-1
mobile  +49 (0)177 6579590[EMAIL PROTECTED]---Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-int

Re: [Wicket-user] , and

2006-04-24 Thread Juergen Donnerstag
we do have junit tests for that case. It must be something more
subtile. Could you create a junit test case or quickstart for that
please (and send it to me)

Juergen

On 4/24/06, Ari Suutari <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a Panel component that needs to add piece of javascript to  onload-attribute.
> So, I added a  to component's html and necessary
> javascript to component's onload tag. Works fine, javascript appears on final 
> page
> as expected.
>
> After that the component was split into two parts: BasePanel and 
> ExtendedPanel.
> After that, onload javascript from BasePanel appears on page, but javascript
> from ExtendPanel does not.
>
> Wicket version is 1.2-rc2.
>
>Ari S.
>
>
>
> ---
> 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
>


---
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&kid0709&bid&3057&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] image ref within CSS

2006-04-24 Thread karthik Guru
yes worked..great!..my initializer that registers the gifs as a shared resource didn't run .I fixed that. thanks.On 4/24/06, 
Eelco Hillenius <[EMAIL PROTECTED]> wrote:


On 4/24/06, karthik Guru <[EMAIL PROTECTED]> wrote:> I have a CSS that refers to an image -
>> span hello{>   float:left;>   background:#DAE0D2 url("
test.gif") repeat-x bottom;> }>> If I were to package the panel as a component, the gif needs to be packaged> as well. Then the CSS reference to image -  url("test.gif")> cannot be hardcoded.
Did you try registering test.gif as a shared resource? Or e.g. allgif's in that package using a regexp. There are more components thatwork like that: DataPicker, YUI slider/ Calendar, or tinymce, which


seem to work fine.Eelco---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?cmdlnk&kid0709&bid&3057&dat1642
___Wicket-user mailing listWicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user--  -- karthik -- 




Re: [Wicket-user] How to identify the *redirect* request, i.e. 2nd request with REDIRECT_TO_BUFFER

2006-04-24 Thread Marco Geier
Hi Johan,

Johan Compagner wrote:
> still why can't you do it on request?
> the first time a hibernate connection/transaction is get?
> And then close that in the servlet filter?

Agreed, that would be the cleanest way to do, but it may not always be
feasible and would need a lot of code and rework for my project.
I was just looking for something simpler.
Right now my code depends on my existing
"WrapInUserTranactionServletFilter" and i wanted to optimize server
loadby just *not* applying this filter to the
"getFromBufferAfterRedirect" request.

> Also you could do this in youre own RequestCycle and do the open/close in
> the attach en detach.

yep, i was misleaded because the URLs (for the event as well as the
redirectToBuffer) look quite similar.
In fact
IEventProcessorStrategy.processEvents is just called when it is a real
event-request (i.e. the first one).


So i subclass DefaultEventProcessorStrategy and start my transaction
there (only if requestTarget is instanceof
ListenerInterfaceRequestTarget or BookmarkablePageRequestTarget or
PageRequestTarget, therefore also avoiding transactions for
resource-requests).

Committing the transaction is done in a subclass of
DefaultResponseStrategy.

Just wondering what you meant by " do the open/close in
 the attach en detach."?


Rgds,

Marco


> johan
> 
> 
> On 4/24/06, Marco Geier <[EMAIL PROTECTED]> wrote:
> 
>>i'm using ejb3/hibernate, and the important part is not really the
>>transaction but the entitymanager-context (i.e. the hibernate session)
>>wich is somehow bound to the transaction.
>>
>>The problem here is the handling of lazy loaded collections.
>>
>>If i don't eager-load (either by declaring them as eager or by
>>explicitly referencing while a have a transaction, e.g. from within a
>>sessionbean) the collections that may be referenced from a model during
>>rendering, hibernate will throw a "LazyInitializationException" in case
>>there is no active Transaction/Hibernate-session.
>>
>>Marco
>>
>>
>>Igor Vaynberg wrote:
>>
>>>why not only open a transaction when a connection is asked for?
>>>
>>>what persistence layer are you using?
>>>
>>>-Igor
>>>
>>>
>>>On 4/23/06, Marco Geier <[EMAIL PROTECTED]> wrote:
>>>
>>>
I'd like to wrap all the event-handling and renderig stuff with a
transaction.
So one approach would be to define a (Servlet)Filter or modify some
requestcycle settings. But when i use REDIRECT_TO_BUFFER i just want to
wrap the first request (i.e. the processing and rendering part), but not
the second request that just returns the buffer and therefore abviously
doesn't need a transaction.

>>>
From just looking at the requested URL i can't really distinguish these
>>>
request, i.e.:

first (clicked) request:http://127.0.0.1/app?wicket:interface=:4:2::
redirect request:   http://127.0.0.1/app?wicket:interface=:4:4::

Is there any hook or something within requestcycle to use for such a
behaviour?
(if not, imho, this would be a really usefull addition to the wicket
API, especially for people using wicket together with hibernate)

Rgds,

Marco


Dipl.-Ing. Marco Geier
EyeTea GmbH
Germany
phone   +49 (0)721 662464-0
fax +49 (0)721 662464-1
mobile  +49 (0)177 6579590
[EMAIL PROTECTED]


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

>>>
>>>
>>--
>>___
>>
>>Dipl.-Ing. Marco Geier
>>EyeTea GmbH
>>Germany
>>phone   +49 (0)721 662464-0
>>fax +49 (0)721 662464-1
>>mobile  +49 (0)177 6579590
>>[EMAIL PROTECTED]
>>
>>
>>---
>>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
>>
> 
> 

-- 
___

Dipl.-Ing. Marco Geier
EyeTea GmbH
Germany
phone   +49 (0)721 662464-0
fax +49 (0)721 662464-1
mobile  +49 (0)177 6579590
[EMAIL PROTECTED]


---
Using Tomcat but need to do more? Need to support web services, security?
G

Re: [Wicket-user] image ref within CSS

2006-04-24 Thread Eelco Hillenius
On 4/24/06, karthik Guru <[EMAIL PROTECTED]> wrote:
> I have a CSS that refers to an image -
>
> span hello{
>   float:left;
>   background:#DAE0D2 url("test.gif") repeat-x bottom;
> }
>
> If I were to package the panel as a component, the gif needs to be packaged
> as well. Then the CSS reference to image -  url("test.gif")
> cannot be hardcoded.

Did you try registering test.gif as a shared resource? Or e.g. all
gif's in that package using a regexp. There are more components that
work like that: DataPicker, YUI slider/ Calendar, or tinymce, which
seem to work fine.

Eelco


---
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&kid0709&bid&3057&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] image ref within CSS

2006-04-24 Thread karthik Guru
I have a CSS that refers to an image - span hello{  float:left;  background:#DAE0D2 url("test.gif") repeat-x bottom;
}If I were to package the panel as a component, the gif needs to be packaged as well. Then the CSS reference

 to image -  





url("test.gif")cannot be hardcoded.So changed the css to span hello{  float:left;  background:#DAE0D2 url("${
test.gif}") repeat-x bottom;
  }Created wicket.extensions.util.resource.CssTemplate similar to _javascript_TemplateAdded factory methods to wicket.extensions.util.resource.TextTemplateHeaderContributor for creating CssTemplate.
Then supplied a map that gets the URL for the packagedreference (images)I did end up with  blah blah  when rendering. Is there a way of avoiding this (i mean get the variable intepolation done and refer to the resource/css instead)
 -- karthik -- 




Re: [Wicket-user] call for i18n contributions

2006-04-24 Thread Per Ejeklint

Sorry, forgot that. Yes, it's "sv".

/Per

20 apr 2006 kl. 19.26 skrev Eelco Hillenius:


Thanks. That's language code 'sv', right? (Application_sv.properties).

Eelco

On 4/20/06, Per Ejeklint <[EMAIL PROTECTED]> wrote:

Here is the quick Swedish translation (couldn't log in to sourceforge
right now)!

RequiredValidator=fältet '${label}' krävs.
TypeValidator='${input}' är ingen giltig ${type}.

NumberValidator.range=${input} måste vara mellan ${minimum} och $
{maximum}.
NumberValidator.minimum='${input}' måste vara större än ${minimum}.
NumberValidator.maximum='${input}' måste vara mindre än ${maximum}.

StringValidator.range='${input}' måste innehålla mellan ${minimum}
och ${maximum} tecken.
StringValidator.minimum='${input}' måste innehålla minst ${mimimum}
tecken.
StringValidator.maximum='${input}' får som mest innehålla ${maximum}
tecken.

DateValidator.range='${input}' måste vara mellan ${minimum} och $
{maximum}.
DateValidator.minimum='${input}' måste vara senare än ${minimum}.
DateValidator.maximum='${input}' måste vara tidigare än ${maximum}.

PatternValidator='${input}' matchar inte mönstret '${pattern}'
EmailAddressPatternValidator='${input}' är ingen giltig epostadress.

EqualInputValidator='${input0}' från ${label0} och '${input1}' från $
{label1} måste vara lika.

null=Välj en
nullValid=

Cheers!

/Per

17 apr 2006 kl. 09.39 skrev Eelco Hillenius:


Hi all,

As you might have noticed, we implemented some default validator
messages (Application.properties). We currently have that in  
languages

English (default), Chinese (zh_TW), German (de) and Dutch (nl).

It would be great if your language is not in that list, you could
contribute it. At the end of this email, I  included the English
contents. Please contribute by either responding to this email, or -
the preferred way - to add your file to
http://sourceforge.net/tracker/index.php?
func=detail&aid=1471603&group_id=119783&atid=684977

Thanks!

Eelco





RequiredValidator=field '${label}' is required.
TypeValidator='${input}' is not a valid ${type}.

NumberValidator.range=${input} must be between ${minimum} and $
{maximum}.
NumberValidator.minimum='${input}' must be greater than ${minimum}.
NumberValidator.maximum='${input}' must be smaller than ${maximum}.

StringValidator.range='${input}' must be between ${minimum} and
${maximum} chars.
StringValidator.minimum='${input}' must be at least ${mimimum}  
chars.

StringValidator.maximum='${input}' must be at most ${maximum} chars.

DateValidator.range='${input}' must be between ${minimum} and $
{maximum}.
DateValidator.minimum='${input}' must be greater than ${minimum}.
DateValidator.maximum='${input}' must be smaller than ${maximum}.

PatternValidator='${input}' does not match pattern '${pattern}'
EmailAddressPatternValidator='${input}' is not a valid email  
address.


EqualInputValidator='${input0}' from ${label0} and '${input1}' from
${label1} must be equal.

null=Choose One
nullValid=


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the
live webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
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?cmdlnk&kid0709&bid&3057&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
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&kid0709&bid&3057&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
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&kid0709&bid&3057&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.

Re: [Wicket-user] proposal: internationalization project

2006-04-24 Thread Eelco Hillenius
On 4/23/06, Iman Rahmatizadeh <[EMAIL PROTECTED]> wrote:
> I'm ready for Persian/Farsi (fa_IR).
> Just asking, would it be a good idea to let wicket automatically set the
> page direction (ltr or rtl) based on the locale ?

I have no experience with that, so I wouldn't know. Which is exactly
why we should startup such a project :)

Eelco


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


---
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&kid0709&bid&3057&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] , and

2006-04-24 Thread Ari Suutari

Hi,

I have a Panel component that needs to add piece of javascript to  to component's html and necessary
javascript to component's onload tag. Works fine, javascript appears on final 
page
as expected.

After that the component was split into two parts: BasePanel and ExtendedPanel.
After that, onload javascript from BasePanel appears on page, but javascript
from ExtendPanel does not.

Wicket version is 1.2-rc2.

   Ari S.



---
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] ChoiceRenderer toString()

2006-04-24 Thread Johan Compagner
removed.On 4/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
ChoiceRenderer#getDisplayValue() uses toString() on the display value before returning it (line 129).This is no longer needed since AbstractChoice is using converters to produce a string representation (
http://sourceforge.net/mailarchive/message.php?msg_id=14511656).Couldn't this toString() be removed?Of course you can use a custom IChoiceRenderer (this is what I'm currently doing) but for newcomers it would be easier if Converters were always used.
Sven---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 Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to identify the *redirect* request, i.e. 2nd request with REDIRECT_TO_BUFFER

2006-04-24 Thread Johan Compagner
still why can't you do it on request?the first time a hibernate connection/transaction is get?And then close that in the servlet filter?Also you could do this in youre own RequestCycle and do the open/close in the attach en detach.
johanOn 4/24/06, Marco Geier <[EMAIL PROTECTED]> wrote:
i'm using ejb3/hibernate, and the important part is not really thetransaction but the entitymanager-context (i.e. the hibernate session)wich is somehow bound to the transaction.The problem here is the handling of lazy loaded collections.
If i don't eager-load (either by declaring them as eager or byexplicitly referencing while a have a transaction, e.g. from within asessionbean) the collections that may be referenced from a model during
rendering, hibernate will throw a "LazyInitializationException" in casethere is no active Transaction/Hibernate-session.MarcoIgor Vaynberg wrote:> why not only open a transaction when a connection is asked for?
>> what persistence layer are you using?>> -Igor>>> On 4/23/06, Marco Geier <[EMAIL PROTECTED]> wrote:>>>I'd like to wrap all the event-handling and renderig stuff with a
>>transaction.>>So one approach would be to define a (Servlet)Filter or modify some>>requestcycle settings. But when i use REDIRECT_TO_BUFFER i just want to>>wrap the first request (
i.e. the processing and rendering part), but not>>the second request that just returns the buffer and therefore abviously>>doesn't need a transaction.From just looking at the requested URL i can't really distinguish these
>>request, i.e.:first (clicked) request:http://127.0.0.1/app?wicket:interface=:4:2::>>redirect request:   
http://127.0.0.1/app?wicket:interface=:4:4::Is there any hook or something within requestcycle to use for such a>>behaviour?>>(if not, imho, this would be a really usefull addition to the wicket
>>API, especially for people using wicket together with hibernate)Rgds,Marco>>Dipl.-Ing. Marco Geier>>EyeTea GmbH>>Germany
>>phone   +49 (0)721 662464-0>>fax +49 (0)721 662464-1>>mobile  +49 (0)177 6579590>>[EMAIL PROTECTED]>>---
>>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--___Dipl.-Ing. Marco GeierEyeTea GmbHGermanyphone   +49 (0)721 662464-0fax +49 (0)721 662464-1
mobile  +49 (0)177 6579590[EMAIL PROTECTED]---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 easierDownload 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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] components javadoc

2006-04-24 Thread karthik Guru
A small recommendation/request wrt built-in components javadoc. I think the components that ship with wicket/wicket-extensions need to have the associated template HTML text copied over as a part of javadoc. If the 'onComponentTag' adds more styles, even that needs to be specified in the javadoc. Otherwise its difficult to know the styles that are being specified by the component on the HTML elements (unless ofcourse you look up source).
 -- karthik -- 


Re: [Wicket-user] How to identify the *redirect* request, i.e. 2nd request with REDIRECT_TO_BUFFER

2006-04-24 Thread Marco Geier
i'm using ejb3/hibernate, and the important part is not really the
transaction but the entitymanager-context (i.e. the hibernate session)
wich is somehow bound to the transaction.

The problem here is the handling of lazy loaded collections.

If i don't eager-load (either by declaring them as eager or by
explicitly referencing while a have a transaction, e.g. from within a
sessionbean) the collections that may be referenced from a model during
rendering, hibernate will throw a "LazyInitializationException" in case
there is no active Transaction/Hibernate-session.

Marco


Igor Vaynberg wrote:
> why not only open a transaction when a connection is asked for?
> 
> what persistence layer are you using?
> 
> -Igor
> 
> 
> On 4/23/06, Marco Geier <[EMAIL PROTECTED]> wrote:
> 
>>I'd like to wrap all the event-handling and renderig stuff with a
>>transaction.
>>So one approach would be to define a (Servlet)Filter or modify some
>>requestcycle settings. But when i use REDIRECT_TO_BUFFER i just want to
>>wrap the first request (i.e. the processing and rendering part), but not
>>the second request that just returns the buffer and therefore abviously
>>doesn't need a transaction.
>>
>>From just looking at the requested URL i can't really distinguish these
>>request, i.e.:
>>
>>first (clicked) request:http://127.0.0.1/app?wicket:interface=:4:2::
>>redirect request:   http://127.0.0.1/app?wicket:interface=:4:4::
>>
>>Is there any hook or something within requestcycle to use for such a
>>behaviour?
>>(if not, imho, this would be a really usefull addition to the wicket
>>API, especially for people using wicket together with hibernate)
>>
>>Rgds,
>>
>>Marco
>>
>>
>>Dipl.-Ing. Marco Geier
>>EyeTea GmbH
>>Germany
>>phone   +49 (0)721 662464-0
>>fax +49 (0)721 662464-1
>>mobile  +49 (0)177 6579590
>>[EMAIL PROTECTED]
>>
>>
>>---
>>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
>>
> 
> 

-- 
___

Dipl.-Ing. Marco Geier
EyeTea GmbH
Germany
phone   +49 (0)721 662464-0
fax +49 (0)721 662464-1
mobile  +49 (0)177 6579590
[EMAIL PROTECTED]


---
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] proposal: internationalization project

2006-04-24 Thread flemming.boller
I can contribute to the danish translations, no problemo.



/Flemming


---
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&kid0709&bid&3057&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user