Re: How to show/hide, enable/disable items in menu based on YUI menu2

2009-07-16 Thread Petr Fejfar
On Thu, Jul 16, 2009 at 11:43 PM, Petr Fejfar wrote:

> tries to be compatible with. Please find out attached table - maybe it
> could be usefull for someone else as well.

Errata: in the Menu test on Google Chrome, there should be "(it seems
the value does *not* toggle)"

Petr

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

2009-07-16 Thread Igor Vaynberg
well, thats how things work when you have multiple applications, they each
need their own context.

-igor

On Thu, Jul 16, 2009 at 10:29 PM, Anton Veretennikov <
anton.veretenni...@gmail.com> wrote:

> Igor, I have several applications working on one server. They can't
> all be ROOT.war.
>
> -- Tony
>
> On Fri, Jul 17, 2009 at 11:40 AM, Igor Vaynberg
> wrote:
> > rename it to ROOT.war
> >
> > -igor
> >
> > On Thu, Jul 16, 2009 at 7:00 PM, Anton Veretennikov <
> > anton.veretenni...@gmail.com> wrote:
> >
> >> Thank you, Igor, for your suggestion.
> >>
> >> I need full hiding of app name. Renaming still creates additional path
> >> in url like http://sitename.com/AppName/
> >>
> >> May be there exists other way or my URL Rewriting is not correct:
> >>
> >> 
> >>  ServerName www.sitename.com
> >>  ServerAlias sitename.com
> >>  ProxyPass / ajp://127.0.0.1:8009/AppName/
> >>  ProxyPassReverse / ajp://127.0.0.1:8009/AppName/
> >>  ProxyPassReverseCookieDomainlocalhost  sitename.com
> >>  ProxyPassReverseCookiePath /AppName /
> >>  RewriteEngine  on
> >>  RewriteRule^/AppName/(.*)$  /$1  [R]
> >> 
> >>
> >> -- Tony
> >>
> >> On Fri, Jul 17, 2009 at 12:15 AM, Igor Vaynberg >
> >> wrote:
> >> > just rename your war to something else before deploying it.
> >> >
> >> > -igor
> >> >
> >> > On Thu, Jul 16, 2009 at 8:25 AM, Anton
> >> > Veretennikov wrote:
> >> >> Hello, wicket users and developers,
> >> >>
> >> >> This is a problem I can't work out myself, I need your help.
> >> >>
> >> >> In a local environment (direct calls to Tomcat)
> AjaxFormSubmitBehavior
> >> >> works as expected.
> >> >> But in production I try to hide application name (let's say,
> >> >> AppNamePay-1.0-SNAPSHOT) from URL using RewriteRule.
> >> >>
> >> >> Logs show that somehow application name bobs up when I create a link
> >> >> with AjaxFormSubmitBehavior.
> >> >> This can be seen from httpd logs (302 status):
> >> >>
> >> >> xx.22.151.6 - - [16/Jul/2009:14:14:30 +] "GET
> >> >> /AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:5::: HTTP/1.1" 302 312
> >> >> "http://sitename.com/?wicket:interface=:0:4:::"; "Mozilla/5.0
> (Windows;
> >> >> U; Windows NT 5.1; ru; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6"
> >> >>
> >> >> And from catched calls using HttpFox:
> >> >>
> >> >> GET 302 Redirect to:
> >> >> http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:
> ::
> >> http://sitename.com
> >> >>
> >>
> /?wicket:interface=:0:outterDiv:leftPanel:content:updatableDiv:hidableDiv:electronicUpdatable:list:0:item:border:switch:buttons2:acceptSum:2:ILinkListener::
> >> >> (Status-Line)   HTTP/1.1 302 Moved Temporarily
> >> >> GET 302 Redirect to:
> >> >> http://sitename.com/?wicket:interface=:0:3:::
> >> http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
> >> >> (Status-Line)   HTTP/1.1 302 Found
> >> >>
> >> >> How it could be that wicket knows about AppNamePay-1.0-SNAPSHOT?
> >> >> Other Ajax stuff seems working without problem.
> >> >>
> >> >> Wicket is 1.4-rc7
> >> >>
> >> >> --Tony
> >> >>
> >> >> -
> >> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >> >>
> >> >>
> >> >
> >> > -
> >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> > For additional commands, e-mail: users-h...@wicket.apache.org
> >> >
> >> >
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

2009-07-16 Thread Anton Veretennikov
Igor, I have several applications working on one server. They can't
all be ROOT.war.

-- Tony

On Fri, Jul 17, 2009 at 11:40 AM, Igor Vaynberg wrote:
> rename it to ROOT.war
>
> -igor
>
> On Thu, Jul 16, 2009 at 7:00 PM, Anton Veretennikov <
> anton.veretenni...@gmail.com> wrote:
>
>> Thank you, Igor, for your suggestion.
>>
>> I need full hiding of app name. Renaming still creates additional path
>> in url like http://sitename.com/AppName/
>>
>> May be there exists other way or my URL Rewriting is not correct:
>>
>> 
>>  ServerName www.sitename.com
>>  ServerAlias sitename.com
>>  ProxyPass / ajp://127.0.0.1:8009/AppName/
>>  ProxyPassReverse / ajp://127.0.0.1:8009/AppName/
>>  ProxyPassReverseCookieDomain    localhost  sitename.com
>>  ProxyPassReverseCookiePath /AppName /
>>  RewriteEngine  on
>>  RewriteRule    ^/AppName/(.*)$  /$1  [R]
>> 
>>
>> -- Tony
>>
>> On Fri, Jul 17, 2009 at 12:15 AM, Igor Vaynberg
>> wrote:
>> > just rename your war to something else before deploying it.
>> >
>> > -igor
>> >
>> > On Thu, Jul 16, 2009 at 8:25 AM, Anton
>> > Veretennikov wrote:
>> >> Hello, wicket users and developers,
>> >>
>> >> This is a problem I can't work out myself, I need your help.
>> >>
>> >> In a local environment (direct calls to Tomcat) AjaxFormSubmitBehavior
>> >> works as expected.
>> >> But in production I try to hide application name (let's say,
>> >> AppNamePay-1.0-SNAPSHOT) from URL using RewriteRule.
>> >>
>> >> Logs show that somehow application name bobs up when I create a link
>> >> with AjaxFormSubmitBehavior.
>> >> This can be seen from httpd logs (302 status):
>> >>
>> >> xx.22.151.6 - - [16/Jul/2009:14:14:30 +] "GET
>> >> /AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:5::: HTTP/1.1" 302 312
>> >> "http://sitename.com/?wicket:interface=:0:4:::"; "Mozilla/5.0 (Windows;
>> >> U; Windows NT 5.1; ru; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6"
>> >>
>> >> And from catched calls using HttpFox:
>> >>
>> >> GET     302     Redirect to:
>> >> http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
>> http://sitename.com
>> >>
>> /?wicket:interface=:0:outterDiv:leftPanel:content:updatableDiv:hidableDiv:electronicUpdatable:list:0:item:border:switch:buttons2:acceptSum:2:ILinkListener::
>> >> (Status-Line)   HTTP/1.1 302 Moved Temporarily
>> >> GET     302     Redirect to:
>> >> http://sitename.com/?wicket:interface=:0:3:::
>> http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
>> >> (Status-Line)   HTTP/1.1 302 Found
>> >>
>> >> How it could be that wicket knows about AppNamePay-1.0-SNAPSHOT?
>> >> Other Ajax stuff seems working without problem.
>> >>
>> >> Wicket is 1.4-rc7
>> >>
>> >> --Tony
>> >>
>> >> -
>> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> >> For additional commands, e-mail: users-h...@wicket.apache.org
>> >>
>> >>
>> >
>> > -
>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to Hidden/Disabled Wicket tree with implementation wicket security

2009-07-16 Thread Rizal Indra

Thanks for quick reply Warren,
exactly my code SecureWebMarkupContainer.java is same as with your code.
But its still not working. 
I am newbie in java wicket, so i need more example/hint for understanding its. 
I am sure that missing something but i dont know how to solve it.

Can anyone help me? thanks 



--- Pada Kam, 16/7/09, Warren Bell  menulis:

> Dari: Warren Bell 
> Judul: Re: How to Hidden/Disabled Wicket tree with implementation wicket 
> security
> Kepada: users@wicket.apache.org, bujang_kuan...@yahoo.com
> Tanggal: Kamis, 16 Juli, 2009, 11:09 AM
> Try this:
> 
> Warren
> 
> public class SecureWebMarkupContainer extends
> WebMarkupContainer implements ISecureComponent {
> 
>    public SecureWebMarkupContainer(String
> id)
>    {
>     super(id);
> 
>        setSecurityCheck(new
> ComponentSecurityCheck(this));
>    }
>      public
> SecureWebMarkupContainer(String id, IModel model)
>    {
>        super(id, model);
>        setSecurityCheck(new
> ComponentSecurityCheck(this));
>    }
>      public final void
> setSecurityCheck(ISecurityCheck check)
>    {
>    
>    SecureComponentHelper.setSecurityCheck(this,
> check);
>    }
> 
>    public final ISecurityCheck
> getSecurityCheck()
>    {
>        return
> SecureComponentHelper.getSecurityCheck(this);
>    }
> 
>    public boolean isActionAuthorized(String
> action)
>    {
>        return
> SecureComponentHelper.isActionAuthorized(this, action);
>    }
> 
>    public boolean
> isActionAuthorized(WaspAction action)
>    {
>        return
> SecureComponentHelper.isActionAuthorized(this, action);
>    }
> 
>    public boolean isAuthenticated()
>    {
>        return
> SecureComponentHelper.isAuthenticated(this);
>    }
>      public boolean
> isAuthenticatedAndAuthorized(String action)
>    {
>        return isAuthenticated()
> && isActionAuthorized(action);
>    }
> 
> {
> 
> 
> Rizal Indra wrote:
> > Hi,
> > I have created my welcome page with menu tree 
> > (http://wicketstuff.org/wicket13/nested/ ). I want to
> hide/disabled some item menu depend on user right
> principal.
> > 
> > I have try put some tricks but not work :-)
> > MyTree.java
> > public class MyTree extends Tree {
> > @Override
> >     protected void
> populateTreeItem(WebMarkupContainer item, int level) {
> >     
>    System.out.println(" getting
> populateTreeItem...");
> >     
>    super.populateTreeItem(item, level);
> >         final TreeNode
> node = (TreeNode)item.getModelObject();
> >         MarkupContainer
> nodeLink =  newNodeLink(item, "nodeLink", node);
> >     
>    SecureWebMarkupContainer swmc = new
> SecureWebMarkupContainer("hiddenMenu");
> >     
>    swmc.add(nodeLink);
> >     
>    //item.add(nodeLink);
> >         item.add(swmc);
> >     }
> > }
> > 
> > SecureWebMarkupContainer.java
> > public class SecureWebMarkupContainer extends
> WebMarkupContainer implements ISecureComponent {
> > ...
> > }
> > 
> > can anyone give some example/advice how to make it
> work. thanks 
> > 
> > 
> >       Pemanasan global? Apa
> sih itu? Temukan jawabannya di Yahoo! Answers! http://id.answers.yahoo.com
> > 
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> > 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 


  Berbagi foto Flickr dengan teman di dalam Messenger. Jelajahi Yahoo! 
Messenger yang serba baru sekarang! http://id.messenger.yahoo.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

2009-07-16 Thread Igor Vaynberg
rename it to ROOT.war

-igor

On Thu, Jul 16, 2009 at 7:00 PM, Anton Veretennikov <
anton.veretenni...@gmail.com> wrote:

> Thank you, Igor, for your suggestion.
>
> I need full hiding of app name. Renaming still creates additional path
> in url like http://sitename.com/AppName/
>
> May be there exists other way or my URL Rewriting is not correct:
>
> 
>  ServerName www.sitename.com
>  ServerAlias sitename.com
>  ProxyPass / ajp://127.0.0.1:8009/AppName/
>  ProxyPassReverse / ajp://127.0.0.1:8009/AppName/
>  ProxyPassReverseCookieDomainlocalhost  sitename.com
>  ProxyPassReverseCookiePath /AppName /
>  RewriteEngine  on
>  RewriteRule^/AppName/(.*)$  /$1  [R]
> 
>
> -- Tony
>
> On Fri, Jul 17, 2009 at 12:15 AM, Igor Vaynberg
> wrote:
> > just rename your war to something else before deploying it.
> >
> > -igor
> >
> > On Thu, Jul 16, 2009 at 8:25 AM, Anton
> > Veretennikov wrote:
> >> Hello, wicket users and developers,
> >>
> >> This is a problem I can't work out myself, I need your help.
> >>
> >> In a local environment (direct calls to Tomcat) AjaxFormSubmitBehavior
> >> works as expected.
> >> But in production I try to hide application name (let's say,
> >> AppNamePay-1.0-SNAPSHOT) from URL using RewriteRule.
> >>
> >> Logs show that somehow application name bobs up when I create a link
> >> with AjaxFormSubmitBehavior.
> >> This can be seen from httpd logs (302 status):
> >>
> >> xx.22.151.6 - - [16/Jul/2009:14:14:30 +] "GET
> >> /AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:5::: HTTP/1.1" 302 312
> >> "http://sitename.com/?wicket:interface=:0:4:::"; "Mozilla/5.0 (Windows;
> >> U; Windows NT 5.1; ru; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6"
> >>
> >> And from catched calls using HttpFox:
> >>
> >> GET 302 Redirect to:
> >> http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
> http://sitename.com
> >>
> /?wicket:interface=:0:outterDiv:leftPanel:content:updatableDiv:hidableDiv:electronicUpdatable:list:0:item:border:switch:buttons2:acceptSum:2:ILinkListener::
> >> (Status-Line)   HTTP/1.1 302 Moved Temporarily
> >> GET 302 Redirect to:
> >> http://sitename.com/?wicket:interface=:0:3:::
> http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
> >> (Status-Line)   HTTP/1.1 302 Found
> >>
> >> How it could be that wicket knows about AppNamePay-1.0-SNAPSHOT?
> >> Other Ajax stuff seems working without problem.
> >>
> >> Wicket is 1.4-rc7
> >>
> >> --Tony
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Dropdownchoice missing (only when the page with Tinymce component) while scrolling the vertical scroll bar

2009-07-16 Thread rolandpeng

oh,sorry it's my typo.
I've already corrected the post. no defense,pals. ^^


insom wrote:
> 
> When you called us wicket poles, I had just assumed that you were
> referring
> to the stumps that hold up the bails on a cricket wicket. However, I'm
> glad
> to see that we're also pals and not just poles ;)
> 
> On Thu, Jul 16, 2009 at 6:42 PM, rolandpeng  wrote:
> 
>>
>> hi wicket poles,
>>
>> Does anyone know who still works around the maintenance of the
>> wicket-tinymce in wicketstuff?
>> I'd like to pass my problem to the group.
>>
>> thank you.
>>
>> Roland.
>>
>>
>> rolandpeng wrote:
>> >
>> > thanks for your teach,igor.
>> >
>> > I've find the way to build the quickstart with tinymce included.
>> > The quickstart project is attached,and can be run with 'mvn jetty:run'
>> .
>> > the url: http://localhost:8080/quickstart
>> >
>> > my quickstart brief:
>> > there are two webpages,one with ajaxlink and the other with
>> non-ajaxlink.
>> > You can find that when scrolling the vertical bar in the page with
>> > ajaxlink.The dropdownchoice is dispeared(or blured).But non-ajaxlink
>> page
>> > won't.
>> >
>> > I don't know how to issue this problem in the right way,so I just post
>> > this quickstart here.
>> > I would be very obliged if Igor or someone can help to resolve this
>> > problem.thank you.
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Dropdownchoice-missing-%28only-when-the-page-with-Tinymce-component%29-while-scrolling-the-vertical-scroll-bar-tp24455751p24527355.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dropdownchoice-missing-%28only-when-the-page-with-Tinymce-component%29-while-scrolling-the-vertical-scroll-bar-tp24455751p24527864.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

2009-07-16 Thread Anton Veretennikov
Thank you, Igor, for your suggestion.

I need full hiding of app name. Renaming still creates additional path
in url like http://sitename.com/AppName/

May be there exists other way or my URL Rewriting is not correct:


  ServerName www.sitename.com
  ServerAlias sitename.com
  ProxyPass / ajp://127.0.0.1:8009/AppName/
  ProxyPassReverse / ajp://127.0.0.1:8009/AppName/
  ProxyPassReverseCookieDomainlocalhost  sitename.com
  ProxyPassReverseCookiePath /AppName /
  RewriteEngine  on
  RewriteRule^/AppName/(.*)$  /$1  [R]


-- Tony

On Fri, Jul 17, 2009 at 12:15 AM, Igor Vaynberg wrote:
> just rename your war to something else before deploying it.
>
> -igor
>
> On Thu, Jul 16, 2009 at 8:25 AM, Anton
> Veretennikov wrote:
>> Hello, wicket users and developers,
>>
>> This is a problem I can't work out myself, I need your help.
>>
>> In a local environment (direct calls to Tomcat) AjaxFormSubmitBehavior
>> works as expected.
>> But in production I try to hide application name (let's say,
>> AppNamePay-1.0-SNAPSHOT) from URL using RewriteRule.
>>
>> Logs show that somehow application name bobs up when I create a link
>> with AjaxFormSubmitBehavior.
>> This can be seen from httpd logs (302 status):
>>
>> xx.22.151.6 - - [16/Jul/2009:14:14:30 +] "GET
>> /AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:5::: HTTP/1.1" 302 312
>> "http://sitename.com/?wicket:interface=:0:4:::"; "Mozilla/5.0 (Windows;
>> U; Windows NT 5.1; ru; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6"
>>
>> And from catched calls using HttpFox:
>>
>> GET     302     Redirect to:
>> http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::   
>> http://sitename.com
>> /?wicket:interface=:0:outterDiv:leftPanel:content:updatableDiv:hidableDiv:electronicUpdatable:list:0:item:border:switch:buttons2:acceptSum:2:ILinkListener::
>> (Status-Line)   HTTP/1.1 302 Moved Temporarily
>> GET     302     Redirect to:
>> http://sitename.com/?wicket:interface=:0:3:::   
>> http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
>> (Status-Line)   HTTP/1.1 302 Found
>>
>> How it could be that wicket knows about AppNamePay-1.0-SNAPSHOT?
>> Other Ajax stuff seems working without problem.
>>
>> Wicket is 1.4-rc7
>>
>> --Tony
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Dropdownchoice missing (only when the page with Tinymce component) while scrolling the vertical scroll bar

2009-07-16 Thread Dane Laverty
When you called us wicket poles, I had just assumed that you were referring
to the stumps that hold up the bails on a cricket wicket. However, I'm glad
to see that we're also pals and not just poles ;)

On Thu, Jul 16, 2009 at 6:42 PM, rolandpeng  wrote:

>
> hi wicket poles,
>
> Does anyone know who still works around the maintenance of the
> wicket-tinymce in wicketstuff?
> I'd like to pass my problem to the group.
>
> thank you.
>
> Roland.
>
>
> rolandpeng wrote:
> >
> > thanks for your teach,igor.
> >
> > I've find the way to build the quickstart with tinymce included.
> > The quickstart project is attached,and can be run with 'mvn jetty:run' .
> > the url: http://localhost:8080/quickstart
> >
> > my quickstart brief:
> > there are two webpages,one with ajaxlink and the other with non-ajaxlink.
> > You can find that when scrolling the vertical bar in the page with
> > ajaxlink.The dropdownchoice is dispeared(or blured).But non-ajaxlink page
> > won't.
> >
> > I don't know how to issue this problem in the right way,so I just post
> > this quickstart here.
> > I would be very obliged if Igor or someone can help to resolve this
> > problem.thank you.
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Dropdownchoice-missing-%28only-when-the-page-with-Tinymce-component%29-while-scrolling-the-vertical-scroll-bar-tp24455751p24527355.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Dropdownchoice missing (only when the page with Tinymce component) while scrolling the vertical scroll bar

2009-07-16 Thread rolandpeng

hi wicket poles,

Does anyone know who still works around the maintenance of the
wicket-tinymce in wicketstuff?
I'd like to pass my problem to the group.

thank you.

Roland.


rolandpeng wrote:
> 
> thanks for your teach,igor.
> 
> I've find the way to build the quickstart with tinymce included.
> The quickstart project is attached,and can be run with 'mvn jetty:run' .
> the url: http://localhost:8080/quickstart
> 
> my quickstart brief:
> there are two webpages,one with ajaxlink and the other with non-ajaxlink.
> You can find that when scrolling the vertical bar in the page with
> ajaxlink.The dropdownchoice is dispeared(or blured).But non-ajaxlink page
> won't.
> 
> I don't know how to issue this problem in the right way,so I just post
> this quickstart here.
> I would be very obliged if Igor or someone can help to resolve this
> problem.thank you.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dropdownchoice-missing-%28only-when-the-page-with-Tinymce-component%29-while-scrolling-the-vertical-scroll-bar-tp24455751p24527355.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to show/hide, enable/disable items in menu based on YUI menu2

2009-07-16 Thread Joshua Lim
Hi Petr, The table would be interesting, could you email it to me ? thanks
I'll take a look at the rest of the yuimenu when I reach that point. :)

Joshua

2009/7/17 Petr Fejfar 

> On Thu, Jul 16, 2009 at 4:25 PM, Joshua Lim wrote:
>
> > Did you check out yui as well? This marks disappears should be redrawn
> > in the new code.
>
> Yes. I tested it on revision 4808 from July 15.
>
>
> > What browser are you using though I 've only tested on FF.
>
> I see. While learning Wicket I use Google Chrome (because it shows
> source code using small fonts and offers live hrefs there). I've spent
> some time and retest all wicketstuff Yui examples with 4 browsers we
> tries to be compatible with. Please find out attached table - maybe it
> could be usefull for someone else as well.
>
>
> > btw, I am not the original author for the menu bar, so I have still to
> figure out that bits.
>
> Anyway, if you would be able to fix it, it would be great (at least
> for me), because even if I'm SW engineer with 30+ years experience,
> I'm a beginner in the Java, EE and Ajax field.
>
>
> Petr
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>


Re: Update separate current select panel from AjaxSelfUpdatingTimerBehavior of inmethod DataGrid

2009-07-16 Thread satar

Sorry, I should have explored deeper into the user list on this one. It was
basically already answered before in thread:
http://www.nabble.com/AjaxSelfUpdatingTimerBehavior-and-Panels-td24301204.html#a24301204

I simply changed the scope of my timer to be the whole page beings that is
all it has on it and this worked perfectly! Man I LOVE Wicket... I can do
very powerful things already and I am basically a newbie!
-- 
View this message in context: 
http://www.nabble.com/Update-separate-current-select-panel-from-AjaxSelfUpdatingTimerBehavior--of-inmethod-DataGrid-tp24526412p24526740.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Update separate current select panel from AjaxSelfUpdatingTimerBehavior of inmethod DataGrid

2009-07-16 Thread Steve Tarlton
Stumbling on this one: I am using an AjaxSelfUpdatingTimerBehavior added to
an inmethod DataGrid to have it update its datasource from a database every
15 seconds. This worked well but then I also want to update a corresponding
panel that contains data from the currently selected row of the DataGrid. I
feed to the DataGrid a data source that implements IDataSource so I can
provide my own sortIterator and have my data source pull from the database
automatically itself. Thing is, I want to update an external panel that
contains the currently selected row (I have it set to single select) if the
contents in the database changes. I figured one way to do that is to create
a getObject() method in my data source so that I can override it and get
each item being iterated over whenever the data source is refreshing and
compare it with the id of the one currently selected. This worked fine but
now I am not sure how to tell the panel to refresh itself from an Override
of the getObject() method of the extended IDataSource. Any suggestions?
Maybe I should be going about it differently and Overriding something within
the DataGrid and walking the data source from it? I know if I could do that,
the use of the AjaxRequestTarget.get() method works.

Thanks ahead of time for any help/hints on this one,
-Steve


Re: How to show/hide, enable/disable items in menu based on YUI menu2

2009-07-16 Thread Petr Fejfar
On Thu, Jul 16, 2009 at 4:25 PM, Joshua Lim wrote:

> Did you check out yui as well? This marks disappears should be redrawn
> in the new code.

Yes. I tested it on revision 4808 from July 15.


> What browser are you using though I 've only tested on FF.

I see. While learning Wicket I use Google Chrome (because it shows
source code using small fonts and offers live hrefs there). I've spent
some time and retest all wicketstuff Yui examples with 4 browsers we
tries to be compatible with. Please find out attached table - maybe it
could be usefull for someone else as well.


> btw, I am not the original author for the menu bar, so I have still to figure 
> out that bits.

Anyway, if you would be able to fix it, it would be great (at least
for me), because even if I'm SW engineer with 30+ years experience,
I'm a beginner in the Java, EE and Ajax field.


Petr


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

WicketStuff Developers - please read

2009-07-16 Thread Jeremy Thomerson
I'm trying to build wicketstuff-core 1.4-rc7 to match the Wicket
release.  I have spent hours tracking down pom issues where you
either:

1 - declared a specific version of Wicket to use.  Don't do this -
it's declared in the parent pom and it should always match Wicket's
trunk (or in this case a release that I'm building against).

2 - declared a specific version of your project (0.1-SNAPSHOT /
1.0-SNAPSHOT / etc).  Don't do this.  The projects in wicketstuff-core
will be versioned to match Wicket releases.  If you want to version
yours a different way - move it out of wicketstuff-core and version it
however you want to.

Thank you!!

--
Jeremy Thomerson
http://www.wickettraining.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Get Wicket Variable Inside Applet

2009-07-16 Thread Nicolas Melendez
remember, you can only do TCP/IP request to the server from the applet
came from, if you do to another IP, you will have problem
with the sandbox.
if you want to do the request to another IP, the applet should be
sing, and the user should accept a molest Dialog.

On Thu, Jul 16, 2009 at 8:03 PM, Joshua Martin wrote:
> Actually, it may not be necessary to pass the object...
>
> I'm creating an Applet that will enable remote desktop within my
> Wicket application (it's a new Systems Management application). The
> application uses JXTA for networking so that NAT and firewalls will be
> much less of a problem.
>
> Normally, you can't have two JXTA network managers, but I didn't
> realize that it won't matter since the Applet is separate from Wicket.
> I couldn't get JXTA to work - so I assumed it was because of two
> managers...
>
> Turns out, it was just an Applet security issue...
>
>
> On Thu, Jul 16, 2009 at 1:53 PM, Joshua Martin wrote:
>> Yeah, I know how to pass a String, but I need to somehow pass an object...
>>
>> add(new WebMarkupContainer("appletId").add(new
>>        SimpleAttributeModifier("value", "yourValue")));
>>
>>
>>
>> On Thu, Jul 16, 2009 at 1:50 PM, Nicolas
>> Melendez wrote:
>>> Remember the applet is in client-side, but wicket is server-side (
>>> except javascript(ajax inclusive) ).
>>> Comunication through HTTP is with Strings, so i think you can't access
>>> to a variable of wicket without parsing it.
>>> Applets can use a javascript function o connect thorugh http to the server.
>>> it can also have inicial values, but you can't change them futher.
>>> i hope i help, bye
>>> NM - Software Developer  - buenos aires - Argentina
>>>
>>> On Thu, Jul 16, 2009 at 7:39 PM, Joshua Martin wrote:
 Rephrase that... How can I access a "non-String" variable in the
 Wicket Application class from an Applet?



 On Thu, Jul 16, 2009 at 1:37 PM, Joshua Martin 
 wrote:
> How can I access a variable in the Wicket Application class from
> inside my Java Applet on a Wicket page?
>
> --
> _
>
> Joshua S. Martin
>



 --
 _

 Joshua S. Martin


 CONFIDENTIALITY NOTE: This e-mail message, including any
 attachment(s), contains information that may be confidential,
 protected by the attorney client or other legal privileges, and or
 proprietary non public information. If you are not an intended
 recipient of this message or an authorized assistant to an intended
 recipient, please notify the sender by replying to this message and
 then delete it from your system. Use, dissemination, distribution, or
 reproduction of this message and or any of its attachments (if any) by
 unintended recipients is not authorized and may be unlawful.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>>
>>
>> --
>> _
>>
>> Joshua S. Martin
>>
>>
>> CONFIDENTIALITY NOTE: This e-mail message, including any
>> attachment(s), contains information that may be confidential,
>> protected by the attorney client or other legal privileges, and or
>> proprietary non public information. If you are not an intended
>> recipient of this message or an authorized assistant to an intended
>> recipient, please notify the sender by replying to this message and
>> then delete it from your system. Use, dissemination, distribution, or
>> reproduction of this message and or any of its attachments (if any) by
>> unintended recipients is not authorized and may be unlawful.
>>
>
>
>
> --
> _
>
> Joshua S. Martin
>
>
> CONFIDENTIALITY NOTE: This e-mail message, including any
> attachment(s), contains information that may be confidential,
> protected by the attorney client or other legal privileges, and or
> proprietary non public information. If you are not an intended
> recipient of this message or an authorized assistant to an intended
> recipient, please notify the sender by replying to this message and
> then delete it from your system. Use, dissemination, distribution, or
> reproduction of this message and or any of its attachments (if any) by
> unintended recipients is not authorized and may be unlawful.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubs

Re: Get Wicket Variable Inside Applet

2009-07-16 Thread Joshua Martin
Actually, it may not be necessary to pass the object...

I'm creating an Applet that will enable remote desktop within my
Wicket application (it's a new Systems Management application). The
application uses JXTA for networking so that NAT and firewalls will be
much less of a problem.

Normally, you can't have two JXTA network managers, but I didn't
realize that it won't matter since the Applet is separate from Wicket.
I couldn't get JXTA to work - so I assumed it was because of two
managers...

Turns out, it was just an Applet security issue...


On Thu, Jul 16, 2009 at 1:53 PM, Joshua Martin wrote:
> Yeah, I know how to pass a String, but I need to somehow pass an object...
>
> add(new WebMarkupContainer("appletId").add(new
>        SimpleAttributeModifier("value", "yourValue")));
>
>
>
> On Thu, Jul 16, 2009 at 1:50 PM, Nicolas
> Melendez wrote:
>> Remember the applet is in client-side, but wicket is server-side (
>> except javascript(ajax inclusive) ).
>> Comunication through HTTP is with Strings, so i think you can't access
>> to a variable of wicket without parsing it.
>> Applets can use a javascript function o connect thorugh http to the server.
>> it can also have inicial values, but you can't change them futher.
>> i hope i help, bye
>> NM - Software Developer  - buenos aires - Argentina
>>
>> On Thu, Jul 16, 2009 at 7:39 PM, Joshua Martin wrote:
>>> Rephrase that... How can I access a "non-String" variable in the
>>> Wicket Application class from an Applet?
>>>
>>>
>>>
>>> On Thu, Jul 16, 2009 at 1:37 PM, Joshua Martin wrote:
 How can I access a variable in the Wicket Application class from
 inside my Java Applet on a Wicket page?

 --
 _

 Joshua S. Martin

>>>
>>>
>>>
>>> --
>>> _
>>>
>>> Joshua S. Martin
>>>
>>>
>>> CONFIDENTIALITY NOTE: This e-mail message, including any
>>> attachment(s), contains information that may be confidential,
>>> protected by the attorney client or other legal privileges, and or
>>> proprietary non public information. If you are not an intended
>>> recipient of this message or an authorized assistant to an intended
>>> recipient, please notify the sender by replying to this message and
>>> then delete it from your system. Use, dissemination, distribution, or
>>> reproduction of this message and or any of its attachments (if any) by
>>> unintended recipients is not authorized and may be unlawful.
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
>
> --
> _
>
> Joshua S. Martin
>
>
> CONFIDENTIALITY NOTE: This e-mail message, including any
> attachment(s), contains information that may be confidential,
> protected by the attorney client or other legal privileges, and or
> proprietary non public information. If you are not an intended
> recipient of this message or an authorized assistant to an intended
> recipient, please notify the sender by replying to this message and
> then delete it from your system. Use, dissemination, distribution, or
> reproduction of this message and or any of its attachments (if any) by
> unintended recipients is not authorized and may be unlawful.
>



-- 
_

Joshua S. Martin


CONFIDENTIALITY NOTE: This e-mail message, including any
attachment(s), contains information that may be confidential,
protected by the attorney client or other legal privileges, and or
proprietary non public information. If you are not an intended
recipient of this message or an authorized assistant to an intended
recipient, please notify the sender by replying to this message and
then delete it from your system. Use, dissemination, distribution, or
reproduction of this message and or any of its attachments (if any) by
unintended recipients is not authorized and may be unlawful.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Get Wicket Variable Inside Applet

2009-07-16 Thread Igor Vaynberg
then you have to marshall the object.

you can either use something like xstream or simple to create an xml
representation and send that over. or, more directly, you can
serialize the object using java's serialization, base64 encode it, and
pass that.

-igor

On Thu, Jul 16, 2009 at 10:53 AM, Joshua Martin wrote:
> Yeah, I know how to pass a String, but I need to somehow pass an object...
>
> add(new WebMarkupContainer("appletId").add(new
>        SimpleAttributeModifier("value", "yourValue")));
>
>
>
> On Thu, Jul 16, 2009 at 1:50 PM, Nicolas
> Melendez wrote:
>> Remember the applet is in client-side, but wicket is server-side (
>> except javascript(ajax inclusive) ).
>> Comunication through HTTP is with Strings, so i think you can't access
>> to a variable of wicket without parsing it.
>> Applets can use a javascript function o connect thorugh http to the server.
>> it can also have inicial values, but you can't change them futher.
>> i hope i help, bye
>> NM - Software Developer  - buenos aires - Argentina
>>
>> On Thu, Jul 16, 2009 at 7:39 PM, Joshua Martin wrote:
>>> Rephrase that... How can I access a "non-String" variable in the
>>> Wicket Application class from an Applet?
>>>
>>>
>>>
>>> On Thu, Jul 16, 2009 at 1:37 PM, Joshua Martin wrote:
 How can I access a variable in the Wicket Application class from
 inside my Java Applet on a Wicket page?

 --
 _

 Joshua S. Martin

>>>
>>>
>>>
>>> --
>>> _
>>>
>>> Joshua S. Martin
>>>
>>>
>>> CONFIDENTIALITY NOTE: This e-mail message, including any
>>> attachment(s), contains information that may be confidential,
>>> protected by the attorney client or other legal privileges, and or
>>> proprietary non public information. If you are not an intended
>>> recipient of this message or an authorized assistant to an intended
>>> recipient, please notify the sender by replying to this message and
>>> then delete it from your system. Use, dissemination, distribution, or
>>> reproduction of this message and or any of its attachments (if any) by
>>> unintended recipients is not authorized and may be unlawful.
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
>
> --
> _
>
> Joshua S. Martin
>
>
> CONFIDENTIALITY NOTE: This e-mail message, including any
> attachment(s), contains information that may be confidential,
> protected by the attorney client or other legal privileges, and or
> proprietary non public information. If you are not an intended
> recipient of this message or an authorized assistant to an intended
> recipient, please notify the sender by replying to this message and
> then delete it from your system. Use, dissemination, distribution, or
> reproduction of this message and or any of its attachments (if any) by
> unintended recipients is not authorized and may be unlawful.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Get Wicket Variable Inside Applet

2009-07-16 Thread Joshua Martin
Yeah, I know how to pass a String, but I need to somehow pass an object...

add(new WebMarkupContainer("appletId").add(new
SimpleAttributeModifier("value", "yourValue")));



On Thu, Jul 16, 2009 at 1:50 PM, Nicolas
Melendez wrote:
> Remember the applet is in client-side, but wicket is server-side (
> except javascript(ajax inclusive) ).
> Comunication through HTTP is with Strings, so i think you can't access
> to a variable of wicket without parsing it.
> Applets can use a javascript function o connect thorugh http to the server.
> it can also have inicial values, but you can't change them futher.
> i hope i help, bye
> NM - Software Developer  - buenos aires - Argentina
>
> On Thu, Jul 16, 2009 at 7:39 PM, Joshua Martin wrote:
>> Rephrase that... How can I access a "non-String" variable in the
>> Wicket Application class from an Applet?
>>
>>
>>
>> On Thu, Jul 16, 2009 at 1:37 PM, Joshua Martin wrote:
>>> How can I access a variable in the Wicket Application class from
>>> inside my Java Applet on a Wicket page?
>>>
>>> --
>>> _
>>>
>>> Joshua S. Martin
>>>
>>
>>
>>
>> --
>> _
>>
>> Joshua S. Martin
>>
>>
>> CONFIDENTIALITY NOTE: This e-mail message, including any
>> attachment(s), contains information that may be confidential,
>> protected by the attorney client or other legal privileges, and or
>> proprietary non public information. If you are not an intended
>> recipient of this message or an authorized assistant to an intended
>> recipient, please notify the sender by replying to this message and
>> then delete it from your system. Use, dissemination, distribution, or
>> reproduction of this message and or any of its attachments (if any) by
>> unintended recipients is not authorized and may be unlawful.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
_

Joshua S. Martin


CONFIDENTIALITY NOTE: This e-mail message, including any
attachment(s), contains information that may be confidential,
protected by the attorney client or other legal privileges, and or
proprietary non public information. If you are not an intended
recipient of this message or an authorized assistant to an intended
recipient, please notify the sender by replying to this message and
then delete it from your system. Use, dissemination, distribution, or
reproduction of this message and or any of its attachments (if any) by
unintended recipients is not authorized and may be unlawful.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Get Wicket Variable Inside Applet

2009-07-16 Thread Nicolas Melendez
Remember the applet is in client-side, but wicket is server-side (
except javascript(ajax inclusive) ).
Comunication through HTTP is with Strings, so i think you can't access
to a variable of wicket without parsing it.
Applets can use a javascript function o connect thorugh http to the server.
it can also have inicial values, but you can't change them futher.
i hope i help, bye
NM - Software Developer  - buenos aires - Argentina

On Thu, Jul 16, 2009 at 7:39 PM, Joshua Martin wrote:
> Rephrase that... How can I access a "non-String" variable in the
> Wicket Application class from an Applet?
>
>
>
> On Thu, Jul 16, 2009 at 1:37 PM, Joshua Martin wrote:
>> How can I access a variable in the Wicket Application class from
>> inside my Java Applet on a Wicket page?
>>
>> --
>> _
>>
>> Joshua S. Martin
>>
>
>
>
> --
> _
>
> Joshua S. Martin
>
>
> CONFIDENTIALITY NOTE: This e-mail message, including any
> attachment(s), contains information that may be confidential,
> protected by the attorney client or other legal privileges, and or
> proprietary non public information. If you are not an intended
> recipient of this message or an authorized assistant to an intended
> recipient, please notify the sender by replying to this message and
> then delete it from your system. Use, dissemination, distribution, or
> reproduction of this message and or any of its attachments (if any) by
> unintended recipients is not authorized and may be unlawful.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Get Wicket Variable Inside Applet

2009-07-16 Thread Igor Vaynberg
you have to wire it as a param tag to the applet

-igor

On Thu, Jul 16, 2009 at 10:39 AM, Joshua Martin wrote:
> Rephrase that... How can I access a "non-String" variable in the
> Wicket Application class from an Applet?
>
>
>
> On Thu, Jul 16, 2009 at 1:37 PM, Joshua Martin wrote:
>> How can I access a variable in the Wicket Application class from
>> inside my Java Applet on a Wicket page?
>>
>> --
>> _
>>
>> Joshua S. Martin
>>
>
>
>
> --
> _
>
> Joshua S. Martin
>
>
> CONFIDENTIALITY NOTE: This e-mail message, including any
> attachment(s), contains information that may be confidential,
> protected by the attorney client or other legal privileges, and or
> proprietary non public information. If you are not an intended
> recipient of this message or an authorized assistant to an intended
> recipient, please notify the sender by replying to this message and
> then delete it from your system. Use, dissemination, distribution, or
> reproduction of this message and or any of its attachments (if any) by
> unintended recipients is not authorized and may be unlawful.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Get Wicket Variable Inside Applet

2009-07-16 Thread Joshua Martin
Rephrase that... How can I access a "non-String" variable in the
Wicket Application class from an Applet?



On Thu, Jul 16, 2009 at 1:37 PM, Joshua Martin wrote:
> How can I access a variable in the Wicket Application class from
> inside my Java Applet on a Wicket page?
>
> --
> _
>
> Joshua S. Martin
>



-- 
_

Joshua S. Martin


CONFIDENTIALITY NOTE: This e-mail message, including any
attachment(s), contains information that may be confidential,
protected by the attorney client or other legal privileges, and or
proprietary non public information. If you are not an intended
recipient of this message or an authorized assistant to an intended
recipient, please notify the sender by replying to this message and
then delete it from your system. Use, dissemination, distribution, or
reproduction of this message and or any of its attachments (if any) by
unintended recipients is not authorized and may be unlawful.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Get Wicket Variable Inside Applet

2009-07-16 Thread Joshua Martin
How can I access a variable in the Wicket Application class from
inside my Java Applet on a Wicket page?

-- 
_

Joshua S. Martin

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

2009-07-16 Thread Igor Vaynberg
just rename your war to something else before deploying it.

-igor

On Thu, Jul 16, 2009 at 8:25 AM, Anton
Veretennikov wrote:
> Hello, wicket users and developers,
>
> This is a problem I can't work out myself, I need your help.
>
> In a local environment (direct calls to Tomcat) AjaxFormSubmitBehavior
> works as expected.
> But in production I try to hide application name (let's say,
> AppNamePay-1.0-SNAPSHOT) from URL using RewriteRule.
>
> Logs show that somehow application name bobs up when I create a link
> with AjaxFormSubmitBehavior.
> This can be seen from httpd logs (302 status):
>
> xx.22.151.6 - - [16/Jul/2009:14:14:30 +] "GET
> /AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:5::: HTTP/1.1" 302 312
> "http://sitename.com/?wicket:interface=:0:4:::"; "Mozilla/5.0 (Windows;
> U; Windows NT 5.1; ru; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6"
>
> And from catched calls using HttpFox:
>
> GET     302     Redirect to:
> http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::   
> http://sitename.com
> /?wicket:interface=:0:outterDiv:leftPanel:content:updatableDiv:hidableDiv:electronicUpdatable:list:0:item:border:switch:buttons2:acceptSum:2:ILinkListener::
> (Status-Line)   HTTP/1.1 302 Moved Temporarily
> GET     302     Redirect to:
> http://sitename.com/?wicket:interface=:0:3:::   
> http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
> (Status-Line)   HTTP/1.1 302 Found
>
> How it could be that wicket knows about AppNamePay-1.0-SNAPSHOT?
> Other Ajax stuff seems working without problem.
>
> Wicket is 1.4-rc7
>
> --Tony
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Radio and Radio Group problems

2009-07-16 Thread Igor Vaynberg
where is your Form in your example?

-igor

On Thu, Jul 16, 2009 at 7:04 AM, Trojahn,
Cassia wrote:
> Trojahn, Cassia wrote:
>>
>> Always the last of the list is the selected.
>> I had tried also this proposal .. and it does not work.
>>
>> Michael O'Cleirigh wrote:
>>>
>>> Hello,
>>>
>>> I don't think you need to track the selected (true/false) state your
>>> self.  Let the radio group model do it automatically for you like:
>>>
>>> listLanguages.add(new NameWrapper("English", "en", "");
>>> listLanguages.add(new NameWrapper("German", "de", ""));
>>> listLanguages.add(new NameWrapper("French", "fr", ""));
>>> listLanguages.add(new NameWrapper("Italian", "it", "");
>>> listLanguages.add(new NameWrapper("Polish", "pl", "");
>>>
>>> // set the selected radio to be the first in the list 'English'
>>> final RadioGroup groupQuery = new RadioGroup("groupLanguagesQuery", new
>>> Model(listLanguages.get(0)));
>>> listLanguagesQuery = new ListView("listLanguagesQuery",listLanguages) {
>>>           protected void populateItem(ListItem item) {
>>>                String lang =
>>> ((NameWrapper)item.getModelObject()).getName();
>>>               item.add(new Label("nameLanguageQuery", new
>>> StringResourceModel(lang, this, null,"")));
>>>               item.add(new Radio("checkLanguageQuery",
>>> item.getModel(),groupQuery));
>>>           }
>>>       };
>>>
>>> groupQuery.add(listLanguagesQuery);
>>>
>>> Now the model object value of the RadioGroup 'groupQuery' will have the
>>> NameWrapper for the selected choice.  A NameWrapper instance is selected if
>>> it is returned by groupQuery.getModelObject();
>>>
>>> Regards,
>>>
>>> Mike

 I had tried this option and it does not work.

 Michael Mosmann wrote:
>
> Hi,
>
> .. i am not sure. The model of RadioGroup should contain, wich item is
> selected. The model of Radio should reflect the associated value. So if
> model of RadioGroup contains "fr" and Property "selected" of item nr. 3
> is "fr" this Radio is selected.
>
> maybe this will help..
> mm:)
>
>
>>
>> I have a problem when using the Radio component.
>> Using a list of languages, where each item is a NameWrapper object
>> with a property "selected". The property "selected" is associated to the
>> radio component.
>> However, when presenting to the user the corresponding list of radios,
>> the language Polish is true, and not English (it should be the selected
>> option).
>>
>>  listLanguages.add(new NameWrapper("English", "en", "", true));
>>  listLanguages.add(new NameWrapper("German", "de", "", false));
>>  listLanguages.add(new NameWrapper("French", "fr", "", false));
>>  listLanguages.add(new NameWrapper("Italian", "it", "", false));
>>  listLanguages.add(new NameWrapper("Polish", "pl", "", false));
>>
>>  final RadioGroup groupQuery = new RadioGroup("groupLanguagesQuery",
>> new Model());
>>  listLanguagesQuery = new ListView("listLanguagesQuery",listLanguages)
>> {
>>            protected void populateItem(ListItem item) {
>>                 String lang =
>> ((NameWrapper)item.getModelObject()).getName();
>>                item.add(new Label("nameLanguageQuery", new
>> StringResourceModel(lang, this, null,"")));
>>                item.add(new Radio("checkLanguageQuery", new
>> PropertyModel(item.getModel(), "selected"),groupQuery));
>>            }
>>        };
>> groupQuery.add(listLanguagesQuery);
>>
>> Any ideas? I really need to solve this issue.
>>
>> Thank you so much.
>>
>
>

>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
> I send the code of the application.
> if someone can help me 
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AutoCompleteTextField with initial focus not working

2009-07-16 Thread Igor Vaynberg
how are you setting the initial focus?

-igor

On Thu, Jul 16, 2009 at 6:45 AM, Marieke
Vandamme wrote:
> Hello,
>
> I have AutoCompleteTextField which has the focus when my page is loaded.
> When I just start typing (because the field has initial focus), then no
> list is shown.
> If I leave the field and then click in it again (loosing focus and then
> gaining it again), the list is shown.
>
> Can somebody help me with this or is it a bug?
> Many thanks in advance! Marieke.
>  DISCLAIMER 
> http://www.tvh.be/newen/pages/emaildisclaimer.html";>
> http://www.tvh.be/newen/pages/emaildisclaimer.html 
>
> "This message is delivered to all addressees subject to the conditions
> set forth in the attached disclaimer, which is an integral part of this
> message."
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: YUI integration (and is BSD License compatible with Apache license)?

2009-07-16 Thread Jeremy Thomerson
> there is a yui-project at wicketstuff, but hardly to find, which repository
> path is the right one for trunk...

>
> oh myabe it is this:
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/yui-parent/
> am I right?

Um, yeah - trunk is the one with "trunk" in the path.

> So my second question:
> Why not integrate YUI library completely into Wicket 1.4 (or following
> version) as dynamic widgets?
> I think BSD license would allow this to be used in an Apache licensed
> product (what wicket is)...
>

Wicket has typically not developed rich components because there are
so many different preferences.  So, leave these as extensions
projects.  Focus on doing what we do well - make a great framework
that facilitates the easy creation of rich plugin components.

--
Jeremy Thomerson
http://www.wickettraining.com




On Thu, Jul 16, 2009 at 10:58 AM, Ralf
Eichinger wrote:

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: YUI integration (and is BSD License compatible with Apache license)?

2009-07-16 Thread Igor Vaynberg
you like yui, but other people like jquery, yet others like ext, and
so on and so forth. so we would rather make it easy to integrate with
all of these in the core and let others create actual implementations.

-igor

On Thu, Jul 16, 2009 at 8:58 AM, Ralf
Eichinger wrote:
> as I am looking for good wicket widgets I found the datatable and layouting
> widgets from YUI very pleasant.
> look this:
> http://developer.yahoo.com/yui/examples/layout/adv_layout_source.html !!!
>
> there is a yui-project at wicketstuff, but hardly to find, which repository
> path is the right one for trunk...
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/plbogen-yui-testing/?
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-contrib-yui/?
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-contrib-yui-1.3.5/?
>
> oh myabe it is this:
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/yui-parent/
> am I right?
>
> So my second question:
> Why not integrate YUI library completely into Wicket 1.4 (or following
> version) as dynamic widgets?
> I think BSD license would allow this to be used in an Apache licensed
> product (what wicket is)...
>
> Wicket needs really those widgets/layouting etc. to compete with JSF or the
> other bad guys!
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



YUI integration (and is BSD License compatible with Apache license)?

2009-07-16 Thread Ralf Eichinger
as I am looking for good wicket widgets I found the datatable and layouting
widgets from YUI very pleasant.
look this:
http://developer.yahoo.com/yui/examples/layout/adv_layout_source.html !!!

there is a yui-project at wicketstuff, but hardly to find, which repository
path is the right one for trunk...
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/plbogen-yui-testing/?
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-contrib-yui/?
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-contrib-yui-1.3.5/?

oh myabe it is this:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/yui-parent/
am I right?

So my second question:
Why not integrate YUI library completely into Wicket 1.4 (or following
version) as dynamic widgets?
I think BSD license would allow this to be used in an Apache licensed
product (what wicket is)...

Wicket needs really those widgets/layouting etc. to compete with JSF or the
other bad guys!


Re: problem with Wizard wizard = (Wizard) ctor.newInstance(new String[]{"wizard"})

2009-07-16 Thread Steve Olara
Hello All,
 
Sorry sent before finishing the mail
 
I am having a problem with wizard.
 
I managed to run the orignal examples, I need to customise it a little and make 
the Wizard step class accept a object as a second aurgment of its constructor.
 
The problem am having is how to call it using 
 
Wizard wizard = (Wizard) ctor.newInstance(new String[]{"wizard"}). 
 
Below is what I have done so far
 
Constructor ctor = AnswerWizard.class.getConstructor(new Class[]{String.class, 
Question.class});
Wizard wizard = (Wizard) ctor.newInstance(new String[]{"wizard"}, qn);//qn is a 
object of type question
border.add(wizard);
 
In the Markup I use 
 

 Wizard will be placed here 

 
This does not render the page.
 
I get an error saying wizard was declared in markup but not on page.
 
Can someone see were am going wrong
 
Stephen

--- On Thu, 16/7/09, Steve Olara  wrote:


From: Steve Olara 
Subject: Re: problem with Wizard wizard = (Wizard) ctor.newInstance(new 
String[]{"wizard"})
To: users@wicket.apache.org
Date: Thursday, 16 July, 2009, 6:50 PM







Hello All,
 
I am having a problem with wizard.
 
I managed to run the orignal examples, I need to customise it a little and make 
the Wizard step class accept a object as a second aurgment of its constructor.
 
The problem am having is how to call it using 
 
Wizard wizard = (Wizard) ctor.newInstance(new String[]{"wizard"}). 
 
Below is what I have done so far
 
Constructor ctor = AnswerWizard.class.getConstructor(new Class[]{String.class, 
Question.class});
Wizard wizard = (Wizard) ctor.newInstance(new String[]{"wizard"});
border.add(wizard);
 
In the Markup I use 
 

 Wizard will be placed here



  

Re: problem with Wizard wizard = (Wizard) ctor.newInstance(new String[]{"wizard"})

2009-07-16 Thread Steve Olara
Hello All,
 
I am having a problem with wizard.
 
I managed to run the orignal examples, I need to customise it a little and make 
the Wizard step class accept a object as a second aurgment of its constructor.
 
The problem am having is how to call it using 
 
Wizard wizard = (Wizard) ctor.newInstance(new String[]{"wizard"}). 
 
Below is what I have done so far
 
Constructor ctor = AnswerWizard.class.getConstructor(new Class[]{String.class, 
Question.class});
Wizard wizard = (Wizard) ctor.newInstance(new String[]{"wizard"});
border.add(wizard);
 
In the Markup I use 
 

 Wizard will be placed here


  

Re: [Announce] wicketstuff-push ported to use wicket 1.4 jetty 6.1.14

2009-07-16 Thread Rodolfo Hansen
No, not yet. I haven't had a chance to write it, nor test it out.

Check bellow in the thread for some guidance, and if you want write me
directly at

kryptt at gmail.com

to see if we can start a patch with it.


On Thu, Jul 16, 2009 at 5:06 AM, freak182  wrote:

>
> Hello,
>
> Is there a patch/servlet to run cometd in glassfish? because im having
> trouble to run push-examples on glassfish as it will be used in production.
>
> Thanks a lot.
> Cheers.
>
>
> Rodolfo Hansen wrote:
> >
> > On Mon, Apr 20, 2009 at 6:26 AM, pmarrone 
> wrote:
> >
> >>
> >> Hi Rodolfo,
> >> I'm trying to deploy the wicketstuff-push example on a Glassfish server
> >> V3,
> >> but without success.
> >> Can you give some information about how to use your wicketstuff-push
> >> implementation outside Jetty?
> >
> >
> > For Glassfish there are a couple of configurations you need to set in the
> > glassfish domain.
> >
> > Also, you might have to write your own servlet, as in this post:
> >
> >
> http://weblogs.java.net/blog/jfarcand/archive/2006/10/writting_a_come.html
> >
> >
> >> I know that Glassfish has support for cometd, so it should be possible.
> >> I propose to insert in the example package this kind of information,
> >> because
> >> jetty is not normally adopted in real production environments.
> >
> >
> > Yes, if you can, can you write the Glassfish Servlet for cometd
> > integration
> > and post it as a patch, or send it to me directly?
> >
> > rhan...@kindleit.net
> >
> >
> >
> >>
> >> Thank you very much for your kind response.
> >> Regards
> >> Paolo
> >>
> >>
> >>
> >> Rodolfo Hansen-2 wrote:
> >> >
> >> > Hi, a new version of wicketstuff-push was moved to the
> wicketstuff-core
> >> > group of projects, as push-parent (as was specified in the wiki)
> >> >
> >> > A couple of new things were done:
> >> >
> >> > It is no longer compatible with java 1.4, is built for wicket 1.4 and
> >> > requires jetty 6.1.14.
> >> > The dependencies on dojo have been reduced even further, so this
> >> package
> >> > is
> >> > basically just a cometd client/server project for wicket.
> >> > The RemoveListener is now working and is extended with a new type of
> >> > WicketRemoveListener that allows access to the Wicket Application
> >> > Singleton
> >> > and the session that registered the singleton (i thought of a couple
> of
> >> > ways
> >> > to register them, and decided to choose the one present in the code
> for
> >> > it)
> >> >
> >> > Please let me know of any suggestions, ideas for the proj.
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/-Announce--wicketstuff-push-ported-to-use-wicket-1.4-jetty-6.1.14-tp20914051p23134109.html
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
> >
> > --
> > Rodolfo Hansen
> > CEO, KindleIT Software Development
> > Email: rhan...@kindleit.net
> > Office: 1 (809) 732-5200
> > Mobile: 1 (809) 299-7332
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/-Announce--wicketstuff-push-ported-to-use-wicket-1.4-jetty-6.1.14-tp20914051p24512870.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Rodolfo Hansen
CTO, KindleIT Software Development
Email: rhan...@kindleit.net
Office: 1 (809) 732-5200
Mobile: 1 (809) 299-7332


Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

2009-07-16 Thread Anton Veretennikov
Hello, wicket users and developers,

This is a problem I can't work out myself, I need your help.

In a local environment (direct calls to Tomcat) AjaxFormSubmitBehavior
works as expected.
But in production I try to hide application name (let's say,
AppNamePay-1.0-SNAPSHOT) from URL using RewriteRule.

Logs show that somehow application name bobs up when I create a link
with AjaxFormSubmitBehavior.
This can be seen from httpd logs (302 status):

xx.22.151.6 - - [16/Jul/2009:14:14:30 +] "GET
/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:5::: HTTP/1.1" 302 312
"http://sitename.com/?wicket:interface=:0:4:::"; "Mozilla/5.0 (Windows;
U; Windows NT 5.1; ru; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6"

And from catched calls using HttpFox:

GET 302 Redirect to:
http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::   
http://sitename.com
/?wicket:interface=:0:outterDiv:leftPanel:content:updatableDiv:hidableDiv:electronicUpdatable:list:0:item:border:switch:buttons2:acceptSum:2:ILinkListener::
(Status-Line)   HTTP/1.1 302 Moved Temporarily
GET 302 Redirect to:
http://sitename.com/?wicket:interface=:0:3:::   
http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
(Status-Line)   HTTP/1.1 302 Found

How it could be that wicket knows about AppNamePay-1.0-SNAPSHOT?
Other Ajax stuff seems working without problem.

Wicket is 1.4-rc7

--Tony

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to throw new PageExpiredException?

2009-07-16 Thread Igor Vaynberg
throw new 
RestartResponseException(getApplication().getSettings().getPageExpiredErrorPage());

-igor

On Thu, Jul 16, 2009 at 1:54 AM, Ann Baert wrote:
>
> That's not how I want it.
> I have a custom PageExpiredErrorPage (and AccessDenied...), so he has to
> take those automaticly.
> getApplicationSettings().setPageExpiredErrorPage(CustomPageExpiredErrorPage.class);
> With your solution I have to repeat them everywhere, like I do now with
> setResponsePage().
>
>
>
> Serkan Camurcuoglu-3 wrote:
>>
>> If all you want is to display a page expired page, maybe you could just
>> use
>>
>> throw new RestartResponseException(PageExpiredErrorPage.class);
>>
>> in your page constructor.
>>
>>
>>
>> Ann Baert wrote:
>>> Can anyone help me with this problem please?
>>> Thanks in advance, Ann.
>>>
>>>
>>>
>>> Ann Baert wrote:
>>>
 I have overridden the RequestCycle.onRuntimeException method:

 @Override
 public RequestCycle newRequestCycle(final Request request, final
 Response
 response) {
     return new WebRequestCycle(this, (WebRequest) request, (WebResponse)
 response) {

         @Override
         public Page onRuntimeException(Page page, RuntimeException e) {
             Throwable t = e.getCause();
             while(t != null) {
                 if(t instanceof PageExpiredException) {
                     return super.onRuntimeException(page, new
 PageExpiredException("test"));
                 }

                 t = t.getCause();
             }
             return super.onRuntimeException(page, e);
         }
     };
 }

 He comes in the if(t instanceof PageExpiredException)..., but in the
 AbstractRequestCycleProcessor.respond(RuntimeException e, RequestCycle
 requestCycle) method he doesn't do anything with the RuntimeException.
 So
 he has still a WicketRuntimeException instead of the
 PageExpiredException.

 Ann




 igor.vaynberg wrote:

> you can try unwrapping the exceptions in
> requestcycle.onruntimeexception and call super with the page exipred
> exception.
>
> -igor
>
> On Fri, Jul 10, 2009 at 3:00 AM, Ann Baert wrote:
>
>> Hello,
>>
>> How can I throw a PageExpiredException in the constructor of my
>> WebPage?
>> Because the exception is wrapped by Wicket with WicketRuntimeException
>> it
>> goes to the InternalErrorPage.
>>
>> Thanks,
>> Ann
>>  DISCLAIMER 
>>  http://www.tvh.be/newen/pages/emaildisclaimer.html
>> http://www.tvh.be/newen/pages/emaildisclaimer.html
>>
>> "This message is delivered to all addressees subject to the conditions
>> set forth in the attached disclaimer, which is an integral part of
>> this
>> message."
>>
>>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
>
>

>>>
>>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/How-to-throw-new-PageExpiredException--tp24424791p24512739.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Help - Mounting a dynamic generated image

2009-07-16 Thread Igor Vaynberg
i believe there is a pickwick project somewhere in wicketstuff svn
that is an image gallery. you can have a look there for inspiration.

-igor

On Thu, Jul 16, 2009 at 2:55 AM, Hbiloo wrote:
> Ooh, I forgot to say that I'm using these images to be displayed in a
> lightbox. This lightbox expects an image URL in it's href i.e
> "images/myImage.png".
> Someone already has the same issue?
>
> Kind Regards,
>
> Hbiloo
>
>
> On Thu, Jul 16, 2009 at 12:29 AM, Hbiloo  wrote:
>
>> Hi everybody,
>>
>> I've a list of thumbnail images that are dynamically generated from a byte
>> [] retrieved from the database. Each thumbnail links to the big image
>> variant of it.
>> My code:
>>
>> ...
>>
>> @Override
>>
>> protected void populateItem(final ListItem item) {
>>
>>     final int index = item.getIndex();
>>
>>         final MyImage mImage = item.getModelObject();
>>
>>         ResourceLink myImageLink = 
>> newResourceLink(
>> "myImageLink",
>>
>>                 new ByteaImageResource(myImage.getImage()));
>>
>>             myImageLink.add(new FancyBoxBehavior());
>>
>>             myImageLink.add(new ContextImage("ribbonImage", newModel(
>> RIBBON_IMAGE)).setVisible(myImage.isMain()));
>>
>>             myImageLink.add(new Image("myImage", 
>> newByteaImageResource(myImage.getImage(;
>>
>>     item.add(myImageLink);
>>
>>     }
>>
>> ...
>>
>>
>> public class ByteaImageResource extends DynamicImageResource {
>>
>>     private byte[] imageData;
>>
>>
>>     public ByteaImageResource(byte[] imageData) {
>>
>>         this.imageData = imageData;
>>
>>         super.setLastModifiedTime(Time.now());
>>
>>     }
>>
>>
>>     @Override
>>
>>     protected byte[] getImageData() {
>>
>>         return imageData;
>>
>>     }
>>
>> }
>>
>>
>> This is how I would like the HTML to be generated:
>> ...
>> 
>>
>>     > wicket:id="myImage"/>
>> 
>> 
>>
>>     > wicket:id="myImage"/>
>> 
>> ...
>>
>> How can I get these images as a mounted images and not as link such as:
>> http://localhost:8080/myApp/?wicket:interface=:0:sidebarPanels:1:sidebarPanel:contentContainer:myImages:1:myImageLink::IResourceListener
>> ::
>>
>> Kind Regards,
>>
>> Hbiloo
>>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: FileUploads - keep them around for multiple requests...

2009-07-16 Thread Igor Vaynberg
i dont think there is a better way. i think storing the files in some
tmp location is your best bet.

-igor

On Wed, Jul 15, 2009 at 11:01 PM, Ned Collyer wrote:
> I'm building a wizard.  It has 3 steps.  Persistence occurs for all my
> models after the completion of the 3rd step.
>
> Each step has a number of forms.  Each form is brought in dynamically
> from 3rd party jars.
>
> This works great so far.  The exception to the rule is FileUploads -
> as these are only available for the initial submission.
>
> What would be the best way to maintain a handle on the file so that I
> can read the bytes in step 3.
>
> I am wary of the fileupload field being IClusterable, and of the bytes
> themselves being transient.
>
> Also, I do not have access to any functionality in the dynamic forms.
> They are purely used for updating a model object .
>
>
> Thoughts:
> In the outer form when it is submitted, visit each form for "enabled"
> fileuploads and write tmp files out.  I do not want them floating
> around in memory.
> Find the inner forms modelobject, and update it with a reference to
> the file created.
>
> Is there a better way?
>
> Rgds
>
> Ned
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to Hidden/Disabled Wicket tree with implementation wicket security

2009-07-16 Thread Warren Bell

Try this:

Warren

public class SecureWebMarkupContainer extends WebMarkupContainer implements 
ISecureComponent {

   public SecureWebMarkupContainer(String id)
   {
super(id);

   setSecurityCheck(new ComponentSecurityCheck(this));
   }
  
   public SecureWebMarkupContainer(String id, IModel model)

   {
   super(id, model);
   setSecurityCheck(new ComponentSecurityCheck(this));
   }
  
   public final void setSecurityCheck(ISecurityCheck check)

   {
   SecureComponentHelper.setSecurityCheck(this, check);
   }

   public final ISecurityCheck getSecurityCheck()
   {
   return SecureComponentHelper.getSecurityCheck(this);
   }

   public boolean isActionAuthorized(String action)
   {
   return SecureComponentHelper.isActionAuthorized(this, action);
   }

   public boolean isActionAuthorized(WaspAction action)
   {
   return SecureComponentHelper.isActionAuthorized(this, action);
   }

   public boolean isAuthenticated()
   {
   return SecureComponentHelper.isAuthenticated(this);
   }
  
   public boolean isAuthenticatedAndAuthorized(String action)

   {
   return isAuthenticated() && isActionAuthorized(action);
   }

{


Rizal Indra wrote:

Hi,
I have created my welcome page with menu tree 
(http://wicketstuff.org/wicket13/nested/ ). I want to hide/disabled some item 
menu depend on user right principal.

I have try put some tricks but not work :-)
MyTree.java
public class MyTree extends Tree {
@Override
protected void populateTreeItem(WebMarkupContainer item, int level) {
System.out.println(" getting populateTreeItem...");
super.populateTreeItem(item, level);
final TreeNode node = (TreeNode)item.getModelObject();
MarkupContainer nodeLink =  newNodeLink(item, "nodeLink", node);
SecureWebMarkupContainer swmc = new 
SecureWebMarkupContainer("hiddenMenu");
swmc.add(nodeLink);
//item.add(nodeLink);
item.add(swmc);
}
}

SecureWebMarkupContainer.java
public class SecureWebMarkupContainer extends WebMarkupContainer implements 
ISecureComponent {
...
}

can anyone give some example/advice how to make it work. 
thanks 




  Pemanasan global? Apa sih itu? Temukan jawabannya di Yahoo! Answers! 
http://id.answers.yahoo.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to show/hide, enable/disable items in menu based on YUI menu2

2009-07-16 Thread Joshua Lim
2009/7/16 Petr Fejfar 

>
>
> thank for your effort. I tried your improvements, but it stil does not
> work for me. It is possible that I'm missing something, but some
> problems can be seen in your yui-example as well: After you click
> M2:L3 item to remove 1st item from menu:
> - all marks indicating an item has a submenu disappears
> - the menubar losts its dynamic behaveour i.e. mouse over does nothing



Did you check out yui as well? This marks disappears should be redrawn
in the new code. What browser are you using though I 've only tested on FF.



>
> - a click into any menubar's item "returns" it into regular behaveour
>

> This is probably the major problem. More, I've tried extend your example:
>
> - by adding Enable/Disable toggle with behaveour same as in the removing
> case
>
>subMenu2.addMenuItem(new AjaxLinkAction("M2 : L6 (Ajax) -
> disables 2nd item")
>{
>@Override
>public void onClick(AjaxRequestTarget target)
>{
>MenuBar2Page.this.info
> (getName().getObject());
>m2L2.setEnabled(!m2L2.isEnabled());
>target.addComponent(feedback);
>target.addComponent(mb);
>}
>});
>
>
> - by adding Checked toggle - it toggles value, but it seems there is
> no checked mark
>
>m2L7 = subMenu2.addMenuItem(new AjaxLinkAction("M2 : L7
> (Ajax) -
> toggles itself")
>{
>@Override
>public void onClick(AjaxRequestTarget target)
>{
>MenuBar2Page.this.info
> (getName().getObject());
>System.out.println("Check togle:
> "+m2L7.isChecked());
>m2L7.setChecked(!m2L7.isChecked());
>target.addComponent(feedback);
>target.addComponent(mb);
>}
>});
>
>
> Please, if you would have some time, could you try to fix it?
>

not sure about the "setChecked" yet, as its not something I am working on.
btw, I am not the original author for the menu bar, so I have still to
figure out that bits.



>
> Thanks, Petr
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Pageable FormComponent

2009-07-16 Thread Jeremy Thomerson
Typically the pattern would be to use a repeating view of some sort
(ListView, etc) and inside that repeater, add form components.  A
"list" is not a "form component" - in most cases.  An input field
is... etc...

--
Jeremy Thomerson
http://www.wickettraining.com




On Thu, Jul 16, 2009 at 5:36 AM, Emanuele Gesuato wrote:
> Hi there,
>
> I've got an extension of a FormComponent that basically show a list of data
> (an element for row) with three buttons for permitting the crud operation
> (new, modify and delete).
>
> This component can show only a list of static data (ArrayList) and it isn't
> a DataTable but now i would like to use a dataprovider for lazy loading the
> rows. What is the best way on getting it done ? Is it more convenient to do
> another (ex-novo) component ?
>
> Obviously i would like to mantain the load of static data (it's a component
> quite used) AND dynamic data.
>
> Here is the full code of the component (unfortunately the comments are in
> italian):
> http://pastebin.com/m6ef959a8
>
>
> Thanks,
> Emanuele
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Radio and Radio Group problems

2009-07-16 Thread Trojahn, Cassia

Trojahn, Cassia wrote:

Always the last of the list is the selected.
I had tried also this proposal .. and it does not work.

Michael O'Cleirigh wrote:

Hello,

I don't think you need to track the selected (true/false) state your 
self.  Let the radio group model do it automatically for you like:


listLanguages.add(new NameWrapper("English", "en", "");
listLanguages.add(new NameWrapper("German", "de", ""));
listLanguages.add(new NameWrapper("French", "fr", ""));
listLanguages.add(new NameWrapper("Italian", "it", "");
listLanguages.add(new NameWrapper("Polish", "pl", "");

// set the selected radio to be the first in the list 'English'
final RadioGroup groupQuery = new RadioGroup("groupLanguagesQuery", 
new Model(listLanguages.get(0)));

listLanguagesQuery = new ListView("listLanguagesQuery",listLanguages) {
   protected void populateItem(ListItem item) {
String lang = 
((NameWrapper)item.getModelObject()).getName();
   item.add(new Label("nameLanguageQuery", new 
StringResourceModel(lang, this, null,"")));
   item.add(new Radio("checkLanguageQuery", 
item.getModel(),groupQuery));

   }
   };

groupQuery.add(listLanguagesQuery);

Now the model object value of the RadioGroup 'groupQuery' will have 
the NameWrapper for the selected choice.  A NameWrapper instance is 
selected if it is returned by groupQuery.getModelObject();


Regards,

Mike

I had tried this option and it does not work.

Michael Mosmann wrote:

Hi,

.. i am not sure. The model of RadioGroup should contain, wich item is
selected. The model of Radio should reflect the associated value. 
So if
model of RadioGroup contains "fr" and Property "selected" of item 
nr. 3

is "fr" this Radio is selected.

maybe this will help..
mm:)

 

I have a problem when using the Radio component.
Using a list of languages, where each item is a NameWrapper object 
with a property "selected". The property "selected" is associated 
to the radio component.
However, when presenting to the user the corresponding list of 
radios, the language Polish is true, and not English (it should be 
the selected option).


 listLanguages.add(new NameWrapper("English", "en", "", true));
 listLanguages.add(new NameWrapper("German", "de", "", false));
 listLanguages.add(new NameWrapper("French", "fr", "", false));
 listLanguages.add(new NameWrapper("Italian", "it", "", false));
 listLanguages.add(new NameWrapper("Polish", "pl", "", false));

 final RadioGroup groupQuery = new 
RadioGroup("groupLanguagesQuery", new Model());
 listLanguagesQuery = new 
ListView("listLanguagesQuery",listLanguages) {

protected void populateItem(ListItem item) {
 String lang = 
((NameWrapper)item.getModelObject()).getName();
item.add(new Label("nameLanguageQuery", new 
StringResourceModel(lang, this, null,"")));
item.add(new Radio("checkLanguageQuery", new 
PropertyModel(item.getModel(), "selected"),groupQuery));

}
};
groupQuery.add(listLanguagesQuery);

Any ideas? I really need to solve this issue.

Thank you so much.



  





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


I send the code of the application.
if someone can help me 
/*
 * HomePage.java
 *
 * Created on July 16, 2009, 3:44 PM
 */
 
package com.myapp.wicket;

import java.util.ArrayList;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.form.Radio;
import org.apache.wicket.markup.html.form.RadioGroup;
import org.apache.wicket.markup.html.list.ListItem;
import org.apache.wicket.markup.html.list.ListView;
import org.apache.wicket.model.Model;
import org.apache.wicket.model.PropertyModel;

public class HomePage extends BasePage {
private static final long serialVersionUID = 1L;
public HomePage() {

ArrayList listLanguages = new ArrayList();
listLanguages.add(new NameWrapper("English", "en", ""));
listLanguages.add(new NameWrapper("German", "de", ""));
listLanguages.add(new NameWrapper("French", "fr", ""));
listLanguages.add(new NameWrapper("Italian", "it", ""));
listLanguages.add(new NameWrapper("Polish", "pl", ""));

@SuppressWarnings("unchecked")
final RadioGroup groupQuery = new RadioGroup("groupLanguagesQuery", new Model(listLanguages.get(0)));
@SuppressWarnings("unchecked")
ListView listLanguagesQuery = new ListView("listLanguagesQuery",listLanguages) {
private static final long serialVersionUID = 1L;
protected void populateItem(ListItem item) {
item.add(new Label("nameLanguageQuery

Re: Accessing the rowItem from the populateItem of a column

2009-07-16 Thread Iain Reddick

That should work fine in 1.3.3.

I thought this was what you were looking for:

public class SomeColumnClass extends AbstractColumn {
   public void populateItem( Item cellItem, String componentId, IModel 
rowModel ) {  
   MarkupContainer rowItem = cellItem.getParent().getParent();

   rowItem.add( new SomeBehaviour() );
   }
}

?

Lorenzo Bolzani wrote:

2009/7/15 Iain Reddick :
  

cellItem.getParent().getParent() will get the row component, but it's not a
very clean solution.




Hi, thanks for the replies.

I'm using wicket 1.3.3 and this method was not yet present. I'm not
upgrading due to some problems with ajax tests and WicketTester.

Anyway I cannot see many other options, other than using a ListView
instead of a table or the one described above.


Bye

Lorenzo

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



AutoCompleteTextField with initial focus not working

2009-07-16 Thread Marieke Vandamme
Hello, 

I have AutoCompleteTextField which has the focus when my page is loaded.
When I just start typing (because the field has initial focus), then no 
list is shown.
If I leave the field and then click in it again (loosing focus and then 
gaining it again), the list is shown.

Can somebody help me with this or is it a bug? 
Many thanks in advance! Marieke.
 DISCLAIMER 
http://www.tvh.be/newen/pages/emaildisclaimer.html";>
http://www.tvh.be/newen/pages/emaildisclaimer.html 

"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message."


Re: Radio and Radio Group problems

2009-07-16 Thread Trojahn, Cassia

Always the last of the list is the selected.
I had tried also this proposal .. and it does not work.

Michael O'Cleirigh wrote:

Hello,

I don't think you need to track the selected (true/false) state your 
self.  Let the radio group model do it automatically for you like:


listLanguages.add(new NameWrapper("English", "en", "");
listLanguages.add(new NameWrapper("German", "de", ""));
listLanguages.add(new NameWrapper("French", "fr", ""));
listLanguages.add(new NameWrapper("Italian", "it", "");
listLanguages.add(new NameWrapper("Polish", "pl", "");

// set the selected radio to be the first in the list 'English'
final RadioGroup groupQuery = new RadioGroup("groupLanguagesQuery", 
new Model(listLanguages.get(0)));

listLanguagesQuery = new ListView("listLanguagesQuery",listLanguages) {
   protected void populateItem(ListItem item) {
String lang = 
((NameWrapper)item.getModelObject()).getName();
   item.add(new Label("nameLanguageQuery", new 
StringResourceModel(lang, this, null,"")));
   item.add(new Radio("checkLanguageQuery", 
item.getModel(),groupQuery));

   }
   };

groupQuery.add(listLanguagesQuery);

Now the model object value of the RadioGroup 'groupQuery' will have 
the NameWrapper for the selected choice.  A NameWrapper instance is 
selected if it is returned by groupQuery.getModelObject();


Regards,

Mike

I had tried this option and it does not work.

Michael Mosmann wrote:

Hi,

.. i am not sure. The model of RadioGroup should contain, wich item is
selected. The model of Radio should reflect the associated value. So if
model of RadioGroup contains "fr" and Property "selected" of item nr. 3
is "fr" this Radio is selected.

maybe this will help..
mm:)

 

I have a problem when using the Radio component.
Using a list of languages, where each item is a NameWrapper object 
with a property "selected". The property "selected" is associated 
to the radio component.
However, when presenting to the user the corresponding list of 
radios, the language Polish is true, and not English (it should be 
the selected option).


 listLanguages.add(new NameWrapper("English", "en", "", true));
 listLanguages.add(new NameWrapper("German", "de", "", false));
 listLanguages.add(new NameWrapper("French", "fr", "", false));
 listLanguages.add(new NameWrapper("Italian", "it", "", false));
 listLanguages.add(new NameWrapper("Polish", "pl", "", false));

 final RadioGroup groupQuery = new 
RadioGroup("groupLanguagesQuery", new Model());
 listLanguagesQuery = new 
ListView("listLanguagesQuery",listLanguages) {

protected void populateItem(ListItem item) {
 String lang = 
((NameWrapper)item.getModelObject()).getName();
item.add(new Label("nameLanguageQuery", new 
StringResourceModel(lang, this, null,"")));
item.add(new Radio("checkLanguageQuery", new 
PropertyModel(item.getModel(), "selected"),groupQuery));

}
};
groupQuery.add(listLanguagesQuery);

Any ideas? I really need to solve this issue.

Thank you so much.



  





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: DatePicker

2009-07-16 Thread Marat Radchenko
DatePicker is in wicket-datetime artifact.

2009/7/16 Martin Letendre :
> In the latest wicket javadoc I see that there is a DatePicker componenent
> based on yui.
>
> http://wicket.apache.org/docs/1.4/org/apache/wicket/extensions/yui/calendar/DatePicker.html
>
> Great !
>
> I have these dependencies in my project
>
>        
>            org.apache.wicket
>            wicket
>            1.4-rc7
>        
>        
>            org.apache.wicket
>            wicket-extensions
>            1.4-rc7
>        
>
> But I still don't see this class in my classpath. Some special dependency I
> should add ?
>
> Thanks for you help.
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



DatePicker

2009-07-16 Thread Martin Letendre
In the latest wicket javadoc I see that there is a DatePicker componenent
based on yui.

http://wicket.apache.org/docs/1.4/org/apache/wicket/extensions/yui/calendar/DatePicker.html

Great !

I have these dependencies in my project


org.apache.wicket
wicket
1.4-rc7


org.apache.wicket
wicket-extensions
1.4-rc7


But I still don't see this class in my classpath. Some special dependency I
should add ?

Thanks for you help.


Re: How to access user form data (simple question)

2009-07-16 Thread Martin Makundi
Are you trying to reinvent the Palette component?

http://wicketstuff.org/wicket13/compref?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.PalettePage

**
Martin

2009/7/15 Jedadiah Ashford :
> Im new to Wicket and I have a simple problem. I have TWO list boxes. Using
> javascript I need to move some choices from the first box to the second box,
> which works fine, but how do I now see what the user has added to the second
> box via an ajax submit button. Here is the declaration of the listbox, and
> the submit button code. The list of choices is blank because I need that box
> empty for the user, but even when I add things to the box, and hit the
> button, the choices are still empty.
>
> Any help would be very appreciated. Thanks everyone :)
>
>
>
> ListMultipleChoice throttleListMultiChosen =
> *new*ListMultipleChoice(
> "chosenThrottles", *new* Model(), throttleListBlank);
>
> *protected* *void* onSubmit(AjaxRequestTarget target, Form form) {
>
> target.addComponent(wmc2);
> *List listOfChosen = (List)
> throttleListMultiChosen.getChoices();     //This is coming out blank, no
> items in the list, even when I add them.*
>
>
> }
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



How to access user form data (simple question)

2009-07-16 Thread Jedadiah Ashford
Im new to Wicket and I have a simple problem. I have TWO list boxes. Using
javascript I need to move some choices from the first box to the second box,
which works fine, but how do I now see what the user has added to the second
box via an ajax submit button. Here is the declaration of the listbox, and
the submit button code. The list of choices is blank because I need that box
empty for the user, but even when I add things to the box, and hit the
button, the choices are still empty.

Any help would be very appreciated. Thanks everyone :)



ListMultipleChoice throttleListMultiChosen =
*new*ListMultipleChoice(
"chosenThrottles", *new* Model(), throttleListBlank);

*protected* *void* onSubmit(AjaxRequestTarget target, Form form) {

target.addComponent(wmc2);
*List listOfChosen = (List)
throttleListMultiChosen.getChoices(); //This is coming out blank, no
items in the list, even when I add them.*


}


Re: How to throw new PageExpiredException?

2009-07-16 Thread Major Péter
Which wicket version are you using? With 1.4-rc7 this behaviour should 
be fixed.


Peter

2009-07-16 11:13 keltezéssel, Ann Baert írta:

I do that already, see my previous post.
But the PageExpiredException is wrapped into WicketRuntimeException, so that
he doesn't come on those pages.




Linda van der Pal wrote:

A quote from Wicket in Action:
=
The three custom error pages can be set in the init method of your
Application using the application settings. Here’s an example:

@Override
protected void init() {
IApplicationSettings settings = getApplicationSettings();
settings.setAccessDeniedPage(CheesrAccessDeniedPage.class);
settings.setPageExpiredErrorPage(CheesrPageExpiredErrorPage.class);
settings.setInternalErrorPage(CheesrInternalErrorPage.class);
}
=
Doesn't this accomplish what you want?

Regards,
Linda

Ann Baert wrote:

That's not how I want it.
I have a custom PageExpiredErrorPage (and AccessDenied...), so he has to
take those automaticly.
getApplicationSettings().setPageExpiredErrorPage(CustomPageExpiredErrorPage.class);
With your solution I have to repeat them everywhere, like I do now with
setResponsePage().



Serkan Camurcuoglu-3 wrote:


If all you want is to display a page expired page, maybe you could just
use

throw new RestartResponseException(PageExpiredErrorPage.class);

in your page constructor.



Ann Baert wrote:


Can anyone help me with this problem please?
Thanks in advance, Ann.



Ann Baert wrote:



I have overridden the RequestCycle.onRuntimeException method:

@Override
public RequestCycle newRequestCycle(final Request request, final
Response
response) {
 return new WebRequestCycle(this, (WebRequest) request,
(WebResponse)
response) {

 @Override
 public Page onRuntimeException(Page page, RuntimeException e)
{
 Throwable t = e.getCause();
 while(t != null) {
 if(t instanceof PageExpiredException) {
 return super.onRuntimeException(page, new
PageExpiredException("test"));
 }

 t = t.getCause();
 }
 return super.onRuntimeException(page, e);
 }
 };
}

He comes in the if(t instanceof PageExpiredException)..., but in the
AbstractRequestCycleProcessor.respond(RuntimeException e, RequestCycle
requestCycle) method he doesn't do anything with the RuntimeException.
So
he has still a WicketRuntimeException instead of the
PageExpiredException.

Ann




igor.vaynberg wrote:



you can try unwrapping the exceptions in
requestcycle.onruntimeexception and call super with the page exipred
exception.

-igor

On Fri, Jul 10, 2009 at 3:00 AM, Ann Baert  wrote:



Hello,

How can I throw a PageExpiredException in the constructor of my
WebPage?
Because the exception is wrapped by Wicket with
WicketRuntimeException
it
goes to the InternalErrorPage.

Thanks,
Ann
 DISCLAIMER 
  http://www.tvh.be/newen/pages/emaildisclaimer.html
http://www.tvh.be/newen/pages/emaildisclaimer.html

"This message is delivered to all addressees subject to the
conditions
set forth in the attached disclaimer, which is an integral part of
this
message."


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



How to Hidden/Disabled Wicket tree with implementation wicket security

2009-07-16 Thread Rizal Indra

Hi,
I have created my welcome page with menu tree 
(http://wicketstuff.org/wicket13/nested/ ). I want to hide/disabled some item 
menu depend on user right principal.

I have try put some tricks but not work :-)
MyTree.java
public class MyTree extends Tree {
@Override
    protected void populateTreeItem(WebMarkupContainer item, int level) {
        System.out.println(" getting populateTreeItem...");
        super.populateTreeItem(item, level);
        final TreeNode node = (TreeNode)item.getModelObject();
        MarkupContainer nodeLink =  newNodeLink(item, "nodeLink", node);
        SecureWebMarkupContainer swmc = new 
SecureWebMarkupContainer("hiddenMenu");
        swmc.add(nodeLink);
        //item.add(nodeLink);
        item.add(swmc);
    }
}

SecureWebMarkupContainer.java
public class SecureWebMarkupContainer extends WebMarkupContainer implements 
ISecureComponent {
...
}

can anyone give some example/advice how to make it work. 
thanks 



  Pemanasan global? Apa sih itu? Temukan jawabannya di Yahoo! Answers! 
http://id.answers.yahoo.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Pageable FormComponent

2009-07-16 Thread Emanuele Gesuato

Hi there,

I've got an extension of a FormComponent that basically show a list of 
data (an element for row) with three buttons for permitting the crud 
operation (new, modify and delete).


This component can show only a list of static data (ArrayList) and it 
isn't a DataTable but now i would like to use a dataprovider for lazy 
loading the rows. What is the best way on getting it done ? Is it more 
convenient to do another (ex-novo) component ?


Obviously i would like to mantain the load of static data (it's a 
component quite used) AND dynamic data.


Here is the full code of the component (unfortunately the comments are 
in italian):

http://pastebin.com/m6ef959a8


Thanks,
Emanuele


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Help - Mounting a dynamic generated image

2009-07-16 Thread Hbiloo
Ooh, I forgot to say that I'm using these images to be displayed in a
lightbox. This lightbox expects an image URL in it's href i.e
"images/myImage.png".
Someone already has the same issue?

Kind Regards,

Hbiloo


On Thu, Jul 16, 2009 at 12:29 AM, Hbiloo  wrote:

> Hi everybody,
>
> I've a list of thumbnail images that are dynamically generated from a byte
> [] retrieved from the database. Each thumbnail links to the big image
> variant of it.
> My code:
>
> ...
>
> @Override
>
> protected void populateItem(final ListItem item) {
>
> final int index = item.getIndex();
>
> final MyImage mImage = item.getModelObject();
>
> ResourceLink myImageLink = 
> newResourceLink(
> "myImageLink",
>
> new ByteaImageResource(myImage.getImage()));
>
> myImageLink.add(new FancyBoxBehavior());
>
> myImageLink.add(new ContextImage("ribbonImage", newModel(
> RIBBON_IMAGE)).setVisible(myImage.isMain()));
>
> myImageLink.add(new Image("myImage", 
> newByteaImageResource(myImage.getImage(;
>
> item.add(myImageLink);
>
> }
>
> ...
>
>
> public class ByteaImageResource extends DynamicImageResource {
>
> private byte[] imageData;
>
>
> public ByteaImageResource(byte[] imageData) {
>
> this.imageData = imageData;
>
> super.setLastModifiedTime(Time.now());
>
> }
>
>
> @Override
>
> protected byte[] getImageData() {
>
> return imageData;
>
> }
>
> }
>
>
> This is how I would like the HTML to be generated:
> ...
> 
>
>  wicket:id="myImage"/>
> 
> 
>
>  wicket:id="myImage"/>
> 
> ...
>
> How can I get these images as a mounted images and not as link such as:
> http://localhost:8080/myApp/?wicket:interface=:0:sidebarPanels:1:sidebarPanel:contentContainer:myImages:1:myImageLink::IResourceListener
> ::
>
> Kind Regards,
>
> Hbiloo
>


Re: add html-attribute to a tab

2009-07-16 Thread Jonas
usually, you can attach an AttributeModifier to the component
representing the tag, like
new AttributeModifier("title", true, new Model("The Title Text"))

I never tried it in a TabbedPanel, but its probably one of the
Components generated
by one of the newXXX methods on TabbedPanel where you should attach
the attribute modifier

cheers,
Jonas



On Thu, Jul 16, 2009 at 11:12 AM, ptrash wrote:
>
> So, it is not possible?
> --
> View this message in context: 
> http://www.nabble.com/add-html-attribute-to-a-tab-tp24468087p24512963.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Accessing the rowItem from the populateItem of a column

2009-07-16 Thread Lorenzo Bolzani
2009/7/15 Iain Reddick :
> cellItem.getParent().getParent() will get the row component, but it's not a
> very clean solution.
>

Hi, thanks for the replies.

I'm using wicket 1.3.3 and this method was not yet present. I'm not
upgrading due to some problems with ajax tests and WicketTester.

Anyway I cannot see many other options, other than using a ListView
instead of a table or the one described above.


Bye

Lorenzo

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to throw new PageExpiredException?

2009-07-16 Thread Ann Baert

I do that already, see my previous post.
But the PageExpiredException is wrapped into WicketRuntimeException, so that
he doesn't come on those pages.




Linda van der Pal wrote:
> 
> A quote from Wicket in Action:
> =
> The three custom error pages can be set in the init method of your 
> Application using the application settings. Here’s an example:
> 
> @Override
> protected void init() {
> IApplicationSettings settings = getApplicationSettings();
> settings.setAccessDeniedPage(CheesrAccessDeniedPage.class);
> settings.setPageExpiredErrorPage(CheesrPageExpiredErrorPage.class);
> settings.setInternalErrorPage(CheesrInternalErrorPage.class);
> }
> =
> Doesn't this accomplish what you want?
> 
> Regards,
> Linda
> 
> Ann Baert wrote:
>> That's not how I want it.
>> I have a custom PageExpiredErrorPage (and AccessDenied...), so he has to
>> take those automaticly.
>> getApplicationSettings().setPageExpiredErrorPage(CustomPageExpiredErrorPage.class);
>> With your solution I have to repeat them everywhere, like I do now with
>> setResponsePage().
>>
>>
>>
>> Serkan Camurcuoglu-3 wrote:
>>   
>>> If all you want is to display a page expired page, maybe you could just
>>> use
>>>
>>> throw new RestartResponseException(PageExpiredErrorPage.class);
>>>
>>> in your page constructor.
>>>
>>>
>>>
>>> Ann Baert wrote:
>>> 
 Can anyone help me with this problem please?
 Thanks in advance, Ann.



 Ann Baert wrote:
   
   
> I have overridden the RequestCycle.onRuntimeException method:
>
> @Override
> public RequestCycle newRequestCycle(final Request request, final
> Response
> response) {
> return new WebRequestCycle(this, (WebRequest) request,
> (WebResponse)
> response) {
>
> @Override
> public Page onRuntimeException(Page page, RuntimeException e)
> {
> Throwable t = e.getCause();
> while(t != null) {
> if(t instanceof PageExpiredException) {
> return super.onRuntimeException(page, new
> PageExpiredException("test"));
> }
>
> t = t.getCause();
> }
> return super.onRuntimeException(page, e);
> }
> };
> }
>
> He comes in the if(t instanceof PageExpiredException)..., but in the
> AbstractRequestCycleProcessor.respond(RuntimeException e, RequestCycle
> requestCycle) method he doesn't do anything with the RuntimeException.
> So
> he has still a WicketRuntimeException instead of the
> PageExpiredException.
>
> Ann
>
>
>
>
> igor.vaynberg wrote:
> 
> 
>> you can try unwrapping the exceptions in
>> requestcycle.onruntimeexception and call super with the page exipred
>> exception.
>>
>> -igor
>>
>> On Fri, Jul 10, 2009 at 3:00 AM, Ann Baert wrote:
>>   
>>   
>>> Hello,
>>>
>>> How can I throw a PageExpiredException in the constructor of my
>>> WebPage?
>>> Because the exception is wrapped by Wicket with
>>> WicketRuntimeException
>>> it
>>> goes to the InternalErrorPage.
>>>
>>> Thanks,
>>> Ann
>>>  DISCLAIMER 
>>>  http://www.tvh.be/newen/pages/emaildisclaimer.html 
>>> http://www.tvh.be/newen/pages/emaildisclaimer.html  
>>>
>>> "This message is delivered to all addressees subject to the
>>> conditions
>>> set forth in the attached disclaimer, which is an integral part of
>>> this
>>> message."
>>>
>>> 
>>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>>
>>   
>>   
> 
> 
   
   
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>>
>>> 
>>
>>   
>> 
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - www.avg.com 
>> Version: 8.5.375 / Virus Database: 270.13.16/2240 - Release Date:
>> 07/15/09 17:58:00
>>
>>   
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-throw-new-PageExpiredException--tp24424791p24512967.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscri

Re: add html-attribute to a tab

2009-07-16 Thread ptrash

So, it is not possible?
-- 
View this message in context: 
http://www.nabble.com/add-html-attribute-to-a-tab-tp24468087p24512963.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to throw new PageExpiredException?

2009-07-16 Thread Linda van der Pal

A quote from Wicket in Action:
=
The three custom error pages can be set in the init method of your 
Application using the application settings. Here’s an example:


@Override
protected void init() {
IApplicationSettings settings = getApplicationSettings();
settings.setAccessDeniedPage(CheesrAccessDeniedPage.class);
settings.setPageExpiredErrorPage(CheesrPageExpiredErrorPage.class);
settings.setInternalErrorPage(CheesrInternalErrorPage.class);
}
=
Doesn't this accomplish what you want?

Regards,
Linda

Ann Baert wrote:

That's not how I want it.
I have a custom PageExpiredErrorPage (and AccessDenied...), so he has to
take those automaticly.
getApplicationSettings().setPageExpiredErrorPage(CustomPageExpiredErrorPage.class);
With your solution I have to repeat them everywhere, like I do now with
setResponsePage().



Serkan Camurcuoglu-3 wrote:
  

If all you want is to display a page expired page, maybe you could just
use

throw new RestartResponseException(PageExpiredErrorPage.class);

in your page constructor.



Ann Baert wrote:


Can anyone help me with this problem please?
Thanks in advance, Ann.



Ann Baert wrote:
  
  

I have overridden the RequestCycle.onRuntimeException method:

@Override
public RequestCycle newRequestCycle(final Request request, final
Response
response) {
return new WebRequestCycle(this, (WebRequest) request, (WebResponse)
response) {

@Override
public Page onRuntimeException(Page page, RuntimeException e) {
Throwable t = e.getCause();
while(t != null) {
if(t instanceof PageExpiredException) {
return super.onRuntimeException(page, new
PageExpiredException("test"));
}

t = t.getCause();
}
return super.onRuntimeException(page, e);
}
};
}

He comes in the if(t instanceof PageExpiredException)..., but in the
AbstractRequestCycleProcessor.respond(RuntimeException e, RequestCycle
requestCycle) method he doesn't do anything with the RuntimeException.
So
he has still a WicketRuntimeException instead of the
PageExpiredException.

Ann




igor.vaynberg wrote:



you can try unwrapping the exceptions in
requestcycle.onruntimeexception and call super with the page exipred
exception.

-igor

On Fri, Jul 10, 2009 at 3:00 AM, Ann Baert wrote:
  
  

Hello,

How can I throw a PageExpiredException in the constructor of my
WebPage?
Because the exception is wrapped by Wicket with WicketRuntimeException
it
goes to the InternalErrorPage.

Thanks,
Ann
 DISCLAIMER 
 http://www.tvh.be/newen/pages/emaildisclaimer.html 
http://www.tvh.be/newen/pages/emaildisclaimer.html  


"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of
this
message."




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



  
  


  
  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






  




No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.375 / Virus Database: 270.13.16/2240 - Release Date: 07/15/09 17:58:00


  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [Announce] wicketstuff-push ported to use wicket 1.4 jetty 6.1.14

2009-07-16 Thread freak182

Hello,

Is there a patch/servlet to run cometd in glassfish? because im having
trouble to run push-examples on glassfish as it will be used in production.

Thanks a lot.
Cheers.


Rodolfo Hansen wrote:
> 
> On Mon, Apr 20, 2009 at 6:26 AM, pmarrone  wrote:
> 
>>
>> Hi Rodolfo,
>> I'm trying to deploy the wicketstuff-push example on a Glassfish server
>> V3,
>> but without success.
>> Can you give some information about how to use your wicketstuff-push
>> implementation outside Jetty?
> 
> 
> For Glassfish there are a couple of configurations you need to set in the
> glassfish domain.
> 
> Also, you might have to write your own servlet, as in this post:
> 
> http://weblogs.java.net/blog/jfarcand/archive/2006/10/writting_a_come.html
> 
> 
>> I know that Glassfish has support for cometd, so it should be possible.
>> I propose to insert in the example package this kind of information,
>> because
>> jetty is not normally adopted in real production environments.
> 
> 
> Yes, if you can, can you write the Glassfish Servlet for cometd
> integration
> and post it as a patch, or send it to me directly?
> 
> rhan...@kindleit.net
> 
> 
> 
>>
>> Thank you very much for your kind response.
>> Regards
>> Paolo
>>
>>
>>
>> Rodolfo Hansen-2 wrote:
>> >
>> > Hi, a new version of wicketstuff-push was moved to the wicketstuff-core
>> > group of projects, as push-parent (as was specified in the wiki)
>> >
>> > A couple of new things were done:
>> >
>> > It is no longer compatible with java 1.4, is built for wicket 1.4 and
>> > requires jetty 6.1.14.
>> > The dependencies on dojo have been reduced even further, so this
>> package
>> > is
>> > basically just a cometd client/server project for wicket.
>> > The RemoveListener is now working and is extended with a new type of
>> > WicketRemoveListener that allows access to the Wicket Application
>> > Singleton
>> > and the session that registered the singleton (i thought of a couple of
>> > ways
>> > to register them, and decided to choose the one present in the code for
>> > it)
>> >
>> > Please let me know of any suggestions, ideas for the proj.
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-Announce--wicketstuff-push-ported-to-use-wicket-1.4-jetty-6.1.14-tp20914051p23134109.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> 
> -- 
> Rodolfo Hansen
> CEO, KindleIT Software Development
> Email: rhan...@kindleit.net
> Office: 1 (809) 732-5200
> Mobile: 1 (809) 299-7332
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-Announce--wicketstuff-push-ported-to-use-wicket-1.4-jetty-6.1.14-tp20914051p24512870.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to throw new PageExpiredException?

2009-07-16 Thread Ann Baert

That's not how I want it.
I have a custom PageExpiredErrorPage (and AccessDenied...), so he has to
take those automaticly.
getApplicationSettings().setPageExpiredErrorPage(CustomPageExpiredErrorPage.class);
With your solution I have to repeat them everywhere, like I do now with
setResponsePage().



Serkan Camurcuoglu-3 wrote:
> 
> If all you want is to display a page expired page, maybe you could just
> use
> 
> throw new RestartResponseException(PageExpiredErrorPage.class);
> 
> in your page constructor.
> 
> 
> 
> Ann Baert wrote:
>> Can anyone help me with this problem please?
>> Thanks in advance, Ann.
>>
>>
>>
>> Ann Baert wrote:
>>   
>>> I have overridden the RequestCycle.onRuntimeException method:
>>>
>>> @Override
>>> public RequestCycle newRequestCycle(final Request request, final
>>> Response
>>> response) {
>>> return new WebRequestCycle(this, (WebRequest) request, (WebResponse)
>>> response) {
>>>
>>> @Override
>>> public Page onRuntimeException(Page page, RuntimeException e) {
>>> Throwable t = e.getCause();
>>> while(t != null) {
>>> if(t instanceof PageExpiredException) {
>>> return super.onRuntimeException(page, new
>>> PageExpiredException("test"));
>>> }
>>>
>>> t = t.getCause();
>>> }
>>> return super.onRuntimeException(page, e);
>>> }
>>> };
>>> }
>>>
>>> He comes in the if(t instanceof PageExpiredException)..., but in the
>>> AbstractRequestCycleProcessor.respond(RuntimeException e, RequestCycle
>>> requestCycle) method he doesn't do anything with the RuntimeException.
>>> So
>>> he has still a WicketRuntimeException instead of the
>>> PageExpiredException.
>>>
>>> Ann
>>>
>>>
>>>
>>>
>>> igor.vaynberg wrote:
>>> 
 you can try unwrapping the exceptions in
 requestcycle.onruntimeexception and call super with the page exipred
 exception.

 -igor

 On Fri, Jul 10, 2009 at 3:00 AM, Ann Baert wrote:
   
> Hello,
>
> How can I throw a PageExpiredException in the constructor of my
> WebPage?
> Because the exception is wrapped by Wicket with WicketRuntimeException
> it
> goes to the InternalErrorPage.
>
> Thanks,
> Ann
>  DISCLAIMER 
>  http://www.tvh.be/newen/pages/emaildisclaimer.html 
> http://www.tvh.be/newen/pages/emaildisclaimer.html  
>
> "This message is delivered to all addressees subject to the conditions
> set forth in the attached disclaimer, which is an integral part of
> this
> message."
>
> 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



   
>>> 
>>
>>   
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-throw-new-PageExpiredException--tp24424791p24512739.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to throw new PageExpiredException?

2009-07-16 Thread Serkan Camurcuoglu

If all you want is to display a page expired page, maybe you could just use

throw new RestartResponseException(PageExpiredErrorPage.class);

in your page constructor.



Ann Baert wrote:

Can anyone help me with this problem please?
Thanks in advance, Ann.



Ann Baert wrote:
  

I have overridden the RequestCycle.onRuntimeException method:

@Override
public RequestCycle newRequestCycle(final Request request, final Response
response) {
return new WebRequestCycle(this, (WebRequest) request, (WebResponse)
response) {

@Override
public Page onRuntimeException(Page page, RuntimeException e) {
Throwable t = e.getCause();
while(t != null) {
if(t instanceof PageExpiredException) {
return super.onRuntimeException(page, new
PageExpiredException("test"));
}

t = t.getCause();
}
return super.onRuntimeException(page, e);
}
};
}

He comes in the if(t instanceof PageExpiredException)..., but in the
AbstractRequestCycleProcessor.respond(RuntimeException e, RequestCycle
requestCycle) method he doesn't do anything with the RuntimeException. So
he has still a WicketRuntimeException instead of the PageExpiredException.

Ann




igor.vaynberg wrote:


you can try unwrapping the exceptions in
requestcycle.onruntimeexception and call super with the page exipred
exception.

-igor

On Fri, Jul 10, 2009 at 3:00 AM, Ann Baert wrote:
  

Hello,

How can I throw a PageExpiredException in the constructor of my WebPage?
Because the exception is wrapped by Wicket with WicketRuntimeException
it
goes to the InternalErrorPage.

Thanks,
Ann
 DISCLAIMER 
 http://www.tvh.be/newen/pages/emaildisclaimer.html 
http://www.tvh.be/newen/pages/emaildisclaimer.html  


"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message."



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



  



  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to show/hide, enable/disable items in menu based on YUI menu2

2009-07-16 Thread Petr Fejfar
> I've made some changes on the trunk to allow AjaxLinkAction, and remove the
> setRenderBodyOnly so that you can basically modify the menu 'ajaxically'.
[...]
> check out the yui-examples

Hi Joshua,

thank for your effort. I tried your improvements, but it stil does not
work for me. It is possible that I'm missing something, but some
problems can be seen in your yui-example as well: After you click
M2:L3 item to remove 1st item from menu:
- all marks indicating an item has a submenu disappears
- the menubar losts its dynamic behaveour i.e. mouse over does nothing
- a click into any menubar's item "returns" it into regular behaveour

This is probably the major problem. More, I've tried extend your example:

- by adding Enable/Disable toggle with behaveour same as in the removing case

subMenu2.addMenuItem(new AjaxLinkAction("M2 : L6 (Ajax) - 
disables 2nd item")
{
@Override
public void onClick(AjaxRequestTarget target)
{
MenuBar2Page.this.info(getName().getObject());
m2L2.setEnabled(!m2L2.isEnabled());
target.addComponent(feedback);
target.addComponent(mb);
}
});


- by adding Checked toggle - it toggles value, but it seems there is
no checked mark

m2L7 = subMenu2.addMenuItem(new AjaxLinkAction("M2 : L7 (Ajax) -
toggles itself")
{
@Override
public void onClick(AjaxRequestTarget target)
{
MenuBar2Page.this.info(getName().getObject());
System.out.println("Check togle: 
"+m2L7.isChecked());
m2L7.setChecked(!m2L7.isChecked());
target.addComponent(feedback);
target.addComponent(mb);
}
});


Please, if you would have some time, could you try to fix it?

Thanks, Petr

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to throw new PageExpiredException?

2009-07-16 Thread Ann Baert

Can anyone help me with this problem please?
Thanks in advance, Ann.



Ann Baert wrote:
> 
> I have overridden the RequestCycle.onRuntimeException method:
> 
> @Override
> public RequestCycle newRequestCycle(final Request request, final Response
> response) {
> return new WebRequestCycle(this, (WebRequest) request, (WebResponse)
> response) {
> 
> @Override
> public Page onRuntimeException(Page page, RuntimeException e) {
> Throwable t = e.getCause();
> while(t != null) {
> if(t instanceof PageExpiredException) {
> return super.onRuntimeException(page, new
> PageExpiredException("test"));
> }
> 
> t = t.getCause();
> }
> return super.onRuntimeException(page, e);
> }
> };
> }
> 
> He comes in the if(t instanceof PageExpiredException)..., but in the
> AbstractRequestCycleProcessor.respond(RuntimeException e, RequestCycle
> requestCycle) method he doesn't do anything with the RuntimeException. So
> he has still a WicketRuntimeException instead of the PageExpiredException.
> 
> Ann
> 
> 
> 
> 
> igor.vaynberg wrote:
>> 
>> you can try unwrapping the exceptions in
>> requestcycle.onruntimeexception and call super with the page exipred
>> exception.
>> 
>> -igor
>> 
>> On Fri, Jul 10, 2009 at 3:00 AM, Ann Baert wrote:
>>> Hello,
>>>
>>> How can I throw a PageExpiredException in the constructor of my WebPage?
>>> Because the exception is wrapped by Wicket with WicketRuntimeException
>>> it
>>> goes to the InternalErrorPage.
>>>
>>> Thanks,
>>> Ann
>>>  DISCLAIMER 
>>>  http://www.tvh.be/newen/pages/emaildisclaimer.html 
>>> http://www.tvh.be/newen/pages/emaildisclaimer.html  
>>>
>>> "This message is delivered to all addressees subject to the conditions
>>> set forth in the attached disclaimer, which is an integral part of this
>>> message."
>>>
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-throw-new-PageExpiredException--tp24424791p24512117.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org