Hi Lubos,
As Erik said, you don't.
As an example, here's the Acegi configuration I use in my project (piece of
the Spring's application context XML):
CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
Hi all,
I have a component that contributes some javascript to the header. Initially
the component won't be shown but an ajax event could make it visible. The
problem is that the javascript is contributed later, during the ajax
response, and there is a security concern with firefox: "permission den
Hi Lubos,
But how do I set the appropriate acegi configutration to specify the
login and login error page in
As I wrote in the previous mail: You don't.
Regards,
Erik.
lubosp wrote:
Erik,
thanks for the answer. But how do I set the appropriate acegi configutration
to specify the login an
> Looking at the logic, even if I set my own cookies and/or piggyback on
> the jsessionid value, there is still the case of the first visit (since
> no values are set, so I don't know if it's just the first visit, or a
> client with no cookie capability).
Ok... that's just not true.
Looks like w
Excellent! Thanks again.
Looking at the logic, even if I set my own cookies and/or piggyback on
the jsessionid value, there is still the case of the first visit (since
no values are set, so I don't know if it's just the first visit, or a
client with no cookie capability).
Either I need to always
you need to set it up yourself.
request A
setcookie C
append &cookie=C to url
request B
if (!cookie C set) always append to url
you can setup an automatic redirect as the first page your users hit that
does this check and sets a session value.
so instead of /=homepage you get
/=A->B->homepage
Wow! Thanks for the lightening fast reply!
> no way to test it except try it - which is what the servlet container does
Do you mean that I can query the servlet container somehow?
Or I need to set up this mechanism myself?
I poked around, but didn't see anything pop out at me that indicates i
no way to test it except try it - which is what the servlet container does
first url it adds a cookie, then on next request if its not there it means
cookies are disabled
-igor
On 7/30/07, David Leangen <[EMAIL PROTECTED]> wrote:
>
>
> What would be the usual way of testing a client for cookie
What would be the usual way of testing a client for cookie capability?
Essentially, I want to know if I can rely on the use of a cookie, or if
I should fall back on coding something into the URL parameters.
Thanks!
David
-
Would it be possible to have the current 1.2.7 snapshot posted on the
repository on the wicket-stuff site?
Is there anything I can do to get my hands dirty? Or do I need to rely
on the generosity of one of the committers?
Thanx!
Dave
-
Erik,
thanks for the answer. But how do I set the appropriate acegi configutration
to specify the login and login error page in:
org.acegisecurity.ui.logout.LogoutFilter
org.acegisecurity.ui.webapp.AuthenticationProcessingFilter,
authenticationFailureUrl property
exceptionTranslationFilter, logi
Does anyone know how to detect a session timeout in Wicket 1.3 Beta 2?
Right now a new session is silently being created automatically after
a timeout.
Thanks,
Mark.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addition
> To cut the problem from the source... Do you need to have a file in the
> file system?
>
> We are using a DynamicWebResource that answers a PDF directly from memory.
> Here some code:
>
>// we have a method that generates the PDF as a byte[]
>final byte[] thePDFInBytes = generatePDF();
>
Hi,
To cut the problem from the source... Do you need to have a file in the
file system?
We are using a DynamicWebResource that answers a PDF directly from memory.
Here some code:
// we have a method that generates the PDF as a byte[]
final byte[] thePDFInBytes = generatePDF();
Resourc
shumbola wrote:
Upayavira-2 wrote:
shumbola wrote:
I want to be able to switch to SSL when SignIn page showed to a user and
if
successful, then switch back to normal HTTP protocol. I'm using
wicket-1.3.
We recently had a security firm audit our application. They pointed out
that such an app
> yes, tried that already. strangely, gets an additional
> xmlns:wicket="http://wicket.apache.org"-attribute?! but it doesn't seem to
> hurt.
Yeah, that happens in onComponentTag:
public void onComponentTag(final Component component, final
ComponentTag tag)
{
ta
Hi Eelco,
> You should be able to pull that off if you use
> AbstractTransformerBehavior.
yes, tried that already. strangely, gets an additional
xmlns:wicket="http://wicket.apache.org"-attribute?! but it doesn't seem to hurt.
> Btw, if you ever get to it, a nice Flash
> component with a demo f
> I thought I could just concentrate on the last aspect and apply only the
> needed
> changes... (i.e. move an attribute to a ).
You should be able to pull that off if you use
AbstractTransformerBehavior. Btw, if you ever get to it, a nice Flash
component with a demo for wicket-examples would be
Hi Martijn,
> Yep, I was wondering why not create your own ShockWaveComponent that
> exposes the parameters using some API, and renders them using a
> repeating view?
yes, I think there's no other clean way. The problem with is,
that it allows nested/alternative content which the browsers show
> since I haven't overridden onComponentTagBody yet - what happens to child-Tags
> then, do I have to manage these, too?
If that's an issue, it's better to follow Martijn's advice and make
this component a panel with a list view for the parameters.
Eelco
-
Hi Eelco,
> Well, what you can do is rather than using a generic
> WebMarkupContainer, create a custom class that overrides
> onComponentTagBody, create some interface for parameters that this
> class understands, expose the ability to add instances of this
> interface, and then when the componen
On 7/30/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> Yep, I was wondering why not create your own ShockWaveComponent that
> exposes the parameters using some API, and renders them using a
> repeating view?
Yeah, you could do that as well. Though directly writing them out in
onComponentTagBody
On 7/30/07, Jan Kriesten <[EMAIL PROTECTED]> wrote:
>
>
> Hi Igor,
>
> > i really dont think oncomponenttagbody() belongs in behaviors. this
> should
> > be done without a behavior by subclassing the component and overriding
> > oncomponenttagbody() there. that said you can still hack it by using
>
Yep, I was wondering why not create your own ShockWaveComponent that
exposes the parameters using some API, and renders them using a
repeating view?
Martijn
On 7/30/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > I don't think this should belong in a subclass. IMHO manipulating
> > attributes
> I don't think this should belong in a subclass. IMHO manipulating attributes
> for
> a certain type of object should be handled by simply adding a Behaviour. SWF's
> are only one example. Other Objects (QuickTime, Real, WMV) have other
> Attributes
> and parameter needs which is where Behaviou
Hi Igor,
> i really dont think oncomponenttagbody() belongs in behaviors. this should
> be done without a behavior by subclassing the component and overriding
> oncomponenttagbody() there. that said you can still hack it by using
> AbstractTransformerBehavior and some string manipulation code.
I
your webresource knows when its done streaming data, so just delete it
there.
-igor
On 7/30/07, John Carlson <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> I have a dynamically created pdf report that I make available to the
> user via a ResourceLink. In wicket the file is created as a
> WebResource. A
> i really dont think oncomponenttagbody() belongs in behaviors. this should
> be done without a behavior by subclassing the component and overriding
> oncomponenttagbody() there.
I'm also a bit afraid that exposing that would be too dangerous (not
to mention that the interface is already pretty b
I have a dynamically created pdf report that I make available to the
user via a ResourceLink. In wicket the file is created as a
WebResource. As the report contains sensitive information I want to
delete it from the server as soon as it has been downloaded. I couldn't
find any 'onDownloadC
On 7/30/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>
> On 7/30/07, Jan Kriesten <[EMAIL PROTECTED]> wrote:
> >
> > Hi Eelco,
> >
> > > You can use onRendered and write directly to the response using
> > > Response response = component.getResponse();
> >
> > not really. I tried that before, But
On 7/30/07, Jan Kriesten <[EMAIL PROTECTED]> wrote:
>
> Hi Eelco,
>
> > You can use onRendered and write directly to the response using
> > Response response = component.getResponse();
>
> not really. I tried that before, But that only writes the param after the
> close
> tag which isn't what is i
Hi Eelco,
> You can use onRendered and write directly to the response using
> Response response = component.getResponse();
not really. I tried that before, But that only writes the param after the close
tag which isn't what is intended. :-) Result:
The param belongs inside the object-tag.
> I only can use onComponentTag or onRendered. onRendered already closed the
> object-Tag again. onComponentTag seems to be the point to start. But there
> doesn't seem to be a way to have the component open tag be rendered and then
> have something written to the stream...
You can use onRendered
Hi,
I have the following situation and haven't found a solution yet:
My Panel gets the following Markup from the designer:
I'm now looking for a way to add a behaviour to the swf-MarkupContainer, which
changes the attributes/body depending on the browser. My problem is with
changing the body
http://mail-archives.apache.org/mod_mbox/wicket-commits/200707.mbox/[EMAIL
PROTECTED]
Is there any correlation?
I am currenlty using 1.2
Ed_ wrote:
>
> Thanks the toString override seems to work in that the correct values/ids
> that I want do get posted back.
> Like you mentioned is this th
it should be called, paste some code from that formcomponentpanel
-igor
On 7/30/07, Stephane Boisson <[EMAIL PROTECTED]> wrote:
>
> From: "Igor Vaynberg" <[EMAIL PROTECTED]>
> >
> > > > hrm, what version of wicket are you using?
> > >
> > > 1.3-SNAPSHOT
> >
> > heh, from when? :)
>
>
> From toda
From: "Igor Vaynberg" <[EMAIL PROTECTED]>
>
> > > hrm, what version of wicket are you using?
> >
> > 1.3-SNAPSHOT
>
> heh, from when? :)
>From today I guess.. :-)
Is it correct?
daily
> With regard to the Login/Welcome example, I have a problem with the
> Login's page's mutator methods being called in the onClick() in the
> Welcome page. Your scenario requires that Welcome know too much about
> Login. If Welcome and Login depend on the same model, and Welcome
> changes the mode
Thanks the toString override seems to work in that the correct values/ids
that I want do get posted back.
Like you mentioned is this the right way to do it?
Even with this solution in response to the submit I still continue to get an
error back - which isn't making much sense to me.
http://loca
Thanks the toString override seems to work in that the correct values/ids that
I want do get posted back.Like you mentioned is this the right way to do
it?Even with this solution in response to the submit I still continue to get an
error back - which isn't making much sense to
me.http://local
This message is sent across https from gmail :)
It only works however when you use https: in the first place to
connect to gmail. The default (http:) is less straining on the server
resources I suppose (though Google should have enough of that)
Martijn
On 7/30/07, shumbola <[EMAIL PROTECTED]> wr
Thanks the toString override seems to work in that the correct values/ids that
I want do get posted back.Like you mentioned is this the right way to do
it?Even with this solution in response to the submit I still continue to get an
error back - which isn't making much sense to
me.http:
Hi Igor/Eelco and Others,
Sorry i am reposting this, can any one please tell me how to get around this
issue.
I am seeing loads of "Internal error cloning object" error in the log files.
I am running on DEPLOYMENT mode and also i have set
get().getDebugSettings()
.setSerializeSessionAttributes(f
Yes, I known that is fast and easy but I tried to do it myself and I
had problems.
Thanks!
On 7/30/07, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> Hi Flavio,
>
> It only takes 15 minutes to make it yourself.
> But anyway, here is one:
> http://omelet.zapto.org/pub/wicket/wicket-auth-roles-1.2.2-
how about a concrete example
-igor
On 7/30/07, Will Jaynes <[EMAIL PROTECTED]> wrote:
>
> Thanks for the reply. I appreciate the desirability of thinking more OO
> and less request/response. Even so, the Wicket Page class is still
> modeling an html page. Where is the "onBeforeLoad" functionalit
On 7/30/07, Stephane Boisson <[EMAIL PROTECTED]> wrote:
>
> Igor wrote:
>
> > hrm, what version of wicket are you using?
>
>
> 1.3-SNAPSHOT
heh, from when? :)
-igor
to me it looks like abstractsingleselectchoice.convertvalue() does convert
> > id back to choice object.
> >
>
> You're right.. B
Hi Flavio,
It only takes 15 minutes to make it yourself.
But anyway, here is one:
http://omelet.zapto.org/pub/wicket/wicket-auth-roles-1.2.2-1.4.jar
It is derived from Wicket 1.2.2 but we use it in a Wicket 1.2.6
environment on production.
Regards,
Erik.
Flavio wrote:
Hi!
I'm trying to
Thanks for the reply. I appreciate the desirability of thinking more OO
and less request/response. Even so, the Wicket Page class is still
modeling an html page. Where is the "onBeforeLoad" functionality of a
web page? Is "onBeforeRender" the equivalent?
With regard to the Login/Welcome exampl
Hi!
I'm trying to integrate acegi and wicket on a 1.4 JVM. Can anyone send
me wicket-auth-roles without annotations and ported to 1.4?
Thanks,
Flavio.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Igor wrote:
> hrm, what version of wicket are you using?
1.3-SNAPSHOT
to me it looks like abstractsingleselectchoice.convertvalue() does convert
> id back to choice object.
>
You're right.. But it looks like this method is not called in my case..
I made my component work with a quick hack, bu
On Mon, 30 Jul 2007, Ann Baert wrote:
> The "getReplaceModel" method of the AttributeModifier is declared protected &
> final, and its docs say that it can be used in subclasses.
Well, it can be _used_ in subclasses, as it's protected.
- Timo
--
Timo Rantalaiho
Reaktor Innovations Oy
The "getReplaceModel" method of the AttributeModifier is declared protected &
final, and its docs say that it can be used in subclasses.
I use wicket 1.3 beta 2
How can this final method be overridden in subclasses?
Is this a misperception over here, or is this a documentation or an API
mistake
It's only for 1.3. As for the redirect, it is now configurable per
page, there is a constructor parameter that affects whether it
redirects.
-Matej
On 7/30/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> does it work with wicket 1.2.x? or its only compatible with 1.3
>
> On 7/30/07, Korbinian
Upayavira-2 wrote:
>
> shumbola wrote:
>> I want to be able to switch to SSL when SignIn page showed to a user and
>> if
>> successful, then switch back to normal HTTP protocol. I'm using
>> wicket-1.3.
>
> We recently had a security firm audit our application. They pointed out
> that such a
Hi all,
I am seeing loads of "Internal error cloning object" error in the log files.
I am running on DEPLOYMENT mode and also i have set
get().getDebugSettings().setSerializeSessionAttributes(false);
( which is not really required when i am on Deployment mode ) in the
application class.
I have
shumbola wrote:
I want to be able to switch to SSL when SignIn page showed to a user and if
successful, then switch back to normal HTTP protocol. I'm using wicket-1.3.
We recently had a security firm audit our application. They pointed out
that such an approach is flawed.
Basically, you sec
I want to be able to switch to SSL when SignIn page showed to a user and if
successful, then switch back to normal HTTP protocol. I'm using wicket-1.3.
In my Application class I've come up with the following:
protected IRequestCycleProcessor newRequestCycleProcessor() {
return new W
Hi,
Sorry if duplicated:
On 7/29/07, Ed _ <[EMAIL PROTECTED]> wrote:
>
> I am trying to create an editable form - this has a drop down list. in it
>
> List ratingList = cfg.getContentRatingList();
> DropDownChoice ratingChoice = new DropDownChoice("rating", new
> PropertyModel(form, "category"),
On 7/30/07, Thomas Màder <[EMAIL PROTECTED]> wrote:
>
>
> Hi guys,
>
> In 1.3.0 beta 2, one of the Page constructors reads like so:
>
>
>
> protected Page(final PageParameters parameters)
> {
> super(null);
> }
>
> Note that this will not cause init() to be c
Hi guys,
In 1.3.0 beta 2, one of the Page constructors reads like so:
protected Page(final PageParameters parameters)
{
super(null);
}
Note that this will not cause init() to be called. This in turn causes all
such pages to have the numeric id 0. Does
does it work with wicket 1.2.x? or its only compatible with 1.3
On 7/30/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
>
> Hi Matej,
>
> looks really great! - One thing I dont understand ist:
>
> You wrote:
> * The redirect is necessary for pages with AJAX stuff, so that the
> > > > page instance
not client side,
I am even referring to the possibility of knowing from the server side
through wicket pagemap or something that a page has being removed or
unloaded. is there a way to know that this
but there has to be a way from wicket code (server side) to know the Class
of the current WebPage
Hi Matej,
looks really great! - One thing I dont understand ist:
You wrote:
* The redirect is necessary for pages with AJAX stuff, so that the
> > > page instance is preserved on reload (otherwise with bookmarkable URL
> > > new instance of page would be created on every reload, which discards
>
63 matches
Mail list logo