Re: Forwarding to a servlet

2008-09-23 Thread Nino Saturnino Martinez Vazquez Wael

No problem.. Happy to help.

David Leangen wrote:

Hi David



Hi Nino!

[Oops. Didn't see your message until now...]

  

I think you could just use response.sendRedirect() and
request.forward() , rest of the code should still be
processed.



Ok, good to know.


  

But are you expecting the user to return from the servlet?



Still not sure what I want yet... in the process of figuring that out.
Hopefully will know when I get back in front of my machine tomorrow...

Thanks for the reply.

David


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

  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: Dynamic PageExpiredPage

2008-09-23 Thread Markus Haspl
On Mon, Sep 22, 2008 at 6:04 PM, Justin Morgan - Logic Sector <
[EMAIL PROTECTED]> wrote:

> Create a custom Wicket session subclass that holds your portal:
>
> public class MySession extends WebSession {
>private Portal  _portal;
>public MySession(Request request) {
>super(request);
>LOGGER.debug("Instantiated");
>_portal = new Portal();
>}
>public Portal getPortal() { return _portal; }
>public void setPortal(Portal portal) { _portal = portal; }
> }
>
> Somewhere in your "normal" page:
> ((MySession) getSession()).setPortal(myPortal);
>
> Somewhere in your PageExpiredPage:
> Portal myPortal = ((MySession) getSession()).getPortal();
>
> In your Wicket Application subclass:
>/** @see org.apache.wicket.Application#newSession(Request, Response) */
>@Override
>public Session newSession(Request request, Response response) {
>return new MySession(request);
>}
>
> Best regards,
>
> Justin


Thanks! But i thought that the Session will be invalide when the PageExpired
Error comes? Isn't that true? If not so, than your approach will be very
fine.


Re: Dynamic PageExpiredPage

2008-09-23 Thread Nino Saturnino Martinez Vazquez Wael
That should work very well, as you can pass all sort of data into the 
constructor.. This is also the aproach i've used if we should to a 
little more than display a "static" error page.


Michael Sparer wrote:

we handle it like that:
[in your application-class]

@Override
protected IRequestCycleProcessor newRequestCycleProcessor() {
return new WebRequestCycleProcessor() {

@Override
protected Page onRuntimeException(final Page page, 
final RuntimeException
e) {
if (e instanceof PageExpiredException) {
return new 
PageExpiredPage(((MyPage)page).getPortalId());
}
return new InternalServerError(page, e);

}

};
}

Markus Haspl wrote:
  

On Mon, Sep 22, 2008 at 3:48 PM, Uwe Schäfer
<[EMAIL PROTECTED]>wrote:



Markus Haspl schrieb:

 getApplicationSettings().setPageExpiredErrorPage(Page.class); In the
  

Page.class i can't work with the PageParameters, so i can't make it
dynamic.



what kind of data would you like to pass to it, and - more important -
where could you possibly get it from ?

  

i have a PageParameter (portalId) which indicates on which Portal the User
is on. In the database there are a lot of portals, every portal has it's
own
users, pages and so on. So, every portal should have its own
PageExpiredErrorPage.






-
Michael Sparer
http://talk-on-tech.blogspot.com
  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: Dynamic PageExpiredPage

2008-09-23 Thread Martijn Dashorst
In your case I would set a client side cookie that stores the portal
id. This way you can identify which portal the user was visiting and
make your PageExpiredPage customized.

Martijn

On Tue, Sep 23, 2008 at 10:00 AM, Markus Haspl <[EMAIL PROTECTED]> wrote:
> On Mon, Sep 22, 2008 at 6:04 PM, Justin Morgan - Logic Sector <
> [EMAIL PROTECTED]> wrote:
>
>> Create a custom Wicket session subclass that holds your portal:
>>
>> public class MySession extends WebSession {
>>private Portal  _portal;
>>public MySession(Request request) {
>>super(request);
>>LOGGER.debug("Instantiated");
>>_portal = new Portal();
>>}
>>public Portal getPortal() { return _portal; }
>>public void setPortal(Portal portal) { _portal = portal; }
>> }
>>
>> Somewhere in your "normal" page:
>> ((MySession) getSession()).setPortal(myPortal);
>>
>> Somewhere in your PageExpiredPage:
>> Portal myPortal = ((MySession) getSession()).getPortal();
>>
>> In your Wicket Application subclass:
>>/** @see org.apache.wicket.Application#newSession(Request, Response) */
>>@Override
>>public Session newSession(Request request, Response response) {
>>return new MySession(request);
>>}
>>
>> Best regards,
>>
>> Justin
>
>
> Thanks! But i thought that the Session will be invalide when the PageExpired
> Error comes? Isn't that true? If not so, than your approach will be very
> fine.
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Wicket critique

2008-09-23 Thread Yiannis Mavroukakis

http://stackoverflow.com/questions/116978/can-anyone-recommend-a-simple-java-web-app-framework

Anyone interested in replying to this?

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



Re: Wicket critique

2008-09-23 Thread Matej Knopp
I don't think it really is Wicket critique. It's more critique of Maven.

-Matej

On Tue, Sep 23, 2008 at 10:44 AM, Yiannis Mavroukakis
<[EMAIL PROTECTED]> wrote:
> http://stackoverflow.com/questions/116978/can-anyone-recommend-a-simple-java-web-app-framework
>
> Anyone interested in replying to this?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: MultiFileUploadField on a ModalWindow close issue

2008-09-23 Thread Matej Knopp
Hi,

perhaps the easiest way to accomplish would be to add
AjaxTimerBehavior to page in modal window on submit. The bavior could
have time set for 1 second and close the modal window from within the
ajax request it invokes.

-Matej

On Tue, Sep 23, 2008 at 7:06 AM, Flavius <[EMAIL PROTECTED]> wrote:
>
> I have a ModalWindow open and I have a MultiFileUploadField for users to
> upload files.
> Upload works great.  I'd like to close the ModalWindow when the form is
> submitted.
> So if everything is fine, it will do the uploads and close the window.  If
> there's an
> issue, it won't close the window and show the errors in the feedback.
>
> The issue I'm having is I need an AjaxButton to close the modal window, so I
> have
> the AjaxRequestTarget to pass to the window.close() method.  But the
> MultiFileUploadField requires me to do a form post, which I do with a
> standard
> html submit button.  If I use an AjaxButton to submit the form, I don't get
> the
> uploads.
>
> Is there a way to accomplish this?
> --
> View this message in context: 
> http://www.nabble.com/MultiFileUploadField-on-a-ModalWindow-close-issue-tp19621418p19621418.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Wicket critique

2008-09-23 Thread Uwe Schäfer

Yiannis Mavroukakis schrieb:
http://stackoverflow.com/questions/116978/can-anyone-recommend-a-simple-java-web-app-framework 


complicated dir structure? countless xml files? come on...

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



Re: Wicket Markup parse doesn't handle Conditional Comments

2008-09-23 Thread Wayne Pope
Its definitely not working for me. I've used a header contributor for know,
but its not ideal.

Should I report this as a bug?

On Mon, Sep 22, 2008 at 6:57 PM, Jörn Zaefferer <
[EMAIL PROTECTED]> wrote:

> We are using conditional comments in our base page without any issues.
> Dunno if that page isn't parsed my the MarkupParser for some reason...
>
> Jörn
>
> On Mon, Sep 22, 2008 at 5:49 PM, Matej Knopp <[EMAIL PROTECTED]>
> wrote:
> > Well, if it is a valid xml then it is bug in our parser.
> >
> > -Matej
> >
> > On Mon, Sep 22, 2008 at 5:44 PM, Igor Vaynberg <[EMAIL PROTECTED]
> >wrote:
> >
> >> you are going to have to output the whole thing using a label or
> >> header contributor. our parser cant handle the non-standard comment
> >> tags yet.
> >>
> >> -igor
> >>
> >> On Mon, Sep 22, 2008 at 1:40 AM, Wayne Pope
> >> <[EMAIL PROTECTED]> wrote:
> >> > Hi,
> >> >
> >> > I just tried to put some conditional comments in my page:
> >> >
> >> > 
> >> >
> >> > and the Markupparser just can't seem to handle it:
> >> >
> >> > Caused by: java.text.ParseException: Unclosed comment beginning at
> line:9
> >> > column:3
> >> >at
> >> >
> >>
> org.apache.wicket.markup.parser.XmlPullParser.specialTagHandling(XmlPullParser.java:332)
> >> >at
> >> >
> >>
> org.apache.wicket.markup.parser.XmlPullParser.next(XmlPullParser.java:243)
> >> >at
> >> >
> >>
> org.apache.wicket.markup.parser.XmlPullParser.nextTag(XmlPullParser.java:423)
> >> >at
> >> >
> >>
> org.apache.wicket.markup.parser.filter.WicketTagIdentifier.nextTag(WicketTagIdentifier.java:77)
> >> >at
> >> >
> >>
> org.apache.wicket.markup.parser.filter.TagTypeHandler.nextTag(TagTypeHandler.java:76)
> >> >at
> >> >
> >>
> org.apache.wicket.markup.parser.filter.HtmlHandler.nextTag(HtmlHandler.java:78)
> >> >at
> >> >
> >>
> org.apache.wicket.markup.parser.filter.WicketRemoveTagHandler.nextTag(WicketRemoveTagHandler.java:60)
> >> >at
> >> >
> >>
> org.apache.wicket.markup.parser.filter.WicketLinkTagHandler.nextTag(WicketLinkTagHandler.java:94)
> >> >at
> >> >
> >>
> org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82)
> >> >at
> >> >
> >>
> org.apache.wicket.markup.parser.filter.WicketNamespaceHandler.nextTag(WicketNamespaceHandler.java:72)
> >> >at
> >> >
> >>
> org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82)
> >> >at
> >> >
> >>
> org.apache.wicket.markup.parser.filter.WicketMessageTagHandler.nextTag(WicketMessageTagHandler.java:81)
> >> >at
> >> >
> >>
> org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82)
> >> >at
> >> >
> >>
> org.apache.wicket.markup.parser.filter.HtmlHeaderSectionHandler.nextTag(HtmlHeaderSectionHandler.java:77)
> >> >at
> >> >
> >>
> org.apache.wicket.markup.parser.filter.HeadForceTagIdHandler.nextTag(HeadForceTagIdHandler.java:77)
> >> >at
> >> >
> >>
> org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82)
> >> >at
> >> >
> >>
> org.apache.wicket.markup.parser.filter.OpenCloseTagExpander.nextTag(OpenCloseTagExpander.java:51)
> >> >at
> >> >
> >>
> org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82)
> >> >at
> >> >
> >>
> org.apache.wicket.markup.parser.filter.EnclosureHandler.nextTag(EnclosureHandler.java:76)
> >> >at
> >> >
> >>
> org.apache.wicket.markup.parser.filter.RelativePathPrefixHandler.nextTag(RelativePathPrefixHandler.java:116)
> >> >at
> >> >
> org.apache.wicket.markup.MarkupParser.getNextTag(MarkupParser.java:302)
> >> >at
> >> >
> org.apache.wicket.markup.MarkupParser.parseMarkup(MarkupParser.java:322)
> >> >... 35 more
> >> >
> >> > Any way of handling this?
> >> > thanks
> >> >
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
>


Re: AjaxRequestTarget is null in Internet Explorer 6

2008-09-23 Thread mahone9

Oh my goodness, I missed to add the instantiation of the AjaxFallbackLink to
my example.

The error still exists. I post you the right code-snipet. Sorry for the
inconvience ...


public class MenuePanel extends Panel {

private ListView menueListView = null;

public MenuePanel(final String id) {
super(id);

this.menueListView = new ListView("menue", getMenueEntries()) {

// this method is called for each entry in the list 

public void populateItem(ListItem item) {
final MenueEntry menueEntry = 
(MenueEntry)item.getModelObject();

AjaxFallbackLink ajaxFallbackLink = new 
AjaxFallbackLink("menueEntry") {
public void onClick(AjaxRequestTarget 
target) {
// target is null when 
refreshing the page ...
//although JavaScript is on
in Internet Explorer 6.0
}
};

item.add(ajaxFallbackLink);
}
};

this.menueListView.setOutputMarkupId(true);
add(this.menueListView);
}

...
}


















pointbreak+wicketstuff wrote:
> 
> Override onClick for your link. Your code defines an onClick in the
> panel, it doesn't override your Link's onclick.
> 
> On Mon, 22 Sep 2008 03:16:47 -0700 (PDT), "mahone9" <[EMAIL PROTECTED]>
> said:
>> 
>> I still have that problem and why is sb. responding to another
>> thread...
>> 
>> 
>> 
>> mahone9 wrote:
>> > 
>> > Hi all 
>> > 
>> > I´m struggeling with the AjaxFallbackLink the target object is null, if
>> it
>> > runs to the onClick() method. 
>> > In Firefox and Opera it works fine!!! 
>> > 
>> > class MyPanel extends Panel { 
>> > private AjaxFallbackLink link; 
>> > 
>> > public MyPanel() { 
>> >this.link = AjaxFallbackLink("link"); 
>> >add(link); 
>> > } 
>> > 
>> > public void onClick(AjaxRequestTarget target) { 
>> > if (target == null) { 
>> >   System.out.println("my target is: " + target);   //target is
>> > null 
>> > } else { 
>> >   System.out.println("my target is: " + target);   
>> >   target.appendJavascript("alert('is working');");   
>> > } 
>> > } 
>> > ... 
>> > } 
>> > 
>> > class MyPage extends WebPage { 
>> > private MyPanel myPanel; 
>> > 
>> > public MyPage() { 
>> >  this.myPanel = new MyPanel("myPanel"); 
>> >  add(myPanel); 
>> > } 
>> > 
>> > } 
>> > 
>> > If I add the AjaxFallbackLink to a WebPage instead to a Panel it works
>> > pretty fine. 
>> > 
>> > What I do is: 
>> > - call the page and click the link 
>> > - refresh the page through F5 
>> > - once again click the link 
>> > 
>> > __
>> > Do You Yahoo!?
>> > Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden
>> Schutz
>> > gegen Massenmails. 
>> > http://mail.yahoo.com
>> > 
>> I still have that problem and why is sb. responding to another
>> thread... 
>> -- 
>> View this message in context:
>> http://www.nabble.com/AjaxRequestTarget-is-null-in-Internet-Explorer-6-tp19597723p19605102.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/AjaxRequestTarget-is-null-in-Internet-Explorer-6-tp19597723p19623968.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket critique

2008-09-23 Thread Yiannis Mavroukakis
I disagree but even if that where the case, it's still comes across as a 
minus on the framework..


Matej Knopp wrote:

I don't think it really is Wicket critique. It's more critique of Maven.

-Matej

On Tue, Sep 23, 2008 at 10:44 AM, Yiannis Mavroukakis
<[EMAIL PROTECTED]> wrote:
  

http://stackoverflow.com/questions/116978/can-anyone-recommend-a-simple-java-web-app-framework

Anyone interested in replying to this?

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





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

  


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



Re: Wicket Markup parse doesn't handle Conditional Comments

2008-09-23 Thread Matej Knopp
Sure. Please do. But if possible attach a simple quick start project
so that we can reproduce the problem.

-Matej

On Tue, Sep 23, 2008 at 11:09 AM, Wayne Pope
<[EMAIL PROTECTED]> wrote:
> Its definitely not working for me. I've used a header contributor for know,
> but its not ideal.
>
> Should I report this as a bug?
>
> On Mon, Sep 22, 2008 at 6:57 PM, Jörn Zaefferer <
> [EMAIL PROTECTED]> wrote:
>
>> We are using conditional comments in our base page without any issues.
>> Dunno if that page isn't parsed my the MarkupParser for some reason...
>>
>> Jörn
>>
>> On Mon, Sep 22, 2008 at 5:49 PM, Matej Knopp <[EMAIL PROTECTED]>
>> wrote:
>> > Well, if it is a valid xml then it is bug in our parser.
>> >
>> > -Matej
>> >
>> > On Mon, Sep 22, 2008 at 5:44 PM, Igor Vaynberg <[EMAIL PROTECTED]
>> >wrote:
>> >
>> >> you are going to have to output the whole thing using a label or
>> >> header contributor. our parser cant handle the non-standard comment
>> >> tags yet.
>> >>
>> >> -igor
>> >>
>> >> On Mon, Sep 22, 2008 at 1:40 AM, Wayne Pope
>> >> <[EMAIL PROTECTED]> wrote:
>> >> > Hi,
>> >> >
>> >> > I just tried to put some conditional comments in my page:
>> >> >
>> >> > 
>> >> >
>> >> > and the Markupparser just can't seem to handle it:
>> >> >
>> >> > Caused by: java.text.ParseException: Unclosed comment beginning at
>> line:9
>> >> > column:3
>> >> >at
>> >> >
>> >>
>> org.apache.wicket.markup.parser.XmlPullParser.specialTagHandling(XmlPullParser.java:332)
>> >> >at
>> >> >
>> >>
>> org.apache.wicket.markup.parser.XmlPullParser.next(XmlPullParser.java:243)
>> >> >at
>> >> >
>> >>
>> org.apache.wicket.markup.parser.XmlPullParser.nextTag(XmlPullParser.java:423)
>> >> >at
>> >> >
>> >>
>> org.apache.wicket.markup.parser.filter.WicketTagIdentifier.nextTag(WicketTagIdentifier.java:77)
>> >> >at
>> >> >
>> >>
>> org.apache.wicket.markup.parser.filter.TagTypeHandler.nextTag(TagTypeHandler.java:76)
>> >> >at
>> >> >
>> >>
>> org.apache.wicket.markup.parser.filter.HtmlHandler.nextTag(HtmlHandler.java:78)
>> >> >at
>> >> >
>> >>
>> org.apache.wicket.markup.parser.filter.WicketRemoveTagHandler.nextTag(WicketRemoveTagHandler.java:60)
>> >> >at
>> >> >
>> >>
>> org.apache.wicket.markup.parser.filter.WicketLinkTagHandler.nextTag(WicketLinkTagHandler.java:94)
>> >> >at
>> >> >
>> >>
>> org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82)
>> >> >at
>> >> >
>> >>
>> org.apache.wicket.markup.parser.filter.WicketNamespaceHandler.nextTag(WicketNamespaceHandler.java:72)
>> >> >at
>> >> >
>> >>
>> org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82)
>> >> >at
>> >> >
>> >>
>> org.apache.wicket.markup.parser.filter.WicketMessageTagHandler.nextTag(WicketMessageTagHandler.java:81)
>> >> >at
>> >> >
>> >>
>> org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82)
>> >> >at
>> >> >
>> >>
>> org.apache.wicket.markup.parser.filter.HtmlHeaderSectionHandler.nextTag(HtmlHeaderSectionHandler.java:77)
>> >> >at
>> >> >
>> >>
>> org.apache.wicket.markup.parser.filter.HeadForceTagIdHandler.nextTag(HeadForceTagIdHandler.java:77)
>> >> >at
>> >> >
>> >>
>> org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82)
>> >> >at
>> >> >
>> >>
>> org.apache.wicket.markup.parser.filter.OpenCloseTagExpander.nextTag(OpenCloseTagExpander.java:51)
>> >> >at
>> >> >
>> >>
>> org.apache.wicket.markup.parser.AbstractMarkupFilter.nextComponentTag(AbstractMarkupFilter.java:82)
>> >> >at
>> >> >
>> >>
>> org.apache.wicket.markup.parser.filter.EnclosureHandler.nextTag(EnclosureHandler.java:76)
>> >> >at
>> >> >
>> >>
>> org.apache.wicket.markup.parser.filter.RelativePathPrefixHandler.nextTag(RelativePathPrefixHandler.java:116)
>> >> >at
>> >> >
>> org.apache.wicket.markup.MarkupParser.getNextTag(MarkupParser.java:302)
>> >> >at
>> >> >
>> org.apache.wicket.markup.MarkupParser.parseMarkup(MarkupParser.java:322)
>> >> >... 35 more
>> >> >
>> >> > Any way of handling this?
>> >> > thanks
>> >> >
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>>
>

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



Re: AjaxRequestTarget is null in Internet Explorer 6

2008-09-23 Thread Matej Knopp
What happens if you change AjaxFallbackLink to simple AjaxLink?

That would mean problems with xmlhttprequest in IE6. There are some
users complaining with cetain IE6 revisions, but so far I have been
unable to reproduce this problem. And unless I reproduce it there
really is no way for me to fix it.

What wicket version are you testing this with?

-Matej

On Tue, Sep 23, 2008 at 11:10 AM, mahone9 <[EMAIL PROTECTED]> wrote:
>
> Oh my goodness, I missed to add the instantiation of the AjaxFallbackLink to
> my example.
>
> The error still exists. I post you the right code-snipet. Sorry for the
> inconvience ...
>
>
> public class MenuePanel extends Panel {
>
>private ListView menueListView = null;
>
>public MenuePanel(final String id) {
>super(id);
>
>this.menueListView = new ListView("menue", getMenueEntries()) {
>
>// this method is called for each entry in the list
>public void populateItem(ListItem item) {
>final MenueEntry menueEntry = 
> (MenueEntry)item.getModelObject();
>
>AjaxFallbackLink ajaxFallbackLink = new 
> AjaxFallbackLink("menueEntry") {
>public void onClick(AjaxRequestTarget 
> target) {
>// target is null when 
> refreshing the page ...
>//although JavaScript is on
> in Internet Explorer 6.0
>}
>};
>
>item.add(ajaxFallbackLink);
>}
>};
>
>this.menueListView.setOutputMarkupId(true);
>add(this.menueListView);
>}
>
>...
> }
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> pointbreak+wicketstuff wrote:
>>
>> Override onClick for your link. Your code defines an onClick in the
>> panel, it doesn't override your Link's onclick.
>>
>> On Mon, 22 Sep 2008 03:16:47 -0700 (PDT), "mahone9" <[EMAIL PROTECTED]>
>> said:
>>>
>>> I still have that problem and why is sb. responding to another
>>> thread...
>>>
>>>
>>>
>>> mahone9 wrote:
>>> >
>>> > Hi all
>>> >
>>> > I´m struggeling with the AjaxFallbackLink the target object is null, if
>>> it
>>> > runs to the onClick() method.
>>> > In Firefox and Opera it works fine!!!
>>> >
>>> > class MyPanel extends Panel {
>>> > private AjaxFallbackLink link;
>>> >
>>> > public MyPanel() {
>>> >this.link = AjaxFallbackLink("link");
>>> >add(link);
>>> > }
>>> >
>>> > public void onClick(AjaxRequestTarget target) {
>>> > if (target == null) {
>>> >   System.out.println("my target is: " + target);   //target is
>>> > null
>>> > } else {
>>> >   System.out.println("my target is: " + target);
>>> >   target.appendJavascript("alert('is working');");
>>> > }
>>> > }
>>> > ...
>>> > }
>>> >
>>> > class MyPage extends WebPage {
>>> > private MyPanel myPanel;
>>> >
>>> > public MyPage() {
>>> >  this.myPanel = new MyPanel("myPanel");
>>> >  add(myPanel);
>>> > }
>>> >
>>> > }
>>> >
>>> > If I add the AjaxFallbackLink to a WebPage instead to a Panel it works
>>> > pretty fine.
>>> >
>>> > What I do is:
>>> > - call the page and click the link
>>> > - refresh the page through F5
>>> > - once again click the link
>>> >
>>> > __
>>> > Do You Yahoo!?
>>> > Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden
>>> Schutz
>>> > gegen Massenmails.
>>> > http://mail.yahoo.com
>>> >
>>> I still have that problem and why is sb. responding to another
>>> thread...
>>> --
>>> View this message in context:
>>> http://www.nabble.com/AjaxRequestTarget-is-null-in-Internet-Explorer-6-tp19597723p19605102.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/AjaxRequestTarget-is-null-in-Internet-Explorer-6-tp19597723p19623968.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Wicket critique

2008-09-23 Thread Eelco Hillenius
The author of the question actually did a project in Wicket (thoof),
so he must be for even more improvements :-)

Eelco

On Tue, Sep 23, 2008 at 1:44 AM, Yiannis Mavroukakis
<[EMAIL PROTECTED]> wrote:
> http://stackoverflow.com/questions/116978/can-anyone-recommend-a-simple-java-web-app-framework
>
> Anyone interested in replying to this?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



How to customize error message in SignInPanel

2008-09-23 Thread wiki

Does any one knows how to customize error message "login failed" to our own
message using SignInPanel.
In my project  I am using acegi so I want two different messages 
1 for user whose account is locked 
2 for user whose account is active but password or email entered wrong

Thanks 

-- 
View this message in context: 
http://www.nabble.com/How-to-customize-error-message-in-SignInPanel-tp19624142p19624142.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket critique

2008-09-23 Thread Chris Stein
I tried many different frameworks in the past and Wicket was probably one of 
the easiest to set up and integrate into Eclipse. I have to admit that the 
learning curve is quite steep here. It helped me being familiar with Eclipse 
and the Tomcat integration to get things going quickly. Besides: I don't use 
Maven.



- Original Message 
From: Yiannis Mavroukakis <[EMAIL PROTECTED]>
To: users@wicket.apache.org
Sent: Tuesday, September 23, 2008 10:44:40 AM
Subject: Wicket critique

http://stackoverflow.com/questions/116978/can-anyone-recommend-a-simple-java-web-app-framework

Anyone interested in replying to this?

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


  


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



Re: Wicket critique

2008-09-23 Thread Yiannis Mavroukakis

Likewise, I think that secretly I'm a bit of a Maven refusenik :-P

Chris Stein wrote:

I tried many different frameworks in the past and Wicket was probably one of 
the easiest to set up and integrate into Eclipse. I have to admit that the 
learning curve is quite steep here. It helped me being familiar with Eclipse 
and the Tomcat integration to get things going quickly. Besides: I don't use 
Maven.



- Original Message 
From: Yiannis Mavroukakis <[EMAIL PROTECTED]>
To: users@wicket.apache.org
Sent: Tuesday, September 23, 2008 10:44:40 AM
Subject: Wicket critique

http://stackoverflow.com/questions/116978/can-anyone-recommend-a-simple-java-web-app-framework

Anyone interested in replying to this?

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


  



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

  


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



Re: Wicket critique

2008-09-23 Thread Martijn Dashorst
http://herebebeasties.com/static/Wicket-QuickStart.avi

shows that setting up maven, wicket and eclipse is really easy
(provided you are not limited by a proxy)

Martijn

On Tue, Sep 23, 2008 at 11:41 AM, Chris Stein <[EMAIL PROTECTED]> wrote:
> I tried many different frameworks in the past and Wicket was probably one of 
> the easiest to set up and integrate into Eclipse. I have to admit that the 
> learning curve is quite steep here. It helped me being familiar with Eclipse 
> and the Tomcat integration to get things going quickly. Besides: I don't use 
> Maven.
>
>
>
> - Original Message 
> From: Yiannis Mavroukakis <[EMAIL PROTECTED]>
> To: users@wicket.apache.org
> Sent: Tuesday, September 23, 2008 10:44:40 AM
> Subject: Wicket critique
>
> http://stackoverflow.com/questions/116978/can-anyone-recommend-a-simple-java-web-app-framework
>
> Anyone interested in replying to this?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Adding HTML class="invalid" after validating with IndicatingAjaxButton

2008-09-23 Thread cstein1206

I basically want to achieve this:
http://www.jroller.com/karthikg/entry/wicket_and_ajax
but handle the validation only after the form has been submitted with an
AjaxIndicatingButton instead of with the "onblur" as in the example.

I think I tried too many things over the last couple of days and got totally
confused now. Would anybody be so kind to help me out a bit? What do I need
to add to the FormComponents so that they will be updated with an
HTML-attribute "class='invalid'"? So far my form doesn't do that (I did
setOutputMarkupId(true)).

Thanks a ton!
Chris
-- 
View this message in context: 
http://www.nabble.com/Adding-HTML-class%3D%22invalid%22-after-validating-with-IndicatingAjaxButton-tp19624501p19624501.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Best to strategy to have a Wicket page returns a binary content by default

2008-09-23 Thread Paolo Di Tommaso
Guys,

I'm using Wicket to create pdf content using Apache FOP. The idea is to have
a FopPage that extends the root wicket Page component and declares "fo" as
marketType. The FopPage parses FOP markup instead HTML markup.

I'm able to manage the fop to pdf binary conversion using a custom
PdfRequestTarget, but it requires to specify it explicitly, invoking
RequestCycle.get().setRequestTarget(new PdfRequestTarget(this)); every time.


So the question: is there a way to make a custom RequestTarget the default
to certain pages? Or exists a better strategy to override the default render
strategy to return a content different from HTML ?


Thank you,

-- Paolo


Re: refresh page with detachable model - not working

2008-09-23 Thread lienok

Well, I found my problem.

of course the model was changed but it did not have a chance to show,
because I didn't call the method setVisibility() where changes are visible.

so I add to every click
. 
lnkSendToAuth = new Link("sendToAuth") {

public void onClick() {
   /**
 *after ticket is authorized link "sendToAuth" is disabled
 * BUT THIS IS NOT WORKING AUTOMATICALLY,
 * I have to reopen the page. NOT EVEN REFRESH IS HELPING */

tck.sendToAuthorization(true);
info("Ticket was sent to authorization.");
}

setVisibility();
};
add(lnkSendToAuth); 


anyway thank you for the assistance :)  
at least I knew there was no problem with models.. 


lienok wrote:
> 
> Hi Marijn, 
> 
> I have moved it to the onclick handler in a following way, but it did not
> help.
> tck = (Ticket) getParent().getModel().getObject();
> 
> 
> 
> 
> Martijn Dashorst wrote:
>> 
>> move tck = getModelObject() into the onclick handler.
>> 
>> Martijn
>> 
>> On Mon, Sep 22, 2008 at 4:05 PM, lienok <[EMAIL PROTECTED]> wrote:
>>>
>>> Hello,
>>>
>>> the panel with detachable model is not refreshing after model has
>>> changed.
>>> kindly check the code please.
>>>
>>> the panel - ActivityPanel is not refreshing after I press link and
>>> status of
>>> the DetachableTcktModel is changed.
>>>
>>> public LoansTabPanel(String id, int ticketId) {
>>>super(id);
>>>setModel(new CompoundPropertyModel(new
>>> DetachableTcktModel(ticketId)));
>>>getMenu();
>>>getFullContent();
>>> }
>>>
>>> public void getFullContent() {
>>>
>>>//when ticket was not authorized "sendToAuth" link is visible
>>>add(new ActivityPanel("activityPanel", getModel()));
>>>}
>>>
>>> ..
>>>
>>> public ActivityPanel(String id, IModel model) {
>>>super(id, model);
>>>tck = (Ticket) getModelObject();
>>>
>>>lnkSendToAuth = new Link("sendToAuth") {
>>>
>>>public void onClick() {
>>>   /**
>>> *after ticket is authorized link "sendToAuth" is disabled
>>> * BUT THIS IS NOT WORKING AUTOMATICALLY,
>>> * I have to reopen the page. NOT EVEN REFRESH IS HELPING */
>>>
>>>tck.sendToAuthorization(true);
>>>info("Ticket was sent to authorization.");
>>>}
>>>};
>>>add(lnkSendToAuth);
>>>
>>> }
>>> 
>>> public DetachableTcktModel(int ticketID) {
>>>this.ticketId = ticketID;
>>> }
>>>
>>> protected Object load() {
>>>tck = findTicket(ticketId);
>>>return tck;
>>> }
>>>
>>> public void detach() {
>>>tck = null;
>>>}
>>>
>>> .
>>>
>>>
>>> Any advice what I am doing wrong I would appreciate.
>>>
>>> Thanks, Lenka
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/refresh-page-with-detachable-model---not-working-tp19608631p19608631.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>> 
>> 
>> 
>> -- 
>> Become a Wicket expert, learn from the best: http://wicketinaction.com
>> Apache Wicket 1.3.4 is released
>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/refresh-page-with-detachable-model---not-working-tp19608631p19625525.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: AjaxRequestTarget is null in Internet Explorer 6

2008-09-23 Thread mahone9

Hello Matej

I´m using 
wicket version 1.3.4.
Internet Explorer: Version: 6.0.2900.2180.xpsp_sp2_rtm.040803-2158

My AjaxRequestTarget is still "null" even if I use AjaxLink instead of
AjaxFallbackLink.





Matej Knopp-2 wrote:
> 
> What happens if you change AjaxFallbackLink to simple AjaxLink?
> 
> That would mean problems with xmlhttprequest in IE6. There are some
> users complaining with cetain IE6 revisions, but so far I have been
> unable to reproduce this problem. And unless I reproduce it there
> really is no way for me to fix it.
> 
> What wicket version are you testing this with?
> 
> -Matej
> 
> On Tue, Sep 23, 2008 at 11:10 AM, mahone9 <[EMAIL PROTECTED]> wrote:
>>
>> Oh my goodness, I missed to add the instantiation of the AjaxFallbackLink
>> to
>> my example.
>>
>> The error still exists. I post you the right code-snipet. Sorry for the
>> inconvience ...
>>
>>
>> public class MenuePanel extends Panel {
>>
>>private ListView menueListView = null;
>>
>>public MenuePanel(final String id) {
>>super(id);
>>
>>this.menueListView = new ListView("menue",
>> getMenueEntries()) {
>>
>>// this method is called for each entry in the
>> list
>>public void populateItem(ListItem item) {
>>final MenueEntry menueEntry =
>> (MenueEntry)item.getModelObject();
>>
>>AjaxFallbackLink ajaxFallbackLink = new
>> AjaxFallbackLink("menueEntry") {
>>public void
>> onClick(AjaxRequestTarget target) {
>>// target is null when
>> refreshing the page ...
>>//although JavaScript is
>> on
>> in Internet Explorer 6.0
>>}
>>};
>>
>>item.add(ajaxFallbackLink);
>>}
>>};
>>
>>this.menueListView.setOutputMarkupId(true);
>>add(this.menueListView);
>>}
>>
>>...
>> }
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> pointbreak+wicketstuff wrote:
>>>
>>> Override onClick for your link. Your code defines an onClick in the
>>> panel, it doesn't override your Link's onclick.
>>>
>>> On Mon, 22 Sep 2008 03:16:47 -0700 (PDT), "mahone9" <[EMAIL PROTECTED]>
>>> said:

 I still have that problem and why is sb. responding to another
 thread...



 mahone9 wrote:
 >
 > Hi all
 >
 > I´m struggeling with the AjaxFallbackLink the target object is null,
 if
 it
 > runs to the onClick() method.
 > In Firefox and Opera it works fine!!!
 >
 > class MyPanel extends Panel {
 > private AjaxFallbackLink link;
 >
 > public MyPanel() {
 >this.link = AjaxFallbackLink("link");
 >add(link);
 > }
 >
 > public void onClick(AjaxRequestTarget target) {
 > if (target == null) {
 >   System.out.println("my target is: " + target);   //target
 is
 > null
 > } else {
 >   System.out.println("my target is: " + target);
 >   target.appendJavascript("alert('is working');");
 > }
 > }
 > ...
 > }
 >
 > class MyPage extends WebPage {
 > private MyPanel myPanel;
 >
 > public MyPage() {
 >  this.myPanel = new MyPanel("myPanel");
 >  add(myPanel);
 > }
 >
 > }
 >
 > If I add the AjaxFallbackLink to a WebPage instead to a Panel it
 works
 > pretty fine.
 >
 > What I do is:
 > - call the page and click the link
 > - refresh the page through F5
 > - once again click the link
 >
 > __
 > Do You Yahoo!?
 > Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden
 Schutz
 > gegen Massenmails.
 > http://mail.yahoo.com
 >
 I still have that problem and why is sb. responding to another
 thread...
 --
 View this message in context:
 http://www.nabble.com/AjaxRequestTarget-is-null-in-Internet-Explorer-6-tp19597723p19605102.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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

>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/AjaxRequestTarget-is-null-in-Internet-Explorer-6-tp19597723p19623968.html
>> Sent from the Wicket - User mailing list archive

Re: WicketRuntimeException when using wicket-auth-roles in a frameset

2008-09-23 Thread shetc

Ok, some I'm a JIRA newbie, what can I say :blush:

Please see   https://issues.apache.org/jira/browse/WICKET-1845 WICKET-1845 .
-- 
View this message in context: 
http://www.nabble.com/WicketRuntimeException-when-using-wicket-auth-roles-in-a-frameset-tp19613863p19626703.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: AjaxRequestTarget is null in Internet Explorer 6

2008-09-23 Thread Matej Knopp
That is really weird, because with ajaxlink the onclick handler  
shouldn't have been invoked at all.


-Matej

Sent from my iPhone

On Sep 23, 2008, at 14:23, mahone9 <[EMAIL PROTECTED]> wrote:



Hello Matej

I´m using
wicket version 1.3.4.
Internet Explorer: Version: 6.0.2900.2180.xpsp_sp2_rtm.040803-2158

My AjaxRequestTarget is still "null" even if I use AjaxLink instead of
AjaxFallbackLink.





Matej Knopp-2 wrote:


What happens if you change AjaxFallbackLink to simple AjaxLink?

That would mean problems with xmlhttprequest in IE6. There are some
users complaining with cetain IE6 revisions, but so far I have been
unable to reproduce this problem. And unless I reproduce it there
really is no way for me to fix it.

What wicket version are you testing this with?

-Matej

On Tue, Sep 23, 2008 at 11:10 AM, mahone9 <[EMAIL PROTECTED]> wrote:


Oh my goodness, I missed to add the instantiation of the  
AjaxFallbackLink

to
my example.

The error still exists. I post you the right code-snipet. Sorry  
for the

inconvience ...


public class MenuePanel extends Panel {

  private ListView menueListView = null;

  public MenuePanel(final String id) {
  super(id);

  this.menueListView = new ListView("menue",
getMenueEntries()) {

  // this method is called for each entry in the
list
  public void populateItem(ListItem item) {
  final MenueEntry menueEntry =
(MenueEntry)item.getModelObject();

  AjaxFallbackLink ajaxFallbackLink =  
new

AjaxFallbackLink("menueEntry") {
  public void
onClick(AjaxRequestTarget target) {
  // target is null when
refreshing the page ...
  //although  
JavaScript is

on
in Internet Explorer 6.0
  }
  };

  item.add(ajaxFallbackLink);
  }
  };

  this.menueListView.setOutputMarkupId(true);
  add(this.menueListView);
  }

  ...
}


















pointbreak+wicketstuff wrote:


Override onClick for your link. Your code defines an onClick in the
panel, it doesn't override your Link's onclick.

On Mon, 22 Sep 2008 03:16:47 -0700 (PDT), "mahone9" <[EMAIL PROTECTED] 
>

said:


I still have that problem and why is sb. responding to another
thread...



mahone9 wrote:


Hi all

I´m struggeling with the AjaxFallbackLink the target objec 
t is null,

if
it

runs to the onClick() method.
In Firefox and Opera it works fine!!!

class MyPanel extends Panel {
   private AjaxFallbackLink link;

   public MyPanel() {
  this.link = AjaxFallbackLink("link");
  add(link);
   }

   public void onClick(AjaxRequestTarget target) {
   if (target == null) {
 System.out.println("my target is: " + target);   // 
target

is

null
   } else {
 System.out.println("my target is: " + target);
 target.appendJavascript("alert('is working');");
   }
   }
...
}

class MyPage extends WebPage {
   private MyPanel myPanel;

   public MyPage() {
this.myPanel = new MyPanel("myPanel");
add(myPanel);
   }

}

If I add the AjaxFallbackLink to a WebPage instead to a Panel it

works

pretty fine.

What I do is:
- call the page and click the link
- refresh the page through F5
- once again click the link

__
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausr 
agenden

Schutz

gegen Massenmails.
http://mail.yahoo.com


I still have that problem and why is sb. responding to another
thread...
--
View this message in context:
http://www.nabble.com/AjaxRequestTarget-is-null-in-Internet-Explorer-6-tp19597723p19605102.html
Sent from the Wicket - User mailing list archive at Nabble.com.


--- 
--

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



--- 
--

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





--
View this message in context:
http://www.nabble.com/AjaxRequestTarget-is-null-in-Internet-Explorer-6-tp19597723p19623968.html
Sent from the Wicket - User mailing list archive at Nabble.com.


--- 
--

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




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





--
View this message in context: 
http://www.nabble.com/AjaxRequestTarget-is-null-in-Internet-Explorer-6-tp19597723p19626499.html
Sent from the Wicket - Us

Re: Best to strategy to have a Wicket page returns a binary content by default

2008-09-23 Thread Matej Knopp
You don't have to do this from the pages. You can create your own
simple IRequestTargetUrlCodingStrategy that resolves to your request
target and mount the strategy.

-Matej

On Tue, Sep 23, 2008 at 12:45 PM, Paolo Di Tommaso
<[EMAIL PROTECTED]> wrote:
> Guys,
>
> I'm using Wicket to create pdf content using Apache FOP. The idea is to have
> a FopPage that extends the root wicket Page component and declares "fo" as
> marketType. The FopPage parses FOP markup instead HTML markup.
>
> I'm able to manage the fop to pdf binary conversion using a custom
> PdfRequestTarget, but it requires to specify it explicitly, invoking
> RequestCycle.get().setRequestTarget(new PdfRequestTarget(this)); every time.
>
>
> So the question: is there a way to make a custom RequestTarget the default
> to certain pages? Or exists a better strategy to override the default render
> strategy to return a content different from HTML ?
>
>
> Thank you,
>
> -- Paolo
>

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



Updating model for DropDownChoice

2008-09-23 Thread nanotech

Hi,

I have a search form which contains multiple search fields(as TextFields)
and also there is dropdown from which user can select the search criteria.
The search results are displayed in the same page at bottom.
I want to clear the search Form with help of "Reset" button in the form.
Question :
1. If I refresh the form(by wrapping it in WebMarkupContainer) it removes
the "Choose One" field. The solution to that I found was to set
setNullValid(true). But, the problem with that is it just displays the empty
value..but I really want "Choose One" or "Select One" in dropdown. Even by
putting "null=Select One" in properties file, it does not show "Select One"
option in drop-down if I have setNullValid(true) . So, How Can I have both?
i.e When I set "setNullValid(true)" how can I get "Select One" to show up in
DropDown.

2. Also, when I update the webmarkupcontainer, to clear the search the
dropdown still shows the pervious search criteria. It does not update the
model for dropdown to first value or "Choose One".

Can someone please give me pointers?

Thanks,
~R 
-- 
View this message in context: 
http://www.nabble.com/Updating-model-for-DropDownChoice-tp19628281p19628281.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket critique

2008-09-23 Thread superoverdrive
The only thing that is missing in this video is a hibernate integration...to 
read/save data to a database.

 Original-Nachricht 
> Datum: Tue, 23 Sep 2008 11:50:20 +0200
> Von: "Martijn Dashorst" <[EMAIL PROTECTED]>
> An: users@wicket.apache.org
> Betreff: Re: Wicket critique

> http://herebebeasties.com/static/Wicket-QuickStart.avi
> 
> shows that setting up maven, wicket and eclipse is really easy
> (provided you are not limited by a proxy)
> 
> Martijn
> 
> On Tue, Sep 23, 2008 at 11:41 AM, Chris Stein <[EMAIL PROTECTED]>
> wrote:
> > I tried many different frameworks in the past and Wicket was probably
> one of the easiest to set up and integrate into Eclipse. I have to admit that
> the learning curve is quite steep here. It helped me being familiar with
> Eclipse and the Tomcat integration to get things going quickly. Besides: I
> don't use Maven.
> >
> >
> >
> > - Original Message 
> > From: Yiannis Mavroukakis <[EMAIL PROTECTED]>
> > To: users@wicket.apache.org
> > Sent: Tuesday, September 23, 2008 10:44:40 AM
> > Subject: Wicket critique
> >
> >
> http://stackoverflow.com/questions/116978/can-anyone-recommend-a-simple-java-web-app-framework
> >
> > Anyone interested in replying to this?
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> -- 
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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



Re: Wicket critique

2008-09-23 Thread James Carman
Not everyone uses hibernate.

On Tue, Sep 23, 2008 at 10:14 AM,  <[EMAIL PROTECTED]> wrote:
> The only thing that is missing in this video is a hibernate integration...to 
> read/save data to a database.
>
>  Original-Nachricht 
>> Datum: Tue, 23 Sep 2008 11:50:20 +0200
>> Von: "Martijn Dashorst" <[EMAIL PROTECTED]>
>> An: users@wicket.apache.org
>> Betreff: Re: Wicket critique
>
>> http://herebebeasties.com/static/Wicket-QuickStart.avi
>>
>> shows that setting up maven, wicket and eclipse is really easy
>> (provided you are not limited by a proxy)
>>
>> Martijn
>>
>> On Tue, Sep 23, 2008 at 11:41 AM, Chris Stein <[EMAIL PROTECTED]>
>> wrote:
>> > I tried many different frameworks in the past and Wicket was probably
>> one of the easiest to set up and integrate into Eclipse. I have to admit that
>> the learning curve is quite steep here. It helped me being familiar with
>> Eclipse and the Tomcat integration to get things going quickly. Besides: I
>> don't use Maven.
>> >
>> >
>> >
>> > - Original Message 
>> > From: Yiannis Mavroukakis <[EMAIL PROTECTED]>
>> > To: users@wicket.apache.org
>> > Sent: Tuesday, September 23, 2008 10:44:40 AM
>> > Subject: Wicket critique
>> >
>> >
>> http://stackoverflow.com/questions/116978/can-anyone-recommend-a-simple-java-web-app-framework
>> >
>> > Anyone interested in replying to this?
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>> >
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>>
>>
>> --
>> Become a Wicket expert, learn from the best: http://wicketinaction.com
>> Apache Wicket 1.3.4 is released
>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Dynamic PageExpiredPage

2008-09-23 Thread Markus Haspl
hi martijn,

your tipp with the cookie works! thank you!
markus

On Tue, Sep 23, 2008 at 10:19 AM, Martijn Dashorst <
[EMAIL PROTECTED]> wrote:

> In your case I would set a client side cookie that stores the portal
> id. This way you can identify which portal the user was visiting and
> make your PageExpiredPage customized.
>
> Martijn
>
> On Tue, Sep 23, 2008 at 10:00 AM, Markus Haspl <[EMAIL PROTECTED]> wrote:
> > On Mon, Sep 22, 2008 at 6:04 PM, Justin Morgan - Logic Sector <
> > [EMAIL PROTECTED]> wrote:
> >
> >> Create a custom Wicket session subclass that holds your portal:
> >>
> >> public class MySession extends WebSession {
> >>private Portal  _portal;
> >>public MySession(Request request) {
> >>super(request);
> >>LOGGER.debug("Instantiated");
> >>_portal = new Portal();
> >>}
> >>public Portal getPortal() { return _portal; }
> >>public void setPortal(Portal portal) { _portal = portal; }
> >> }
> >>
> >> Somewhere in your "normal" page:
> >> ((MySession) getSession()).setPortal(myPortal);
> >>
> >> Somewhere in your PageExpiredPage:
> >> Portal myPortal = ((MySession) getSession()).getPortal();
> >>
> >> In your Wicket Application subclass:
> >>/** @see org.apache.wicket.Application#newSession(Request, Response)
> */
> >>@Override
> >>public Session newSession(Request request, Response response) {
> >>return new MySession(request);
> >>}
> >>
> >> Best regards,
> >>
> >> Justin
> >
> >
> > Thanks! But i thought that the Session will be invalide when the
> PageExpired
> > Error comes? Isn't that true? If not so, than your approach will be very
> > fine.
> >
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Wicket critique

2008-09-23 Thread Yiannis Mavroukakis

Iolite is your friend :-)

[EMAIL PROTECTED] wrote:

The only thing that is missing in this video is a hibernate integration...to 
read/save data to a database.

 Original-Nachricht 
  

Datum: Tue, 23 Sep 2008 11:50:20 +0200
Von: "Martijn Dashorst" <[EMAIL PROTECTED]>
An: users@wicket.apache.org
Betreff: Re: Wicket critique



  

http://herebebeasties.com/static/Wicket-QuickStart.avi

shows that setting up maven, wicket and eclipse is really easy
(provided you are not limited by a proxy)

Martijn

On Tue, Sep 23, 2008 at 11:41 AM, Chris Stein <[EMAIL PROTECTED]>
wrote:


I tried many different frameworks in the past and Wicket was probably
  

one of the easiest to set up and integrate into Eclipse. I have to admit that
the learning curve is quite steep here. It helped me being familiar with
Eclipse and the Tomcat integration to get things going quickly. Besides: I
don't use Maven.



- Original Message 
From: Yiannis Mavroukakis <[EMAIL PROTECTED]>
To: users@wicket.apache.org
Sent: Tuesday, September 23, 2008 10:44:40 AM
Subject: Wicket critique


  

http://stackoverflow.com/questions/116978/can-anyone-recommend-a-simple-java-web-app-framework


Anyone interested in replying to this?

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





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


  


--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



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

  


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



Re: Wicket critique

2008-09-23 Thread James Carman
And, hopefully wicketopia in the near future.  It's still under
development (by both me and Nino)

On Tue, Sep 23, 2008 at 10:26 AM, Yiannis Mavroukakis
<[EMAIL PROTECTED]> wrote:
> Iolite is your friend :-)
>
> [EMAIL PROTECTED] wrote:
>>
>> The only thing that is missing in this video is a hibernate
>> integration...to read/save data to a database.
>>
>>  Original-Nachricht 
>>
>>>
>>> Datum: Tue, 23 Sep 2008 11:50:20 +0200
>>> Von: "Martijn Dashorst" <[EMAIL PROTECTED]>
>>> An: users@wicket.apache.org
>>> Betreff: Re: Wicket critique
>>>
>>
>>
>>>
>>> http://herebebeasties.com/static/Wicket-QuickStart.avi
>>>
>>> shows that setting up maven, wicket and eclipse is really easy
>>> (provided you are not limited by a proxy)
>>>
>>> Martijn
>>>
>>> On Tue, Sep 23, 2008 at 11:41 AM, Chris Stein <[EMAIL PROTECTED]>
>>> wrote:
>>>

 I tried many different frameworks in the past and Wicket was probably

>>>
>>> one of the easiest to set up and integrate into Eclipse. I have to admit
>>> that
>>> the learning curve is quite steep here. It helped me being familiar with
>>> Eclipse and the Tomcat integration to get things going quickly. Besides:
>>> I
>>> don't use Maven.
>>>

 - Original Message 
 From: Yiannis Mavroukakis <[EMAIL PROTECTED]>
 To: users@wicket.apache.org
 Sent: Tuesday, September 23, 2008 10:44:40 AM
 Subject: Wicket critique



>>>
>>>
>>> http://stackoverflow.com/questions/116978/can-anyone-recommend-a-simple-java-web-app-framework
>>>

 Anyone interested in replying to this?

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





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



>>>
>>> --
>>> Become a Wicket expert, learn from the best: http://wicketinaction.com
>>> Apache Wicket 1.3.4 is released
>>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Best to strategy to have a Wicket page returns a binary content by default

2008-09-23 Thread Paolo Di Tommaso
Interesting .. so I could extend QueryStringUrlCodingStrategy overriding the
decode() method to return my PdfRequestTarget.

Cool! Thank you,

-- Paolo

On Tue, Sep 23, 2008 at 3:04 PM, Matej Knopp <[EMAIL PROTECTED]> wrote:

> You don't have to do this from the pages. You can create your own
> simple IRequestTargetUrlCodingStrategy that resolves to your request
> target and mount the strategy.
>
> -Matej
>
> On Tue, Sep 23, 2008 at 12:45 PM, Paolo Di Tommaso
> <[EMAIL PROTECTED]> wrote:
> > Guys,
> >
> > I'm using Wicket to create pdf content using Apache FOP. The idea is to
> have
> > a FopPage that extends the root wicket Page component and declares "fo"
> as
> > marketType. The FopPage parses FOP markup instead HTML markup.
> >
> > I'm able to manage the fop to pdf binary conversion using a custom
> > PdfRequestTarget, but it requires to specify it explicitly, invoking
> > RequestCycle.get().setRequestTarget(new PdfRequestTarget(this)); every
> time.
> >
> >
> > So the question: is there a way to make a custom RequestTarget the
> default
> > to certain pages? Or exists a better strategy to override the default
> render
> > strategy to return a content different from HTML ?
> >
> >
> > Thank you,
> >
> > -- Paolo
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Refreshing a Panel on Form onSubmit()

2008-09-23 Thread zaheers

I have a Panel  that has the search criteria as well as the search results.
The results are to be refreshed every time user clicks on the search button.
I am doing this by storing a List as an instance variable and passing the
list to the PageableListView. But I see that the panel is not refreshed with
results when the search button is clicked. How to refresh the Panel. Thanks
for your help.

http://www.nabble.com/file/p19629724/SearchPanel.java SearchPanel.java 
-- 
View this message in context: 
http://www.nabble.com/Refreshing-a-Panel-on-Form-onSubmit%28%29-tp19629724p19629724.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket critique

2008-09-23 Thread James Carman
Help is definitely welcome!

On Tue, Sep 23, 2008 at 11:30 AM, Yiannis Mavroukakis
<[EMAIL PROTECTED]> wrote:
> Cool, need any spare hands/brains?
>
> James Carman wrote:
>>
>> And, hopefully wicketopia in the near future.  It's still under
>> development (by both me and Nino)
>>
>> On Tue, Sep 23, 2008 at 10:26 AM, Yiannis Mavroukakis
>> <[EMAIL PROTECTED]> wrote:
>>
>>>
>>> Iolite is your friend :-)
>>>
>>> [EMAIL PROTECTED] wrote:
>>>

 The only thing that is missing in this video is a hibernate
 integration...to read/save data to a database.

  Original-Nachricht 


>
> Datum: Tue, 23 Sep 2008 11:50:20 +0200
> Von: "Martijn Dashorst" <[EMAIL PROTECTED]>
> An: users@wicket.apache.org
> Betreff: Re: Wicket critique
>
>


>
> http://herebebeasties.com/static/Wicket-QuickStart.avi
>
> shows that setting up maven, wicket and eclipse is really easy
> (provided you are not limited by a proxy)
>
> Martijn
>
> On Tue, Sep 23, 2008 at 11:41 AM, Chris Stein <[EMAIL PROTECTED]>
> wrote:
>
>
>>
>> I tried many different frameworks in the past and Wicket was probably
>>
>>
>
> one of the easiest to set up and integrate into Eclipse. I have to
> admit
> that
> the learning curve is quite steep here. It helped me being familiar
> with
> Eclipse and the Tomcat integration to get things going quickly.
> Besides:
> I
> don't use Maven.
>
>
>>
>> - Original Message 
>> From: Yiannis Mavroukakis <[EMAIL PROTECTED]>
>> To: users@wicket.apache.org
>> Sent: Tuesday, September 23, 2008 10:44:40 AM
>> Subject: Wicket critique
>>
>>
>>
>>
>
>
> http://stackoverflow.com/questions/116978/can-anyone-recommend-a-simple-java-web-app-framework
>
>
>>
>> Anyone interested in replying to this?
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



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

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



Re: Wicket critique

2008-09-23 Thread superoverdrive
That's the problem - the more options there are, the more flexible it is, but 
the more freedom you have.
The more freedom you have, the more different Wicket projects are structures 
and the less re-usable the code of various programmers comes.

Maybe Wicket should define one type of database integration as the "default 
case" and make this part of the "empty" getting-started project.

 Original-Nachricht 
> Datum: Tue, 23 Sep 2008 10:16:06 -0400
> Von: "James Carman" <[EMAIL PROTECTED]>
> An: users@wicket.apache.org
> Betreff: Re: Wicket critique

> Not everyone uses hibernate.
> 
> On Tue, Sep 23, 2008 at 10:14 AM,  <[EMAIL PROTECTED]> wrote:
> > The only thing that is missing in this video is a hibernate
> integration...to read/save data to a database.
> >
> >  Original-Nachricht 
> >> Datum: Tue, 23 Sep 2008 11:50:20 +0200
> >> Von: "Martijn Dashorst" <[EMAIL PROTECTED]>
> >> An: users@wicket.apache.org
> >> Betreff: Re: Wicket critique
> >
> >> http://herebebeasties.com/static/Wicket-QuickStart.avi
> >>
> >> shows that setting up maven, wicket and eclipse is really easy
> >> (provided you are not limited by a proxy)
> >>
> >> Martijn
> >>
> >> On Tue, Sep 23, 2008 at 11:41 AM, Chris Stein <[EMAIL PROTECTED]>
> >> wrote:
> >> > I tried many different frameworks in the past and Wicket was probably
> >> one of the easiest to set up and integrate into Eclipse. I have to
> admit that
> >> the learning curve is quite steep here. It helped me being familiar
> with
> >> Eclipse and the Tomcat integration to get things going quickly.
> Besides: I
> >> don't use Maven.
> >> >
> >> >
> >> >
> >> > - Original Message 
> >> > From: Yiannis Mavroukakis <[EMAIL PROTECTED]>
> >> > To: users@wicket.apache.org
> >> > Sent: Tuesday, September 23, 2008 10:44:40 AM
> >> > Subject: Wicket critique
> >> >
> >> >
> >>
> http://stackoverflow.com/questions/116978/can-anyone-recommend-a-simple-java-web-app-framework
> >> >
> >> > Anyone interested in replying to this?
> >> >
> >> > -
> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > For additional commands, e-mail: [EMAIL PROTECTED]
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > -
> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > For additional commands, e-mail: [EMAIL PROTECTED]
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> Become a Wicket expert, learn from the best: http://wicketinaction.com
> >> Apache Wicket 1.3.4 is released
> >> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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



Re: Wicket critique

2008-09-23 Thread Yiannis Mavroukakis

Cool, need any spare hands/brains?

James Carman wrote:

And, hopefully wicketopia in the near future.  It's still under
development (by both me and Nino)

On Tue, Sep 23, 2008 at 10:26 AM, Yiannis Mavroukakis
<[EMAIL PROTECTED]> wrote:
  

Iolite is your friend :-)

[EMAIL PROTECTED] wrote:


The only thing that is missing in this video is a hibernate
integration...to read/save data to a database.

 Original-Nachricht 

  

Datum: Tue, 23 Sep 2008 11:50:20 +0200
Von: "Martijn Dashorst" <[EMAIL PROTECTED]>
An: users@wicket.apache.org
Betreff: Re: Wicket critique


  

http://herebebeasties.com/static/Wicket-QuickStart.avi

shows that setting up maven, wicket and eclipse is really easy
(provided you are not limited by a proxy)

Martijn

On Tue, Sep 23, 2008 at 11:41 AM, Chris Stein <[EMAIL PROTECTED]>
wrote:



I tried many different frameworks in the past and Wicket was probably

  

one of the easiest to set up and integrate into Eclipse. I have to admit
that
the learning curve is quite steep here. It helped me being familiar with
Eclipse and the Tomcat integration to get things going quickly. Besides:
I
don't use Maven.



- Original Message 
From: Yiannis Mavroukakis <[EMAIL PROTECTED]>
To: users@wicket.apache.org
Sent: Tuesday, September 23, 2008 10:44:40 AM
Subject: Wicket critique



  

http://stackoverflow.com/questions/116978/can-anyone-recommend-a-simple-java-web-app-framework



Anyone interested in replying to this?

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





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



  

--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



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


  

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





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

  


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



Re: Wicket critique

2008-09-23 Thread superoverdrive
This one:

http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Iolite 

?

 Original-Nachricht 
> Datum: Tue, 23 Sep 2008 15:26:44 +0100
> Von: Yiannis Mavroukakis <[EMAIL PROTECTED]>
> An: users@wicket.apache.org
> Betreff: Re: Wicket critique

> Iolite is your friend :-)
> 
> [EMAIL PROTECTED] wrote:
> > The only thing that is missing in this video is a hibernate
> integration...to read/save data to a database.
> >
> >  Original-Nachricht 
> >   
> >> Datum: Tue, 23 Sep 2008 11:50:20 +0200
> >> Von: "Martijn Dashorst" <[EMAIL PROTECTED]>
> >> An: users@wicket.apache.org
> >> Betreff: Re: Wicket critique
> >> 
> >
> >   
> >> http://herebebeasties.com/static/Wicket-QuickStart.avi
> >>
> >> shows that setting up maven, wicket and eclipse is really easy
> >> (provided you are not limited by a proxy)
> >>
> >> Martijn
> >>
> >> On Tue, Sep 23, 2008 at 11:41 AM, Chris Stein <[EMAIL PROTECTED]>
> >> wrote:
> >> 
> >>> I tried many different frameworks in the past and Wicket was probably
> >>>   
> >> one of the easiest to set up and integrate into Eclipse. I have to
> admit that
> >> the learning curve is quite steep here. It helped me being familiar
> with
> >> Eclipse and the Tomcat integration to get things going quickly.
> Besides: I
> >> don't use Maven.
> >> 
> >>>
> >>> - Original Message 
> >>> From: Yiannis Mavroukakis <[EMAIL PROTECTED]>
> >>> To: users@wicket.apache.org
> >>> Sent: Tuesday, September 23, 2008 10:44:40 AM
> >>> Subject: Wicket critique
> >>>
> >>>
> >>>   
> >>
> http://stackoverflow.com/questions/116978/can-anyone-recommend-a-simple-java-web-app-framework
> >> 
> >>> Anyone interested in replying to this?
> >>>
> >>> -
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> -
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>   
> >>
> >> -- 
> >> Become a Wicket expert, learn from the best: http://wicketinaction.com
> >> Apache Wicket 1.3.4 is released
> >> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> 
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >   
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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



Problem with sitemesh decorator in wicket iframe

2008-09-23 Thread itayh

Dear All,

I am using sitemesh decoration framework in my wicket application.
Everything work perfectly until I tried to create iframes.
I am using InlineFrame class for creating the iframes.
Java Code:
InlineFrame myFrame = new InlineFrame("MyFrame", new MyFrame(this)); 
Where MyFrame is simple webPage that use AjaxSelfUpdatingTimerBehavior for
refreshing.
HTML Code:


I am using sitemesh decoration for all my pages(adding header, footer,
style, color...)
I don't want the iframes to contain the header and footer so i did the next
thing:
In the jsp that decorates the page (point from decorators.xml) I check the
request to see if it comes from iframe, if so I don't create header and
footer.

The problem is that it seem that the decoration jsp is not called when the
iframes are created and refreshed (they are refreshed using
AjaxSelfUpdatingTimerBehavior  every 10 seconds). I can see that every 10
second I reach to my filter function that called to chain.doFilter(req,
res); The chain contain the sitemesh filter but the jsp never get execute.

Any Idea?

Thanks in advance




-- 
View this message in context: 
http://www.nabble.com/Problem-with-sitemesh-decorator-in-wicket-iframe-tp19630659p19630659.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Adding HTML class="invalid" after validating with IndicatingAjaxButton

2008-09-23 Thread Igor Vaynberg
public class invalidindicator extends abstractbehavior {
  protected void oncomponenttag(component c, tag t) {
  boolean valid=((formcomponent)c).isvalid();
  if (!valid) {
 tag.put("class","invalid");
 }
  }
}

formcomponent.add(new invalidindicator());

-igor

On Tue, Sep 23, 2008 at 2:53 AM, cstein1206 <[EMAIL PROTECTED]> wrote:
>
> I basically want to achieve this:
> http://www.jroller.com/karthikg/entry/wicket_and_ajax
> but handle the validation only after the form has been submitted with an
> AjaxIndicatingButton instead of with the "onblur" as in the example.
>
> I think I tried too many things over the last couple of days and got totally
> confused now. Would anybody be so kind to help me out a bit? What do I need
> to add to the FormComponents so that they will be updated with an
> HTML-attribute "class='invalid'"? So far my form doesn't do that (I did
> setOutputMarkupId(true)).
>
> Thanks a ton!
> Chris
> --
> View this message in context: 
> http://www.nabble.com/Adding-HTML-class%3D%22invalid%22-after-validating-with-IndicatingAjaxButton-tp19624501p19624501.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Wicket critique

2008-09-23 Thread Yiannis Mavroukakis

Yep.

[EMAIL PROTECTED] wrote:

This one:

http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Iolite 


?

 Original-Nachricht 
  

Datum: Tue, 23 Sep 2008 15:26:44 +0100
Von: Yiannis Mavroukakis <[EMAIL PROTECTED]>
An: users@wicket.apache.org
Betreff: Re: Wicket critique



  

Iolite is your friend :-)

[EMAIL PROTECTED] wrote:


The only thing that is missing in this video is a hibernate
  

integration...to read/save data to a database.


 Original-Nachricht 
  
  

Datum: Tue, 23 Sep 2008 11:50:20 +0200
Von: "Martijn Dashorst" <[EMAIL PROTECTED]>
An: users@wicket.apache.org
Betreff: Re: Wicket critique


  
  

http://herebebeasties.com/static/Wicket-QuickStart.avi

shows that setting up maven, wicket and eclipse is really easy
(provided you are not limited by a proxy)

Martijn

On Tue, Sep 23, 2008 at 11:41 AM, Chris Stein <[EMAIL PROTECTED]>
wrote:



I tried many different frameworks in the past and Wicket was probably
  
  

one of the easiest to set up and integrate into Eclipse. I have to


admit that


the learning curve is quite steep here. It helped me being familiar


with


Eclipse and the Tomcat integration to get things going quickly.


Besides: I


don't use Maven.



- Original Message 
From: Yiannis Mavroukakis <[EMAIL PROTECTED]>
To: users@wicket.apache.org
Sent: Tuesday, September 23, 2008 10:44:40 AM
Subject: Wicket critique


  
  

http://stackoverflow.com/questions/116978/can-anyone-recommend-a-simple-java-web-app-framework




Anyone interested in replying to this?

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





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


  
  

--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



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

  
  

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



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

  


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



Re: Wicket critique

2008-09-23 Thread James Carman
Right now, we don't have a task list set up.  We should probably do
that if there are going to be multiple cooks in the kitchen. :)  What
I'd like to figure out is how the form/autogenerated editor panel
stuff works together.

On Tue, Sep 23, 2008 at 11:56 AM, Yiannis Mavroukakis
<[EMAIL PROTECTED]> wrote:
> Yep.
>
> [EMAIL PROTECTED] wrote:
>>
>> This one:
>>
>> http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Iolite
>> ?
>>
>>  Original-Nachricht 
>>
>>>
>>> Datum: Tue, 23 Sep 2008 15:26:44 +0100
>>> Von: Yiannis Mavroukakis <[EMAIL PROTECTED]>
>>> An: users@wicket.apache.org
>>> Betreff: Re: Wicket critique
>>>
>>
>>
>>>
>>> Iolite is your friend :-)
>>>
>>> [EMAIL PROTECTED] wrote:
>>>

 The only thing that is missing in this video is a hibernate

>>>
>>> integration...to read/save data to a database.
>>>

  Original-Nachricht 

>
> Datum: Tue, 23 Sep 2008 11:50:20 +0200
> Von: "Martijn Dashorst" <[EMAIL PROTECTED]>
> An: users@wicket.apache.org
> Betreff: Re: Wicket critique
>


>
> http://herebebeasties.com/static/Wicket-QuickStart.avi
>
> shows that setting up maven, wicket and eclipse is really easy
> (provided you are not limited by a proxy)
>
> Martijn
>
> On Tue, Sep 23, 2008 at 11:41 AM, Chris Stein <[EMAIL PROTECTED]>
> wrote:
>
>>
>> I tried many different frameworks in the past and Wicket was probably
>>
>
> one of the easiest to set up and integrate into Eclipse. I have to
>
>>>
>>> admit that
>>>
>
> the learning curve is quite steep here. It helped me being familiar
>
>>>
>>> with
>>>
>
> Eclipse and the Tomcat integration to get things going quickly.
>
>>>
>>> Besides: I
>>>
>
> don't use Maven.
>
>>
>> - Original Message 
>> From: Yiannis Mavroukakis <[EMAIL PROTECTED]>
>> To: users@wicket.apache.org
>> Sent: Tuesday, September 23, 2008 10:44:40 AM
>> Subject: Wicket critique
>>
>>
>>
>>>
>>>
>>> http://stackoverflow.com/questions/116978/can-anyone-recommend-a-simple-java-web-app-framework
>>>
>
>
>>
>> Anyone interested in replying to this?
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

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


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

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



Wizard in Modalwindow getting alert message upon using the Wizard buttons

2008-09-23 Thread Kuga

Hi,

I was browsing through the wicket forums, for one of the problems I am
having using Wicket wizard in ModalWindow.

I am iusing Wicket 1.3.4 

Wondering if anyone could help me with any possible solutions. Greatly
appreciate you time and response.

I have changed the WizardButtons to use Ajax buttons. The following is the
behavior:

In the wizard Ajax button I added the following:

protected void onSubmit(AjaxRequestTarget target, Form form) {
onClick(target);
target.addComponent((Wizard)wizard);
  }

1. I have added 3 IWizardStep to the model 
2. Added the wizard to a panel, and then added this panel as setContent() to
the ModalWindow.
3. Lauched the modalwindow, 
a. Observed the right behavior (button enabled state) of the
buttons at launch
b. Now Clicked on “Next” button – traverses to the next step.
c. Now clicked on the “Previous” button – instead of going to
Previous – I got the annoying alert message. 
d. added the javascript (Wicket.windo.unloadConfirmatoin =
false;
e. Adding the above scrip was just suppressing the alert
message, and just closes the wizard window without going to the previous
screen.

Not really sure where I am going wrong. Have been trying to Debug, but since
the previous button doesn’t get the onClick() due to closing, could not even
debug this issue.

Can you please let me know about your experience in solving this issue, and
also if you feel that I am doing any mistake, please let me know.
Thanks & Best Regards
Kuga

-- 
View this message in context: 
http://www.nabble.com/Wizard-in-Modalwindow-getting-alert-message-upon-using-the-Wizard-buttons-tp19631049p19631049.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wizard in Modalwindow getting alert message upon using the Wizard buttons

2008-09-23 Thread Kuga

Upon further analysis, 
I was having the panel as the ModalWindow.setContent(WizardPanel) and
doesn’t seem to work in terms of multiple button clicks ie., Next/Previous.

Good news is that I tried to replace the panel with the Page using
ModelWindow.createPage(), and the wizard seems to be functional as expected
in terms of buttons.

But:

Using the Panel approach here is what I have seen by debugging the
javascript:
upon click of Next button: 
executes the wicketSubmitByFormId() 
  i.  return call.submitFormBytId(formId, sumbitButton)
  ii.  further goes to submitForm:function(form, submitButton)
  iii.  var s=Wicket.Form.serialoze(form)
  iv.  this call further goes into Wicket.Form.serialoze(form)

1.   if(element.tagName.toLowerCase == “form”)

Everthing above works fine, and Navigates to the next panel 
Now when I click on any other buttons 
It tries to execute the above four steps (but there is an error in the “iv”
step ie., the values are null, so when trying to execute the
element.tagName.toLowerCase() results in an error (null pointer) dies to
which I am seeing the annoying alert message. 
 

I guess I nailed out the problem. But not sure why this should happen
though. Looks like upon one submit action (Next/previous or any buttons) the
modalwindow gets reset to null, as such it doesn’t have the reference of the
form or its contents (everything is set to null)

Can you please help me with any information. Highly appreciate your
response.

Thanks & Best Regards,

Kuga



Kuga wrote:
> 
> Hi,
> 
> I was browsing through the wicket forums, for one of the problems I am
> having using Wicket wizard in ModalWindow.
> 
> I am iusing Wicket 1.3.4 
> 
> Wondering if anyone could help me with any possible solutions. Greatly
> appreciate you time and response.
> 
> I have changed the WizardButtons to use Ajax buttons. The following is the
> behavior:
> 
> In the wizard Ajax button I added the following:
> 
> protected void onSubmit(AjaxRequestTarget target, Form form) {
> onClick(target);
> target.addComponent((Wizard)wizard);
>   }
> 
> 1. I have added 3 IWizardStep to the model 
> 2. Added the wizard to a panel, and then added this panel as setContent()
> to the ModalWindow.
> 3. Lauched the modalwindow, 
> a. Observed the right behavior (button enabled state) of the
> buttons at launch
> b. Now Clicked on “Next” button – traverses to the next step.
> c. Now clicked on the “Previous” button – instead of going to
> Previous – I got the annoying alert message. 
> d. added the javascript (Wicket.windo.unloadConfirmatoin =
> false;
> e. Adding the above scrip was just suppressing the alert
> message, and just closes the wizard window without going to the previous
> screen.
> 
> Not really sure where I am going wrong. Have been trying to Debug, but
> since the previous button doesn’t get the onClick() due to closing, could
> not even debug this issue.
> 
> Can you please let me know about your experience in solving this issue,
> and also if you feel that I am doing any mistake, please let me know.
> Thanks & Best Regards
> Kuga
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wizard-in-Modalwindow-getting-alert-message-upon-using-the-Wizard-buttons-tp19631049p19631131.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Re: Best to strategy to have a Wicket page returns a binary content by default

2008-09-23 Thread bruno . borges

Why don't you use the DownloadLink component?

Just create a file in the java.tmp.dir and setDeleteAfterDownload (true);

http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/markup/html/link/DownloadLink.html

Regards,
Bruno

On Sep 23, 2008 11:30am, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote:
Interesting .. so I could extend QueryStringUrlCodingStrategy overriding  

the


decode() method to return my PdfRequestTarget.



Cool! Thank you,



-- Paolo



On Tue, Sep 23, 2008 at 3:04 PM, Matej Knopp wrote:



> You don't have to do this from the pages. You can create your own

> simple IRequestTargetUrlCodingStrategy that resolves to your request

> target and mount the strategy.

>

> -Matej

>

> On Tue, Sep 23, 2008 at 12:45 PM, Paolo Di Tommaso

> wrote:

> > Guys,

> >

> > I'm using Wicket to create pdf content using Apache FOP. The idea is  

to


> have

> > a FopPage that extends the root wicket Page component and  

declares "fo"


> as

> > marketType. The FopPage parses FOP markup instead HTML markup.

> >

> > I'm able to manage the fop to pdf binary conversion using a custom

> > PdfRequestTarget, but it requires to specify it explicitly, invoking

> > RequestCycle.get().setRequestTarget(new PdfRequestTarget(this)); every

> time.

> >

> >

> > So the question: is there a way to make a custom RequestTarget the

> default

> > to certain pages? Or exists a better strategy to override the default

> render

> > strategy to return a content different from HTML ?

> >

> >

> > Thank you,

> >

> > -- Paolo

> >

>

> -

> To unsubscribe, e-mail: [EMAIL PROTECTED]

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

>

>



Re: Re: Best to strategy to have a Wicket page returns a binary content by default

2008-09-23 Thread Paolo Di Tommaso
Because, I want to use Wicket to render PDF content in a trasparent way -
just extending a base page - as normally it is done for a WebPage.

-- Paolo

On Tue, Sep 23, 2008 at 6:08 PM, <[EMAIL PROTECTED]> wrote:

> Why don't you use the DownloadLink component?
>
> Just create a file in the java.tmp.dir and setDeleteAfterDownload (true);
>
>
> http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/markup/html/link/DownloadLink.html
>
> Regards,
> Bruno
>
> On Sep 23, 2008 11:30am, Paolo Di Tommaso <[EMAIL PROTECTED]>
> wrote:
>
>> Interesting .. so I could extend QueryStringUrlCodingStrategy overriding
>>
> the
>
>>
>> decode() method to return my PdfRequestTarget.
>>
>>
>>
>> Cool! Thank you,
>>
>>
>>
>> -- Paolo
>>
>>
>>


Wicket Wizard window question!

2008-09-23 Thread Kugaprakash Visagamani
Hi,

I was browsing through the wicket forums, for one of the problems I am
having using Wicket wizard in ModalWindow.

 

Wondering if anyone could help me with any possible solutions. Greatly
appreciate you time and response.

 

I have changed the WizardButtons to use Ajax buttons. The following is
the behavior:

In the wizard Ajax button I added the following:

 

protected void onSubmit(AjaxRequestTarget target, Form form) {

onClick(target);

target.addComponent((Wizard)wizard);

  }

 

1. I have added 3 IWizardStep to the model 

2. Added the wizard to a panel, and then added this panel to the
ModalWindow.

3. Lauched the modalwindow, 

a. Observed the right behavior (button enabled state) of the
buttons at launch

b. Now Clicked on "Next" button - traverses to the next
step.

c. Now clicked on the "Previous" button - instead of going
to Previous - I got the annoying alert message. 

d. added the javascript (Wicket.windo.unloadConfirmatoin =
false;

e. Adding the above scrip was just suppressing the alert
message, and just closes the wizard window without going to the previous
screen.

 

Not really sure where I am going wrong. Have been trying to Debug, but
since the previous button doesn't get the onClick() due to closing,
could not even debug this issue.

 

Can you please let me know about your experience in solving this issue,
and also if you feel that I am doing any mistake, please let me know.

Thanks & Best Regards

Kuga



Hiding Wicket ID

2008-09-23 Thread walnutmon

Is it possible to hide wicket:id tags?  Doing so in order to hide that you
are using wicket as a server side technology.
-- 
View this message in context: 
http://www.nabble.com/Hiding-Wicket-ID-tp19632955p19632955.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Hiding Wicket ID

2008-09-23 Thread Igor Vaynberg
in deployment mode those tags are stripped

-igor

On Tue, Sep 23, 2008 at 10:35 AM, walnutmon <[EMAIL PROTECTED]> wrote:
>
> Is it possible to hide wicket:id tags?  Doing so in order to hide that you
> are using wicket as a server side technology.
> --
> View this message in context: 
> http://www.nabble.com/Hiding-Wicket-ID-tp19632955p19632955.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Hiding Wicket ID

2008-09-23 Thread James Carman
The wicket:id won't who up during "deployment" mode.

On Tue, Sep 23, 2008 at 1:35 PM, walnutmon <[EMAIL PROTECTED]> wrote:
>
> Is it possible to hide wicket:id tags?  Doing so in order to hide that you
> are using wicket as a server side technology.
> --
> View this message in context: 
> http://www.nabble.com/Hiding-Wicket-ID-tp19632955p19632955.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Hiding Wicket ID

2008-09-23 Thread James Carman
I think I meant to say "show up" rather than "who up"! :)  Sorry.

On Tue, Sep 23, 2008 at 1:37 PM, James Carman
<[EMAIL PROTECTED]> wrote:
> The wicket:id won't who up during "deployment" mode.
>
> On Tue, Sep 23, 2008 at 1:35 PM, walnutmon <[EMAIL PROTECTED]> wrote:
>>
>> Is it possible to hide wicket:id tags?  Doing so in order to hide that you
>> are using wicket as a server side technology.
>> --
>> View this message in context: 
>> http://www.nabble.com/Hiding-Wicket-ID-tp19632955p19632955.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>

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



Re: Wicket critique

2008-09-23 Thread Nino Saturnino Martinez Vazquez Wael

Check this out jpa/hibernate integration is what iolite are about currently:

http://ninomartinez.wordpress.com/2008/09/04/screencast-introducing-wicketstuff-iolite/

[EMAIL PROTECTED] wrote:

The only thing that is missing in this video is a hibernate integration...to 
read/save data to a database.

 Original-Nachricht 
  

Datum: Tue, 23 Sep 2008 11:50:20 +0200
Von: "Martijn Dashorst" <[EMAIL PROTECTED]>
An: users@wicket.apache.org
Betreff: Re: Wicket critique



  

http://herebebeasties.com/static/Wicket-QuickStart.avi

shows that setting up maven, wicket and eclipse is really easy
(provided you are not limited by a proxy)

Martijn

On Tue, Sep 23, 2008 at 11:41 AM, Chris Stein <[EMAIL PROTECTED]>
wrote:


I tried many different frameworks in the past and Wicket was probably
  

one of the easiest to set up and integrate into Eclipse. I have to admit that
the learning curve is quite steep here. It helped me being familiar with
Eclipse and the Tomcat integration to get things going quickly. Besides: I
don't use Maven.



- Original Message 
From: Yiannis Mavroukakis <[EMAIL PROTECTED]>
To: users@wicket.apache.org
Sent: Tuesday, September 23, 2008 10:44:40 AM
Subject: Wicket critique


  

http://stackoverflow.com/questions/116978/can-anyone-recommend-a-simple-java-web-app-framework


Anyone interested in replying to this?

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





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


  


--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



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

  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: Wicket critique

2008-09-23 Thread Nino Saturnino Martinez Vazquez Wael

Yeah.. Would be great with some tasks etc..

I'll dig into it tomorrow as a relaxing exercise before the wicket 
seminars:)


James Carman wrote:

Right now, we don't have a task list set up.  We should probably do
that if there are going to be multiple cooks in the kitchen. :)  What
I'd like to figure out is how the form/autogenerated editor panel
stuff works together.

On Tue, Sep 23, 2008 at 11:56 AM, Yiannis Mavroukakis
<[EMAIL PROTECTED]> wrote:
  

Yep.

[EMAIL PROTECTED] wrote:


This one:

http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Iolite
?

 Original-Nachricht 

  

Datum: Tue, 23 Sep 2008 15:26:44 +0100
Von: Yiannis Mavroukakis <[EMAIL PROTECTED]>
An: users@wicket.apache.org
Betreff: Re: Wicket critique


  

Iolite is your friend :-)

[EMAIL PROTECTED] wrote:



The only thing that is missing in this video is a hibernate

  

integration...to read/save data to a database.



 Original-Nachricht 

  

Datum: Tue, 23 Sep 2008 11:50:20 +0200
Von: "Martijn Dashorst" <[EMAIL PROTECTED]>
An: users@wicket.apache.org
Betreff: Re: Wicket critique


  

http://herebebeasties.com/static/Wicket-QuickStart.avi

shows that setting up maven, wicket and eclipse is really easy
(provided you are not limited by a proxy)

Martijn

On Tue, Sep 23, 2008 at 11:41 AM, Chris Stein <[EMAIL PROTECTED]>
wrote:



I tried many different frameworks in the past and Wicket was probably

  

one of the easiest to set up and integrate into Eclipse. I have to



admit that



the learning curve is quite steep here. It helped me being familiar



with



Eclipse and the Tomcat integration to get things going quickly.



Besides: I



don't use Maven.



- Original Message 
From: Yiannis Mavroukakis <[EMAIL PROTECTED]>
To: users@wicket.apache.org
Sent: Tuesday, September 23, 2008 10:44:40 AM
Subject: Wicket critique



  

http://stackoverflow.com/questions/116978/can-anyone-recommend-a-simple-java-web-app-framework




Anyone interested in replying to this?

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





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



  

--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



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


  

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



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


  

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





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

  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: Hiding Wicket ID

2008-09-23 Thread walnutmon

How do I deploy in "deployment" mode?


jwcarman wrote:
> 
> The wicket:id won't who up during "deployment" mode.
> 
> On Tue, Sep 23, 2008 at 1:35 PM, walnutmon <[EMAIL PROTECTED]>
> wrote:
>>
>> Is it possible to hide wicket:id tags?  Doing so in order to hide that
>> you
>> are using wicket as a server side technology.
>> --
>> View this message in context:
>> http://www.nabble.com/Hiding-Wicket-ID-tp19632955p19632955.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Hiding-Wicket-ID-tp19632955p19633874.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Hiding Wicket ID

2008-09-23 Thread James Carman
http://cwiki.apache.org/WICKET/faqs.html#FAQs-Deployment

On Tue, Sep 23, 2008 at 2:23 PM, walnutmon <[EMAIL PROTECTED]> wrote:
>
> How do I deploy in "deployment" mode?
>
>
> jwcarman wrote:
>>
>> The wicket:id won't who up during "deployment" mode.
>>
>> On Tue, Sep 23, 2008 at 1:35 PM, walnutmon <[EMAIL PROTECTED]>
>> wrote:
>>>
>>> Is it possible to hide wicket:id tags?  Doing so in order to hide that
>>> you
>>> are using wicket as a server side technology.
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Hiding-Wicket-ID-tp19632955p19632955.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Hiding-Wicket-ID-tp19632955p19633874.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Hiding Wicket ID

2008-09-23 Thread Nino Saturnino Martinez Vazquez Wael
wiki is your friend : 
http://cwiki.apache.org/WICKET/faqs.html#FAQs-Deployment


walnutmon wrote:

How do I deploy in "deployment" mode?


jwcarman wrote:
  

The wicket:id won't who up during "deployment" mode.

On Tue, Sep 23, 2008 at 1:35 PM, walnutmon <[EMAIL PROTECTED]>
wrote:


Is it possible to hide wicket:id tags?  Doing so in order to hide that
you
are using wicket as a server side technology.
--
View this message in context:
http://www.nabble.com/Hiding-Wicket-ID-tp19632955p19632955.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


  

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






  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Relaxation Project?

2008-09-23 Thread Nino Saturnino Martinez Vazquez Wael

Hi

As a guy whom earlier enjoyed playing computer games, wicket has grown 
on me. But what if the two could be combined? Would anyone be up todo a 
integration with this : http://jurpe.sourceforge.net/  or similar for fun ?


Or maybe we could start out by doing a tetris thing or something?

--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: Hiding Wicket ID

2008-09-23 Thread walnutmon

Sorry, I'll refrain from asking readily available questions... I found it too
:/

However, when I build in deployment, the javascript is covered in wicket
references.


jwcarman wrote:
> 
> http://cwiki.apache.org/WICKET/faqs.html#FAQs-Deployment
> 
> On Tue, Sep 23, 2008 at 2:23 PM, walnutmon <[EMAIL PROTECTED]>
> wrote:
>>
>> How do I deploy in "deployment" mode?
>>
>>
>> jwcarman wrote:
>>>
>>> The wicket:id won't who up during "deployment" mode.
>>>
>>> On Tue, Sep 23, 2008 at 1:35 PM, walnutmon <[EMAIL PROTECTED]>
>>> wrote:

 Is it possible to hide wicket:id tags?  Doing so in order to hide that
 you
 are using wicket as a server side technology.
 --
 View this message in context:
 http://www.nabble.com/Hiding-Wicket-ID-tp19632955p19632955.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Hiding-Wicket-ID-tp19632955p19633874.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Hiding-Wicket-ID-tp19632955p19634355.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



RE: ListView and Serialization

2008-09-23 Thread Alexander Anguiano
Fyi: If figured it out, if anyone is interested.  By the way, I worked
on this for quite a while and only decided to post when I was getting no
where.

I thought I could use the models somehow, I couldn't figure out how to
use them here and I don't think it is possible.  What I did is I created
unique names for the ObjectDisplay and put them in a hash table then I
put them in the session.  I created a List of these names and pass them
to the ObjectView string. In the populateItem I looked them up from the
session.



-Original Message-
From: Alexander Anguiano [mailto:[EMAIL PROTECTED] 
Sent: Sunday, September 21, 2008 10:09 PM
To: users@wicket.apache.org
Subject: ListView and Serialization

ListView and Serialization

 

First i like to say it was the framework that I was waiting for years.
Great job guys!

 

I did buy the wicket in action book which I did find very helpful but it
didn't help me solve this problem.  I have problems with the ListView
and Serialization.  I'm using the ListView to render charts on panels.
It was easy to get it on the panels as cells in the list view but the
problem I'm having is with the serialization.  I have a complex heavy
object I don't want to serialize.  I'd like to put the object in the
session and use the model to get the data from there.

 

 

// data class - I don't want this data serialized

public class ObjectDisplay  {

  Point point = null;

  int policyID;

  ReconcileComputer reconcile = null;

  GroupScore root ;

  public ObjectDisplay() {}

}

 

// Page with serialization problem

public class DashBoardPage extends AuthenticatedWebPage {

 

 

public DashBoardPage(final PageParameters parameters) {

  super(parameters);

  ArrayList display = aquireDispays();

 

  add(new ObjectView("object-list",display));

 

}

 

class ObjectView extends ListView {

  



 

  private static final long serialVersionUID = 1L;

 

public ObjectView(String arg0, List arg1) {

super(arg0, arg1);

 

}

 

public Panel createObject(String id, ObjectDisplay od) {

if (od.root == null) {

  ContentPanel p = new ContentPanel(id,
od.point.getTitle());

  p.add(new Label("object","No data found."));

  return p;

}



Panel panel = null;

switch (od.point.getObjectType()) { 

case RootPieChart :

  panel = new RootPieChart(id,od,false);

  break;

case RootHorizontalBarChart :

  panel = new HorizontalRootGroupChart(id,od);

  break;

case ChildVerticalBarChart :

  panel = new VerticalChildChart(id,od,gs);

  break;

case RootDrillDown :

  panel = new RootPieChart(id,od,true);

  break;

case RootRiskSummary:

  panel = new RiskPanel(id,od);

  break;  

case RootTreeView :

  panel = new ScoreCardPanel(id,od);

  break;

}

  

return panel;



}



public void populateItem(final ListItem listItem) {

final ObjectDisplay []value = (ObjectDisplay [])
listItem.getModelObject();

   

Panel panel = null;



WebMarkupContainer colspanner = new
WebMarkupContainer("colspanner");

if (value[1] == null) {

  String cs = "1";

  if (isWideLoad(value[0].point.getObjectType())) {

cs = "2";

colspanner.add(new
SimpleAttributeModifier("style","width: 100%; padding: 5px;"));



  } 

  colspanner.add(new SimpleAttributeModifier("colspan",
cs));   

  listItem.add(colspanner);

  panel = createObject("object1",value[0]);

  colspanner.add(panel);

  listItem.add(new Label("object2",""));

} else {

  colspanner.add(new SimpleAttributeModifier("colspan",
"1"));

  listItem.add(colspanner);

panel = createObject("object1",value[0]);
colspanner.add(panel);

  panel = createObject("object1",value[1]);

  listItem.add(panel);

}

   

 

}

}

 

 

}

 


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



Re: Hiding Wicket ID

2008-09-23 Thread walnutmon


The wicket:id tags are stripped, but the javascript has many "wicket"
occurences.  Is there a way to get rid of these too?


igor.vaynberg wrote:
> 
> in deployment mode those tags are stripped
> 
> -igor
> 
> On Tue, Sep 23, 2008 at 10:35 AM, walnutmon <[EMAIL PROTECTED]>
> wrote:
>>
>> Is it possible to hide wicket:id tags?  Doing so in order to hide that
>> you
>> are using wicket as a server side technology.
>> --
>> View this message in context:
>> http://www.nabble.com/Hiding-Wicket-ID-tp19632955p19632955.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Hiding-Wicket-ID-tp19632955p19634653.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Hiding Wicket ID

2008-09-23 Thread francisco treacy
you can "hide" text in urls by encrypting them, check out
CryptedUrlWebRequestCodingStrategy. this may help reduce "wicket"
occurrences in your source code.

francisco

On Tue, Sep 23, 2008 at 4:04 PM, walnutmon <[EMAIL PROTECTED]> wrote:
>
>
> The wicket:id tags are stripped, but the javascript has many "wicket"
> occurences.  Is there a way to get rid of these too?
>
>
> igor.vaynberg wrote:
>>
>> in deployment mode those tags are stripped
>>
>> -igor
>>
>> On Tue, Sep 23, 2008 at 10:35 AM, walnutmon <[EMAIL PROTECTED]>
>> wrote:
>>>
>>> Is it possible to hide wicket:id tags?  Doing so in order to hide that
>>> you
>>> are using wicket as a server side technology.
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Hiding-Wicket-ID-tp19632955p19632955.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Hiding-Wicket-ID-tp19632955p19634653.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: onmouseover image

2008-09-23 Thread Al Maw
Have a look at AjaxEventBehavior. You can either combine this with an Image
component or add an AttributeModifier and manually tweak the 's src
attribute.

Alastair

2008/9/19 Tim Squires <[EMAIL PROTECTED]>

> Hi All,
>
> Before I go and write my own component to change the src of an img
> onouseover, I just wanted to make sure that there is no standard
> component.  I don't want to re-invent the wheel.
>
> Is there a standard component for changing the Image or ImageButton image
> onmouseover?
>
> Thanks,
> Tim
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Refreshing a Panel on Form onSubmit()

2008-09-23 Thread jchappelle

Instead of passing a list of items into your PageableListView, pass in a
LoadableDetachable model. Inside of the onLoad method put the same code that
is in your Form onSubmit. Your Form onSubmit will be empty and it will
effectively only reload the page when the form gets submitted. When that
happens, it will trigger the onLoad method of the LoadableDetachable model
and your PageableListView should get repopulated.

Thanks,

Josh
-- 
View this message in context: 
http://www.nabble.com/Refreshing-a-Panel-on-Form-onSubmit%28%29-tp19629724p19635273.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket sample application

2008-09-23 Thread jchappelle

I think it is important to understand that Hibernate and Wicket are two
completely different frameworks that are built to solve different problems.
Hibernate operates at the data access layer and wicket at the gui
layer(mostly). You don't need hibernate to get your data to wicket.

I don't know about any of those other frameworks but I think it is a good
thing to have a distinction between these two layers. That way you can
choose a framework for each layer that will be well suited for the problem
you are trying to solve. 

So when going through the wicket examples don't even worry about hibernate.
Just dummy up a list of strings or some other pojos and display them on the
screen just to get it going. Then once you have that, you can choose to get
the real data from wherever you please, however you please.

Thanks,

Josh
-- 
View this message in context: 
http://www.nabble.com/Wicket-sample-application-tp19549890p19635913.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



ListView removeLink double-click problem

2008-09-23 Thread Janne Kario
Hi.

I have a pretty standard ListView with some remove links created with
the ListView.removeLink. How am I supposed to handle the double-click
problem which arises when the user double clicks the last remove link
of the list view? The first request correctly removes the last item
from the list but the subsequent second request fails with
WicketRuntimeException because the URL refers to a remove link index
which does not exist anymore. Is there a way to ignore the second
request or hide the RuntimeException it causes.

j

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



Re: Adding HTML class="invalid" after validating with IndicatingAjaxButton

2008-09-23 Thread Chris Stein
Thanks, Igor. However, I tried it and it never showed up in the browser.
Even more so, when I set a breakpoint to the onComponentTag-method, it never 
gets called. Is that correct?
I only get this behavior when I am using the IndicatingAjaxButton--everything 
works fine with the regular buttons. Maybe I am missing something else here...

Here's my code:

/**
 * The panel with the form.
 */
public class SignInPanel extends Panel
{
  public SignInPanel(final String id)
  {
super(id);

feedback.setOutputMarkupId(true);
add(feedback);

add(new SignInForm("signInForm"));
  }


public final class SignInForm extends StatelessForm
{

  private final ValueMap properties = new ValueMap();

  public SignInForm(final String id)
  {
  super(id);

  FormComponent fc;

  fc = new RequiredTextField("username", new PropertyModel(properties, 
"username"));
  fc.add(new InvalidIndicator());
  fc.setOutputMarkupId(true);
  add(fc);

  fc = new PasswordTextField("password", new PropertyModel(properties, 
"password"));
  fc.add(new InvalidIndicator());
  fc.setOutputMarkupId(true);
  add(fc);

  AjaxFormValidatingBehavior.addToAllFormComponents(this, "onsubmit");

  this.add(new IndicatingAjaxButton("submit", this)
  {
@Override
protected void onSubmit(AjaxRequestTarget target, Form form)
{
  //perform sign in
}

@Override
protected void onError(AjaxRequestTarget target, Form form)
{
  target.addComponent(feedback);
}
  });

  }
}


/**
 * The validator. Thanks to Igor.
 */
public class InvalidIndicator extends AbstractBehavior
{
  @Override
  public void onComponentTag(final Component component, final ComponentTag tag)
  {
boolean valid = ((FormComponent)component).isValid();
if(!valid)
{
  tag.getAttributes().put("class","invalid");
}
  }
}





- Original Message 
From: Igor Vaynberg <[EMAIL PROTECTED]>
To: users@wicket.apache.org
Sent: Tuesday, September 23, 2008 5:50:08 PM
Subject: Re: Adding HTML class="invalid" after validating with 
IndicatingAjaxButton

public class invalidindicator extends abstractbehavior {
  protected void oncomponenttag(component c, tag t) {
  boolean valid=((formcomponent)c).isvalid();
  if (!valid) {
 tag.put("class","invalid");
 }
  }
}

formcomponent.add(new invalidindicator());

-igor

On Tue, Sep 23, 2008 at 2:53 AM, cstein1206 <[EMAIL PROTECTED]> wrote:
>
> I basically want to achieve this:
> http://www.jroller.com/karthikg/entry/wicket_and_ajax
> but handle the validation only after the form has been submitted with an
> AjaxIndicatingButton instead of with the "onblur" as in the example.
>
> I think I tried too many things over the last couple of days and got totally
> confused now. Would anybody be so kind to help me out a bit? What do I need
> to add to the FormComponents so that they will be updated with an
> HTML-attribute "class='invalid'"? So far my form doesn't do that (I did
> setOutputMarkupId(true)).
>
> Thanks a ton!
> Chris
> --
> View this message in context: 
> http://www.nabble.com/Adding-HTML-class%3D%22invalid%22-after-validating-with-IndicatingAjaxButton-tp19624501p19624501.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


  


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



Re: Adding HTML class="invalid" after validating with IndicatingAjaxButton

2008-09-23 Thread Chris Stein
Thanks, Igor. However, I tried it and it never showed up in the browser.
Even more so, when I set a breakpoint to the onComponentTag-method, it never 
gets called. Is that correct?
I only get this behavior when I am using the IndicatingAjaxButton--everything 
works fine with the regular buttons. Maybe I am missing something else here...

Here's my code:

/**
 * The panel with the form.
 */
public class SignInPanel extends Panel
{
  public SignInPanel(final String id)
  {
super(id);

feedback.setOutputMarkupId(true);
add(feedback);

add(new SignInForm("signInForm"));
  }


public final class SignInForm extends StatelessForm
{

  private final ValueMap properties = new ValueMap();

  public SignInForm(final String id)
  {
  super(id);

  FormComponent fc;

  fc = new RequiredTextField("username", new PropertyModel(properties, 
"username"));
  fc.add(new InvalidIndicator());
  fc.setOutputMarkupId(true);
  add(fc);

  fc = new PasswordTextField("password", new PropertyModel(properties, 
"password"));
  fc.add(new InvalidIndicator());
  fc.setOutputMarkupId(true);
  add(fc);

  AjaxFormValidatingBehavior.addToAllFormComponents(this, "onsubmit");

  this.add(new IndicatingAjaxButton("submit", this)
  {
@Override
protected void onSubmit(AjaxRequestTarget target, Form form)
{
  //perform sign in
}

@Override
protected void onError(AjaxRequestTarget target, Form form)
{
  target.addComponent(feedback);
}
  });

  }
}


/**
 * The validator. Thanks to Igor.
 */
public class InvalidIndicator extends AbstractBehavior
{
  @Override
  public void onComponentTag(final Component component, final ComponentTag tag)
  {
boolean valid = ((FormComponent)component).isValid();
if(!valid)
{
  tag.getAttributes().put("class","invalid");
}
  }
}





- Original Message 
From: Igor Vaynberg <[EMAIL PROTECTED]>
To: users@wicket.apache.org
Sent: Tuesday, September 23, 2008 5:50:08 PM
Subject: Re: Adding HTML class="invalid" after validating with 
IndicatingAjaxButton

public class invalidindicator extends abstractbehavior {
  protected void oncomponenttag(component c, tag t) {
  boolean valid=((formcomponent)c).isvalid();
  if (!valid) {
 tag.put("class","invalid");
 }
  }
}

formcomponent.add(new invalidindicator());

-igor

On Tue, Sep 23, 2008 at 2:53 AM, cstein1206 <[EMAIL PROTECTED]> wrote:
>
> I basically want to achieve this:
> http://www.jroller.com/karthikg/entry/wicket_and_ajax
> but handle the validation only after the form has been submitted with an
> AjaxIndicatingButton instead of with the "onblur" as in the example.
>
> I think I tried too many things over the last couple of days and got totally
> confused now. Would anybody be so kind to help me out a bit? What do I need
> to add to the FormComponents so that they will be updated with an
> HTML-attribute "class='invalid'"? So far my form doesn't do that (I did
> setOutputMarkupId(true)).
>
> Thanks a ton!
> Chris
> --
> View this message in context: 
> http://www.nabble.com/Adding-HTML-class%3D%22invalid%22-after-validating-with-IndicatingAjaxButton-tp19624501p19624501.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


  


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



Re: Adding HTML class="invalid" after validating with IndicatingAjaxButton

2008-09-23 Thread Igor Vaynberg
 target.addComponent(feedback);
target.addComponent(form); // you might have to add some div that is
around the form, not sure if browsers support replacing form tag well

-igor

On Tue, Sep 23, 2008 at 1:39 PM, Chris Stein <[EMAIL PROTECTED]> wrote:
> Thanks, Igor. However, I tried it and it never showed up in the browser.
> Even more so, when I set a breakpoint to the onComponentTag-method, it never 
> gets called. Is that correct?
> I only get this behavior when I am using the IndicatingAjaxButton--everything 
> works fine with the regular buttons. Maybe I am missing something else here...
>
> Here's my code:
>
> /**
>  * The panel with the form.
>  */
> public class SignInPanel extends Panel
> {
>  public SignInPanel(final String id)
>  {
>super(id);
>
>feedback.setOutputMarkupId(true);
>add(feedback);
>
>add(new SignInForm("signInForm"));
>  }
>
>
> public final class SignInForm extends StatelessForm
> {
>
>  private final ValueMap properties = new ValueMap();
>
>  public SignInForm(final String id)
>  {
>  super(id);
>
>  FormComponent fc;
>
>  fc = new RequiredTextField("username", new PropertyModel(properties, 
> "username"));
>  fc.add(new InvalidIndicator());
>  fc.setOutputMarkupId(true);
>  add(fc);
>
>  fc = new PasswordTextField("password", new PropertyModel(properties, 
> "password"));
>  fc.add(new InvalidIndicator());
>  fc.setOutputMarkupId(true);
>  add(fc);
>
>  AjaxFormValidatingBehavior.addToAllFormComponents(this, "onsubmit");
>
>  this.add(new IndicatingAjaxButton("submit", this)
>  {
>@Override
>protected void onSubmit(AjaxRequestTarget target, Form form)
>{
>  //perform sign in
>}
>
>@Override
>protected void onError(AjaxRequestTarget target, Form form)
>{
>  target.addComponent(feedback);
>}
>  });
>
>  }
> }
>
>
> /**
>  * The validator. Thanks to Igor.
>  */
> public class InvalidIndicator extends AbstractBehavior
> {
>  @Override
>  public void onComponentTag(final Component component, final ComponentTag tag)
>  {
>boolean valid = ((FormComponent)component).isValid();
>if(!valid)
>{
>  tag.getAttributes().put("class","invalid");
>}
>  }
> }
>
>
>
>
>
> - Original Message 
> From: Igor Vaynberg <[EMAIL PROTECTED]>
> To: users@wicket.apache.org
> Sent: Tuesday, September 23, 2008 5:50:08 PM
> Subject: Re: Adding HTML class="invalid" after validating with 
> IndicatingAjaxButton
>
> public class invalidindicator extends abstractbehavior {
>  protected void oncomponenttag(component c, tag t) {
>  boolean valid=((formcomponent)c).isvalid();
>  if (!valid) {
> tag.put("class","invalid");
> }
>  }
> }
>
> formcomponent.add(new invalidindicator());
>
> -igor
>
> On Tue, Sep 23, 2008 at 2:53 AM, cstein1206 <[EMAIL PROTECTED]> wrote:
>>
>> I basically want to achieve this:
>> http://www.jroller.com/karthikg/entry/wicket_and_ajax
>> but handle the validation only after the form has been submitted with an
>> AjaxIndicatingButton instead of with the "onblur" as in the example.
>>
>> I think I tried too many things over the last couple of days and got totally
>> confused now. Would anybody be so kind to help me out a bit? What do I need
>> to add to the FormComponents so that they will be updated with an
>> HTML-attribute "class='invalid'"? So far my form doesn't do that (I did
>> setOutputMarkupId(true)).
>>
>> Thanks a ton!
>> Chris
>> --
>> View this message in context: 
>> http://www.nabble.com/Adding-HTML-class%3D%22invalid%22-after-validating-with-IndicatingAjaxButton-tp19624501p19624501.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Wicket sample application

2008-09-23 Thread James Carman
Josh,

I agree with you about the need to try to understand Wicket a bit
first before diving into ORM-izing (I coined it first; I call dibs)
your application.

However, for those who want to start with a hibernate-based or
jpa-based application, it's nice to have a good starting point (like a
maven archetype).  With "wicketopia", we've got two different
archetypes for JPA and Hibernate.  Wicketopia itself is based on the
Domdrides core API, so it is ORM implementation agnostic.

James

On Tue, Sep 23, 2008 at 4:10 PM, jchappelle <[EMAIL PROTECTED]> wrote:
>
> I think it is important to understand that Hibernate and Wicket are two
> completely different frameworks that are built to solve different problems.
> Hibernate operates at the data access layer and wicket at the gui
> layer(mostly). You don't need hibernate to get your data to wicket.
>
> I don't know about any of those other frameworks but I think it is a good
> thing to have a distinction between these two layers. That way you can
> choose a framework for each layer that will be well suited for the problem
> you are trying to solve.
>
> So when going through the wicket examples don't even worry about hibernate.
> Just dummy up a list of strings or some other pojos and display them on the
> screen just to get it going. Then once you have that, you can choose to get
> the real data from wherever you please, however you please.
>
> Thanks,
>
> Josh
> --
> View this message in context: 
> http://www.nabble.com/Wicket-sample-application-tp19549890p19635913.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Hiding Wicket ID

2008-09-23 Thread James Carman
Not only will it reduce the "wicketness" of your URLs, it might hide
some of your other implementation details (such as package names?)

On Tue, Sep 23, 2008 at 3:14 PM, francisco treacy
<[EMAIL PROTECTED]> wrote:
> you can "hide" text in urls by encrypting them, check out
> CryptedUrlWebRequestCodingStrategy. this may help reduce "wicket"
> occurrences in your source code.
>
> francisco
>
> On Tue, Sep 23, 2008 at 4:04 PM, walnutmon <[EMAIL PROTECTED]> wrote:
>>
>>
>> The wicket:id tags are stripped, but the javascript has many "wicket"
>> occurences.  Is there a way to get rid of these too?
>>
>>
>> igor.vaynberg wrote:
>>>
>>> in deployment mode those tags are stripped
>>>
>>> -igor
>>>
>>> On Tue, Sep 23, 2008 at 10:35 AM, walnutmon <[EMAIL PROTECTED]>
>>> wrote:

 Is it possible to hide wicket:id tags?  Doing so in order to hide that
 you
 are using wicket as a server side technology.
 --
 View this message in context:
 http://www.nabble.com/Hiding-Wicket-ID-tp19632955p19632955.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>
>> --
>> View this message in context: 
>> http://www.nabble.com/Hiding-Wicket-ID-tp19632955p19634653.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: update dropdown with ajax

2008-09-23 Thread 张伟
Try ModalWindow instead of popup page.


> On Mon, Sep 22, 2008 at 3:06 PM, tbt <[EMAIL PROTECTED]> wrote:
>
> >
> > Hi
> >
> > I have a problem regarding how to update a dropdown with ajax when an
> > option
> > is added through a popup window. For example Page A has a dropdown and a
> > link. When the link is clicked a popup opens and dropdown options can be
> > added to the popup page. when the form is submitted by clicking 'add' the
> > db
> > is updated and the popup window is closed. but the dropdown in the parent
> > window needs to be updated with ajax. how can this be done the wicket
> way.
> > please provide an example.
> >
> > Thanks
> > --
> > View this message in context:
> > http://www.nabble.com/update-dropdown-with-ajax-tp19606658p19606658.html
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Eyal Golan
> [EMAIL PROTECTED]
>
> Visit: http://jvdrums.sourceforge.net/
> LinkedIn: http://www.linkedin.com/in/egolan74
>
> P Save a tree. Please don't print this e-mail unless it's really necessary
>


Re: AjaxRequestTarget is null in Internet Explorer 6

2008-09-23 Thread Timo Rantalaiho
On Sun, 21 Sep 2008, Agent Mahone wrote:
> I??m struggeling with the AjaxFallbackLink the target object is null, if it 
> runs to the onClick() method. 
> In Firefox and Opera it works fine!!! 

It sounds like the Ajax Javascript would not run in your IE but it
would be a normal request.

Have you tried other Ajax sites with your IE 6?

Have you looked in the Wicket Ajax Debug COnsole (enabled by
default in development mode)?

Best wishes,
Timo


-- 
Timo Rantalaiho   
Reaktor Innovations Oyhttp://www.ri.fi/ >

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



Re: Forwarding to a servlet

2008-09-23 Thread David Leangen

> >> I think you could just use response.sendRedirect() and
> >> request.forward() , rest of the code should still be
> >> processed.


This seemed to work just fine:

  RequestCycle.get().setRequestTarget( redirectTarget );

However, I'm running into a problem... not sure if it's related or not,
so I'll start a new thread.


=David.Leangen



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



Associating a request to a Session

2008-09-23 Thread David Leangen

I save a value to my session using a MetaKey. However, when I try to
later retrieve the value, there is no meta data.

Stepping through the code, I noticed that the id of the Session object
in which I save the value is different from the id of the Session object
from which the value is retrieved...


I am forwarding a request to a third party server (OpenId Provider), so
I guess it's normal that Wicket thinks it's not part of the same
session...

How can I get Wicket to understand that this should be part of the same
request?

Just append some kind of ID to the params or something?


Thanks!
=David.Leangen




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



Re: Associating a request to a Session

2008-09-23 Thread Igor Vaynberg
wicket session is not persisted in httpsession until you hit a
stateful page. to manually persist the wicket session call .bind() on
it.

-igor

On Tue, Sep 23, 2008 at 8:08 PM, David Leangen <[EMAIL PROTECTED]> wrote:
>
> I save a value to my session using a MetaKey. However, when I try to
> later retrieve the value, there is no meta data.
>
> Stepping through the code, I noticed that the id of the Session object
> in which I save the value is different from the id of the Session object
> from which the value is retrieved...
>
>
> I am forwarding a request to a third party server (OpenId Provider), so
> I guess it's normal that Wicket thinks it's not part of the same
> session...
>
> How can I get Wicket to understand that this should be part of the same
> request?
>
> Just append some kind of ID to the params or something?
>
>
> Thanks!
> =David.Leangen
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Associating a request to a Session

2008-09-23 Thread David Leangen

wicket session is not persisted in httpsession until you hit a
> stateful page. to manually persist the wicket session call .bind() on
> it.
>

Hmmm... Although that is very useful information to know, that did not
work. :-(

So, let me ask this another way...

How does Wicket associate a given request to a Session? The incoming
request that I need to associate to the user's session is from a
different location (OpenId Provider).

So, even when I create a persistent session with bind(), Wicket has no
way of knowing that the new request is part of that Session.

So, how can I tell Wicket that this incoming request is part of that
Session?


Thanks!
=David.Leangen



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



Need help fixing bug #1816

2008-09-23 Thread cowwoc

Hi,

I spent a few hours tracking down the cause of
https://issues.apache.org/jira/browse/WICKET-1816 but now I need someone
from the Wicket team to help me fix it.

Can someone please fix the lines of code I mention in the report and then
send me back a patched version for testing?

To be clear: this bug affects *all* platforms. Tomcat fails silently, which
is even worse.

Gili
-- 
View this message in context: 
http://www.nabble.com/Need-help-fixing-bug--1816-tp19641982p19641982.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wizard in Modalwindow getting alert message upon using the Wizard buttons

2008-09-23 Thread Kuga

Can anyone please help me with any possible solution or hints?
Greatly appreciate your comments, help.
Thanks
kuga

Kuga wrote:
> 
> Hi,
> 
> I was browsing through the wicket forums, for one of the problems I am
> having using Wicket wizard in ModalWindow.
> 
> I am iusing Wicket 1.3.4 
> 
> Wondering if anyone could help me with any possible solutions. Greatly
> appreciate you time and response.
> 
> I have changed the WizardButtons to use Ajax buttons. The following is the
> behavior:
> 
> In the wizard Ajax button I added the following:
> 
> protected void onSubmit(AjaxRequestTarget target, Form form) {
> onClick(target);
> target.addComponent((Wizard)wizard);
>   }
> 
> 1. I have added 3 IWizardStep to the model 
> 2. Added the wizard to a panel, and then added this panel as setContent()
> to the ModalWindow.
> 3. Lauched the modalwindow, 
> a. Observed the right behavior (button enabled state) of the
> buttons at launch
> b. Now Clicked on “Next” button – traverses to the next step.
> c. Now clicked on the “Previous” button – instead of going to
> Previous – I got the annoying alert message. 
> d. added the javascript (Wicket.windo.unloadConfirmatoin =
> false;
> e. Adding the above scrip was just suppressing the alert
> message, and just closes the wizard window without going to the previous
> screen.
> 
> Not really sure where I am going wrong. Have been trying to Debug, but
> since the previous button doesn’t get the onClick() due to closing, could
> not even debug this issue.
> 
> Can you please let me know about your experience in solving this issue,
> and also if you feel that I am doing any mistake, please let me know.
> Thanks & Best Regards
> Kuga
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wizard-in-Modalwindow-getting-alert-message-upon-using-the-Wizard-buttons-tp19631049p19642382.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Associating a request to a Session

2008-09-23 Thread Nino Saturnino Martinez Vazquez Wael

Hi David

I believe it's also the servlet container that handles this, with either 
a cookie or an url rewrite...


I've thought of doing some components for openid as it would be nice to 
have some for it... But maybe you can do it instead? :)


David Leangen wrote:

wicket session is not persisted in httpsession until you hit a
  

stateful page. to manually persist the wicket session call .bind() on
it.




Hmmm... Although that is very useful information to know, that did not
work. :-(

So, let me ask this another way...

How does Wicket associate a given request to a Session? The incoming
request that I need to associate to the user's session is from a
different location (OpenId Provider).

So, even when I create a persistent session with bind(), Wicket has no
way of knowing that the new request is part of that Session.

So, how can I tell Wicket that this incoming request is part of that
Session?


Thanks!
=David.Leangen



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

  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: Associating a request to a Session

2008-09-23 Thread David Leangen

Hi, Nino!

> I believe it's also the servlet container that handles this, with either 
> a cookie or an url rewrite...

Yeah... I've decided to take another route on this, since I don't like
relying on the servlet container.

Thanks again for your comments, though. :-)

> I've thought of doing some components for openid as it would be nice to 
> have some for it... But maybe you can do it instead? :)

I'd be happy to share my work, but I don't know how valid it would be
for general use. I rely heavily upon OSGi. I think those of us who
combine Wicket+OSGi are still very limited in number.


Cheers,
=David.Leangen




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



Re: Need help fixing bug #1816

2008-09-23 Thread Erik van Oosten

Hello Gili,

It is maybe best if you checkout the code from svn and modify the code 
yourself. When you're satisfied with the changes, you can attach a patch 
to the issue. Issues with patches are more likely to be solved then others.


Regards,
Erik.


cowwoc schreef:

Hi,

I spent a few hours tracking down the cause of
https://issues.apache.org/jira/browse/WICKET-1816 but now I need someone
from the Wicket team to help me fix it.

Can someone please fix the lines of code I mention in the report and then
send me back a patched version for testing?

To be clear: this bug affects *all* platforms. Tomcat fails silently, which
is even worse.

Gili
  



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

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