Re: [Wicket-user] turning off markup validation

2007-06-07 Thread Juergen Donnerstag
ok understood. And isn't it than a typical Border situation? Please
take a look at Border and  MarkupComponentBorder and the respective
javadoc and junit tests to see how they work.

Juergen

On 6/8/07, Vit Rozkovec <[EMAIL PROTECTED]> wrote:
> Actually I do, sometime the conditional text is there (when there are
> subitems for current item), for all the rest the visibility of span is
> set to false.
>
>
> Vitek
>
> Juergen Donnerstag wrote:
> > Why do you need the fragments at all? The fragments body is a constant
> > text, correct? You don't change it, you don't change the visibility.
> >
> > Juergen
> >
> > On 6/7/07, Ví­t Rozkovec <[EMAIL PROTECTED]> wrote:
> >
> >> Good day,
> >> one more issue - is there some way how to turn of markup validation?
> >> In my template I am using this:
> >>
> >> 
> >>
> >>
> >>
> >>
> >>
> >>[text odkazu]
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> 
> >> 
> >> 
> >>
> >> 
> >> 
> >> 
> >>
> >> 
> >> 
> >> 
> >>
> >> 
> >> 
> >> 
> >> 
> >>
> >> The problem is that wicket complains about using fragments this way with
> >> message:
> >>
> >> WicketMessage: Tag '' (line 20, column 30) has a mismatched close
> >> tag at '' (line 21, column 1)
> >>
> >>
> >> My purpose is to first initialize a menu tree and then traversing whole
> >> tree, generating drop-down menu with the structure which can be seen here:
> >> http://www.cssplay.co.uk/menus/css/final_drop.txt
> >> The whole working menu can bee seen here:
> >> http://www.cssplay.co.uk/menus/final_drop.html
> >>
> >> What solution can be for my problem?
> >> Or does wicket has natively some support for creating dropdown menus? I
> >> was unable to find.
> >> Thanks for any help.
> >> Regards Vitek
> >>
> >> -
> >> This SF.net email is sponsored by DB2 Express
> >> Download DB2 Express C - the FREE version of DB2 express and take
> >> control of your XML. No limits. Just data. Click to get it now.
> >> http://sourceforge.net/powerbar/db2/
> >> ___
> >> Wicket-user mailing list
> >> Wicket-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >>
> >>
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

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


[Wicket-user] page map size

2007-06-07 Thread Scott Swank
Are these typical sizes for page maps?

wicket:/app:p:null:267,668 bytes
wicket:/app:p:null:155,861 bytes
wicket:/app:p:null:052,817 bytes

-- 
Scott Swank
reformed mathematician

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


[Wicket-user] WASPSession.logout(object)

2007-06-07 Thread craigdd

I see that the WASPSession.logout method takes a LoginContext.  Is there
somewhere within the SWARM implementation to grab the LoginContext used to
login?  Or when logging in is it up to the developer to put the LoginContext
somewhere...say maybe the session itself?

Thanks
Craig
-- 
View this message in context: 
http://www.nabble.com/WASPSession.logout%28object%29-tf3887102.html#a11018551
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] turning off markup validation

2007-06-07 Thread Vit Rozkovec
Actually I do, sometime the conditional text is there (when there are 
subitems for current item), for all the rest the visibility of span is 
set to false.


Vitek

Juergen Donnerstag wrote:
> Why do you need the fragments at all? The fragments body is a constant
> text, correct? You don't change it, you don't change the visibility.
>
> Juergen
>
> On 6/7/07, Ví­t Rozkovec <[EMAIL PROTECTED]> wrote:
>   
>> Good day,
>> one more issue - is there some way how to turn of markup validation?
>> In my template I am using this:
>>
>> 
>>
>>
>>
>>
>>
>>[text odkazu]
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> 
>> 
>> 
>>
>> 
>> 
>> 
>>
>> 
>> 
>> 
>>
>> 
>> 
>> 
>> 
>>
>> The problem is that wicket complains about using fragments this way with
>> message:
>>
>> WicketMessage: Tag '' (line 20, column 30) has a mismatched close
>> tag at '' (line 21, column 1)
>>
>>
>> My purpose is to first initialize a menu tree and then traversing whole
>> tree, generating drop-down menu with the structure which can be seen here:
>> http://www.cssplay.co.uk/menus/css/final_drop.txt
>> The whole working menu can bee seen here:
>> http://www.cssplay.co.uk/menus/final_drop.html
>>
>> What solution can be for my problem?
>> Or does wicket has natively some support for creating dropdown menus? I
>> was unable to find.
>> Thanks for any help.
>> Regards Vitek
>>
>> -
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>> 
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>   


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


Re: [Wicket-user] Wicket Security Configuration Question

2007-06-07 Thread Maurice Marrink
Thanks, Craig

I've updated the getting started to include the example for the
default mode, which is what most likely you will be using. I am sorry
to say that as of yet i do not have an ETA for the examples but i will
post it on the mailing list when i have them ready.

Maurice

On 6/7/07, craigdd <[EMAIL PROTECTED]> wrote:
>
> This original post was under wicket stuff users list and I've reposted it
> hear for more visibility, as requested by Martijn.  The following is the
> response that I got from Maurice.
>
> Hi,
>
> what i mean is this: By default SecurePageLink (and all other links
> with the same securitycheck) checks for an enable action on the page
> the link points to. This check occurs both in the render (where is
> decided if the link should be clickable) and in the onclick (just to
> check if nobody spoofed an url to trigger a link click where it is not
> allowed).
>
> Maybe an example will make things more clear (note to self to update
> the getting started)
> HomePage contains a SecurePageLink to PageA.
> We should declare at least .HomePage, "render"; in our policy or
> we will never see the homepage. With just this the link will not be
> rendered because it lacks .PageA, "render";
> So if we put that in the policy to we will see a disabled link.
> (wicket turns it into a span by default) but because the component is
> still available on the server side someone could spoof the url and
> trigger wicket into thinking the link was clicked, fortunatly the
> second check i mentioned earlier will detect this and send you to the
> accessdenied page.
> Only if we make sure our policy also contains .PageA, "enable";
> the link will be fully operational.
>
> I hope this answered your question. :)
>
> But if you want to get realy confused you should read on because there
> is an alternative mode in which it is possible to show the link even
> if we have not granted render to PageA.
> I am actually working on some examples showing this alternate mode,
> but they are not yet available.
> To activate the alternate rendering mode you need to do this:
> ((LinkSecurityCheck)link.getSecurityCheck()).setUseAlternativeRenderCheck(true);
> Given the above example and a policy file only containing
> HomePage, "inherit, render";
> the link will render as a disabled link. Note the inherit, this means
> all child components on the homepage are allowed to render. Optionally
> we could replace that one line with the following two lines
> HomePage, "render"; and HomePage:link, "render"; Assuming the
> wicket id of our link is link :) To enable the link we would still
> require PageA, "enable"; in our policy.
>
> Thanks for checking out swarm and wasp, i hope i did not just confuse
> the hell out you :)
>
> Maurice
>
>
>
> craigdd wrote:
> >
> > In look looking the getting started page for wicket security I came across
> > the following block on text when describing the configuration of
> > principals.
> >
> > What we just did is grant everyone the right to see (render) our HomePage,
> > if there are secure components on the homepage we can see them too
> > (inherit). In addition we granted links to our homepage the right to be
> > clicked (enable). Because we do not want to give links on our homepage the
> > right to be clicked we did not place the enable action on the previous
> > line with the inherit. If we know for a fact that there are absolutely no
> > links pointing to the homepage we could delete the second line, but
> > generally you will want these two lines for any given secure page. If you
> > think, what a long line isn't there a shorter way, then i have good news
> > for you. Hive supports aliases. This means that besides the build in
> > aliases for permissions you can add your own aliases for permissions,
> > principals and names, just not for actions!. aliases can be concatenated
> > but not nested. sow if we rewrite our policy to use aliases we get
> >
> > Just to clarify, when you say "In addition we granted links to our
> > homepage the right to be clicked (enable)", does this mean that the link,
> > which I assume you mean , is able to be physically clicked? And if it was
> > the opposite, as is the next line of the configuration "HomePage",
> > "enable"", does this mean that the link is disabled to the user, or that
> > it is enabled but you will get an access error exception on the server
> > side?
> >
> > Thanks
> > Craig
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Wicket-Security-Configuration-Question-tf3884414.html#a11009846
> 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/
> ___
> Wi

Re: [Wicket-user] Wicket 1.2.6 Development mode serialization checks and remote EJB's

2007-06-07 Thread Johan Compagner

i did understand you, if you can't do anything to the object that is
generated
is fine by me. But i still say, don't have it as a serializeable field in
your pages
that you can handle. Just lookup the EJB when you need it and cache it in a
transient variable

johan


On 6/7/07, salmas <[EMAIL PROTECTED]> wrote:



Thanks so much Eelco! Your reply is exactly what i was looking for! We are
using JDK 1.4 so I cannot use annotations but the other thing would work.
Johan, I don't think you understand what the unserializable object is. My
remote EJB is serializable by definition. However, the object I am having
issues is an internally generated rmi stub created by WebLogic. This
object
was not created by me, I have no control over it and should not even be
aware of what the exact implementation of this stub is since this is all
handled behind the scenes by WebLogic is but it became an issue because in
debug mode wicket tries to serialize it.


Eelco Hillenius wrote:
>
>> It's not a case of an unknown reference causing the not serializable
>> exception. I know which object is not serializable and it is the
concrete
>> proxy object created by WebLogic for my remote EJB. I ended up checking
>> if I
>> was in development mode and then using a transient variable and then
>> using a
>> another variable which is not transient when the app is running in a
>> production environment. I was hesitant to simply mark the EJB as
>> transient
>> in case it caused issues in the production environment. Thanks all for
>> your
>> replies, they helped confirm that there wasn't a workaround other than
>> marking it transient.
>
> But there is. You can turn the check off, even for development mode.
> See IDebugSettings#setSerializeSessionAttributes[1]
>
> What you probably want in the end though, is a construct like
> @SpringBean or just look the bean up right at the moment you need it
> without holding the reference.
>
> Eelco
>
> [1]
>
http://wicket.sourceforge.net/apidocs/wicket/settings/IDebugSettings.html
>
>
-
> 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
>
>

--
View this message in context:
http://www.nabble.com/Wicket-1.2.6-Development-mode-serialization-checks-and-remote-EJB%27s-tf3866878.html#a11010152
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

-
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] form action url

2007-06-07 Thread Frank Bille

Hi

Unless you have a specific reason to use that Filter for authorization I
surgest that you take a look at SimplePageAuthorizationStrategy, which
allows you to define which pages should be protected:

http://www.wicketframework.org/apidocs/wicket/authorization/strategies/page/SimplePageAuthorizationStrategy.html

Then you don't have to worry about if the url is correct according to you
filter.

Frank


On 6/6/07, Scott Lusebrink < [EMAIL PROTECTED]> wrote:


I have a Filter which determines if a page is protected or not based of
the URI.  If the page is protected and the user is not logged in then it
will redirect them to the login page.  On a unprotected page (Request
Account) there is a form which submits their information for a new account.
the action of this form is rendering as 
action="/paws?wicket:interface=:11:accountForm::IFormSubmitListener".
This makes the the URI /paws   Is there a way to have this form action POST
to its page, to make it

action="/paws/AccountPage?wicket:interface=:11:accountForm::IFormSubmitListener".
  Does the page know about its own mapping?

Otherwise I will have to a hack and check the QueryString on anything going to 
/paws


Scott


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


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


Re: [Wicket-user] editable tree table and select lists

2007-06-07 Thread NYSophia

Not yet, but we will.   We have to learn more about wicket first.  

Eelco Hillenius wrote:
> 
> Not sure, but ultimately, probably yes :) Did you try?
> 
> Eelco
> 
> On 6/5/07, NYSophia <[EMAIL PROTECTED]> wrote:
>>
>> Is it possible to put select lists inside an editable tree table?
>> --
>> View this message in context:
>> http://www.nabble.com/editable-tree-table-and-select-lists-tf3875441.html#a10981204
>> 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
>>
> 
> -
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/editable-tree-table-and-select-lists-tf3875441.html#a11016169
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 did not make the grade.

2007-06-07 Thread howzat

I too would be sad to announce this outcome, especially after investing the
time necessary to research and evaluate the options and having looked into
some of the ways wicket improves the whole development experience for web
apps and, the quality of the end product.
I have only been working with wicket for a short time but can already
confirm, coming from a very OO background, that it is a pleasure to develop
with. The philosophy and design of the framework just make sense; they have
clearly been well thought out - the design and user experience (ie the
developers' experience) is second to no other "competing" framework that I
have  come across.
I agree that it takes a bit of learning, especially if an OO solution for
the web-tier is not critical and the team is already familiar with Model-2,
but, in my experience, there is no point dwelling on your team's decision if
it has already been made. At the end of the day, most of these frameworks do
work and are proven too, it's just that some are more interesting, powerful
and enjoyable to work with, especially on larger applications.
If during a future evaluation you were to come to this forum looking for
pointers and answers about "how to do stuff in wicket" (and I do think that
the documentation/examples can be improved in due course, hopefully once the
incubation dust has settled) before your decision is reached, I am sure that
forum members here with a much greater feel for wicket than myself, would be
pleased to offer guidance/suggestions/feedback (and quickly, as you can see
from the high-quality, unbiased responses you have already received on this
thread) on some of the points your team concluded were wicket's relative
merits or otherwise.
Good luck with your project. 




Florian Hehlen-2 wrote:
> 
> HI all,
> 
> I am sad to announce that my company did not choose to use wicket after 
> comparison with struts 2. :-(
> 
> One criticism that came out as we were looking at Wicket code was that 
> there seems to be a need to write a lot of Java code in a ListView for 
> such things as displaying a table. Although I did not see this issue as 
> out-weighing all the benefits, many of my colleagues did.
> 
> Is there any plan or push or hidden feature that allows for a bean to be 
> directly mapped to a template without having to declare new Label(...) 
> for each field in the ListView. I think this would be a great win for 
> Wicket if adding those low-level components was only necessary when one 
> wants to add special handling, formating, validation, etc.
> 
> thanks,
> Florian.
> 
> -
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/wicket-did-not-make-the-grade.-tf386.html#a11015607
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] Form redirect issue

2007-06-07 Thread hillj2

This may be an issue with our proxy server not being able to handle redirects
properly.  We found on the post redirect it was sending the port/path of our
app server back to the browser for the redirect.  When we implemented the
ONE_PASS_RENDER strategy it fixed the default form processing.

For now we're still using the Referer header to redirect back to our
non-wicket pages, because I don't know how to get the correct URL to
redirect to and haven't had enough time playing around with 1.3 to find an
alternative solution, since we've been rushed just to get the form working
for now.  Hopefully I'll have time to play around with 1.3 some more to find
a better solution, but at least the form is functioning for now.

Joel



hillj2 wrote:
> 
> We're still having issues with our reverse proxy.  This doesn't even
> involve the redirect issue yet.  When our form hits user-defined
> validation errors we pass messages back to the feedback panel an then do
> nothing (so the default behavior kicks in to send it back to the form
> page).  But the url it comes up with to return to the page is bogus.  The
> wicket logs output:
> 
> DEBUG 2007-06-07 10:54:38,378 http.WebResponse (redirect:196) -
> Redirecting to ?wicket:interface=:0
> 
> which is just the query string.  Am I missing some major configuration
> parameter?  Or is the default behavior just not doing the right thing?
> 
> Thanks.
> 
> Joel
> 
> 
> 
> 
> hillj2 wrote:
>> 
>> Well after playing around with setContextPath() a bit, we've decided to
>> try and get 1.3 working.  It would be nice if it had an official release,
>> but for now we only have one form done in wicket, so that shouldn't be
>> too much of a problem.  By the time we have more wicket pages a stable
>> 1.3 release will probably be available.  Thanks for you help, I'll let
>> you know how it turns out (or if we still have issues).
>> 
>> Joel
>> 
>> 
>> 
>> Al Maw wrote:
>>> 
>>> Joel Hill wrote:
 We have a JSP servlet application that we're slowing beginning to
 convert over to wicket.  Our first wicket page is a form with submit
 and
 cancel buttons, either of which (unless there is a validation error)
 will redirect the user back to the old servlet using the following
 code:
 
 protected void onSubmit() {
   String contextPath =
 getApplication().getApplicationSettings().getContextPath();
   String url = contextPath + "/servletPath?queryString";
   getRequestCycle().setRequestTarget(new RedirectRequestTarget(url));
 }
 
 The problem is that our app is behind a reverse proxy and
 getContextPath() is getting the path of the webserver our app is
 running
 on, not the reverse proxy's path, and so the redirect fails.  Is there
 another way to redirect our form back to the non-wicket servlet after a
 form submit/cancel?  So far the only way I've been able to get it to
 work is by grabbing the "Referer" header of the http request, and then
 parsing it so I can replace the path of our wicket servlet with our
 non-wicket servlet, but I've read it's up to the client whether or not
 that header gets sent, so if it's not there, there's no other way I
 know
 of to get the correct path.
 
 We're using wicket 1.2.5 on an OC4J 10.1.3 webserver.
>>> 
>>> Yeah, in 1.2.x you'll have to call setContextPath() on the application 
>>> settings object so it does the right thing (probably returns "/" in this 
>>> case).
>>> 
>>> There's very little you can do with version 1.2.x to make this nice, I'm 
>>> afraid. We've put a whole load of work in for 1.3.x to make it work 
>>> transparently behind a reverse proxy. For example, this case could be 
>>> handled elegantly using Request.getRelativePathPrefixToContextRoot(), 
>>> which will give you an appropriate number of "../" to prepend to make it 
>>> all work.
>>> 
>>> Al
>>> 
>>> -- 
>>> Alastair Maw
>>> Wicket-biased blog at http://herebebeasties.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
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Form-redirect-issue-tf3872278.html#a11013468
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/
_

Re: [Wicket-user] FormTester, DropDownChoice & Validation

2007-06-07 Thread Ingram Chen

I dig into 1.3 trunk, and yes, in FormTester constructor:

*else* *if* ( (formComponent *instanceof* DropDownChoice) ||
(formComponent *instanceof* RadioChoice) ||
   (formComponent *instanceof* CheckBox))
{
 setFormComponentValue(formComponent, formComponent.getValue());
}

current implementation does not consider null model object.  I think
possible fix is:

*else* *if* ( (formComponent *instanceof* DropDownChoice) ||
(formComponent *instanceof* RadioChoice) ||
   (formComponent *instanceof* CheckBox))
{
 if(formComponent.getModelObject() == null)
 {
setFormComponentValue(formComponent, formComponent.getValue());
 }
}

and It seems FormTester lack support for RadioGroup while construction,
(only CheckGroup supported).


On 6/7/07, severian <[EMAIL PROTECTED]> wrote:



I'm having a problem with DropDownChoice components & FormTester.  I've
declared my DropDownChoice as required, which works fine via the browser -
the correct validation feedback is given when I fail to make a selection.

However, when trying to write a test demonstrating this, no validation
feedback is given.  It seems that when using the browser,
FormComponent.checkRequired() is given the input as "" (empty string), and
so correctly declares this as invalid.  But when using FormTester,
FormComponent.checkRequired() is given the input as "-1", and so correctly
declares this as valid.

This smells like a bug somewhere inside FormTester - the value "-1" should
not be set for a DropDownChoice with no selection.  If I call
FormTester.setValue(dropDownId, "") before calling FormTester.submit(), I
get the desired behaviour, but obviously that's pretty ugly.  Anyone got
any
ideas or should I raise a JIRA?
--
View this message in context:
http://www.nabble.com/FormTester%2C-DropDownChoice---Validation-tf3884382.html#a11009710
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





--
Ingram Chen
��便��啦: http://dinbendon.net
blog: http://www.javaworld.com.tw/roller/page/ingramchen
-
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] turning off markup validation

2007-06-07 Thread Juergen Donnerstag
Why do you need the fragments at all? The fragments body is a constant
text, correct? You don't change it, you don't change the visibility.

Juergen

On 6/7/07, Ví­t Rozkovec <[EMAIL PROTECTED]> wrote:
> Good day,
> one more issue - is there some way how to turn of markup validation?
> In my template I am using this:
>
> 
>
>
>
>
>
>[text odkazu]
>
>
>
>
>
>
>
>
>
> 
> 
> 
>
> 
> 
> 
>
> 
> 
> 
>
> 
> 
> 
> 
>
> The problem is that wicket complains about using fragments this way with
> message:
>
> WicketMessage: Tag '' (line 20, column 30) has a mismatched close
> tag at '' (line 21, column 1)
>
>
> My purpose is to first initialize a menu tree and then traversing whole
> tree, generating drop-down menu with the structure which can be seen here:
> http://www.cssplay.co.uk/menus/css/final_drop.txt
> The whole working menu can bee seen here:
> http://www.cssplay.co.uk/menus/final_drop.html
>
> What solution can be for my problem?
> Or does wicket has natively some support for creating dropdown menus? I
> was unable to find.
> Thanks for any help.
> Regards Vitek
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

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


Re: [Wicket-user] Wicket 1.2.6 Development mode serialization checks and remote EJB's

2007-06-07 Thread salmas


It would be a simple thing to look up the bean in each method in the service
locater as versus keeping a reference. However, this is not how the existing
service locaters here have been coded and they've been clear about wanting
the new stuff to mimic the old stuff. 
The best way to solve the issue would be to get rid of EJB altogather since
the usage requirements of the project are pretty light but I'm not here to
change the world (none of these arguments would be easy), just to get their
project coded for them as per their requirements. They are going to be
maintaining it so I suppose it's fair to code it exactly like the existing
code.


Eelco Hillenius wrote:
> 
>> Eelco, I realized that you are recommending using Spring or looking up
>> the
>> bean on the fly some other way but I am working for a place where Spring
>> is
>> not part of the "approved" stack and they have an established way that
>> access to EJB's is coded.
> 
> Not really. I mean a @SpringBean *construct*, like you can find in the
> Spring integration project. That project generates proxies for every
> @SpringBean annot found. These proxies are light and serializable, and
> internally hold a transient reference to the actual spring bean. When
> serialized, the spring bean instance is discarded; the proxy will
> locate it again when it is called.
> 
> You said you can't use annotations, so that trick wouldn't go here for
> you. There used to be a project[1] (now only for 1.2.x) that used
> commons attributes[2] for the same purpose, but we're not maintaining
> it for 1.3 anymore (though it is stored as a wicket-stuff project
> now[3]).
> 
> Alternatively, you can just locate the bean just in time. Are you sure
> you need to keep a reference to it in your component(s)? And consider
> that *if* you need a reference, it's probably per-request (so you'll
> want a new one when a new request starts). If that is true, you can
> just set the reference lazily (get it when you actually access it),
> and null it in the components onDetach method (override that method;
> it will be called when a request is handled) so that it won't be
> serialized.
> 
> Eelco
> 
> [1]
> http://svn.apache.org/repos/asf/incubator/wicket/branches/wicket-1.2.x/wicket-spring-annot
> [2] http://jakarta.apache.org/commons/attributes/
> [3]
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-spring-cattr
> 
> -
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-1.2.6-Development-mode-serialization-checks-and-remote-EJB%27s-tf3866878.html#a11011221
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 1.2.6 Development mode serialization checks and remote EJB's

2007-06-07 Thread Igor Vaynberg

has this already been mentioned?

http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-javaee

-igor


On 6/7/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


> Eelco, I realized that you are recommending using Spring or looking up
the
> bean on the fly some other way but I am working for a place where Spring
is
> not part of the "approved" stack and they have an established way that
> access to EJB's is coded.

Not really. I mean a @SpringBean *construct*, like you can find in the
Spring integration project. That project generates proxies for every
@SpringBean annot found. These proxies are light and serializable, and
internally hold a transient reference to the actual spring bean. When
serialized, the spring bean instance is discarded; the proxy will
locate it again when it is called.

You said you can't use annotations, so that trick wouldn't go here for
you. There used to be a project[1] (now only for 1.2.x) that used
commons attributes[2] for the same purpose, but we're not maintaining
it for 1.3 anymore (though it is stored as a wicket-stuff project
now[3]).

Alternatively, you can just locate the bean just in time. Are you sure
you need to keep a reference to it in your component(s)? And consider
that *if* you need a reference, it's probably per-request (so you'll
want a new one when a new request starts). If that is true, you can
just set the reference lazily (get it when you actually access it),
and null it in the components onDetach method (override that method;
it will be called when a request is handled) so that it won't be
serialized.

Eelco

[1]
http://svn.apache.org/repos/asf/incubator/wicket/branches/wicket-1.2.x/wicket-spring-annot
[2] http://jakarta.apache.org/commons/attributes/
[3]
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-spring-cattr

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

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


Re: [Wicket-user] editable tree table and select lists

2007-06-07 Thread Eelco Hillenius
Not sure, but ultimately, probably yes :) Did you try?

Eelco

On 6/5/07, NYSophia <[EMAIL PROTECTED]> wrote:
>
> Is it possible to put select lists inside an editable tree table?
> --
> View this message in context: 
> http://www.nabble.com/editable-tree-table-and-select-lists-tf3875441.html#a10981204
> 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
>

-
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] Injecting session scoped beans with wicket-spring-annot

2007-06-07 Thread Igor Vaynberg

this might be due to the fact that wicket performs a test-lookup on the bean
to make sure its there and if not fail early. that might be what is causing
the problem. will need to have a look.

see AnnotProxyFieldValueFactory.testLocator(). that was ok for singleton
beans, but probably not ok for prototype beans if you really care about how
many are created. so we might have to remove that failfast functionality.

-igor


On 6/4/07, Daniel Stoch <[EMAIL PROTECTED]> wrote:


It seems that in Wicket 1.3 session and request scoped beans work ok.
But I've done only a very simple tests.

PS. The problem with prototype scoped beans (multiple instance
creation) still exists.

Daniel

On 6/1/07, Daniel Stoch <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I want to inject a spring bean with scope="session" into my page using
> @SpringBean annotation. I have added into my web.xml declaration:
> 
> 
>
org.springframework.web.context.request.RequestContextListener
> 
> 
> but it seems that this bean is still created once for whole
> application (like a singleton).
> Does session and request scoped beans are supported by
> wicket-spring-annot (and of course wicket-spring) library or have I
> missed something in my configuration?
>
> PS. Singletons and prototypes works ok. I'm using Wicket 1.2.6.
>
> Best regards,
> Daniel Stoch
>

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

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


Re: [Wicket-user] Prototype scoped Spring beans

2007-06-07 Thread Igor Vaynberg

hrm. you say you will have a serialization problem if you lookup the bean
directly and hold on to it. but isnt that exactly what you want? to pull out
a prototype bean and keep it inside the form's scope? the form is in
httpsession and so the bean will be serialized. so if that is what you want
to do you have to make sure the bean is serializable and do the lookup
yourself.

we can probably add @SpringBean(transient=false) or something like that to
keep the reference instead of discarding it, but that wont solve your
serialization problem, it will just save you doing the lookup yourself.

so what exactly do you want?

-igor

On 6/3/07, Rüdiger Schulz <[EMAIL PROTECTED]> wrote:


I put a breakpoint in the constructor of my Form, which has the
@SpringBean annotation on ia property named logic.

Before the super() call, logic is null.

After that, it is set to $Proxy39, with a h-attribute to a
org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler. The target
property of the handler is null.

After the next line, where I call a method from logic, the target
property is set to the bean instance.

So it seems that the reference gets lost in the first call.


But, as you said that the bean is transient anyway, I think that
prototype beans could not be used that way for holding state of wicket
components, because that state should certainly also be kept when
using the back button.

I'm not sure what is best then. I could get a reference to the spring
bean directly from ApplicationContext, and just keep it. But then I
would face the problem of serialization.

The best thing would be IMHO if the proxy could somehow do an
automatic re-lookup from Spring for prototype beans, so that not a new
instance is fetched from the container, but the same as before. But I
don't know enough about Spring to say if that is even possible.



2007/6/3, Eelco Hillenius <[EMAIL PROTECTED]>:
> I'm not that familiar with the code, but the interesting thing is that
> LazyInitProxyFactory$JdkHandler does cache the bean it located:
>
> if (target == null)
> {
> target = locator.locateProxyTarget();
> }
> return proxy.invoke(target, args);
>
> The target is a transient member of JdkHandler and judging from the
> code, once the bean is located it should just be reused until the page
> is serialized/ deserialized (for backbutton support or when
> clustered).
>
> Can you use you debugger to find out what exactly happens?
>
> Eelco
>
> On 6/1/07, Rüdiger Schulz <[EMAIL PROTECTED]> wrote:
> > Right, forgot the Stacktraces:
> >
> > The first when calling super():
> > at KitManagementBean.(KitManagementBean.java:34)
> > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
> > at sun.reflect.NativeConstructorAccessorImpl.newInstance(
NativeConstructorAccessorImpl.java:39)
> > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
DelegatingConstructorAccessorImpl.java:27)
> > at java.lang.reflect.Constructor.newInstance(Constructor.java
:513)
> > at org.springframework.beans.BeanUtils.instantiateClass(
BeanUtils.java:85)
> > at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate
(SimpleInstantiationStrategy.java:61)
> > at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean
(AbstractAutowireCapableBeanFactory.java:732)
> > at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance
(AbstractAutowireCapableBeanFactory.java:720)
> > at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
(AbstractAutowireCapableBeanFactory.java:386)
> > at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:270)
> > at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:164)
> > at
org.springframework.context.support.AbstractApplicationContext.getBean(
AbstractApplicationContext.java:707)
> > at org.apache.wicket.spring.SpringBeanLocator.lookupSpringBean
(SpringBeanLocator.java:240)
> > at
org.apache.wicket.spring.SpringBeanLocator.locateProxyTarget(
SpringBeanLocator.java:163)
> > at
org.apache.wicket.spring.injection.annot.AnnotProxyFieldValueFactory.testLocator
(AnnotProxyFieldValueFactory.java:124)
> > at
org.apache.wicket.spring.injection.annot.AnnotProxyFieldValueFactory.getFieldValue
(AnnotProxyFieldValueFactory.java:99)
> > at org.apache.wicket.injection.Injector.inject(Injector.java
:109)
> > at org.apache.wicket.injection.ConfigurableInjector.inject(
ConfigurableInjector.java:40)
> > at
org.apache.wicket.injection.ComponentInjector.onInstantiation(
ComponentInjector.java:54)
> > at
org.apache.wicket.Application.notifyComponentInstantiationListeners(
Application.java:916)
> > at or

Re: [Wicket-user] Wicket 1.2.6 Development mode serialization checks and remote EJB's

2007-06-07 Thread Eelco Hillenius
> Eelco, I realized that you are recommending using Spring or looking up the
> bean on the fly some other way but I am working for a place where Spring is
> not part of the "approved" stack and they have an established way that
> access to EJB's is coded.

Not really. I mean a @SpringBean *construct*, like you can find in the
Spring integration project. That project generates proxies for every
@SpringBean annot found. These proxies are light and serializable, and
internally hold a transient reference to the actual spring bean. When
serialized, the spring bean instance is discarded; the proxy will
locate it again when it is called.

You said you can't use annotations, so that trick wouldn't go here for
you. There used to be a project[1] (now only for 1.2.x) that used
commons attributes[2] for the same purpose, but we're not maintaining
it for 1.3 anymore (though it is stored as a wicket-stuff project
now[3]).

Alternatively, you can just locate the bean just in time. Are you sure
you need to keep a reference to it in your component(s)? And consider
that *if* you need a reference, it's probably per-request (so you'll
want a new one when a new request starts). If that is true, you can
just set the reference lazily (get it when you actually access it),
and null it in the components onDetach method (override that method;
it will be called when a request is handled) so that it won't be
serialized.

Eelco

[1] 
http://svn.apache.org/repos/asf/incubator/wicket/branches/wicket-1.2.x/wicket-spring-annot
[2] http://jakarta.apache.org/commons/attributes/
[3] 
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-spring-cattr

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


[Wicket-user] TreeTable : html tags in cells howto

2007-06-07 Thread Matthieu Casanova

Hi, I wanted to add some custom tags in the cells of my TreeTable, but if I
return html code in the public String renderNode(TreeNode node) method of my
column,
the tags are stripped.
I found this idea to do what I want, it works but it's not very well :
I had to replace the TreeFragment used in TreeTable by my own TreeFragment,
and set the flag "FLAG_ESCAPE_MODEL_STRINGS" to false on the Label in the
Fragment
To replace the TreeFragment I had to extend the TreeTable. Here is what I
did (I'm using Wicket 1.2.6)

private static class MyTree extends TreeTable
   {
   public MyTree(String id, TreeModel model, IColumn columns[])
   {
   super(id, model, columns);
   }

   protected Component newTreePanel(MarkupContainer parent, String id,
TreeNode node, int level, IRenderNodeCallback renderNodeCallback)
   {
   return new TreeFragment(id, node, level,
renderNodeCallback);
   }

   public class TreeFragment extends Fragment
   {
   private static final long serialVersionUID = 1L;

   public TreeFragment(String id, final TreeNode node, int level,
   final
TreeTable.IRenderNodeCallbackrenderNodeCallback)
   {
   super(id, "fragment");

   add(newIndentation(this, "indent", node, level));

   add(newJunctionLink(this, "link", "image", node));

   MarkupContainer nodeLink = newNodeLink(this, "nodeLink",
node);
   add(nodeLink);

   nodeLink.add(newNodeIcon(nodeLink, "icon", node));

   Label child = new Label("label", new AbstractReadOnlyModel()
   {
   private static final long serialVersionUID = 1L;

   /**
* @see wicket.model.AbstractReadOnlyModel#getObject(
wicket.Component)
*/
   public Object getObject(Component c)
   {
   return renderNodeCallback.renderNode(node);
   }
   });
   child.setEscapeModelStrings(false);
   nodeLink.add(child);
   }
   }
   }


I think there is something strange in this API : the ida of using the
TreeModel was great, but why not using something close to the
TreeCellRenderer so it would be possible to have true components in the
cells

Matthieu
-
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 1.2.6 Development mode serialization checks and remote EJB's

2007-06-07 Thread salmas

Eelco, I realized that you are recommending using Spring or looking up the
bean on the fly some other way but I am working for a place where Spring is
not part of the "approved" stack and they have an established way that
access to EJB's is coded. I am a contracter here and I have to do things
exactly how it has been established by the architecture team. I will forward
your comments to them so that they can see the advantage of your approach,I
am sure they will be interested in the suggestion. 


Eelco Hillenius wrote:
> 
>> It's not a case of an unknown reference causing the not serializable
>> exception. I know which object is not serializable and it is the concrete
>> proxy object created by WebLogic for my remote EJB. I ended up checking
>> if I
>> was in development mode and then using a transient variable and then
>> using a
>> another variable which is not transient when the app is running in a
>> production environment. I was hesitant to simply mark the EJB as
>> transient
>> in case it caused issues in the production environment. Thanks all for
>> your
>> replies, they helped confirm that there wasn't a workaround other than
>> marking it transient.
> 
> But there is. You can turn the check off, even for development mode.
> See IDebugSettings#setSerializeSessionAttributes[1]
> 
> What you probably want in the end though, is a construct like
> @SpringBean or just look the bean up right at the moment you need it
> without holding the reference.
> 
> Eelco
> 
> [1]
> http://wicket.sourceforge.net/apidocs/wicket/settings/IDebugSettings.html
> 
> -
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-1.2.6-Development-mode-serialization-checks-and-remote-EJB%27s-tf3866878.html#a11010404
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] Form redirect issue

2007-06-07 Thread hillj2

We're still having issues with our reverse proxy.  This doesn't even involve
the redirect issue yet.  When our form hits user-defined validation errors
we pass messages back to the feedback panel an then do nothing (so the
default behavior kicks in to send it back to the form page).  But the url it
comes up with to return to the page is bogus.  The wicket logs output:

DEBUG 2007-06-07 10:54:38,378 http.WebResponse (redirect:196) - Redirecting
to ?wicket:interface=:0

which is just the query string.  Am I missing some major configuration
parameter?  Or is the default behavior just not doing the right thing?

Thanks.

Joel




hillj2 wrote:
> 
> Well after playing around with setContextPath() a bit, we've decided to
> try and get 1.3 working.  It would be nice if it had an official release,
> but for now we only have one form done in wicket, so that shouldn't be too
> much of a problem.  By the time we have more wicket pages a stable 1.3
> release will probably be available.  Thanks for you help, I'll let you
> know how it turns out (or if we still have issues).
> 
> Joel
> 
> 
> 
> Al Maw wrote:
>> 
>> Joel Hill wrote:
>>> We have a JSP servlet application that we're slowing beginning to
>>> convert over to wicket.  Our first wicket page is a form with submit and
>>> cancel buttons, either of which (unless there is a validation error)
>>> will redirect the user back to the old servlet using the following
>>> code:
>>> 
>>> protected void onSubmit() {
>>>   String contextPath =
>>> getApplication().getApplicationSettings().getContextPath();
>>>   String url = contextPath + "/servletPath?queryString";
>>>   getRequestCycle().setRequestTarget(new RedirectRequestTarget(url));
>>> }
>>> 
>>> The problem is that our app is behind a reverse proxy and
>>> getContextPath() is getting the path of the webserver our app is running
>>> on, not the reverse proxy's path, and so the redirect fails.  Is there
>>> another way to redirect our form back to the non-wicket servlet after a
>>> form submit/cancel?  So far the only way I've been able to get it to
>>> work is by grabbing the "Referer" header of the http request, and then
>>> parsing it so I can replace the path of our wicket servlet with our
>>> non-wicket servlet, but I've read it's up to the client whether or not
>>> that header gets sent, so if it's not there, there's no other way I know
>>> of to get the correct path.
>>> 
>>> We're using wicket 1.2.5 on an OC4J 10.1.3 webserver.
>> 
>> Yeah, in 1.2.x you'll have to call setContextPath() on the application 
>> settings object so it does the right thing (probably returns "/" in this 
>> case).
>> 
>> There's very little you can do with version 1.2.x to make this nice, I'm 
>> afraid. We've put a whole load of work in for 1.3.x to make it work 
>> transparently behind a reverse proxy. For example, this case could be 
>> handled elegantly using Request.getRelativePathPrefixToContextRoot(), 
>> which will give you an appropriate number of "../" to prepend to make it 
>> all work.
>> 
>> Al
>> 
>> -- 
>> Alastair Maw
>> Wicket-biased blog at http://herebebeasties.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
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Form-redirect-issue-tf3872278.html#a11010390
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 1.2.6 Development mode serialization checks and remote EJB's

2007-06-07 Thread salmas

Thanks so much Eelco! Your reply is exactly what i was looking for! We are
using JDK 1.4 so I cannot use annotations but the other thing would work. 
Johan, I don't think you understand what the unserializable object is. My
remote EJB is serializable by definition. However, the object I am having
issues is an internally generated rmi stub created by WebLogic. This object
was not created by me, I have no control over it and should not even be
aware of what the exact implementation of this stub is since this is all
handled behind the scenes by WebLogic is but it became an issue because in
debug mode wicket tries to serialize it. 


Eelco Hillenius wrote:
> 
>> It's not a case of an unknown reference causing the not serializable
>> exception. I know which object is not serializable and it is the concrete
>> proxy object created by WebLogic for my remote EJB. I ended up checking
>> if I
>> was in development mode and then using a transient variable and then
>> using a
>> another variable which is not transient when the app is running in a
>> production environment. I was hesitant to simply mark the EJB as
>> transient
>> in case it caused issues in the production environment. Thanks all for
>> your
>> replies, they helped confirm that there wasn't a workaround other than
>> marking it transient.
> 
> But there is. You can turn the check off, even for development mode.
> See IDebugSettings#setSerializeSessionAttributes[1]
> 
> What you probably want in the end though, is a construct like
> @SpringBean or just look the bean up right at the moment you need it
> without holding the reference.
> 
> Eelco
> 
> [1]
> http://wicket.sourceforge.net/apidocs/wicket/settings/IDebugSettings.html
> 
> -
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-1.2.6-Development-mode-serialization-checks-and-remote-EJB%27s-tf3866878.html#a11010152
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 did not make the grade.

2007-06-07 Thread Eelco Hillenius
> Bad bad bad bad thing that the examples for the wicket-extensions are either
> hard to find or not documented very well. I'm trying for half a day now to
> find an example markup for inserting a treetable, but could not find
> anything.

org.apache.wicket.examples.ajax.builtin.tree

> IMO it would be _very_ useful to make wars/jars/zips with Eclipse projects
> available for download for all wicket-extensions examples. And also easy to
> do, right?

You can get it straight from subversion at
http://svn.apache.org/repos/asf/incubator/wicket/trunk/jdk-1.5/wicket-examples.
Make it an Eclipse project by executing 'mvn eclipse:eclipse' and
you're ready to import it in your workspace.

> IMO programming with something new is very much like cooking: you never get
> it perfectly right before you see somebody else doing it properly. If you
> (experienced wicket users/wicket developers) just give us (beginners)
> readymade food for tasting, we'll never start cooking your receipes, no
> matter how much we like the taste. We have to see you cooking.

Sure. We feel we've done quite our bit with the examples though; most
constructs and components are convered, and if we introduce new ones,
we typically add them to the examples project. Also, it's a project we
do in our free time mostly, and our core goal is to deliver a
framework that works well for the current users. It's nice to get new
users on board, but it's a secondairy goal.

Anyway, if you miss something specific, please send a note/ open a
feature request, and hopefully we (the community) can help out.

Eelco

-
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 Security Configuration Question

2007-06-07 Thread craigdd

This original post was under wicket stuff users list and I've reposted it
hear for more visibility, as requested by Martijn.  The following is the
response that I got from Maurice.

Hi,

what i mean is this: By default SecurePageLink (and all other links
with the same securitycheck) checks for an enable action on the page
the link points to. This check occurs both in the render (where is
decided if the link should be clickable) and in the onclick (just to
check if nobody spoofed an url to trigger a link click where it is not
allowed).

Maybe an example will make things more clear (note to self to update
the getting started)
HomePage contains a SecurePageLink to PageA.
We should declare at least .HomePage, "render"; in our policy or
we will never see the homepage. With just this the link will not be
rendered because it lacks .PageA, "render";
So if we put that in the policy to we will see a disabled link.
(wicket turns it into a span by default) but because the component is
still available on the server side someone could spoof the url and
trigger wicket into thinking the link was clicked, fortunatly the
second check i mentioned earlier will detect this and send you to the
accessdenied page.
Only if we make sure our policy also contains .PageA, "enable";
the link will be fully operational.

I hope this answered your question. :)

But if you want to get realy confused you should read on because there
is an alternative mode in which it is possible to show the link even
if we have not granted render to PageA.
I am actually working on some examples showing this alternate mode,
but they are not yet available.
To activate the alternate rendering mode you need to do this:
((LinkSecurityCheck)link.getSecurityCheck()).setUseAlternativeRenderCheck(true);
Given the above example and a policy file only containing
HomePage, "inherit, render";
the link will render as a disabled link. Note the inherit, this means
all child components on the homepage are allowed to render. Optionally
we could replace that one line with the following two lines
HomePage, "render"; and HomePage:link, "render"; Assuming the
wicket id of our link is link :) To enable the link we would still
require PageA, "enable"; in our policy.

Thanks for checking out swarm and wasp, i hope i did not just confuse
the hell out you :)

Maurice



craigdd wrote:
> 
> In look looking the getting started page for wicket security I came across
> the following block on text when describing the configuration of
> principals.
> 
> What we just did is grant everyone the right to see (render) our HomePage,
> if there are secure components on the homepage we can see them too
> (inherit). In addition we granted links to our homepage the right to be
> clicked (enable). Because we do not want to give links on our homepage the
> right to be clicked we did not place the enable action on the previous
> line with the inherit. If we know for a fact that there are absolutely no
> links pointing to the homepage we could delete the second line, but
> generally you will want these two lines for any given secure page. If you
> think, what a long line isn't there a shorter way, then i have good news
> for you. Hive supports aliases. This means that besides the build in
> aliases for permissions you can add your own aliases for permissions,
> principals and names, just not for actions!. aliases can be concatenated
> but not nested. sow if we rewrite our policy to use aliases we get
> 
> Just to clarify, when you say "In addition we granted links to our
> homepage the right to be clicked (enable)", does this mean that the link,
> which I assume you mean , is able to be physically clicked? And if it was
> the opposite, as is the next line of the configuration "HomePage",
> "enable"", does this mean that the link is disabled to the user, or that
> it is enabled but you will get an access error exception on the server
> side?
> 
> Thanks
> Craig
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-Security-Configuration-Question-tf3884414.html#a11009846
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


[Wicket-user] Wicket Security Configuration Question

2007-06-07 Thread craigdd

In look looking the getting started page for wicket security I came across
the following block on text when describing the configuration of principals.

What we just did is grant everyone the right to see (render) our HomePage,
if there are secure components on the homepage we can see them too
(inherit). In addition we granted links to our homepage the right to be
clicked (enable). Because we do not want to give links on our homepage the
right to be clicked we did not place the enable action on the previous line
with the inherit. If we know for a fact that there are absolutely no links
pointing to the homepage we could delete the second line, but generally you
will want these two lines for any given secure page. If you think, what a
long line isn't there a shorter way, then i have good news for you. Hive
supports aliases. This means that besides the build in aliases for
permissions you can add your own aliases for permissions, principals and
names, just not for actions!. aliases can be concatenated but not nested.
sow if we rewrite our policy to use aliases we get

Just to clarify, when you say "In addition we granted links to our homepage
the right to be clicked (enable)", does this mean that the link, which I
assume you mean , is able to be physically clicked? And if it was the
opposite, as is the next line of the configuration "HomePage", "enable"",
does this mean that the link is disabled to the user, or that it is enabled
but you will get an access error exception on the server side?

Thanks
Craig
-- 
View this message in context: 
http://www.nabble.com/Wicket-Security-Configuration-Question-tf3884414.html#a11009812
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


[Wicket-user] FormTester, DropDownChoice & Validation

2007-06-07 Thread severian

I'm having a problem with DropDownChoice components & FormTester.  I've
declared my DropDownChoice as required, which works fine via the browser -
the correct validation feedback is given when I fail to make a selection.

However, when trying to write a test demonstrating this, no validation
feedback is given.  It seems that when using the browser,
FormComponent.checkRequired() is given the input as "" (empty string), and
so correctly declares this as invalid.  But when using FormTester,
FormComponent.checkRequired() is given the input as "-1", and so correctly
declares this as valid.

This smells like a bug somewhere inside FormTester - the value "-1" should
not be set for a DropDownChoice with no selection.  If I call
FormTester.setValue(dropDownId, "") before calling FormTester.submit(), I
get the desired behaviour, but obviously that's pretty ugly.  Anyone got any
ideas or should I raise a JIRA?
-- 
View this message in context: 
http://www.nabble.com/FormTester%2C-DropDownChoice---Validation-tf3884382.html#a11009710
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 1.2.6 Development mode serialization checks and remote EJB's

2007-06-07 Thread Eelco Hillenius
> It's not a case of an unknown reference causing the not serializable
> exception. I know which object is not serializable and it is the concrete
> proxy object created by WebLogic for my remote EJB. I ended up checking if I
> was in development mode and then using a transient variable and then using a
> another variable which is not transient when the app is running in a
> production environment. I was hesitant to simply mark the EJB as transient
> in case it caused issues in the production environment. Thanks all for your
> replies, they helped confirm that there wasn't a workaround other than
> marking it transient.

But there is. You can turn the check off, even for development mode.
See IDebugSettings#setSerializeSessionAttributes[1]

What you probably want in the end though, is a construct like
@SpringBean or just look the bean up right at the moment you need it
without holding the reference.

Eelco

[1] http://wicket.sourceforge.net/apidocs/wicket/settings/IDebugSettings.html

-
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 1.2.6 Development mode serialization checks and remote EJB's

2007-06-07 Thread Johan Compagner

so the end result is that in production you have now a none serializeable
object in the session?
that is not really the right solution if you ask me.

also going to wicket1.3 (with SecondLevelCache) is not an option then

johan


On 6/7/07, salmas <[EMAIL PROTECTED]> wrote:




It's not a case of an unknown reference causing the not serializable
exception. I know which object is not serializable and it is the concrete
proxy object created by WebLogic for my remote EJB. I ended up checking if
I
was in development mode and then using a transient variable and then using
a
another variable which is not transient when the app is running in a
production environment. I was hesitant to simply mark the EJB as transient
in case it caused issues in the production environment. Thanks all for
your
replies, they helped confirm that there wasn't a workaround other than
marking it transient.
Regards


Johan Compagner wrote:
>
> cant you make the non serializable object transient?
> and make sure that you can relookup the object when it is null?
>
> johan
>
> On 6/4/07, Saad, Salma <[EMAIL PROTECTED]> wrote:
>>
>>  I have a wicket page (java class) which uses a service locater to
>> execute
>> messages on a remote EJB. Though there is no direct reference to the
EJB
>> from my wicket page there is a reference to the service locater which
>> uses
>> JNDI to get a reference to the remote EJB. I get the following error
>> (FYI,
>> This error does not happen in wicket 1.2 but happens in wicket 1.2.6).
>>
>>
>>
>> WicketMessage: Internal error cloning object. Make sure all dependent
>> objects implement Serializable. Class: com.abc.wicket.LoginPage
>>
>> Root cause:
>>
>> java.io.NotSerializableException: com. abc.ejb. AFacadeBean.
>> AFacadeBean_7gl30w_EOImpl
>>
>>
>>
>> The EJB implements javax.ejb.SessionBean which extends the serializable
>> interface but the EJB proxy object returned by the WebLogic server does
>> NOT
>> implement serialzable. Below is the class hierarchy of the object
located
>> through JNDI. (I printed this using reflectiion)
>>
>>
>>
>> com. abc.ejb. AFacadeBean. AFacadeBean _7gl30w_HomeImpl
>>
>> -weblogic.ejb20.internal.StatelessEJBHome
>>
>> --weblogic.ejb20.internal.BaseEJBHome
>>
>> ---java.lang.Object
>>
>>
>>
>> So it seems that I cannot use EJB's in wicket pages, (I am doing this
>> indirectly through service locaters to decouple the pages from the back
>> end). Any advice about what to do in this situation would be
appreciated.
>> Currently I am running in deployment mode since this avoids the
checking.
>> I
>> have given some thought to marking the EJB transient in my service
>> locator
>> but would like to hear any insights/design suggestions/advice
>>
>>
>>  --
>>
>> CONFIDENTIAL: This e-mail, including its contents and attachments, if
>> any,
>> are confidential. It is neither an offer to buy or sell, nor a
>> solicitation
>> of an offer to buy or sell, any securities or any related financial
>> instruments mentioned in it. If you are not the named recipient please
>> notify the sender and immediately delete it. You may not disseminate,
>> distribute, or forward this e-mail message or disclose its contents to
>> anybody else. Unless otherwise indicated, copyright and any other
>> intellectual property rights in its contents are the sole property of
>> Mizuho
>> Securities USA Inc.
>>
>> E-mail transmission cannot be guaranteed to be secure or error-free.
The
>> sender therefore does not accept liability for any errors or omissions
in
>> the contents of this message which arise as a result of e-mail
>> transmission.
>> If verification is required please request a hard-copy version.
>>
>> Although we routinely screen for viruses, addressees should check this
>> e-mail and any attachments for viruses. We make no representation or
>> warranty as to the absence of viruses in this e-mail or any
attachments.
>> Please note that to ensure regulatory compliance and for the protection
>> of
>> our customers and business, we may monitor and read e-mails sent to and
>> from
>> our server(s).
>> --
>>
>>
-
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>>
>
>
-
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> W

Re: [Wicket-user] Wicket 1.2.6 Development mode serialization checks and remote EJB's

2007-06-07 Thread salmas


It's not a case of an unknown reference causing the not serializable
exception. I know which object is not serializable and it is the concrete
proxy object created by WebLogic for my remote EJB. I ended up checking if I
was in development mode and then using a transient variable and then using a
another variable which is not transient when the app is running in a
production environment. I was hesitant to simply mark the EJB as transient
in case it caused issues in the production environment. Thanks all for your
replies, they helped confirm that there wasn't a workaround other than
marking it transient.
Regards


Johan Compagner wrote:
> 
> cant you make the non serializable object transient?
> and make sure that you can relookup the object when it is null?
> 
> johan
> 
> On 6/4/07, Saad, Salma <[EMAIL PROTECTED]> wrote:
>>
>>  I have a wicket page (java class) which uses a service locater to
>> execute
>> messages on a remote EJB. Though there is no direct reference to the EJB
>> from my wicket page there is a reference to the service locater which
>> uses
>> JNDI to get a reference to the remote EJB. I get the following error
>> (FYI,
>> This error does not happen in wicket 1.2 but happens in wicket 1.2.6).
>>
>>
>>
>> WicketMessage: Internal error cloning object. Make sure all dependent
>> objects implement Serializable. Class: com.abc.wicket.LoginPage
>>
>> Root cause:
>>
>> java.io.NotSerializableException: com. abc.ejb. AFacadeBean.
>> AFacadeBean_7gl30w_EOImpl
>>
>>
>>
>> The EJB implements javax.ejb.SessionBean which extends the serializable
>> interface but the EJB proxy object returned by the WebLogic server does
>> NOT
>> implement serialzable. Below is the class hierarchy of the object located
>> through JNDI. (I printed this using reflectiion)
>>
>>
>>
>> com. abc.ejb. AFacadeBean. AFacadeBean _7gl30w_HomeImpl
>>
>> -weblogic.ejb20.internal.StatelessEJBHome
>>
>> --weblogic.ejb20.internal.BaseEJBHome
>>
>> ---java.lang.Object
>>
>>
>>
>> So it seems that I cannot use EJB's in wicket pages, (I am doing this
>> indirectly through service locaters to decouple the pages from the back
>> end). Any advice about what to do in this situation would be appreciated.
>> Currently I am running in deployment mode since this avoids the checking.
>> I
>> have given some thought to marking the EJB transient in my service
>> locator
>> but would like to hear any insights/design suggestions/advice
>>
>>
>>  --
>>
>> CONFIDENTIAL: This e-mail, including its contents and attachments, if
>> any,
>> are confidential. It is neither an offer to buy or sell, nor a
>> solicitation
>> of an offer to buy or sell, any securities or any related financial
>> instruments mentioned in it. If you are not the named recipient please
>> notify the sender and immediately delete it. You may not disseminate,
>> distribute, or forward this e-mail message or disclose its contents to
>> anybody else. Unless otherwise indicated, copyright and any other
>> intellectual property rights in its contents are the sole property of
>> Mizuho
>> Securities USA Inc.
>>
>> E-mail transmission cannot be guaranteed to be secure or error-free. The
>> sender therefore does not accept liability for any errors or omissions in
>> the contents of this message which arise as a result of e-mail
>> transmission.
>> If verification is required please request a hard-copy version.
>>
>> Although we routinely screen for viruses, addressees should check this
>> e-mail and any attachments for viruses. We make no representation or
>> warranty as to the absence of viruses in this e-mail or any attachments.
>> Please note that to ensure regulatory compliance and for the protection
>> of
>> our customers and business, we may monitor and read e-mails sent to and
>> from
>> our server(s).
>> --
>>
>> -
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>>
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-1.2.6-Development-mode-serialization-checks-and-remote-EJB%27s-tf3866878.html#a11008736
Sent from the Wicket - 

[Wicket-user] turning off markup validation

2007-06-07 Thread Ví­t Rozkovec
Good day,
one more issue - is there some way how to turn of markup validation?
In my template I am using this:


   
   
   
   
   
   [text odkazu]
   
   
   
   
   
   
   
   


















The problem is that wicket complains about using fragments this way with 
message:

WicketMessage: Tag '' (line 20, column 30) has a mismatched close 
tag at '' (line 21, column 1)


My purpose is to first initialize a menu tree and then traversing whole 
tree, generating drop-down menu with the structure which can be seen here:
http://www.cssplay.co.uk/menus/css/final_drop.txt
The whole working menu can bee seen here:
http://www.cssplay.co.uk/menus/final_drop.html

What solution can be for my problem?
Or does wicket has natively some support for creating dropdown menus? I 
was unable to find.
Thanks for any help.
Regards Vitek

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


[Wicket-user] Use case - dublin core METADATA generator

2007-06-07 Thread Ví­t Rozkovec
Hallo,
I have this problem and I need to get a bit of kick-start.
See this page:
http://www.webarchiv.cz/generator/dc.php
(in Czech language, but I hope you get the picture)

This is the generator which I need to replicate with all of its 
functionality in Wicket.
So far I have managed to be able to add and remove fields for one group, 
I did this with panel. I created add and remove links which have as the 
response page the panel with a number of row (I am trying to get it 
functional just for a panel at first).
Just a solution which came to my mind - should I create some wrapper 
class which contains all the elements settings and their values and pass 
it as an argument for page which generates the form and set this page as 
a response page for a add/remove link?

Or is there some other, better way how can I manage to preserve already 
entered values when adding those fields at run-time?
How can I access all the elements of the form after the submit, 
including those dynamically created ones?

Give me please just some clue how to achieve this, I am a kind of newbie.


Thanks alot.
Regards Vitek

-
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] Form redirect issue

2007-06-07 Thread Martijn Dashorst
On 6/7/07, hillj2 <[EMAIL PROTECTED]> wrote:
> Well after playing around with setContextPath() a bit, we've decided to try
> and get 1.3 working.  It would be nice if it had an official release, but
> for now we only have one form done in wicket, so that shouldn't be too much
> of a problem.  By the time we have more wicket pages a stable 1.3 release
> will probably be available.

With a bit of luck we'll start work on a new beta release, or rc1 this
week/weekend. Keep track of the development list
([EMAIL PROTECTED]) to see how it progresses.

Martijn

-- 
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-
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] Form redirect issue

2007-06-07 Thread hillj2

Well after playing around with setContextPath() a bit, we've decided to try
and get 1.3 working.  It would be nice if it had an official release, but
for now we only have one form done in wicket, so that shouldn't be too much
of a problem.  By the time we have more wicket pages a stable 1.3 release
will probably be available.  Thanks for you help, I'll let you know how it
turns out (or if we still have issues).

Joel



Al Maw wrote:
> 
> Joel Hill wrote:
>> We have a JSP servlet application that we're slowing beginning to
>> convert over to wicket.  Our first wicket page is a form with submit and
>> cancel buttons, either of which (unless there is a validation error)
>> will redirect the user back to the old servlet using the following
>> code:
>> 
>> protected void onSubmit() {
>>   String contextPath =
>> getApplication().getApplicationSettings().getContextPath();
>>   String url = contextPath + "/servletPath?queryString";
>>   getRequestCycle().setRequestTarget(new RedirectRequestTarget(url));
>> }
>> 
>> The problem is that our app is behind a reverse proxy and
>> getContextPath() is getting the path of the webserver our app is running
>> on, not the reverse proxy's path, and so the redirect fails.  Is there
>> another way to redirect our form back to the non-wicket servlet after a
>> form submit/cancel?  So far the only way I've been able to get it to
>> work is by grabbing the "Referer" header of the http request, and then
>> parsing it so I can replace the path of our wicket servlet with our
>> non-wicket servlet, but I've read it's up to the client whether or not
>> that header gets sent, so if it's not there, there's no other way I know
>> of to get the correct path.
>> 
>> We're using wicket 1.2.5 on an OC4J 10.1.3 webserver.
> 
> Yeah, in 1.2.x you'll have to call setContextPath() on the application 
> settings object so it does the right thing (probably returns "/" in this 
> case).
> 
> There's very little you can do with version 1.2.x to make this nice, I'm 
> afraid. We've put a whole load of work in for 1.3.x to make it work 
> transparently behind a reverse proxy. For example, this case could be 
> handled elegantly using Request.getRelativePathPrefixToContextRoot(), 
> which will give you an appropriate number of "../" to prepend to make it 
> all work.
> 
> Al
> 
> -- 
> Alastair Maw
> Wicket-biased blog at http://herebebeasties.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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Form-redirect-issue-tf3872278.html#a11007254
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] NPE at org.apache.wicket.markup.html.list.ListView.renderItem(ListView.java:645)

2007-06-07 Thread Matthieu Casanova

Hi, I'm not sure but I had such problems with a ListView because I added
some elements to my ArrayList in the
onBeforeRender() method of my page, so the list was populated, but the
rendering failed because there was a new element that was not populated
because it didn't exists before.
it was something like that

Matthieu

2007/6/7, Johannes Schneider <[EMAIL PROTECTED]>:


Hi,

I try to reproduce the FileUploadDemo using Wicket 1.3.0. But I get this
NPE and really don't know what the problem could be. Any hints?

Thanks,

Johannes Schneider


WicketMessage: Exception in rendering component: [MarkupContainer
[Component id = _extend, page =
de.cvjm.dusslingen.web.admin.ResourceUpload, path =

21:_:_child:_extend.MarkupInheritanceResolver$TransparentWebMarkupContainer,
isVisible = true, isVersioned = true]]

Root cause:

java.lang.NullPointerException
at org.apache.wicket.markup.html.list.ListView.renderItem(ListView.java
:645)
at
org.apache.wicket.markup.html.list.ListView.renderChild(ListView.java:633)
at
org.apache.wicket.markup.repeater.AbstractRepeater.onRender(
AbstractRepeater.java:87)
at org.apache.wicket.Component.render(Component.java:1685)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1179)
at

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


[Wicket-user] NPE at org.apache.wicket.markup.html.list.ListView.renderItem(ListView.java:645)

2007-06-07 Thread Johannes Schneider

Hi,

I try to reproduce the FileUploadDemo using Wicket 1.3.0. But I get this 
NPE and really don't know what the problem could be. Any hints?


Thanks,

Johannes Schneider


WicketMessage: Exception in rendering component: [MarkupContainer 
[Component id = _extend, page = 
de.cvjm.dusslingen.web.admin.ResourceUpload, path = 
21:_:_child:_extend.MarkupInheritanceResolver$TransparentWebMarkupContainer, 
isVisible = true, isVersioned = true]]


Root cause:

java.lang.NullPointerException
at org.apache.wicket.markup.html.list.ListView.renderItem(ListView.java:645)
at 
org.apache.wicket.markup.html.list.ListView.renderChild(ListView.java:633)
at 
org.apache.wicket.markup.repeater.AbstractRepeater.onRender(AbstractRepeater.java:87)

at org.apache.wicket.Component.render(Component.java:1685)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1179)
at 
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1349)
at 
org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1284)

at org.apache.wicket.Component.renderComponent(Component.java:1858)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1294)
at org.apache.wicket.Component.render(Component.java:1685)
at org.apache.wicket.Component.render(Component.java:1648)
at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:223)
at 
org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:65)

at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1206)
at 
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1349)
at 
org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1284)

at org.apache.wicket.Component.renderComponent(Component.java:1858)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1294)
at org.apache.wicket.Component.render(Component.java:1685)
at org.apache.wicket.Component.render(Component.java:1648)
at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:223)
at 
org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:72)

at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1206)
at 
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1349)
at 
org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1284)

at org.apache.wicket.Component.renderComponent(Component.java:1858)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1294)
at org.apache.wicket.Component.render(Component.java:1685)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1179)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1311)
at org.apache.wicket.Page.onRender(Page.java:1338)
at org.apache.wicket.Component.render(Component.java:1685)
at org.apache.wicket.Page.renderPage(Page.java:907)
at 
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:223)
at 
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:103)
at 
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1038)

at org.apache.wicket.RequestCycle.step(RequestCycle.java:1100)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1169)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:500)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:251)
at 
org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:126)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)
at 
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
at 
org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:177)
at 
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)

at java.security.AccessController.doPrivileged(Native Method)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at 
org.apache.catalina.core.StandardContextValve.invoke(Standar

[Wicket-user] [GMAP contrib] IE7 Ajax target appendJavascript not working?

2007-06-07 Thread Nino Saturnino Martinez Vazquez Wael
Hi

We are experiencing some issues with ajax in IE7, possibly IE6 as well 
when using the target.appendjavascript. Are there any workarounds?


I've looked a bit at 
http://www.nabble.com/-BUG-%3Cscript%3E-tag-evaluation-in-IE-t3839952.html 
but it does not seem to work.


Any ideas, solutions will be highly appreciated, as this are a 
showstopper for the v1 release of the gmap contrib.

regards Nino

-
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 did not make the grade.

2007-06-07 Thread A_flj_

Bad bad bad bad thing that the examples for the wicket-extensions are either
hard to find or not documented very well. I'm trying for half a day now to
find an example markup for inserting a treetable, but could not find
anything.

IMO it would be _very_ useful to make wars/jars/zips with Eclipse projects
available for download for all wicket-extensions examples. And also easy to
do, right?

IMO programming with something new is very much like cooking: you never get
it perfectly right before you see somebody else doing it properly. If you
(experienced wicket users/wicket developers) just give us (beginners)
readymade food for tasting, we'll never start cooking your receipes, no
matter how much we like the taste. We have to see you cooking.


Juergen Donnerstag wrote:
> 
> This is not very difficult to implement. The displaytag example in
> wicket-examples used to have it and it was based on ListView. But I
> think we removed it since Repeater/DataView etc from wicket-extension
> is more flexible and elegant and our preferred approach for most table
> type implementation. I have no doubts that a customized component can
> be developed which uses Labels as a default for each cell still giving
> you the option to use any other component if the default (Label)
> should ot be used.
> 
> Juergen.
> 
> 
-- 
View this message in context: 
http://www.nabble.com/wicket-did-not-make-the-grade.-tf386.html#a11006625
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


[Wicket-user] Configuration Interceptor

2007-06-07 Thread Sven Schliesing
Hi,

I'm trying to build a "ConfigurationInterceptor" for my wicket-application.

Goal of this is the easy configuration file handling even when updating 
the application.

The Application is started and looks if it has a property file 
"configFileLocation.properties" (this just contains the name of the real 
configuration file) in it's webroot.
- If it is not found all future requests get redirected to a wizard-page 
where the user can configure the location of the _real_ configuration 
file. After this configuration step the file 
"configFileLocation.properties" is created.



In a genuine web-application I would use a ServletFilter for that that 
checks if the application has found it's configuration file or not.

How can this be done with wicket?


Thanks in advance!

Sven


-
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] MarkupContainer.add() fails if log4j is enabled

2007-06-07 Thread Nili Adoram
If wicket policy prohibits isVisible() to depend on parent page,
you might as well make it final.
This is acceptable if you provide some other hook that may depend on
parent page.

Johan Compagner wrote:
>
> Moreover, this is an inconsistent behavior. System should have the
> same
> behavior regardless whether log is enabled or not. 
>
>
> thats true, i was just saying your isVisible() shouldn't absolutely
> depend on a parent page..
> It could be used in none logging code  also. The parent hierarchy
> doesn't have to be there
> in specific cases (that we tried to solve in the now dead branch 2.0)
>
> johan
>
>
> 
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> 
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>   

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


Re: [Wicket-user] MarkupContainer.add() fails if log4j is enabled

2007-06-07 Thread Johan Compagner


Moreover, this is an inconsistent behavior. System should have the same
behavior regardless whether log is enabled or not.



thats true, i was just saying your isVisible() shouldn't absolutely depend
on a parent page..
It could be used in none logging code  also. The parent hierarchy doesn't
have to be there
in specific cases (that we tried to solve in the now dead branch 2.0)

johan
-
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 did not make the grade.

2007-06-07 Thread Martijn Dashorst
On 6/7/07, Upayavira <[EMAIL PROTECTED]> wrote:
> I've often heard it said that us human beings are strange - we often
> prefer the familiar to the pleasant.

And it is confirmed in this article [1]:

Explaining Cognitive Lock-In: The Role of Skill-Based Habits of Use in
Consumer Choice

KYLE B. MURRAY
GERALD HÄUBL

We introduce and test a theory of how the choices consumers make are
influenced by skill-based habits of use—goal-activated automated
behaviors that develop through the repeated consumption or use of a
particular product. Such habits can explain how consumers become
locked in to an incumbent product. The proposed theory characterizes
how the amount of experience with the incumbent product, the
occurrence of usage errors while learning to use that product, and the
goal that is activated at the time a choice is made interrelate to
influence consumer preference. The results of three experiments
support the theory's predictions.


[1] 
http://www.journals.uchicago.edu/JCR/journal/issues/v34n1/340108/brief/340108.abstract.html?erFrom=5590199003513691096Guest
-- 
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-
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 did not make the grade.

2007-06-07 Thread Upayavira
I've often heard it said that us human beings are strange - we often
prefer the familiar to the pleasant.

Upayavira

On Wed, 6 Jun 2007 18:18:24 -0700 (PDT), "Jonathan Locke"
<[EMAIL PROTECTED]> said:
> 
> 
> This was almost exactly my own reaction to the original assertion
> that this team has very strong OOP skills.  The criticism cited sounded
> a lot more to me like reflex than any kind of thinking.
> 
> 
> James McLaughlin-3 wrote:
> > 
> > Hi Florian,
> > To be honest, you should have titled this post "My team did not make
> > the grade". There are many developers in the world whose skill and
> > ambition rise little above cut and paste robot, and many burned out
> > managers who have decided employees will never be capable of much
> > else. Struts is a perfect framework choice where such conditions
> > coincide. If you are in such a place right now, then for the love of
> > all things holy, move on before your soul, and skills, languish. On
> > the other hand, if you work for a place where the power of OOP is
> > understood, and developer creativity is required and appreciated,
> > Wicket will be the most natural choice.
> > 
> > jim
> > 
> > On 6/5/07, Florian Hehlen <[EMAIL PROTECTED]> wrote:
> >>
> >>  Hi,
> >>
> >>  The comparison was a bit skewed where I showed the richness of such
> >> components as a DataView(sortable and pageable) in wicket and that was
> >> compared with a simple static table on Struts 2.
> >>
> >>
> >>  Johan Compagner wrote:
> >>
> >>
> >> > Wicket if adding those low-level components was only necessary when one
> >> > wants to add special handling, formating, validation, etc.
> >>
> >>
> >>  and where is then the binding specified? What kind of data should be
> >> displayed where?
> >>  Well how about simply binding a DataView to a the Model and assume that
> >> for
> >> all wicket:id in the html template I should find a getter method in the
> >> bean?
> >>
> >>  regards,
> >>  Florian
> >>
> >>  PS: I agree wiith all you guys that this is not a big issue... that it's
> >> more a question of style/philospophy and possibly fashion.
> >>
> >> -
> >> This SF.net email is sponsored by DB2 Express
> >> Download DB2 Express C - the FREE version of DB2 express and take
> >> control of your XML. No limits. Just data. Click to get it now.
> >> http://sourceforge.net/powerbar/db2/
> >> ___
> >> Wicket-user mailing list
> >> Wicket-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >>
> >>
> > 
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > 
> > 
> 
> -- 
> View this message in context:
> http://www.nabble.com/wicket-did-not-make-the-grade.-tf386.html#a11000335
> 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

-
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] MarkupContainer.add() fails if log4j is enabled

2007-06-07 Thread Nili Adoram
This breaks the concept of Model being evaluated when component is
rendered and not beforehand.
Moreover, this is an inconsistent behavior. System should have the same
behavior regardless whether log is enabled or not.


Johan Compagner wrote:
> seeing if a component is visible or not in the toString() impl is
> pretty nice to have
>
> I think you should make your isVisible() a bit more safe.
> What if you debug log your self a bit more about this ? and you use it
> in a listview or something
> then it can also be removed from the page.
> Or if you use it in a panel that wants to know upfront stuff from your
> component
> (and the panel itself isn't added yet to a parent)
>
> johan
>
>
> On 6/6/07, *Nili Adoram* <[EMAIL PROTECTED]
> > wrote:
>
> I come across a very puzzling behavior in wicket-1.2.2.
> I add a component to its container when the page is initialized,
> BEFORE
> it is rendered and before page model finished to initialize.
> if log4j is configured to enable wicket debug, the container
> toString()
> is called.
> This method invoked isVisible() of the container.
> I have overriden isVisible(), to query the page model before deciding
> whether the component is actually visible.
> I assumed this method is called when the component is rendered,
> and by
> that time the model is completely initialized.
> However, since it was called before component rendering, my code
> failed
> and the page failed to be created.
> My question is:
> 1. Why isn't toString() of Component a safe method ?
> 2. Why does it call isVisible before page is rendered?
> Thanks
> Nili
>
> java.lang.NullPointerException
> at
> 
> com.qlusters.qrm.plugins.provision.web.ProvisionWebUtils.isVeDeleted(ProvisionWebUtils.java
> :374)
> at
> 
> com.qlusters.qrm.plugins.provision.web.ProvisioningRequestSummaryForm$15.isVisible(ProvisioningRequestSummaryForm.java:405)
> at wicket.Component.toString(Component.java:2176)
> at wicket.MarkupContainer.toString(MarkupContainer.java:685)
> at wicket.MarkupContainer.toString(MarkupContainer.java:673)
> at java.lang.String.valueOf(String.java:2615)
> at java.lang.StringBuffer.append (StringBuffer.java:220)
> at wicket.MarkupContainer.add(MarkupContainer.java:149)
> at
> 
> com.qlusters.qrm.plugins.provision.web.ProvisioningRequestSummaryForm.addChangeIndication(ProvisioningRequestSummaryForm.java
> :453)
> at
> 
> com.qlusters.qrm.plugins.provision.web.ProvisioningRequestSummaryForm.init(ProvisioningRequestSummaryForm.java:47)
> at
> com.qlusters.qrm.plugins.provision.web.ProvisioningRequestSummary.doView
> (ProvisioningRequestSummary.java:50)
> at
> 
> com.qlusters.qrm.web.wicket.WebPageFactory.decorate(WebPageFactory.java:84)
> at
> com.qlusters.qrm.web.wicket.WebPageFactory.newPage(WebPageFactory.java:53)
>
> at
> 
> wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:271)
> at
> 
> wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java
> :286)
> at
> 
> wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:205)
> at
> wicket.request.compound.DefaultEventProcessorStrategy.processEvents
> (DefaultEventProcessorStrategy.java:65)
> at
> 
> wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(AbstractCompoundRequestCycleProcessor.java:57)
> at
> wicket.RequestCycle.doProcessEventsAndRespond (RequestCycle.java:852)
> at
> wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:885)
> at wicket.RequestCycle.step(RequestCycle.java:966)
> at wicket.RequestCycle.steps(RequestCycle.java :1040)
> at wicket.RequestCycle.request(RequestCycle.java:454)
> at
> wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:216)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> at
> 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter
> (ApplicationFilterChain.java:188)
> at
> 
> com.qlusters.qrm.server.api.objects.transactions.TransactionFilter.doFilter(TransactionFilter.java:135)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (ApplicationFilterChain.java:215)
> at
> 
> org.apache.catalina.core.ApplicationFilter

Re: [Wicket-user] MarkupContainer.add() fails if log4j is enabled

2007-06-07 Thread Johan Compagner

seeing if a component is visible or not in the toString() impl is pretty
nice to have

I think you should make your isVisible() a bit more safe.
What if you debug log your self a bit more about this ? and you use it in a
listview or something
then it can also be removed from the page.
Or if you use it in a panel that wants to know upfront stuff from your
component
(and the panel itself isn't added yet to a parent)

johan


On 6/6/07, Nili Adoram <[EMAIL PROTECTED]> wrote:


I come across a very puzzling behavior in wicket-1.2.2.
I add a component to its container when the page is initialized, BEFORE
it is rendered and before page model finished to initialize.
if log4j is configured to enable wicket debug, the container toString()
is called.
This method invoked isVisible() of the container.
I have overriden isVisible(), to query the page model before deciding
whether the component is actually visible.
I assumed this method is called when the component is rendered, and by
that time the model is completely initialized.
However, since it was called before component rendering, my code failed
and the page failed to be created.
My question is:
1. Why isn't toString() of Component a safe method ?
2. Why does it call isVisible before page is rendered?
Thanks
Nili

java.lang.NullPointerException
at
com.qlusters.qrm.plugins.provision.web.ProvisionWebUtils.isVeDeleted(
ProvisionWebUtils.java:374)
at

com.qlusters.qrm.plugins.provision.web.ProvisioningRequestSummaryForm$15.isVisible
(ProvisioningRequestSummaryForm.java:405)
at wicket.Component.toString(Component.java:2176)
at wicket.MarkupContainer.toString(MarkupContainer.java:685)
at wicket.MarkupContainer.toString(MarkupContainer.java:673)
at java.lang.String.valueOf(String.java:2615)
at java.lang.StringBuffer.append(StringBuffer.java:220)
at wicket.MarkupContainer.add(MarkupContainer.java:149)
at

com.qlusters.qrm.plugins.provision.web.ProvisioningRequestSummaryForm.addChangeIndication
(ProvisioningRequestSummaryForm.java:453)
at
com.qlusters.qrm.plugins.provision.web.ProvisioningRequestSummaryForm.init
(ProvisioningRequestSummaryForm.java:47)
at
com.qlusters.qrm.plugins.provision.web.ProvisioningRequestSummary.doView(
ProvisioningRequestSummary.java:50)
at
com.qlusters.qrm.web.wicket.WebPageFactory.decorate(WebPageFactory.java
:84)
at
com.qlusters.qrm.web.wicket.WebPageFactory.newPage(WebPageFactory.java:53)
at
wicket.request.target.component.BookmarkablePageRequestTarget.newPage(
BookmarkablePageRequestTarget.java:271)
at
wicket.request.target.component.BookmarkablePageRequestTarget.getPage(
BookmarkablePageRequestTarget.java:286)
at

wicket.request.target.component.BookmarkablePageRequestTarget.processEvents
(BookmarkablePageRequestTarget.java:205)
at
wicket.request.compound.DefaultEventProcessorStrategy.processEvents(
DefaultEventProcessorStrategy.java:65)
at

wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents
(AbstractCompoundRequestCycleProcessor.java:57)
at
wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:852)
at
wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:885)
at wicket.RequestCycle.step(RequestCycle.java:966)
at wicket.RequestCycle.steps(RequestCycle.java:1040)
at wicket.RequestCycle.request(RequestCycle.java:454)
at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java
:216)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:188)
at

com.qlusters.qrm.server.api.objects.transactions.TransactionFilter.doFilter
(TransactionFilter.java:135)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:210)
at
org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:174)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(
AuthenticatorBase.java:433)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
:151)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at

org.apache.coyote.ht

[Wicket-user] OT: Anyone going to be at WWDC next week?

2007-06-07 Thread Johannes Fahrenkrug
I know this is a bit OT and I know I should have been at ApacheCon in 
May and everything, but I at least want to ask if anyone on this list is 
also gonna be at WWDC in San Francisco next week. If so, it would be 
great to meet up.

- Johannes

-- 

   Johannes Fahrenkrug
   Tel:+49 (0)431 5446 246
   Fax:+49 (0)431 5446 248
   E-Mail: [EMAIL PROTECTED]

   Gebeco GmbH & Co KG
   Holzkoppelweg 19
   D-24118 Kiel

   Handelsregister Kiel Nr. A 3964
   Steuernummer: 19 285 65407

   Geschaeftsfuehrung:
   Ury Steinweg, Vorsitzender der Geschaeftsfuehrung
   Thomas Bohlander

   Besuchen Sie uns auch unter / we are also available at:
   www.gebeco.de oder www.drtigges.de 


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


Re: [Wicket-user] Creating Image on the fly

2007-06-07 Thread Johannes Schneider

Thanks for your replys.
I think this will help me. I have also found the Captcha Image - maybe I 
can follow the same style.



Johannes Schneider

Jean-Baptiste Quenot wrote:

* Johannes Schneider:


Of  course  I  don't  want  to  add  the  mail  address  as  url
parameter. Therefore  I have  to  store the  address as  session
parameter.


You can still  use PageParameters, but maybe it would  be safer to
use CryptedUrlWebRequestCodingStrategy so  that email addresses do
not appear in clear.

Something like: /app/imageFactory?email=XD45K86


--
Johannes Schneider
Im Lindenwasen 15
72810 Gomaringen

Fon +49 7072 9229972
Fax +49 7072 50
Mobil +49 178 1364488

[EMAIL PROTECTED]
http://www.johannes-schneider.info


smime.p7s
Description: S/MIME Cryptographic Signature
-
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