Re: Page serialization and reloading don't get on

2008-02-19 Thread Erik van Oosten

You could throw an Error. Not very nice, but at least you'll notice.

   Erik.


Carlos Pita wrote:

... That said, this will only show error log entries, because of the catch
in RequestCycle:
  
I would like to see an error page instead, errors of this kind end up

showing themselves as obscure page expiration issues that are hard to
trace if you don't know where to look.

Regards
-Carlos
  



--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[jira] Created: (WICKET-1355) Autocomplete window has wrong position in scrolled context

2008-02-18 Thread Erik van Oosten (JIRA)
Autocomplete window has wrong position in scrolled context
--

 Key: WICKET-1355
 URL: https://issues.apache.org/jira/browse/WICKET-1355
 Project: Wicket
  Issue Type: Bug
  Components: wicket-extensions
Affects Versions: 1.3.1
Reporter: Erik van Oosten
 Fix For: 1.3.2
 Attachments: wicket-autocomplete.js

When the autocompleted field is located in a scrolled div, the drop-down window 
is positioned too far down.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (WICKET-1355) Autocomplete window has wrong position in scrolled context

2008-02-18 Thread Erik van Oosten (JIRA)

 [ 
https://issues.apache.org/jira/browse/WICKET-1355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Erik van Oosten updated WICKET-1355:


Attachment: wicket-autocomplete.js

A fix for the problem.

 Autocomplete window has wrong position in scrolled context
 --

 Key: WICKET-1355
 URL: https://issues.apache.org/jira/browse/WICKET-1355
 Project: Wicket
  Issue Type: Bug
  Components: wicket-extensions
Affects Versions: 1.3.1
Reporter: Erik van Oosten
 Fix For: 1.3.2

 Attachments: wicket-autocomplete.js


 When the autocompleted field is located in a scrolled div, the drop-down 
 window is positioned too far down.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (WICKET-1355) Autocomplete window has wrong position in scrolled context

2008-02-18 Thread Erik van Oosten (JIRA)

[ 
https://issues.apache.org/jira/browse/WICKET-1355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12569925#action_12569925
 ] 

Erik van Oosten commented on WICKET-1355:
-

Attached code is not yet correct.

 Autocomplete window has wrong position in scrolled context
 --

 Key: WICKET-1355
 URL: https://issues.apache.org/jira/browse/WICKET-1355
 Project: Wicket
  Issue Type: Bug
  Components: wicket-extensions
Affects Versions: 1.3.1
Reporter: Erik van Oosten
 Fix For: 1.3.2

 Attachments: wicket-autocomplete.js


 When the autocompleted field is located in a scrolled div, the drop-down 
 window is positioned too far down.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



Re: Switching locales with the same link

2008-02-13 Thread Erik van Oosten

Erik van Oosten wrote:

Indeed, that's what I did too.

Hmm, but the rest was crap I now see.
Anyway, glad it got you on the right track.

   Erik.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Switching locales with the same link

2008-02-13 Thread Erik van Oosten

Indeed, that's what I did too.

Martijn, mt is Maltese, now that's is something you don't see often in 
the Netherlands :)


   Erik.



Sebastiaan van Erk wrote:

Like in the code given, you can just use :

HomePage.this.getString(header.versionLanguage)

in the anonymous inner class instead of using the trick you mention. 
The reference of the page is *already* passed to the anonymous inner 
class (by java itself, since anonymous inner classes are not and 
cannot be static), now you are actually causing the reference to be 
stored twice.


Regards,
Sebastiaan








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: New tooltip component I have created

2008-02-10 Thread Erik van Oosten

Nice!

You can request commit access to wicket-stuff on this list. You'll need 
a sourceforge account.


Regards,
Erik.


richardwilko wrote:

Hi,

Thanks to the London wicket user group that I attended the other day I have
created a wicket behaviour to use the prototip javascript library
(http://www.nickstakenburg.com/projects/prototip/).

I have the code and a description of how to use it hosted on my blog here:
http://www.richard-wilkinson.co.uk/2008/02/09/wicket-prototip-behaviour/

Any comments (or bugfixes) would be welcome.

If people are interested in this I would rather host this somewhere like
wicket stuff, how do I go about getting it on there?

Thanks,

Richard Wilkinson
  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Short Design Question

2008-02-05 Thread Erik van Oosten
Actually, I currently have a client who thinks that good looking URLs
are very important.

Then again, he is no average joe either.

Erik.


Martijn Dashorst wrote:
 The average joe doesn't look at the URL... only developers do
 Martijn

   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: nice URLs (was: Short Design Question)

2008-02-05 Thread Erik van Oosten
Hi Johan,

I agree. Still, bookmarkability (also a requested feature) is exactly
the reason for going along with having nice URLs for every page, even
after an AJAX update. I have a prototype that uses Realysimplehistory to
allow a page to be bookmarkable after an AJAX update. Not sure yet how
general it can be made, nor how it relates to the
HybridURLCodingStrategies. Next month I'll try to extend it a bit more.

Anyways, the fact remains that nice URLs can be important for some
Wicket projects, despite what average Joes may look at.

Regards,
Erik.


Johan Compagner wrote:
 the question is what about the users of that client.
 I think nice looking urls is greatly exaggerated normal people look at the
 browser contents instead of the url
 How many times do i look at the url when i am browsing websites. I think
 never.

 Bookmarkable is another issue that should work for example jump to a
 specific artical or forum topic.

 johan



 On Feb 5, 2008 10:10 AM, Erik van Oosten [EMAIL PROTECTED] wrote:

   
 Actually, I currently have a client who thinks that good looking URLs
 are very important.

 Then again, he is no average joe either.

Erik.


 Martijn Dashorst wrote:
 
 The average joe doesn't look at the URL... only developers do
 Martijn

   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: nice URLs

2008-02-05 Thread Erik van Oosten
 Wicket doesn't allow you to reflect fine grained changes to page state
 in URL. That's a design decision. The page state gets too complicated
 to be encoded in URL. 
Yeah, well that is also not really possible. Only the application has
enough knowledge of the application to put stuff in the URL. Wicket can
never do this, but it can sure well facilitate it. It may be hard, but I
do think it is possible.

For bookmarkable ajax URLs: my goal is to add some kind of call-back at
the page-level. The call-back is then responsible for acting upon the
fragment identifier (whatever is behind the #).
There are many pitfalls with this approach so only time will teach us
how/if it will eventually work.

Anyways, I have no time for it at this moment...

Regards,
Erik.



Matej Knopp wrote:
 If you use HybridUrlCodingStrategy the page is bookmarkable after ajax
 request. It can be recreated, but without the changes that ajax
 request made to it. But this is not just ajax request, you have same
 problems when using regular request. Wicket doesn't allow you to
 reflect fine grained changes to page state in URL. That's a design
 decision. The page state gets too complicated to be encoded in URL.

 -Matej

 On Feb 5, 2008 12:25 PM, Gabor Szokoli [EMAIL PROTECTED] wrote:
   
 On 2/5/08, Erik van Oosten [EMAIL PROTECTED] wrote:
 
 Hi Johan,

 Anyways, the fact remains that nice URLs can be important for some
 Wicket projects, despite what average Joes may look at.
   
 A big me too to that!

 We have a specific (and I beleive wise) requirement for bookmarkable,
 human readable URLs representing the user interaction state. REST if
 you will :-)

 We are just now looking into a full AJAX redesign of the application
 (not all our requirements are wise :-) ), reading up on the required
 trickery like this:
 http://ajaxpatterns.org/Unique_URLs


 Gabor Szokoli


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 



   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Move WICKET-1307 to 1.3.1?

2008-01-31 Thread Erik van Oosten
Hello,

Could WICKET-1307 be moved to release 1.3.1?

Regards,
Erik.

--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/


Re: Pagemap null is still locked by blah exception, help!! why does wicket have to lock the pagemap

2008-01-31 Thread Erik van Oosten
Ah, the wonders of Weblogic.

My first Wicket app runs on Weblogic. A big problem was that the
datasource connection fell away after some time of inactivity. We solved
it by letting Weblogic run a test query every x minutes. We also ran
into very long lasting queries. Where database optimizations didn't
help, we solved that by simply not allowing complex queries.

Anyway, you should never let the pagelock expire. Wicket 1.2.* blows up
on you. I guess this is still the case.

Regards,
 Erik.


Weaver, Scott wrote:
 I have just started encountering this issue with one of my Wicket apps.
 Seems to have cropped up now that I am using the 1.3 rc1 (will be moving
 to release this Friday), but this could wholly be coincidence.  What I
 have noticed is, for me at least, this only happens on my Weblogic
 servers (9.2) and not in my local dev environment running Jetty.  The
 Weblogic logs reveal that after manually stopping a page load or after a
 page timeout, threads go into a [STUCK] status and, I am theorizing,
 locking the pagemap indefinitely.

 Thanks,
 -scott

   
 -Original Message-
 From: cemeterygate [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, January 29, 2008 10:51 AM
 To: users@wicket.apache.org
 Subject: Re: Pagemap null is still locked by blah exception, help!!
 
 why
   
 does wicket have to lock the pagemap


 that's right, i am screwed anyway if request takes too long, but from
 
 the
   
 browser user decide to give up current search by click the stop button
 
 and
   
 fire a new search. Since the pagemap is still locked by previous
 
 request,
   
 the second request will have to wait. sounds like i will end up handle
 this
 senario by pulling. is it possible to have a page that's not single
 
 thread
   
 model? Can we have two interface, such as SingleThreadPage, and
 ConcurrentThreadPage?


 igor.vaynberg wrote:
 
 yeah, if it takes a while the browser will timeout and you are
   
 screwed
   
 anyways...

 what do you mean they cant start a new search? you mean they no
   
 longer
   
 for the results of the currently running search and just press the
 search button again?

 if they would open a new tab with the search page, and you had
 automultiwindowsupport option enabled that new opened page would be
 created in a new pagemap, and so you wouldnt have a locking
   
 problem...
   
 -igor


 On Jan 28, 2008 2:51 PM, Johan Compagner [EMAIL PROTECTED]
   
 wrote:
   
 shared resources are not synced thats one way of going round it.

 the other way is as igor describes. do the search in a seperate
 
 thread.
   
 If it really takes that long then you do know that browsers also
 
 can
   
 just
 
 time out after they don't get anything for a while?

 If it really takes that long then you should build a page where
 
 people
   
 can
 fire searches to the system
 and the page is just displayig the searches they did and then if
 
 the
   
 search
 is finished that page can bring them to the result

 johan




 On Jan 28, 2008 11:46 PM, cemeterygate [EMAIL PROTECTED]
 
 wrote:
   
 that's nice to have but is there a way to work around this issue?
   
 Our
   
 application for customer service and they perform a lot search on
   
 a
   
 huge
 
 database, in some cases, customer service would like to start new
   
 search.
 
 Since wicket is locked by page path, there is no way for CSR to
   
 start
   
 a
 
 new
 request until previous one is finished.


 igor.vaynberg wrote:
   
 the pages are locked on the pagemap. so you cannot have two
 
 concurrent
 
 requests from the same user to the same pagemap. this is so
 
 when
   
 you
 
 are coding your pages you can use the much simpler
 
 single-threaded
   
 model.

 every have fields in your servlet implementation? those have to
 
 be
   
 synchronized or you will run into threading issues. this is the
 
 stuff
 
 we make sure you dont have to worry about.

 the trade off is that if you have long running requests you
 
 should
   
 probably process them in a different thread and let the UI poll
 
 for
   
 status.

 -igor


 On Jan 28, 2008 2:08 PM, cemeterygate [EMAIL PROTECTED]
 
 wrote:
 
 So I developed my first wicket application and I kept getting
   
 exception
 
 below
 as soon as i point my application to production database.

 Can someone tell me why wicket can't handle concurrent
   
 request?
   
 to replicate this issue, i have a page with a form component
   
 and
   
 regular
   
 submit button.
 on the onSubmit method,
  protected void onSubmit() {
 try {
 Thread.sleep(3 * 60 * 1000);
 } catch (InterruptedException e) {
 }
  }

 i put the thread into sleep for 3 

Re: [discuss] Mailing list usage...

2008-01-29 Thread Erik van Oosten

Scott Swank wrote:

If the user groups are split onto a separate thread I would like to
see meeting announcements cross-posted to this list so that it's as
easy as possible for new users to find the meetings.
  


That kinds of defeats the purpose. So not splitting would be better IMHO.

Erik.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: client side validation

2008-01-27 Thread Erik van Oosten
That doesn't work.

Sometimes you want to add multiple behaviors to the same event. Wicket
doesn't support that.

Erik.

James Carman wrote:
 So, create an IComponentInstantiationListener that looks for Forms and
 adds the behavior to them.

   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Label is driving me a *little* crazy

2008-01-26 Thread Erik van Oosten
Try removing the id attributes from the markup. Wicket likes to generate 
this for itself.
You'll also need to add a FormLabel (or something named like that) to 
the for element.


Regards,
Erik.


Andy Czerwonka wrote:

I found this thread:

http://www.mail-archive.com/users@wicket.apache.org/msg04400.html

I have written similair code, but I'm getting an exception.  Clearly my 
markup is wrong, but I can't for the life of me unnderstand why?  When I 
inspect the code, the page contains the right things.  I'm a wicket newbie 
to be sure, so apologies if it's a silly question.


Here's the java snippet (similair to the java on the above thread)

private void buildForm() {

RequiredTextField nameTextField = new RequiredTextField(name);

nameTextField.setLabel(new Model(Business Name));

add(nameTextField);

addFieldLabel(this, nameTextField);

add(new Button(saveButton));

}


protected FormComponentLabel addFieldLabel(final MarkupContainer container, 
final FormComponent formComponent) {


SimpleFormComponentLabel label = new 
SimpleFormComponentLabel(formComponent.getId() + Label,


formComponent);

container.add(label);

return label;

}

The markup is as follows:

form wicket:id=newListingForm action=save

fieldset

label for=name wicket:id=nameLabel 
id=nameLabel[nameLabel]/label


input wicket:id=name id=name type=text size=50 /

input type=submit wicket:id=saveButton value=save /

/fieldset

/form

The error looks like:

1. [MarkupContainer [Component id = nameLabel, page = 
ca.arcticpenguin.mff.NewListingPage, path = 
0:newListingForm:nameLabel.SimpleFormComponentLabel, isVisible = true, 
isVersioned = false]]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: openlayers

2008-01-25 Thread Erik van Oosten
http://openlayers.org/

My summary:
A javascript library to combine spatial information from different
sources on one page.


Nick Heudecker wrote:
 What is openlayers?

   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PageParameters mess up my strings

2008-01-23 Thread Erik van Oosten

Hi Ulf,

You use non iso8859-1 characters in the Java file. That is fine as long 
as you are sure you safe the file in UTF-8.


Nowadays you should be allowed to use UTF-8 in URLs. But don't count on 
it too much yet. Edvin's solution looks safer.


However, since you said that the problem only occurs with 
PageParameters, you should also check the encoding of the markup files. 
Make sure this is UTF-8 too.


Then again, it might just be a bug in PageParameters, or worse, in the 
servlet container.


Regards,
Erik.


palun wrote:

(I´m sorry if this is the wrong forum for this kind of question. If so,
please direct me.)

Here´s my problem:
I set a page parameter for the page MyPage like this:

PageParameters params = new PageParameters();
params.put(str, åäö);
setResponsePage(MyPage.class, params);

I retrieve the value on MyPage like this:

public BYNPage(PageParameters p) {
add(new Label(test,  + p.getString(str)));
}

div wicket:id=test/

But on MyPage the string is displayed as åäö !!? 

Any idea why? 
(The problem seems to occur only when sending strings via PageParameters.) 

/ulf 



  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Localization

2008-01-23 Thread Erik van Oosten

You can call:
getSession().setLocale(new Locale(en, US))

In the Java javadocs 
(http://java.sun.com/j2se/1.4.2/docs/api/java/util/Locale.html) you find 
references to language and country codes. Language code ta means Tamil 
so that is probably not what you want. Country Taiwan is represented by 
county code TW.


Switching css is fairly easy. Put this in the header:
wicket:linklink rel=stylesheet type=text/css 
href=style.css/link/wicket:link

and move style.css to the same folder as HomePage.html.

Now if you want to add another locale for the stylesheet, you just add a 
file called style_[language code].css. No other changes needed.


Regards,
Erik.


tbt wrote:

Hi

I have a html page called HomePage.html

html
head
link href=Resources/css/style.css rel=stylesheet type=text/css /
/head
body
English 
Taiwanese 


wicket:message key=option_id /


/body
/html

and two property files called HomePage.properties and
HomePage_ta.properties.

These files hold the values which should be replaced inside the
wicket:message tag.
How can I switch between these property files once the user selects a
particular language inside my HomePage .java class. I also need to change
the css file according to each language.

eg:- If Taiwanese is selected it should look like link
href=Resources/css/style_ta.css rel=stylesheet type=text/css /

Thanks
  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Localization

2008-01-23 Thread Erik van Oosten

Yes, this is possible.

But actually the previous solution is usally sufficient. You can easily 
define a page that is extended by all other pages. In the base page you 
can include the stylesheet as before and all other pages will get it 
too. (See the wiki for component inheritance.)


But anyway, here is a non tested approach:
- move the style.css (and variations) somewhere on your classpath. For 
example in the package that contains the java file JustSomeClass.java.

- remove the wicket:link from the markup file
- give the stylesheet link a wicket:id, eg.:
 link rel=stylesheet type=text/css href=style.css 
wicket:id=abc/link

- in the code do something like:
 add(new StyleSheetReference(abc, JustSomeClass.class, style.css))

Regards,
Erik.

tbt wrote:

Hi,

I like to have my css file('style.css') in a seperate folder instead of
having it in the same folder as HomePage.java because multiple web pages are
using the same classes in the css file. Is it possible to have both css
files(style.css and style_tw.css) in a seperate folder. This applies for
only css files and not property files which I would be happy to keep in the
same folder as the html and java files.

Thanks


Erik van Oosten-3 wrote:
  

You can call:
 getSession().setLocale(new Locale(en, US))

In the Java javadocs 
(http://java.sun.com/j2se/1.4.2/docs/api/java/util/Locale.html) you find 
references to language and country codes. Language code ta means Tamil 
so that is probably not what you want. Country Taiwan is represented by 
county code TW.


Switching css is fairly easy. Put this in the header:
wicket:linklink rel=stylesheet type=text/css 
href=style.css/link/wicket:link

and move style.css to the same folder as HomePage.html.

Now if you want to add another locale for the stylesheet, you just add a 
file called style_[language code].css. No other changes needed.


Regards,
 Erik.


tbt wrote:


Hi

I have a html page called HomePage.html

html
head
link href=Resources/css/style.css rel=stylesheet type=text/css /
/head
body
English 
Taiwanese 


wicket:message key=option_id /


/body
/html

and two property files called HomePage.properties and
HomePage_ta.properties.

These files hold the values which should be replaced inside the
wicket:message tag.
How can I switch between these property files once the user selects a
particular language inside my HomePage .java class. I also need to change
the css file according to each language.

eg:- If Taiwanese is selected it should look like link
href=Resources/css/style_ta.css rel=stylesheet type=text/css /

Thanks
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Different views in wicket

2008-01-21 Thread Erik van Oosten

Mathias P.W Nilsson schreef:

I don't understand your reply. Can you please explain?
  


Each template (html) file can come in variations. E.g 
HomePage_green.html. In HomePage.java you can call setVariation(green).


Does that help?

Regards,
   Erik.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to catch unknown (not mounted) URLs?

2008-01-18 Thread Erik van Oosten
Hi,

In my app I have several mounted URLs with a simple prefix:
/city/name_of_city
/support/name_of_support_page
etc. Easy.

But now my client want to have members (yes, yet another community site
;) ) directly on the root:
/name_of_member

In addition, he want us to guess URLs. For example:
/amsterdam would redirect to /city/amsterdam.

What is the best way to catch all requests that could not be handled by
Wicket?

I was thinking about adding a filter that does database lookups and then
http redirects, but I am just very unsure if this plays well with other
app server and Wicket mechanisms.

Regards,
Erik.


--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to catch unknown (not mounted) URLs?

2008-01-18 Thread Erik van Oosten
Super! Exactly what I needed.

Thanks!
Erik.


Igor Vaynberg schreef:
 as far as having /username

 i recently had to do this for a cms im building. here is my quick hack
 i used to get it working until i have time to revisit it...

 the code below is from the webapp subclass, the way it works:

 your homepage has pageparams constructor, if you hit a url that doesnt
 match anything the homepage is called and pageparams.path contains the
 url fragment that could not be resolved.

   
   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Autocomplete setResponsePage in ajax request

2008-01-17 Thread Erik van Oosten

Hi Conny,

I think you can open a Jira issue. Please attach a quickstart project 
that demonstrates the problem.


Regards,
Erik.

ckuehne wrote:

I call setRespongePage() in the ajax onchange handler of the autocomplete
field. The behavior seems buggy in the case when the user did not select a
choice but submitted the input of the field with ENTER. If there are no
choices for the entered text then everything works fine. But if there are
avalaible choices the forwarding to the response page does not work. Instead
it seems to me that there is some left over javascript being executed on
the client side after the resonse. And then, instead of forwarding to the
response page, the current page is reloaded. At least that's how I interpret
it.

Help appreciated,
Conny 
  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Radiant] Drag and drop reorder extension

2008-01-16 Thread Erik van Oosten
Sean Cribbs wrote:
 I'm sure the community would appreciate it.
Indeed. I even skipped an upgrade for one of my sites because of this
extension.

Thanks Keith!

Regards,
Erik.



--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: Javascript call to wicket

2008-01-13 Thread Erik van Oosten
I did not find the results of this thread on the Wiki yet, so I created 
the following page:

http://cwiki.apache.org/confluence/display/WICKET/Calling+Wicket+from+Javascript

Comments and edits are appreciated. There is a TODO on the page for 
providing an example that adds Javascript to the header. Or perhaps this 
should be on another page under AJAX?


Thanks for sharing the information!

Regards,
   Erik.


Gwyn Evans wrote:

As Cemel suggested, if you have time to put a summary up on the Wiki,
it would be appreciated!

/Gwyn

  



  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Supported browsers on Wiki still up to date?

2008-01-11 Thread Erik van Oosten
Hi,

The list of supported browsers on
http://cwiki.apache.org/WICKET/faqs.html#FAQs-WhichbrowsershavebeentestedwithWicketAJAX%253F
looks a bit out dated.

Could someone please update it for Wicket 1.3? If you have a pointer to
more up to date information, I can update it myself.

Regards,
Erik.


--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Per-Deployment Variation

2008-01-10 Thread Erik van Oosten
Just make sure that the html elements with a wicket:id in the different
html versions have the same hierarchical structure. If you need to skip
some components for one language but not  another it becomes a bit
harder. Then you'll actually need to add an invisible component for the
language in which you want to skip that component.

I am not sure InvisibleComponent is part of Wicket 1.3 already,
otherwise it is easy to create one by extending WebMarkupContainer and
overriding isVisible() (or call setVisible).

Regards,
Erik.


grimp wrote:
 As as simple example, if I understand correctly, Wicket will throw an
 exception if a component is declared in Java but not in the markup, so it
 doesn't look as though things could just be controlled using MyPage_en.html,
 MyPage_fr.html etc.

   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Javascript call to wicket

2008-01-08 Thread Erik van Oosten
I just finished an experiment with something like that. Its still ugly
and very static, but here is my code.

In the HTML header the function you can call from Flash:
function(someValue) {
var inputEl = document.getElementById('anchor8');
inputEl.value = someValue;
eval(inputEl.getAttribute('onclick'));
}

Somewhere in the page:
form wicket:id=ajaxForm style=display: none;input
wicket:id=myField type=hidden value=//form

Note that 'anchor8', the Wicket generated id of the input element, still
needs te be made dynamic. Not sure how yet.


The code:
Form form = new Form(ajaxForm);
add(form);
final HiddenField myField = new HiddenField(myField, new
Model(), String.class);
form.add(myField);
myField.add(new AjaxFormSubmitBehavior(onclick) {
@Override
protected void onError(AjaxRequestTarget target) {
throw new RuntimeException(foutje);  // not sure what
to do here
}

@Override
protected void onSubmit(AjaxRequestTarget target) {
String myValue = (String) myField.getConvertedInput();
processAjaxRequest(target, myValue);
}
});

Improvements are very welcome.

Regards,
Erik.



Sébastien Piller wrote:
 Hello guys,

 I've a little question about the javascript and wicket. I need to
 update some models on server side using javascript (in fact, I need to
 update it from a flash object, and that's why I use js).

 But I have no idea about how to do this... I know how to call a JS
 function from flash, but I don't know how to update a wicket model
 using a javascript/ajax call.

 Has anybody some hint about that?

 Thanks you


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Javascript call to wicket

2008-01-08 Thread Erik van Oosten

Nice to see a more structured approach.

Do you have a small JavaScript example that shows how to call the 
behavior URL?


Can you also explain (or reference docs/examples) how to pass parameters 
from javascript to the behavior?


Regards,
Erik.


Michael Sparer wrote:
hi, 


- your component has to implement IHeaderContributor, that's where the 
response-object gets passed.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Referring Page links to a deployed context

2008-01-07 Thread Erik van Oosten
Try this first:

mount(new IndexedParamUrlCodingStrategy(firstPage, FirstPage.class,
null));
(no slash in front of firstPage)

Regards,
Erik.


mbelarbi wrote:
 Hi,

 If my app (MyTest) is the root context everything runs smoothly. This is
 because in my MyTestApplication class, in the constructor i have

 mount(new IndexedParamUrlCodingStrategy(/firstPage, FirstPage.class,
 null));
 mount(new IndexedParamUrlCodingStrategy(/secondPage, SecondPage.class,
 null));
 mount(new IndexedParamUrlCodingStrategy(/thirdPage, ThirdPage.class,
 null));

 This means that if i deployed this on saywww.MyTest.com and clicked on a
 link which took me to the frstPage the url will be www.MyTest.com/firstPage

 Now, this is when i get a problemwhen the deployed context isn't the
 root, for example if the root is www.anotherApp.com and my app runs on
 www.anotherApp.com/MyTest, when i click on first page now it will try and
 look for www.anotherApp.com/firstPage not
 www.anotherapp.com/MyTest/firstPage. 

 in a nutshell the problem is that all the links in the app refer to the root
 context and not the deployed context.

 so basically what i'm looking for is something like this
 mount(new IndexedParamUrlCodingStrategy([WHAT EVER THE DEPLOYED CONTEXT
 IS]+/firstPage, FirstPage.class, null));

 How can i fix this?
   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: external login pages

2008-01-04 Thread Erik van Oosten
Hi Alex,

Normally you can throw a special exception, the
RestartResponseAtInterceptPageException. Unfortunately I do not think
this will work when the intercept page is external to Wicket.

So the only thing you can do, is put the original URL in a parameter to
the perl page, and let the perl page use that as second redirect. Makes
sense?

Regards,
Erik.



Alex Jacoby wrote:
 I am building a new wicket app that has to use an existing login
 page.  The legacy login page is written in perl and sets a login
 cookie before redirecting the user back to a specified URL.

 I'm hoping to keep things simple and use role-based authorization for
 pages.  In my authenticated app the login page is set to a
 RedirectPage which redirects to the external login page.  My problem
 is that I can't figure out how to grab the original URL that sent me
 to the login page, so that I can pass that URL to the external login
 page, and thereby be sent to my original destination after login. 
 (Currently I just send them back to the home page, which is annoying.)

 Has anyone tried this before?  I've got a feeling there's a better way
 I could be doing this -- my current version using AuthenticatedWebApp
 is very kludgy.

 Thanks for any ideas,
 Alex

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Migrating from Wicket1.2 to Wicket1.3

2008-01-02 Thread Erik van Oosten

http://cwiki.apache.org/WICKET/migrate-13.html


yyj wrote:

I am using Wicket1.2. and want to migrate from wicket1.2 to wicket1.3. what
the changes should be done in web.xml  to access the project in tomcat? I
have created web.xml for wicket1.3 with the respected changes but it gives
error 'The requested resource (Servlet LoginApplication is not available) is
not available.' .  I am using Tomcat5.0. and JDK1.5
  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Radiant] Can't see pages - after page_edit_dates install

2007-12-27 Thread Erik van Oosten
Hi Johan,

 The extension never showed up on the extension page.

In my experience extensions only show up (and start to work) after a
restart.

Regards,
Erik.


Johan Bichel Lindegaard wrote:
 I was installing http://mat.cc/dev/index.cgi/page_edit_dates/ - an extension
 that should let me modify my published dates. Well it didn't instead i can't
 see any of my pages from my admin interface. I simply appears as if no pages
 exists. If i visit the page from http the content still exists but i can't
 edit it from the cms.

 I tryed removing the page_edit_dates extension again but it didn't solve the
 problem.

 The extension never showed up on the extension page.
 Any ideas to what i can do to make my site work again. And any ideas to how
 i will get the functionality of page_edit_dates without ruining my site are
 much appreciated!
   

--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: Which way to go? AjaxSubmitLink or AjaxLink? Neither does the job for me :)

2007-12-27 Thread Erik van Oosten
Another option is to attach onchange handlers to all components (with an
ajax behavior).

You can optionally do validation in the handler and contineously show
validation errors as the user leaves an input field.

Regards,
Erik.



 Edvin Syse wrote:
 Hi,

 I have a form where some of the components have validators (Required,
 EmailValidator etc). The form uses CompoundPropertyModel for my
 object. Upon entering some text in one input field and clicking a
 button,
 a ModalWindow opens and shows a searchresult based on the input.

 The button is a AjaxSubmitLink. The problem is that this operation is
 performed BEFORE the rest of the form is filled out, so validation
 fails (since lots of fields are missing input at this stage), and the
 ModalWindow doesn't open. If I turn off validation everything is
 good, but I need the validation for when the form is complete and
 finally
 submitted :)

 If I change to an AjaxLink, I can get the ModalWindow to open, but then
 the input data isn't propagated to the model, so I can't get hold of
 it in the ModalWindow. I have also tried overriding
 getDefaultFormProcessing() and returning false, but then obviously the
 model isn't updated either, so I'm stuck.

 Maybe I'm going about this the wrong way.. Any suggestions? Should I
 use
 another form without validation just for this one textfield?

 Sincerely,
 Edvin Syse


--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Which way to go? AjaxSubmitLink or AjaxLink? Neither does the job for me :)

2007-12-27 Thread Erik van Oosten
Yes indeed. You could open a JIRA issue with your use case and a proposal.

  Erik.

Edvin Syse wrote:
 Thanks, that's a good option :) I went with rearranging the layout and
 using two forms, but I think a getDefaultFormValidation() method would
 be a nice addition to the framework :)

 -- Edvin


-- 
Erik van Oosten
http://day-to-day-stuff.blogspot.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Ajax compatible url strategies?

2007-12-21 Thread Erik van Oosten
Hello,

Our client is really into Ajax /and/ bookmarkable URLs.

What would be the best way to intercept and interpret anchor parameters
(e.g. after the '#' in the URL)? Do I have to write my own
UrlCodingStrategy?

What would be the best way to change the URL when an Ajax link was clicked?

Is there a way to do this all automatically? Would a
BookmarkableAjaxFallbackLink make sense?

Regards,
Erik.


--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ajax compatible url strategies?

2007-12-21 Thread Erik van Oosten
Hi,

 The part after # (hash) never gets to the server...Unless you e.g. use
xmlhttprequest

Ah. Didn't know that. But I can live with that. So I'll have to add a
handler on each page to detect # parameters and do a new (perhaps Ajax)
submit. Of course the handler should only fire upon a reload or initial
load.

 the only way that change url on client without reloading the page is
changing window.location.hash

That I knew. I was thinking of doing this as a part of an ajax response.
Not sure how yet, but I think I can do this.

So there are ways to do this. What I am most curious at is how to
cleanly add support for this in a Wicket application.

Here is rough idea, please shoot at it.
When the BookmarkableAjaxFallbackLink does its thing without Ajax it
will behave like a BookmarkableLink and encode the parameters according
to the linked BookmarkablePage. With Ajax, it will add the same
parameters with the same url coding rules, but after the '#' (client
side). Any page that can be reached by a BookmarkableAjaxFallbackLink
should detect a reload with '#' parameters and do a redirect to the same
page but with everything after the '#' converted to normal parameters
(e.g. after the '?').

How does this sound?

Regards,
Erik.


Matej Knopp wrote:
 Hi,

 sorry, it's not possible to do. The part after # (hash) never gets to
 the server. It's client only. Unless you e.g. use xmlhttprequest to
 post it to server after the page has been loaded. And the only way
 that change url on client without reloading the page is changing
 window.location.hash (the part after # which doesn't get to server on
 normal request).

 -Matej

 On Dec 21, 2007 11:38 AM, Erik van Oosten [EMAIL PROTECTED] wrote:
   
 Hello,

 Our client is really into Ajax /and/ bookmarkable URLs.

 What would be the best way to intercept and interpret anchor parameters
 (e.g. after the '#' in the URL)? Do I have to write my own
 UrlCodingStrategy?

 What would be the best way to change the URL when an Ajax link was clicked?

 Is there a way to do this all automatically? Would a
 BookmarkableAjaxFallbackLink make sense?

 Regards,
 Erik.


 --
 Erik van Oosten
 http://day-to-day-stuff.blogspot.com/
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SyncRepl cookie length?

2007-11-22 Thread Erik van Oosten

[Forgot a copy to the list.]

Ah, that is pretty annoying. I am now reserving 255 bytes, but the
information density of the cookies does not seem to be very high (my
totally uninformed guess). Can you say a bit more on how fast they grow?

My scenario is an old remote openldap master which syncs to a more
modern local openldap sever (using the old sync mechanism). The local
openldap server is then used to run syncrepl queries against.

Regards,
   Erik.



Howard Chu wrote:

I need to store syncrepl cookies in a database. What is the maximum
length for a cookie that is issued by open ldap?
There's no upper bound on the size. In a multimaster scenario, the 
more servers there are, the bigger the cookie may grow.


--
Erik van Oosten
http://2008.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/




Re: [Radiant] Mephisto Integration

2007-11-21 Thread Erik van Oosten
Hello Arpit,

This question is probably better answered on a Mephisto mailing list.

Regards,
Erik.


Arpit Jain wrote:
 Hi all.

I need to integrate mephisto inside an existing rails
 application.
Can anybody tell me the correct path of doing this.
I have searched for it, but i am totally confused that how to
 start with
it..
 Thanks.
 Arpit
   

-- 
Erik van Oosten
http://2008.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/

___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Issue with page updating since 0.6.4

2007-11-21 Thread Erik van Oosten
Hi Andrew,

I have seen and reported the same thing here. No response so far...

Regards,
 Erik.


Andrew Klein wrote:
 Ever since I have upgraded, I have found that when I make a 
 post to my site, it doesn't immediately process itself onto pages it 
 resides on, even when I do a Clear Cache
   

-- 
Erik van Oosten
http://2008.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/

___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Moving pages and have them become child items...

2007-11-21 Thread Erik van Oosten
On http://wiki.radiantcms.org/Thirdparty_Extensions there is a plugin 
called Copy Move.

Regards,
Erik.


Travis Bell wrote:
 It doesn't seem like it's currently possible to move existing pages  
 into a new page and have it become a child item with the Seans  
 Reorder extension.

   

-- 
Erik van Oosten
http://2008.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/

___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: How to add sortable header into ListView

2007-11-19 Thread Erik van Oosten

Hi Joshua,

There are many examples on http://www.wicketstuff.org/wicket13/repeater/.

Regards,
   Erik.


Joshua Jackson wrote:

Dear all,

Is there any Sortable header component in wicket? I could not find it
under wicket core library. And is there any tutorial on how to add
sortable header?

Thanks in advance

  


--
Erik van Oosten
http://2008.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Dynamic content on a panel

2007-11-19 Thread Erik van Oosten
Please introduce a new subject with a new message. Please do not start a 
new topic using the reply button. If you reply to a message to start a 
new topic, it may be ignored by those not following that thread; you may 
not get the answers your questions deserve; and those whose mail 
programs allow threading will become annoyed.


   Erik.


Alexander Landsnes Keül wrote:

Hi,

I'm having a bit of trouble setting up a panel with a dynamic content. What I'm 
working on is a panel where the customers can specify what they want to ask for 
in a CV.

Basically they can choose if they want dropdowns, textfields etc. Is there a 
way to support this? I'm thinking of adding the panels they want to a ListView, 
and my thought was to add the Components they specify to a ListView in the 
panels.

The problem I'm having here is that that does require a markup for the panels, 
which I'm not quite certain how to handle. Does anyone have any pointers as to 
how I might go about doing this?

As an example, one customer might want to have your job experience with a from 
date, to date and company. Another might also want to know the name of your 
boss in that company.

Alexander  

  


--
Erik van Oosten
http://2008.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Radiant] Sessions in Radiant Help

2007-11-17 Thread Erik van Oosten
You can enable sessions for a particular extension by doing something 
like this:

class YourExtension  Radiant::Extension
  def activate
YourController.class_eval { session :disabled = false }
  end
end

This works on Radiant 6.0.3. I found this on the mailing list. I do not 
think this is documented.

Regards,
Erik.



Jeff Dean wrote:
 I believe that this is because of a bug in rails, and not radiant.   
 The SiteController has session :off, and adding session :on in your  
 controllers doesn't seem to do anything.

 The only way I know to change this is to actually go into  
 SiteController and comment out that line.  I've seen posts about  
 putting things like:

 SiteController.class_eval{session :on}

 in the activate method of your extension, but that didn't work for me.

 To get it to work, I did froze to edge radiant, then went into  
 SiteController.rb and commented out the session line.  This would mean  
 that any pages that you want sessions off for you'd have to do  
 manually - so use with caution.

 Jeff

   

-- 
Erik van Oosten
http://2008.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/

___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Howto extend LDAP in java with JLDAP

2007-11-16 Thread Erik van Oosten

Hi,

Based on my experiences with implementing a RFC4533 (synchronization) 
client with JLDAP I created a small howto. You can find it on my blog: 
http://day-to-day-stuff.blogspot.com/2007/11/howto-extend-ldap-in-java-with-jldap.html.


Have fun,
   Erik.


--
Erik van Oosten
http://2008.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/



[Radiant] 'Clear Page Cache' problems with 0.6.4

2007-11-13 Thread Erik van Oosten
Hello,

I upgraded from 0.6.3 to 0.6.4 and now the 'Clear page cache' button no 
longer works consistently. I have not seen the pattern yet, sometimes it 
works, sometimes it doesn't.

Anybody seen this as well?

Regards,
Erik.


-- 
Erik van Oosten
http://2008.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/

___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: isEnabledInHierarchy?

2007-11-13 Thread Erik van Oosten
Not a permanent solution, but its quite easy to use a IVisitor to visit 
all nodes recursively.


Regards,
Erik.


Maeder Thomas wrote:

Hi folks,

we're currently struggling with the case of a complex component tree
(nested AJAX tabbed panels) which we would like to enable/disable in one
go (i.e. disable every component below a given root). I've tried the
approach where I call setEnabled(false) on every child of the root in
onBeforeRender(), but this doesn't work, since we have AJAX elements
below the root.

I've found a conversation in the old wicket lists where somebody was
asking why enablement was not determined recursively like visibility.
I.e. a component is rendered as disabled if the enabled-flag is set on
the component or if the component's parent is disabled. However, the
thread just ended without any resolution.
I currently see no way to implement our desired behaviour short of
touching every input component in our component tree. On the other hand,
I see no reason why wicket should not determine enablement recursively. 


thoughts?

Thomas
  


--
Erik van Oosten
http://2008.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/



Re: When to delete client content during RFC4533 synchronization?

2007-11-04 Thread Erik van Oosten

Howard,

Thanks for your support and the quick fix!

Regards,
   Erik.


PS. I filled a second, much smaller, syncrepl bug under ITS#5211.



Howard Chu wrote:

Erik van Oosten wrote:

Shall I report this as a bug?


Please do, thanks.



--
Erik van Oosten
http://2008.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/



Re: When to delete client content during RFC4533 synchronization?

2007-11-04 Thread Erik van Oosten



Howard Chu wrote:
And please post back here with more status on your syncrepl 
implementation, I believe you're one of the first outside the OpenLDAP 
Project.
I am about done and quite happy with the result. I only need to write 
code to restart aborted syncs and some more code to manage many 
concurrent syncs in just a few threads.


I am afraid I am not allowed to open source this :(  (I did ask). The 
effort was too large (about a week, but that excluded a lot of prior 
research), and the advantage compared to competitors in our market is 
just too large. I will however post a tutorial on extending JLDAP so 
that at least others can get a grasp on how to approach this. I'll post 
the link here when its done.



PS. I filled a second, much smaller, syncrepl bug under ITS#5211.

Thanks. Now fixed in HEAD.

Great!


Regards,
Erik.


--
Erik van Oosten
http://2008.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/



Re: Replacing div/ with div/div

2007-11-03 Thread Erik van Oosten


Matej Knopp wrote:

I haven't heard a single argument against replacing div/ with
div/div except people being anxious of wicket touching the markup.
  
The best real argument I know is that I want the HLTM to be viewable 
without Wicket.


Of course it is fine to have Wicket provide optional behaviour to 
'correct' html.


Regards,
   Erik.


--
Erik van Oosten
http://2008.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/



Re: Is Beta5 coming soon? Beta4 has caused these issues for us....

2007-11-03 Thread Erik van Oosten


And what is the version of your slfj-api.jar?

Erik.


landry soules wrote:

Thanks for your answers, but still no success :
I tried (once again) to use maven to generate a brand new project, but
eclipse freezes when i import the project generated with mvn
eclipse:eclipse -DdownloadSources=true...

Is there something i'm missing ? In my classpath, i have
slf4j-log4j12-1.4.2.jar + log4j-1.2.14.jar, and still the infamous
NoSuchMethodError

Should i better rollback to wicket 1.3 beta2 ?

  

  


--
Erik van Oosten
http://2008.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Replacing div/ with div/div

2007-11-02 Thread Erik van Oosten

It does not matter who is making the error, John is still right imho.

Regards,
   Erik.


Matej Knopp wrote:

Okay. Again. This is not about developer making error!

Code like this:
 div/
  Something

Is perfectly legal. However, firefox interprets it as
 div
   Something
   ...
Which is completely wrong. This is not correcting developer error!
This is correcting browser error. And such thing is very difficult to
spot.

-Matej

On 11/2/07, Philip A. Chapman [EMAIL PROTECTED] wrote:
  

I agree with this stance.

On Fri, 2007-11-02 at 09:19 -0600, John Ray wrote:


I got bit by this problem yesterday. Although I was just previewing the
page in the browser by loading the HTML file directly. Since Wicket
wasn't running it wouldn't have mattered if it fixed my div tag for me
or not.

I'd rather see Wicket not modify the HTML as it's then starting down the
slippery slope of assuming the developer made an error and automatically
correcting it. I think a better solution would be to have an option
where Wicket looks for potential errors in your HTML and then outputs a
warning to the console.

John
  


--
Erik van Oosten
http://2008.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/



Re: Is Beta5 coming soon? Beta4 has caused these issues for us....

2007-11-02 Thread Erik van Oosten

Hi,

You mostly get NoSuchMethodErrors if one of the slf4j jars on your 
classpath is too old. But I guess you already knew that. You may find 
more help on the sl4j site.


Regards,
Erik.


PS. on the dev list there was a vote with the result that Wicket 1.3 RC1 
will be build (not released?) on Sunday.



landry soules wrote:

Hello

Please Al, what is the fix for this problem with slf4j ?
I spent half a day trying every possible combination between log4j and
slf4j, and got nothing but a strong headache ( and NoSuchMethodError) !!!


  


--
Erik van Oosten
http://2008.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: When to delete client content during RFC4533 synchronization?

2007-11-01 Thread Erik van Oosten
Thanks Howard,

 Your use of the words client and server seem inconsistent here. The
 above questions made no sense to me. Servers don't send polls.

Sorry, my interpretation of RFC4533 terminology :) . What I read is that
the client may select from 2 modes of operation (by providing an initial
cookie). The first is described in the section called initial content
poll, the second is called content update poll. The server may however
ignore the request for a content update poll and do an initial content
poll.

I was writing about that the client can not reliably determine which mode
was selected by the server. But I now see that it does not matter; at both
the end of the initial content poll /and/ at the end of present phase
(that is, without a delete phase) one should delete all unmentioned client
content.

 If the client receives a SyncInfoMessage with refreshPresent and
 refreshDone set to TRUE that means there's only a present phase
 and no delete phase. ...

Indeed. With the addition that this message is used to end both the
initial content poll as the content update poll.

 ... Therefore, any entry that wasn't marked
 present or added must be deleted.

Still, this interpretation can not be correct. When I run my sync client
program against OpenLDAP (2.3.36), and then restart it after the refresh
stage with the last received cookie (note: the DIT remains unchanged), the
first message is exactly that SyncInfoMessage of refreshPresent with
refreshDone set to TRUE. Using our interpretation I should now delete all
client content! Since the DIT was not changed this is clearly wrong. (By
the way the new server cookie is the same as the initial cookie, but
depending on this is tricky; the client should never interpret the
cookie.)

I am quite confused here. Where is the error in our reasoning?

Regards,
Erik.


-- Howard Chu
Chief Architect, Symas Corp.  http://www.symas.com
Director, Highland Sunhttp://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/


--
Erik van Oosten
http://2008.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/





When to delete client content during RFC4533 synchronization?

2007-10-31 Thread Erik van Oosten

Hello,

I am writing a RFC4533 client implementation based on JLDAP. I have a
question on how to interpret the rfc as a client, and secondly how the
OpenLDAP server interprets it.

My question is: how can the client determine that it must delete content
at the end of the refresh stage, when a refreshAndPersist is requested
with an initial cookie?

The problem is that I can not defer from the rfc how I can differentiate
between a server that sends an initial content poll and a server that
sends a content update poll. The RFC specifies that the server may choose
to ignore the initial cookie and the reloadHint flag, so either poll mode
may be choosen by the server.
In the case of a refreshOnly the RFC is clear: when refreshDeletes of
syncDoneValue is FALSE, content that is not added, changed, or indicated
as present must be deleted from the client copy (section 1.3.1 paragraph
8).
However, in the case of a refreshAndPersist, there is no similar flag in
the SyncInfoMessage that ends the refresh stage. SyncInfoMessage does have
values named refreshDelete and refreshDeletes, but these are used for
other purposes (see section 3.4.1 and section 3.3.2 paragraph 7 and 9).

Am I missing something?

What is the behavior of the OpenLDAP server in this matter? Does it ever
ignore the reloadHint of the sync request control?

Regards,
Erik.


--
Erik van Oosten
http://2008.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/




Re: Scrollbars on AutomCompleteTextField?

2007-10-26 Thread Erik van Oosten

Hi WK,

My solution was to just limit the number of things you show. This is how 
most autocomplete implementations work anyway.


Regards,
   Erik.


WicketKeeper wrote:

Hi all

Has anyone managed to put scrollbars on the drop-down bit of an
AutomCompleteTextField? Seems that i have loads of things beginning with t
so the explorer window's scrollbars compensate, which isn't ideal because
there's other stuff on the panel.

I'm guessing its something to do the IAutoCompleteRenderer?

Cheers
WK
  


--
Erik van Oosten
http://2008.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Radiant] [PREVIEW] Snapshot extension: serve Radiant sites statically

2007-10-25 Thread Erik van Oosten
A URL was posted earlier today.

Regards,
Erik.


Saji Njarackalazhikam Hameed wrote:
 Hi Aitor,

 I would like to use this extension. However I could find any attachment in the
 message. Could it be retrieved by ftp or some similar service?

 saji

   


-- 
Erik van Oosten
http://2008.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/

___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Names of months in Archive Extension

2007-10-24 Thread Erik van Oosten
Artur,

I am using a Rails plugin called Dutchify. Its code may help you develop 
a Polify, or someting like that.
Dutchify is quite dirty as it overrides the Ruby date and time classes. 
Works well though.

Don't forget to restart Radiant after you install this plugin ;)

Regards,
Erik.


Sean Cribbs wrote:
 Also consider that this is a limitation of Ruby and not necessarily 
 Radiant.  You may need to find a library that overrides the Date, Time, 
 and DateTime classes to localize date names.

 Sean

 John W. Long wrote:
   
 Artur Baldyga wrote:
   
 
 I want to have listed archive with months and years in polish language.
 By default this is english language. If I use command:
 r:date format=%B %Y / I got for example June 2007. Instead of
 June I want to have polish equivalent. What I have to do??
 
   
 I'd suggest that you create a set of polish date tags in an extension. 
 You may need to copy the Archive pages as well.

 --
 John Long

 

-- 
Erik van Oosten
http://2008.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/

___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: Acegi and Wicket-auth-roles

2007-10-24 Thread Erik van Oosten

Thanks for adding this to the wiki!

Regards,
   Erik.


Michael Sparer schreef:

and _not_ vice versa. otherwise the wicket servlet looks for authorities
that haven't been set yet.
... always the easy and logical things waste my time ;-)

  

--
Erik van Oosten
http://2008.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket Article on DevX

2007-10-15 Thread Erik van Oosten

Of course you can startup Tomcat from Eclipse just as well :)

I seem to remember that Jetty is vastly easier to configure from Java 
source. 
I tried this with Jetty 6. Hardly any documentation or complete examples 
to be found. So I switched back to Jetty 4 for which I had an example 
from an old wicket-quickstart.


Tomcat at least has a very decent and understandable embedded java 
interface.


Regards,
   Erik.


Sam Hough wrote:

Still can't see why you can't do local debugging with Tomcat. From eclipse
you just start it as an application with main class
org.apache.catalina.startup.Bootstrap... I also run Tomcat in OptimizeIt
without any remoting...

I've no agenda about Tomcat. Was just curious about the preference. I seem
to remember that Jetty is vastly easier to configure from Java source.
Presumably it is also still much smaller.

Cheers

Sam



Nino.Martinez wrote:
  

theres a equallent to mvn jetty:run called mvn tomcat:run...

If devs decided to give up mvn jetty:run then we would loose support for 
debuging with start.java ... As Matej mentions..


regards Nino

Gwyn Evans wrote:


On Monday, October 15, 2007, 11:56:55 AM, Sam [EMAIL PROTECTED] wrote:

  
  

I was interested by the encourages the use of the Jetty container bit.
Is
that more that the core Wicket developers prefer Jetty or is there a
killer
advantage over the more common Tomcat?



[Reposting a paragraph of Igor's to start, in case it looks familiar!]

The advantages are that you can quickly get your app running using mvn
jetty:jetty command if you want. Even better, when developing you dont
need to package your app into a war and deploy it - which are big time
wasting steps when you have to do them every ten minutes - instead
simply launch the included Start.java and your app is up and running
in seconds and includes hotswap.

One thing I like about Jetty is that it's normally clear to see what's
mounted where, as the default '/' servlet will list them when running
'mvn jetty:run'  (although that's not in our Start.java).

Of course, having said that, I need to say that I'm having good
results with Winstone, where Jetty was having issues (with the
non-Wicket connected part of a legacy web-app) - see
http://www.nabble.com/Wicket%2C-IDEA-and-Winstone...-p12919201.html

/Gwyn


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  


--
Erik van Oosten
http://2008.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [slf4j-user] [ANN] JCL to Slf4j migration in a Maven environment

2007-10-11 Thread Erik van Oosten
Hello slf4j-ers,

I took no-commons-logging to the next level and called it Version 99 
Does Not Exist.
http://day-to-day-stuff.blogspot.com/2007/10/announcement-version-99-does-not-exist.html

Have fun!
Erik.


-- 
Erik van Oosten
http://2008.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/

___
user mailing list
user@slf4j.org
http://www.slf4j.org/mailman/listinfo/user


Re: TabbedPanel with image tabs - how to contribute ?

2007-10-11 Thread Erik van Oosten

Easy!

Go to http://cwiki.apache.org/WICKET/, click on Edit page, get yourself 
an account. After you've logged in go back to the main page, then find 
the page called 'Reference Library', with at the bottom 'Wicket 
Reference'. Find a suitable place there to describe the TabbedPanel.


Good work!
   Erik.


Stefan Simik wrote:

very good idea :)
How can I contribute ? ..or where can I send example with full sources ?
  


--
Erik van Oosten
http://2008.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: TabbedPanel with image tabs

2007-10-10 Thread Erik van Oosten

Something for the wiki component reference?

Regards,
   Erik.


Stefan Simik wrote:
Example for AjaxTabbedPanel: 



1. create new Link with image - different for selected and different for
unselected tab

MyAjaxFallbackLink.java




public class MyAjaxFallbackLink extends AjaxFallbackLink {

public MyAjaxFallbackLink(String id, boolean isSelectedTab) {
super(id);

Image image;

if (isSelectedTab){
image = new Image(image, new
ResourceReference(MyAjaxFallbackLink.class, inner-image_selected.gif));
}else{
image = new Image(image, new
ResourceReference(MyAjaxFallbackLink.class, inner-image_unselected.gif));
}

add(image);

}

public void onClick(AjaxRequestTarget target) {
//really nothing here - to override
}
}



2. override newLink() in AjaxTabbedPanel to return your link

MyAjaxTabbedPanel.java




public class MyAjaxTabbedPanel extends AjaxTabbedPanel {

public MyAjaxTabbedPanel(String id, List tabs) {
super(id, tabs);
setSelectedTab(0); //make sure, the first selected tab has 
index=0.
Important for image in first selected tab!
}

protected WebMarkupContainer newLink(String linkId, final int index) {
int selectedTab = getSelectedTab();
boolean selected = (index == selectedTab);

return new MyAjaxFallbackLink(linkId, selected)
{
private static final long serialVersionUID = 1L;

public void onClick(AjaxRequestTarget target)
{
setSelectedTab(index);
if (target != null)
{

target.addComponent(MyAjaxTabbedPanel.this);
}
onAjaxUpdate(target);
}
		}; 
	}


}




3. copy html code from TabbedPanel.html and extend with image to pass
hierarchy

 MyAjaxTabbedPanel.html 





lt;wicket:panelgt;

lt;div wicket:id=tabs-container class=tab-rowgt;
lt;ulgt;
lt;li wicket:id=tabsgt;
lt;a href=# wicket:id=linkgt;lt;img wicket:id=image
class=left-image/gt;lt;span wicket:id=titlegt;[[tab
title]]lt;/spanlt;/agt;
lt;/ligt;
lt;/ulgt;
lt;/divgt;
lt;div wicket:id=panel class=tab-panelgt;[panel]lt;/divgt;




  


--
Erik van Oosten
http://2008.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: TabbedPanel with image tabs

2007-10-07 Thread Erik van Oosten

Hello Vitek,

You can override a method on TabbedPanel to create the component that is 
put in the tab.

I can not look it up now, but can do so later if you want.

Regards,
Erik.


Vit Rozkovec schreef:

Good day,
I would like to have a possibility to have a small image next to the 
text in tab in the TabbedPanel.

How can I contribute this feature to Wicket? To have a constructor like
public AbstractTab(IModel title, ResourceReference image)?

Vitek

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Erik van Oosten
http://2008.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket Meetup Amsterdam: a proposal

2007-10-04 Thread Erik van Oosten

Excellent! That is only 4 blocks from where I work :)

Also, all those dates are fine by me.

Just an opinion: I do not expect any presentations; just a get together 
for a couple of hours is nice.


Erik.


--
Erik van Oosten
http://2008.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/


Arje Cahn schreef:
Hi Johan, all, 

  

i also have been asking around for a big room.
And Servoy is willing to sponser a big room if needed (if 
there are really comming 30+ people)



That's excellent news! :)

Do you think the dates and location I suggested will work?

These are the dates I made a reservation for:

Friday November 23rd
Monday November 26th
Friday November 30th

I didn't book any rooms yet, I just called the venue to ask which dates are 
still open and block them in the meantime. When we say GO for any of these 
three days, they'll book it for us. However, if someone has a better idea, 
please speak up! :)
The venue is right in the center of Amsterdam, 
http://maps.google.com/maps?f=qhl=engeocode=time=date=ttype=q=Keizersgracht+324,+amsterdamsll=37.0625,-95.677068sspn=26.339531,58.710937ie=UTF8z=16iwloc=addrom=1


Arjé

  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Acegi (Spring Security)

2007-09-15 Thread Erik van Oosten

Ian,

With this symptom I would guess that the Acegi filter is not installed 
on all URLs that the Wicket application is handling. It is not likely a 
Wicket problem as your code goes directly to Acegi's threadlocal.
If you're deploying to a clustered environment a lot of interesting 
session mechanics are active too. But that all depends on your environment.


Regards,
Erik.


Ian Godman wrote:

It appears to me that it is ether a session issue with Wicket or that some 
where the thread local used by Acegi is not being updated by the listener (not 
had that problem before) or that a different thread is calling my code.

  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: updating form component models when a link is clicked

2007-09-13 Thread Erik van Oosten

You cannot use SubmitLink in a browser without javascript, right?

   Erik.


Martijn Dashorst wrote:

Or SubmitLink, which seems more appropriate in this case.

Martijn

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ajax - Long process indicator ?

2007-09-12 Thread Erik van Oosten
Besides showing a progress indicator, you could also disable mouse 
interaction by overlaying a div that has the height and width of the 
entire page.


Add a bit of javascript to the button to show/display such a div.

   Erik.

Mael Sicsic wrote:
In fact I my problem is the following : a form is submitted with an ajaxbutton, and processing of this form takes a long time (many server side DB checkings), and within this computing time, I would like to prevent the user to continue editing the form being processed... 
  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicket authentication override

2007-09-12 Thread Erik van Oosten

Hmm, how can this be done without breaking existing stuff?

I think an easy solution would be to create your own subclass of 
AuthenticatedWebSession and override isSignedIn(). That isSignedIn() can 
check the application mode.


Regards,
   Erik.


Eelco Hillenius wrote:

I would like to bypass the sign-in screen during development, but
AuthenticatedWebSession provides no setSignedIn() method.  So as far
as I can tell, there is no way to skip the sign-in screen...

Am I missing something?  If not, can it be changed?



I think we can add that. Can you provide a patch please?

Eelco

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Progressive Enhancement

2007-09-06 Thread Erik van Oosten
Here is an article on the subject:

http://day-to-day-stuff.blogspot.com/2007/01/backward-compatible-ajax-development.html

Regards,
Erik.


 Taking that approach would mean pages that were ajax would
 work if the the user disabled javascript or not. Not to mention
 a whole wealth of other benefits that can be found here...



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache Wicket 1.3.0-beta3 released!

2007-08-29 Thread Erik van Oosten

Great!!

When can we expect it on http://wicketstuff.org/maven/repository/?

Or is there another maven repository?

Regards,
Erik.


Martijn Dashorst-4 wrote:
 
 This is the third beta for Apache Wicket we have prepared for your
 pleasure.

-- 
View this message in context: 
http://www.nabble.com/Apache-Wicket-1.3.0-beta3-released%21-tf4345763.html#a12382570
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache Wicket 1.3.0-beta3 released!

2007-08-29 Thread Erik van Oosten

Ah, sorry.
My mirror was out of date.

Regards,
   Erik.


Martijn Dashorst wrote:

How about the central repository, which is used for all official releases?

Martijn

On 8/29/07, Erik van Oosten [EMAIL PROTECTED] wrote:
  

Great!!

When can we expect it on http://wicketstuff.org/maven/repository/?

Or is there another maven repository?

Regards,
Erik.





--
Erik van Oosten
http://2008.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



PasswordTextField no longer supports cookies in beta3

2007-08-29 Thread Erik van Oosten

Dear wicketeers,

In 1.3beta3 I can no longer call
  new PasswordTextField(...).setPersistence(true);
as this results in a:
 java.lang.UnsupportedOperationException: FormComponent class 
org.apache.wicket.markup.html.form.PasswordTextField does not support 
cookies


I do not understand why PasswordTextField no longer allows this. Okay, 
it is not super safe, but it is also not very unsafe and very desirable 
in some circumstances.


Could someone provide the rationale for the change?

Regards,
   Erik.



--
Erik van Oosten
http://2008.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket Acegi Integration.

2007-08-22 Thread Erik van Oosten

Hi Vincenzo,

Someone mentioned the project Swarm on the mailing list some time ago 
(http://www.nabble.com/forum/ViewPost.jtp?post=10853436framed=y).


Since I do not know Swarm I can not advice on which way to go.

Regards,
   Erik.


Vincenzo Vitale wrote:

Hi,

In my project we are using Wicket  and it definitively rocks!!! J

Now I want to integrate  authentication and authorization… I have red
the wiki page in
http://cwiki.apache.org/WICKET/acegi-and-wicket-auth-roles.html  where
the acegi-wicket integration is explained, but you also mention a new
project currently in works… could you please give me more information
about that  or do you suggest at the moment to use wicket-auth-role
and acegi? I'm using  wicket 1.3.0-beta2 version.

Thanks a  lot,
Vincenzo.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  


--
Erik van Oosten
http://2008.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Acegi and Wicket-auth-roles

2007-08-18 Thread Erik van Oosten

Hi Ian,

Indeed, the Wicket base class from Wicket-auth-roles does keep the 'is 
signed in' state. This is okay; it is the intention that you invalidate 
the session upon logout. This should of course happen automatically on a 
timeout after you close the browser.


If the browser did not keep the cookie, you should have gotten a new 
session in which isSigned() should return false. If this is really the 
case, then this sounds like a bug in Wicket core and not in 
Wicket-auth-roles.


If your browser /did/ keep the cookie and brought you back to the same 
session, you should also have gotten the security context from Acegi.
It this is the case the problem is either (again) a Wicket bug, or a 
problem with the session authentication store of Acegi. Please 
investigate whether you configured the Acegi filter on all relevant URLs.


Regards,
Erik.


Ian Godman wrote:

Hi

I am trying to get Acegi (Spring Security) working with Wicket.

It almost works except that if I close the browser and reopen the page I get a 
null pointer exception because the 
SecurityContextHolder.getContext().getAuthentication() is null in the 
getRoles() method of the appSession, which is actually what I would expect as 
the use should not be logged on because the browser was closed.

It appears to me that Wicket-auth-roles is not noticing that the user is not 
authenticated (its remembering the previous authentication) so checks to see if 
they have the role required to access the page and because the authentication 
does not exist in the security context I get NullPointerException.

Been going around this all morning, completely out of ideas.


Ian





  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 
  


--
Erik van Oosten
http://2008.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket-auth-roles 1.2.6 1.4 JVM

2007-08-08 Thread Erik van Oosten

Sorry Flavio,

I don't have it anymore. The guy who actually did the the port left our 
company. I asked him to make a source jar as well, he didn't.


Regards,
   Erik.


Flavio schreef:

Hi Erik, me again.

Can you send me  the source code?

Thanks,

Flavio.

On 7/30/07, Flavio [EMAIL PROTECTED] wrote:
  

Yes, I known that is fast and easy but I tried to do it myself and I
had  problems.
Thanks!

On 7/30/07, Erik van Oosten [EMAIL PROTECTED] wrote:


Hi Flavio,

It only takes 15 minutes to make it yourself.
But anyway, here is one:
http://omelet.zapto.org/pub/wicket/wicket-auth-roles-1.2.2-1.4.jar
It is derived from Wicket 1.2.2 but we use it in a Wicket 1.2.6
environment on production.

Regards,
Erik.


Flavio wrote:
  

Hi!

I'm trying to integrate acegi and wicket on a 1.4 JVM. Can anyone send
me wicket-auth-roles without annotations and ported to 1.4?

Thanks,

Flavio.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Erik van Oosten
http://2008.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  


--
Erik van Oosten
http://2008.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[jira] Commented: (MAVENUPLOAD-1619) Please upload XMLUnit for Java 1.1

2007-08-06 Thread Erik van Oosten (JIRA)

[ 
http://jira.codehaus.org/browse/MAVENUPLOAD-1619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_104070
 ] 

Erik van Oosten commented on MAVENUPLOAD-1619:
--

Meanwhile, is there another repository?

 Please upload XMLUnit for Java 1.1
 --

 Key: MAVENUPLOAD-1619
 URL: http://jira.codehaus.org/browse/MAVENUPLOAD-1619
 Project: maven-upload-requests
  Issue Type: Wish
Reporter: Stefan Bodewig
Assignee: Carlos Sanchez

 XMLUnit for Java 1.1 has been released today.
 http://xmlunit.sf.net/
 I am listed as a project admin at http://sourceforge.net/projects/xmlunit/

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




Re: [Radiant] Page attachments extension

2007-07-31 Thread Erik van Oosten
Keith,

This exact question was on the list just 1 or 2 days ago. Please search 
the list.

 Erik.


Mailing wrote:
 Hi all,

 I have installed page attachment's latest version and when I use the 
 following code I just see a # for each attachment I add - anyone seen 
 this before??

 r:attachment:each order=asc
 pr:link / - r:date //p
 /r:attachment:each

 Keith
 ___
 Radiant mailing list
 Post:   Radiant@lists.radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
   

-- 
Erik van Oosten
http://2008.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/

___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Page attachments extension

2007-07-31 Thread Erik van Oosten

Hi Keith,

I think it is this one:
http://www.nabble.com/forum/ViewPost.jtp?post=11862316framed=y

A big apology, I see that it was unanswered, and even more, written by you!

I am very sorry for not paying attention,
 Erik.



Mailing-7 wrote:
 
 Hi Eric,
 
 I can see messages referring to the ability of the extension to handle 
 r:attachments:each but none about errors that have been thrown up - 
 can you point me in the right direction?
 
 Keith
 

-- 
View this message in context: 
http://www.nabble.com/Page-attachments-extension-tf4190217.html#a11921215
Sent from the Radiant - User mailing list archive at Nabble.com.

___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Wicket-user] Redirecting top frame

2007-07-26 Thread Erik van Oosten

Igor wrote:

write your own page, that works like redirect page, but instead of doing
meta refresh output scriptwindow.top.location='url' 

What he meant:

write your own page, that works like redirect page, but instead of doing
 meta refresh=... etc
output
 scriptwindow.top.location='url' .etc

 Erik.



Federico Fanton wrote:
 
 On Thu, 26 Jul 2007 11:11:38 +0200
 Federico Fanton [EMAIL PROTECTED] wrote:
 
 meta refresh output
 scriptwindow.top.location='http://redirected-url.com'/script/
 
 ?
 Is a nested script tag allowed inside a meta tag? Also, I tried
 looking up refresh inside the HTML4 specs on www.w3.org but couldn't
 find it.. :(
 
 Found it X-) I think you meant something like
 
 meta http-equiv=refresh output
 scriptwindow.top.location='http://redirected-url.com'/script/
 
 or maybe
 
 meta http-equiv=refresh
 content=scriptwindow.top.location='http://redirected-url.com'/script/
 
 Am I guessing right?
 
 
 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now   http://get.splunk.com/
 ___
 IMPORTANT NOTICE:
 
 This mailing list is shutting down. Please subscribe to the Apache Wicket
 user list. Send a message to: users-subscribe at wicket.apache.org and
 follow the instructions.
 ___
 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/Redirecting-top-frame-tf4142267.html#a11807304
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache Wicket user 
list. Send a message to: users-subscribe at wicket.apache.org and follow the 
instructions.
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Radiant] Internationalization Support

2007-07-24 Thread Erik van Oosten
I've attached a Dutch translation (nl.yaml) as well.

Perhaps it is wise to maintain a registry for translation maintainers? I 
volunteer for the Dutch version :)

Regards,
 Erik.


John W. Long wrote:
 ?? wrote:
   
 I have Japanese translation file (ja.yaml) .  And I want to submit  
 this file.
 What should I do?
 

 Attach it to a ticket on the Trac site.

 --
 John Long
 http://wiseheartdesign.com
 ___
 Radiant mailing list
 Post:   Radiant@lists.radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
   

-- 
Erik van Oosten
http://2008.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/

___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [slf4j-user] [ANN] JCL to Slf4j migration in a Maven environment

2007-07-20 Thread Erik van Oosten

Hi Ceki,

Hopefully it will not be necessary in 5 years :)

But, yes I want to keep it around for at least 5 years. I host it at home
together with another site which needs to be up for at least 5 years. The
hostname is a free DNS service from http://www.no-ip.com/, which proved to
be very reliable in the past. My uplink is no so wide, but within a couple
of months it will go to 10Mbit/s. Only when the repository becomes so
popular that the other site is starving for bandwidth I will have to shut it
down (or find another hosting party).

If you want absolute certainty, you can now also download the complete
repository from http://no-commons-logging.zapto.org/.

Regards,
Erik.



Ceki Gulcu-2 wrote:
 
 Hi Erik,
 
 Thank you for sharing this nifty hack. Do you think the no-commons-logging 
 repository at http://no-commons-logging.zapto.org/mvn2/ can stand the test
 of 
 time? How likely it is to still be there in 5 years?
 
 Cheers,
 
 
 -- 
 Ceki Gülcü
 

-- 
View this message in context: 
http://www.nabble.com/-ANN--JCL-to-Slf4j-migration-in-a-Maven-environment-tf4109103.html#a11705974
Sent from the Slf4J - user mailing list archive at Nabble.com.

___
user mailing list
user@slf4j.org
http://www.slf4j.org/mailman/listinfo/user

[slf4j-user] [ANN] JCL to Slf4j migration in a Maven environment

2007-07-19 Thread Erik van Oosten

Hi,

I wrote my own version of a commons-logging release to fool Maven and
completely exclude JCL from my application.

Read about the why and how on my blog:
http://day-to-day-stuff.blogspot.com/2007/07/no-more-commons-logging.html

Regards,
Erik.

--
Erik van Oosten
http://2008.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/

-- 
View this message in context: 
http://www.nabble.com/-ANN--JCL-to-Slf4j-migration-in-a-Maven-environment-tf4109103.html#a11685030
Sent from the Slf4J - user mailing list archive at Nabble.com.

___
user mailing list
user@slf4j.org
http://www.slf4j.org/mailman/listinfo/user


Re: Passing the component that is checked to IRoleCheckingStrategy.hasAnyRole()

2007-07-19 Thread Erik van Oosten

Hi Bart,

You can study the wicket-auth-roles project to see how you can use
authorization based on roles. Wicket-auth-roles does this at the component
level. Better yet, this (still incomplete but useable) wiki page shows you
how to integrate Acegi with Wicket:
http://cwiki.apache.org/WICKET/acegi-and-wicket-auth-roles.html.

Regards,
Erik.



Bart Molenkamp wrote:
 
 Hi,
 
 In IRoleCheckingStrategy, the method hasAnyRole() only gets
 a collection of roles to check against. Would it be possible
 to pass the component that is checked as well?
 
 I'm trying to integrate Wicket with Acegi security, and I
 want to let Acegi's AccessDecisionManager check if the
 instantiation or action is authorized or not. But I need to
 pass the 'secured object', which is the component in my case.
 
 I can provide a patch, if anyone wants it.
 
 Thanks,
 Bart.

--
Erik van Oosten
http://2008.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/
-- 
View this message in context: 
http://www.nabble.com/Passing-the-component-that-is-checked-to-IRoleCheckingStrategy.hasAnyRole%28%29-tf4108563.html#a11696777
Sent from the Wicket - Dev mailing list archive at Nabble.com.



Re: [Wicket-user] .properties encoding

2007-07-19 Thread Erik van Oosten

Or you escape everything as unicode characters (e.g. /u00ef, see
http://java.sun.com/docs/books/jls/third_edition/html/lexical.html#3.3), or
you use the xml syntax supported by Java 6 (sorry no idea how that works in
Wicket).

Regards,
Erik.



Matej Knopp-2 wrote:
 
 You can't. Java property files are always encoded in ISO-8859-1. In
 order to use other characters you need to escape them properly. There
 is an encoder/decoder for it and/or eclipse plugin.
 
 -Matej
 

-- 
View this message in context: 
http://www.nabble.com/.properties-encoding-tf4110226.html#a11688643
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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


[ANN] Complete JCL to Slf4j migration

2007-07-19 Thread Erik van Oosten

Hi,

Some time ago I asked how to globally suppress inclusion of a dependency.
This was necessary to exclude commons-logging from my application. The
question was unanswered.
I still did not find a solution so I wrote my own version of a
commons-logging release to fool Maven and get rid of JCL.

You can read about the why and how on my blog:
http://day-to-day-stuff.blogspot.com/2007/07/no-more-commons-logging.html

Regards,
Erik.

--
Erik van Oosten
http://2008.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/

-- 
View this message in context: 
http://www.nabble.com/-ANN--Complete-JCL-to-Slf4j-migration-tf4109124s177.html#a11685072
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [ANN] Complete JCL to Slf4j migration

2007-07-19 Thread Erik van Oosten

Good idea,

I'll change it immediately.

Regards,
Erik.



Jörg Schaible wrote:
 
 Hi Erik,
 
 Erik van Oosten wrote on Thursday, July 19, 2007 11:16 AM:
 
 Hi,
 
 Some time ago I asked how to globally suppress inclusion of a
 dependency. This was necessary to exclude commons-logging from my
 application. The question was unanswered. I still did not find a
 solution so I wrote my own version of a commons-logging release to
 fool Maven and get rid of JCL. 
 
 You can read about the why and how on my blog:
 http://day-to-day-stuff.blogspot.com/2007/07/no-more-commons-l
 ogging.html 
 
 in any case it would be better to use a version like 99.0-does-not-exist
 to mark it explicitly. I bet people will not like having to answering
 questions about JCL 9.0 on the JC-lists. It does not help, if you make a
 note in your blog and an artifact referencing this dep is later published
 to Maven central.
 
 - Jörg
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-ANN--Complete-JCL-to-Slf4j-migration-tf4109124s177.html#a11685434
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Radiant] iPhone-friendly Radiant Admin UI

2007-07-12 Thread Erik van Oosten

David Piehler wrote:
 Radiant works quite well on the iPhone (as does general web browsing), 
 but UI elements such as the small (+) (-) links and the add-a-tab 
 pop-ups are too small or awkward on the iPhone screen.
Actually, now that I am using Radiant for some time, I find them awkward 
an any screen. If you want to add/remove tabs your mouse milage shoots 
up quite a bit. Perhaps immediately adjacent to the tabs themselves is a 
better location for the  (+) and (-) buttons?

Regards,
Erik.

-- 
Erik van Oosten
http://2008.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/

___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Wicket-user] TabbedPanel tabs instanciation

2007-07-12 Thread Erik van Oosten

Xavier,

Just an idea, I am not sure this would work: do not use the first tab, and
switch to the second tab (index 1) if you do not have the parameter.

Regards,
Erik.


Xavier Hanin wrote:
 
 When debugging my application which uses a TabbedPanel, I realized that
 one
 tab was unnecessarily instanciated. After some investigation the reason is
 simply because I call setSelectedTab based on the parameters of my page,
 but
 since the instanciation of a TabbedPanel call setSelectedTab(0), the first
 tab is always instanciated, even though I don't need to render it.
 
 Do anyone know a workaround for this?
 

-- 
View this message in context: 
http://www.nabble.com/TabbedPanel-tabs-instanciation-tf4070193.html#a11567857
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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 a component more than once on a wicket page

2007-07-11 Thread Erik van Oosten

Note also that it /is/ possible to use a Model instance from more then 1
component.

Erik. 


Martijn Dashorst wrote:
 
 On 7/11/07, Chris Colman [EMAIL PROTECTED] wrote:
 Does this mean that I can't use the same component value more than once
 within a single page/component?
 
 Yes, or you need to resort to RepeatingView, ListView and its descendants.
 
 Is there a way to turn off reporting of this as an error? Is it really
 an error to bind to a component more than once in a markup unit?
 
 Yes it is an error to bind a component *instance* more than once.
 
 Martijn
 


-- 
Erik van Oosten
http://2008.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/ 
-- 
View this message in context: 
http://www.nabble.com/Using-a-component-more-than-once-on-a-wicket-page-tf4061402.html#a11539438
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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


[Radiant] Radiant and Dutchify - Date problems

2007-06-30 Thread Erik van Oosten
Hi,

I just installed Dutchify (http://blog.remvee.net/category/dutchify) with
ruby /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/script/plugin 
install http://svn.remvee.net/plugins/dutchify
for my new sun's new website http://milo-nu.zapto.org/. It took less 
then an hour, including adding some content!

Unfortunately not all tags use the Rails helpers to display dates. That 
is why you still see some English dates here and there.

If my sun gets a little bigger I'll try to write some patches. For now, 
please be aware that some plugins change Rails' behavior, and it is 
probably better to use these Rails helpers when available, to leverage 
these plugins.

Thanks for a great product,
regards,
 Erik.

-- 
Erik van Oosten
http://2008.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/

___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Wicket-user] Wicket Acegi ?

2007-05-31 Thread Erik van Oosten

As apparently not every author in this thread sees all the steps needed to
use Acegi with Wicket, I am currently writing a howto on the Wicket wiki.
The howto is extracted from a production system and describes the
combination of Wicket, Acegi and Wicket-auth-roles. It will take a couple of
days more as I can only work on it for at most an hour per day :(

I'll post again when I am done :)

Regards,
Erik.


-- 
Erik van Oosten
http://2007.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/


-- 
View this message in context: 
http://www.nabble.com/Wicket---Acegi---tf3833443.html#a10900512
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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: [Radiant] radiant powered website and my experience developing it

2007-05-29 Thread Erik van Oosten
The Radiant layout is the default. I found it was active immediately. 
Perhaps it works when you do not write a layout yourself?

Regards,
  Erik.


Raphael Bauduin wrote:
 - you can't use a radiant layout for your extension views

   

-- 
Erik van Oosten
http://2007.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/

___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Wicket-user] Autocomplete - selecting (higlighting) firstoption by default.

2007-05-29 Thread Erik van Oosten

Yes please!

other things that would be great:
-1- immediate open of the dropdown window upon entering the field
-2- control over the width of the dropdown window

I implemented -1- by adding a special class to the field 'immediateOpen' and
adapting the javascript (code available for download at 
http://day-to-day-stuff.blogspot.com/2006/10/wicket-autocompletion-improvements.html
my blok ).

I also implemented -2- with a horrible kludge. It's in the same download,
but please do not use this, its too ugly.

Regards,
Erik.



Ryan Gravener wrote:
 
 If you can, submit a patch.  I think most of the community would like that
 functionality.
 
 

-- 
View this message in context: 
http://www.nabble.com/Autocomplete---selecting-%28higlighting%29-first-option-by-default.-tf3815241.html#a10852897
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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] Wicket Acegi ?

2007-05-29 Thread Erik van Oosten

There was a thread some time ago.

In  http://www.nabble.com/forum/ViewPost.jtp?post=7285394framed=y this
message  I explained how we use Acegi in combination with wicket-auth-roles.

Regards,
Erik.


Mr Mean wrote:
 
 I am not sure if there is an existing wicket-acegi framework but i
 believe i have heard of people using them together.
 
 Optionally if you are using java 1.5 you could check out the
 wicket-auth-roles project.
 

--
Erik van Oosten
http://2007.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/
-- 
View this message in context: 
http://www.nabble.com/Wicket---Acegi---tf3833443.html#a10853872
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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] Wicket Acegi ?

2007-05-29 Thread Erik van Oosten

Indeed. I was replying to give a reference to using Acegi.

I think now, Swarm is the way to go.

Regards,
Erik.



Mr Mean wrote:
 
 According to your mail, you are only using acegi to do the
 authentication and let auth-roles handle the authorization.
 
 Swarm provides functionality to handle both authentication and
 authorization and is perfectly capable of delegating to whatever
 authentication framework you desire.
 
 Maurice
 

--
Erik van Oosten
http://2007.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/

-- 
View this message in context: 
http://www.nabble.com/Wicket---Acegi---tf3833443.html#a10854306
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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] integrating wicket and cocoon

2007-05-28 Thread Erik van Oosten

Hi Luca,

Wicket uses the locale for finding resources (including the templates). You
could do without but I am afraid it goes too far to let Wicket do something
about Cocoon's incomplete HttpServletRequest implementation.

So these are the options I see:
1. Make Cocoon behave itself by submitting a patch that will implement
HttpServletRequest#getLocale properly.
2. Wrap Cocoon's request with something of your own which returns a proper
Locale.

Since I do not know Cocoon, I can not help you with finding out you how to
do this.

Regards,
Erik.


Luca Marrocco wrote:
 
 the first two line is quite interesting:
 java.lang.UnsupportedOperationException
   at
 org.apache.cocoon.servletservice.util.BlockCallHttpServletRequest.getLocale(BlockCallHttpServletRequest.java:160)
   at
 wicket.protocol.http.servlet.ServletWebRequest.getLocale(ServletWebRequest.java:91)
 
 my question in wicket side of problem is. It is necessary getLocale?
 Can i inibite this call in wicket configuration?
 
 Luca
 

-- 
Erik van Oosten
http://2007.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/ 
-- 
View this message in context: 
http://www.nabble.com/integrating-wicket-and-cocoon-tf3824772.html#a10834370
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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: 1.3 release/graduation schema

2007-05-22 Thread Erik van Oosten

Bruno,

You can get snapshots from the maven snapshot repository at 
http://wicketstuff.org/maven/repository.


   Erik.


Bruno Borges schreef:

Martijn, isn't possible to release as an Early Access ?  :)

[]'s!




--
Erik van Oosten
http://2007.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/



Re: [Wicket-user] wicket vs. struts presentation

2007-05-22 Thread Erik van Oosten

Hi Florian,

1- I am surprised you want to compare against Struts. Almost any modern web
framework will kick ass compared to Struts.

2- I know only of one. It is the first article on this page on the wiki:
http://cwiki.apache.org/WICKET/articles-about-wicket.html. It has a very
nice comparison of Wicket and JSF listings. Its a simple application, you
can easily image how to do it in Struts.

3- Wicket is weak at sites that need to handle millions of hits per minute
(not many frameworks are good at this). Wicket is also not very good if you
need absolute and complete control on the format of your URLs. These are
both extremes. I think Wicket will do very well for at least 90% of the web
applications.

Good luck,
Erik. 


Florian Hehlen-2 wrote:
 
 Hi all,
 
 I am looking for help presenting wicket to my development team.
 
 1-Has anyone out there had to defend wicket vs. struts and would you 
 have any resources/links/presentations to pass this way to help in 
 presenting wicket to our group?
 
 2-Has anyone made any measurements/analysis of the code-base needed for 
 identical application in wicket vs. struts(or any other framework)
 
 3-Objectively, I am also looking for what wicket is weak at.
 
 florian
 

-- 
View this message in context: 
http://www.nabble.com/wicket-vs.-struts-presentation-tf3795289.html#a10735587
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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 Template Value of a Label

2007-05-22 Thread Erik van Oosten

You can change the template to:

DefaultValue label wicket:id=marked*/label

In the java code you do something like:

add(new WebMarkupContainer(marked).setVisible(condition));

Regards,
Erik.



severian wrote:
 
 I'm not sure that what I describe here is possible, but if it is, I'd be
 grateful if someone could point me in the right direction.
 
 I'd like to allow template designers to give some default text for a
 lable, e.g.:
 label wicket:id=myLabelDefaultValue/label
 
 And I'd then like to be able to either leave that text untouched, or
 append it with a * character, depending on some other criteria that I
 can query in the Page class.  But I can't find a way to make wicket retain
 the template value (DefaultValue), never mind let me append other
 characters.
 
 I was hoping (for example) that I could derive a class from Label and play
 some tricks with onComponentTagBody/replaceComponentTagBody.  But it looks
 like the templateValue (DefaultValue) is not available to me.
 
 Am I missing something?  Or does Wicket throw away the Label text set in
 the template before I have a chance to do anything with it?
 

-- 
View this message in context: 
http://www.nabble.com/Accessing-Template-Value-of-a-Label-tf3796116.html#a10737326
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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


<    2   3   4   5   6   7   8   9   10   11   >