Hi,
I would like to consult on implementing a generic mechanism for checking
whether some data on a page modified before leaving that page.
The use case is:
- Page has some form fields or other controls
- User has entered some data to the form
- Before submitting the form user clicked on a link t
Seems to me like the hierarchy is ok.
What's missing from the code you provided is the id of the component you
defined as InboxMenuLabel(). Are you sure it was named "inboxMenu"?
Arie
public InboxMenuContainer() {
super("inbox");
super
uper("inboxMenu","InboxMenu");
> }
>}
>
>
> Arie Fishler wrote:
> >
> > Seems to me like the hierarchy is ok.
> >
> > What's missing from the code you provided is the id of the component you
> > defined as In
Hi,
I know this was handled many times here in a way but this is not exactly the
regular kind of "ajax submit for an upload field".
I have implemented the ajax submit using the inline frame solution.
However...I want to have a preview of an uploaded file (image for example)
BEFORE submitting the
t the hidden frame as an actual component and place it where you
> want the preview to be, that way after the upload it can write out an
> img tag.
>
> -igor
>
> On Mon, Jun 22, 2009 at 2:14 AM, Arie Fishler wrote:
> > Hi,
> >
> > I know this was handled many t
inline frame is done getting the file it can send some
> >> javascript to the browser to change an src of a hidden img tag to the
> >> url of the uploaded file. thats one way to do this. another way is to
> >> treat the hidden frame as an actual component and place i
Hello,
The normal way wicket goes over resource files is based on locale and
different component names, application name etc.
What's the best practice for a situation in which I would like my
application to find the resource file based on a "skin".
This means that for the same classes set (same w
Many thanks guys...this is exactly what I meant. Happy this is found in the
base of wicket. Anoter example of how flexible and great wicket is:)
Cheers..great day to all.
Arie.
On Mon, Aug 17, 2009 at 11:17 AM, Wilhelmsen Tor Iver wrote:
> > It is like I need another selection mechanism for res
in the ctor just add this line
InjectorHolder.*getInjector*().inject(*this*);
On Mon, Aug 17, 2009 at 6:26 PM, Haulyn R. Jason wrote:
> Hi, all:
> I have a class which is likes below:
>
>
> public class DetachableMemberModel extends LoadableDetachableModel
> {
>
>private final long id;
>
>
Wicket in action! A must have!
On Tue, Aug 18, 2009 at 9:26 AM, Jeroen Steenbeeke wrote:
> I realize you asked for freely available information sources, but you
> really
> can't go wrong with Wicket in Action:
> http://manning.com/dashorst/
> It isn't that expensive at $45, and you get a PDF cop
Hi,
I have a page rendering all sorts of stuff. I do it on development so I see
the "Wicket Ajax Debug" label.
>From time to time, not on a constant basis I get a blank page instead of
getting the content I expect. A side effect of this is that every time that
happens the "Wicket Ajax Debug" labe
basically I have a similar situation. I pass in the qs a parameter
indicating which tab I need to be on focus and then use code to simulate tab
selection for this specific tab.
We use Jquery tabs integrated into wicket.
I also do it for specific location on the page - use anchors in the page and
;
> Regards,
> Linda
>
> Arie Fishler wrote:
>
>> Hi,
>>
>> I have a page rendering all sorts of stuff. I do it on development so I
>> see
>> the "Wicket Ajax Debug" label.
>>
>> >From time to time, not on a constant basis I get a
Hi,
Assuming that I am localizing to a language that has different text required
for male and female is there a generic way for hadling that. This is of
course based on the fact that I can provide a user object that contains that
property (if the user is a male or female)
I can think of a convent
have 2 files:
>
> MyApplication_male.properties
> MyApplication_female.properties
>
> j
>
>
> On Thu, Aug 27, 2009 at 5:32 PM, Arie Fishler wrote:
> > Hi,
> >
> > Assuming that I am localizing to a language that has different text
> required
> > fo
Hi,
We have been implementing the getAjaxCallDecorator for links that
extends AjaxLink
in order to manipulate the way the wicket-ajax is called on these links.
I have a need to do something similar with a behavior and not sure how to
implement.
I have a behavior that is applied (added) to differ
ipt must to be appended the script responsible
> to call the behavior. You can get it invoking the
> AbstractDefaultAjaxBehavior.getCallbackScript() protected method.
>
> On Thu, Sep 3, 2009 at 7:59 AM, Arie Fishler wrote:
>
> > Hi,
> >
> > We have been implementin
> case because:
>
> "I want this function call to resume the wicket action"
>
> public class CustomLink/CustomButton extends Link/Button{
>@override
> onClick or onSubmit(){
>callFunctionBeforeAnyOtherAction();
>callAction();
> }
&g
y’re attached to).
> I'm curious to know your final solution
>
>
> On Thu, Sep 3, 2009 at 9:14 AM, Arie Fishler wrote:
>
> > Wel...this is the solution I wanted to avoid since this behavior can be
> > attached to buttons, links, ajax links...don't want to create
when
call_function() terminates...this was just a rough description
On Thu, Sep 3, 2009 at 3:57 PM, Arie Fishler wrote:
> let's say this behavior is adding this to the onclik just before the
> wicket ajax
>
> onclick="call_function();return false;original_wicket_stuff_for_ajax()&q
I have a custom error page that I set like explained in the wiki
http://cwiki.apache.org/WICKET/error-pages-and-feedback-messages.html
Stillthe page returns http 200. How do I set it to a specific error
code?
Thanks,
Arie
se().getHttpServletResponse().setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
>}
>
>@Override
>public boolean isVersioned() {
>return false;
>}
>
>@Override
>public boolean isErrorPage() {
>return true;
> }
&
Hi,
What's the up-to-date method to change the default UTF-8 charset set in the
page.
I saw the page in the wiki but it is old and it has a header saying"this
is going to change"
So I am not sure and could not find something useful on the search.
I need to set it for a specific page or pane
Hi,
When a client has a page in his browser that he does not touch for a while
and the session expired. after that if he hits an ajax link for example - an
exception occurs in the wicket level due to the session expired state.
How can I gracefully handle such a situation assuming that there is no
Hi,
I am using setStyle in the Session to set a "skin". I am using this setting
to retrieve texts from resource files based on the skin.
The thing is that a user might go to other pages during the same session.
Other pages might have different "skins" so they are supposed to show other
texts for
Hello,
I am extending AbstractDefaultAjaxBehavior and using getCallBackUrl to place
the ajax call in a JS function.
This works fine.
The only problem I have is that the getCallBackUrl does not seem to take
into account the container's (tomcat) behavior of adding the JSESSIONID
within the URL in
arams));
*else* {
scriptParams.put("paramName", paramName);
getComponent().add(*new* ScriptHeaderContributor(AjaxJSFunctionBehavior.*
class*, "ajaxParamFunction.js", scriptParams));
}
*super*.onBind();
}
On Wed, Apr 21, 2010 at 9:11 AM, Arie Fishler wrote:
> Hello,
>
Hi,
I have some injection related issues in my wicket application.
1. My session hold a bean (managed by the spring container) that is passed
to it on construction of the session. It is not a Serializable object (some
of the interfaces that this object is using are spring interfaces and not
seria
Hi,
In the authentication mechanism, there is apossibility to define a Sign In
page. when user has no sufficient permission he is automatically redirected
to that page.
Is it possible that the sign in page will have the original query string of
the the request?
Like having a sign in page with Pa
wrote:
> This is default behavior with at least wicket auth-roles. See
> RedirectToInterceptPageException
>
> Martijn
>
> On Sun, Dec 14, 2008 at 7:27 PM, Arie Fishler wrote:
> > Hi,
> >
> > In the authentication mechanism, there is apossibility to define a Sign
this is version 1.3.5 I am using
On Mon, Dec 15, 2008 at 9:46 AM, Arie Fishler wrote:
> Basically I do not find this class you mention.
>
> I am using AuthenticatedWebApplication which is calling another (similar?)
> class which is RestartResponseAtInterceptPageException.
>
&
Hi,
I am using wicket via tomcat integrated into spring using a filter with *
org*.*apache*.*wicket*.protocol.*http*.WicketFilter
The thing is that I want to map the wicket application to several url
patterns (to know which environment the user is coming from)
Is there a way to map the filter
We are using the AnnotationsRoleAuthorizationStrategy class and place
@AuthorizeInstantiation("ROLE_USER") on restricted Wicket pages.
We need finer-grained authorisation control - we have a class that has 3
AjaxLinks each with their own onClick() handler. 2 of the onClick()
handlers are accessib
NABLE,
> "ADMIN");
>
> -Heikki
>
> -Original Message-
> From: Arie Fishler [mailto:arie@gmail.com]
> Sent: 18. joulukuuta 2008 16:08
> To: users@wicket.apache.org
> Subject: Assigning an Action to an onClick handler
>
> We are usin
Hi,
I am trying to stream an image to the response and setting the proper mime
type to it prior to writing the stream to the output.
The file exists and is written but the mime type of the response is not set
according to what I expect it to be ("image/png"). Any idea?
WebResponse response = (W
ok
On Wed, Dec 31, 2008 at 11:35 AM, Martijn Dashorst <
martijn.dasho...@gmail.com> wrote:
> Please createca Jira issue.
>
> Martijn
>
> On 12/31/08, Arie Fishler wrote:
> > Hi,
> >
> > I am trying to stream an image to the response and setting the proper
nt to stream your content, just do :
> RequestCycle().get().setRequestTarget(
>new ResourceStreamRequestTarget(new MyResourceStreamWriterImpl());
>
> Hope this helps !
>
> Happy new year ;)
>
> Antoine.
>
> Arie Fishler wrote:
>
>> Hi,
>>
>> I am try
Hi All,
First...Happy new year to everybody!
I apologize for raising this question again as I did it in the past in some
other form but actually this was not really resolved for me.
I am using RestartResponseAtInterceptPageException to redirect to some
sign-in page or similar.
I think it was Ma
Well Antoine...this is truly a sign of a new good year since your little
trick just works very well.
Much appreciated here!!!
Cheers, happy new year,
Arie.
On Wed, Dec 31, 2008 at 6:46 PM, Arie Fishler wrote:
> Will try that and report.
>
> Thanks for the suggestion.
>
>
(parameters), but it will allow you to accomplish
> the same thing.
>
> I.e. in org.apache.wicket.Session:
>
> public final java.io.Serializable getMetaData(MetaDataKey key)
> public final void setMetaData(MetaDataKey key, Serializable object)
>
>
>
> Good luck!
>
Hi,
I am integrating some reports using the JasperReports integration classes
found in the Wicket stuff.
Basically I have a class that extends DynamicWebResource
It is linked using a ResourceLink that triggers its output.
Content type is returned as text/html.
Why is the browser asking me bef
> Hi,
>
> I am integrating some reports using the JasperReports integration classes
> found in the Wicket stuff.
>
> Basically I have a class that extends DynamicWebResource
>
> It is linked using a ResourceLink that triggers its output.
>
> Content type is returned as text/html.
>
> Why is the b
Got that figured out. Actually it is in the book. Using
RequestCycle.get().setRequestTarget(target); with a submit button. This also
opens it up with no dialog box.
On Mon, Mar 2, 2009 at 7:43 PM, Arie Fishler wrote:
> - Show quoted text -
>
> Hi,
>>
>> I am integrati
43 matches
Mail list logo